@genesislcap/expression-builder 14.260.1 → 14.260.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/dist/custom-elements.json +145 -139
- package/dist/dts/config/combinators.d.ts +14 -3
- package/dist/dts/config/combinators.d.ts.map +1 -1
- package/dist/dts/main/expression-builder.d.ts +111 -2
- package/dist/dts/main/expression-builder.d.ts.map +1 -1
- package/dist/dts/types/public.types.d.ts +206 -43
- package/dist/dts/types/public.types.d.ts.map +1 -1
- package/dist/dts/utils/formatting.d.ts +8 -4
- package/dist/dts/utils/formatting.d.ts.map +1 -1
- package/dist/esm/config/combinators.js +14 -3
- package/dist/esm/main/expression-builder.js +40 -2
- package/dist/esm/utils/formatting.js +8 -4
- package/dist/expression-builder.api.json +1156 -2
- package/dist/expression-builder.d.ts +339 -52
- package/docs/api/expression-builder.config.base_logical_combinators.md +16 -0
- package/docs/api/expression-builder.config.logical_combinators.md +16 -0
- package/docs/api/expression-builder.config.md +8 -0
- package/docs/api/expression-builder.config.null_combinator.md +18 -0
- package/docs/api/expression-builder.expressionbuilder.config.md +61 -0
- package/docs/api/expression-builder.expressionbuilder.dispatchchangeevent.md +31 -0
- package/docs/api/expression-builder.expressionbuilder.md +40 -0
- package/docs/api/expression-builder.expressionbuilder.model.md +35 -0
- package/docs/api/expression-builder.expressionbuilder.styles.md +39 -0
- package/docs/api/expression-builder.formatdatestring.md +18 -0
- package/docs/api/expression-builder.formatdatetimestring.md +18 -0
- package/docs/api/expression-builder.md +13 -0
- package/docs/api/expression-builder.types._operator.md +23 -0
- package/docs/api/expression-builder.types.binaryoperator.md +20 -0
- package/docs/api/expression-builder.types.checkboxinput.md +19 -0
- package/docs/api/expression-builder.types.combinator.md +29 -0
- package/docs/api/expression-builder.types.config.md +25 -0
- package/docs/api/expression-builder.types.customelements.md +47 -0
- package/docs/api/expression-builder.types.customstyles.md +32 -0
- package/docs/api/expression-builder.types.dateinput.md +20 -0
- package/docs/api/expression-builder.types.datetimeinput.md +20 -0
- package/docs/api/expression-builder.types.field.md +24 -0
- package/docs/api/expression-builder.types.fieldtypes.md +18 -0
- package/docs/api/expression-builder.types.group.md +49 -0
- package/docs/api/expression-builder.types.md +26 -0
- package/docs/api/expression-builder.types.numberinput.md +20 -0
- package/docs/api/expression-builder.types.operator.md +18 -0
- package/docs/api/expression-builder.types.rule.md +45 -0
- package/docs/api/expression-builder.types.selectinput.md +20 -0
- package/docs/api/expression-builder.types.styles.md +25 -0
- package/docs/api/expression-builder.types.ternararyoperator.md +20 -0
- package/docs/api/expression-builder.types.textinput.md +20 -0
- package/docs/api/expression-builder.types.uniraryoperator.md +22 -0
- package/docs/api/expression-builder.types.variadicoperator.md +20 -0
- package/docs/api-report.md +29 -34
- package/package.json +2 -2
|
@@ -193,7 +193,344 @@
|
|
|
193
193
|
"releaseTag": "None",
|
|
194
194
|
"name": "Config",
|
|
195
195
|
"preserveMemberOrder": false,
|
|
196
|
-
"members": [
|
|
196
|
+
"members": [
|
|
197
|
+
{
|
|
198
|
+
"kind": "Variable",
|
|
199
|
+
"canonicalReference": "@genesislcap/expression-builder!Config.BASE_LOGICAL_COMBINATORS:var",
|
|
200
|
+
"docComment": "/**\n * Basic `AND` and `OR` logical combinators which can be used in the model config.\n *\n * @beta\n */\n",
|
|
201
|
+
"excerptTokens": [
|
|
202
|
+
{
|
|
203
|
+
"kind": "Content",
|
|
204
|
+
"text": "BASE_LOGICAL_COMBINATORS: "
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "Reference",
|
|
208
|
+
"text": "Combinator",
|
|
209
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Content",
|
|
213
|
+
"text": "[]"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"fileUrlPath": "src/config/combinators.ts",
|
|
217
|
+
"isReadonly": true,
|
|
218
|
+
"releaseTag": "Beta",
|
|
219
|
+
"name": "BASE_LOGICAL_COMBINATORS",
|
|
220
|
+
"variableTypeTokenRange": {
|
|
221
|
+
"startIndex": 1,
|
|
222
|
+
"endIndex": 3
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "Variable",
|
|
227
|
+
"canonicalReference": "@genesislcap/expression-builder!Config.LOGICAL_COMBINATORS:var",
|
|
228
|
+
"docComment": "/**\n * A set of boolean logic combinators which configure the expression builder to produce boolean expressions.\n *\n * @beta\n */\n",
|
|
229
|
+
"excerptTokens": [
|
|
230
|
+
{
|
|
231
|
+
"kind": "Content",
|
|
232
|
+
"text": "LOGICAL_COMBINATORS: "
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "Reference",
|
|
236
|
+
"text": "Combinator",
|
|
237
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "Content",
|
|
241
|
+
"text": "[]"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"fileUrlPath": "src/config/combinators.ts",
|
|
245
|
+
"isReadonly": true,
|
|
246
|
+
"releaseTag": "Beta",
|
|
247
|
+
"name": "LOGICAL_COMBINATORS",
|
|
248
|
+
"variableTypeTokenRange": {
|
|
249
|
+
"startIndex": 1,
|
|
250
|
+
"endIndex": 3
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "Variable",
|
|
255
|
+
"canonicalReference": "@genesislcap/expression-builder!Config.NULL_COMBINATOR:var",
|
|
256
|
+
"docComment": "/**\n * A combinator which has a null action.\n *\n * If configured as the only combinator then it configures the expression builder to only create a single rule.\n *\n * @beta\n */\n",
|
|
257
|
+
"excerptTokens": [
|
|
258
|
+
{
|
|
259
|
+
"kind": "Content",
|
|
260
|
+
"text": "NULL_COMBINATOR: "
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"kind": "Reference",
|
|
264
|
+
"text": "Combinator",
|
|
265
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"fileUrlPath": "src/config/combinators.ts",
|
|
269
|
+
"isReadonly": true,
|
|
270
|
+
"releaseTag": "Beta",
|
|
271
|
+
"name": "NULL_COMBINATOR",
|
|
272
|
+
"variableTypeTokenRange": {
|
|
273
|
+
"startIndex": 1,
|
|
274
|
+
"endIndex": 2
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"kind": "Class",
|
|
281
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder:class",
|
|
282
|
+
"docComment": "/**\n * Top level component to allow the user to build expressions. It produces a generic payload which doesn't have any system by itself to evaluate or execute the built expression.\n *\n * The basics required to work with this component:\n *\n * {@link ExpressionBuilder.config} property to configure and input data and models into the component.\n *\n * _Event_ change - `Types.Group` emits the model configuration on change. If you create a child component of the expression builder where you want to use a different (e.g. domain specific) model then it will likely override then emit event and instead emit it's own model. To check the underlying `Types.Group` model check the {@link ExpressionBuilder.model} property.\n *\n * @beta\n */\n",
|
|
283
|
+
"excerptTokens": [
|
|
284
|
+
{
|
|
285
|
+
"kind": "Content",
|
|
286
|
+
"text": "export declare class ExpressionBuilder extends "
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"kind": "Reference",
|
|
290
|
+
"text": "GenesisElement",
|
|
291
|
+
"canonicalReference": "@microsoft/fast-element!FASTElement:interface"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"kind": "Content",
|
|
295
|
+
"text": " implements "
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"kind": "Reference",
|
|
299
|
+
"text": "MetadataProvider",
|
|
300
|
+
"canonicalReference": "@genesislcap/expression-builder!~MetadataProvider:interface"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"kind": "Content",
|
|
304
|
+
"text": " "
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"fileUrlPath": "src/main/expression-builder.ts",
|
|
308
|
+
"releaseTag": "Beta",
|
|
309
|
+
"isAbstract": false,
|
|
310
|
+
"name": "ExpressionBuilder",
|
|
311
|
+
"preserveMemberOrder": false,
|
|
312
|
+
"members": [
|
|
313
|
+
{
|
|
314
|
+
"kind": "Property",
|
|
315
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder#config:member",
|
|
316
|
+
"docComment": "/**\n * config - `Types.Config` the configuration which is required to be set for the expression builder. All properties are defined under this single object to enforce that they're kept in sync with one another.\n *\n * If you want to set the expression of the expression builder you should do it via the `model` property on this object.\n *\n * If you're using a child class of this component with a specific model implementation you likely *don't* want to set this property directly. See example 3.\n *\n * @example\n *\n * Configuring the basic elements required by an expression builder instance\n * ```ts\n * const config: Types.Config = {\n * fields: ...,\n * combinators: ...,\n * operators: ...,\n * };\n * document.querySelector('expression-builder').config = config;\n * ```\n *\n * @example\n *\n * Configuring the basic elements required by an expression builder instance, as well as inputting a model to hydrate\n * ```ts\n * const config: Types.Config = {\n * fields: ...,\n * combinators: ...,\n * operators: ...,\n * model: ...,\n * };\n * document.querySelector('expression-builder').config = config;\n * ```\n *\n * @example\n *\n * You may create your own child of the expression builder which automatically defines some of the properties, such as creating a rule builder which defines boolean operators and combinators. In this case you should use your own property name, and on change apply the user and your configurations back to the config property.\n * ```ts\n * const config: MyTypes.RuleConfig = {\n * operators: ...,\n * };\n * // In the implementation of RuleExpressionBuilder it should listen to ruleConfigChanged and\n * apply the missing combinators and opreators back to the config along with the user's configuration\n * document.querySelector('rule-expression-builder').ruleConfig = config;\n * ```\n *\n * @beta\n */\n",
|
|
317
|
+
"excerptTokens": [
|
|
318
|
+
{
|
|
319
|
+
"kind": "Content",
|
|
320
|
+
"text": "config: "
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"kind": "Reference",
|
|
324
|
+
"text": "Config",
|
|
325
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Config_2:type"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"kind": "Content",
|
|
329
|
+
"text": ";"
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
"isReadonly": false,
|
|
333
|
+
"isOptional": false,
|
|
334
|
+
"releaseTag": "Beta",
|
|
335
|
+
"name": "config",
|
|
336
|
+
"propertyTypeTokenRange": {
|
|
337
|
+
"startIndex": 1,
|
|
338
|
+
"endIndex": 2
|
|
339
|
+
},
|
|
340
|
+
"isStatic": false,
|
|
341
|
+
"isProtected": false,
|
|
342
|
+
"isAbstract": false
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "Method",
|
|
346
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder#dispatchChangeEvent:member(1)",
|
|
347
|
+
"docComment": "/**\n * Dispatches the provided model to the DOM.\n *\n * @remarks\n *\n * Override this to change the shape of model the component returns\n *\n * @beta\n */\n",
|
|
348
|
+
"excerptTokens": [
|
|
349
|
+
{
|
|
350
|
+
"kind": "Content",
|
|
351
|
+
"text": "protected dispatchChangeEvent(group: "
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"kind": "Reference",
|
|
355
|
+
"text": "Group",
|
|
356
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Group:type"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"kind": "Content",
|
|
360
|
+
"text": "): "
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "Content",
|
|
364
|
+
"text": "void"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"kind": "Content",
|
|
368
|
+
"text": ";"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"isStatic": false,
|
|
372
|
+
"returnTypeTokenRange": {
|
|
373
|
+
"startIndex": 3,
|
|
374
|
+
"endIndex": 4
|
|
375
|
+
},
|
|
376
|
+
"releaseTag": "Beta",
|
|
377
|
+
"isProtected": true,
|
|
378
|
+
"overloadIndex": 1,
|
|
379
|
+
"parameters": [
|
|
380
|
+
{
|
|
381
|
+
"parameterName": "group",
|
|
382
|
+
"parameterTypeTokenRange": {
|
|
383
|
+
"startIndex": 1,
|
|
384
|
+
"endIndex": 2
|
|
385
|
+
},
|
|
386
|
+
"isOptional": false
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"isOptional": false,
|
|
390
|
+
"isAbstract": false,
|
|
391
|
+
"name": "dispatchChangeEvent"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"kind": "Property",
|
|
395
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder#model:member",
|
|
396
|
+
"docComment": "/**\n * model - `Types.Group` the current model which completely describes the state of the component.\n *\n * *IMPORTANT* you should not set this yourself via this property directly, you should always set it via the model property on the {@link ExpressionBuilder.config} block.\n *\n * You may want to read from this variable to get the most up to date state, for example if you create a child component which has a model which isn't valid for every single state (e.g. requires a complete rule) you can check this underlying model to verify what field or operator is selected.\n *\n * @example\n * ```ts\n * const model = document.querySelector('expression-builder');\n * // Once you have the model you can read it to check the applied config. While the primary use should be checking the updated model via\n * the emited change event, you can use this to check more specific changes that a domain specific model might not.\n *\n * For example, imagine a RulExpressionBuilder which is an implementation specifically for a boolean logic expression. That component may not\n * model a non-complete rule (a rule without a field, and operator, and value). In that case when it emits the event the payload will only change\n * when the user has completely configured a new rule. But if you need to catch cases earlier when they've changed the field but before they've\n * changed the value you can check the model here.\n * ```\n *\n * @beta\n */\n",
|
|
397
|
+
"excerptTokens": [
|
|
398
|
+
{
|
|
399
|
+
"kind": "Content",
|
|
400
|
+
"text": "model: "
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"kind": "Reference",
|
|
404
|
+
"text": "ModelGroup",
|
|
405
|
+
"canonicalReference": "@genesislcap/expression-builder!~ModelGroup:type"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"kind": "Content",
|
|
409
|
+
"text": " | null"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"kind": "Content",
|
|
413
|
+
"text": ";"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"isReadonly": false,
|
|
417
|
+
"isOptional": false,
|
|
418
|
+
"releaseTag": "Beta",
|
|
419
|
+
"name": "model",
|
|
420
|
+
"propertyTypeTokenRange": {
|
|
421
|
+
"startIndex": 1,
|
|
422
|
+
"endIndex": 3
|
|
423
|
+
},
|
|
424
|
+
"isStatic": false,
|
|
425
|
+
"isProtected": false,
|
|
426
|
+
"isAbstract": false
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "Property",
|
|
430
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder#styles:member",
|
|
431
|
+
"docComment": "/**\n * styles - `Types.Styles` optional configuration which allows you to set custom element tag names to be used, as well as custom css to be inserted into the shadow DOM.\n *\n * @example\n *\n * Bare bones example of using a custom select component\n * ```ts\n * const styles: Types.Styles = {\n * customElements: {\n * select: 'rapid-select',\n * },\n * styles: {\n * // If you want to customise your `rapid-select` then you can do it here. The select input\n * // is used in the value, field, and operator component, so you should set the styles for all of them for real\n * value: `\n * rapid-select {\n * max-width: 180px;\n * }\n * `\n * }\n * }\n * document.querySelector('expression-builder').styles = styles;\n * ```\n *\n * @beta\n */\n",
|
|
432
|
+
"excerptTokens": [
|
|
433
|
+
{
|
|
434
|
+
"kind": "Content",
|
|
435
|
+
"text": "styles?: "
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"kind": "Reference",
|
|
439
|
+
"text": "Styles",
|
|
440
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Styles:type"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"kind": "Content",
|
|
444
|
+
"text": ";"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"isReadonly": false,
|
|
448
|
+
"isOptional": true,
|
|
449
|
+
"releaseTag": "Beta",
|
|
450
|
+
"name": "styles",
|
|
451
|
+
"propertyTypeTokenRange": {
|
|
452
|
+
"startIndex": 1,
|
|
453
|
+
"endIndex": 2
|
|
454
|
+
},
|
|
455
|
+
"isStatic": false,
|
|
456
|
+
"isProtected": false,
|
|
457
|
+
"isAbstract": false
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"extendsTokenRange": {
|
|
461
|
+
"startIndex": 1,
|
|
462
|
+
"endIndex": 2
|
|
463
|
+
},
|
|
464
|
+
"implementsTokenRanges": [
|
|
465
|
+
{
|
|
466
|
+
"startIndex": 3,
|
|
467
|
+
"endIndex": 4
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"kind": "Variable",
|
|
473
|
+
"canonicalReference": "@genesislcap/expression-builder!formatDateString:var",
|
|
474
|
+
"docComment": "/**\n * Gets the string representation from a `Date` which is the format a `date` input uses. `yyyy-mm-dd`. Uses UTC methods to ensure consistent output regardless of timezone.\n *\n * Used to convert a javascript date object into the required string format expected by the expression builder.\n *\n * @beta\n */\n",
|
|
475
|
+
"excerptTokens": [
|
|
476
|
+
{
|
|
477
|
+
"kind": "Content",
|
|
478
|
+
"text": "formatDateString: "
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"kind": "Content",
|
|
482
|
+
"text": "(date: "
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"kind": "Reference",
|
|
486
|
+
"text": "Date",
|
|
487
|
+
"canonicalReference": "!Date:interface"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "Content",
|
|
491
|
+
"text": ") => string"
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"fileUrlPath": "src/utils/formatting.ts",
|
|
495
|
+
"isReadonly": true,
|
|
496
|
+
"releaseTag": "Beta",
|
|
497
|
+
"name": "formatDateString",
|
|
498
|
+
"variableTypeTokenRange": {
|
|
499
|
+
"startIndex": 1,
|
|
500
|
+
"endIndex": 4
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"kind": "Variable",
|
|
505
|
+
"canonicalReference": "@genesislcap/expression-builder!formatDateTimeString:var",
|
|
506
|
+
"docComment": "/**\n * Gets the string representation from a `Date` which is the format a `datetime-local` input uses. `yyyy-mm-ddThh:mm:ss`. Uses UTC methods to ensure consistent output regardless of timezone.\n *\n * Used to convert a javascript date object into the required string format expected by the expression builder.\n *\n * @beta\n */\n",
|
|
507
|
+
"excerptTokens": [
|
|
508
|
+
{
|
|
509
|
+
"kind": "Content",
|
|
510
|
+
"text": "formatDateTimeString: "
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"kind": "Content",
|
|
514
|
+
"text": "(date: "
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"kind": "Reference",
|
|
518
|
+
"text": "Date",
|
|
519
|
+
"canonicalReference": "!Date:interface"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"kind": "Content",
|
|
523
|
+
"text": ") => string"
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"fileUrlPath": "src/utils/formatting.ts",
|
|
527
|
+
"isReadonly": true,
|
|
528
|
+
"releaseTag": "Beta",
|
|
529
|
+
"name": "formatDateTimeString",
|
|
530
|
+
"variableTypeTokenRange": {
|
|
531
|
+
"startIndex": 1,
|
|
532
|
+
"endIndex": 4
|
|
533
|
+
}
|
|
197
534
|
},
|
|
198
535
|
{
|
|
199
536
|
"kind": "Namespace",
|
|
@@ -204,7 +541,824 @@
|
|
|
204
541
|
"releaseTag": "None",
|
|
205
542
|
"name": "Types",
|
|
206
543
|
"preserveMemberOrder": false,
|
|
207
|
-
"members": [
|
|
544
|
+
"members": [
|
|
545
|
+
{
|
|
546
|
+
"kind": "TypeAlias",
|
|
547
|
+
"canonicalReference": "@genesislcap/expression-builder!Types._Operator:type",
|
|
548
|
+
"docComment": "/**\n * *\n *\n * @beta\n */\n",
|
|
549
|
+
"excerptTokens": [
|
|
550
|
+
{
|
|
551
|
+
"kind": "Content",
|
|
552
|
+
"text": "export type _Operator = "
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"kind": "Content",
|
|
556
|
+
"text": "{\n applyTo: "
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"kind": "Reference",
|
|
560
|
+
"text": "FieldTypes",
|
|
561
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.FieldTypes:type"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"kind": "Content",
|
|
565
|
+
"text": "['type'][];\n optgroup?: string | null;\n type: string;\n tooltip?: string;\n}"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"kind": "Content",
|
|
569
|
+
"text": ";"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
573
|
+
"releaseTag": "Beta",
|
|
574
|
+
"name": "_Operator",
|
|
575
|
+
"typeTokenRange": {
|
|
576
|
+
"startIndex": 1,
|
|
577
|
+
"endIndex": 4
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "TypeAlias",
|
|
582
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.BinaryOperator:type",
|
|
583
|
+
"docComment": "/**\n * An operator which has one value. Example `greater_than` *\n *\n * @beta\n */\n",
|
|
584
|
+
"excerptTokens": [
|
|
585
|
+
{
|
|
586
|
+
"kind": "Content",
|
|
587
|
+
"text": "export type BinaryOperator = "
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"kind": "Content",
|
|
591
|
+
"text": "{\n nbInputs: 1;\n} & "
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"kind": "Reference",
|
|
595
|
+
"text": "_Operator",
|
|
596
|
+
"canonicalReference": "@genesislcap/expression-builder!Types._Operator:type"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"kind": "Content",
|
|
600
|
+
"text": ";"
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
604
|
+
"releaseTag": "Beta",
|
|
605
|
+
"name": "BinaryOperator",
|
|
606
|
+
"typeTokenRange": {
|
|
607
|
+
"startIndex": 1,
|
|
608
|
+
"endIndex": 3
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"kind": "TypeAlias",
|
|
613
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CheckboxInput:type",
|
|
614
|
+
"docComment": "/**\n * Configuration for a boolean-type input, which has a boolean value and a checkbox. *\n *\n * @beta\n */\n",
|
|
615
|
+
"excerptTokens": [
|
|
616
|
+
{
|
|
617
|
+
"kind": "Content",
|
|
618
|
+
"text": "export type CheckboxInput = "
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "Content",
|
|
622
|
+
"text": "{\n input: 'checkbox';\n type: 'boolean';\n}"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"kind": "Content",
|
|
626
|
+
"text": ";"
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
630
|
+
"releaseTag": "Beta",
|
|
631
|
+
"name": "CheckboxInput",
|
|
632
|
+
"typeTokenRange": {
|
|
633
|
+
"startIndex": 1,
|
|
634
|
+
"endIndex": 2
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"kind": "TypeAlias",
|
|
639
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type",
|
|
640
|
+
"docComment": "/**\n * *\n *\n * @beta\n */\n",
|
|
641
|
+
"excerptTokens": [
|
|
642
|
+
{
|
|
643
|
+
"kind": "Content",
|
|
644
|
+
"text": "export type Combinator = "
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"kind": "Content",
|
|
648
|
+
"text": "{\n type: string;\n maxRules: 1 | 2 | 'many';\n invisible?: boolean;\n label?: string;\n description?: string;\n allowedFields?: "
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "Reference",
|
|
652
|
+
"text": "Field",
|
|
653
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Field:type"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"kind": "Content",
|
|
657
|
+
"text": "['fieldId'][];\n allowedOperators?: "
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"kind": "Reference",
|
|
661
|
+
"text": "Operator",
|
|
662
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Operator:type"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "Content",
|
|
666
|
+
"text": "['type'][];\n validator?: (group: "
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "Reference",
|
|
670
|
+
"text": "Group",
|
|
671
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Group:type"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"kind": "Content",
|
|
675
|
+
"text": ") => string | null;\n allowLiterals?: boolean;\n forceFieldOnly?: boolean;\n}"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "Content",
|
|
679
|
+
"text": ";"
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
683
|
+
"releaseTag": "Beta",
|
|
684
|
+
"name": "Combinator",
|
|
685
|
+
"typeTokenRange": {
|
|
686
|
+
"startIndex": 1,
|
|
687
|
+
"endIndex": 8
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"kind": "TypeAlias",
|
|
692
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Config:type",
|
|
693
|
+
"docComment": "/**\n * *\n *\n * @beta\n */\n",
|
|
694
|
+
"excerptTokens": [
|
|
695
|
+
{
|
|
696
|
+
"kind": "Content",
|
|
697
|
+
"text": "export type Config = "
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"kind": "Content",
|
|
701
|
+
"text": "{\n operators: "
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"kind": "Reference",
|
|
705
|
+
"text": "Operator",
|
|
706
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Operator:type"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"kind": "Content",
|
|
710
|
+
"text": "[];\n fields: "
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"kind": "Reference",
|
|
714
|
+
"text": "Field",
|
|
715
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Field:type"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"kind": "Content",
|
|
719
|
+
"text": "[];\n combinators: "
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"kind": "Reference",
|
|
723
|
+
"text": "Combinator",
|
|
724
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "Content",
|
|
728
|
+
"text": "[];\n model?: "
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"kind": "Reference",
|
|
732
|
+
"text": "Group",
|
|
733
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Group:type"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"kind": "Content",
|
|
737
|
+
"text": ";\n maxNesting?: number;\n partialRuleValidationWarning?: boolean;\n}"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"kind": "Content",
|
|
741
|
+
"text": ";"
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
745
|
+
"releaseTag": "Beta",
|
|
746
|
+
"name": "Config",
|
|
747
|
+
"typeTokenRange": {
|
|
748
|
+
"startIndex": 1,
|
|
749
|
+
"endIndex": 10
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"kind": "TypeAlias",
|
|
754
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CustomElements:type",
|
|
755
|
+
"docComment": "/**\n * By default the expression builder uses the basic html components such as buttons and inputs. If you want to integrate your own components from a design system or otherwise you can add the tag names for your elements here. For your custom components to work they must expose the same API as the underlying HTML element they're overriding.\n *\n * `checkbox`: Custom element tag for checkbox inputs\n *\n * `text`: Custom element tag for text inputs\n *\n * `number`: Custom element tag for number inputs\n *\n * `date`: Custom element tag for date inputs\n *\n * `datetimeLocal`: Custom element tag for datetime-local inputs\n *\n * `select`: Custom element tag for select inputs\n *\n * `option`: Custom element tag for option elements\n *\n * `button`: Custom element tag for button elements\n *\n * `radio`: Custom element tag for radio and radio group elements. When using a custom element for a radio you require a parent radio group component to semantically link the radios into a group. The parent radio group must expose the `change` event and `value` attribute.\n *\n * @beta\n */\n",
|
|
756
|
+
"excerptTokens": [
|
|
757
|
+
{
|
|
758
|
+
"kind": "Content",
|
|
759
|
+
"text": "export type CustomElements = "
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"kind": "Content",
|
|
763
|
+
"text": "{\n checkbox?: string;\n text?: string;\n number?: string;\n date?: string;\n datetimeLocal?: string;\n select?: string;\n option?: string;\n button?: string;\n radio?: {\n input: string;\n group: string;\n };\n}"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"kind": "Content",
|
|
767
|
+
"text": ";"
|
|
768
|
+
}
|
|
769
|
+
],
|
|
770
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
771
|
+
"releaseTag": "Beta",
|
|
772
|
+
"name": "CustomElements",
|
|
773
|
+
"typeTokenRange": {
|
|
774
|
+
"startIndex": 1,
|
|
775
|
+
"endIndex": 2
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"kind": "TypeAlias",
|
|
780
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CustomStyles:type",
|
|
781
|
+
"docComment": "/**\n * Optional strings for configuring css to be applied inside of each constituent element's shadow DOM. To apply styles to components which are used inside of multiple different components (such as buttons which are used in groups, rules, and values) you must ensure the styling is set in each block. If your styling isn't showing the ensure that you're using more specific css rules to override the precedence of your rule.\n *\n * `rule`: Additional CSS for expression rule component\n *\n * `value`: Additional CSS for rule value component\n *\n * `field`: Additional CSS for rule field component\n *\n * `operator`: Additional CSS for rule operator component\n *\n * `group`: Additional CSS for expression group component\n *\n * @beta\n */\n",
|
|
782
|
+
"excerptTokens": [
|
|
783
|
+
{
|
|
784
|
+
"kind": "Content",
|
|
785
|
+
"text": "export type CustomStyles = "
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"kind": "Content",
|
|
789
|
+
"text": "{\n rule?: string;\n value?: string;\n field?: string;\n operator?: string;\n group?: string;\n}"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"kind": "Content",
|
|
793
|
+
"text": ";"
|
|
794
|
+
}
|
|
795
|
+
],
|
|
796
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
797
|
+
"releaseTag": "Beta",
|
|
798
|
+
"name": "CustomStyles",
|
|
799
|
+
"typeTokenRange": {
|
|
800
|
+
"startIndex": 1,
|
|
801
|
+
"endIndex": 2
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"kind": "TypeAlias",
|
|
806
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.DateInput:type",
|
|
807
|
+
"docComment": "/**\n * Configuration for a date input, which has s string value and a date field input *\n *\n * @beta\n */\n",
|
|
808
|
+
"excerptTokens": [
|
|
809
|
+
{
|
|
810
|
+
"kind": "Content",
|
|
811
|
+
"text": "export type DateInput = "
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"kind": "Content",
|
|
815
|
+
"text": "{\n input: 'date';\n type: 'date';\n validation?: (x: unknown) => string | null;\n}"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"kind": "Content",
|
|
819
|
+
"text": ";"
|
|
820
|
+
}
|
|
821
|
+
],
|
|
822
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
823
|
+
"releaseTag": "Beta",
|
|
824
|
+
"name": "DateInput",
|
|
825
|
+
"typeTokenRange": {
|
|
826
|
+
"startIndex": 1,
|
|
827
|
+
"endIndex": 2
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "TypeAlias",
|
|
832
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.DateTimeInput:type",
|
|
833
|
+
"docComment": "/**\n * Configuration for a datetime input, which has s string value and a datetime field input *\n *\n * @beta\n */\n",
|
|
834
|
+
"excerptTokens": [
|
|
835
|
+
{
|
|
836
|
+
"kind": "Content",
|
|
837
|
+
"text": "export type DateTimeInput = "
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"kind": "Content",
|
|
841
|
+
"text": "{\n input: 'datetime-local';\n type: 'date-time';\n validation?: (x: unknown) => string | null;\n}"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "Content",
|
|
845
|
+
"text": ";"
|
|
846
|
+
}
|
|
847
|
+
],
|
|
848
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
849
|
+
"releaseTag": "Beta",
|
|
850
|
+
"name": "DateTimeInput",
|
|
851
|
+
"typeTokenRange": {
|
|
852
|
+
"startIndex": 1,
|
|
853
|
+
"endIndex": 2
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"kind": "TypeAlias",
|
|
858
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Field:type",
|
|
859
|
+
"docComment": "/**\n * *\n *\n * @beta\n */\n",
|
|
860
|
+
"excerptTokens": [
|
|
861
|
+
{
|
|
862
|
+
"kind": "Content",
|
|
863
|
+
"text": "export type Field = "
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"kind": "Content",
|
|
867
|
+
"text": "{\n optgroup?: string | null;\n defaultValue?: any;\n fieldId: string;\n label: string;\n operators?: string[];\n} & "
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"kind": "Reference",
|
|
871
|
+
"text": "FieldTypes",
|
|
872
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.FieldTypes:type"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"kind": "Content",
|
|
876
|
+
"text": ";"
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
880
|
+
"releaseTag": "Beta",
|
|
881
|
+
"name": "Field",
|
|
882
|
+
"typeTokenRange": {
|
|
883
|
+
"startIndex": 1,
|
|
884
|
+
"endIndex": 3
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"kind": "TypeAlias",
|
|
889
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.FieldTypes:type",
|
|
890
|
+
"docComment": "/**\n * Union of all input types *\n *\n * @beta\n */\n",
|
|
891
|
+
"excerptTokens": [
|
|
892
|
+
{
|
|
893
|
+
"kind": "Content",
|
|
894
|
+
"text": "export type FieldTypes = "
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"kind": "Reference",
|
|
898
|
+
"text": "TextInput",
|
|
899
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.TextInput:type"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"kind": "Content",
|
|
903
|
+
"text": " | "
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "Reference",
|
|
907
|
+
"text": "NumberInput",
|
|
908
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.NumberInput:type"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"kind": "Content",
|
|
912
|
+
"text": " | "
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"kind": "Reference",
|
|
916
|
+
"text": "CheckboxInput",
|
|
917
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CheckboxInput:type"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"kind": "Content",
|
|
921
|
+
"text": " | "
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"kind": "Reference",
|
|
925
|
+
"text": "SelectInput",
|
|
926
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.SelectInput:type"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "Content",
|
|
930
|
+
"text": " | "
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"kind": "Reference",
|
|
934
|
+
"text": "DateInput",
|
|
935
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.DateInput:type"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"kind": "Content",
|
|
939
|
+
"text": " | "
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"kind": "Reference",
|
|
943
|
+
"text": "DateTimeInput",
|
|
944
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.DateTimeInput:type"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "Content",
|
|
948
|
+
"text": ";"
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
952
|
+
"releaseTag": "Beta",
|
|
953
|
+
"name": "FieldTypes",
|
|
954
|
+
"typeTokenRange": {
|
|
955
|
+
"startIndex": 1,
|
|
956
|
+
"endIndex": 12
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"kind": "TypeAlias",
|
|
961
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Group:type",
|
|
962
|
+
"docComment": "/**\n * A group forms the overall model of the expression builder, and is recursive to itself allowing for a nested tree.\n *\n * @example\n * ```\n * RULE 1\n * FIELD : PROFILE_AGE\n * OPERATOR : GREATER_THAN\n * VALUE : 18\n *\n * COMBINATOR : OR\n *\n * GROUP 2\n * RULE 2\n * FIELD : PARENT_ROLE\n * OPERATOR : ONE_OF\n * VALUE : GIVES_PERMISSION\n *\n * COMBINATOR : AND\n *\n * RULE 3\n * FIELD : GRANTS_CHILD_ACCESS\n * OPERATOR : EQUALS\n * VALUE : true\n *\n * If you're constructing a boolean expression then this rule could be used to restrict users who are 17 or younger, but\n * allowing parents who have specific rights to be able to grant access too.\n * ```\n *\n * @beta\n */\n",
|
|
963
|
+
"excerptTokens": [
|
|
964
|
+
{
|
|
965
|
+
"kind": "Content",
|
|
966
|
+
"text": "export type Group = "
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "Content",
|
|
970
|
+
"text": "{\n combinator: "
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"kind": "Reference",
|
|
974
|
+
"text": "Combinator",
|
|
975
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Combinator:type"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "Content",
|
|
979
|
+
"text": ";\n children: ("
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"kind": "Reference",
|
|
983
|
+
"text": "Rule",
|
|
984
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Rule:type"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "Content",
|
|
988
|
+
"text": " | "
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"kind": "Reference",
|
|
992
|
+
"text": "Group",
|
|
993
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Group:type"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"kind": "Content",
|
|
997
|
+
"text": ")[];\n}"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "Content",
|
|
1001
|
+
"text": ";"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1005
|
+
"releaseTag": "Beta",
|
|
1006
|
+
"name": "Group",
|
|
1007
|
+
"typeTokenRange": {
|
|
1008
|
+
"startIndex": 1,
|
|
1009
|
+
"endIndex": 8
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "TypeAlias",
|
|
1014
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.NumberInput:type",
|
|
1015
|
+
"docComment": "/**\n * Configuration for a number-type input, which has a number value and a number input. *\n *\n * @beta\n */\n",
|
|
1016
|
+
"excerptTokens": [
|
|
1017
|
+
{
|
|
1018
|
+
"kind": "Content",
|
|
1019
|
+
"text": "export type NumberInput = "
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"kind": "Content",
|
|
1023
|
+
"text": "{\n input: 'number';\n type: 'int' | 'short' | 'double' | 'long' | 'bigdecimal';\n validation?: (x: unknown) => string | null;\n}"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"kind": "Content",
|
|
1027
|
+
"text": ";"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1031
|
+
"releaseTag": "Beta",
|
|
1032
|
+
"name": "NumberInput",
|
|
1033
|
+
"typeTokenRange": {
|
|
1034
|
+
"startIndex": 1,
|
|
1035
|
+
"endIndex": 2
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"kind": "TypeAlias",
|
|
1040
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Operator:type",
|
|
1041
|
+
"docComment": "/**\n * *\n *\n * @beta\n */\n",
|
|
1042
|
+
"excerptTokens": [
|
|
1043
|
+
{
|
|
1044
|
+
"kind": "Content",
|
|
1045
|
+
"text": "export type Operator = "
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"kind": "Reference",
|
|
1049
|
+
"text": "UniraryOperator",
|
|
1050
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.UniraryOperator:type"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "Content",
|
|
1054
|
+
"text": " | "
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"kind": "Reference",
|
|
1058
|
+
"text": "BinaryOperator",
|
|
1059
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.BinaryOperator:type"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"kind": "Content",
|
|
1063
|
+
"text": " | "
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"kind": "Reference",
|
|
1067
|
+
"text": "TernararyOperator",
|
|
1068
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.TernararyOperator:type"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "Content",
|
|
1072
|
+
"text": " | "
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"kind": "Reference",
|
|
1076
|
+
"text": "VariadicOperator",
|
|
1077
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.VariadicOperator:type"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "Content",
|
|
1081
|
+
"text": ";"
|
|
1082
|
+
}
|
|
1083
|
+
],
|
|
1084
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1085
|
+
"releaseTag": "Beta",
|
|
1086
|
+
"name": "Operator",
|
|
1087
|
+
"typeTokenRange": {
|
|
1088
|
+
"startIndex": 1,
|
|
1089
|
+
"endIndex": 8
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"kind": "TypeAlias",
|
|
1094
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Rule:type",
|
|
1095
|
+
"docComment": "/**\n * A rule is a single constituent element of a larger expression, and is the smallest whole part of an expression.\n *\n * @example\n * ```\n * FIELD : PROFILE_AGE\n * OPERATOR : GREATER_THAN\n * VALUE : 18\n *\n * If you're constructing a boolean expression then this rule could be used to restrict users who are 17 or younger.\n * ```\n *\n * *\n *\n * @beta\n */\n",
|
|
1096
|
+
"excerptTokens": [
|
|
1097
|
+
{
|
|
1098
|
+
"kind": "Content",
|
|
1099
|
+
"text": "export type Rule = "
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "Content",
|
|
1103
|
+
"text": "{\n field: "
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"kind": "Reference",
|
|
1107
|
+
"text": "Field",
|
|
1108
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Field:type"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"kind": "Content",
|
|
1112
|
+
"text": " | null;\n} & ({\n operator: null;\n} | {\n operator: "
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"kind": "Reference",
|
|
1116
|
+
"text": "UniraryOperator",
|
|
1117
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.UniraryOperator:type"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"kind": "Content",
|
|
1121
|
+
"text": ";\n} | {\n operator: "
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "Reference",
|
|
1125
|
+
"text": "BinaryOperator",
|
|
1126
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.BinaryOperator:type"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"kind": "Content",
|
|
1130
|
+
"text": ";\n value: any;\n} | {\n operator: "
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"kind": "Reference",
|
|
1134
|
+
"text": "TernararyOperator",
|
|
1135
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.TernararyOperator:type"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"kind": "Content",
|
|
1139
|
+
"text": ";\n value: [any, any];\n} | {\n operator: "
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "Reference",
|
|
1143
|
+
"text": "VariadicOperator",
|
|
1144
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.VariadicOperator:type"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "Content",
|
|
1148
|
+
"text": ";\n value: any[];\n})"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"kind": "Content",
|
|
1152
|
+
"text": ";"
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1156
|
+
"releaseTag": "Beta",
|
|
1157
|
+
"name": "Rule",
|
|
1158
|
+
"typeTokenRange": {
|
|
1159
|
+
"startIndex": 1,
|
|
1160
|
+
"endIndex": 12
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"kind": "TypeAlias",
|
|
1165
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.SelectInput:type",
|
|
1166
|
+
"docComment": "/**\n * Configuration for an enum-type input, which as a string or number value, and uses a select input. *\n *\n * @beta\n */\n",
|
|
1167
|
+
"excerptTokens": [
|
|
1168
|
+
{
|
|
1169
|
+
"kind": "Content",
|
|
1170
|
+
"text": "export type SelectInput = "
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "Content",
|
|
1174
|
+
"text": "{\n input: 'select';\n type: 'enum';\n values: "
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"kind": "Reference",
|
|
1178
|
+
"text": "Record",
|
|
1179
|
+
"canonicalReference": "!Record:type"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "Content",
|
|
1183
|
+
"text": "<string, string | number>;\n}"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"kind": "Content",
|
|
1187
|
+
"text": ";"
|
|
1188
|
+
}
|
|
1189
|
+
],
|
|
1190
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1191
|
+
"releaseTag": "Beta",
|
|
1192
|
+
"name": "SelectInput",
|
|
1193
|
+
"typeTokenRange": {
|
|
1194
|
+
"startIndex": 1,
|
|
1195
|
+
"endIndex": 4
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "TypeAlias",
|
|
1200
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.Styles:type",
|
|
1201
|
+
"docComment": "/**\n * Configuration items for the expression builder styles.\n *\n * `customElements`: optional `Types.CustomElements` block for overriding the html tags used in the expression builder\n *\n * `customStyles`: optional `Types.CustomStyles` block to configure custom css for components.\n *\n * @beta\n */\n",
|
|
1202
|
+
"excerptTokens": [
|
|
1203
|
+
{
|
|
1204
|
+
"kind": "Content",
|
|
1205
|
+
"text": "export type Styles = "
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"kind": "Content",
|
|
1209
|
+
"text": "{\n customElements?: "
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"kind": "Reference",
|
|
1213
|
+
"text": "CustomElements",
|
|
1214
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CustomElements:type"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"kind": "Content",
|
|
1218
|
+
"text": ";\n customStyles?: "
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "Reference",
|
|
1222
|
+
"text": "CustomStyles",
|
|
1223
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.CustomStyles:type"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"kind": "Content",
|
|
1227
|
+
"text": ";\n}"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "Content",
|
|
1231
|
+
"text": ";"
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1235
|
+
"releaseTag": "Beta",
|
|
1236
|
+
"name": "Styles",
|
|
1237
|
+
"typeTokenRange": {
|
|
1238
|
+
"startIndex": 1,
|
|
1239
|
+
"endIndex": 6
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"kind": "TypeAlias",
|
|
1244
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.TernararyOperator:type",
|
|
1245
|
+
"docComment": "/**\n * An operator which has two values. Example `between_inclusive` *\n *\n * @beta\n */\n",
|
|
1246
|
+
"excerptTokens": [
|
|
1247
|
+
{
|
|
1248
|
+
"kind": "Content",
|
|
1249
|
+
"text": "export type TernararyOperator = "
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"kind": "Content",
|
|
1253
|
+
"text": "{\n nbInputs: 2;\n} & "
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "Reference",
|
|
1257
|
+
"text": "_Operator",
|
|
1258
|
+
"canonicalReference": "@genesislcap/expression-builder!Types._Operator:type"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"kind": "Content",
|
|
1262
|
+
"text": ";"
|
|
1263
|
+
}
|
|
1264
|
+
],
|
|
1265
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1266
|
+
"releaseTag": "Beta",
|
|
1267
|
+
"name": "TernararyOperator",
|
|
1268
|
+
"typeTokenRange": {
|
|
1269
|
+
"startIndex": 1,
|
|
1270
|
+
"endIndex": 3
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "TypeAlias",
|
|
1275
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.TextInput:type",
|
|
1276
|
+
"docComment": "/**\n * Configuration for a text-type input, which has a string value and a text input. *\n *\n * @beta\n */\n",
|
|
1277
|
+
"excerptTokens": [
|
|
1278
|
+
{
|
|
1279
|
+
"kind": "Content",
|
|
1280
|
+
"text": "export type TextInput = "
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"kind": "Content",
|
|
1284
|
+
"text": "{\n type: 'string';\n input: 'text';\n validation?: (x: unknown) => string | null;\n}"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"kind": "Content",
|
|
1288
|
+
"text": ";"
|
|
1289
|
+
}
|
|
1290
|
+
],
|
|
1291
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1292
|
+
"releaseTag": "Beta",
|
|
1293
|
+
"name": "TextInput",
|
|
1294
|
+
"typeTokenRange": {
|
|
1295
|
+
"startIndex": 1,
|
|
1296
|
+
"endIndex": 2
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "TypeAlias",
|
|
1301
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.UniraryOperator:type",
|
|
1302
|
+
"docComment": "/**\n * An operator which doesn't have any value. Example `is_null`\n *\n * *\n *\n * @beta\n */\n",
|
|
1303
|
+
"excerptTokens": [
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "Content",
|
|
1306
|
+
"text": "export type UniraryOperator = "
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "Content",
|
|
1310
|
+
"text": "{\n nbInputs: 0;\n} & "
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"kind": "Reference",
|
|
1314
|
+
"text": "_Operator",
|
|
1315
|
+
"canonicalReference": "@genesislcap/expression-builder!Types._Operator:type"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"kind": "Content",
|
|
1319
|
+
"text": ";"
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1323
|
+
"releaseTag": "Beta",
|
|
1324
|
+
"name": "UniraryOperator",
|
|
1325
|
+
"typeTokenRange": {
|
|
1326
|
+
"startIndex": 1,
|
|
1327
|
+
"endIndex": 3
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"kind": "TypeAlias",
|
|
1332
|
+
"canonicalReference": "@genesislcap/expression-builder!Types.VariadicOperator:type",
|
|
1333
|
+
"docComment": "/**\n * An operator which can have any number of values where `NumVals >= 1`, defaulting to 1. Example `one_of`. *\n *\n * @beta\n */\n",
|
|
1334
|
+
"excerptTokens": [
|
|
1335
|
+
{
|
|
1336
|
+
"kind": "Content",
|
|
1337
|
+
"text": "export type VariadicOperator = "
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"kind": "Content",
|
|
1341
|
+
"text": "{\n nbInputs: 'many';\n} & "
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"kind": "Reference",
|
|
1345
|
+
"text": "_Operator",
|
|
1346
|
+
"canonicalReference": "@genesislcap/expression-builder!Types._Operator:type"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "Content",
|
|
1350
|
+
"text": ";"
|
|
1351
|
+
}
|
|
1352
|
+
],
|
|
1353
|
+
"fileUrlPath": "src/types/public.types.ts",
|
|
1354
|
+
"releaseTag": "Beta",
|
|
1355
|
+
"name": "VariadicOperator",
|
|
1356
|
+
"typeTokenRange": {
|
|
1357
|
+
"startIndex": 1,
|
|
1358
|
+
"endIndex": 3
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
]
|
|
208
1362
|
}
|
|
209
1363
|
]
|
|
210
1364
|
}
|