@genesislcap/foundation-forms 14.299.0 → 14.300.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/types.d.ts +8 -0
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/jsonforms/renderers/ConnectedSelectControlRenderer.js +2 -2
- package/dist/esm/jsonforms/renderers/EnumControlRenderer.js +2 -2
- package/dist/foundation-forms.api.json +11 -2
- package/dist/foundation-forms.d.ts +8 -0
- package/docs/api/foundation-forms.connectedrenderersoptions.md +1 -0
- package/docs/api-report.md +4 -2
- package/package.json +15 -15
package/dist/dts/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { FilterMode } from '@genesislcap/foundation-ui';
|
|
2
3
|
import { JsonFormsState, OwnPropsOfControl, RankedTester, StatePropsOfControl } from '@jsonforms/core';
|
|
3
4
|
import { RuleEffect, SchemaBasedCondition } from '@jsonforms/core';
|
|
4
5
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
@@ -60,6 +61,13 @@ export type ConnectedRenderersOptions = {
|
|
|
60
61
|
* @public
|
|
61
62
|
*/
|
|
62
63
|
allowCustomOptions?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Controls the filtering mode for the component.
|
|
66
|
+
* - 'contains': Filters options that contain the search text (default)
|
|
67
|
+
* - 'startsWith': Filters options that start with the search text
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
filterMode?: FilterMode;
|
|
63
71
|
};
|
|
64
72
|
/**
|
|
65
73
|
* Configuration options available for array renderer.
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,c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|
async=${(x) => { var _a; return (_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.async; }}
|
|
35
35
|
placeholder=${(x) => x.control.uischema.placeholder || x.control.label}
|
|
36
|
-
autocomplete=
|
|
37
|
-
filter-mode=
|
|
36
|
+
autocomplete=${(x) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.filterMode) === 'startsWith' ? 'both' : 'list'); }}
|
|
37
|
+
filter-mode=${(x) => { var _a; return ((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.filterMode) || 'contains'; }}
|
|
38
38
|
?disabled=${(x) => !x.control.enabled}
|
|
39
39
|
:value=${(x) => getConnectedSelectDisplayValue(x)}
|
|
40
40
|
@value-change=${(x, c) => {
|
|
@@ -44,8 +44,8 @@ export const EnumControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
44
44
|
>
|
|
45
45
|
<${prefix}-combobox
|
|
46
46
|
style="width: 100%; min-width: 200px;"
|
|
47
|
-
autocomplete=
|
|
48
|
-
filter-mode=
|
|
47
|
+
autocomplete=${(x) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.filterMode) === 'startsWith' ? 'both' : 'list'); }}
|
|
48
|
+
filter-mode=${(x) => { var _a; return ((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.filterMode) || 'contains'; }}
|
|
49
49
|
?disabled=${(x) => !x.control.enabled}
|
|
50
50
|
:value=${(x) => displaySetOrDefaultData(x)}
|
|
51
51
|
@change=${(x, c) => updateEnumData(x, c.event.target.value)}
|
|
@@ -262,7 +262,16 @@
|
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"kind": "Content",
|
|
265
|
-
"text": ";\n valueField?: string;\n labelField?: string;\n data?: any[];\n allowCustomOptions?: boolean;\n
|
|
265
|
+
"text": ";\n valueField?: string;\n labelField?: string;\n data?: any[];\n allowCustomOptions?: boolean;\n filterMode?: "
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"kind": "Reference",
|
|
269
|
+
"text": "FilterMode",
|
|
270
|
+
"canonicalReference": "@genesislcap/foundation-ui!FilterMode:type"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"kind": "Content",
|
|
274
|
+
"text": ";\n}"
|
|
266
275
|
},
|
|
267
276
|
{
|
|
268
277
|
"kind": "Content",
|
|
@@ -274,7 +283,7 @@
|
|
|
274
283
|
"name": "ConnectedRenderersOptions",
|
|
275
284
|
"typeTokenRange": {
|
|
276
285
|
"startIndex": 1,
|
|
277
|
-
"endIndex":
|
|
286
|
+
"endIndex": 6
|
|
278
287
|
}
|
|
279
288
|
},
|
|
280
289
|
{
|
|
@@ -6,6 +6,7 @@ import { ErrorObject } from 'ajv';
|
|
|
6
6
|
import { ErrorTranslator } from '@jsonforms/core';
|
|
7
7
|
import { Expression } from '@genesislcap/foundation-criteria';
|
|
8
8
|
import { FASTElement } from '@microsoft/fast-element';
|
|
9
|
+
import { FilterMode } from '@genesislcap/foundation-ui';
|
|
9
10
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
10
11
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
11
12
|
import { JsonFormsState } from '@jsonforms/core';
|
|
@@ -143,6 +144,13 @@ export declare type ConnectedRenderersOptions = {
|
|
|
143
144
|
* @public
|
|
144
145
|
*/
|
|
145
146
|
allowCustomOptions?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Controls the filtering mode for the component.
|
|
149
|
+
* - 'contains': Filters options that contain the search text (default)
|
|
150
|
+
* - 'startsWith': Filters options that start with the search text
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
filterMode?: FilterMode;
|
|
146
154
|
};
|
|
147
155
|
|
|
148
156
|
/**
|
package/docs/api-report.md
CHANGED
|
@@ -12,6 +12,7 @@ import { ErrorObject } from 'ajv';
|
|
|
12
12
|
import { ErrorTranslator } from '@jsonforms/core';
|
|
13
13
|
import { Expression } from '@genesislcap/foundation-criteria';
|
|
14
14
|
import { FASTElement } from '@microsoft/fast-element';
|
|
15
|
+
import { FilterMode } from '@genesislcap/foundation-ui';
|
|
15
16
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
16
17
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
17
18
|
import { JsonFormsState } from '@jsonforms/core';
|
|
@@ -55,6 +56,7 @@ export type ConnectedRenderersOptions = {
|
|
|
55
56
|
labelField?: string;
|
|
56
57
|
data?: any[];
|
|
57
58
|
allowCustomOptions?: boolean;
|
|
59
|
+
filterMode?: FilterMode;
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
// Warning: (ae-forgotten-export) The symbol "Expressions" needs to be exported by the entry point index.d.ts
|
|
@@ -292,8 +294,8 @@ export type UiSchemaOptions = StepperOrientationOptions | LabelPlacementOptions;
|
|
|
292
294
|
|
|
293
295
|
// Warnings were encountered during analysis:
|
|
294
296
|
//
|
|
295
|
-
// src/types.ts:
|
|
296
|
-
// src/types.ts:
|
|
297
|
+
// src/types.ts:308:3 - (ae-forgotten-export) The symbol "Rule" needs to be exported by the entry point index.d.ts
|
|
298
|
+
// src/types.ts:358:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
|
|
297
299
|
|
|
298
300
|
// (No @packageDocumentation comment for this package)
|
|
299
301
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-forms",
|
|
3
3
|
"description": "Genesis Foundation Forms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.300.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@genesislcap/foundation-testing": "14.
|
|
52
|
-
"@genesislcap/genx": "14.
|
|
53
|
-
"@genesislcap/rollup-builder": "14.
|
|
54
|
-
"@genesislcap/ts-builder": "14.
|
|
55
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
56
|
-
"@genesislcap/vite-builder": "14.
|
|
57
|
-
"@genesislcap/webpack-builder": "14.
|
|
51
|
+
"@genesislcap/foundation-testing": "14.300.0",
|
|
52
|
+
"@genesislcap/genx": "14.300.0",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.300.0",
|
|
54
|
+
"@genesislcap/ts-builder": "14.300.0",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.300.0",
|
|
56
|
+
"@genesislcap/vite-builder": "14.300.0",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.300.0",
|
|
58
58
|
"@types/json-schema": "^7.0.11",
|
|
59
59
|
"rimraf": "^5.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@genesislcap/foundation-comms": "14.
|
|
63
|
-
"@genesislcap/foundation-criteria": "14.
|
|
64
|
-
"@genesislcap/foundation-logger": "14.
|
|
65
|
-
"@genesislcap/foundation-notifications": "14.
|
|
66
|
-
"@genesislcap/foundation-ui": "14.
|
|
67
|
-
"@genesislcap/foundation-utils": "14.
|
|
62
|
+
"@genesislcap/foundation-comms": "14.300.0",
|
|
63
|
+
"@genesislcap/foundation-criteria": "14.300.0",
|
|
64
|
+
"@genesislcap/foundation-logger": "14.300.0",
|
|
65
|
+
"@genesislcap/foundation-notifications": "14.300.0",
|
|
66
|
+
"@genesislcap/foundation-ui": "14.300.0",
|
|
67
|
+
"@genesislcap/foundation-utils": "14.300.0",
|
|
68
68
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
69
69
|
"@jsonforms/core": "^3.2.1",
|
|
70
70
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
88
|
"customElements": "dist/custom-elements.json",
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "a44d8e99342056d7cefd0a9814e8b9854af6728c"
|
|
90
90
|
}
|