@genesislcap/foundation-ui 15.64.1 → 15.65.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/custom-elements.json +514 -514
- package/dist/dts/ai-criteria-search/validation/criteria-ir.d.ts.map +1 -1
- package/dist/dts/ai-criteria-search/validation/operator-map.d.ts.map +1 -1
- package/dist/dts/react.d.ts +12 -12
- package/dist/esm/ai-criteria-search/validation/operator-map.js +9 -4
- package/dist/react.cjs +8 -8
- package/dist/react.mjs +6 -6
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"criteria-ir.d.ts","sourceRoot":"","sources":["../../../../src/ai-criteria-search/validation/criteria-ir.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,QAAQ,GACR,YAAY,
|
|
1
|
+
{"version":3,"file":"criteria-ir.d.ts","sourceRoot":"","sources":["../../../../src/ai-criteria-search/validation/criteria-ir.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,QAAQ,GACR,YAAY,GAGZ,UAAU,GACV,aAAa,GACb,UAAU,GACV,oBAAoB,GACpB,iBAAiB,GACjB,UAAU,GACV,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,GACxB,qBAAqB,CAAC;AAE1B,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-map.d.ts","sourceRoot":"","sources":["../../../../src/ai-criteria-search/validation/operator-map.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAkB,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"operator-map.d.ts","sourceRoot":"","sources":["../../../../src/ai-criteria-search/validation/operator-map.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAkB,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAmDrF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAqBhE;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,EAK9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,EAO/C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAAgB,EAO5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAKhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAoBnE,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -133,14 +133,14 @@ interface HTMLWCProps extends React.AriaAttributes {
|
|
|
133
133
|
onInput?(e: Event): void;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
export declare const
|
|
136
|
+
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
137
137
|
React.PropsWithChildren<
|
|
138
|
-
Omit<PublicOf<
|
|
138
|
+
Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
|
|
139
139
|
HTMLWCProps & {
|
|
140
140
|
}
|
|
141
|
-
> & React.RefAttributes<
|
|
141
|
+
> & React.RefAttributes<AccordionWC>
|
|
142
142
|
>;
|
|
143
|
-
export type
|
|
143
|
+
export type AccordionRef = AccordionWC;
|
|
144
144
|
|
|
145
145
|
export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
146
146
|
React.PropsWithChildren<
|
|
@@ -162,23 +162,23 @@ export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
|
|
|
162
162
|
>;
|
|
163
163
|
export type AiCriteriaSearchRef = AiCriteriaSearchWC;
|
|
164
164
|
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const AiIndicator: React.ForwardRefExoticComponent<
|
|
166
166
|
React.PropsWithChildren<
|
|
167
|
-
Omit<PublicOf<
|
|
167
|
+
Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
|
|
168
168
|
HTMLWCProps & {
|
|
169
169
|
}
|
|
170
|
-
> & React.RefAttributes<
|
|
170
|
+
> & React.RefAttributes<AiIndicatorWC>
|
|
171
171
|
>;
|
|
172
|
-
export type
|
|
172
|
+
export type AiIndicatorRef = AiIndicatorWC;
|
|
173
173
|
|
|
174
|
-
export declare const
|
|
174
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
175
175
|
React.PropsWithChildren<
|
|
176
|
-
Omit<PublicOf<
|
|
176
|
+
Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
|
|
177
177
|
HTMLWCProps & {
|
|
178
178
|
}
|
|
179
|
-
> & React.RefAttributes<
|
|
179
|
+
> & React.RefAttributes<AccordionItemWC>
|
|
180
180
|
>;
|
|
181
|
-
export type
|
|
181
|
+
export type AccordionItemRef = AccordionItemWC;
|
|
182
182
|
|
|
183
183
|
export declare const Anchor: React.ForwardRefExoticComponent<
|
|
184
184
|
React.PropsWithChildren<
|
|
@@ -8,6 +8,7 @@ const OPERATOR_TO_SERIALISER = {
|
|
|
8
8
|
contains: Serialisers.containsIgnoreCase,
|
|
9
9
|
equals: Serialisers.EQ,
|
|
10
10
|
startsWith: Serialisers.startsWith,
|
|
11
|
+
// Deprecated: GSF 8.14+ rejects FIELD.endsWith, and validateGroups refuses it.
|
|
11
12
|
endsWith: Serialisers.endsWith,
|
|
12
13
|
greaterThan: Serialisers.GT,
|
|
13
14
|
lessThan: Serialisers.LT,
|
|
@@ -26,11 +27,16 @@ const OPERATOR_TO_SERIALISER = {
|
|
|
26
27
|
dateTimeIsLessEqual: Serialisers.dateTimeIsLessEqual,
|
|
27
28
|
};
|
|
28
29
|
function clauseToExpression(clause) {
|
|
29
|
-
var _a
|
|
30
|
-
const serialiser =
|
|
30
|
+
var _a;
|
|
31
|
+
const serialiser = OPERATOR_TO_SERIALISER[clause.operator];
|
|
32
|
+
if (!serialiser) {
|
|
33
|
+
// An operator outside CriteriaOperator (a restored or hand-written IR that skipped
|
|
34
|
+
// validateGroups). Falling back to another operator would quietly match different rows.
|
|
35
|
+
throw new Error(`Unknown criteria operator '${clause.operator}'`);
|
|
36
|
+
}
|
|
31
37
|
return new ExpressionBuilder()
|
|
32
38
|
.withField(clause.field)
|
|
33
|
-
.withValue((
|
|
39
|
+
.withValue((_a = clause.value) !== null && _a !== void 0 ? _a : null)
|
|
34
40
|
.withSerialiser(serialiser)
|
|
35
41
|
.withGroup('default')
|
|
36
42
|
.build();
|
|
@@ -70,7 +76,6 @@ export const STRING_OPERATORS = [
|
|
|
70
76
|
'contains',
|
|
71
77
|
'equals',
|
|
72
78
|
'startsWith',
|
|
73
|
-
'endsWith',
|
|
74
79
|
'notEqual',
|
|
75
80
|
];
|
|
76
81
|
export const NUMERIC_OPERATORS = [
|
package/dist/react.cjs
CHANGED
|
@@ -113,9 +113,9 @@ function _mergeRefs(...refs) {
|
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
const
|
|
116
|
+
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
117
117
|
const { children, ...rest } = props;
|
|
118
|
-
return React.createElement(customElements.getName(
|
|
118
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -145,14 +145,14 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
|
|
|
145
145
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
const
|
|
148
|
+
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
149
149
|
const { children, ...rest } = props;
|
|
150
|
-
return React.createElement(customElements.getName(
|
|
150
|
+
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
const
|
|
153
|
+
const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
154
154
|
const { children, ...rest } = props;
|
|
155
|
-
return React.createElement(customElements.getName(
|
|
155
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
156
156
|
});
|
|
157
157
|
|
|
158
158
|
const Anchor = React.forwardRef(function Anchor(props, ref) {
|
|
@@ -1143,11 +1143,11 @@ const WeeklyRecurrence = React.forwardRef(function WeeklyRecurrence(props, ref)
|
|
|
1143
1143
|
});
|
|
1144
1144
|
|
|
1145
1145
|
module.exports = {
|
|
1146
|
-
|
|
1146
|
+
Accordion,
|
|
1147
1147
|
ActionsMenu,
|
|
1148
1148
|
AiCriteriaSearch,
|
|
1149
|
-
Accordion,
|
|
1150
1149
|
AiIndicator,
|
|
1150
|
+
AccordionItem,
|
|
1151
1151
|
Anchor,
|
|
1152
1152
|
AnchoredRegion,
|
|
1153
1153
|
Avatar,
|
package/dist/react.mjs
CHANGED
|
@@ -111,9 +111,9 @@ function _mergeRefs(...refs) {
|
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
export const
|
|
114
|
+
export const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
115
115
|
const { children, ...rest } = props;
|
|
116
|
-
return React.createElement(customElements.getName(
|
|
116
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -143,14 +143,14 @@ export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props
|
|
|
143
143
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
export const
|
|
146
|
+
export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
147
147
|
const { children, ...rest } = props;
|
|
148
|
-
return React.createElement(customElements.getName(
|
|
148
|
+
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export const
|
|
151
|
+
export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
152
152
|
const { children, ...rest } = props;
|
|
153
|
-
return React.createElement(customElements.getName(
|
|
153
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
export const Anchor = React.forwardRef(function Anchor(props, ref) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.65.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@genesislcap/foundation-testing": "15.
|
|
86
|
-
"@genesislcap/genx": "15.
|
|
87
|
-
"@genesislcap/ts-builder": "15.
|
|
88
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
89
|
-
"@genesislcap/vite-builder": "15.
|
|
90
|
-
"@genesislcap/webpack-builder": "15.
|
|
85
|
+
"@genesislcap/foundation-testing": "15.65.0",
|
|
86
|
+
"@genesislcap/genx": "15.65.0",
|
|
87
|
+
"@genesislcap/ts-builder": "15.65.0",
|
|
88
|
+
"@genesislcap/uvu-playwright-builder": "15.65.0",
|
|
89
|
+
"@genesislcap/vite-builder": "15.65.0",
|
|
90
|
+
"@genesislcap/webpack-builder": "15.65.0",
|
|
91
91
|
"copyfiles": "^2.4.1"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
@@ -96,16 +96,16 @@
|
|
|
96
96
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
97
97
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
98
98
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
99
|
-
"@genesislcap/expression-builder": "15.
|
|
100
|
-
"@genesislcap/foundation-ai": "15.
|
|
101
|
-
"@genesislcap/foundation-comms": "15.
|
|
102
|
-
"@genesislcap/foundation-criteria": "15.
|
|
103
|
-
"@genesislcap/foundation-errors": "15.
|
|
104
|
-
"@genesislcap/foundation-events": "15.
|
|
105
|
-
"@genesislcap/foundation-logger": "15.
|
|
106
|
-
"@genesislcap/foundation-notifications": "15.
|
|
107
|
-
"@genesislcap/foundation-user": "15.
|
|
108
|
-
"@genesislcap/foundation-utils": "15.
|
|
99
|
+
"@genesislcap/expression-builder": "15.65.0",
|
|
100
|
+
"@genesislcap/foundation-ai": "15.65.0",
|
|
101
|
+
"@genesislcap/foundation-comms": "15.65.0",
|
|
102
|
+
"@genesislcap/foundation-criteria": "15.65.0",
|
|
103
|
+
"@genesislcap/foundation-errors": "15.65.0",
|
|
104
|
+
"@genesislcap/foundation-events": "15.65.0",
|
|
105
|
+
"@genesislcap/foundation-logger": "15.65.0",
|
|
106
|
+
"@genesislcap/foundation-notifications": "15.65.0",
|
|
107
|
+
"@genesislcap/foundation-user": "15.65.0",
|
|
108
|
+
"@genesislcap/foundation-utils": "15.65.0",
|
|
109
109
|
"@microsoft/fast-colors": "5.3.1",
|
|
110
110
|
"@microsoft/fast-components": "2.30.6",
|
|
111
111
|
"@microsoft/fast-element": "1.14.0",
|