@genesislcap/expression-builder 14.250.0 → 14.251.1
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.
|
@@ -138,46 +138,50 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"kind": "javascript-module",
|
|
141
|
-
"path": "src/
|
|
142
|
-
"declarations": [],
|
|
143
|
-
"exports": [
|
|
144
|
-
{
|
|
145
|
-
"kind": "js",
|
|
146
|
-
"name": "*",
|
|
147
|
-
"declaration": {
|
|
148
|
-
"name": "*",
|
|
149
|
-
"package": "./public.types"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"kind": "js",
|
|
154
|
-
"name": "*",
|
|
155
|
-
"declaration": {
|
|
156
|
-
"name": "*",
|
|
157
|
-
"package": "./private.types"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"kind": "javascript-module",
|
|
164
|
-
"path": "src/types/private.types.ts",
|
|
165
|
-
"declarations": [],
|
|
166
|
-
"exports": []
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"kind": "javascript-module",
|
|
170
|
-
"path": "src/types/public.types.ts",
|
|
141
|
+
"path": "src/main/events.ts",
|
|
171
142
|
"declarations": [],
|
|
172
143
|
"exports": []
|
|
173
144
|
},
|
|
174
145
|
{
|
|
175
146
|
"kind": "javascript-module",
|
|
176
|
-
"path": "src/
|
|
147
|
+
"path": "src/main/expression-builder.helpers.ts",
|
|
177
148
|
"declarations": [
|
|
178
149
|
{
|
|
179
150
|
"kind": "function",
|
|
180
|
-
"name": "
|
|
151
|
+
"name": "findOperateOnGroup",
|
|
152
|
+
"return": {
|
|
153
|
+
"type": {
|
|
154
|
+
"text": ""
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"parameters": [
|
|
158
|
+
{
|
|
159
|
+
"name": "model",
|
|
160
|
+
"type": {
|
|
161
|
+
"text": "ModelGroup"
|
|
162
|
+
},
|
|
163
|
+
"description": "The root group to start searching from"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "groupId",
|
|
167
|
+
"type": {
|
|
168
|
+
"text": "string"
|
|
169
|
+
},
|
|
170
|
+
"description": "The Group ID to find"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "fn",
|
|
174
|
+
"type": {
|
|
175
|
+
"text": "ChildrenOperatorFn"
|
|
176
|
+
},
|
|
177
|
+
"description": "The function to apply to the children of the found group. A *new* object must be created and returned"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"description": "Finds a group within a model and applies a function to create a new children"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"kind": "function",
|
|
184
|
+
"name": "addGroupOrRule",
|
|
181
185
|
"return": {
|
|
182
186
|
"type": {
|
|
183
187
|
"text": "ModelGroup"
|
|
@@ -185,339 +189,483 @@
|
|
|
185
189
|
},
|
|
186
190
|
"parameters": [
|
|
187
191
|
{
|
|
188
|
-
"name": "
|
|
192
|
+
"name": "model",
|
|
189
193
|
"type": {
|
|
190
|
-
"text": "
|
|
194
|
+
"text": "ModelGroup"
|
|
191
195
|
}
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
|
-
"name": "
|
|
198
|
+
"name": "parentGroupId",
|
|
195
199
|
"type": {
|
|
196
|
-
"text": "
|
|
200
|
+
"text": "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "newItem",
|
|
205
|
+
"type": {
|
|
206
|
+
"text": "ModelGroup | ModelRule"
|
|
197
207
|
}
|
|
198
208
|
}
|
|
199
|
-
]
|
|
200
|
-
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
209
|
+
]
|
|
201
210
|
},
|
|
202
211
|
{
|
|
203
212
|
"kind": "function",
|
|
204
|
-
"name": "
|
|
213
|
+
"name": "deleteGroup",
|
|
205
214
|
"return": {
|
|
206
215
|
"type": {
|
|
207
|
-
"text": ""
|
|
216
|
+
"text": "ModelGroup"
|
|
208
217
|
}
|
|
209
218
|
},
|
|
210
219
|
"parameters": [
|
|
211
220
|
{
|
|
212
|
-
"name": "
|
|
221
|
+
"name": "model",
|
|
213
222
|
"type": {
|
|
214
223
|
"text": "ModelGroup"
|
|
215
|
-
}
|
|
216
|
-
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "groupIdToDelete",
|
|
228
|
+
"type": {
|
|
229
|
+
"text": "string"
|
|
230
|
+
}
|
|
217
231
|
}
|
|
218
|
-
]
|
|
219
|
-
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
232
|
+
]
|
|
220
233
|
},
|
|
221
234
|
{
|
|
222
235
|
"kind": "function",
|
|
223
|
-
"name": "
|
|
236
|
+
"name": "deleteRule",
|
|
224
237
|
"return": {
|
|
225
238
|
"type": {
|
|
226
|
-
"text": ""
|
|
239
|
+
"text": "ModelGroup"
|
|
227
240
|
}
|
|
228
241
|
},
|
|
229
242
|
"parameters": [
|
|
230
243
|
{
|
|
231
|
-
"name": "
|
|
244
|
+
"name": "model",
|
|
232
245
|
"type": {
|
|
233
|
-
"text": "
|
|
234
|
-
}
|
|
235
|
-
|
|
246
|
+
"text": "ModelGroup"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "ruleIdToDelete",
|
|
251
|
+
"type": {
|
|
252
|
+
"text": "string"
|
|
253
|
+
}
|
|
236
254
|
}
|
|
237
|
-
]
|
|
238
|
-
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
"exports": [
|
|
242
|
-
{
|
|
243
|
-
"kind": "js",
|
|
244
|
-
"name": "groupToModelGroup",
|
|
245
|
-
"declaration": {
|
|
246
|
-
"name": "groupToModelGroup",
|
|
247
|
-
"module": "src/utils/data-model.ts"
|
|
248
|
-
}
|
|
255
|
+
]
|
|
249
256
|
},
|
|
250
257
|
{
|
|
251
|
-
"kind": "
|
|
252
|
-
"name": "
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
|
|
258
|
+
"kind": "variable",
|
|
259
|
+
"name": "ROOT_GROUP",
|
|
260
|
+
"type": {
|
|
261
|
+
"text": "string"
|
|
262
|
+
},
|
|
263
|
+
"default": "'group-root'"
|
|
257
264
|
},
|
|
258
|
-
{
|
|
259
|
-
"kind": "js",
|
|
260
|
-
"name": "modelRuleToRule",
|
|
261
|
-
"declaration": {
|
|
262
|
-
"name": "modelRuleToRule",
|
|
263
|
-
"module": "src/utils/data-model.ts"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"kind": "javascript-module",
|
|
270
|
-
"path": "src/utils/formatting.ts",
|
|
271
|
-
"declarations": [
|
|
272
265
|
{
|
|
273
266
|
"kind": "function",
|
|
274
|
-
"name": "
|
|
267
|
+
"name": "updateGroupData",
|
|
268
|
+
"return": {
|
|
269
|
+
"type": {
|
|
270
|
+
"text": "ModelGroup"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
275
273
|
"parameters": [
|
|
276
274
|
{
|
|
277
|
-
"name": "
|
|
275
|
+
"name": "model",
|
|
278
276
|
"type": {
|
|
279
|
-
"text": "
|
|
277
|
+
"text": "ModelGroup"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "groupIdToUpdate",
|
|
282
|
+
"type": {
|
|
283
|
+
"text": "string"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "newData",
|
|
288
|
+
"type": {
|
|
289
|
+
"text": "EventsDetailMap[Events.UpdateGroup]['newData']"
|
|
280
290
|
}
|
|
281
291
|
}
|
|
282
|
-
]
|
|
283
|
-
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`"
|
|
292
|
+
]
|
|
284
293
|
},
|
|
285
294
|
{
|
|
286
295
|
"kind": "function",
|
|
287
|
-
"name": "
|
|
296
|
+
"name": "updateRuleData",
|
|
297
|
+
"return": {
|
|
298
|
+
"type": {
|
|
299
|
+
"text": "ModelGroup"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
288
302
|
"parameters": [
|
|
289
303
|
{
|
|
290
|
-
"name": "
|
|
304
|
+
"name": "model",
|
|
291
305
|
"type": {
|
|
292
|
-
"text": "
|
|
306
|
+
"text": "ModelGroup"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "ruleIdToUpdate",
|
|
311
|
+
"type": {
|
|
312
|
+
"text": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "newData",
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "EventsDetailMap[Events.UpdateRule]['newData']"
|
|
293
319
|
}
|
|
294
320
|
}
|
|
295
|
-
]
|
|
296
|
-
"description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`"
|
|
321
|
+
]
|
|
297
322
|
}
|
|
298
323
|
],
|
|
299
324
|
"exports": [
|
|
300
325
|
{
|
|
301
326
|
"kind": "js",
|
|
302
|
-
"name": "
|
|
327
|
+
"name": "findOperateOnGroup",
|
|
303
328
|
"declaration": {
|
|
304
|
-
"name": "
|
|
305
|
-
"module": "src/
|
|
329
|
+
"name": "findOperateOnGroup",
|
|
330
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
306
331
|
}
|
|
307
332
|
},
|
|
308
333
|
{
|
|
309
334
|
"kind": "js",
|
|
310
|
-
"name": "
|
|
335
|
+
"name": "addGroupOrRule",
|
|
311
336
|
"declaration": {
|
|
312
|
-
"name": "
|
|
313
|
-
"module": "src/
|
|
337
|
+
"name": "addGroupOrRule",
|
|
338
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
314
339
|
}
|
|
315
|
-
}
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"kind": "javascript-module",
|
|
320
|
-
"path": "src/utils/index.ts",
|
|
321
|
-
"declarations": [],
|
|
322
|
-
"exports": [
|
|
340
|
+
},
|
|
323
341
|
{
|
|
324
342
|
"kind": "js",
|
|
325
|
-
"name": "
|
|
343
|
+
"name": "deleteGroup",
|
|
326
344
|
"declaration": {
|
|
327
|
-
"name": "
|
|
328
|
-
"
|
|
345
|
+
"name": "deleteGroup",
|
|
346
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
329
347
|
}
|
|
330
348
|
},
|
|
331
349
|
{
|
|
332
350
|
"kind": "js",
|
|
333
|
-
"name": "
|
|
351
|
+
"name": "deleteRule",
|
|
334
352
|
"declaration": {
|
|
335
|
-
"name": "
|
|
336
|
-
"
|
|
353
|
+
"name": "deleteRule",
|
|
354
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
337
355
|
}
|
|
338
356
|
},
|
|
339
357
|
{
|
|
340
358
|
"kind": "js",
|
|
341
|
-
"name": "
|
|
359
|
+
"name": "ROOT_GROUP",
|
|
342
360
|
"declaration": {
|
|
343
|
-
"name": "
|
|
344
|
-
"
|
|
361
|
+
"name": "ROOT_GROUP",
|
|
362
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
345
363
|
}
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"kind": "javascript-module",
|
|
351
|
-
"path": "src/utils/misc.ts",
|
|
352
|
-
"declarations": [
|
|
364
|
+
},
|
|
353
365
|
{
|
|
354
|
-
"kind": "
|
|
355
|
-
"name": "
|
|
356
|
-
"
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
"parameters": [
|
|
362
|
-
{
|
|
363
|
-
"name": "xs",
|
|
364
|
-
"type": {
|
|
365
|
-
"text": "T[]"
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
]
|
|
366
|
+
"kind": "js",
|
|
367
|
+
"name": "updateGroupData",
|
|
368
|
+
"declaration": {
|
|
369
|
+
"name": "updateGroupData",
|
|
370
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
371
|
+
}
|
|
369
372
|
},
|
|
370
373
|
{
|
|
371
|
-
"kind": "
|
|
372
|
-
"name": "
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
"type": {
|
|
389
|
-
"text": "Styles | undefined | null"
|
|
390
|
-
},
|
|
391
|
-
"description": "The styles configuration object"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"name": "styleKey",
|
|
395
|
-
"type": {
|
|
396
|
-
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
397
|
-
},
|
|
398
|
-
"description": "The key in styles.customStyles to use for custom styles"
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
374
|
+
"kind": "js",
|
|
375
|
+
"name": "updateRuleData",
|
|
376
|
+
"declaration": {
|
|
377
|
+
"name": "updateRuleData",
|
|
378
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"kind": "javascript-module",
|
|
385
|
+
"path": "src/main/expression-builder.styles.ts",
|
|
386
|
+
"declarations": [
|
|
387
|
+
{
|
|
388
|
+
"kind": "variable",
|
|
389
|
+
"name": "styles",
|
|
390
|
+
"default": "css`\n :host {\n --item-vertical-spacing: 4px;\n --item-border-radius: 5px;\n --group-background-color: rgb(250 240 210 / 50%);\n --group-border-color: #dcc896;\n --group-border: 1px solid var(--group-border-color);\n --group-padding: 10px;\n --rule-background-color: rgb(255 255 255 / 90%);\n --rule-border-color: #eee;\n --rule-border: 1px solid var(--rule-border-color);\n --rule-padding: 5px;\n --rule-value-separator: 1px solid #ddd;\n --error-icon-color: #f00;\n --error-border-color: #f99;\n --error-background-color: #fdd;\n --ticks-width: 2px;\n --ticks-color: #ccc;\n }\n\n p.test {\n color: black;\n }\n\n .query-builder {\n font-family: sans-serif;\n }\n\n .rules-group-container {\n position: relative;\n margin: var(--item-vertical-spacing) 0;\n border-radius: var(--item-border-radius);\n padding: var(--group-padding);\n border: var(--group-border);\n background: var(--group-background-color);\n }\n\n .rules-group-header {\n margin-bottom: var(--group-padding);\n }\n\n .group-conditions {\n display: inline-block;\n }\n\n .group-conditions .btn {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n border-radius: 0.2rem;\n border: 1px solid #007bff;\n color: #007bff;\n background-color: transparent;\n cursor: pointer;\n }\n\n .group-conditions .btn:hover {\n background-color: #007bff;\n color: #fff;\n }\n\n .group-conditions .btn.active {\n background-color: #007bff;\n color: #fff;\n }\n\n .group-actions {\n display: inline-block;\n float: right;\n }\n\n .rules-list {\n list-style: none;\n padding: 0 0 0 20px; /* Adjusted ticks position */\n margin: 0;\n }\n\n .rule-container {\n position: relative;\n margin: var(--item-vertical-spacing) 0;\n border-radius: var(--item-border-radius);\n padding: var(--rule-padding);\n border: var(--rule-border);\n background: var(--rule-background-color);\n }\n\n .rule-header {\n margin-bottom: 5px;\n }\n\n .rule-actions {\n display: inline-block;\n float: right;\n }\n\n .rule-field-container,\n .rule-operator-container,\n .rule-value-container {\n display: inline-block;\n margin: 0 5px 0 0;\n vertical-align: middle;\n }\n\n .rule-value-container {\n border-left: var(--rule-value-separator);\n padding-left: 5px;\n }\n\n .rule-value-container label {\n margin-bottom: 0;\n font-weight: normal;\n }\n\n .rule-value-container label.block {\n display: block;\n }\n\n .error-container {\n display: none;\n cursor: help;\n color: var(--error-icon-color);\n margin-left: 5px;\n }\n\n .rule-container.has-error,\n .rules-group-container.has-error {\n background-color: var(--error-background-color);\n border-color: var(--error-border-color);\n }\n\n .rule-container.has-error .error-container,\n .rules-group-container.has-error .error-container {\n display: inline-block !important;\n }\n\n /* Ticks */\n .rules-list > * {\n position: relative;\n }\n\n .rules-list > *::before,\n .rules-list > *::after {\n content: '';\n position: absolute;\n left: -10px; /* Adjusted ticks position */\n width: 10px; /* Adjusted ticks position */\n border-color: var(--ticks-color);\n border-style: solid;\n }\n\n .rules-list > *::before {\n top: -2px; /* Adjusted ticks position */\n height: calc(50% + var(--item-vertical-spacing));\n border-width: 0 0 var(--ticks-width) var(--ticks-width);\n }\n\n .rules-list > *::after {\n top: 50%;\n border-width: 0 0 0 var(--ticks-width);\n height: 50%;\n }\n\n .rules-list > *:first-child::before {\n top: calc(-1 * var(--group-padding) - var(--ticks-width));\n height: calc(50% + var(--group-padding) + var(--item-vertical-spacing));\n }\n\n .rules-list > *:last-child::before {\n border-radius: 0 0 0 calc(2 * var(--ticks-width));\n }\n\n .rules-list > *:last-child::after {\n display: none;\n }\n`"
|
|
402
391
|
}
|
|
403
392
|
],
|
|
404
393
|
"exports": [
|
|
405
394
|
{
|
|
406
395
|
"kind": "js",
|
|
407
|
-
"name": "
|
|
396
|
+
"name": "styles",
|
|
408
397
|
"declaration": {
|
|
409
|
-
"name": "
|
|
410
|
-
"module": "src/
|
|
398
|
+
"name": "styles",
|
|
399
|
+
"module": "src/main/expression-builder.styles.ts"
|
|
411
400
|
}
|
|
412
|
-
}
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"kind": "javascript-module",
|
|
406
|
+
"path": "src/main/expression-builder.template.ts",
|
|
407
|
+
"declarations": [
|
|
408
|
+
{
|
|
409
|
+
"kind": "variable",
|
|
410
|
+
"name": "template",
|
|
411
|
+
"default": "html<ExpressionBuilder>`\n <div class=\"query-builder\">\n <expression-group\n :model=${(x) => x.model}\n :config=${(x) => x.config}\n :styles=${(x) => x.styles}\n ></expression-group>\n </div>\n`"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"exports": [
|
|
413
415
|
{
|
|
414
416
|
"kind": "js",
|
|
415
|
-
"name": "
|
|
417
|
+
"name": "template",
|
|
416
418
|
"declaration": {
|
|
417
|
-
"name": "
|
|
418
|
-
"module": "src/
|
|
419
|
+
"name": "template",
|
|
420
|
+
"module": "src/main/expression-builder.template.ts"
|
|
419
421
|
}
|
|
420
422
|
}
|
|
421
423
|
]
|
|
422
424
|
},
|
|
423
425
|
{
|
|
424
426
|
"kind": "javascript-module",
|
|
425
|
-
"path": "src/main/
|
|
426
|
-
"declarations": [],
|
|
427
|
-
"exports": []
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"kind": "javascript-module",
|
|
431
|
-
"path": "src/main/expression-builder.helpers.ts",
|
|
427
|
+
"path": "src/main/expression-builder.ts",
|
|
432
428
|
"declarations": [
|
|
433
429
|
{
|
|
434
|
-
"kind": "
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
430
|
+
"kind": "class",
|
|
431
|
+
"description": "",
|
|
432
|
+
"name": "ExpressionBuilder",
|
|
433
|
+
"members": [
|
|
434
|
+
{
|
|
435
|
+
"kind": "field",
|
|
436
|
+
"name": "config",
|
|
437
|
+
"type": {
|
|
438
|
+
"text": "Config"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"kind": "field",
|
|
443
|
+
"name": "styles",
|
|
444
|
+
"type": {
|
|
445
|
+
"text": "Styles | undefined"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
442
448
|
{
|
|
449
|
+
"kind": "field",
|
|
443
450
|
"name": "model",
|
|
444
451
|
"type": {
|
|
445
|
-
"text": "ModelGroup"
|
|
452
|
+
"text": "ModelGroup | null"
|
|
446
453
|
},
|
|
447
|
-
"
|
|
454
|
+
"default": "null"
|
|
448
455
|
},
|
|
449
456
|
{
|
|
450
|
-
"
|
|
457
|
+
"kind": "field",
|
|
458
|
+
"name": "ruleCount",
|
|
451
459
|
"type": {
|
|
452
|
-
"text": "
|
|
460
|
+
"text": "number"
|
|
453
461
|
},
|
|
454
|
-
"
|
|
462
|
+
"privacy": "private",
|
|
463
|
+
"default": "0"
|
|
455
464
|
},
|
|
456
465
|
{
|
|
457
|
-
"
|
|
466
|
+
"kind": "field",
|
|
467
|
+
"name": "groupCount",
|
|
458
468
|
"type": {
|
|
459
|
-
"text": "
|
|
469
|
+
"text": "number"
|
|
460
470
|
},
|
|
461
|
-
"
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"description": "Finds a group within a model and applies a function to create a new children"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"kind": "function",
|
|
468
|
-
"name": "addGroupOrRule",
|
|
469
|
-
"return": {
|
|
470
|
-
"type": {
|
|
471
|
-
"text": "ModelGroup"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
"parameters": [
|
|
471
|
+
"privacy": "private",
|
|
472
|
+
"default": "0"
|
|
473
|
+
},
|
|
475
474
|
{
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
"kind": "method",
|
|
476
|
+
"name": "dispatchChangeEvent",
|
|
477
|
+
"privacy": "protected",
|
|
478
|
+
"parameters": [
|
|
479
|
+
{
|
|
480
|
+
"name": "group",
|
|
481
|
+
"type": {
|
|
482
|
+
"text": "Group"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
]
|
|
480
486
|
},
|
|
481
487
|
{
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
|
|
485
|
-
}
|
|
488
|
+
"kind": "field",
|
|
489
|
+
"name": "handleAddGroup",
|
|
490
|
+
"privacy": "private"
|
|
486
491
|
},
|
|
487
492
|
{
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
493
|
+
"kind": "method",
|
|
494
|
+
"name": "_handleAddGroup",
|
|
495
|
+
"privacy": "private",
|
|
496
|
+
"parameters": [
|
|
497
|
+
{
|
|
498
|
+
"name": "event",
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "CustomEvent<EventsDetailMap[Events.AddGroup]>"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"kind": "field",
|
|
507
|
+
"name": "handleAddRule",
|
|
508
|
+
"privacy": "private"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "method",
|
|
512
|
+
"name": "_handleAddRule",
|
|
513
|
+
"privacy": "private",
|
|
514
|
+
"parameters": [
|
|
515
|
+
{
|
|
516
|
+
"name": "event",
|
|
517
|
+
"type": {
|
|
518
|
+
"text": "CustomEvent<EventsDetailMap[Events.AddRule]>"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"kind": "field",
|
|
525
|
+
"name": "handleDeleteGroup",
|
|
526
|
+
"privacy": "private"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"kind": "method",
|
|
530
|
+
"name": "_handleDeleteGroup",
|
|
531
|
+
"privacy": "private",
|
|
532
|
+
"parameters": [
|
|
533
|
+
{
|
|
534
|
+
"name": "event",
|
|
535
|
+
"type": {
|
|
536
|
+
"text": "CustomEvent<EventsDetailMap[Events.DelGroup]>"
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"kind": "field",
|
|
543
|
+
"name": "handleDeleteRule",
|
|
544
|
+
"privacy": "private"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"kind": "method",
|
|
548
|
+
"name": "_handleDeleteRule",
|
|
549
|
+
"privacy": "private",
|
|
550
|
+
"parameters": [
|
|
551
|
+
{
|
|
552
|
+
"name": "event",
|
|
553
|
+
"type": {
|
|
554
|
+
"text": "CustomEvent<EventsDetailMap[Events.DelRule]>"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"kind": "field",
|
|
561
|
+
"name": "handleUpdateGroupData",
|
|
562
|
+
"privacy": "private"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"kind": "method",
|
|
566
|
+
"name": "_handleUpdateGroupData",
|
|
567
|
+
"privacy": "private",
|
|
568
|
+
"parameters": [
|
|
569
|
+
{
|
|
570
|
+
"name": "event",
|
|
571
|
+
"type": {
|
|
572
|
+
"text": "CustomEvent<EventsDetailMap[Events.UpdateGroup]>"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"kind": "field",
|
|
579
|
+
"name": "handleUpdateRuleData",
|
|
580
|
+
"privacy": "private"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"kind": "method",
|
|
584
|
+
"name": "_handleUpdateRuleData",
|
|
585
|
+
"privacy": "private",
|
|
586
|
+
"parameters": [
|
|
587
|
+
{
|
|
588
|
+
"name": "event",
|
|
589
|
+
"type": {
|
|
590
|
+
"text": "CustomEvent<EventsDetailMap[Events.UpdateRule]>"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
]
|
|
501
594
|
}
|
|
502
|
-
|
|
503
|
-
"
|
|
504
|
-
{
|
|
505
|
-
"name": "model",
|
|
506
|
-
"type": {
|
|
507
|
-
"text": "ModelGroup"
|
|
508
|
-
}
|
|
509
|
-
},
|
|
595
|
+
],
|
|
596
|
+
"events": [
|
|
510
597
|
{
|
|
511
|
-
"name": "
|
|
598
|
+
"name": "change",
|
|
512
599
|
"type": {
|
|
513
|
-
"text": "
|
|
600
|
+
"text": "CustomEvent"
|
|
514
601
|
}
|
|
515
602
|
}
|
|
516
|
-
]
|
|
603
|
+
],
|
|
604
|
+
"superclass": {
|
|
605
|
+
"name": "GenesisElement",
|
|
606
|
+
"package": "@genesislcap/web-core"
|
|
607
|
+
},
|
|
608
|
+
"tagName": "expression-builder",
|
|
609
|
+
"customElement": true
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"exports": [
|
|
613
|
+
{
|
|
614
|
+
"kind": "js",
|
|
615
|
+
"name": "ExpressionBuilder",
|
|
616
|
+
"declaration": {
|
|
617
|
+
"name": "ExpressionBuilder",
|
|
618
|
+
"module": "src/main/expression-builder.ts"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"kind": "custom-element-definition",
|
|
623
|
+
"name": "expression-builder",
|
|
624
|
+
"declaration": {
|
|
625
|
+
"name": "ExpressionBuilder",
|
|
626
|
+
"module": "src/main/expression-builder.ts"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"kind": "javascript-module",
|
|
633
|
+
"path": "src/main/index.ts",
|
|
634
|
+
"declarations": [],
|
|
635
|
+
"exports": [
|
|
636
|
+
{
|
|
637
|
+
"kind": "js",
|
|
638
|
+
"name": "*",
|
|
639
|
+
"declaration": {
|
|
640
|
+
"name": "*",
|
|
641
|
+
"package": "./expression-builder"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"kind": "js",
|
|
646
|
+
"name": "*",
|
|
647
|
+
"declaration": {
|
|
648
|
+
"name": "*",
|
|
649
|
+
"package": "./expression-builder.styles"
|
|
650
|
+
}
|
|
517
651
|
},
|
|
652
|
+
{
|
|
653
|
+
"kind": "js",
|
|
654
|
+
"name": "*",
|
|
655
|
+
"declaration": {
|
|
656
|
+
"name": "*",
|
|
657
|
+
"package": "./expression-builder.template"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"kind": "javascript-module",
|
|
664
|
+
"path": "src/utils/data-model.ts",
|
|
665
|
+
"declarations": [
|
|
518
666
|
{
|
|
519
667
|
"kind": "function",
|
|
520
|
-
"name": "
|
|
668
|
+
"name": "groupToModelGroup",
|
|
521
669
|
"return": {
|
|
522
670
|
"type": {
|
|
523
671
|
"text": "ModelGroup"
|
|
@@ -525,396 +673,244 @@
|
|
|
525
673
|
},
|
|
526
674
|
"parameters": [
|
|
527
675
|
{
|
|
528
|
-
"name": "
|
|
676
|
+
"name": "group",
|
|
529
677
|
"type": {
|
|
530
|
-
"text": "
|
|
678
|
+
"text": "Group"
|
|
531
679
|
}
|
|
532
680
|
},
|
|
533
681
|
{
|
|
534
|
-
"name": "
|
|
682
|
+
"name": "provider",
|
|
535
683
|
"type": {
|
|
536
|
-
"text": "
|
|
684
|
+
"text": "MetadataProvider"
|
|
537
685
|
}
|
|
538
686
|
}
|
|
539
|
-
]
|
|
540
|
-
|
|
541
|
-
{
|
|
542
|
-
"kind": "variable",
|
|
543
|
-
"name": "ROOT_GROUP",
|
|
544
|
-
"type": {
|
|
545
|
-
"text": "string"
|
|
546
|
-
},
|
|
547
|
-
"default": "'group-root'"
|
|
687
|
+
],
|
|
688
|
+
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
548
689
|
},
|
|
549
690
|
{
|
|
550
691
|
"kind": "function",
|
|
551
|
-
"name": "
|
|
692
|
+
"name": "modelGroupToGroup",
|
|
552
693
|
"return": {
|
|
553
694
|
"type": {
|
|
554
|
-
"text": "
|
|
695
|
+
"text": ""
|
|
555
696
|
}
|
|
556
697
|
},
|
|
557
698
|
"parameters": [
|
|
558
699
|
{
|
|
559
|
-
"name": "
|
|
700
|
+
"name": "modelGroup",
|
|
560
701
|
"type": {
|
|
561
702
|
"text": "ModelGroup"
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
{
|
|
565
|
-
"name": "groupIdToUpdate",
|
|
566
|
-
"type": {
|
|
567
|
-
"text": "string"
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"name": "newData",
|
|
572
|
-
"type": {
|
|
573
|
-
"text": "EventsDetailMap[Events.UpdateGroup]['newData']"
|
|
574
|
-
}
|
|
703
|
+
},
|
|
704
|
+
"description": "The internal ModelGroup to convert."
|
|
575
705
|
}
|
|
576
|
-
]
|
|
706
|
+
],
|
|
707
|
+
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
577
708
|
},
|
|
578
709
|
{
|
|
579
710
|
"kind": "function",
|
|
580
|
-
"name": "
|
|
711
|
+
"name": "modelRuleToRule",
|
|
581
712
|
"return": {
|
|
582
713
|
"type": {
|
|
583
|
-
"text": "
|
|
714
|
+
"text": ""
|
|
584
715
|
}
|
|
585
716
|
},
|
|
586
717
|
"parameters": [
|
|
587
718
|
{
|
|
588
|
-
"name": "
|
|
589
|
-
"type": {
|
|
590
|
-
"text": "ModelGroup"
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "ruleIdToUpdate",
|
|
595
|
-
"type": {
|
|
596
|
-
"text": "string"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"name": "newData",
|
|
719
|
+
"name": "modelRule",
|
|
601
720
|
"type": {
|
|
602
|
-
"text": "
|
|
603
|
-
}
|
|
721
|
+
"text": "ModelRule"
|
|
722
|
+
},
|
|
723
|
+
"description": "The internal ModelRule to convert."
|
|
604
724
|
}
|
|
605
|
-
]
|
|
725
|
+
],
|
|
726
|
+
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
606
727
|
}
|
|
607
728
|
],
|
|
608
729
|
"exports": [
|
|
609
730
|
{
|
|
610
731
|
"kind": "js",
|
|
611
|
-
"name": "
|
|
732
|
+
"name": "groupToModelGroup",
|
|
612
733
|
"declaration": {
|
|
613
|
-
"name": "
|
|
614
|
-
"module": "src/
|
|
734
|
+
"name": "groupToModelGroup",
|
|
735
|
+
"module": "src/utils/data-model.ts"
|
|
615
736
|
}
|
|
616
737
|
},
|
|
617
738
|
{
|
|
618
739
|
"kind": "js",
|
|
619
|
-
"name": "
|
|
740
|
+
"name": "modelGroupToGroup",
|
|
620
741
|
"declaration": {
|
|
621
|
-
"name": "
|
|
622
|
-
"module": "src/
|
|
742
|
+
"name": "modelGroupToGroup",
|
|
743
|
+
"module": "src/utils/data-model.ts"
|
|
623
744
|
}
|
|
624
745
|
},
|
|
625
746
|
{
|
|
626
747
|
"kind": "js",
|
|
627
|
-
"name": "
|
|
748
|
+
"name": "modelRuleToRule",
|
|
628
749
|
"declaration": {
|
|
629
|
-
"name": "
|
|
630
|
-
"module": "src/
|
|
750
|
+
"name": "modelRuleToRule",
|
|
751
|
+
"module": "src/utils/data-model.ts"
|
|
631
752
|
}
|
|
632
|
-
}
|
|
753
|
+
}
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"kind": "javascript-module",
|
|
758
|
+
"path": "src/utils/formatting.ts",
|
|
759
|
+
"declarations": [
|
|
633
760
|
{
|
|
634
|
-
"kind": "
|
|
635
|
-
"name": "
|
|
636
|
-
"
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
761
|
+
"kind": "function",
|
|
762
|
+
"name": "formatDateString",
|
|
763
|
+
"parameters": [
|
|
764
|
+
{
|
|
765
|
+
"name": "date",
|
|
766
|
+
"type": {
|
|
767
|
+
"text": "Date"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`"
|
|
640
772
|
},
|
|
641
773
|
{
|
|
642
|
-
"kind": "
|
|
643
|
-
"name": "
|
|
644
|
-
"
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
774
|
+
"kind": "function",
|
|
775
|
+
"name": "formatDateTimeString",
|
|
776
|
+
"parameters": [
|
|
777
|
+
{
|
|
778
|
+
"name": "date",
|
|
779
|
+
"type": {
|
|
780
|
+
"text": "Date"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`"
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
"exports": [
|
|
649
788
|
{
|
|
650
789
|
"kind": "js",
|
|
651
|
-
"name": "
|
|
790
|
+
"name": "formatDateString",
|
|
652
791
|
"declaration": {
|
|
653
|
-
"name": "
|
|
654
|
-
"module": "src/
|
|
792
|
+
"name": "formatDateString",
|
|
793
|
+
"module": "src/utils/formatting.ts"
|
|
655
794
|
}
|
|
656
795
|
},
|
|
657
796
|
{
|
|
658
797
|
"kind": "js",
|
|
659
|
-
"name": "
|
|
798
|
+
"name": "formatDateTimeString",
|
|
660
799
|
"declaration": {
|
|
661
|
-
"name": "
|
|
662
|
-
"module": "src/
|
|
800
|
+
"name": "formatDateTimeString",
|
|
801
|
+
"module": "src/utils/formatting.ts"
|
|
663
802
|
}
|
|
664
803
|
}
|
|
665
804
|
]
|
|
666
805
|
},
|
|
667
806
|
{
|
|
668
807
|
"kind": "javascript-module",
|
|
669
|
-
"path": "src/
|
|
670
|
-
"declarations": [
|
|
671
|
-
{
|
|
672
|
-
"kind": "variable",
|
|
673
|
-
"name": "styles",
|
|
674
|
-
"default": "css`\n :host {\n --item-vertical-spacing: 4px;\n --item-border-radius: 5px;\n --group-background-color: rgb(250 240 210 / 50%);\n --group-border-color: #dcc896;\n --group-border: 1px solid var(--group-border-color);\n --group-padding: 10px;\n --rule-background-color: rgb(255 255 255 / 90%);\n --rule-border-color: #eee;\n --rule-border: 1px solid var(--rule-border-color);\n --rule-padding: 5px;\n --rule-value-separator: 1px solid #ddd;\n --error-icon-color: #f00;\n --error-border-color: #f99;\n --error-background-color: #fdd;\n --ticks-width: 2px;\n --ticks-color: #ccc;\n }\n\n p.test {\n color: black;\n }\n\n .query-builder {\n font-family: sans-serif;\n }\n\n .rules-group-container {\n position: relative;\n margin: var(--item-vertical-spacing) 0;\n border-radius: var(--item-border-radius);\n padding: var(--group-padding);\n border: var(--group-border);\n background: var(--group-background-color);\n }\n\n .rules-group-header {\n margin-bottom: var(--group-padding);\n }\n\n .group-conditions {\n display: inline-block;\n }\n\n .group-conditions .btn {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n border-radius: 0.2rem;\n border: 1px solid #007bff;\n color: #007bff;\n background-color: transparent;\n cursor: pointer;\n }\n\n .group-conditions .btn:hover {\n background-color: #007bff;\n color: #fff;\n }\n\n .group-conditions .btn.active {\n background-color: #007bff;\n color: #fff;\n }\n\n .group-actions {\n display: inline-block;\n float: right;\n }\n\n .rules-list {\n list-style: none;\n padding: 0 0 0 20px; /* Adjusted ticks position */\n margin: 0;\n }\n\n .rule-container {\n position: relative;\n margin: var(--item-vertical-spacing) 0;\n border-radius: var(--item-border-radius);\n padding: var(--rule-padding);\n border: var(--rule-border);\n background: var(--rule-background-color);\n }\n\n .rule-header {\n margin-bottom: 5px;\n }\n\n .rule-actions {\n display: inline-block;\n float: right;\n }\n\n .rule-field-container,\n .rule-operator-container,\n .rule-value-container {\n display: inline-block;\n margin: 0 5px 0 0;\n vertical-align: middle;\n }\n\n .rule-value-container {\n border-left: var(--rule-value-separator);\n padding-left: 5px;\n }\n\n .rule-value-container label {\n margin-bottom: 0;\n font-weight: normal;\n }\n\n .rule-value-container label.block {\n display: block;\n }\n\n .error-container {\n display: none;\n cursor: help;\n color: var(--error-icon-color);\n margin-left: 5px;\n }\n\n .rule-container.has-error,\n .rules-group-container.has-error {\n background-color: var(--error-background-color);\n border-color: var(--error-border-color);\n }\n\n .rule-container.has-error .error-container,\n .rules-group-container.has-error .error-container {\n display: inline-block !important;\n }\n\n /* Ticks */\n .rules-list > * {\n position: relative;\n }\n\n .rules-list > *::before,\n .rules-list > *::after {\n content: '';\n position: absolute;\n left: -10px; /* Adjusted ticks position */\n width: 10px; /* Adjusted ticks position */\n border-color: var(--ticks-color);\n border-style: solid;\n }\n\n .rules-list > *::before {\n top: -2px; /* Adjusted ticks position */\n height: calc(50% + var(--item-vertical-spacing));\n border-width: 0 0 var(--ticks-width) var(--ticks-width);\n }\n\n .rules-list > *::after {\n top: 50%;\n border-width: 0 0 0 var(--ticks-width);\n height: 50%;\n }\n\n .rules-list > *:first-child::before {\n top: calc(-1 * var(--group-padding) - var(--ticks-width));\n height: calc(50% + var(--group-padding) + var(--item-vertical-spacing));\n }\n\n .rules-list > *:last-child::before {\n border-radius: 0 0 0 calc(2 * var(--ticks-width));\n }\n\n .rules-list > *:last-child::after {\n display: none;\n }\n`"
|
|
675
|
-
}
|
|
676
|
-
],
|
|
808
|
+
"path": "src/utils/index.ts",
|
|
809
|
+
"declarations": [],
|
|
677
810
|
"exports": [
|
|
678
811
|
{
|
|
679
812
|
"kind": "js",
|
|
680
|
-
"name": "
|
|
813
|
+
"name": "*",
|
|
681
814
|
"declaration": {
|
|
682
|
-
"name": "
|
|
683
|
-
"
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
]
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"kind": "javascript-module",
|
|
690
|
-
"path": "src/main/expression-builder.template.ts",
|
|
691
|
-
"declarations": [
|
|
692
|
-
{
|
|
693
|
-
"kind": "variable",
|
|
694
|
-
"name": "template",
|
|
695
|
-
"default": "html<ExpressionBuilder>`\n <div class=\"query-builder\">\n <expression-group\n :model=${(x) => x.model}\n :config=${(x) => x.config}\n :styles=${(x) => x.styles}\n ></expression-group>\n </div>\n`"
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
"exports": [
|
|
815
|
+
"name": "*",
|
|
816
|
+
"package": "./data-model"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
699
819
|
{
|
|
700
820
|
"kind": "js",
|
|
701
|
-
"name": "
|
|
821
|
+
"name": "*",
|
|
702
822
|
"declaration": {
|
|
703
|
-
"name": "
|
|
704
|
-
"
|
|
823
|
+
"name": "*",
|
|
824
|
+
"package": "./formatting"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"kind": "js",
|
|
829
|
+
"name": "*",
|
|
830
|
+
"declaration": {
|
|
831
|
+
"name": "*",
|
|
832
|
+
"package": "./misc"
|
|
705
833
|
}
|
|
706
834
|
}
|
|
707
835
|
]
|
|
708
836
|
},
|
|
709
837
|
{
|
|
710
838
|
"kind": "javascript-module",
|
|
711
|
-
"path": "src/
|
|
839
|
+
"path": "src/utils/misc.ts",
|
|
712
840
|
"declarations": [
|
|
713
841
|
{
|
|
714
|
-
"kind": "
|
|
715
|
-
"
|
|
716
|
-
"
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
"text": "Config"
|
|
723
|
-
}
|
|
724
|
-
},
|
|
842
|
+
"kind": "function",
|
|
843
|
+
"name": "processOptGroups",
|
|
844
|
+
"return": {
|
|
845
|
+
"type": {
|
|
846
|
+
"text": "(T | { optgroup: string | null; xs: T[] })[]"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"parameters": [
|
|
725
850
|
{
|
|
726
|
-
"
|
|
727
|
-
"name": "styles",
|
|
851
|
+
"name": "xs",
|
|
728
852
|
"type": {
|
|
729
|
-
"text": "
|
|
853
|
+
"text": "T[]"
|
|
730
854
|
}
|
|
731
|
-
}
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "function",
|
|
860
|
+
"name": "applyCustomStyles",
|
|
861
|
+
"return": {
|
|
862
|
+
"type": {
|
|
863
|
+
"text": "void"
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"parameters": [
|
|
732
867
|
{
|
|
733
|
-
"
|
|
734
|
-
"name": "model",
|
|
868
|
+
"name": "component",
|
|
735
869
|
"type": {
|
|
736
|
-
"text": "
|
|
870
|
+
"text": "HTMLElement"
|
|
737
871
|
},
|
|
738
|
-
"
|
|
872
|
+
"description": "The web component instance"
|
|
739
873
|
},
|
|
740
874
|
{
|
|
741
|
-
"
|
|
742
|
-
"name": "ruleCount",
|
|
875
|
+
"name": "styles",
|
|
743
876
|
"type": {
|
|
744
|
-
"text": "
|
|
877
|
+
"text": "Styles | undefined | null"
|
|
745
878
|
},
|
|
746
|
-
"
|
|
747
|
-
"default": "0"
|
|
879
|
+
"description": "The styles configuration object"
|
|
748
880
|
},
|
|
749
881
|
{
|
|
750
|
-
"
|
|
751
|
-
"name": "groupCount",
|
|
882
|
+
"name": "styleKey",
|
|
752
883
|
"type": {
|
|
753
|
-
"text": "
|
|
884
|
+
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
754
885
|
},
|
|
755
|
-
"
|
|
756
|
-
"default": "0"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"kind": "method",
|
|
760
|
-
"name": "dispatchChangeEvent",
|
|
761
|
-
"privacy": "protected",
|
|
762
|
-
"parameters": [
|
|
763
|
-
{
|
|
764
|
-
"name": "group",
|
|
765
|
-
"type": {
|
|
766
|
-
"text": "Group"
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
]
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
"kind": "field",
|
|
773
|
-
"name": "handleAddGroup",
|
|
774
|
-
"privacy": "private"
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"kind": "method",
|
|
778
|
-
"name": "_handleAddGroup",
|
|
779
|
-
"privacy": "private",
|
|
780
|
-
"parameters": [
|
|
781
|
-
{
|
|
782
|
-
"name": "event",
|
|
783
|
-
"type": {
|
|
784
|
-
"text": "CustomEvent<EventsDetailMap[Events.AddGroup]>"
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
]
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"kind": "field",
|
|
791
|
-
"name": "handleAddRule",
|
|
792
|
-
"privacy": "private"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"kind": "method",
|
|
796
|
-
"name": "_handleAddRule",
|
|
797
|
-
"privacy": "private",
|
|
798
|
-
"parameters": [
|
|
799
|
-
{
|
|
800
|
-
"name": "event",
|
|
801
|
-
"type": {
|
|
802
|
-
"text": "CustomEvent<EventsDetailMap[Events.AddRule]>"
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
]
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"kind": "field",
|
|
809
|
-
"name": "handleDeleteGroup",
|
|
810
|
-
"privacy": "private"
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"kind": "method",
|
|
814
|
-
"name": "_handleDeleteGroup",
|
|
815
|
-
"privacy": "private",
|
|
816
|
-
"parameters": [
|
|
817
|
-
{
|
|
818
|
-
"name": "event",
|
|
819
|
-
"type": {
|
|
820
|
-
"text": "CustomEvent<EventsDetailMap[Events.DelGroup]>"
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
]
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"kind": "field",
|
|
827
|
-
"name": "handleDeleteRule",
|
|
828
|
-
"privacy": "private"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"kind": "method",
|
|
832
|
-
"name": "_handleDeleteRule",
|
|
833
|
-
"privacy": "private",
|
|
834
|
-
"parameters": [
|
|
835
|
-
{
|
|
836
|
-
"name": "event",
|
|
837
|
-
"type": {
|
|
838
|
-
"text": "CustomEvent<EventsDetailMap[Events.DelRule]>"
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
]
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"kind": "field",
|
|
845
|
-
"name": "handleUpdateGroupData",
|
|
846
|
-
"privacy": "private"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"kind": "method",
|
|
850
|
-
"name": "_handleUpdateGroupData",
|
|
851
|
-
"privacy": "private",
|
|
852
|
-
"parameters": [
|
|
853
|
-
{
|
|
854
|
-
"name": "event",
|
|
855
|
-
"type": {
|
|
856
|
-
"text": "CustomEvent<EventsDetailMap[Events.UpdateGroup]>"
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
]
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"kind": "field",
|
|
863
|
-
"name": "handleUpdateRuleData",
|
|
864
|
-
"privacy": "private"
|
|
865
|
-
},
|
|
866
|
-
{
|
|
867
|
-
"kind": "method",
|
|
868
|
-
"name": "_handleUpdateRuleData",
|
|
869
|
-
"privacy": "private",
|
|
870
|
-
"parameters": [
|
|
871
|
-
{
|
|
872
|
-
"name": "event",
|
|
873
|
-
"type": {
|
|
874
|
-
"text": "CustomEvent<EventsDetailMap[Events.UpdateRule]>"
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
]
|
|
878
|
-
}
|
|
879
|
-
],
|
|
880
|
-
"events": [
|
|
881
|
-
{
|
|
882
|
-
"name": "change",
|
|
883
|
-
"type": {
|
|
884
|
-
"text": "CustomEvent"
|
|
885
|
-
}
|
|
886
|
+
"description": "The key in styles.customStyles to use for custom styles"
|
|
886
887
|
}
|
|
887
888
|
],
|
|
888
|
-
"
|
|
889
|
-
"name": "GenesisElement",
|
|
890
|
-
"package": "@genesislcap/web-core"
|
|
891
|
-
},
|
|
892
|
-
"tagName": "expression-builder",
|
|
893
|
-
"customElement": true
|
|
889
|
+
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
894
890
|
}
|
|
895
891
|
],
|
|
896
892
|
"exports": [
|
|
897
893
|
{
|
|
898
894
|
"kind": "js",
|
|
899
|
-
"name": "
|
|
895
|
+
"name": "processOptGroups",
|
|
900
896
|
"declaration": {
|
|
901
|
-
"name": "
|
|
902
|
-
"module": "src/
|
|
897
|
+
"name": "processOptGroups",
|
|
898
|
+
"module": "src/utils/misc.ts"
|
|
903
899
|
}
|
|
904
900
|
},
|
|
905
901
|
{
|
|
906
|
-
"kind": "
|
|
907
|
-
"name": "
|
|
902
|
+
"kind": "js",
|
|
903
|
+
"name": "applyCustomStyles",
|
|
908
904
|
"declaration": {
|
|
909
|
-
"name": "
|
|
910
|
-
"module": "src/
|
|
905
|
+
"name": "applyCustomStyles",
|
|
906
|
+
"module": "src/utils/misc.ts"
|
|
911
907
|
}
|
|
912
908
|
}
|
|
913
909
|
]
|
|
914
910
|
},
|
|
915
911
|
{
|
|
916
912
|
"kind": "javascript-module",
|
|
917
|
-
"path": "src/
|
|
913
|
+
"path": "src/types/index.ts",
|
|
918
914
|
"declarations": [],
|
|
919
915
|
"exports": [
|
|
920
916
|
{
|
|
@@ -922,15 +918,7 @@
|
|
|
922
918
|
"name": "*",
|
|
923
919
|
"declaration": {
|
|
924
920
|
"name": "*",
|
|
925
|
-
"package": "./
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"kind": "js",
|
|
930
|
-
"name": "*",
|
|
931
|
-
"declaration": {
|
|
932
|
-
"name": "*",
|
|
933
|
-
"package": "./expression-builder.styles"
|
|
921
|
+
"package": "./public.types"
|
|
934
922
|
}
|
|
935
923
|
},
|
|
936
924
|
{
|
|
@@ -938,11 +926,23 @@
|
|
|
938
926
|
"name": "*",
|
|
939
927
|
"declaration": {
|
|
940
928
|
"name": "*",
|
|
941
|
-
"package": "./
|
|
929
|
+
"package": "./private.types"
|
|
942
930
|
}
|
|
943
931
|
}
|
|
944
932
|
]
|
|
945
933
|
},
|
|
934
|
+
{
|
|
935
|
+
"kind": "javascript-module",
|
|
936
|
+
"path": "src/types/private.types.ts",
|
|
937
|
+
"declarations": [],
|
|
938
|
+
"exports": []
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "javascript-module",
|
|
942
|
+
"path": "src/types/public.types.ts",
|
|
943
|
+
"declarations": [],
|
|
944
|
+
"exports": []
|
|
945
|
+
},
|
|
946
946
|
{
|
|
947
947
|
"kind": "javascript-module",
|
|
948
948
|
"path": "src/main/expression-group/expression-group.styles.ts",
|