@genesislcap/foundation-forms 14.237.2-alpha-78ebbc0.0 → 14.238.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';
|
|
@@ -472,15 +470,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
472
470
|
readonly offsetTop: number;
|
|
473
471
|
readonly offsetWidth: number;
|
|
474
472
|
outerText: string;
|
|
475
|
-
popover: string;
|
|
476
473
|
spellcheck: boolean;
|
|
477
474
|
title: string;
|
|
478
475
|
translate: boolean;
|
|
479
476
|
attachInternals(): ElementInternals;
|
|
480
477
|
click(): void;
|
|
481
|
-
hidePopover(): void;
|
|
482
|
-
showPopover(): void;
|
|
483
|
-
togglePopover(force?: boolean): boolean;
|
|
484
478
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
485
479
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
486
480
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -509,14 +503,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
509
503
|
slot: string;
|
|
510
504
|
readonly tagName: string;
|
|
511
505
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
512
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
513
506
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
514
507
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
515
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
|
516
508
|
closest<E extends Element = Element>(selectors: string): E;
|
|
517
|
-
computedStyleMap(): StylePropertyMapReadOnly; /**
|
|
518
|
-
* @internal
|
|
519
|
-
*/
|
|
520
509
|
getAttribute(qualifiedName: string): string;
|
|
521
510
|
getAttributeNS(namespace: string, localName: string): string;
|
|
522
511
|
getAttributeNames(): string[];
|
|
@@ -525,14 +514,11 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
525
514
|
getBoundingClientRect(): DOMRect;
|
|
526
515
|
getClientRects(): DOMRectList;
|
|
527
516
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
528
|
-
getElementsByTagName<
|
|
529
|
-
getElementsByTagName<
|
|
530
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
531
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
517
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
518
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
532
519
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
533
520
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
534
521
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
535
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
536
522
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
537
523
|
hasAttribute(qualifiedName: string): boolean;
|
|
538
524
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -589,24 +575,24 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
589
575
|
normalize(): void;
|
|
590
576
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
591
577
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
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
|
|
605
|
-
readonly
|
|
606
|
-
readonly
|
|
607
|
-
readonly
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
578
|
+
readonly ATTRIBUTE_NODE: number;
|
|
579
|
+
readonly CDATA_SECTION_NODE: number;
|
|
580
|
+
readonly COMMENT_NODE: number;
|
|
581
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
582
|
+
readonly DOCUMENT_NODE: number;
|
|
583
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
584
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
585
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
586
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
587
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
588
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
589
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
|
590
|
+
readonly ELEMENT_NODE: number;
|
|
591
|
+
readonly ENTITY_NODE: number;
|
|
592
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
593
|
+
readonly NOTATION_NODE: number;
|
|
594
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
595
|
+
readonly TEXT_NODE: number;
|
|
610
596
|
dispatchEvent(event: Event): boolean;
|
|
611
597
|
ariaAtomic: string;
|
|
612
598
|
ariaAutoComplete: string;
|
|
@@ -614,9 +600,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
614
600
|
ariaChecked: string;
|
|
615
601
|
ariaColCount: string;
|
|
616
602
|
ariaColIndex: string;
|
|
603
|
+
ariaColIndexText: string;
|
|
617
604
|
ariaColSpan: string;
|
|
618
605
|
ariaCurrent: string;
|
|
619
|
-
ariaDescription: string;
|
|
620
606
|
ariaDisabled: string;
|
|
621
607
|
ariaExpanded: string;
|
|
622
608
|
ariaHasPopup: string;
|
|
@@ -638,6 +624,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
638
624
|
ariaRoleDescription: string;
|
|
639
625
|
ariaRowCount: string;
|
|
640
626
|
ariaRowIndex: string;
|
|
627
|
+
ariaRowIndexText: string;
|
|
641
628
|
ariaRowSpan: string;
|
|
642
629
|
ariaSelected: string;
|
|
643
630
|
ariaSetSize: string;
|
|
@@ -662,19 +649,17 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
662
649
|
readonly lastElementChild: Element;
|
|
663
650
|
append(...nodes: (string | Node)[]): void;
|
|
664
651
|
prepend(...nodes: (string | Node)[]): void;
|
|
665
|
-
querySelector<
|
|
666
|
-
querySelector<
|
|
667
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
|
668
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
|
652
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
653
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
|
669
654
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
670
|
-
querySelectorAll<
|
|
671
|
-
querySelectorAll<
|
|
672
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
673
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
655
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
656
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
674
657
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
675
658
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
676
659
|
readonly assignedSlot: HTMLSlotElement;
|
|
677
|
-
|
|
660
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
661
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
662
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
678
663
|
readonly style: CSSStyleDeclaration;
|
|
679
664
|
contentEditable: string;
|
|
680
665
|
enterKeyHint: string;
|
|
@@ -687,7 +672,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
687
672
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
688
673
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
689
674
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
690
|
-
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
691
675
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
692
676
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
693
677
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -696,9 +680,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
696
680
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
697
681
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
698
682
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
699
|
-
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
700
683
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
701
|
-
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
702
684
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
703
685
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
704
686
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -731,7 +713,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
731
713
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
732
714
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
733
715
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
734
|
-
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
735
716
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
736
717
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
737
718
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -748,7 +729,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
748
729
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
749
730
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
750
731
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
751
|
-
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
752
732
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
753
733
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
754
734
|
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.
|
|
4
|
+
"version": "14.238.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.
|
|
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.238.1",
|
|
52
|
+
"@genesislcap/genx": "14.238.1",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.238.1",
|
|
54
|
+
"@genesislcap/ts-builder": "14.238.1",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.238.1",
|
|
56
|
+
"@genesislcap/vite-builder": "14.238.1",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.238.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.
|
|
63
|
-
"@genesislcap/foundation-criteria": "14.
|
|
64
|
-
"@genesislcap/foundation-logger": "14.
|
|
65
|
-
"@genesislcap/foundation-ui": "14.
|
|
66
|
-
"@genesislcap/foundation-utils": "14.
|
|
62
|
+
"@genesislcap/foundation-comms": "14.238.1",
|
|
63
|
+
"@genesislcap/foundation-criteria": "14.238.1",
|
|
64
|
+
"@genesislcap/foundation-logger": "14.238.1",
|
|
65
|
+
"@genesislcap/foundation-ui": "14.238.1",
|
|
66
|
+
"@genesislcap/foundation-utils": "14.238.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": "c0de8cfef19e4e0e11ea5799cb7d43d7bea6ff49"
|
|
89
89
|
}
|