@rippling/rippling-sdk 0.2.0-alpha.33 → 0.2.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +17 -0
- package/client.js.map +1 -1
- package/client.mjs +17 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/lib/manifest/_helpers.d.mts +91 -0
- package/lib/manifest/_helpers.d.mts.map +1 -0
- package/lib/manifest/_helpers.d.ts +91 -0
- package/lib/manifest/_helpers.d.ts.map +1 -0
- package/lib/manifest/_helpers.js +65 -0
- package/lib/manifest/_helpers.js.map +1 -0
- package/lib/manifest/_helpers.mjs +61 -0
- package/lib/manifest/_helpers.mjs.map +1 -0
- package/lib/manifest/app.d.mts +113 -0
- package/lib/manifest/app.d.mts.map +1 -0
- package/lib/manifest/app.d.ts +113 -0
- package/lib/manifest/app.d.ts.map +1 -0
- package/lib/manifest/app.js +95 -0
- package/lib/manifest/app.js.map +1 -0
- package/lib/manifest/app.mjs +91 -0
- package/lib/manifest/app.mjs.map +1 -0
- package/lib/manifest/category.d.mts +79 -0
- package/lib/manifest/category.d.mts.map +1 -0
- package/lib/manifest/category.d.ts +79 -0
- package/lib/manifest/category.d.ts.map +1 -0
- package/lib/manifest/category.js +72 -0
- package/lib/manifest/category.js.map +1 -0
- package/lib/manifest/category.mjs +68 -0
- package/lib/manifest/category.mjs.map +1 -0
- package/lib/manifest/custom-object-field-section.d.mts +71 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -0
- package/lib/manifest/custom-object-field-section.d.ts +71 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -0
- package/lib/manifest/custom-object-field-section.js +69 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -0
- package/lib/manifest/custom-object-field-section.mjs +65 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.mts +318 -0
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.ts +318 -0
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -0
- package/lib/manifest/custom-object-page-layout.js +158 -0
- package/lib/manifest/custom-object-page-layout.js.map +1 -0
- package/lib/manifest/custom-object-page-layout.mjs +154 -0
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -0
- package/lib/manifest/custom-object.d.mts +165 -0
- package/lib/manifest/custom-object.d.mts.map +1 -0
- package/lib/manifest/custom-object.d.ts +165 -0
- package/lib/manifest/custom-object.d.ts.map +1 -0
- package/lib/manifest/custom-object.js +254 -0
- package/lib/manifest/custom-object.js.map +1 -0
- package/lib/manifest/custom-object.mjs +250 -0
- package/lib/manifest/custom-object.mjs.map +1 -0
- package/lib/manifest/field.d.mts +487 -0
- package/lib/manifest/field.d.mts.map +1 -0
- package/lib/manifest/field.d.ts +487 -0
- package/lib/manifest/field.d.ts.map +1 -0
- package/lib/manifest/field.js +461 -0
- package/lib/manifest/field.js.map +1 -0
- package/lib/manifest/field.mjs +438 -0
- package/lib/manifest/field.mjs.map +1 -0
- package/lib/manifest/index.d.mts +15 -0
- package/lib/manifest/index.d.mts.map +1 -0
- package/lib/manifest/index.d.ts +15 -0
- package/lib/manifest/index.d.ts.map +1 -0
- package/lib/manifest/index.js +53 -0
- package/lib/manifest/index.js.map +1 -0
- package/lib/manifest/index.mjs +18 -0
- package/lib/manifest/index.mjs.map +1 -0
- package/lib/manifest/list-view.d.mts +138 -0
- package/lib/manifest/list-view.d.mts.map +1 -0
- package/lib/manifest/list-view.d.ts +138 -0
- package/lib/manifest/list-view.d.ts.map +1 -0
- package/lib/manifest/list-view.js +109 -0
- package/lib/manifest/list-view.js.map +1 -0
- package/lib/manifest/list-view.mjs +105 -0
- package/lib/manifest/list-view.mjs.map +1 -0
- package/lib/manifest/manifest-builder.d.mts +110 -0
- package/lib/manifest/manifest-builder.d.mts.map +1 -0
- package/lib/manifest/manifest-builder.d.ts +110 -0
- package/lib/manifest/manifest-builder.d.ts.map +1 -0
- package/lib/manifest/manifest-builder.js +91 -0
- package/lib/manifest/manifest-builder.js.map +1 -0
- package/lib/manifest/manifest-builder.mjs +87 -0
- package/lib/manifest/manifest-builder.mjs.map +1 -0
- package/lib/manifest/manifest-function.d.mts +119 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -0
- package/lib/manifest/manifest-function.d.ts +119 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -0
- package/lib/manifest/manifest-function.js +85 -0
- package/lib/manifest/manifest-function.js.map +1 -0
- package/lib/manifest/manifest-function.mjs +81 -0
- package/lib/manifest/manifest-function.mjs.map +1 -0
- package/lib/manifest/rule.d.mts +128 -0
- package/lib/manifest/rule.d.mts.map +1 -0
- package/lib/manifest/rule.d.ts +128 -0
- package/lib/manifest/rule.d.ts.map +1 -0
- package/lib/manifest/rule.js +105 -0
- package/lib/manifest/rule.js.map +1 -0
- package/lib/manifest/rule.mjs +101 -0
- package/lib/manifest/rule.mjs.map +1 -0
- package/lib/manifest/sdui-page.d.mts +89 -0
- package/lib/manifest/sdui-page.d.mts.map +1 -0
- package/lib/manifest/sdui-page.d.ts +89 -0
- package/lib/manifest/sdui-page.d.ts.map +1 -0
- package/lib/manifest/sdui-page.js +83 -0
- package/lib/manifest/sdui-page.js.map +1 -0
- package/lib/manifest/sdui-page.mjs +79 -0
- package/lib/manifest/sdui-page.mjs.map +1 -0
- package/lib/manifest/validation.d.mts +116 -0
- package/lib/manifest/validation.d.mts.map +1 -0
- package/lib/manifest/validation.d.ts +116 -0
- package/lib/manifest/validation.d.ts.map +1 -0
- package/lib/manifest/validation.js +83 -0
- package/lib/manifest/validation.js.map +1 -0
- package/lib/manifest/validation.mjs +79 -0
- package/lib/manifest/validation.mjs.map +1 -0
- package/lib/sdui/actions.d.mts +25 -0
- package/lib/sdui/actions.d.mts.map +1 -0
- package/lib/sdui/actions.d.ts +25 -0
- package/lib/sdui/actions.d.ts.map +1 -0
- package/lib/sdui/actions.js +53 -0
- package/lib/sdui/actions.js.map +1 -0
- package/lib/sdui/actions.mjs +42 -0
- package/lib/sdui/actions.mjs.map +1 -0
- package/lib/sdui/component.d.mts +41 -0
- package/lib/sdui/component.d.mts.map +1 -0
- package/lib/sdui/component.d.ts +41 -0
- package/lib/sdui/component.d.ts.map +1 -0
- package/lib/sdui/component.js +95 -0
- package/lib/sdui/component.js.map +1 -0
- package/lib/sdui/component.mjs +91 -0
- package/lib/sdui/component.mjs.map +1 -0
- package/lib/sdui/components.d.mts +149 -0
- package/lib/sdui/components.d.mts.map +1 -0
- package/lib/sdui/components.d.ts +149 -0
- package/lib/sdui/components.d.ts.map +1 -0
- package/lib/sdui/components.js +303 -0
- package/lib/sdui/components.js.map +1 -0
- package/lib/sdui/components.mjs +298 -0
- package/lib/sdui/components.mjs.map +1 -0
- package/lib/sdui/conditions.d.mts +25 -0
- package/lib/sdui/conditions.d.mts.map +1 -0
- package/lib/sdui/conditions.d.ts +25 -0
- package/lib/sdui/conditions.d.ts.map +1 -0
- package/lib/sdui/conditions.js +47 -0
- package/lib/sdui/conditions.js.map +1 -0
- package/lib/sdui/conditions.mjs +35 -0
- package/lib/sdui/conditions.mjs.map +1 -0
- package/lib/sdui/directives.d.mts +18 -0
- package/lib/sdui/directives.d.mts.map +1 -0
- package/lib/sdui/directives.d.ts +18 -0
- package/lib/sdui/directives.d.ts.map +1 -0
- package/lib/sdui/directives.js +28 -0
- package/lib/sdui/directives.js.map +1 -0
- package/lib/sdui/directives.mjs +21 -0
- package/lib/sdui/directives.mjs.map +1 -0
- package/lib/sdui/index.d.mts +362 -0
- package/lib/sdui/index.d.mts.map +1 -0
- package/lib/sdui/index.d.ts +362 -0
- package/lib/sdui/index.d.ts.map +1 -0
- package/lib/sdui/index.js +375 -0
- package/lib/sdui/index.js.map +1 -0
- package/lib/sdui/index.mjs +199 -0
- package/lib/sdui/index.mjs.map +1 -0
- package/lib/sdui/props.d.mts +12 -0
- package/lib/sdui/props.d.mts.map +1 -0
- package/lib/sdui/props.d.ts +12 -0
- package/lib/sdui/props.d.ts.map +1 -0
- package/lib/sdui/props.js +25 -0
- package/lib/sdui/props.js.map +1 -0
- package/lib/sdui/props.mjs +21 -0
- package/lib/sdui/props.mjs.map +1 -0
- package/lib/sdui/render.d.mts +23 -0
- package/lib/sdui/render.d.mts.map +1 -0
- package/lib/sdui/render.d.ts +23 -0
- package/lib/sdui/render.d.ts.map +1 -0
- package/lib/sdui/render.js +40 -0
- package/lib/sdui/render.js.map +1 -0
- package/lib/sdui/render.mjs +37 -0
- package/lib/sdui/render.mjs.map +1 -0
- package/lib/sdui/state.d.mts +22 -0
- package/lib/sdui/state.d.mts.map +1 -0
- package/lib/sdui/state.d.ts +22 -0
- package/lib/sdui/state.d.ts.map +1 -0
- package/lib/sdui/state.js +57 -0
- package/lib/sdui/state.js.map +1 -0
- package/lib/sdui/state.mjs +53 -0
- package/lib/sdui/state.mjs.map +1 -0
- package/package.json +11 -1
- package/resources/draft-hires.d.mts +26 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +26 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/earnings-inputs.d.mts +99 -1
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +99 -1
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +6 -0
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +6 -0
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/files.d.mts +164 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +164 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +25 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +21 -0
- package/resources/files.mjs.map +1 -0
- package/resources/headcount-positions.d.mts +2 -2
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +2 -2
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/location-factors.d.mts +2 -2
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +2 -2
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/workers.d.mts +2 -2
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +2 -2
- package/resources/workers.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/internal/types.ts +6 -8
- package/src/lib/manifest/_helpers.ts +164 -0
- package/src/lib/manifest/app.ts +163 -0
- package/src/lib/manifest/category.ts +100 -0
- package/src/lib/manifest/custom-object-field-section.ts +93 -0
- package/src/lib/manifest/custom-object-page-layout.ts +427 -0
- package/src/lib/manifest/custom-object.ts +360 -0
- package/src/lib/manifest/field.ts +822 -0
- package/src/lib/manifest/index.ts +114 -0
- package/src/lib/manifest/list-view.ts +183 -0
- package/src/lib/manifest/manifest-builder.ts +140 -0
- package/src/lib/manifest/manifest-function.ts +151 -0
- package/src/lib/manifest/rule.ts +191 -0
- package/src/lib/manifest/sdui-page.ts +118 -0
- package/src/lib/manifest/validation.ts +150 -0
- package/src/lib/sdui/actions.ts +58 -0
- package/src/lib/sdui/component.ts +122 -0
- package/src/lib/sdui/components.ts +308 -0
- package/src/lib/sdui/conditions.ts +59 -0
- package/src/lib/sdui/directives.ts +42 -0
- package/src/lib/sdui/index.ts +365 -0
- package/src/lib/sdui/props.ts +32 -0
- package/src/lib/sdui/render.ts +58 -0
- package/src/lib/sdui/state.ts +60 -0
- package/src/resources/draft-hires.ts +31 -0
- package/src/resources/earnings-inputs.ts +127 -0
- package/src/resources/files.ts +203 -0
- package/src/resources/headcount-positions.ts +2 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/legal-entities.ts +1 -0
- package/src/resources/location-factors.ts +2 -0
- package/src/resources/shared.ts +1 -0
- package/src/resources/workers.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED from component-manifest.json
|
|
3
|
+
* Generated at: 2026-04-17T04:10:01.126Z
|
|
4
|
+
* Components: 128
|
|
5
|
+
*
|
|
6
|
+
* Do not edit manually. Run: npx tsx scripts/codegen-builder.ts
|
|
7
|
+
*/
|
|
8
|
+
function createComponent(type, eventMap = {}) {
|
|
9
|
+
return (props = {}) => {
|
|
10
|
+
const node = { type, props: {}, children: [] };
|
|
11
|
+
for (const [key, value] of Object.entries(props)) {
|
|
12
|
+
if (key === 'children') {
|
|
13
|
+
node.children = (Array.isArray(value) ? value : [value]).flat().filter(Boolean);
|
|
14
|
+
}
|
|
15
|
+
else if (key === 'visible') {
|
|
16
|
+
node.visible = value;
|
|
17
|
+
}
|
|
18
|
+
else if (key === 'watch') {
|
|
19
|
+
node.watch = value;
|
|
20
|
+
}
|
|
21
|
+
else if (key === 'repeat') {
|
|
22
|
+
node.repeat = value;
|
|
23
|
+
}
|
|
24
|
+
else if (eventMap[key]) {
|
|
25
|
+
node.on = node.on || {};
|
|
26
|
+
node.on[eventMap[key]] = value;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
node.props[key] = value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return node;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export const TextInput = createComponent('TextInput', {
|
|
36
|
+
onChange: 'change',
|
|
37
|
+
onBlur: 'blur',
|
|
38
|
+
onFocus: 'focus',
|
|
39
|
+
onClick: 'click',
|
|
40
|
+
onKeydown: 'keydown',
|
|
41
|
+
onKeyup: 'keyup',
|
|
42
|
+
onPaste: 'paste',
|
|
43
|
+
onMouseenter: 'mouseenter',
|
|
44
|
+
onMouseleave: 'mouseleave',
|
|
45
|
+
});
|
|
46
|
+
export const Select = createComponent('Select', {
|
|
47
|
+
onChange: 'change',
|
|
48
|
+
onBlur: 'blur',
|
|
49
|
+
onFocus: 'focus',
|
|
50
|
+
onPaste: 'paste',
|
|
51
|
+
onMenuToggle: 'menuToggle',
|
|
52
|
+
});
|
|
53
|
+
export const AppGroupSelect = createComponent('AppGroupSelect', {
|
|
54
|
+
onChange: 'change',
|
|
55
|
+
onBlur: 'blur',
|
|
56
|
+
onFocus: 'focus',
|
|
57
|
+
onPaste: 'paste',
|
|
58
|
+
onMenuToggle: 'menuToggle',
|
|
59
|
+
});
|
|
60
|
+
export const Checkbox = createComponent('Checkbox', { onChange: 'change', onBlur: 'blur' });
|
|
61
|
+
export const CheckboxGroup = createComponent('CheckboxGroup', { onChange: 'change', onBlur: 'blur' });
|
|
62
|
+
export const Email = createComponent('Email', {
|
|
63
|
+
onChange: 'change',
|
|
64
|
+
onBlur: 'blur',
|
|
65
|
+
onFocus: 'focus',
|
|
66
|
+
onClick: 'click',
|
|
67
|
+
onKeydown: 'keydown',
|
|
68
|
+
onKeyup: 'keyup',
|
|
69
|
+
onPaste: 'paste',
|
|
70
|
+
onMouseenter: 'mouseenter',
|
|
71
|
+
onMouseleave: 'mouseleave',
|
|
72
|
+
});
|
|
73
|
+
export const Number = createComponent('Number', {
|
|
74
|
+
onChange: 'change',
|
|
75
|
+
onBlur: 'blur',
|
|
76
|
+
onChangeRaw: 'changeRaw',
|
|
77
|
+
onChangeCalculationState: 'changeCalculationState',
|
|
78
|
+
});
|
|
79
|
+
export const Date = createComponent('Date', { onChange: 'change', onBlur: 'blur' });
|
|
80
|
+
export const DateRange = createComponent('DateRange', { onChange: 'change', onBlur: 'blur' });
|
|
81
|
+
export const DateInlineMulti = createComponent('DateInlineMulti', { onChange: 'change', onBlur: 'blur' });
|
|
82
|
+
export const Textarea = createComponent('Textarea', { onChange: 'change', onBlur: 'blur', onFocus: 'focus' });
|
|
83
|
+
export const Radio = createComponent('Radio', {
|
|
84
|
+
onChange: 'change',
|
|
85
|
+
onBlur: 'blur',
|
|
86
|
+
onMouseenter: 'mouseenter',
|
|
87
|
+
onMouseleave: 'mouseleave',
|
|
88
|
+
});
|
|
89
|
+
export const Phone = createComponent('Phone', {
|
|
90
|
+
onChange: 'change',
|
|
91
|
+
onBlur: 'blur',
|
|
92
|
+
onFocus: 'focus',
|
|
93
|
+
onClick: 'click',
|
|
94
|
+
onKeydown: 'keydown',
|
|
95
|
+
onKeyup: 'keyup',
|
|
96
|
+
onPaste: 'paste',
|
|
97
|
+
onMouseenter: 'mouseenter',
|
|
98
|
+
onMouseleave: 'mouseleave',
|
|
99
|
+
onCountryCodeChange: 'countryCodeChange',
|
|
100
|
+
});
|
|
101
|
+
export const Password = createComponent('Password', {
|
|
102
|
+
onChange: 'change',
|
|
103
|
+
onBlur: 'blur',
|
|
104
|
+
onFocus: 'focus',
|
|
105
|
+
onClick: 'click',
|
|
106
|
+
onKeydown: 'keydown',
|
|
107
|
+
onKeyup: 'keyup',
|
|
108
|
+
onPaste: 'paste',
|
|
109
|
+
onMouseenter: 'mouseenter',
|
|
110
|
+
onMouseleave: 'mouseleave',
|
|
111
|
+
onReveal: 'reveal',
|
|
112
|
+
});
|
|
113
|
+
export const Switch = createComponent('Switch', { onChange: 'change', onBlur: 'blur' });
|
|
114
|
+
export const FileDrop = createComponent('FileDrop', { onChange: 'change', onBlur: 'blur' });
|
|
115
|
+
export const TextAutoSuggest = createComponent('TextAutoSuggest', {
|
|
116
|
+
onChange: 'change',
|
|
117
|
+
onBlur: 'blur',
|
|
118
|
+
onFocus: 'focus',
|
|
119
|
+
onClick: 'click',
|
|
120
|
+
});
|
|
121
|
+
export const Currency = createComponent('Currency', { onChange: 'change', onBlur: 'blur' });
|
|
122
|
+
export const WorkEmail = createComponent('WorkEmail', {
|
|
123
|
+
onChange: 'change',
|
|
124
|
+
onBlur: 'blur',
|
|
125
|
+
onFocus: 'focus',
|
|
126
|
+
onClick: 'click',
|
|
127
|
+
onKeydown: 'keydown',
|
|
128
|
+
onKeyup: 'keyup',
|
|
129
|
+
onPaste: 'paste',
|
|
130
|
+
onMouseenter: 'mouseenter',
|
|
131
|
+
onMouseleave: 'mouseleave',
|
|
132
|
+
});
|
|
133
|
+
export const Percentage = createComponent('Percentage', { onChange: 'change', onBlur: 'blur' });
|
|
134
|
+
export const SegmentedControl = createComponent('SegmentedControl', { onChange: 'change', onBlur: 'blur' });
|
|
135
|
+
export const Time = createComponent('Time', { onChange: 'change', onBlur: 'blur' });
|
|
136
|
+
export const TimeRange = createComponent('TimeRange', { onChange: 'change', onBlur: 'blur' });
|
|
137
|
+
export const Timezone = createComponent('Timezone', { onChange: 'change', onBlur: 'blur', onFocus: 'focus' });
|
|
138
|
+
export const Slider = createComponent('Slider', {
|
|
139
|
+
onChange: 'change',
|
|
140
|
+
onBlur: 'blur',
|
|
141
|
+
onBeforeChange: 'beforeChange',
|
|
142
|
+
onAfterChange: 'afterChange',
|
|
143
|
+
});
|
|
144
|
+
export const RangeSlider = createComponent('RangeSlider', {
|
|
145
|
+
onChange: 'change',
|
|
146
|
+
onBeforeChange: 'beforeChange',
|
|
147
|
+
onAfterChange: 'afterChange',
|
|
148
|
+
onBlur: 'blur',
|
|
149
|
+
});
|
|
150
|
+
export const Masker = createComponent('Masker', { onChange: 'change', onBlur: 'blur' });
|
|
151
|
+
export const DaySelector = createComponent('DaySelector', { onChange: 'change' });
|
|
152
|
+
export const ColorPicker = createComponent('ColorPicker', { onChange: 'change', onBlur: 'blur' });
|
|
153
|
+
export const SelectableGroup = createComponent('SelectableGroup', { onChange: 'change' });
|
|
154
|
+
export const Ssn = createComponent('Ssn', { onChange: 'change', onBlur: 'blur' });
|
|
155
|
+
export const Sin = createComponent('Sin', { onChange: 'change', onBlur: 'blur' });
|
|
156
|
+
export const Signature = createComponent('Signature', { onChange: 'change' });
|
|
157
|
+
export const Survey = createComponent('Survey', { onChange: 'change' });
|
|
158
|
+
export const Tree = createComponent('Tree', { onChange: 'change', onFooterAction: 'footerAction' });
|
|
159
|
+
export const TreeSelect = createComponent('TreeSelect', { onChange: 'change' });
|
|
160
|
+
export const File = createComponent('File', { onChange: 'change', onDelete: 'delete' });
|
|
161
|
+
export const InputGroup = createComponent('InputGroup');
|
|
162
|
+
export const Field = createComponent('Field');
|
|
163
|
+
export const ActionCard = createComponent('ActionCard', {
|
|
164
|
+
onPressPrimary: 'pressPrimary',
|
|
165
|
+
onPressSecondary: 'pressSecondary',
|
|
166
|
+
});
|
|
167
|
+
export const Alert = createComponent('Alert', {
|
|
168
|
+
onPressPrimary: 'pressPrimary',
|
|
169
|
+
onPressSecondary: 'pressSecondary',
|
|
170
|
+
onDismiss: 'dismiss',
|
|
171
|
+
});
|
|
172
|
+
export const Avatar = createComponent('Avatar', { onPress: 'press' });
|
|
173
|
+
export const Badge = createComponent('Badge');
|
|
174
|
+
export const Chip = createComponent('Chip', { onDismiss: 'dismiss', onPress: 'press' });
|
|
175
|
+
export const Card = createComponent('Card', {
|
|
176
|
+
onEdit: 'edit',
|
|
177
|
+
onDelete: 'delete',
|
|
178
|
+
onAdd: 'add',
|
|
179
|
+
onClick: 'click',
|
|
180
|
+
onAction: 'action',
|
|
181
|
+
});
|
|
182
|
+
export const ContentLoader = createComponent('ContentLoader');
|
|
183
|
+
export const Divider = createComponent('Divider');
|
|
184
|
+
export const Icon = createComponent('Icon', { onPress: 'press' });
|
|
185
|
+
export const Label = createComponent('Label');
|
|
186
|
+
export const ListItem = createComponent('ListItem', { onPress: 'press' });
|
|
187
|
+
export const Modal = createComponent('Modal', { onClose: 'close' });
|
|
188
|
+
export const ModalFooter = createComponent('ModalFooter');
|
|
189
|
+
export const ProgressBar = createComponent('ProgressBar');
|
|
190
|
+
export const Skeleton = createComponent('Skeleton');
|
|
191
|
+
export const Spinner = createComponent('Spinner');
|
|
192
|
+
export const Stepper = createComponent('Stepper', { onClick: 'click' });
|
|
193
|
+
export const TextClip = createComponent('TextClip');
|
|
194
|
+
export const TextSnippet = createComponent('TextSnippet');
|
|
195
|
+
export const Tip = createComponent('Tip');
|
|
196
|
+
export const CheckList = createComponent('CheckList', { onChange: 'change' });
|
|
197
|
+
export const DistributionBar = createComponent('DistributionBar');
|
|
198
|
+
export const ImageViewer = createComponent('ImageViewer');
|
|
199
|
+
export const ObjectUI = createComponent('ObjectUI');
|
|
200
|
+
export const ObjectUITemplate = createComponent('ObjectUITemplate');
|
|
201
|
+
export const ObjectUIHeader = createComponent('ObjectUIHeader');
|
|
202
|
+
export const ObjectUIContent = createComponent('ObjectUIContent');
|
|
203
|
+
export const ObjectUIStats = createComponent('ObjectUIStats', { onActionClick: 'actionClick' });
|
|
204
|
+
export const SnackBar = createComponent('SnackBar', { onDismiss: 'dismiss' });
|
|
205
|
+
export const Video = createComponent('Video');
|
|
206
|
+
export const AvatarList = createComponent('AvatarList');
|
|
207
|
+
export const Image = createComponent('Image', { onPress: 'press', onLoad: 'load', onError: 'error' });
|
|
208
|
+
export const AtomsSeparator = createComponent('AtomsSeparator');
|
|
209
|
+
export const Carousel = createComponent('Carousel', { onDone: 'done' });
|
|
210
|
+
export const TableBasic = createComponent('TableBasic');
|
|
211
|
+
export const LocationCard = createComponent('LocationCard', {
|
|
212
|
+
onEdit: 'edit',
|
|
213
|
+
onDelete: 'delete',
|
|
214
|
+
onClick: 'click',
|
|
215
|
+
onAction: 'action',
|
|
216
|
+
});
|
|
217
|
+
export const LoaderCard = createComponent('LoaderCard');
|
|
218
|
+
export const LayoutCard = createComponent('LayoutCard', { onPress: 'press' });
|
|
219
|
+
export const AppGroupLoader = createComponent('AppGroupLoader');
|
|
220
|
+
export const ChartLoader = createComponent('ChartLoader');
|
|
221
|
+
export const ReportLoader = createComponent('ReportLoader');
|
|
222
|
+
export const ReportShareLoader = createComponent('ReportShareLoader');
|
|
223
|
+
export const ReportViewerLoader = createComponent('ReportViewerLoader');
|
|
224
|
+
export const SettingsLoader = createComponent('SettingsLoader');
|
|
225
|
+
export const ChipGroup = createComponent('ChipGroup', { onOverflowChange: 'overflowChange' });
|
|
226
|
+
export const ModalCloseButton = createComponent('ModalCloseButton');
|
|
227
|
+
export const Status = createComponent('Status');
|
|
228
|
+
export const ApiError = createComponent('ApiError');
|
|
229
|
+
export const Circle = createComponent('Circle');
|
|
230
|
+
export const CountDown = createComponent('CountDown');
|
|
231
|
+
export const Country = createComponent('Country');
|
|
232
|
+
export const ToggleableArrow = createComponent('ToggleableArrow');
|
|
233
|
+
export const TitleCaption = createComponent('TitleCaption');
|
|
234
|
+
export const AiIcon = createComponent('AiIcon');
|
|
235
|
+
export const Breadcrumb = createComponent('Breadcrumb', { onSelect: 'select' });
|
|
236
|
+
export const Button = createComponent('Button', {
|
|
237
|
+
onPress: 'press',
|
|
238
|
+
onPressWhileDisabled: 'pressWhileDisabled',
|
|
239
|
+
onMouseEnter: 'mouseEnter',
|
|
240
|
+
onMouseLeave: 'mouseLeave',
|
|
241
|
+
});
|
|
242
|
+
export const ButtonGroup = createComponent('ButtonGroup');
|
|
243
|
+
export const DraggableList = createComponent('DraggableList', {
|
|
244
|
+
onUpdate: 'update',
|
|
245
|
+
onRemove: 'remove',
|
|
246
|
+
onDragStart: 'dragStart',
|
|
247
|
+
onDragEnd: 'dragEnd',
|
|
248
|
+
});
|
|
249
|
+
export const Drawer = createComponent('Drawer', { onClose: 'close' });
|
|
250
|
+
export const Dropdown = createComponent('Dropdown', { onChange: 'change' });
|
|
251
|
+
export const ExpansionPanel = createComponent('ExpansionPanel', { onToggle: 'toggle' });
|
|
252
|
+
export const ExpansionPanelGroup = createComponent('ExpansionPanelGroup');
|
|
253
|
+
export const FloatingButton = createComponent('FloatingButton', {
|
|
254
|
+
onPress: 'press',
|
|
255
|
+
onPressWhileDisabled: 'pressWhileDisabled',
|
|
256
|
+
onMouseEnter: 'mouseEnter',
|
|
257
|
+
onMouseLeave: 'mouseLeave',
|
|
258
|
+
});
|
|
259
|
+
export const IconButton = createComponent('IconButton', {
|
|
260
|
+
onPress: 'press',
|
|
261
|
+
onPressWhileDisabled: 'pressWhileDisabled',
|
|
262
|
+
onMouseEnter: 'mouseEnter',
|
|
263
|
+
onMouseLeave: 'mouseLeave',
|
|
264
|
+
});
|
|
265
|
+
export const ItemNavigator = createComponent('ItemNavigator', { onNext: 'next', onPrevious: 'previous' });
|
|
266
|
+
export const Link = createComponent('Link', { onPress: 'press' });
|
|
267
|
+
export const MenuList = createComponent('MenuList', { onSelect: 'select' });
|
|
268
|
+
export const NestedList = createComponent('NestedList', { onToggle: 'toggle', onSelect: 'select' });
|
|
269
|
+
export const Paginate = createComponent('Paginate', { onChange: 'change' });
|
|
270
|
+
export const SelectableMenu = createComponent('SelectableMenu', { onChange: 'change' });
|
|
271
|
+
export const ShowMore = createComponent('ShowMore');
|
|
272
|
+
export const Tab = createComponent('Tab', { onChange: 'change' });
|
|
273
|
+
export const Heading = createComponent('Heading');
|
|
274
|
+
export const Text = createComponent('Text');
|
|
275
|
+
export const Box = createComponent('Box');
|
|
276
|
+
export const Grid = createComponent('Grid', {
|
|
277
|
+
onRowClick: 'rowClick',
|
|
278
|
+
onRowAction: 'rowAction',
|
|
279
|
+
onHeaderAction: 'headerAction',
|
|
280
|
+
});
|
|
281
|
+
export const HStack = createComponent('HStack');
|
|
282
|
+
export const LabelGroup = createComponent('LabelGroup');
|
|
283
|
+
export const Layout = createComponent('Layout');
|
|
284
|
+
export const PageContent = createComponent('PageContent');
|
|
285
|
+
export const PageHeader = createComponent('PageHeader');
|
|
286
|
+
export const PageAppLogo = createComponent('PageAppLogo');
|
|
287
|
+
export const PageFooter = createComponent('PageFooter', { onContinue: 'continue' });
|
|
288
|
+
export const Pane = createComponent('Pane', {
|
|
289
|
+
onCollapsedChange: 'collapsedChange',
|
|
290
|
+
onDismiss: 'dismiss',
|
|
291
|
+
onResize: 'resize',
|
|
292
|
+
});
|
|
293
|
+
export const Responsive = createComponent('Responsive');
|
|
294
|
+
export const SplitPane = createComponent('SplitPane');
|
|
295
|
+
export const VStack = createComponent('VStack');
|
|
296
|
+
export const CustomObjectGrid = createComponent('CustomObjectGrid');
|
|
297
|
+
export const ObjectListView = createComponent('ObjectListView');
|
|
298
|
+
//# sourceMappingURL=components.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.mjs","sourceRoot":"","sources":["../../src/lib/sdui/components.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgBH,SAAS,eAAe,CAAC,IAAY,EAAE,WAAqB,EAAE;IAC5D,OAAO,CAAC,QAAiC,EAAE,EAAY,EAAE;QACvD,MAAM,IAAI,GAAa,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACzD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACjD,IAAI,GAAG,KAAK,UAAU,EAAE,CAAC;gBACvB,IAAI,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,OAAO,CAAe,CAAC;YAChG,CAAC;iBAAM,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBAC7B,IAAI,CAAC,OAAO,GAAG,KAAK,CA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AM,cAAc,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface StateCondition {
|
|
2
|
+
$state: string;
|
|
3
|
+
eq?: unknown;
|
|
4
|
+
neq?: unknown;
|
|
5
|
+
gt?: number;
|
|
6
|
+
gte?: number;
|
|
7
|
+
lt?: number;
|
|
8
|
+
lte?: number;
|
|
9
|
+
not?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type OrCondition = {
|
|
12
|
+
$or: VisibilityCondition[];
|
|
13
|
+
};
|
|
14
|
+
export type VisibilityCondition = StateCondition | StateCondition[] | OrCondition;
|
|
15
|
+
export declare function eq(ref: unknown, value: unknown): StateCondition;
|
|
16
|
+
export declare function neq(ref: unknown, value: unknown): StateCondition;
|
|
17
|
+
export declare function gt(ref: unknown, value: number): StateCondition;
|
|
18
|
+
export declare function gte(ref: unknown, value: number): StateCondition;
|
|
19
|
+
export declare function lt(ref: unknown, value: number): StateCondition;
|
|
20
|
+
export declare function lte(ref: unknown, value: number): StateCondition;
|
|
21
|
+
export declare function truthy(ref: unknown): StateCondition;
|
|
22
|
+
export declare function falsy(ref: unknown): StateCondition;
|
|
23
|
+
export declare function and(...conditions: StateCondition[]): StateCondition[];
|
|
24
|
+
export declare function or(...conditions: VisibilityCondition[]): OrCondition;
|
|
25
|
+
//# sourceMappingURL=conditions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.d.mts","sourceRoot":"","sources":["../../src/lib/sdui/conditions.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,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|
10
|
+
}
|
|
11
|
+
export type OrCondition = {
|
|
12
|
+
$or: VisibilityCondition[];
|
|
13
|
+
};
|
|
14
|
+
export type VisibilityCondition = StateCondition | StateCondition[] | OrCondition;
|
|
15
|
+
export declare function eq(ref: unknown, value: unknown): StateCondition;
|
|
16
|
+
export declare function neq(ref: unknown, value: unknown): StateCondition;
|
|
17
|
+
export declare function gt(ref: unknown, value: number): StateCondition;
|
|
18
|
+
export declare function gte(ref: unknown, value: number): StateCondition;
|
|
19
|
+
export declare function lt(ref: unknown, value: number): StateCondition;
|
|
20
|
+
export declare function lte(ref: unknown, value: number): StateCondition;
|
|
21
|
+
export declare function truthy(ref: unknown): StateCondition;
|
|
22
|
+
export declare function falsy(ref: unknown): StateCondition;
|
|
23
|
+
export declare function and(...conditions: StateCondition[]): StateCondition[];
|
|
24
|
+
export declare function or(...conditions: VisibilityCondition[]): OrCondition;
|
|
25
|
+
//# sourceMappingURL=conditions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../src/lib/sdui/conditions.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,cAAc,EAAE,GAAG,WAAW,CAAC;AAMlF,wBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,cAAc,CAE/D;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,cAAc,CAEhE;AAED,wBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAE9D;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAE9D;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAEnD;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAElD;AAED,wBAAgB,GAAG,CAAC,GAAG,UAAU,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAErE;AAED,wBAAgB,EAAE,CAAC,GAAG,UAAU,EAAE,mBAAmB,EAAE,GAAG,WAAW,CAEpE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eq = eq;
|
|
4
|
+
exports.neq = neq;
|
|
5
|
+
exports.gt = gt;
|
|
6
|
+
exports.gte = gte;
|
|
7
|
+
exports.lt = lt;
|
|
8
|
+
exports.lte = lte;
|
|
9
|
+
exports.truthy = truthy;
|
|
10
|
+
exports.falsy = falsy;
|
|
11
|
+
exports.and = and;
|
|
12
|
+
exports.or = or;
|
|
13
|
+
const state_1 = require("./state.js");
|
|
14
|
+
function pathOf(ref) {
|
|
15
|
+
return (0, state_1.extractPath)(ref);
|
|
16
|
+
}
|
|
17
|
+
function eq(ref, value) {
|
|
18
|
+
return { $state: pathOf(ref), eq: value };
|
|
19
|
+
}
|
|
20
|
+
function neq(ref, value) {
|
|
21
|
+
return { $state: pathOf(ref), neq: value };
|
|
22
|
+
}
|
|
23
|
+
function gt(ref, value) {
|
|
24
|
+
return { $state: pathOf(ref), gt: value };
|
|
25
|
+
}
|
|
26
|
+
function gte(ref, value) {
|
|
27
|
+
return { $state: pathOf(ref), gte: value };
|
|
28
|
+
}
|
|
29
|
+
function lt(ref, value) {
|
|
30
|
+
return { $state: pathOf(ref), lt: value };
|
|
31
|
+
}
|
|
32
|
+
function lte(ref, value) {
|
|
33
|
+
return { $state: pathOf(ref), lte: value };
|
|
34
|
+
}
|
|
35
|
+
function truthy(ref) {
|
|
36
|
+
return { $state: pathOf(ref) };
|
|
37
|
+
}
|
|
38
|
+
function falsy(ref) {
|
|
39
|
+
return { $state: pathOf(ref), not: true };
|
|
40
|
+
}
|
|
41
|
+
function and(...conditions) {
|
|
42
|
+
return conditions;
|
|
43
|
+
}
|
|
44
|
+
function or(...conditions) {
|
|
45
|
+
return { $or: conditions };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=conditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../src/lib/sdui/conditions.ts"],"names":[],"mappings":";;AAoBA,gBAEC;AAED,kBAEC;AAED,gBAEC;AAED,kBAEC;AAED,gBAEC;AAED,kBAEC;AAED,wBAEC;AAED,sBAEC;AAED,kBAEC;AAED,gBAEC;AA1DD,sCAAsC;AAgBtC,SAAS,MAAM,CAAC,GAAY;IAC1B,OAAO,IAAA,mBAAW,EAAC,GAAG,CAAC,CAAC;AAC1B,CAAC;AAED,SAAgB,EAAE,CAAC,GAAY,EAAE,KAAc;IAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AAC5C,CAAC;AAED,SAAgB,GAAG,CAAC,GAAY,EAAE,KAAc;IAC9C,OAAO,EAAE,M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value) {
|
|
6
|
+
return { $state: pathOf(ref), eq: value };
|
|
7
|
+
}
|
|
8
|
+
export function neq(ref, value) {
|
|
9
|
+
return { $state: pathOf(ref), neq: value };
|
|
10
|
+
}
|
|
11
|
+
export function gt(ref, value) {
|
|
12
|
+
return { $state: pathOf(ref), gt: value };
|
|
13
|
+
}
|
|
14
|
+
export function gte(ref, value) {
|
|
15
|
+
return { $state: pathOf(ref), gte: value };
|
|
16
|
+
}
|
|
17
|
+
export function lt(ref, value) {
|
|
18
|
+
return { $state: pathOf(ref), lt: value };
|
|
19
|
+
}
|
|
20
|
+
export function lte(ref, value) {
|
|
21
|
+
return { $state: pathOf(ref), lte: value };
|
|
22
|
+
}
|
|
23
|
+
export function truthy(ref) {
|
|
24
|
+
return { $state: pathOf(ref) };
|
|
25
|
+
}
|
|
26
|
+
export function falsy(ref) {
|
|
27
|
+
return { $state: pathOf(ref), not: true };
|
|
28
|
+
}
|
|
29
|
+
export function and(...conditions) {
|
|
30
|
+
return conditions;
|
|
31
|
+
}
|
|
32
|
+
export function or(...conditions) {
|
|
33
|
+
return { $or: conditions };
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=conditions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.mjs","sourceRoot":"","sources":["../../src/lib/sdui/conditions.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE;AAgBtB,SAAS,MAAM,CAAC,GAAY;IAC1B,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,EAAE,CAAC,GAAY,EAAE,KAAc;IAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,GAAY,EAAE,KAAc;IAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,K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Item: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IndexRef {
|
|
9
|
+
$index: true;
|
|
10
|
+
}
|
|
11
|
+
export declare function $item(field: string): ItemRef;
|
|
12
|
+
export declare function $bindItem(field: string): BindItemRef;
|
|
13
|
+
export declare function $index(): IndexRef;
|
|
14
|
+
export declare function visible(condition: unknown, element: SpecNode): SpecNode;
|
|
15
|
+
export declare function repeat(stateRef: unknown, opts: {
|
|
16
|
+
key?: string;
|
|
17
|
+
}, childFn: (item: typeof $item, index: typeof $index, bindItem: typeof $bindItem) => SpecNode): SpecNode;
|
|
18
|
+
//# sourceMappingURL=directives.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directives.d.mts","sourceRoot":"","sources":["../../src/lib/sdui/directives.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,QAAQ,EAAE;AAGxB,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,IAAI,CAAC;CACd;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAEpD;AAED,wBAAgB,MAAM,IAAI,QAAQ,CAEjC;AAED,wBAAgB,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAEvE;AAED,wBAAgB,MAAM,CACpB,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EACtB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,MAAM,EAAE,QAAQ,EAAE,OAAO,SAAS,KAAK,QAAQ,GAC1F,QAAQ,CAMV"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SpecNode } from "./components.js";
|
|
2
|
+
export interface ItemRef {
|
|
3
|
+
$item: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BindItemRef {
|
|
6
|
+
$bindItem: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IndexRef {
|
|
9
|
+
$index: true;
|
|
10
|
+
}
|
|
11
|
+
export declare function $item(field: string): ItemRef;
|
|
12
|
+
export declare function $bindItem(field: string): BindItemRef;
|
|
13
|
+
export declare function $index(): IndexRef;
|
|
14
|
+
export declare function visible(condition: unknown, element: SpecNode): SpecNode;
|
|
15
|
+
export declare function repeat(stateRef: unknown, opts: {
|
|
16
|
+
key?: string;
|
|
17
|
+
}, childFn: (item: typeof $item, index: typeof $index, bindItem: typeof $bindItem) => SpecNode): SpecNode;
|
|
18
|
+
//# sourceMappingURL=directives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/lib/sdui/directives.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,QAAQ,EAAE;AAGxB,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,IAAI,CAAC;CACd;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAEpD;AAED,wBAAgB,MAAM,IAAI,QAAQ,CAEjC;AAED,wBAAgB,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAEvE;AAED,wBAAgB,MAAM,CACpB,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EACtB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,MAAM,EAAE,QAAQ,EAAE,OAAO,SAAS,KAAK,QAAQ,GAC1F,QAAQ,CAMV"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.$item = $item;
|
|
4
|
+
exports.$bindItem = $bindItem;
|
|
5
|
+
exports.$index = $index;
|
|
6
|
+
exports.visible = visible;
|
|
7
|
+
exports.repeat = repeat;
|
|
8
|
+
const state_1 = require("./state.js");
|
|
9
|
+
function $item(field) {
|
|
10
|
+
return { $item: field };
|
|
11
|
+
}
|
|
12
|
+
function $bindItem(field) {
|
|
13
|
+
return { $bindItem: field };
|
|
14
|
+
}
|
|
15
|
+
function $index() {
|
|
16
|
+
return { $index: true };
|
|
17
|
+
}
|
|
18
|
+
function visible(condition, element) {
|
|
19
|
+
return { ...element, visible: condition };
|
|
20
|
+
}
|
|
21
|
+
function repeat(stateRef, opts, childFn) {
|
|
22
|
+
const child = childFn($item, $index, $bindItem);
|
|
23
|
+
return {
|
|
24
|
+
...child,
|
|
25
|
+
repeat: { statePath: (0, state_1.extractPath)(stateRef), ...(opts.key ? { key: opts.key } : {}) },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=directives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directives.js","sourceRoot":"","sources":["../../src/lib/sdui/directives.ts"],"names":[],"mappings":";;AAeA,sBAEC;AAED,8BAEC;AAED,wBAEC;AAED,0BAEC;AAED,wBAUC;AAxCD,sCAAsC;AActC,SAAgB,KAAK,CAAC,KAAa;IACjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC;AAED,SAAgB,SAAS,CAAC,KAAa;IACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,SAAgB,MAAM;IACpB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAC;AAED,SAAgB,OAAO,CAAC,SAAkB,EAAE,OAAiB;IAC3D,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAC5C,CAAC;AAED,SAAgB,MAAM,CACpB,QAAiB,EACjB,IAAsB,EACtB,OAA2F;IAE3F,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO;QACL,GAAG,KAAK;QACR,MAAM,EAAE,EAAE,SAAS,EAAE,IAAA,mBAAW,EAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;KACrF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { extractPath } from "./state.mjs";
|
|
2
|
+
export function $item(field) {
|
|
3
|
+
return { $item: field };
|
|
4
|
+
}
|
|
5
|
+
export function $bindItem(field) {
|
|
6
|
+
return { $bindItem: field };
|
|
7
|
+
}
|
|
8
|
+
export function $index() {
|
|
9
|
+
return { $index: true };
|
|
10
|
+
}
|
|
11
|
+
export function visible(condition, element) {
|
|
12
|
+
return { ...element, visible: condition };
|
|
13
|
+
}
|
|
14
|
+
export function repeat(stateRef, opts, childFn) {
|
|
15
|
+
const child = childFn($item, $index, $bindItem);
|
|
16
|
+
return {
|
|
17
|
+
...child,
|
|
18
|
+
repeat: { statePath: extractPath(stateRef), ...(opts.key ? { key: opts.key } : {}) },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=directives.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directives.mjs","sourceRoot":"","sources":["../../src/lib/sdui/directives.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;AActB,MAAM,UAAU,KAAK,CAAC,KAAa;IACjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,SAAkB,EAAE,OAAiB;IAC3D,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,MAAM,CACpB,QAAiB,EACjB,IAAsB,EACtB,OAA2F;IAE3F,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO;QACL,GAAG,KAAK;QACR,MAAM,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;KACrF,CAAC;AACJ,CAAC"}
|