@genesislcap/foundation-forms 14.226.0 → 14.226.1
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/form.d.ts +29 -48
- package/dist/dts/form.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/esm/filters/filters.js +1 -1
- package/dist/esm/form.js +1 -1
- package/dist/foundation-forms.api.json +11 -29
- package/dist/foundation-forms.d.ts +29 -49
- package/docs/api/foundation-forms.md +1 -6
- package/docs/api/foundation-forms.mustmatch.md +1 -14
- package/docs/{api-report.md.api.md → api-report.md} +0 -2
- package/package.json +15 -15
package/dist/dts/form.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
2
|
import { JSONSchema7 } from 'json-schema';
|
|
4
3
|
import { RendererEntry, UiSchema } from './types';
|
|
@@ -39,15 +38,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
39
38
|
readonly offsetTop: number;
|
|
40
39
|
readonly offsetWidth: number;
|
|
41
40
|
outerText: string;
|
|
42
|
-
popover: string;
|
|
43
41
|
spellcheck: boolean;
|
|
44
42
|
title: string;
|
|
45
43
|
translate: boolean;
|
|
46
44
|
attachInternals(): ElementInternals;
|
|
47
45
|
click(): void;
|
|
48
|
-
hidePopover(): void;
|
|
49
|
-
showPopover(): void;
|
|
50
|
-
togglePopover(force?: boolean): boolean;
|
|
51
46
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
52
47
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
53
48
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -76,14 +71,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
76
71
|
slot: string;
|
|
77
72
|
readonly tagName: string;
|
|
78
73
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
79
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
80
74
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
81
75
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
82
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
|
83
76
|
closest<E extends Element = Element>(selectors: string): E;
|
|
84
|
-
computedStyleMap(): StylePropertyMapReadOnly; /**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
77
|
getAttribute(qualifiedName: string): string;
|
|
88
78
|
getAttributeNS(namespace: string, localName: string): string;
|
|
89
79
|
getAttributeNames(): string[];
|
|
@@ -92,14 +82,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
92
82
|
getBoundingClientRect(): DOMRect;
|
|
93
83
|
getClientRects(): DOMRectList;
|
|
94
84
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
95
|
-
getElementsByTagName<
|
|
96
|
-
getElementsByTagName<
|
|
97
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
98
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
85
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
86
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
99
87
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
100
88
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
101
89
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
102
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
103
90
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
104
91
|
hasAttribute(qualifiedName: string): boolean;
|
|
105
92
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -156,24 +143,24 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
156
143
|
normalize(): void;
|
|
157
144
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
158
145
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
146
|
+
readonly ATTRIBUTE_NODE: number;
|
|
147
|
+
readonly CDATA_SECTION_NODE: number;
|
|
148
|
+
readonly COMMENT_NODE: number;
|
|
149
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
150
|
+
readonly DOCUMENT_NODE: number;
|
|
151
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
152
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
153
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
154
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
155
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
156
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
157
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
158
|
+
readonly ELEMENT_NODE: number;
|
|
159
|
+
readonly ENTITY_NODE: number;
|
|
160
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
161
|
+
readonly NOTATION_NODE: number;
|
|
162
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
163
|
+
readonly TEXT_NODE: number;
|
|
177
164
|
dispatchEvent(event: Event): boolean;
|
|
178
165
|
ariaAtomic: string;
|
|
179
166
|
ariaAutoComplete: string;
|
|
@@ -181,9 +168,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
181
168
|
ariaChecked: string;
|
|
182
169
|
ariaColCount: string;
|
|
183
170
|
ariaColIndex: string;
|
|
171
|
+
ariaColIndexText: string;
|
|
184
172
|
ariaColSpan: string;
|
|
185
173
|
ariaCurrent: string;
|
|
186
|
-
ariaDescription: string;
|
|
187
174
|
ariaDisabled: string;
|
|
188
175
|
ariaExpanded: string;
|
|
189
176
|
ariaHasPopup: string;
|
|
@@ -205,6 +192,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
205
192
|
ariaRoleDescription: string;
|
|
206
193
|
ariaRowCount: string;
|
|
207
194
|
ariaRowIndex: string;
|
|
195
|
+
ariaRowIndexText: string;
|
|
208
196
|
ariaRowSpan: string;
|
|
209
197
|
ariaSelected: string;
|
|
210
198
|
ariaSetSize: string;
|
|
@@ -229,19 +217,17 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
229
217
|
readonly lastElementChild: Element;
|
|
230
218
|
append(...nodes: (string | Node)[]): void;
|
|
231
219
|
prepend(...nodes: (string | Node)[]): void;
|
|
232
|
-
querySelector<
|
|
233
|
-
querySelector<
|
|
234
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
|
235
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
|
220
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
221
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
236
222
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
237
|
-
querySelectorAll<
|
|
238
|
-
querySelectorAll<
|
|
239
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
240
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
223
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
224
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
241
225
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
242
226
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
243
227
|
readonly assignedSlot: HTMLSlotElement;
|
|
244
|
-
|
|
228
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
229
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
230
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
245
231
|
readonly style: CSSStyleDeclaration;
|
|
246
232
|
contentEditable: string;
|
|
247
233
|
enterKeyHint: string;
|
|
@@ -254,7 +240,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
254
240
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
255
241
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
256
242
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
257
|
-
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
258
243
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
259
244
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
260
245
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -263,9 +248,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
263
248
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
264
249
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
265
250
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
266
|
-
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
267
251
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
268
|
-
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
269
252
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
270
253
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
271
254
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -298,7 +281,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
298
281
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
299
282
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
300
283
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
301
|
-
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
302
284
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
303
285
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
304
286
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -315,7 +297,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
315
297
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
316
298
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
317
299
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
318
|
-
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
319
300
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
320
301
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
321
302
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
package/dist/dts/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAoB1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAelD;;;GAGG;AACH,eAAO,MAAM,SAAS,OAkBrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACF;;;;;GAKG;AACH,qBAKa,IAAK,SAAQ,SAAiC;IACzD;;;OAGG;IAC0C,MAAM,EAAE,MAAM,CAAU;IACrE;;;;OAIG;IACG,YAAY,EAAE,MAAM,CAAC;YACb,mBAAmB;IAcjC,OAAO,CAAC,oBAAoB;IA0B5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACS,QAAQ,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACS,SAAS,EAAE,aAAa,EAAE,CAAa;IACnD;;OAEG;IACH,gBAAgB;IAGhB;;;OAGG;IACS,mBAAmB,EAAE,aAAa,EAAE,CAAM;IACtD;;OAEG;IACH,0BAA0B;IAG1B;;;;;OAKG;IACS,eAAe,EAAE,aAAa,EAAE,CAAa;IACzD,OAAO,CAAC,qBAAqB;IAI7B;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IAEpC,OAAO,CAAC,MAAM,CAAqB;IAC1B,OAAO,CAAC,OAAO,CAAW;IACnC;;;OAGG;IACS,IAAI,EAAE,GAAG,CAAM;IAE3B;;OAEG;IACS,UAAU,EAAE,OAAO,CAAC;IAChC;;OAEG;IACS,SAAS,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACwB,QAAQ,EAAE,OAAO,CAAC;IAC7C;;;OAGG;IACyD,UAAU,EAAE,OAAO,CAAC;IAEhF;;OAEG;IACG,OAAO;IA2Bb;;;OAGG;IACH,IAAc,cAAc,YAM3B;IAED;;OAEG;IACM,SAAS,IAAI,IAAI;IAW1B;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,WAAW;IAI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAY3B;;OAEG;IACH,oBAAoB;IAKpB;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;CAMvB"}
|
|
@@ -73,8 +73,8 @@ let Filters = class Filters extends FoundationElement {
|
|
|
73
73
|
this.data = {};
|
|
74
74
|
}
|
|
75
75
|
resourceNameChanged() {
|
|
76
|
+
var _a, _b, _c;
|
|
76
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
var _a, _b, _c;
|
|
78
78
|
this.jsonSchema = undefined;
|
|
79
79
|
if (this.resourceName) {
|
|
80
80
|
const jsonSchemaResponse = yield this.connect.getJSONSchema(this.resourceName);
|
package/dist/esm/form.js
CHANGED
|
@@ -96,8 +96,8 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
|
|
|
96
96
|
this.data = {};
|
|
97
97
|
}
|
|
98
98
|
resourceNameChanged() {
|
|
99
|
+
var _a;
|
|
99
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
var _a;
|
|
101
101
|
this.jsonSchema = undefined;
|
|
102
102
|
if (this.resourceName) {
|
|
103
103
|
const jsonSchemaResponse = yield this.connect.getJSONSchema(this.resourceName);
|
|
@@ -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": {
|
|
@@ -1000,45 +1000,27 @@
|
|
|
1000
1000
|
}
|
|
1001
1001
|
},
|
|
1002
1002
|
{
|
|
1003
|
-
"kind": "
|
|
1004
|
-
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:
|
|
1003
|
+
"kind": "Variable",
|
|
1004
|
+
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:var",
|
|
1005
1005
|
"docComment": "/**\n * Ensures the value of the current field (the one the validator is on) matches the one of the target field.\n *\n * @param target - any other field\n *\n * @returns a validator function that will be run by the smart form during the client-side validation stage\n *\n * @public\n */\n",
|
|
1006
1006
|
"excerptTokens": [
|
|
1007
1007
|
{
|
|
1008
1008
|
"kind": "Content",
|
|
1009
|
-
"text": "mustMatch:
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
"kind": "Content",
|
|
1013
|
-
"text": "string"
|
|
1009
|
+
"text": "mustMatch: "
|
|
1014
1010
|
},
|
|
1015
1011
|
{
|
|
1016
1012
|
"kind": "Content",
|
|
1017
|
-
"text": ") => "
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"kind": "Content",
|
|
1021
|
-
"text": "(data: any, path: any, label: any) => {\n instancePath: string;\n message: string;\n schemaPath: string;\n keyword: string;\n params: {};\n}[]"
|
|
1013
|
+
"text": "(target: string) => (data: any, path: any, label: any) => {\n instancePath: string;\n message: string;\n schemaPath: string;\n keyword: string;\n params: {};\n}[]"
|
|
1022
1014
|
}
|
|
1023
1015
|
],
|
|
1024
1016
|
"fileUrlPath": "src/utils/validation.ts",
|
|
1025
|
-
"
|
|
1026
|
-
"startIndex": 3,
|
|
1027
|
-
"endIndex": 4
|
|
1028
|
-
},
|
|
1017
|
+
"isReadonly": true,
|
|
1029
1018
|
"releaseTag": "Public",
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
"startIndex": 1,
|
|
1036
|
-
"endIndex": 2
|
|
1037
|
-
},
|
|
1038
|
-
"isOptional": false
|
|
1039
|
-
}
|
|
1040
|
-
],
|
|
1041
|
-
"name": "mustMatch"
|
|
1019
|
+
"name": "mustMatch",
|
|
1020
|
+
"variableTypeTokenRange": {
|
|
1021
|
+
"startIndex": 1,
|
|
1022
|
+
"endIndex": 2
|
|
1023
|
+
}
|
|
1042
1024
|
},
|
|
1043
1025
|
{
|
|
1044
1026
|
"kind": "TypeAlias",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
1
|
import { Controller } from '@microsoft/fast-element';
|
|
4
2
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
5
3
|
import { DOMContainer } from '@genesislcap/foundation-utils';
|
|
@@ -467,15 +465,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
467
465
|
readonly offsetTop: number;
|
|
468
466
|
readonly offsetWidth: number;
|
|
469
467
|
outerText: string;
|
|
470
|
-
popover: string;
|
|
471
468
|
spellcheck: boolean;
|
|
472
469
|
title: string;
|
|
473
470
|
translate: boolean;
|
|
474
471
|
attachInternals(): ElementInternals;
|
|
475
472
|
click(): void;
|
|
476
|
-
hidePopover(): void;
|
|
477
|
-
showPopover(): void;
|
|
478
|
-
togglePopover(force?: boolean): boolean;
|
|
479
473
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
480
474
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
481
475
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -504,14 +498,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
504
498
|
slot: string;
|
|
505
499
|
readonly tagName: string;
|
|
506
500
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
507
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
508
501
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
509
502
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
510
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
|
511
503
|
closest<E extends Element = Element>(selectors: string): E;
|
|
512
|
-
computedStyleMap(): StylePropertyMapReadOnly; /**
|
|
513
|
-
* @internal
|
|
514
|
-
*/
|
|
515
504
|
getAttribute(qualifiedName: string): string;
|
|
516
505
|
getAttributeNS(namespace: string, localName: string): string;
|
|
517
506
|
getAttributeNames(): string[];
|
|
@@ -520,14 +509,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
520
509
|
getBoundingClientRect(): DOMRect;
|
|
521
510
|
getClientRects(): DOMRectList;
|
|
522
511
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
523
|
-
getElementsByTagName<
|
|
524
|
-
getElementsByTagName<
|
|
525
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
526
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
512
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
513
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
527
514
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
528
515
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
529
516
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
530
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
531
517
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
532
518
|
hasAttribute(qualifiedName: string): boolean;
|
|
533
519
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -584,24 +570,24 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
584
570
|
normalize(): void;
|
|
585
571
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
586
572
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
591
|
-
readonly
|
|
592
|
-
readonly
|
|
593
|
-
readonly
|
|
594
|
-
readonly
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
598
|
-
readonly
|
|
599
|
-
readonly
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
602
|
-
readonly
|
|
603
|
-
readonly
|
|
604
|
-
readonly
|
|
573
|
+
readonly ATTRIBUTE_NODE: number;
|
|
574
|
+
readonly CDATA_SECTION_NODE: number;
|
|
575
|
+
readonly COMMENT_NODE: number;
|
|
576
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
577
|
+
readonly DOCUMENT_NODE: number;
|
|
578
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
579
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
580
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
581
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
582
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
583
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
584
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
585
|
+
readonly ELEMENT_NODE: number;
|
|
586
|
+
readonly ENTITY_NODE: number;
|
|
587
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
588
|
+
readonly NOTATION_NODE: number;
|
|
589
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
590
|
+
readonly TEXT_NODE: number;
|
|
605
591
|
dispatchEvent(event: Event): boolean;
|
|
606
592
|
ariaAtomic: string;
|
|
607
593
|
ariaAutoComplete: string;
|
|
@@ -609,9 +595,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
609
595
|
ariaChecked: string;
|
|
610
596
|
ariaColCount: string;
|
|
611
597
|
ariaColIndex: string;
|
|
598
|
+
ariaColIndexText: string;
|
|
612
599
|
ariaColSpan: string;
|
|
613
600
|
ariaCurrent: string;
|
|
614
|
-
ariaDescription: string;
|
|
615
601
|
ariaDisabled: string;
|
|
616
602
|
ariaExpanded: string;
|
|
617
603
|
ariaHasPopup: string;
|
|
@@ -633,6 +619,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
633
619
|
ariaRoleDescription: string;
|
|
634
620
|
ariaRowCount: string;
|
|
635
621
|
ariaRowIndex: string;
|
|
622
|
+
ariaRowIndexText: string;
|
|
636
623
|
ariaRowSpan: string;
|
|
637
624
|
ariaSelected: string;
|
|
638
625
|
ariaSetSize: string;
|
|
@@ -657,19 +644,17 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
657
644
|
readonly lastElementChild: Element;
|
|
658
645
|
append(...nodes: (string | Node)[]): void;
|
|
659
646
|
prepend(...nodes: (string | Node)[]): void;
|
|
660
|
-
querySelector<
|
|
661
|
-
querySelector<
|
|
662
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
|
663
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
|
647
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
648
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
664
649
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
665
|
-
querySelectorAll<
|
|
666
|
-
querySelectorAll<
|
|
667
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
668
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
650
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
651
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
669
652
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
670
653
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
671
654
|
readonly assignedSlot: HTMLSlotElement;
|
|
672
|
-
|
|
655
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
656
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
657
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
673
658
|
readonly style: CSSStyleDeclaration;
|
|
674
659
|
contentEditable: string;
|
|
675
660
|
enterKeyHint: string;
|
|
@@ -682,7 +667,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
682
667
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
683
668
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
684
669
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
685
|
-
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
686
670
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
687
671
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
688
672
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -691,9 +675,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
691
675
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
692
676
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
693
677
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
694
|
-
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
695
678
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
696
|
-
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
697
679
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
698
680
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
699
681
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -726,7 +708,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
726
708
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
727
709
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
728
710
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
729
|
-
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
730
711
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
731
712
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
732
713
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -743,7 +724,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
743
724
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
744
725
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
745
726
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
746
|
-
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
747
727
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
748
728
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
749
729
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -11,17 +11,12 @@
|
|
|
11
11
|
| [Filters](./foundation-forms.filters.md) | Foundation filters component for automatically generated filters based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable filters elements using UI schema and set of custom renderers |
|
|
12
12
|
| [Form](./foundation-forms.form.md) | Foundation form component for automatically generated forms based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable form elements using UI schema and set of custom renderers |
|
|
13
13
|
|
|
14
|
-
## Functions
|
|
15
|
-
|
|
16
|
-
| Function | Description |
|
|
17
|
-
| --- | --- |
|
|
18
|
-
| [mustMatch(target)](./foundation-forms.mustmatch.md) | Ensures the value of the current field (the one the validator is on) matches the one of the target field. |
|
|
19
|
-
|
|
20
14
|
## Variables
|
|
21
15
|
|
|
22
16
|
| Variable | Description |
|
|
23
17
|
| --- | --- |
|
|
24
18
|
| [filtersRenderers](./foundation-forms.filtersrenderers.md) | Set of default renderers used by the foundation-filters. |
|
|
19
|
+
| [mustMatch](./foundation-forms.mustmatch.md) | Ensures the value of the current field (the one the validator is on) matches the one of the target field. |
|
|
25
20
|
| [renderers](./foundation-forms.renderers.md) | Set of default renderers used by the foundation-forms. |
|
|
26
21
|
|
|
27
22
|
## Type Aliases
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [mustMatch](./foundation-forms.mustmatch.md)
|
|
4
4
|
|
|
5
|
-
## mustMatch
|
|
5
|
+
## mustMatch variable
|
|
6
6
|
|
|
7
7
|
Ensures the value of the current field (the one the validator is on) matches the one of the target field.
|
|
8
8
|
|
|
@@ -17,16 +17,3 @@ mustMatch: (target: string) => (data: any, path: any, label: any) => {
|
|
|
17
17
|
params: {};
|
|
18
18
|
}[]
|
|
19
19
|
```
|
|
20
|
-
|
|
21
|
-
## Parameters
|
|
22
|
-
|
|
23
|
-
| Parameter | Type | Description |
|
|
24
|
-
| --- | --- | --- |
|
|
25
|
-
| target | string | any other field |
|
|
26
|
-
|
|
27
|
-
**Returns:**
|
|
28
|
-
|
|
29
|
-
(data: any, path: any, label: any) => { instancePath: string; message: string; schemaPath: string; keyword: string; params: {}; }\[\]
|
|
30
|
-
|
|
31
|
-
a validator function that will be run by the smart form during the client-side validation stage
|
|
32
|
-
|
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.226.
|
|
4
|
+
"version": "14.226.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -48,22 +48,22 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@genesislcap/foundation-testing": "14.226.
|
|
52
|
-
"@genesislcap/genx": "14.226.
|
|
53
|
-
"@genesislcap/rollup-builder": "14.226.
|
|
54
|
-
"@genesislcap/ts-builder": "14.226.
|
|
55
|
-
"@genesislcap/uvu-playwright-builder": "14.226.
|
|
56
|
-
"@genesislcap/vite-builder": "14.226.
|
|
57
|
-
"@genesislcap/webpack-builder": "14.226.
|
|
51
|
+
"@genesislcap/foundation-testing": "14.226.1",
|
|
52
|
+
"@genesislcap/genx": "14.226.1",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.226.1",
|
|
54
|
+
"@genesislcap/ts-builder": "14.226.1",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.226.1",
|
|
56
|
+
"@genesislcap/vite-builder": "14.226.1",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.226.1",
|
|
58
58
|
"@types/json-schema": "^7.0.11",
|
|
59
59
|
"rimraf": "^5.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@genesislcap/foundation-comms": "14.226.
|
|
63
|
-
"@genesislcap/foundation-criteria": "14.226.
|
|
64
|
-
"@genesislcap/foundation-logger": "14.226.
|
|
65
|
-
"@genesislcap/foundation-ui": "14.226.
|
|
66
|
-
"@genesislcap/foundation-utils": "14.226.
|
|
62
|
+
"@genesislcap/foundation-comms": "14.226.1",
|
|
63
|
+
"@genesislcap/foundation-criteria": "14.226.1",
|
|
64
|
+
"@genesislcap/foundation-logger": "14.226.1",
|
|
65
|
+
"@genesislcap/foundation-ui": "14.226.1",
|
|
66
|
+
"@genesislcap/foundation-utils": "14.226.1",
|
|
67
67
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
68
68
|
"@jsonforms/core": "^3.2.1",
|
|
69
69
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"change-case": "^4.1.2",
|
|
75
75
|
"json-schema": "^0.4.0",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
|
-
"tslib": "2.
|
|
77
|
+
"tslib": "^2.3.1"
|
|
78
78
|
},
|
|
79
79
|
"repository": {
|
|
80
80
|
"type": "git",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
87
|
"customElements": "dist/custom-elements.json",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "e691c1741d135edca5271f338f62df8154efb99c"
|
|
89
89
|
}
|