@genesislcap/expression-builder 14.302.0 → 14.302.1-alpha-945e484.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 +137 -20
- package/dist/tsdoc-metadata.json +1 -1
- package/docs/api/expression-builder.config.base_operators.md +16 -0
- package/docs/api/expression-builder.config.md +58 -5
- package/docs/api/expression-builder.expressionbuilder.dispatchchangeevent.md +31 -3
- package/docs/api/expression-builder.expressionbuilder.md +120 -8
- package/docs/api/expression-builder.formatdatestring.md +40 -1
- package/docs/api/expression-builder.formatdatetimestring.md +40 -1
- package/docs/api/expression-builder.md +134 -11
- package/docs/api/expression-builder.styles.md +16 -0
- package/docs/api/expression-builder.template.md +16 -0
- package/docs/api/expression-builder.types.md +277 -23
- package/docs/api/index.md +21 -3
- package/docs/api-report.md.api.md +263 -0
- package/package.json +10 -10
|
@@ -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,GAAI,QAAQ,QAAQ,EAAE,GAAG,SAAS,QAC4B,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,QAAQ,QAAQ,EAAE,GAAG,SAAS,MAAM,OAAO,MAAM,QAOzE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,QAAQ,EAAE,GAAG,SAAS,uBA2B1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,aAAa,QAAQ,EAAE,OAAO,SAAS,KAAG,IAgCrF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,SAAS,EAAE,OAAO,GAAG,EAAE,UAAU,MAAM,KAAG,IAqBxF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,GAAG,YAAkB,CAAC;AAExD,eAAO,MAAM,kBAAkB,GAAI,OAAO,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,GAAI,MAAM,KAAK,CAAC,MAAM,CAAC,YAA4C,CAAC;AAE1F,eAAO,MAAM,WAAW,GAAI,MAAM,KAAK,CAAC,MAAM,CAAC,YAA4C,CAAC;AAE5F,eAAO,MAAM,OAAO,GAAI,MAAM,KAAK,CAAC,MAAM,CAAC,WAQ1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,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,GAAI,MAAM,IAAI,WAK1C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,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,GAAI,SAAS,SAAS,GAAG,SAAS,0EACD,CAAC;AAE5D,eAAO,MAAM,YAAY,GAAI,SAAS,SAAS,GAAG,SAAS,8GACF,CAAC;AAE1D,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,QAAQ,GAAG,KAAK,EACzD,IAAI,CAAC,EAAE,KACN,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC,EAyC5C,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.52.10",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -222,6 +222,34 @@
|
|
|
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
|
+
},
|
|
225
253
|
{
|
|
226
254
|
"kind": "Variable",
|
|
227
255
|
"canonicalReference": "@genesislcap/expression-builder!Config.LOGICAL_COMBINATORS:var",
|
|
@@ -469,17 +497,55 @@
|
|
|
469
497
|
]
|
|
470
498
|
},
|
|
471
499
|
{
|
|
472
|
-
"kind": "
|
|
473
|
-
"canonicalReference": "@genesislcap/expression-builder!formatDateString:
|
|
500
|
+
"kind": "Function",
|
|
501
|
+
"canonicalReference": "@genesislcap/expression-builder!formatDateString:function(1)",
|
|
474
502
|
"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
503
|
"excerptTokens": [
|
|
476
504
|
{
|
|
477
505
|
"kind": "Content",
|
|
478
|
-
"text": "formatDateString: "
|
|
506
|
+
"text": "formatDateString: (date: "
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"kind": "Reference",
|
|
510
|
+
"text": "Date",
|
|
511
|
+
"canonicalReference": "!Date:interface"
|
|
479
512
|
},
|
|
480
513
|
{
|
|
481
514
|
"kind": "Content",
|
|
482
|
-
"text": "
|
|
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: "
|
|
483
549
|
},
|
|
484
550
|
{
|
|
485
551
|
"kind": "Reference",
|
|
@@ -488,48 +554,99 @@
|
|
|
488
554
|
},
|
|
489
555
|
{
|
|
490
556
|
"kind": "Content",
|
|
491
|
-
"text": ") =>
|
|
557
|
+
"text": ") => "
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"kind": "Content",
|
|
561
|
+
"text": "string"
|
|
492
562
|
}
|
|
493
563
|
],
|
|
494
564
|
"fileUrlPath": "src/utils/formatting.ts",
|
|
495
|
-
"
|
|
565
|
+
"returnTypeTokenRange": {
|
|
566
|
+
"startIndex": 3,
|
|
567
|
+
"endIndex": 4
|
|
568
|
+
},
|
|
496
569
|
"releaseTag": "Beta",
|
|
497
|
-
"
|
|
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
|
+
"isReadonly": true,
|
|
604
|
+
"releaseTag": "Alpha",
|
|
605
|
+
"name": "styles",
|
|
498
606
|
"variableTypeTokenRange": {
|
|
499
607
|
"startIndex": 1,
|
|
500
|
-
"endIndex":
|
|
608
|
+
"endIndex": 3
|
|
501
609
|
}
|
|
502
610
|
},
|
|
503
611
|
{
|
|
504
612
|
"kind": "Variable",
|
|
505
|
-
"canonicalReference": "@genesislcap/expression-builder!
|
|
506
|
-
"docComment": "/**\n *
|
|
613
|
+
"canonicalReference": "@genesislcap/expression-builder!template:var",
|
|
614
|
+
"docComment": "/**\n * *\n *\n * @alpha\n */\n",
|
|
507
615
|
"excerptTokens": [
|
|
508
616
|
{
|
|
509
617
|
"kind": "Content",
|
|
510
|
-
"text": "
|
|
618
|
+
"text": "template: "
|
|
511
619
|
},
|
|
512
620
|
{
|
|
513
621
|
"kind": "Content",
|
|
514
|
-
"text": "(
|
|
622
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
515
623
|
},
|
|
516
624
|
{
|
|
517
625
|
"kind": "Reference",
|
|
518
|
-
"text": "
|
|
519
|
-
"canonicalReference": "!
|
|
626
|
+
"text": "ViewTemplate",
|
|
627
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
520
628
|
},
|
|
521
629
|
{
|
|
522
630
|
"kind": "Content",
|
|
523
|
-
"text": "
|
|
631
|
+
"text": "<"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"kind": "Reference",
|
|
635
|
+
"text": "ExpressionBuilder",
|
|
636
|
+
"canonicalReference": "@genesislcap/expression-builder!ExpressionBuilder:class"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"kind": "Content",
|
|
640
|
+
"text": ", any>"
|
|
524
641
|
}
|
|
525
642
|
],
|
|
526
|
-
"fileUrlPath": "src/
|
|
643
|
+
"fileUrlPath": "src/main/expression-builder.template.ts",
|
|
527
644
|
"isReadonly": true,
|
|
528
|
-
"releaseTag": "
|
|
529
|
-
"name": "
|
|
645
|
+
"releaseTag": "Alpha",
|
|
646
|
+
"name": "template",
|
|
530
647
|
"variableTypeTokenRange": {
|
|
531
648
|
"startIndex": 1,
|
|
532
|
-
"endIndex":
|
|
649
|
+
"endIndex": 6
|
|
533
650
|
}
|
|
534
651
|
},
|
|
535
652
|
{
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/expression-builder](./expression-builder.md) > [Config](./expression-builder.config.md) > [BASE\_OPERATORS](./expression-builder.config.base_operators.md)
|
|
4
|
+
|
|
5
|
+
## Config.BASE\_OPERATORS variable
|
|
6
|
+
|
|
7
|
+
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
\*
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
BASE_OPERATORS: Operator[]
|
|
16
|
+
```
|
|
@@ -6,9 +6,62 @@
|
|
|
6
6
|
|
|
7
7
|
## Variables
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Variable
|
|
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>
|
|
14
67
|
|
|
@@ -17,9 +17,37 @@ protected dispatchChangeEvent(group: Group): void;
|
|
|
17
17
|
|
|
18
18
|
## Parameters
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Parameter
|
|
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>
|
|
23
51
|
|
|
24
52
|
**Returns:**
|
|
25
53
|
|
|
@@ -26,15 +26,127 @@ export declare class ExpressionBuilder extends GenesisElement implements Metadat
|
|
|
26
26
|
|
|
27
27
|
## Properties
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
<table><thead><tr><th>
|
|
30
|
+
|
|
31
|
+
Property
|
|
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>
|
|
34
116
|
|
|
35
117
|
## Methods
|
|
36
118
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
119
|
+
<table><thead><tr><th>
|
|
120
|
+
|
|
121
|
+
Method
|
|
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>
|
|
40
152
|
|
|
@@ -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() function
|
|
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,3 +16,42 @@ 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() function
|
|
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,3 +16,42 @@ 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
|
+
|