@genesislcap/foundation-forms 14.225.3 → 14.225.4-alpha-5f6eefd.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/form.d.ts +48 -29
- 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 +29 -11
- package/dist/foundation-forms.d.ts +49 -29
- package/docs/api/foundation-forms.md +6 -1
- package/docs/api/foundation-forms.mustmatch.md +14 -1
- package/docs/{api-report.md → api-report.md.api.md} +2 -0
- package/package.json +15 -15
package/dist/dts/form.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
3
|
import { JSONSchema7 } from 'json-schema';
|
|
3
4
|
import { RendererEntry, UiSchema } from './types';
|
|
@@ -38,11 +39,15 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
38
39
|
readonly offsetTop: number;
|
|
39
40
|
readonly offsetWidth: number;
|
|
40
41
|
outerText: string;
|
|
42
|
+
popover: string;
|
|
41
43
|
spellcheck: boolean;
|
|
42
44
|
title: string;
|
|
43
45
|
translate: boolean;
|
|
44
46
|
attachInternals(): ElementInternals;
|
|
45
47
|
click(): void;
|
|
48
|
+
hidePopover(): void;
|
|
49
|
+
showPopover(): void;
|
|
50
|
+
togglePopover(force?: boolean): boolean;
|
|
46
51
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
52
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
48
53
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -71,9 +76,14 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
71
76
|
slot: string;
|
|
72
77
|
readonly tagName: string;
|
|
73
78
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
79
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
74
80
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
75
81
|
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];
|
|
76
83
|
closest<E extends Element = Element>(selectors: string): E;
|
|
84
|
+
computedStyleMap(): StylePropertyMapReadOnly; /**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
77
87
|
getAttribute(qualifiedName: string): string;
|
|
78
88
|
getAttributeNS(namespace: string, localName: string): string;
|
|
79
89
|
getAttributeNames(): string[];
|
|
@@ -82,11 +92,14 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
82
92
|
getBoundingClientRect(): DOMRect;
|
|
83
93
|
getClientRects(): DOMRectList;
|
|
84
94
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
85
|
-
getElementsByTagName<
|
|
86
|
-
getElementsByTagName<
|
|
95
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
96
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
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]>;
|
|
87
99
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
88
100
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
89
101
|
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>;
|
|
90
103
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
91
104
|
hasAttribute(qualifiedName: string): boolean;
|
|
92
105
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -143,24 +156,24 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
143
156
|
normalize(): void;
|
|
144
157
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
145
158
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
159
|
+
readonly ELEMENT_NODE: 1;
|
|
160
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
161
|
+
readonly TEXT_NODE: 3;
|
|
162
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
163
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
164
|
+
readonly ENTITY_NODE: 6;
|
|
165
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
166
|
+
readonly COMMENT_NODE: 8;
|
|
167
|
+
readonly DOCUMENT_NODE: 9;
|
|
168
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
169
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
170
|
+
readonly NOTATION_NODE: 12;
|
|
171
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
172
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
173
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
174
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
175
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
176
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
164
177
|
dispatchEvent(event: Event): boolean;
|
|
165
178
|
ariaAtomic: string;
|
|
166
179
|
ariaAutoComplete: string;
|
|
@@ -168,9 +181,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
168
181
|
ariaChecked: string;
|
|
169
182
|
ariaColCount: string;
|
|
170
183
|
ariaColIndex: string;
|
|
171
|
-
ariaColIndexText: string;
|
|
172
184
|
ariaColSpan: string;
|
|
173
185
|
ariaCurrent: string;
|
|
186
|
+
ariaDescription: string;
|
|
174
187
|
ariaDisabled: string;
|
|
175
188
|
ariaExpanded: string;
|
|
176
189
|
ariaHasPopup: string;
|
|
@@ -192,7 +205,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
192
205
|
ariaRoleDescription: string;
|
|
193
206
|
ariaRowCount: string;
|
|
194
207
|
ariaRowIndex: string;
|
|
195
|
-
ariaRowIndexText: string;
|
|
196
208
|
ariaRowSpan: string;
|
|
197
209
|
ariaSelected: string;
|
|
198
210
|
ariaSetSize: string;
|
|
@@ -217,17 +229,19 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
217
229
|
readonly lastElementChild: Element;
|
|
218
230
|
append(...nodes: (string | Node)[]): void;
|
|
219
231
|
prepend(...nodes: (string | Node)[]): void;
|
|
220
|
-
querySelector<
|
|
221
|
-
querySelector<
|
|
232
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
|
|
233
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
|
|
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];
|
|
222
236
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
223
|
-
querySelectorAll<
|
|
224
|
-
querySelectorAll<
|
|
237
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
238
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
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]>;
|
|
225
241
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
226
242
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
227
243
|
readonly assignedSlot: HTMLSlotElement;
|
|
228
|
-
|
|
229
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
230
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
244
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
231
245
|
readonly style: CSSStyleDeclaration;
|
|
232
246
|
contentEditable: string;
|
|
233
247
|
enterKeyHint: string;
|
|
@@ -240,6 +254,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
240
254
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
241
255
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
242
256
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
257
|
+
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
243
258
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
244
259
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
245
260
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -248,7 +263,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
248
263
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
249
264
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
250
265
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
266
|
+
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
251
267
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
268
|
+
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
252
269
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
253
270
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
254
271
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -281,6 +298,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
281
298
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
282
299
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
283
300
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
301
|
+
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
284
302
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
285
303
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
286
304
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -297,6 +315,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
297
315
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
298
316
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
299
317
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
318
|
+
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
300
319
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
301
320
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
302
321
|
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":"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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDA6JA;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9JL;;;;;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;
|
|
77
76
|
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;
|
|
100
99
|
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.48.0",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -1000,27 +1000,45 @@
|
|
|
1000
1000
|
}
|
|
1001
1001
|
},
|
|
1002
1002
|
{
|
|
1003
|
-
"kind": "
|
|
1004
|
-
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:
|
|
1003
|
+
"kind": "Function",
|
|
1004
|
+
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:function(1)",
|
|
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: "
|
|
1009
|
+
"text": "mustMatch: (target: "
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"kind": "Content",
|
|
1013
|
+
"text": "string"
|
|
1010
1014
|
},
|
|
1011
1015
|
{
|
|
1012
1016
|
"kind": "Content",
|
|
1013
|
-
"text": "
|
|
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}[]"
|
|
1014
1022
|
}
|
|
1015
1023
|
],
|
|
1016
1024
|
"fileUrlPath": "src/utils/validation.ts",
|
|
1017
|
-
"
|
|
1025
|
+
"returnTypeTokenRange": {
|
|
1026
|
+
"startIndex": 3,
|
|
1027
|
+
"endIndex": 4
|
|
1028
|
+
},
|
|
1018
1029
|
"releaseTag": "Public",
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1030
|
+
"overloadIndex": 1,
|
|
1031
|
+
"parameters": [
|
|
1032
|
+
{
|
|
1033
|
+
"parameterName": "target",
|
|
1034
|
+
"parameterTypeTokenRange": {
|
|
1035
|
+
"startIndex": 1,
|
|
1036
|
+
"endIndex": 2
|
|
1037
|
+
},
|
|
1038
|
+
"isOptional": false
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"name": "mustMatch"
|
|
1024
1042
|
},
|
|
1025
1043
|
{
|
|
1026
1044
|
"kind": "TypeAlias",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
1
3
|
import { Controller } from '@microsoft/fast-element';
|
|
2
4
|
import { DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
5
|
import { DOMContainer } from '@genesislcap/foundation-utils';
|
|
@@ -465,11 +467,15 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
465
467
|
readonly offsetTop: number;
|
|
466
468
|
readonly offsetWidth: number;
|
|
467
469
|
outerText: string;
|
|
470
|
+
popover: string;
|
|
468
471
|
spellcheck: boolean;
|
|
469
472
|
title: string;
|
|
470
473
|
translate: boolean;
|
|
471
474
|
attachInternals(): ElementInternals;
|
|
472
475
|
click(): void;
|
|
476
|
+
hidePopover(): void;
|
|
477
|
+
showPopover(): void;
|
|
478
|
+
togglePopover(force?: boolean): boolean;
|
|
473
479
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
474
480
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
475
481
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -498,9 +504,14 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
498
504
|
slot: string;
|
|
499
505
|
readonly tagName: string;
|
|
500
506
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
507
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
501
508
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
502
509
|
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];
|
|
503
511
|
closest<E extends Element = Element>(selectors: string): E;
|
|
512
|
+
computedStyleMap(): StylePropertyMapReadOnly; /**
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
504
515
|
getAttribute(qualifiedName: string): string;
|
|
505
516
|
getAttributeNS(namespace: string, localName: string): string;
|
|
506
517
|
getAttributeNames(): string[];
|
|
@@ -509,11 +520,14 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
509
520
|
getBoundingClientRect(): DOMRect;
|
|
510
521
|
getClientRects(): DOMRectList;
|
|
511
522
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
512
|
-
getElementsByTagName<
|
|
513
|
-
getElementsByTagName<
|
|
523
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
524
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
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]>;
|
|
514
527
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
515
528
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
516
529
|
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>;
|
|
517
531
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
518
532
|
hasAttribute(qualifiedName: string): boolean;
|
|
519
533
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -570,24 +584,24 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
570
584
|
normalize(): void;
|
|
571
585
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
572
586
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
573
|
-
readonly
|
|
574
|
-
readonly
|
|
575
|
-
readonly
|
|
576
|
-
readonly
|
|
577
|
-
readonly
|
|
578
|
-
readonly
|
|
579
|
-
readonly
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
582
|
-
readonly
|
|
583
|
-
readonly
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
587
|
+
readonly ELEMENT_NODE: 1;
|
|
588
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
589
|
+
readonly TEXT_NODE: 3;
|
|
590
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
591
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
592
|
+
readonly ENTITY_NODE: 6;
|
|
593
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
594
|
+
readonly COMMENT_NODE: 8;
|
|
595
|
+
readonly DOCUMENT_NODE: 9;
|
|
596
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
597
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
598
|
+
readonly NOTATION_NODE: 12;
|
|
599
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
600
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
601
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
602
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
603
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
604
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
591
605
|
dispatchEvent(event: Event): boolean;
|
|
592
606
|
ariaAtomic: string;
|
|
593
607
|
ariaAutoComplete: string;
|
|
@@ -595,9 +609,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
595
609
|
ariaChecked: string;
|
|
596
610
|
ariaColCount: string;
|
|
597
611
|
ariaColIndex: string;
|
|
598
|
-
ariaColIndexText: string;
|
|
599
612
|
ariaColSpan: string;
|
|
600
613
|
ariaCurrent: string;
|
|
614
|
+
ariaDescription: string;
|
|
601
615
|
ariaDisabled: string;
|
|
602
616
|
ariaExpanded: string;
|
|
603
617
|
ariaHasPopup: string;
|
|
@@ -619,7 +633,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
619
633
|
ariaRoleDescription: string;
|
|
620
634
|
ariaRowCount: string;
|
|
621
635
|
ariaRowIndex: string;
|
|
622
|
-
ariaRowIndexText: string;
|
|
623
636
|
ariaRowSpan: string;
|
|
624
637
|
ariaSelected: string;
|
|
625
638
|
ariaSetSize: string;
|
|
@@ -644,17 +657,19 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
644
657
|
readonly lastElementChild: Element;
|
|
645
658
|
append(...nodes: (string | Node)[]): void;
|
|
646
659
|
prepend(...nodes: (string | Node)[]): void;
|
|
647
|
-
querySelector<
|
|
648
|
-
querySelector<
|
|
660
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
|
|
661
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
|
|
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];
|
|
649
664
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
650
|
-
querySelectorAll<
|
|
651
|
-
querySelectorAll<
|
|
665
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
666
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
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]>;
|
|
652
669
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
653
670
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
654
671
|
readonly assignedSlot: HTMLSlotElement;
|
|
655
|
-
|
|
656
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
657
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
672
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
658
673
|
readonly style: CSSStyleDeclaration;
|
|
659
674
|
contentEditable: string;
|
|
660
675
|
enterKeyHint: string;
|
|
@@ -667,6 +682,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
667
682
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
668
683
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
669
684
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
685
|
+
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
670
686
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
671
687
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
672
688
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -675,7 +691,9 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
675
691
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
676
692
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
677
693
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
694
|
+
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
678
695
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
696
|
+
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
679
697
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
680
698
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
681
699
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -708,6 +726,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
708
726
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
709
727
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
710
728
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
729
|
+
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
|
711
730
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
712
731
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
713
732
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -724,6 +743,7 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
724
743
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
725
744
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
726
745
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
746
|
+
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
727
747
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
728
748
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
729
749
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -11,12 +11,17 @@
|
|
|
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
|
+
|
|
14
20
|
## Variables
|
|
15
21
|
|
|
16
22
|
| Variable | Description |
|
|
17
23
|
| --- | --- |
|
|
18
24
|
| [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. |
|
|
20
25
|
| [renderers](./foundation-forms.renderers.md) | Set of default renderers used by the foundation-forms. |
|
|
21
26
|
|
|
22
27
|
## 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() function
|
|
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,3 +17,16 @@ 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.225.
|
|
4
|
+
"version": "14.225.4-alpha-5f6eefd.0",
|
|
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.225.
|
|
52
|
-
"@genesislcap/genx": "14.225.
|
|
53
|
-
"@genesislcap/rollup-builder": "14.225.
|
|
54
|
-
"@genesislcap/ts-builder": "14.225.
|
|
55
|
-
"@genesislcap/uvu-playwright-builder": "14.225.
|
|
56
|
-
"@genesislcap/vite-builder": "14.225.
|
|
57
|
-
"@genesislcap/webpack-builder": "14.225.
|
|
51
|
+
"@genesislcap/foundation-testing": "14.225.4-alpha-5f6eefd.0",
|
|
52
|
+
"@genesislcap/genx": "14.225.4-alpha-5f6eefd.0",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.225.4-alpha-5f6eefd.0",
|
|
54
|
+
"@genesislcap/ts-builder": "14.225.4-alpha-5f6eefd.0",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.225.4-alpha-5f6eefd.0",
|
|
56
|
+
"@genesislcap/vite-builder": "14.225.4-alpha-5f6eefd.0",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.225.4-alpha-5f6eefd.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.225.
|
|
63
|
-
"@genesislcap/foundation-criteria": "14.225.
|
|
64
|
-
"@genesislcap/foundation-logger": "14.225.
|
|
65
|
-
"@genesislcap/foundation-ui": "14.225.
|
|
66
|
-
"@genesislcap/foundation-utils": "14.225.
|
|
62
|
+
"@genesislcap/foundation-comms": "14.225.4-alpha-5f6eefd.0",
|
|
63
|
+
"@genesislcap/foundation-criteria": "14.225.4-alpha-5f6eefd.0",
|
|
64
|
+
"@genesislcap/foundation-logger": "14.225.4-alpha-5f6eefd.0",
|
|
65
|
+
"@genesislcap/foundation-ui": "14.225.4-alpha-5f6eefd.0",
|
|
66
|
+
"@genesislcap/foundation-utils": "14.225.4-alpha-5f6eefd.0",
|
|
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": "
|
|
77
|
+
"tslib": "2.8.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": "232162ffe08f1239c9af3c85819c422c4a68db00"
|
|
89
89
|
}
|