@genesislcap/expression-builder 14.302.1-alpha-475e82d.0 → 14.302.1-alpha-ecc0cfb.0
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/dts/main/expression-rule/expression-rule.helpers.d.ts.map +1 -1
- package/dist/dts/main/rule-value/rule-value.helpers.d.ts +4 -4
- package/dist/dts/main/rule-value/rule-value.helpers.d.ts.map +1 -1
- package/dist/dts/utils/formatting.d.ts.map +1 -1
- package/dist/dts/utils/misc.d.ts.map +1 -1
- package/dist/expression-builder.api.json +20 -137
- package/dist/tsdoc-metadata.json +1 -1
- package/docs/api/expression-builder.config.md +5 -58
- package/docs/api/expression-builder.expressionbuilder.dispatchchangeevent.md +3 -31
- package/docs/api/expression-builder.expressionbuilder.md +8 -120
- package/docs/api/expression-builder.formatdatestring.md +1 -40
- package/docs/api/expression-builder.formatdatetimestring.md +1 -40
- package/docs/api/expression-builder.md +11 -134
- package/docs/api/expression-builder.types.md +23 -277
- package/docs/api/index.md +3 -21
- package/package.json +13 -11
- package/docs/api/expression-builder.config.base_operators.md +0 -16
- package/docs/api/expression-builder.styles.md +0 -16
- package/docs/api/expression-builder.template.md +0 -16
- package/docs/api-report.md.api.md +0 -263
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-rule.helpers.d.ts","sourceRoot":"","sources":["../../../../src/main/expression-rule/expression-rule.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,IAAI,EAIL,MAAM,aAAa,CAAC;AAIrB;;;;;GAKG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"expression-rule.helpers.d.ts","sourceRoot":"","sources":["../../../../src/main/expression-rule/expression-rule.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,IAAI,EAIL,MAAM,aAAa,CAAC;AAIrB;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WAAY,QAAQ,KAAK,SAAS,QAC4B,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,QAAQ,WAAY,QAAQ,KAAK,SAAS,aAAa,MAAM,QAOzE,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,QAAQ,KAAK,SAAS,uBA2B1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,gBAAiB,QAAQ,SAAS,SAAS,KAAG,IAgCrF,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,SAAS,SAAS,GAAG,YAAY,MAAM,KAAG,IAqBxF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,MAAO,GAAG,YAAkB,CAAC;AAExD,eAAO,MAAM,kBAAkB,UAAW,SAAS,KAAG,OASrD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Field } from '../../types';
|
|
2
|
-
export declare const isIntType: (type: Field[
|
|
3
|
-
export declare const isFloatType: (type: Field[
|
|
4
|
-
export declare const pattern: (type: Field[
|
|
5
|
-
export declare const numberPatternValidator: (type: Field[
|
|
2
|
+
export declare const isIntType: (type: Field['type']) => boolean;
|
|
3
|
+
export declare const isFloatType: (type: Field['type']) => boolean;
|
|
4
|
+
export declare const pattern: (type: Field['type']) => RegExp;
|
|
5
|
+
export declare const numberPatternValidator: (type: Field['type'], value: string) => string | null;
|
|
6
6
|
//# sourceMappingURL=rule-value.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-value.helpers.d.ts","sourceRoot":"","sources":["../../../../src/main/rule-value/rule-value.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"rule-value.helpers.d.ts","sourceRoot":"","sources":["../../../../src/main/rule-value/rule-value.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,eAAO,MAAM,SAAS,SAAU,KAAK,CAAC,MAAM,CAAC,YAA4C,CAAC;AAE1F,eAAO,MAAM,WAAW,SAAU,KAAK,CAAC,MAAM,CAAC,YAA4C,CAAC;AAE5F,eAAO,MAAM,OAAO,SAAU,KAAK,CAAC,MAAM,CAAC,WAQ1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAU,KAAK,CAAC,MAAM,CAAC,SAAS,MAAM,KAAG,MAAM,GAAG,IAEpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,WAK1C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,SAAU,IAAI,WAM9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEnE,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEnE,eAAO,MAAM,aAAa,YAAa,SAAS,GAAG,SAAS,0EACD,CAAC;AAE5D,eAAO,MAAM,YAAY,YAAa,SAAS,GAAG,SAAS,8GACF,CAAC;AAE1D,eAAO,MAAM,gBAAgB;cAET,MAAM,GAAG,IAAI;;IAyChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,WAAW,EACtB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EACjC,QAAQ,EAAE,MAAM,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,GAClD,IAAI,CAeN"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.34.9",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -222,34 +222,6 @@
|
|
|
222
222
|
"endIndex": 3
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
|
-
{
|
|
226
|
-
"kind": "Variable",
|
|
227
|
-
"canonicalReference": "@genesislcap/expression-builder!Config.BASE_OPERATORS:var",
|
|
228
|
-
"docComment": "/**\n * *\n *\n * @alpha\n */\n",
|
|
229
|
-
"excerptTokens": [
|
|
230
|
-
{
|
|
231
|
-
"kind": "Content",
|
|
232
|
-
"text": "BASE_OPERATORS: "
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"kind": "Reference",
|
|
236
|
-
"text": "Operator",
|
|
237
|
-
"canonicalReference": "@genesislcap/expression-builder!Types.Operator:type"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"kind": "Content",
|
|
241
|
-
"text": "[]"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"fileUrlPath": "src/config/operators.ts",
|
|
245
|
-
"isReadonly": true,
|
|
246
|
-
"releaseTag": "Alpha",
|
|
247
|
-
"name": "BASE_OPERATORS",
|
|
248
|
-
"variableTypeTokenRange": {
|
|
249
|
-
"startIndex": 1,
|
|
250
|
-
"endIndex": 3
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
225
|
{
|
|
254
226
|
"kind": "Variable",
|
|
255
227
|
"canonicalReference": "@genesislcap/expression-builder!Config.LOGICAL_COMBINATORS:var",
|
|
@@ -497,55 +469,17 @@
|
|
|
497
469
|
]
|
|
498
470
|
},
|
|
499
471
|
{
|
|
500
|
-
"kind": "
|
|
501
|
-
"canonicalReference": "@genesislcap/expression-builder!formatDateString:
|
|
472
|
+
"kind": "Variable",
|
|
473
|
+
"canonicalReference": "@genesislcap/expression-builder!formatDateString:var",
|
|
502
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",
|
|
503
475
|
"excerptTokens": [
|
|
504
476
|
{
|
|
505
477
|
"kind": "Content",
|
|
506
|
-
"text": "formatDateString:
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"kind": "Reference",
|
|
510
|
-
"text": "Date",
|
|
511
|
-
"canonicalReference": "!Date:interface"
|
|
478
|
+
"text": "formatDateString: "
|
|
512
479
|
},
|
|
513
480
|
{
|
|
514
481
|
"kind": "Content",
|
|
515
|
-
"text": "
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"kind": "Content",
|
|
519
|
-
"text": "string"
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
"fileUrlPath": "src/utils/formatting.ts",
|
|
523
|
-
"returnTypeTokenRange": {
|
|
524
|
-
"startIndex": 3,
|
|
525
|
-
"endIndex": 4
|
|
526
|
-
},
|
|
527
|
-
"releaseTag": "Beta",
|
|
528
|
-
"overloadIndex": 1,
|
|
529
|
-
"parameters": [
|
|
530
|
-
{
|
|
531
|
-
"parameterName": "date",
|
|
532
|
-
"parameterTypeTokenRange": {
|
|
533
|
-
"startIndex": 1,
|
|
534
|
-
"endIndex": 2
|
|
535
|
-
},
|
|
536
|
-
"isOptional": false
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"name": "formatDateString"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"kind": "Function",
|
|
543
|
-
"canonicalReference": "@genesislcap/expression-builder!formatDateTimeString:function(1)",
|
|
544
|
-
"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",
|
|
545
|
-
"excerptTokens": [
|
|
546
|
-
{
|
|
547
|
-
"kind": "Content",
|
|
548
|
-
"text": "formatDateTimeString: (date: "
|
|
482
|
+
"text": "(date: "
|
|
549
483
|
},
|
|
550
484
|
{
|
|
551
485
|
"kind": "Reference",
|
|
@@ -554,99 +488,48 @@
|
|
|
554
488
|
},
|
|
555
489
|
{
|
|
556
490
|
"kind": "Content",
|
|
557
|
-
"text": ") => "
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"kind": "Content",
|
|
561
|
-
"text": "string"
|
|
491
|
+
"text": ") => string"
|
|
562
492
|
}
|
|
563
493
|
],
|
|
564
494
|
"fileUrlPath": "src/utils/formatting.ts",
|
|
565
|
-
"returnTypeTokenRange": {
|
|
566
|
-
"startIndex": 3,
|
|
567
|
-
"endIndex": 4
|
|
568
|
-
},
|
|
569
|
-
"releaseTag": "Beta",
|
|
570
|
-
"overloadIndex": 1,
|
|
571
|
-
"parameters": [
|
|
572
|
-
{
|
|
573
|
-
"parameterName": "date",
|
|
574
|
-
"parameterTypeTokenRange": {
|
|
575
|
-
"startIndex": 1,
|
|
576
|
-
"endIndex": 2
|
|
577
|
-
},
|
|
578
|
-
"isOptional": false
|
|
579
|
-
}
|
|
580
|
-
],
|
|
581
|
-
"name": "formatDateTimeString"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
"kind": "Variable",
|
|
585
|
-
"canonicalReference": "@genesislcap/expression-builder!styles:var",
|
|
586
|
-
"docComment": "/**\n * *\n *\n * @alpha\n */\n",
|
|
587
|
-
"excerptTokens": [
|
|
588
|
-
{
|
|
589
|
-
"kind": "Content",
|
|
590
|
-
"text": "styles: "
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"kind": "Content",
|
|
594
|
-
"text": "import(\"@microsoft/fast-element\")."
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"kind": "Reference",
|
|
598
|
-
"text": "ElementStyles",
|
|
599
|
-
"canonicalReference": "@microsoft/fast-element!ElementStyles:class"
|
|
600
|
-
}
|
|
601
|
-
],
|
|
602
|
-
"fileUrlPath": "src/main/expression-builder.styles.ts",
|
|
603
495
|
"isReadonly": true,
|
|
604
|
-
"releaseTag": "
|
|
605
|
-
"name": "
|
|
496
|
+
"releaseTag": "Beta",
|
|
497
|
+
"name": "formatDateString",
|
|
606
498
|
"variableTypeTokenRange": {
|
|
607
499
|
"startIndex": 1,
|
|
608
|
-
"endIndex":
|
|
500
|
+
"endIndex": 4
|
|
609
501
|
}
|
|
610
502
|
},
|
|
611
503
|
{
|
|
612
504
|
"kind": "Variable",
|
|
613
|
-
"canonicalReference": "@genesislcap/expression-builder!
|
|
614
|
-
"docComment": "/**\n * *\n *\n * @
|
|
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",
|
|
615
507
|
"excerptTokens": [
|
|
616
508
|
{
|
|
617
509
|
"kind": "Content",
|
|
618
|
-
"text": "
|
|
510
|
+
"text": "formatDateTimeString: "
|
|
619
511
|
},
|
|
620
512
|
{
|
|
621
513
|
"kind": "Content",
|
|
622
|
-
"text": "
|
|
514
|
+
"text": "(date: "
|
|
623
515
|
},
|
|
624
516
|
{
|
|
625
517
|
"kind": "Reference",
|
|
626
|
-
"text": "
|
|
627
|
-
"canonicalReference": "
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
"kind": "Content",
|
|
631
|
-
"text": "<"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
"kind": "Reference",
|
|
635
|
-
"text": "ExpressionBuilder",
|
|
636
|
-
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder:class"
|
|
518
|
+
"text": "Date",
|
|
519
|
+
"canonicalReference": "!Date:interface"
|
|
637
520
|
},
|
|
638
521
|
{
|
|
639
522
|
"kind": "Content",
|
|
640
|
-
"text": "
|
|
523
|
+
"text": ") => string"
|
|
641
524
|
}
|
|
642
525
|
],
|
|
643
|
-
"fileUrlPath": "src/
|
|
526
|
+
"fileUrlPath": "src/utils/formatting.ts",
|
|
644
527
|
"isReadonly": true,
|
|
645
|
-
"releaseTag": "
|
|
646
|
-
"name": "
|
|
528
|
+
"releaseTag": "Beta",
|
|
529
|
+
"name": "formatDateTimeString",
|
|
647
530
|
"variableTypeTokenRange": {
|
|
648
531
|
"startIndex": 1,
|
|
649
|
-
"endIndex":
|
|
532
|
+
"endIndex": 4
|
|
650
533
|
}
|
|
651
534
|
},
|
|
652
535
|
{
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -6,62 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
## Variables
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[BASE\_LOGICAL\_COMBINATORS](./expression-builder.config.base_logical_combinators.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
**_(BETA)_** Basic `AND` and `OR` logical combinators which can be used in the model config.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</td></tr>
|
|
31
|
-
<tr><td>
|
|
32
|
-
|
|
33
|
-
[BASE\_OPERATORS](./expression-builder.config.base_operators.md)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
**_(ALPHA)_** \*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td></tr>
|
|
42
|
-
<tr><td>
|
|
43
|
-
|
|
44
|
-
[LOGICAL\_COMBINATORS](./expression-builder.config.logical_combinators.md)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
**_(BETA)_** A set of boolean logic combinators which configure the expression builder to produce boolean expressions.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td></tr>
|
|
53
|
-
<tr><td>
|
|
54
|
-
|
|
55
|
-
[NULL\_COMBINATOR](./expression-builder.config.null_combinator.md)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</td><td>
|
|
59
|
-
|
|
60
|
-
**_(BETA)_** A combinator which has a null action.
|
|
61
|
-
|
|
62
|
-
If configured as the only combinator then it configures the expression builder to only create a single rule.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td></tr>
|
|
66
|
-
</tbody></table>
|
|
9
|
+
| Variable | Description |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [BASE\_LOGICAL\_COMBINATORS](./expression-builder.config.base_logical_combinators.md) | **_(BETA)_** Basic <code>AND</code> and <code>OR</code> logical combinators which can be used in the model config. |
|
|
12
|
+
| [LOGICAL\_COMBINATORS](./expression-builder.config.logical_combinators.md) | **_(BETA)_** A set of boolean logic combinators which configure the expression builder to produce boolean expressions. |
|
|
13
|
+
| [NULL\_COMBINATOR](./expression-builder.config.null_combinator.md) | <p>**_(BETA)_** A combinator which has a null action.</p><p>If configured as the only combinator then it configures the expression builder to only create a single rule.</p> |
|
|
67
14
|
|
|
@@ -17,37 +17,9 @@ protected dispatchChangeEvent(group: Group): void;
|
|
|
17
17
|
|
|
18
18
|
## Parameters
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th><th>
|
|
31
|
-
|
|
32
|
-
Description
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</th></tr></thead>
|
|
36
|
-
<tbody><tr><td>
|
|
37
|
-
|
|
38
|
-
group
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
[Group](./expression-builder.types.group.md)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</td></tr>
|
|
50
|
-
</tbody></table>
|
|
20
|
+
| Parameter | Type | Description |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| group | [Group](./expression-builder.types.group.md) | |
|
|
51
23
|
|
|
52
24
|
**Returns:**
|
|
53
25
|
|
|
@@ -26,127 +26,15 @@ export declare class ExpressionBuilder extends GenesisElement implements Metadat
|
|
|
26
26
|
|
|
27
27
|
## Properties
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</th><th>
|
|
35
|
-
|
|
36
|
-
Modifiers
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</th><th>
|
|
40
|
-
|
|
41
|
-
Type
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</th><th>
|
|
45
|
-
|
|
46
|
-
Description
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</th></tr></thead>
|
|
50
|
-
<tbody><tr><td>
|
|
51
|
-
|
|
52
|
-
[config](./expression-builder.expressionbuilder.config.md)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</td><td>
|
|
59
|
-
|
|
60
|
-
Config
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</td><td>
|
|
64
|
-
|
|
65
|
-
**_(BETA)_** 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.
|
|
66
|
-
|
|
67
|
-
If you want to set the expression of the expression builder you should do it via the `model` property on this object.
|
|
68
|
-
|
|
69
|
-
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.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
</td></tr>
|
|
73
|
-
<tr><td>
|
|
74
|
-
|
|
75
|
-
[model](./expression-builder.expressionbuilder.model.md)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</td><td>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
</td><td>
|
|
82
|
-
|
|
83
|
-
ModelGroup \| null
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</td><td>
|
|
87
|
-
|
|
88
|
-
**_(BETA)_** model - `Types.Group` the current model which completely describes the state of the component.
|
|
89
|
-
|
|
90
|
-
\*IMPORTANT\* you should not set this yourself via this property directly, you should always set it via the model property on the [ExpressionBuilder.config](./expression-builder.expressionbuilder.config.md) block.
|
|
91
|
-
|
|
92
|
-
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.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</td></tr>
|
|
96
|
-
<tr><td>
|
|
97
|
-
|
|
98
|
-
[styles?](./expression-builder.expressionbuilder.styles.md)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</td><td>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</td><td>
|
|
105
|
-
|
|
106
|
-
[Styles](./expression-builder.types.styles.md)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</td><td>
|
|
110
|
-
|
|
111
|
-
**_(BETA)_** _(Optional)_ 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.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</td></tr>
|
|
115
|
-
</tbody></table>
|
|
29
|
+
| Property | Modifiers | Type | Description |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| [config](./expression-builder.expressionbuilder.config.md) | | Config | <p>**_(BETA)_** config - <code>Types.Config</code> 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.</p><p>If you want to set the expression of the expression builder you should do it via the <code>model</code> property on this object.</p><p>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.</p> |
|
|
32
|
+
| [model](./expression-builder.expressionbuilder.model.md) | | ModelGroup \| null | <p>**_(BETA)_** model - <code>Types.Group</code> the current model which completely describes the state of the component.</p><p>\*IMPORTANT\* you should not set this yourself via this property directly, you should always set it via the model property on the [ExpressionBuilder.config](./expression-builder.expressionbuilder.config.md) block.</p><p>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.</p> |
|
|
33
|
+
| [styles?](./expression-builder.expressionbuilder.styles.md) | | [Styles](./expression-builder.types.styles.md) | **_(BETA)_** _(Optional)_ styles - <code>Types.Styles</code> 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. |
|
|
116
34
|
|
|
117
35
|
## Methods
|
|
118
36
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</th><th>
|
|
125
|
-
|
|
126
|
-
Modifiers
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</th><th>
|
|
130
|
-
|
|
131
|
-
Description
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</th></tr></thead>
|
|
135
|
-
<tbody><tr><td>
|
|
136
|
-
|
|
137
|
-
[dispatchChangeEvent(group)](./expression-builder.expressionbuilder.dispatchchangeevent.md)
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
</td><td>
|
|
141
|
-
|
|
142
|
-
`protected`
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
</td><td>
|
|
146
|
-
|
|
147
|
-
**_(BETA)_** Dispatches the provided model to the DOM.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</td></tr>
|
|
151
|
-
</tbody></table>
|
|
37
|
+
| Method | Modifiers | Description |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| [dispatchChangeEvent(group)](./expression-builder.expressionbuilder.dispatchchangeevent.md) | <code>protected</code> | **_(BETA)_** Dispatches the provided model to the DOM. |
|
|
152
40
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@genesislcap/expression-builder](./expression-builder.md) > [formatDateString](./expression-builder.formatdatestring.md)
|
|
4
4
|
|
|
5
|
-
## formatDateString
|
|
5
|
+
## formatDateString variable
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
@@ -16,42 +16,3 @@ Used to convert a javascript date object into the required string format expecte
|
|
|
16
16
|
```typescript
|
|
17
17
|
formatDateString: (date: Date) => string
|
|
18
18
|
```
|
|
19
|
-
|
|
20
|
-
## Parameters
|
|
21
|
-
|
|
22
|
-
<table><thead><tr><th>
|
|
23
|
-
|
|
24
|
-
Parameter
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th><th>
|
|
33
|
-
|
|
34
|
-
Description
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</th></tr></thead>
|
|
38
|
-
<tbody><tr><td>
|
|
39
|
-
|
|
40
|
-
date
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
Date
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td><td>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td></tr>
|
|
52
|
-
</tbody></table>
|
|
53
|
-
|
|
54
|
-
**Returns:**
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@genesislcap/expression-builder](./expression-builder.md) > [formatDateTimeString](./expression-builder.formatdatetimestring.md)
|
|
4
4
|
|
|
5
|
-
## formatDateTimeString
|
|
5
|
+
## formatDateTimeString variable
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
@@ -16,42 +16,3 @@ Used to convert a javascript date object into the required string format expecte
|
|
|
16
16
|
```typescript
|
|
17
17
|
formatDateTimeString: (date: Date) => string
|
|
18
18
|
```
|
|
19
|
-
|
|
20
|
-
## Parameters
|
|
21
|
-
|
|
22
|
-
<table><thead><tr><th>
|
|
23
|
-
|
|
24
|
-
Parameter
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th><th>
|
|
33
|
-
|
|
34
|
-
Description
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</th></tr></thead>
|
|
38
|
-
<tbody><tr><td>
|
|
39
|
-
|
|
40
|
-
date
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
Date
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td><td>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td></tr>
|
|
52
|
-
</tbody></table>
|
|
53
|
-
|
|
54
|
-
**Returns:**
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|