@wemake4u/form-player-se 1.0.38 → 1.0.40

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.
Files changed (70) hide show
  1. package/esm2022/lib/builtIn/builtIn.mjs +24 -0
  2. package/esm2022/lib/builtIn/console.json +253 -0
  3. package/esm2022/lib/builtIn/dialog.json +109 -0
  4. package/esm2022/lib/builtIn/feel.json +26 -0
  5. package/esm2022/lib/builtIn/form.json +172 -0
  6. package/esm2022/lib/builtIn/formGroup.json +218 -0
  7. package/esm2022/lib/builtIn/formatter.json +112 -0
  8. package/esm2022/lib/builtIn/function.json +53 -0
  9. package/esm2022/lib/builtIn/register.json +14 -0
  10. package/esm2022/lib/components/setFilter/setFilter.component.mjs +18 -3
  11. package/esm2022/lib/controls/table.mjs +4 -1
  12. package/esm2022/lib/directives/accordionpanel.directive.mjs +10 -5
  13. package/esm2022/lib/directives/alert.directive.mjs +44 -0
  14. package/esm2022/lib/directives/collapse.directive.mjs +22 -12
  15. package/esm2022/lib/directives/collapsepatch.directive.mjs +2 -1
  16. package/esm2022/lib/directives/datetime.directive.mjs +18 -21
  17. package/esm2022/lib/directives/dropdown.directive.mjs +31 -16
  18. package/esm2022/lib/directives/grid.directive.mjs +10 -8
  19. package/esm2022/lib/directives/readonly.directive.mjs +10 -9
  20. package/esm2022/lib/directives/register.directive.mjs +8 -10
  21. package/esm2022/lib/directives/required.directive.mjs +57 -0
  22. package/esm2022/lib/directives/tabcontrol.directive.mjs +10 -9
  23. package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +21 -4
  24. package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +44 -21
  25. package/esm2022/lib/dynamic-host/dynamic-host.component.mjs +32 -10
  26. package/esm2022/lib/services/event.service.mjs +17 -6
  27. package/esm2022/lib/services/grid.service.mjs +45 -15
  28. package/esm2022/lib/services/listener.service.mjs +23 -0
  29. package/esm2022/lib/services/programmability.service.mjs +54 -38
  30. package/esm2022/lib/services/scope.service.mjs +6 -1
  31. package/esm2022/lib/services/status.service.mjs +10 -5
  32. package/esm2022/lib/services/subscribe.service.mjs +54 -0
  33. package/esm2022/lib/services/validation.service.mjs +11 -2
  34. package/esm2022/lib/utils/deepEqual.mjs +46 -0
  35. package/esm2022/lib/utils/observable.mjs +7 -0
  36. package/esm2022/lib/utils/proxy.mjs +28 -1
  37. package/esm2022/lib/utils/resolveRefs.mjs +67 -0
  38. package/esm2022/public-api.mjs +5 -1
  39. package/fesm2022/wemake4u-form-player-se.mjs +1689 -214
  40. package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
  41. package/lib/builtIn/builtIn.d.ts +32 -0
  42. package/lib/components/setFilter/setFilter.component.d.ts +1 -0
  43. package/lib/controls/table.d.ts +1 -0
  44. package/lib/directives/accordionpanel.directive.d.ts +4 -2
  45. package/lib/directives/alert.directive.d.ts +15 -0
  46. package/lib/directives/collapse.directive.d.ts +5 -3
  47. package/lib/directives/datetime.directive.d.ts +7 -8
  48. package/lib/directives/dropdown.directive.d.ts +6 -3
  49. package/lib/directives/grid.directive.d.ts +4 -3
  50. package/lib/directives/readonly.directive.d.ts +3 -4
  51. package/lib/directives/register.directive.d.ts +3 -3
  52. package/lib/directives/required.directive.d.ts +17 -0
  53. package/lib/directives/tabcontrol.directive.d.ts +5 -6
  54. package/lib/dynamic-fields/dynamic-fields.component.d.ts +1 -0
  55. package/lib/dynamic-form/dynamic-form.component.d.ts +4 -1
  56. package/lib/dynamic-host/dynamic-host.component.d.ts +6 -2
  57. package/lib/services/event.service.d.ts +8 -2
  58. package/lib/services/grid.service.d.ts +6 -2
  59. package/lib/services/listener.service.d.ts +11 -0
  60. package/lib/services/programmability.service.d.ts +8 -9
  61. package/lib/services/scope.service.d.ts +1 -0
  62. package/lib/services/status.service.d.ts +5 -1
  63. package/lib/services/subscribe.service.d.ts +14 -0
  64. package/lib/services/validation.service.d.ts +5 -2
  65. package/lib/utils/deepEqual.d.ts +1 -0
  66. package/lib/utils/observable.d.ts +2 -0
  67. package/lib/utils/proxy.d.ts +2 -0
  68. package/lib/utils/resolveRefs.d.ts +12 -0
  69. package/package.json +1 -1
  70. package/public-api.d.ts +4 -0
