powerpagestoolkit 2.7.135 → 2.7.211
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/import_map.json +6 -0
- package/dist/src/constants/eventMapping.d.ts +7 -0
- package/dist/{types → src}/constants/symbols.d.ts +1 -0
- package/dist/{types → src}/core/API.d.ts +14 -6
- package/dist/{types → src}/core/DOMNodeReference.d.ts +3 -60
- package/dist/{types → src}/core/DOMNodeReferenceArray.d.ts +2 -1
- package/dist/src/core/List.d.ts +13 -0
- package/dist/src/core/bindForm.d.ts +28 -0
- package/dist/{types → src}/core/createDOMNodeReferences.d.ts +12 -7
- package/dist/src/core/waitFor.d.ts +9 -0
- package/dist/{types → src}/errors/errors.d.ts +2 -1
- package/dist/src/globals.d.ts +152 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/{bundle.js → src/index.js} +89 -195
- package/dist/src/index.js.LEGAL.txt +0 -0
- package/dist/src/index.js.map +7 -0
- package/dist/{types → src}/managers/ReferenceManager.d.ts +2 -1
- package/dist/{types → src}/utils/createInfoElement.d.ts +1 -0
- package/dist/src/utils/enhanceArray.d.ts +13 -0
- package/dist/src/utils/safeAjax.d.ts +5 -0
- package/package.json +16 -26
- package/assets/infoIconExample.gif +0 -0
- package/dist/bundle.css +0 -36
- package/dist/index.global.js +0 -1373
- package/dist/types/constants/eventMapping.d.ts +0 -2
- package/dist/types/core/bindForm.d.ts +0 -13
- package/dist/types/core/waitFor.d.ts +0 -2
- package/dist/types/index.d.ts +0 -18
- package/dist/types/utils/enhanceArray.d.ts +0 -3
- package/dist/types/utils/safeAjax.d.ts +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import DOMNodeReference from "./DOMNodeReference.js";
|
|
2
|
-
import DOMNodeReferenceArray from "./DOMNodeReferenceArray.js";
|
|
3
|
-
declare type BoundForm = DOMNodeReferenceArray & Record<string, DOMNodeReference>;
|
|
4
|
-
/**
|
|
5
|
-
* Get all controls related to the form for manipulating with the
|
|
6
|
-
* DOMNodeReference class. Rather than having to instantiate each fields that you need manually,
|
|
7
|
-
* you can call this method once with the form ID and gain access to all fields
|
|
8
|
-
* @param formId The string GUID of the form you want to bind to
|
|
9
|
-
* @returns An array of DOMNodeReferences, accessible as properties of a Record<string, DOMNodeReference> i.e. formProp = form["some_logicalName"]
|
|
10
|
-
* @see {@link BoundForm}
|
|
11
|
-
*/
|
|
12
|
-
export default function bindForm(formId: string): Promise<BoundForm>;
|
|
13
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export default function waitFor(target: Element | string, root: Element | Document, multiple: false, debounceTime: number): Promise<HTMLElement>;
|
|
2
|
-
export default function waitFor(target: Element | string, root: Element | Document, multiple: true, debounceTime: number): Promise<HTMLElement[]>;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import API from "./core/API.js";
|
|
3
|
-
import createRef from "./core/createDOMNodeReferences.js";
|
|
4
|
-
import waitFor from "./core/waitFor.js";
|
|
5
|
-
import bindForm from "./core/bindForm.js";
|
|
6
|
-
export { API, createRef, waitFor, bindForm };
|
|
7
|
-
declare const toolkit: {
|
|
8
|
-
API: {
|
|
9
|
-
createRecord(tableSetName: string, data: object): Promise<string>;
|
|
10
|
-
getRecord<T>(tableSetName: string, recordID: string, selectColumns?: string): Promise<T>;
|
|
11
|
-
getMultiple(tableSetName: string, queryParameters?: string): Promise<Array<object>>;
|
|
12
|
-
updateRecord(tableSetName: string, recordId: string, data: object): Promise<any>;
|
|
13
|
-
};
|
|
14
|
-
createRef: typeof createRef;
|
|
15
|
-
waitFor: typeof waitFor;
|
|
16
|
-
bindForm: typeof bindForm;
|
|
17
|
-
};
|
|
18
|
-
export default toolkit;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function safeAjax(ajaxOptions: any): any;
|