@genesislcap/foundation-criteria 14.408.0 → 14.409.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/README.md +8 -12
- package/package.json +11 -11
- package/docs/api/foundation-criteria.createformcriteriabuilder.md +0 -51
- package/docs/api/foundation-criteria.criteriabuilder.and.md +0 -11
- package/docs/api/foundation-criteria.criteriabuilder.build.md +0 -52
- package/docs/api/foundation-criteria.criteriabuilder.md +0 -146
- package/docs/api/foundation-criteria.criteriabuilder.not.md +0 -11
- package/docs/api/foundation-criteria.criteriabuilder.or.md +0 -11
- package/docs/api/foundation-criteria.criteriabuilder.reset.md +0 -15
- package/docs/api/foundation-criteria.criteriabuilder.withexpression.md +0 -82
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.criteriaoptions.md +0 -11
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.itemclickhandler.md +0 -50
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.md +0 -171
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.selectedlabel.md +0 -11
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.selectedlabelchanged.md +0 -15
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.value.md +0 -11
- package/docs/api/foundation-criteria.criteriasegmentedcontrol.valuechanged.md +0 -15
- package/docs/api/foundation-criteria.expressionbuilder._constructor_.md +0 -57
- package/docs/api/foundation-criteria.expressionbuilder.build.md +0 -11
- package/docs/api/foundation-criteria.expressionbuilder.md +0 -181
- package/docs/api/foundation-criteria.expressionbuilder.withfield.md +0 -50
- package/docs/api/foundation-criteria.expressionbuilder.withgroup.md +0 -50
- package/docs/api/foundation-criteria.expressionbuilder.withparams.md +0 -50
- package/docs/api/foundation-criteria.expressionbuilder.withserialiser.md +0 -50
- package/docs/api/foundation-criteria.expressionbuilder.withvalue.md +0 -50
- package/docs/api/foundation-criteria.expressionbuilder.withvaluegetter.md +0 -50
- package/docs/api/foundation-criteria.expressionconfig.md +0 -15
- package/docs/api/foundation-criteria.expressionconfigmap.md +0 -17
- package/docs/api/foundation-criteria.join._constructor_.md +0 -48
- package/docs/api/foundation-criteria.join.and.md +0 -15
- package/docs/api/foundation-criteria.join.equal.md +0 -15
- package/docs/api/foundation-criteria.join.greaterthan.md +0 -15
- package/docs/api/foundation-criteria.join.greaterthanorequal.md +0 -15
- package/docs/api/foundation-criteria.join.lessthan.md +0 -15
- package/docs/api/foundation-criteria.join.lessthanorequal.md +0 -15
- package/docs/api/foundation-criteria.join.md +0 -238
- package/docs/api/foundation-criteria.join.not.md +0 -15
- package/docs/api/foundation-criteria.join.notequal.md +0 -15
- package/docs/api/foundation-criteria.join.operator.md +0 -11
- package/docs/api/foundation-criteria.join.or.md +0 -15
- package/docs/api/foundation-criteria.md +0 -152
- package/docs/api/foundation-criteria.serialisers.md +0 -36
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -244
package/README.md
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @genesislcap/foundation-criteria
|
|
2
2
|
|
|
3
|
+
Documentation for this package is published on the Genesis docs site:
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
**Docs: [Criteria](https://docs.genesis.global/docs/develop/client-capabilities/criteria/)**
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
## Installation
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Add the package to your `package.json` dependencies. After changing dependencies, run `npm run bootstrap` (or your project's equivalent). See [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) for more information.
|
|
9
10
|
|
|
10
11
|
```json
|
|
11
12
|
{
|
|
12
|
-
...
|
|
13
13
|
"dependencies": {
|
|
14
|
-
...
|
|
15
14
|
"@genesislcap/foundation-criteria": "latest"
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
...
|
|
15
|
+
}
|
|
19
16
|
}
|
|
20
17
|
```
|
|
21
18
|
|
|
22
|
-
## [API Docs](./docs/api/index.md)
|
|
23
|
-
|
|
24
19
|
## License
|
|
25
20
|
|
|
26
21
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
27
22
|
|
|
28
23
|
### Licensed components
|
|
29
|
-
|
|
24
|
+
|
|
25
|
+
Genesis low-code platform
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-criteria",
|
|
3
3
|
"description": "Genesis Foundation UI Criteria Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.409.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "14.
|
|
55
|
-
"@genesislcap/genx": "14.
|
|
56
|
-
"@genesislcap/rollup-builder": "14.
|
|
57
|
-
"@genesislcap/ts-builder": "14.
|
|
58
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
59
|
-
"@genesislcap/vite-builder": "14.
|
|
60
|
-
"@genesislcap/webpack-builder": "14.
|
|
54
|
+
"@genesislcap/foundation-testing": "14.409.0",
|
|
55
|
+
"@genesislcap/genx": "14.409.0",
|
|
56
|
+
"@genesislcap/rollup-builder": "14.409.0",
|
|
57
|
+
"@genesislcap/ts-builder": "14.409.0",
|
|
58
|
+
"@genesislcap/uvu-playwright-builder": "14.409.0",
|
|
59
|
+
"@genesislcap/vite-builder": "14.409.0",
|
|
60
|
+
"@genesislcap/webpack-builder": "14.409.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@genesislcap/foundation-logger": "14.
|
|
64
|
-
"@genesislcap/foundation-utils": "14.
|
|
63
|
+
"@genesislcap/foundation-logger": "14.409.0",
|
|
64
|
+
"@genesislcap/foundation-utils": "14.409.0",
|
|
65
65
|
"@microsoft/fast-element": "1.14.0"
|
|
66
66
|
},
|
|
67
67
|
"repository": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "cbe0459d170f27c35a7de18cec415947aedf4da5"
|
|
76
76
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [createFormCriteriaBuilder](./foundation-criteria.createformcriteriabuilder.md)
|
|
4
|
-
|
|
5
|
-
## createFormCriteriaBuilder() function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
createFormCriteriaBuilder: <T>(criteriaBuilder: CriteriaBuilder) => (config: ExpressionConfig, formValue: any, formData: T) => void
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Parameter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Description
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th></tr></thead>
|
|
32
|
-
<tbody><tr><td>
|
|
33
|
-
|
|
34
|
-
criteriaBuilder
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td><td>
|
|
38
|
-
|
|
39
|
-
[CriteriaBuilder](./foundation-criteria.criteriabuilder.md)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td></tr>
|
|
46
|
-
</tbody></table>
|
|
47
|
-
|
|
48
|
-
**Returns:**
|
|
49
|
-
|
|
50
|
-
(config: [ExpressionConfig](./foundation-criteria.expressionconfig.md)<!-- -->, formValue: any, formData: T) => void
|
|
51
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [And](./foundation-criteria.criteriabuilder.and.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.And property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
And: (expression: ValidExpressionType, options?: ExpressionOptions) => this;
|
|
11
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [build](./foundation-criteria.criteriabuilder.build.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.build() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
build(outputFn?: (groups: GroupedExpressions) => string): string;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
outputFn
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
(groups: GroupedExpressions) => string
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
_(Optional)_
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
string
|
|
52
|
-
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder class
|
|
6
|
-
|
|
7
|
-
Builder class used to generate query criteria
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class CriteriaBuilder
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Property
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Modifiers
|
|
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
|
-
[And](./foundation-criteria.criteriabuilder.and.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
(expression: ValidExpressionType, options?: ExpressionOptions) => this
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td><td>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td></tr>
|
|
55
|
-
<tr><td>
|
|
56
|
-
|
|
57
|
-
[Not](./foundation-criteria.criteriabuilder.not.md)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td><td>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</td><td>
|
|
64
|
-
|
|
65
|
-
(expression: ValidExpressionType, options?: ExpressionOptions) => this
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</td><td>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td></tr>
|
|
72
|
-
<tr><td>
|
|
73
|
-
|
|
74
|
-
[Or](./foundation-criteria.criteriabuilder.or.md)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</td><td>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</td><td>
|
|
81
|
-
|
|
82
|
-
(expression: ValidExpressionType, options?: ExpressionOptions) => this
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td><td>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
</td></tr>
|
|
89
|
-
</tbody></table>
|
|
90
|
-
|
|
91
|
-
## Methods
|
|
92
|
-
|
|
93
|
-
<table><thead><tr><th>
|
|
94
|
-
|
|
95
|
-
Method
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</th><th>
|
|
99
|
-
|
|
100
|
-
Modifiers
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</th><th>
|
|
104
|
-
|
|
105
|
-
Description
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</th></tr></thead>
|
|
109
|
-
<tbody><tr><td>
|
|
110
|
-
|
|
111
|
-
[build(outputFn)](./foundation-criteria.criteriabuilder.build.md)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</td><td>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</td><td>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td></tr>
|
|
121
|
-
<tr><td>
|
|
122
|
-
|
|
123
|
-
[reset()](./foundation-criteria.criteriabuilder.reset.md)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</td><td>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</td><td>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</td></tr>
|
|
133
|
-
<tr><td>
|
|
134
|
-
|
|
135
|
-
[withExpression(expression, options, groupJoin)](./foundation-criteria.criteriabuilder.withexpression.md)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
</td><td>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
</td><td>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</td></tr>
|
|
145
|
-
</tbody></table>
|
|
146
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [Not](./foundation-criteria.criteriabuilder.not.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.Not property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
Not: (expression: ValidExpressionType, options?: ExpressionOptions) => this;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [Or](./foundation-criteria.criteriabuilder.or.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.Or property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
Or: (expression: ValidExpressionType, options?: ExpressionOptions) => this;
|
|
11
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [reset](./foundation-criteria.criteriabuilder.reset.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.reset() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
reset(): void;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
void
|
|
15
|
-
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaBuilder](./foundation-criteria.criteriabuilder.md) > [withExpression](./foundation-criteria.criteriabuilder.withexpression.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaBuilder.withExpression() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
withExpression(expression: ValidExpressionType, options?: ExpressionOptions, groupJoin?: Join): this;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
expression
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
ValidExpressionType
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</td></tr>
|
|
45
|
-
<tr><td>
|
|
46
|
-
|
|
47
|
-
options
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td><td>
|
|
51
|
-
|
|
52
|
-
ExpressionOptions
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
_(Optional)_
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td></tr>
|
|
61
|
-
<tr><td>
|
|
62
|
-
|
|
63
|
-
groupJoin
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
[Join](./foundation-criteria.join.md)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
_(Optional)_
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</td></tr>
|
|
77
|
-
</tbody></table>
|
|
78
|
-
|
|
79
|
-
**Returns:**
|
|
80
|
-
|
|
81
|
-
this
|
|
82
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaSegmentedControl](./foundation-criteria.criteriasegmentedcontrol.md) > [criteriaOptions](./foundation-criteria.criteriasegmentedcontrol.criteriaoptions.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaSegmentedControl.criteriaOptions property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
criteriaOptions: CriteriaSegmentedControlOption[];
|
|
11
|
-
```
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaSegmentedControl](./foundation-criteria.criteriasegmentedcontrol.md) > [itemClickHandler](./foundation-criteria.criteriasegmentedcontrol.itemclickhandler.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaSegmentedControl.itemClickHandler() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
itemClickHandler(label: string): void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
label
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
string
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</td></tr>
|
|
45
|
-
</tbody></table>
|
|
46
|
-
|
|
47
|
-
**Returns:**
|
|
48
|
-
|
|
49
|
-
void
|
|
50
|
-
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-criteria](./foundation-criteria.md) > [CriteriaSegmentedControl](./foundation-criteria.criteriasegmentedcontrol.md)
|
|
4
|
-
|
|
5
|
-
## CriteriaSegmentedControl class
|
|
6
|
-
|
|
7
|
-
Main class which defines the criteria segmented control component.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class CriteriaSegmentedControl extends FASTElement
|
|
13
|
-
```
|
|
14
|
-
**Extends:** FASTElement
|
|
15
|
-
|
|
16
|
-
## Remarks
|
|
17
|
-
|
|
18
|
-
Displays segmented criteria and dispatches events with the selected criteria.
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
Example of using the component:
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
const toolbarOptions: CriteriaSegmentedControlOption[] = [
|
|
27
|
-
{ label: 'A', field: 'INSTRUMENT_ID', value: 'id1', serialiser: Serialisers.EQ },
|
|
28
|
-
{ label: 'B', field: 'INSTRUMENT_ID', value: 'id2', serialiser: Serialisers.EQ },
|
|
29
|
-
{ label: 'C', field: 'INSTRUMENT_ID', value: 'id3', serialiser: Serialisers.EQ },
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
<criteria-segmented-control
|
|
33
|
-
:criteriaOptions=${() => toolbarOptions}
|
|
34
|
-
:value=${sync((x) => x.criteriaFilter)}
|
|
35
|
-
>
|
|
36
|
-
<label slot="label">Filter by instrument name</label>
|
|
37
|
-
</criteria-segmented-control>
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Properties
|
|
41
|
-
|
|
42
|
-
<table><thead><tr><th>
|
|
43
|
-
|
|
44
|
-
Property
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</th><th>
|
|
48
|
-
|
|
49
|
-
Modifiers
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</th><th>
|
|
53
|
-
|
|
54
|
-
Type
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</th><th>
|
|
58
|
-
|
|
59
|
-
Description
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</th></tr></thead>
|
|
63
|
-
<tbody><tr><td>
|
|
64
|
-
|
|
65
|
-
[criteriaOptions](./foundation-criteria.criteriasegmentedcontrol.criteriaoptions.md)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</td><td>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
CriteriaSegmentedControlOption\[\]
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</td><td>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
</td></tr>
|
|
80
|
-
<tr><td>
|
|
81
|
-
|
|
82
|
-
[selectedLabel](./foundation-criteria.criteriasegmentedcontrol.selectedlabel.md)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td><td>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
</td><td>
|
|
89
|
-
|
|
90
|
-
string
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
</td><td>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</td></tr>
|
|
97
|
-
<tr><td>
|
|
98
|
-
|
|
99
|
-
[value](./foundation-criteria.criteriasegmentedcontrol.value.md)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</td><td>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</td><td>
|
|
106
|
-
|
|
107
|
-
string
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</td><td>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</td></tr>
|
|
114
|
-
</tbody></table>
|
|
115
|
-
|
|
116
|
-
## Methods
|
|
117
|
-
|
|
118
|
-
<table><thead><tr><th>
|
|
119
|
-
|
|
120
|
-
Method
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</th><th>
|
|
124
|
-
|
|
125
|
-
Modifiers
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</th><th>
|
|
129
|
-
|
|
130
|
-
Description
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</th></tr></thead>
|
|
134
|
-
<tbody><tr><td>
|
|
135
|
-
|
|
136
|
-
[itemClickHandler(label)](./foundation-criteria.criteriasegmentedcontrol.itemclickhandler.md)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</td><td>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</td><td>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
</td></tr>
|
|
146
|
-
<tr><td>
|
|
147
|
-
|
|
148
|
-
[selectedLabelChanged()](./foundation-criteria.criteriasegmentedcontrol.selectedlabelchanged.md)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
</td><td>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</td><td>
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
</td></tr>
|
|
158
|
-
<tr><td>
|
|
159
|
-
|
|
160
|
-
[valueChanged()](./foundation-criteria.criteriasegmentedcontrol.valuechanged.md)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
</td><td>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
</td><td>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
</td></tr>
|
|
170
|
-
</tbody></table>
|
|
171
|
-
|