-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMntCfgMxn.ts
40 lines (39 loc) · 1 KB
/
MntCfgMxn.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {OConfig} from './froop/O.js';
import { MntCfg, MountActions, MountProps, PMP, ProPMP } from './ts-refs/trans-render/types.js';
export const MntCfgMxn: OConfig<MountProps, MountActions> = {
propInfo:{
clonedTemplate: {
type: 'Object',
ro: true,
},
hydrated: {
type: 'Boolean',
ro: true,
},
deferHydration: {
type: 'Boolean',
parse: true,
attrName: 'defer-hydration'
}
},
actions:{
cloneMT: {
ifAllOf: 'csr'
},
initCSRXform: {
ifAllOf: ['clonedTemplate'],
ifAtLeastOneOf: ['xform', 'xxform'],
ifNoneOf: ['deferHydration'],
},
mountClone: {
ifAllOf: ['clonedTemplate', 'hydrated'],
},
initSSRXform: {
ifAllOf: ['xform'],
ifNoneOf: ['csr', 'deferHydration'],
},
onNoXForm:{
ifNoneOf: ['xform']
}
}
}