@openremote/or-rules 1.24.0 → 1.24.2
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/custom-elements-jsx.d.ts +411 -166
- package/dist/umd/index.bundle.js +17 -17
- package/dist/umd/index.bundle.js.map +1 -1
- package/package.json +15 -14
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
buttonStyle,
|
|
3
|
+
RuleViewInfoMap,
|
|
4
|
+
getAssetTypeFromQuery,
|
|
5
|
+
getAssetIdsFromQuery,
|
|
6
|
+
getAssetTypes,
|
|
7
|
+
getAssetInfos,
|
|
8
|
+
getAssetsByType,
|
|
9
|
+
OrRulesRuleChangedEvent,
|
|
10
|
+
OrRulesRuleUnsupportedEvent,
|
|
11
|
+
OrRulesRequestSelectionEvent,
|
|
12
|
+
OrRulesSelectionEvent,
|
|
13
|
+
OrRulesRequestAddEvent,
|
|
14
|
+
OrRulesRequestGroupEvent,
|
|
15
|
+
OrRulesAddEvent,
|
|
16
|
+
OrRulesRequestDeleteEvent,
|
|
17
|
+
OrRulesRequestSaveEvent,
|
|
18
|
+
OrRulesSaveEvent,
|
|
19
|
+
OrRulesDeleteEvent,
|
|
20
|
+
OrRulesGroupNameChangeEvent,
|
|
21
|
+
style,
|
|
22
|
+
OrRules,
|
|
23
|
+
} from "./lib/index.d.ts";
|
|
3
24
|
import type { OrRuleGroupViewer } from "./lib/or-rule-group-viewer.d.ts";
|
|
4
25
|
import type { OrRuleTextViewer } from "./lib/or-rule-text-viewer.d.ts";
|
|
5
26
|
import type { OrRuleTree } from "./lib/or-rule-tree.d.ts";
|
|
@@ -31,7 +52,6 @@ export type ScopedElements<
|
|
|
31
52
|
};
|
|
32
53
|
|
|
33
54
|
type BaseProps<T extends HTMLElement> = {
|
|
34
|
-
|
|
35
55
|
/** Content added between the opening and closing tags of the element */
|
|
36
56
|
children?: any;
|
|
37
57
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -54,6 +74,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
54
74
|
key?: string | number;
|
|
55
75
|
/** Specifies the language of the element. */
|
|
56
76
|
lang?: string;
|
|
77
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
78
|
+
role?: string;
|
|
57
79
|
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
58
80
|
part?: string;
|
|
59
81
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -74,271 +96,494 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
74
96
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
75
97
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
76
98
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
77
|
-
|
|
78
|
-
} ;
|
|
79
|
-
|
|
80
|
-
type BaseEvents = {
|
|
81
|
-
|
|
82
|
-
|
|
83
99
|
};
|
|
84
100
|
|
|
85
|
-
|
|
101
|
+
type BaseEvents = {};
|
|
86
102
|
|
|
87
103
|
export type OrRulesProps = {
|
|
88
104
|
/** */
|
|
89
|
-
|
|
105
|
+
readonly?: OrRules["readonly"];
|
|
90
106
|
/** */
|
|
91
|
-
|
|
107
|
+
config?: OrRules["config"];
|
|
92
108
|
/** */
|
|
93
|
-
|
|
109
|
+
realm?: OrRules["realm"];
|
|
94
110
|
/** */
|
|
95
|
-
|
|
96
|
-
|
|
111
|
+
language?: OrRules["language"];
|
|
112
|
+
};
|
|
97
113
|
|
|
98
|
-
|
|
114
|
+
export type OrRulesSolidJsProps = {
|
|
115
|
+
/** */
|
|
116
|
+
"prop:readonly"?: OrRules["readonly"];
|
|
117
|
+
/** */
|
|
118
|
+
"prop:config"?: OrRules["config"];
|
|
119
|
+
/** */
|
|
120
|
+
"prop:realm"?: OrRules["realm"];
|
|
121
|
+
/** */
|
|
122
|
+
"prop:language"?: OrRules["language"];
|
|
99
123
|
|
|
124
|
+
/** Set the innerHTML of the element */
|
|
125
|
+
innerHTML?: string;
|
|
126
|
+
/** Set the textContent of the element */
|
|
127
|
+
textContent?: string | number;
|
|
128
|
+
};
|
|
100
129
|
|
|
101
130
|
export type OrRuleGroupViewerProps = {
|
|
102
131
|
/** Name of the group */
|
|
103
|
-
|
|
132
|
+
group?: OrRuleGroupViewer["group"];
|
|
104
133
|
/** */
|
|
105
|
-
|
|
106
|
-
|
|
134
|
+
readonly?: OrRuleGroupViewer["readonly"];
|
|
135
|
+
};
|
|
107
136
|
|
|
108
|
-
|
|
137
|
+
export type OrRuleGroupViewerSolidJsProps = {
|
|
138
|
+
/** Name of the group */
|
|
139
|
+
"prop:group"?: OrRuleGroupViewer["group"];
|
|
140
|
+
/** */
|
|
141
|
+
"prop:readonly"?: OrRuleGroupViewer["readonly"];
|
|
109
142
|
|
|
143
|
+
/** Set the innerHTML of the element */
|
|
144
|
+
innerHTML?: string;
|
|
145
|
+
/** Set the textContent of the element */
|
|
146
|
+
textContent?: string | number;
|
|
147
|
+
};
|
|
110
148
|
|
|
111
149
|
export type OrRuleTextViewerProps = {
|
|
112
150
|
/** */
|
|
113
|
-
|
|
151
|
+
readonly?: OrRuleTextViewer["readonly"];
|
|
114
152
|
/** */
|
|
115
|
-
|
|
153
|
+
config?: OrRuleTextViewer["config"];
|
|
116
154
|
/** */
|
|
117
|
-
|
|
155
|
+
ruleset?: OrRuleTextViewer["ruleset"];
|
|
118
156
|
|
|
119
157
|
/** */
|
|
120
|
-
|
|
121
|
-
}
|
|
158
|
+
onvalid?: (e: OrRulesRuleChangedEvent) => void;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type OrRuleTextViewerSolidJsProps = {
|
|
162
|
+
/** */
|
|
163
|
+
"prop:readonly"?: OrRuleTextViewer["readonly"];
|
|
164
|
+
/** */
|
|
165
|
+
"prop:config"?: OrRuleTextViewer["config"];
|
|
166
|
+
/** */
|
|
167
|
+
"prop:ruleset"?: OrRuleTextViewer["ruleset"];
|
|
168
|
+
/** */
|
|
169
|
+
"on:valid"?: (e: OrRulesRuleChangedEvent) => void;
|
|
122
170
|
|
|
171
|
+
/** Set the innerHTML of the element */
|
|
172
|
+
innerHTML?: string;
|
|
173
|
+
/** Set the textContent of the element */
|
|
174
|
+
textContent?: string | number;
|
|
175
|
+
};
|
|
123
176
|
|
|
124
177
|
export type OrRuleTreeProps = {
|
|
125
178
|
/** List of rules visible in the tree menu */
|
|
126
|
-
|
|
179
|
+
rules?: OrRuleTree["rules"];
|
|
127
180
|
/** Rules configuration object, for example to only allow certain ruleset types */
|
|
128
|
-
|
|
181
|
+
config?: OrRuleTree["config"];
|
|
129
182
|
/** Defines whether only global rulesets should be visible. */
|
|
130
|
-
|
|
183
|
+
global?: OrRuleTree["global"];
|
|
131
184
|
/** Sets every element in the tree to readonly mode */
|
|
132
|
-
|
|
185
|
+
readonly?: OrRuleTree["readonly"];
|
|
133
186
|
/** */
|
|
134
|
-
|
|
187
|
+
nodes?: OrRuleTree["nodes"];
|
|
135
188
|
/** */
|
|
136
|
-
|
|
189
|
+
draggable?: OrRuleTree["draggable"];
|
|
137
190
|
/** */
|
|
138
|
-
|
|
191
|
+
selection?: OrRuleTree["selection"];
|
|
139
192
|
/** */
|
|
140
|
-
|
|
193
|
+
sortOptions?: OrRuleTree["sortOptions"];
|
|
141
194
|
/** */
|
|
142
|
-
|
|
195
|
+
sortBy?: OrRuleTree["sortBy"];
|
|
143
196
|
/** */
|
|
144
|
-
|
|
197
|
+
groupFirst?: OrRuleTree["groupFirst"];
|
|
145
198
|
/** */
|
|
146
|
-
|
|
199
|
+
menuTitle?: OrRuleTree["menuTitle"];
|
|
147
200
|
|
|
148
201
|
/** */
|
|
149
|
-
|
|
202
|
+
ongroupName?: (e: OrRulesRequestGroupEvent) => void;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export type OrRuleTreeSolidJsProps = {
|
|
206
|
+
/** List of rules visible in the tree menu */
|
|
207
|
+
"prop:rules"?: OrRuleTree["rules"];
|
|
208
|
+
/** Rules configuration object, for example to only allow certain ruleset types */
|
|
209
|
+
"prop:config"?: OrRuleTree["config"];
|
|
210
|
+
/** Defines whether only global rulesets should be visible. */
|
|
211
|
+
"prop:global"?: OrRuleTree["global"];
|
|
212
|
+
/** Sets every element in the tree to readonly mode */
|
|
213
|
+
"prop:readonly"?: OrRuleTree["readonly"];
|
|
214
|
+
/** */
|
|
215
|
+
"prop:nodes"?: OrRuleTree["nodes"];
|
|
150
216
|
/** */
|
|
151
|
-
"
|
|
152
|
-
|
|
217
|
+
"prop:draggable"?: OrRuleTree["draggable"];
|
|
218
|
+
/** */
|
|
219
|
+
"prop:selection"?: OrRuleTree["selection"];
|
|
220
|
+
/** */
|
|
221
|
+
"prop:sortOptions"?: OrRuleTree["sortOptions"];
|
|
222
|
+
/** */
|
|
223
|
+
"prop:sortBy"?: OrRuleTree["sortBy"];
|
|
224
|
+
/** */
|
|
225
|
+
"prop:groupFirst"?: OrRuleTree["groupFirst"];
|
|
226
|
+
/** */
|
|
227
|
+
"prop:menuTitle"?: OrRuleTree["menuTitle"];
|
|
228
|
+
/** */
|
|
229
|
+
"on:groupName"?: (e: OrRulesRequestGroupEvent) => void;
|
|
153
230
|
|
|
231
|
+
/** Set the innerHTML of the element */
|
|
232
|
+
innerHTML?: string;
|
|
233
|
+
/** Set the textContent of the element */
|
|
234
|
+
textContent?: string | number;
|
|
235
|
+
};
|
|
154
236
|
|
|
155
237
|
export type OrRuleViewerProps = {
|
|
156
238
|
/** */
|
|
157
|
-
|
|
239
|
+
ruleset?: OrRuleViewer["ruleset"];
|
|
158
240
|
/** */
|
|
159
|
-
|
|
241
|
+
readonly?: OrRuleViewer["readonly"];
|
|
160
242
|
/** */
|
|
161
|
-
|
|
243
|
+
disabled?: OrRuleViewer["disabled"];
|
|
162
244
|
/** */
|
|
163
|
-
|
|
245
|
+
config?: OrRuleViewer["config"];
|
|
164
246
|
/** */
|
|
165
|
-
|
|
247
|
+
modified?: OrRuleViewer["modified"];
|
|
166
248
|
/** */
|
|
167
|
-
|
|
249
|
+
view?: OrRuleViewer["view"];
|
|
250
|
+
};
|
|
168
251
|
|
|
252
|
+
export type OrRuleViewerSolidJsProps = {
|
|
169
253
|
/** */
|
|
170
|
-
"
|
|
171
|
-
|
|
254
|
+
"prop:ruleset"?: OrRuleViewer["ruleset"];
|
|
255
|
+
/** */
|
|
256
|
+
"prop:readonly"?: OrRuleViewer["readonly"];
|
|
257
|
+
/** */
|
|
258
|
+
"prop:disabled"?: OrRuleViewer["disabled"];
|
|
259
|
+
/** */
|
|
260
|
+
"prop:config"?: OrRuleViewer["config"];
|
|
261
|
+
/** */
|
|
262
|
+
"prop:modified"?: OrRuleViewer["modified"];
|
|
263
|
+
/** */
|
|
264
|
+
"prop:view"?: OrRuleViewer["view"];
|
|
172
265
|
|
|
173
|
-
|
|
266
|
+
/** Set the innerHTML of the element */
|
|
267
|
+
innerHTML?: string;
|
|
268
|
+
/** Set the textContent of the element */
|
|
269
|
+
textContent?: string | number;
|
|
270
|
+
};
|
|
174
271
|
|
|
272
|
+
export type CustomElements = {
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
*
|
|
276
|
+
* ## Attributes & Properties
|
|
277
|
+
*
|
|
278
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
279
|
+
*
|
|
280
|
+
* - `readonly`: undefined
|
|
281
|
+
* - `config`: undefined
|
|
282
|
+
* - `realm`: undefined
|
|
283
|
+
* - `language`: undefined
|
|
284
|
+
*
|
|
285
|
+
* ## Methods
|
|
286
|
+
*
|
|
287
|
+
* Methods that can be called to access component functionality.
|
|
288
|
+
*
|
|
289
|
+
* - `refresh() => void`: undefined
|
|
290
|
+
*/
|
|
291
|
+
"or-rules": Partial<OrRulesProps & BaseProps<OrRules> & BaseEvents>;
|
|
175
292
|
|
|
176
293
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
*
|
|
190
|
-
* Methods that can be called to access component functionality.
|
|
191
|
-
*
|
|
192
|
-
* - `refresh() => void`: undefined
|
|
193
|
-
*/
|
|
194
|
-
"or-rules": Partial<OrRulesProps & BaseProps<OrRules> & BaseEvents>;
|
|
294
|
+
*
|
|
295
|
+
*
|
|
296
|
+
* ## Attributes & Properties
|
|
297
|
+
*
|
|
298
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
299
|
+
*
|
|
300
|
+
* - `group`: Name of the group
|
|
301
|
+
* - `readonly`: undefined
|
|
302
|
+
*/
|
|
303
|
+
"or-rule-group-viewer": Partial<
|
|
304
|
+
OrRuleGroupViewerProps & BaseProps<OrRuleGroupViewer> & BaseEvents
|
|
305
|
+
>;
|
|
195
306
|
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
*
|
|
310
|
+
* ## Attributes & Properties
|
|
311
|
+
*
|
|
312
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
313
|
+
*
|
|
314
|
+
* - `readonly`: undefined (property only)
|
|
315
|
+
* - `config`: undefined (property only)
|
|
316
|
+
* - `ruleset`: undefined (property only)
|
|
317
|
+
*
|
|
318
|
+
* ## Events
|
|
319
|
+
*
|
|
320
|
+
* Events that will be emitted by the component.
|
|
321
|
+
*
|
|
322
|
+
* - `valid`: undefined
|
|
323
|
+
*
|
|
324
|
+
* ## Methods
|
|
325
|
+
*
|
|
326
|
+
* Methods that can be called to access component functionality.
|
|
327
|
+
*
|
|
328
|
+
* - `beforeSave() => void`: undefined
|
|
329
|
+
* - `validate() => boolean`: undefined
|
|
330
|
+
*/
|
|
331
|
+
"or-rule-text-viewer": Partial<
|
|
332
|
+
OrRuleTextViewerProps & BaseProps<OrRuleTextViewer> & BaseEvents
|
|
333
|
+
>;
|
|
196
334
|
|
|
197
335
|
/**
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
336
|
+
*
|
|
337
|
+
*
|
|
338
|
+
* ## Attributes & Properties
|
|
339
|
+
*
|
|
340
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
341
|
+
*
|
|
342
|
+
* - `rules`: List of rules visible in the tree menu
|
|
343
|
+
* - `config`: Rules configuration object, for example to only allow certain ruleset types
|
|
344
|
+
* - `global`: Defines whether only global rulesets should be visible.
|
|
345
|
+
* - `readonly`: Sets every element in the tree to readonly mode
|
|
346
|
+
* - `nodes`: undefined (property only)
|
|
347
|
+
* - `draggable`: undefined (property only)
|
|
348
|
+
* - `selection`: undefined (property only)
|
|
349
|
+
* - `sortOptions`: undefined (property only)
|
|
350
|
+
* - `sortBy`: undefined (property only)
|
|
351
|
+
* - `groupFirst`: undefined (property only)
|
|
352
|
+
* - `menuTitle`: undefined (property only)
|
|
353
|
+
*
|
|
354
|
+
* ## Events
|
|
355
|
+
*
|
|
356
|
+
* Events that will be emitted by the component.
|
|
357
|
+
*
|
|
358
|
+
* - `undefined`: undefined
|
|
359
|
+
* - `groupName`: undefined
|
|
360
|
+
*
|
|
361
|
+
* ## Methods
|
|
362
|
+
*
|
|
363
|
+
* Methods that can be called to access component functionality.
|
|
364
|
+
*
|
|
365
|
+
* - `selectRuleset(ruleset: RulesetUnion, silent = false) => void`: Public function that allows consumers to select a ruleset in the tree.
|
|
366
|
+
* It finds the tree node in the UI, and selects it.
|
|
367
|
+
* - `deselectAllNodes() => void`: undefined
|
|
368
|
+
* - `refresh() => void`: Refreshes the tree content, and re-fetches the list of rules.
|
|
369
|
+
*/
|
|
370
|
+
"or-rule-tree": Partial<OrRuleTreeProps & BaseProps<OrRuleTree> & BaseEvents>;
|
|
208
371
|
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
*
|
|
375
|
+
* ## Attributes & Properties
|
|
376
|
+
*
|
|
377
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
378
|
+
*
|
|
379
|
+
* - `ruleset`: undefined
|
|
380
|
+
* - `readonly`: undefined
|
|
381
|
+
* - `disabled`: undefined
|
|
382
|
+
* - `config`: undefined
|
|
383
|
+
* - `modified`: undefined (property only)
|
|
384
|
+
* - `view`: undefined (property only)
|
|
385
|
+
* - `valid`: undefined (property only) (readonly)
|
|
386
|
+
*
|
|
387
|
+
* ## Events
|
|
388
|
+
*
|
|
389
|
+
* Events that will be emitted by the component.
|
|
390
|
+
*
|
|
391
|
+
* - `undefined`: undefined
|
|
392
|
+
*/
|
|
393
|
+
"or-rule-viewer": Partial<
|
|
394
|
+
OrRuleViewerProps & BaseProps<OrRuleViewer> & BaseEvents
|
|
395
|
+
>;
|
|
396
|
+
};
|
|
209
397
|
|
|
398
|
+
export type CustomElementsSolidJs = {
|
|
210
399
|
/**
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
* - `beforeSave() => void`: undefined
|
|
232
|
-
* - `validate() => boolean`: undefined
|
|
233
|
-
*/
|
|
234
|
-
"or-rule-text-viewer": Partial<OrRuleTextViewerProps & BaseProps<OrRuleTextViewer> & BaseEvents>;
|
|
400
|
+
*
|
|
401
|
+
*
|
|
402
|
+
* ## Attributes & Properties
|
|
403
|
+
*
|
|
404
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
405
|
+
*
|
|
406
|
+
* - `readonly`: undefined
|
|
407
|
+
* - `config`: undefined
|
|
408
|
+
* - `realm`: undefined
|
|
409
|
+
* - `language`: undefined
|
|
410
|
+
*
|
|
411
|
+
* ## Methods
|
|
412
|
+
*
|
|
413
|
+
* Methods that can be called to access component functionality.
|
|
414
|
+
*
|
|
415
|
+
* - `refresh() => void`: undefined
|
|
416
|
+
*/
|
|
417
|
+
"or-rules": Partial<
|
|
418
|
+
OrRulesProps & OrRulesSolidJsProps & BaseProps<OrRules> & BaseEvents
|
|
419
|
+
>;
|
|
235
420
|
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
*
|
|
424
|
+
* ## Attributes & Properties
|
|
425
|
+
*
|
|
426
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
427
|
+
*
|
|
428
|
+
* - `group`: Name of the group
|
|
429
|
+
* - `readonly`: undefined
|
|
430
|
+
*/
|
|
431
|
+
"or-rule-group-viewer": Partial<
|
|
432
|
+
OrRuleGroupViewerProps &
|
|
433
|
+
OrRuleGroupViewerSolidJsProps &
|
|
434
|
+
BaseProps<OrRuleGroupViewer> &
|
|
435
|
+
BaseEvents
|
|
436
|
+
>;
|
|
236
437
|
|
|
237
438
|
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
* - `selectRuleset(ruleset: RulesetUnion, silent = false) => void`: Public function that allows consumers to select a ruleset in the tree.
|
|
268
|
-
* It finds the tree node in the UI, and selects it.
|
|
269
|
-
* - `deselectAllNodes() => void`: undefined
|
|
270
|
-
* - `refresh() => void`: Refreshes the tree content, and re-fetches the list of rules.
|
|
271
|
-
*/
|
|
272
|
-
"or-rule-tree": Partial<OrRuleTreeProps & BaseProps<OrRuleTree> & BaseEvents>;
|
|
439
|
+
*
|
|
440
|
+
*
|
|
441
|
+
* ## Attributes & Properties
|
|
442
|
+
*
|
|
443
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
444
|
+
*
|
|
445
|
+
* - `readonly`: undefined (property only)
|
|
446
|
+
* - `config`: undefined (property only)
|
|
447
|
+
* - `ruleset`: undefined (property only)
|
|
448
|
+
*
|
|
449
|
+
* ## Events
|
|
450
|
+
*
|
|
451
|
+
* Events that will be emitted by the component.
|
|
452
|
+
*
|
|
453
|
+
* - `valid`: undefined
|
|
454
|
+
*
|
|
455
|
+
* ## Methods
|
|
456
|
+
*
|
|
457
|
+
* Methods that can be called to access component functionality.
|
|
458
|
+
*
|
|
459
|
+
* - `beforeSave() => void`: undefined
|
|
460
|
+
* - `validate() => boolean`: undefined
|
|
461
|
+
*/
|
|
462
|
+
"or-rule-text-viewer": Partial<
|
|
463
|
+
OrRuleTextViewerProps &
|
|
464
|
+
OrRuleTextViewerSolidJsProps &
|
|
465
|
+
BaseProps<OrRuleTextViewer> &
|
|
466
|
+
BaseEvents
|
|
467
|
+
>;
|
|
273
468
|
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
*
|
|
472
|
+
* ## Attributes & Properties
|
|
473
|
+
*
|
|
474
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
475
|
+
*
|
|
476
|
+
* - `rules`: List of rules visible in the tree menu
|
|
477
|
+
* - `config`: Rules configuration object, for example to only allow certain ruleset types
|
|
478
|
+
* - `global`: Defines whether only global rulesets should be visible.
|
|
479
|
+
* - `readonly`: Sets every element in the tree to readonly mode
|
|
480
|
+
* - `nodes`: undefined (property only)
|
|
481
|
+
* - `draggable`: undefined (property only)
|
|
482
|
+
* - `selection`: undefined (property only)
|
|
483
|
+
* - `sortOptions`: undefined (property only)
|
|
484
|
+
* - `sortBy`: undefined (property only)
|
|
485
|
+
* - `groupFirst`: undefined (property only)
|
|
486
|
+
* - `menuTitle`: undefined (property only)
|
|
487
|
+
*
|
|
488
|
+
* ## Events
|
|
489
|
+
*
|
|
490
|
+
* Events that will be emitted by the component.
|
|
491
|
+
*
|
|
492
|
+
* - `undefined`: undefined
|
|
493
|
+
* - `groupName`: undefined
|
|
494
|
+
*
|
|
495
|
+
* ## Methods
|
|
496
|
+
*
|
|
497
|
+
* Methods that can be called to access component functionality.
|
|
498
|
+
*
|
|
499
|
+
* - `selectRuleset(ruleset: RulesetUnion, silent = false) => void`: Public function that allows consumers to select a ruleset in the tree.
|
|
500
|
+
* It finds the tree node in the UI, and selects it.
|
|
501
|
+
* - `deselectAllNodes() => void`: undefined
|
|
502
|
+
* - `refresh() => void`: Refreshes the tree content, and re-fetches the list of rules.
|
|
503
|
+
*/
|
|
504
|
+
"or-rule-tree": Partial<
|
|
505
|
+
OrRuleTreeProps &
|
|
506
|
+
OrRuleTreeSolidJsProps &
|
|
507
|
+
BaseProps<OrRuleTree> &
|
|
508
|
+
BaseEvents
|
|
509
|
+
>;
|
|
274
510
|
|
|
275
511
|
/**
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
512
|
+
*
|
|
513
|
+
*
|
|
514
|
+
* ## Attributes & Properties
|
|
515
|
+
*
|
|
516
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
517
|
+
*
|
|
518
|
+
* - `ruleset`: undefined
|
|
519
|
+
* - `readonly`: undefined
|
|
520
|
+
* - `disabled`: undefined
|
|
521
|
+
* - `config`: undefined
|
|
522
|
+
* - `modified`: undefined (property only)
|
|
523
|
+
* - `view`: undefined (property only)
|
|
524
|
+
* - `valid`: undefined (property only) (readonly)
|
|
525
|
+
*
|
|
526
|
+
* ## Events
|
|
527
|
+
*
|
|
528
|
+
* Events that will be emitted by the component.
|
|
529
|
+
*
|
|
530
|
+
* - `undefined`: undefined
|
|
531
|
+
*/
|
|
532
|
+
"or-rule-viewer": Partial<
|
|
533
|
+
OrRuleViewerProps &
|
|
534
|
+
OrRuleViewerSolidJsProps &
|
|
535
|
+
BaseProps<OrRuleViewer> &
|
|
536
|
+
BaseEvents
|
|
537
|
+
>;
|
|
538
|
+
};
|
|
298
539
|
|
|
299
|
-
export type CustomCssProperties = {
|
|
540
|
+
export type CustomCssProperties = {};
|
|
300
541
|
|
|
542
|
+
declare module "react" {
|
|
543
|
+
namespace JSX {
|
|
544
|
+
interface IntrinsicElements extends CustomElements {}
|
|
545
|
+
}
|
|
546
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
301
547
|
}
|
|
302
548
|
|
|
303
|
-
|
|
304
|
-
declare module 'react' {
|
|
549
|
+
declare module "preact" {
|
|
305
550
|
namespace JSX {
|
|
306
551
|
interface IntrinsicElements extends CustomElements {}
|
|
307
552
|
}
|
|
308
553
|
export interface CSSProperties extends CustomCssProperties {}
|
|
309
554
|
}
|
|
310
555
|
|
|
311
|
-
declare module
|
|
556
|
+
declare module "@builder.io/qwik" {
|
|
312
557
|
namespace JSX {
|
|
313
558
|
interface IntrinsicElements extends CustomElements {}
|
|
314
559
|
}
|
|
315
560
|
export interface CSSProperties extends CustomCssProperties {}
|
|
316
561
|
}
|
|
317
562
|
|
|
318
|
-
declare module
|
|
563
|
+
declare module "@stencil/core" {
|
|
319
564
|
namespace JSX {
|
|
320
565
|
interface IntrinsicElements extends CustomElements {}
|
|
321
566
|
}
|
|
322
567
|
export interface CSSProperties extends CustomCssProperties {}
|
|
323
568
|
}
|
|
324
569
|
|
|
325
|
-
declare module
|
|
570
|
+
declare module "hono/jsx" {
|
|
326
571
|
namespace JSX {
|
|
327
572
|
interface IntrinsicElements extends CustomElements {}
|
|
328
573
|
}
|
|
329
574
|
export interface CSSProperties extends CustomCssProperties {}
|
|
330
575
|
}
|
|
331
576
|
|
|
332
|
-
declare module
|
|
577
|
+
declare module "react-native" {
|
|
333
578
|
namespace JSX {
|
|
334
579
|
interface IntrinsicElements extends CustomElements {}
|
|
335
580
|
}
|
|
336
581
|
export interface CSSProperties extends CustomCssProperties {}
|
|
337
582
|
}
|
|
338
583
|
|
|
339
|
-
declare module
|
|
584
|
+
declare module "solid-js" {
|
|
340
585
|
namespace JSX {
|
|
341
|
-
interface IntrinsicElements extends
|
|
586
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
342
587
|
}
|
|
343
588
|
export interface CSSProperties extends CustomCssProperties {}
|
|
344
589
|
}
|