@@ -0,0 +1,24 @@
1
+ import consoleFn from './console.json';
2
+ import formGroupFn from './formGroup.json';
3
+ import dialogFn from './dialog.json';
4
+ import functionFn from './function.json';
5
+ import formatterFn from './formatter.json';
6
+ import registerFn from './register.json';
7
+ import formFn from './form.json';
8
+ import feelFn from './feel.json';
9
+ export const builtIn = [
10
+ consoleFn,
11
+ formGroupFn,
12
+ {
13
+ "name": "fn",
14
+ "entries": [
15
+ ...dialogFn,
16
+ ...functionFn,
17
+ ...formatterFn,
18
+ ...registerFn,
19
+ ...formFn,
20
+ ...feelFn
21
+ ]
22
+ }
23
+ ];
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbHRJbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zaXJpby9zcmMvbGliL2J1aWx0SW4vYnVpbHRJbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFNBQVMsTUFBTSxnQkFBZ0IsQ0FBQztBQUN2QyxPQUFPLFdBQVcsTUFBTSxrQkFBa0IsQ0FBQztBQUMzQyxPQUFPLFFBQVEsTUFBTSxlQUFlLENBQUM7QUFDckMsT0FBTyxVQUFVLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxXQUFXLE1BQU0sa0JBQWtCLENBQUM7QUFDM0MsT0FBTyxVQUFVLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxNQUFNLE1BQU0sYUFBYSxDQUFDO0FBQ2pDLE9BQU8sTUFBTSxNQUFNLGFBQWEsQ0FBQztBQUVqQyxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUc7SUFDckIsU0FBUztJQUNULFdBQVc7SUFDWDtRQUNFLE1BQU0sRUFBRSxJQUFJO1FBQ1osU0FBUyxFQUFFO1lBQ1QsR0FBRyxRQUFRO1lBQ1gsR0FBRyxVQUFVO1lBQ2IsR0FBRyxXQUFXO1lBQ2QsR0FBRyxVQUFVO1lBQ2IsR0FBRyxNQUFNO1lBQ1QsR0FBRyxNQUFNO1NBQ1Y7S0FDRjtDQUNGLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY29uc29sZUZuIGZyb20gJy4vY29uc29sZS5qc29uJztcclxuaW1wb3J0IGZvcm1Hcm91cEZuIGZyb20gJy4vZm9ybUdyb3VwLmpzb24nO1xyXG5pbXBvcnQgZGlhbG9nRm4gZnJvbSAnLi9kaWFsb2cuanNvbic7XHJcbmltcG9ydCBmdW5jdGlvbkZuIGZyb20gJy4vZnVuY3Rpb24uanNvbic7XHJcbmltcG9ydCBmb3JtYXR0ZXJGbiBmcm9tICcuL2Zvcm1hdHRlci5qc29uJztcclxuaW1wb3J0IHJlZ2lzdGVyRm4gZnJvbSAnLi9yZWdpc3Rlci5qc29uJztcclxuaW1wb3J0IGZvcm1GbiBmcm9tICcuL2Zvcm0uanNvbic7XHJcbmltcG9ydCBmZWVsRm4gZnJvbSAnLi9mZWVsLmpzb24nO1xyXG5cclxuZXhwb3J0IGNvbnN0IGJ1aWx0SW4gPSBbXHJcbiAgY29uc29sZUZuLFxyXG4gIGZvcm1Hcm91cEZuLFxyXG4gIHtcclxuICAgIFwibmFtZVwiOiBcImZuXCIsXHJcbiAgICBcImVudHJpZXNcIjogW1xyXG4gICAgICAuLi5kaWFsb2dGbixcclxuICAgICAgLi4uZnVuY3Rpb25GbixcclxuICAgICAgLi4uZm9ybWF0dGVyRm4sXHJcbiAgICAgIC4uLnJlZ2lzdGVyRm4sXHJcbiAgICAgIC4uLmZvcm1GbixcclxuICAgICAgLi4uZmVlbEZuXHJcbiAgICBdXHJcbiAgfVxyXG5dO1xyXG4iXX0=
@@ -0,0 +1,253 @@
1
+ {
2
+ "name": "console",
3
+ "detail": "Console API",
4
+ "info": "Provides access to the browser or runtime debugging console.\n\n---\n\n### Description\n\nThis API is used for logging messages, inspecting objects, and debugging application execution at runtime.\n\n---\n\n### Examples\n\n```js\nconsole.log(\"Application started\");\nconsole.error(\"Unexpected error\");\n```",
5
+ "entries": [
6
+ {
7
+ "name": "log",
8
+ "type": "function",
9
+ "detail": "Outputs a message to the console",
10
+ "info": "Writes one or more values to the console.\n\n---\n\n### Function signature\n\n```\nlog(message?: any, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.log(\"Hello world\");\nconsole.log(\"Value:\", 42);\n```",
11
+ "params": [
12
+ {
13
+ "name": "message",
14
+ "type": "any",
15
+ "optional": true
16
+ },
17
+ {
18
+ "name": "optionalParams",
19
+ "type": "any[]",
20
+ "varArgs": true
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "error",
26
+ "type": "function",
27
+ "detail": "Outputs an error message",
28
+ "info": "Writes an error message to the console.\n\n---\n\n### Function signature\n\n```\nerror(message?: any, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.error(\"Operation failed\");\n```",
29
+ "params": [
30
+ {
31
+ "name": "message",
32
+ "type": "any",
33
+ "optional": true
34
+ },
35
+ {
36
+ "name": "optionalParams",
37
+ "type": "any[]",
38
+ "varArgs": true
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "name": "warn",
44
+ "type": "function",
45
+ "detail": "Outputs a warning message",
46
+ "info": "Writes a warning message to the console.\n\n---\n\n### Function signature\n\n```\nwarn(message?: any, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.warn(\"Deprecated API used\");\n```",
47
+ "params": [
48
+ {
49
+ "name": "message",
50
+ "type": "any",
51
+ "optional": true
52
+ },
53
+ {
54
+ "name": "optionalParams",
55
+ "type": "any[]",
56
+ "varArgs": true
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "name": "info",
62
+ "type": "function",
63
+ "detail": "Outputs an informational message",
64
+ "info": "Writes an informational message to the console.\n\n---\n\n### Function signature\n\n```\ninfo(message?: any, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.info(\"User logged in\");\n```",
65
+ "params": [
66
+ {
67
+ "name": "message",
68
+ "type": "any",
69
+ "optional": true
70
+ },
71
+ {
72
+ "name": "optionalParams",
73
+ "type": "any[]",
74
+ "varArgs": true
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "debug",
80
+ "type": "function",
81
+ "detail": "Outputs a debug message",
82
+ "info": "Writes a debug-level message to the console.\n\n---\n\n### Function signature\n\n```\ndebug(message?: any, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.debug(\"Debug value\", obj);\n```",
83
+ "params": [
84
+ {
85
+ "name": "message",
86
+ "type": "any",
87
+ "optional": true
88
+ },
89
+ {
90
+ "name": "optionalParams",
91
+ "type": "any[]",
92
+ "varArgs": true
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "name": "table",
98
+ "type": "function",
99
+ "detail": "Displays tabular data",
100
+ "info": "Displays tabular data as a table.\n\n---\n\n### Function signature\n\n```\ntable(tabularData: any, properties?: string[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.table([{ id: 1, name: \"Alice\" }, { id: 2, name: \"Bob\" }]);\n```",
101
+ "params": [
102
+ {
103
+ "name": "tabularData",
104
+ "type": "any"
105
+ },
106
+ {
107
+ "name": "properties",
108
+ "type": "string[]",
109
+ "optional": true
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "name": "group",
115
+ "type": "function",
116
+ "detail": "Creates a new inline group",
117
+ "info": "Groups subsequent console messages.\n\n---\n\n### Function signature\n\n```\ngroup(label?: any): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.group(\"Initialization\");\nconsole.log(\"Step 1\");\nconsole.groupEnd();\n```",
118
+ "params": [
119
+ {
120
+ "name": "label",
121
+ "type": "any",
122
+ "optional": true
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "name": "groupCollapsed",
128
+ "type": "function",
129
+ "detail": "Creates a collapsed group",
130
+ "info": "Groups subsequent console messages in a collapsed state.\n\n---\n\n### Function signature\n\n```\ngroupCollapsed(label?: any): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.groupCollapsed(\"Details\");\nconsole.log(\"Hidden by default\");\nconsole.groupEnd();\n```",
131
+ "params": [
132
+ {
133
+ "name": "label",
134
+ "type": "any",
135
+ "optional": true
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ "name": "groupEnd",
141
+ "type": "function",
142
+ "detail": "Ends the current group",
143
+ "info": "Closes the most recently opened console group.\n\n---\n\n### Function signature\n\n```\ngroupEnd(): void\n```",
144
+ "params": []
145
+ },
146
+ {
147
+ "name": "clear",
148
+ "type": "function",
149
+ "detail": "Clears the console",
150
+ "info": "Clears all messages from the console output.\n\n---\n\n### Function signature\n\n```\nclear(): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.clear();\n```",
151
+ "params": []
152
+ },
153
+ {
154
+ "name": "time",
155
+ "type": "function",
156
+ "detail": "Starts a timer",
157
+ "info": "Starts a named timer.\n\n---\n\n### Function signature\n\n```\ntime(label?: string): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.time(\"load\");\n```",
158
+ "params": [
159
+ {
160
+ "name": "label",
161
+ "type": "string",
162
+ "optional": true
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "name": "timeEnd",
168
+ "type": "function",
169
+ "detail": "Stops a timer",
170
+ "info": "Stops a previously started timer and logs the elapsed time.\n\n---\n\n### Function signature\n\n```\ntimeEnd(label?: string): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.timeEnd(\"load\");\n```",
171
+ "params": [
172
+ {
173
+ "name": "label",
174
+ "type": "string",
175
+ "optional": true
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "name": "timeLog",
181
+ "type": "function",
182
+ "detail": "Logs the current timer value",
183
+ "info": "Logs the current value of a running timer.\n\n---\n\n### Function signature\n\n```\ntimeLog(label?: string, ...data: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.timeLog(\"load\", \"step completed\");\n```",
184
+ "params": [
185
+ {
186
+ "name": "label",
187
+ "type": "string",
188
+ "optional": true
189
+ },
190
+ {
191
+ "name": "data",
192
+ "type": "any[]",
193
+ "varArgs": true
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "name": "assert",
199
+ "type": "function",
200
+ "detail": "Logs a message if an assertion fails",
201
+ "info": "Logs an error message when a condition evaluates to false.\n\n---\n\n### Function signature\n\n```\nassert(condition: boolean, message?: string, ...optionalParams: any[]): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.assert(user != null, \"User must be defined\");\n```",
202
+ "params": [
203
+ {
204
+ "name": "condition",
205
+ "type": "boolean"
206
+ },
207
+ {
208
+ "name": "message",
209
+ "type": "string",
210
+ "optional": true
211
+ },
212
+ {
213
+ "name": "optionalParams",
214
+ "type": "any[]",
215
+ "varArgs": true
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "name": "count",
221
+ "type": "function",
222
+ "detail": "Logs the number of times called",
223
+ "info": "Logs the number of times this method has been called with the same label.\n\n---\n\n### Function signature\n\n```\ncount(label?: string): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.count(\"render\");\n```",
224
+ "params": [
225
+ {
226
+ "name": "label",
227
+ "type": "string",
228
+ "optional": true
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "name": "countReset",
234
+ "type": "function",
235
+ "detail": "Resets a counter",
236
+ "info": "Resets the counter associated with the given label.\n\n---\n\n### Function signature\n\n```\ncountReset(label?: string): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.countReset(\"render\");\n```",
237
+ "params": [
238
+ {
239
+ "name": "label",
240
+ "type": "string",
241
+ "optional": true
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "name": "trace",
247
+ "type": "function",
248
+ "detail": "Outputs a stack trace",
249
+ "info": "Prints a stack trace showing the execution path.\n\n---\n\n### Function signature\n\n```\ntrace(): void\n```\n\n---\n\n### Examples\n\n```js\nconsole.trace(\"Trace here\");\n```",
250
+ "params": []
251
+ }
252
+ ]
253
+ }
@@ -0,0 +1,109 @@
1
+ [
2
+ {
3
+ "name": "openDialog",
4
+ "type": "function",
5
+ "detail": "Opens a dialog using a form schema",
6
+ "info": "Opens a dialog using the provided form schema.\n\n---\n\n### Function signature\n\n```\nopenDialog(formSchema: any, options?: FormDialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.openDialog(formSchema);\n```\n\n```js\ndialog.openDialog(formSchema, {\n title: \"Custom form\",\n type: \"info\",\n size: \"lg\",\n isDrawer: false,\n closeButton: true,\n buttons: \"OKCancel\",\n showNav: false,\n showNavButton: false,\n showProgress: false,\n showFormTitle: true\n});\n```",
7
+ "params": [
8
+ {
9
+ "name": "formSchema",
10
+ "type": "any"
11
+ },
12
+ {
13
+ "name": "options",
14
+ "type": "FormDialogOptions",
15
+ "optional": true
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "name": "alert",
21
+ "type": "function",
22
+ "detail": "Displays an alert dialog",
23
+ "info": "Displays an alert dialog with a warning message.\n\n---\n\n### Function signature\n\n```\nalert(text: string, options?: DialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.alert(\"Invalid input\");\n```\n\n```js\ndialog.alert(\"Invalid input\", {\n title: \"Warning\",\n type: \"warning\",\n size: \"md\",\n isDrawer: false,\n closeButton: true,\n buttons: \"OK\",\n onResult: result => {\n console.log(result.action);\n }\n});\n```",
24
+ "params": [
25
+ {
26
+ "name": "text",
27
+ "type": "string"
28
+ },
29
+ {
30
+ "name": "options",
31
+ "type": "DialogOptions",
32
+ "optional": true
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "name": "info",
38
+ "type": "function",
39
+ "detail": "Displays an information dialog",
40
+ "info": "Displays an informational dialog to the user.\n\n---\n\n### Function signature\n\n```\ninfo(text: string, options?: DialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.info(\"Profile updated\");\n```\n\n```js\ndialog.info(\"Profile updated\", {\n title: \"Information\",\n type: \"info\",\n size: \"sm\",\n isDrawer: false,\n closeButton: true,\n buttons: \"OK\",\n onResult: result => {\n console.log(\"Dialog closed\");\n }\n});\n```",
41
+ "params": [
42
+ {
43
+ "name": "text",
44
+ "type": "string"
45
+ },
46
+ {
47
+ "name": "options",
48
+ "type": "DialogOptions",
49
+ "optional": true
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "name": "confirm",
55
+ "type": "function",
56
+ "detail": "Displays a confirmation dialog",
57
+ "info": "Displays a dialog asking the user to confirm or reject an action.\n\n---\n\n### Function signature\n\n```\nconfirm(text: string, options?: DialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.confirm(\"Delete item?\");\n```\n\n```js\ndialog.confirm(\"Delete item?\", {\n title: \"Confirmation\",\n type: \"info\",\n size: \"md\",\n isDrawer: false,\n closeButton: false,\n buttons: \"YesNo\",\n onResult: result => {\n if (result.action === \"Yes\") {\n // confirmed\n }\n }\n});\n```",
58
+ "params": [
59
+ {
60
+ "name": "text",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "options",
65
+ "type": "DialogOptions",
66
+ "optional": true
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "name": "show",
72
+ "type": "function",
73
+ "detail": "Displays a generic message dialog",
74
+ "info": "Displays a generic informational dialog.\n\n---\n\n### Function signature\n\n```\nshow(text: string, options?: DialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.show(\"Welcome\");\n```\n\n```js\ndialog.show(\"Welcome\", {\n title: \"Welcome\",\n type: \"info\",\n size: \"md\",\n isDrawer: false,\n closeButton: true,\n buttons: \"OK\"\n});\n```",
75
+ "params": [
76
+ {
77
+ "name": "text",
78
+ "type": "string"
79
+ },
80
+ {
81
+ "name": "options",
82
+ "type": "DialogOptions",
83
+ "optional": true
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "prompt",
89
+ "type": "function",
90
+ "detail": "Displays an input dialog",
91
+ "info": "Displays a dialog containing a text input field and returns the entered value.\n\n---\n\n### Function signature\n\n```\nprompt(text: string, defaultValue?: string, options?: DialogOptions): void\n```\n\n---\n\n### Examples\n\n```js\ndialog.prompt(\"Enter your name\");\n```\n\n```js\ndialog.prompt(\"Enter your name\", \"\", {\n title: \"User input\",\n type: \"info\",\n size: \"md\",\n isDrawer: false,\n closeButton: true,\n buttons: \"OKCancel\",\n onResult: result => {\n if (result.action === \"OK\") {\n console.log(result.value);\n }\n }\n});\n```",
92
+ "params": [
93
+ {
94
+ "name": "text",
95
+ "type": "string"
96
+ },
97
+ {
98
+ "name": "defaultValue",
99
+ "type": "string",
100
+ "optional": true
101
+ },
102
+ {
103
+ "name": "options",
104
+ "type": "DialogOptions",
105
+ "optional": true
106
+ }
107
+ ]
108
+ }
109
+ ]
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "name": "isValidExpression",
4
+ "type": "function",
5
+ "detail": "Validates a FEEL expression",
6
+ "info": "Checks whether the provided FEEL expression is syntactically valid.\n\n---\n\n### Function signature\n\n```\nisValidExpression(expression: string): boolean\n```\n\n---\n\n### Notes\n\nReturns `true` if the expression is empty or syntactically valid. Returns `false` if the expression cannot be parsed or evaluated.\n\n---\n\n### Examples\n\n```feel\nisValidExpression(\"1 + 2\")\n// true\n\nisValidExpression(\"amount > 100\")\n// true\n\nisValidExpression(\"1 + \")\n// false\n\nisValidExpression(\"\")\n// true\n```",
7
+ "params": [
8
+ {
9
+ "name": "expression",
10
+ "type": "string"
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "name": "isValidUnaryTest",
16
+ "type": "function",
17
+ "detail": "Validates a FEEL unary test",
18
+ "info": "Checks whether the provided FEEL unary test expression is syntactically valid.\n\n---\n\n### Function signature\n\n```\nisValidUnaryTest(expression: string): boolean\n```\n\n---\n\n### Notes\n\nReturns `true` if the unary test is empty or syntactically valid. Returns `false` if the unary test expression is invalid.\n\n---\n\n### Examples\n\n```feel\nisValidUnaryTest(\"> 10\")\n// true\n\nisValidUnaryTest(\"[1..5]\")\n// true\n\nisValidUnaryTest(\">\")\n// false\n\nisValidUnaryTest(\"\")\n// true\n```",
19
+ "params": [
20
+ {
21
+ "name": "expression",
22
+ "type": "string"
23
+ }
24
+ ]
25
+ }
26
+ ]
@@ -0,0 +1,172 @@
1
+ [
2
+ {
3
+ "name": "set",
4
+ "type": "function",
5
+ "detail": "Sets a value at the specified path",
6
+ "info": "Sets the value of a control identified by the given path.\n\n---\n\n### Function signature\n\n```\nset(path: Path, value: any, pathOptions?: PathOptions): boolean\n```\n\n---\n\n### Examples\n\n```feel\nset(\"user.name\", \"Mario\")\n\nset([\"items\", 0, \"price\"], 100)\n```",
7
+ "params": [
8
+ {
9
+ "name": "path",
10
+ "type": "Path"
11
+ },
12
+ {
13
+ "name": "value",
14
+ "type": "any"
15
+ },
16
+ {
17
+ "name": "pathOptions",
18
+ "type": "PathOptions",
19
+ "optional": true
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "get",
25
+ "type": "function",
26
+ "detail": "Gets a control by path",
27
+ "info": "Returns the control value identified by the given path or undefined if it does not exist.\n\n---\n\n### Function signature\n\n```\nget(path: Path, pathOptions?: PathOptions): any\n```\n\n---\n\n### Examples\n\n```feel\nget(\"user.name\")\n\nget([\"items\", 0, \"price\"])\n```",
28
+ "params": [
29
+ {
30
+ "name": "path",
31
+ "type": "Path"
32
+ },
33
+ {
34
+ "name": "pathOptions",
35
+ "type": "PathOptions",
36
+ "optional": true
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "status",
42
+ "type": "function",
43
+ "detail": "Gets the control status",
44
+ "info": "Returns the validation status of the control identified by the given path.\n\n---\n\n### Function signature\n\n```\nstatus(path: Path, pathOptions?: PathOptions): FormControlStatus | undefined\n```\n\n---\n\n### Examples\n\n```feel\nstatus(\"user.email\")\n// \"VALID\", \"INVALID\", \"PENDING\" or \"DISABLED\"\n```",
45
+ "params": [
46
+ {
47
+ "name": "path",
48
+ "type": "Path"
49
+ },
50
+ {
51
+ "name": "pathOptions",
52
+ "type": "PathOptions",
53
+ "optional": true
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "prepend",
59
+ "type": "function",
60
+ "detail": "Prepends a value to a collection",
61
+ "info": "Prepends a value to an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\nprepend(path: Path, value: any, pathOptions?: PathOptions): boolean\n```\n\n---\n\n### Examples\n\n```feel\nprepend(\"items\", { name: \"Item A\", price: 10 })\n```",
62
+ "params": [
63
+ {
64
+ "name": "path",
65
+ "type": "Path"
66
+ },
67
+ {
68
+ "name": "value",
69
+ "type": "any"
70
+ },
71
+ {
72
+ "name": "pathOptions",
73
+ "type": "PathOptions",
74
+ "optional": true
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "append",
80
+ "type": "function",
81
+ "detail": "Appends a value to a collection",
82
+ "info": "Appends a value to an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\nappend(path: Path, value: any, pathOptions?: PathOptions): boolean\n```\n\n---\n\n### Examples\n\n```feel\nappend(\"items\", { name: \"Item B\", price: 20 })\n```",
83
+ "params": [
84
+ {
85
+ "name": "path",
86
+ "type": "Path"
87
+ },
88
+ {
89
+ "name": "value",
90
+ "type": "any"
91
+ },
92
+ {
93
+ "name": "pathOptions",
94
+ "type": "PathOptions",
95
+ "optional": true
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "name": "insert",
101
+ "type": "function",
102
+ "detail": "Inserts a value at a specific index",
103
+ "info": "Inserts a value at the specified index of an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\ninsert(path: Path, index: number, value: any, pathOptions?: PathOptions): boolean\n```\n\n---\n\n### Examples\n\n```feel\ninsert(\"items\", 1, { name: \"Inserted item\" })\n```",
104
+ "params": [
105
+ {
106
+ "name": "path",
107
+ "type": "Path"
108
+ },
109
+ {
110
+ "name": "index",
111
+ "type": "number"
112
+ },
113
+ {
114
+ "name": "value",
115
+ "type": "any"
116
+ },
117
+ {
118
+ "name": "pathOptions",
119
+ "type": "PathOptions",
120
+ "optional": true
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "remove",
126
+ "type": "function",
127
+ "detail": "Removes a value at a specific index",
128
+ "info": "Removes the value at the specified index from an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\nremove(path: Path, index: number): boolean\n```\n\n---\n\n### Examples\n\n```feel\nremove(\"items\", 0)\n```",
129
+ "params": [
130
+ {
131
+ "name": "path",
132
+ "type": "Path"
133
+ },
134
+ {
135
+ "name": "index",
136
+ "type": "number"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "name": "moveUp",
142
+ "type": "function",
143
+ "detail": "Moves an item up",
144
+ "info": "Moves an item one position up within an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\nmoveUp(path: Path, index: number): boolean\n```\n\n---\n\n### Examples\n\n```feel\nmoveUp(\"items\", 2)\n```",
145
+ "params": [
146
+ {
147
+ "name": "path",
148
+ "type": "Path"
149
+ },
150
+ {
151
+ "name": "index",
152
+ "type": "number"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "name": "moveDown",
158
+ "type": "function",
159
+ "detail": "Moves an item down",
160
+ "info": "Moves an item one position down within an array-like control identified by the given path.\n\n---\n\n### Function signature\n\n```\nmoveDown(path: Path, index: number): boolean\n```\n\n---\n\n### Examples\n\n```feel\nmoveDown(\"items\", 0)\n```",
161
+ "params": [
162
+ {
163
+ "name": "path",
164
+ "type": "Path"
165
+ },
166
+ {
167
+ "name": "index",
168
+ "type": "number"
169
+ }
170
+ ]
171
+ }
172
+ ]