@ui5/webcomponents-base 2.5.0 → 2.6.0-rc.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/CHANGELOG.md +12 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/UI5Element.d.ts +27 -13
- package/dist/UI5Element.js +16 -2
- package/dist/UI5Element.js.map +1 -1
- package/dist/custom-elements-internal.json +69 -165
- package/dist/custom-elements.json +69 -66
- package/dist/decorators/bound.d.ts +1 -0
- package/dist/decorators/bound.js +34 -0
- package/dist/decorators/bound.js.map +1 -0
- package/dist/decorators.d.ts +3 -1
- package/dist/decorators.js +3 -1
- package/dist/decorators.js.map +1 -1
- package/dist/generated/VersionInfo.js +4 -4
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/jsx-dev-runtime.d.ts +4 -0
- package/dist/jsx-dev-runtime.js +43 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.d.ts +50 -0
- package/dist/jsx-runtime.js +27 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/jsx-utils.d.ts +3 -0
- package/dist/jsx-utils.js +40 -0
- package/dist/jsx-utils.js.map +1 -0
- package/dist/prod/UI5Element.js +1 -1
- package/dist/prod/UI5Element.js.map +3 -3
- package/dist/prod/decorators/bound.js +2 -0
- package/dist/prod/decorators/bound.js.map +7 -0
- package/dist/prod/decorators.js +1 -1
- package/dist/prod/decorators.js.map +3 -3
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +2 -2
- package/dist/prod/index.d.js +2 -0
- package/dist/prod/index.d.js.map +7 -0
- package/dist/prod/jsx-dev-runtime.js +2 -0
- package/dist/prod/jsx-dev-runtime.js.map +7 -0
- package/dist/prod/jsx-runtime.js +2 -0
- package/dist/prod/jsx-runtime.js.map +7 -0
- package/dist/prod/jsx-utils.js +2 -0
- package/dist/prod/jsx-utils.js.map +7 -0
- package/dist/prod/renderer/JsxRenderer.js +2 -0
- package/dist/prod/renderer/JsxRenderer.js.map +7 -0
- package/dist/prod/renderer/LitRenderer.js +1 -1
- package/dist/prod/renderer/LitRenderer.js.map +3 -3
- package/dist/prod/renderer/executeTemplate.js +1 -1
- package/dist/prod/renderer/executeTemplate.js.map +3 -3
- package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
- package/dist/prod/updateShadowRoot.js +1 -1
- package/dist/prod/updateShadowRoot.js.map +3 -3
- package/dist/prod/util/StringHelper.js +1 -1
- package/dist/prod/util/StringHelper.js.map +3 -3
- package/dist/prod/util/dragAndDrop/DragRegistry.js +1 -1
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +2 -2
- package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
- package/dist/prod/util/hash2str.js +2 -0
- package/dist/prod/util/hash2str.js.map +7 -0
- package/dist/prod/util/toLowercaseEnumValue.js +2 -0
- package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
- package/dist/renderer/JsxRenderer.d.ts +3 -0
- package/dist/renderer/JsxRenderer.js +16 -0
- package/dist/renderer/JsxRenderer.js.map +1 -0
- package/dist/renderer/LitRenderer.js +4 -3
- package/dist/renderer/LitRenderer.js.map +1 -1
- package/dist/renderer/executeTemplate.d.ts +3 -12
- package/dist/renderer/executeTemplate.js +1 -20
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +2616 -0
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
- package/dist/thirdparty/preact/jsxRuntime.module.js +2 -0
- package/dist/thirdparty/preact/preact.module.d.ts +398 -0
- package/dist/thirdparty/preact/preact.module.js +2 -0
- package/dist/types.d.ts +24 -21
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.js +1 -2
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/StringHelper.d.ts +2 -1
- package/dist/util/StringHelper.js +4 -1
- package/dist/util/StringHelper.js.map +1 -1
- package/dist/util/dragAndDrop/DragRegistry.d.ts +22 -1
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
- package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
- package/dist/util/dragAndDrop/handleDragOver.js +42 -0
- package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
- package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
- package/dist/util/dragAndDrop/handleDrop.js +22 -0
- package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
- package/dist/util/getClassCopy.d.ts +6 -0
- package/dist/util/hash2str.d.ts +1 -0
- package/dist/util/hash2str.js +14 -0
- package/dist/util/hash2str.js.map +1 -0
- package/dist/util/toLowercaseEnumValue.d.ts +3 -0
- package/dist/util/toLowercaseEnumValue.js +4 -0
- package/dist/util/toLowercaseEnumValue.js.map +1 -0
- package/index.js +0 -6
- package/package.json +10 -5
- package/src/thirdparty/preact/jsxRuntime.module.js +2 -0
- package/src/thirdparty/preact/preact.module.js +2 -0
- package/src/thirdparty/preact/version.txt +1 -0
- package/dist/prod/types/AriaHasPopup.js +0 -2
- package/dist/prod/types/AriaHasPopup.js.map +0 -7
- package/dist/prod/types/AriaLandmarkRole.js +0 -2
- package/dist/prod/types/AriaLandmarkRole.js.map +0 -7
- package/dist/prod/types/AriaRole.js +0 -2
- package/dist/prod/types/AriaRole.js.map +0 -7
- package/dist/prod/util/getParentElement.js +0 -2
- package/dist/prod/util/getParentElement.js.map +0 -7
- package/dist/prod/util/isElementContainingBlock.js +0 -2
- package/dist/prod/util/isElementContainingBlock.js.map +0 -7
- package/dist/types/AriaHasPopup.d.ts +0 -32
- package/dist/types/AriaHasPopup.js +0 -34
- package/dist/types/AriaHasPopup.js.map +0 -1
- package/dist/types/AriaLandmarkRole.d.ts +0 -79
- package/dist/types/AriaLandmarkRole.js +0 -81
- package/dist/types/AriaLandmarkRole.js.map +0 -1
- package/dist/types/AriaRole.d.ts +0 -27
- package/dist/types/AriaRole.js +0 -29
- package/dist/types/AriaRole.js.map +0 -1
- package/dist/util/getParentElement.d.ts +0 -2
- package/dist/util/getParentElement.js +0 -5
- package/dist/util/getParentElement.js.map +0 -1
- package/dist/util/isElementContainingBlock.d.ts +0 -2
- package/dist/util/isElementContainingBlock.js +0 -11
- package/dist/util/isElementContainingBlock.js.map +0 -1
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import type UI5Element from "../../UI5Element.js";
|
|
2
|
+
import type MovePlacement from "../../types/MovePlacement.js";
|
|
2
3
|
declare const setDraggedElement: (element: HTMLElement | null) => void;
|
|
3
4
|
type SetDraggedElementFunction = typeof setDraggedElement;
|
|
5
|
+
type DragAndDropSettings = {
|
|
6
|
+
/**
|
|
7
|
+
* Allow cross-browser and file drag and drop.
|
|
8
|
+
*/
|
|
9
|
+
crossDnD?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Pass the original event in the event parameters.
|
|
12
|
+
*/
|
|
13
|
+
originalEvent?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type MoveEventDetail = {
|
|
16
|
+
originalEvent: Event;
|
|
17
|
+
source: {
|
|
18
|
+
element: HTMLElement;
|
|
19
|
+
};
|
|
20
|
+
destination: {
|
|
21
|
+
element: HTMLElement;
|
|
22
|
+
placement: `${MovePlacement}`;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
4
25
|
declare const DragRegistry: {
|
|
5
26
|
subscribe: (subscriber: UI5Element) => void;
|
|
6
27
|
unsubscribe: (subscriber: UI5Element) => void;
|
|
@@ -9,4 +30,4 @@ declare const DragRegistry: {
|
|
|
9
30
|
getDraggedElement: () => HTMLElement | null;
|
|
10
31
|
};
|
|
11
32
|
export default DragRegistry;
|
|
12
|
-
export type { SetDraggedElementFunction, };
|
|
33
|
+
export type { SetDraggedElementFunction, DragAndDropSettings, MoveEventDetail, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragRegistry.js","sourceRoot":"","sources":["../../../src/util/dragAndDrop/DragRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DragRegistry.js","sourceRoot":"","sources":["../../../src/util/dragAndDrop/DragRegistry.ts"],"names":[],"mappings":"AAGA,IAAI,cAAc,GAAuB,IAAI,CAAC;AAC9C,IAAI,sBAAsB,GAAG,KAAK,CAAC;AACnC,MAAM,WAAW,GAAG,IAAI,GAAG,EAAc,CAAC;AAC1C,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAA4B,CAAC;AAEjE,MAAM,WAAW,GAAG,CAAC,CAAY,EAAE,EAAE;IACpC,IAAI,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,YAAY,WAAW,CAAC,EAAE,CAAC;QAC3D,OAAO;IACR,CAAC;IAED,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACzC,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACtB,cAAc,GAAG,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,EAAE;IACnB,cAAc,GAAG,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,OAA2B,EAAE,EAAE;IACzD,cAAc,GAAG,OAAO,CAAC;AAC1B,CAAC,CAAC;AAGF,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACjC,IAAI,sBAAsB,EAAE,CAAC;QAC5B,OAAO;IACR,CAAC;IAED,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACzD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACrD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACjC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC5D,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACxD,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,sBAAsB,GAAG,KAAK,CAAC;AAChC,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,UAAsB,EAAE,EAAE;IAC5C,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE5B,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC7B,oBAAoB,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,UAAsB,EAAE,EAAE;IAC9C,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAE/B,IAAI,WAAW,CAAC,IAAI,KAAK,CAAC,IAAI,sBAAsB,EAAE,CAAC;QACtD,oBAAoB,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,IAA8B,EAAE,EAAE;IAC7D,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,OAAO,iBAAiB,CAAC;AAC1B,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,IAA8B,EAAE,EAAE;IAChE,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC;AAwBF,MAAM,YAAY,GAAG;IACpB,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,qBAAqB;IACrB,iBAAiB;CACjB,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import type UI5Element from \"../../UI5Element.js\";\nimport type MovePlacement from \"../../types/MovePlacement.js\";\n\nlet draggedElement: HTMLElement | null = null;\nlet globalHandlersAttached = false;\nconst subscribers = new Set<UI5Element>();\nconst selfManagedDragAreas = new Set<HTMLElement | ShadowRoot>();\n\nconst ondragstart = (e: DragEvent) => {\n\tif (!e.dataTransfer || !(e.target instanceof HTMLElement)) {\n\t\treturn;\n\t}\n\n\tif (!selfManagedDragAreas.has(e.target)) {\n\t\tdraggedElement = e.target;\n\t}\n};\n\nconst ondragend = () => {\n\tdraggedElement = null;\n};\n\nconst ondrop = () => {\n\tdraggedElement = null;\n};\n\nconst setDraggedElement = (element: HTMLElement | null) => {\n\tdraggedElement = element;\n};\ntype SetDraggedElementFunction = typeof setDraggedElement;\n\nconst getDraggedElement = () => {\n\treturn draggedElement;\n};\n\nconst attachGlobalHandlers = () => {\n\tif (globalHandlersAttached) {\n\t\treturn;\n\t}\n\n\tdocument.body.addEventListener(\"dragstart\", ondragstart);\n\tdocument.body.addEventListener(\"dragend\", ondragend);\n\tdocument.body.addEventListener(\"drop\", ondrop);\n};\n\nconst detachGlobalHandlers = () => {\n\tdocument.body.removeEventListener(\"dragstart\", ondragstart);\n\tdocument.body.removeEventListener(\"dragend\", ondragend);\n\tdocument.body.removeEventListener(\"drop\", ondrop);\n\tglobalHandlersAttached = false;\n};\n\nconst subscribe = (subscriber: UI5Element) => {\n\tsubscribers.add(subscriber);\n\n\tif (!globalHandlersAttached) {\n\t\tattachGlobalHandlers();\n\t}\n};\n\nconst unsubscribe = (subscriber: UI5Element) => {\n\tsubscribers.delete(subscriber);\n\n\tif (subscribers.size === 0 && globalHandlersAttached) {\n\t\tdetachGlobalHandlers();\n\t}\n};\n\nconst addSelfManagedArea = (area: HTMLElement | ShadowRoot) => {\n\tselfManagedDragAreas.add(area);\n\n\treturn setDraggedElement;\n};\n\nconst removeSelfManagedArea = (area: HTMLElement | ShadowRoot) => {\n\tselfManagedDragAreas.delete(area);\n};\n\ntype DragAndDropSettings = {\n\t/**\n\t * Allow cross-browser and file drag and drop.\n\t */\n\tcrossDnD?: boolean;\n\t/**\n\t * Pass the original event in the event parameters.\n\t */\n\toriginalEvent?: boolean;\n};\n\ntype MoveEventDetail = {\n\toriginalEvent: Event,\n\tsource: {\n\t\telement: HTMLElement,\n\t},\n\tdestination: {\n\t\telement: HTMLElement,\n\t\tplacement: `${MovePlacement}`,\n\t}\n};\n\nconst DragRegistry = {\n\tsubscribe,\n\tunsubscribe,\n\taddSelfManagedArea,\n\tremoveSelfManagedArea,\n\tgetDraggedElement,\n};\n\nexport default DragRegistry;\nexport type {\n\tSetDraggedElementFunction,\n\tDragAndDropSettings,\n\tMoveEventDetail,\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type UI5Element from "../../UI5Element.js";
|
|
2
|
+
import type MovePlacement from "../../types/MovePlacement.js";
|
|
3
|
+
import type { DragAndDropSettings } from "./DragRegistry.js";
|
|
4
|
+
type DragOverResult = {
|
|
5
|
+
targetReference: HTMLElement | null;
|
|
6
|
+
placement: any;
|
|
7
|
+
};
|
|
8
|
+
type DragPosition = {
|
|
9
|
+
element: HTMLElement;
|
|
10
|
+
placements: MovePlacement[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Handles the dragover event.
|
|
14
|
+
*/
|
|
15
|
+
declare function handleDragOver<T extends UI5Element>(e: DragEvent, component: T, position: DragPosition, target: HTMLElement, settings?: DragAndDropSettings): DragOverResult;
|
|
16
|
+
export default handleDragOver;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import DragRegistry from "./DragRegistry.js";
|
|
2
|
+
/**
|
|
3
|
+
* Handles the dragover event.
|
|
4
|
+
*/
|
|
5
|
+
function handleDragOver(e, component, position, target, settings = {}) {
|
|
6
|
+
const draggedElement = DragRegistry.getDraggedElement();
|
|
7
|
+
const dragOverResult = {
|
|
8
|
+
targetReference: null,
|
|
9
|
+
placement: null,
|
|
10
|
+
};
|
|
11
|
+
if (!draggedElement && !settings?.crossDnD) {
|
|
12
|
+
return dragOverResult;
|
|
13
|
+
}
|
|
14
|
+
const placements = position.placements;
|
|
15
|
+
dragOverResult.targetReference = e.target;
|
|
16
|
+
const placementAccepted = placements.some(placement => {
|
|
17
|
+
const originalEvent = settings.originalEvent ? { originalEvent: e } : {};
|
|
18
|
+
const beforeItemMovePrevented = !component.fireDecoratorEvent("move-over", {
|
|
19
|
+
...originalEvent,
|
|
20
|
+
source: {
|
|
21
|
+
element: draggedElement,
|
|
22
|
+
},
|
|
23
|
+
destination: {
|
|
24
|
+
element: target,
|
|
25
|
+
placement,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
if (beforeItemMovePrevented) {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
dragOverResult.targetReference = position.element;
|
|
31
|
+
dragOverResult.placement = placement;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
});
|
|
36
|
+
if (!placementAccepted) {
|
|
37
|
+
dragOverResult.targetReference = null;
|
|
38
|
+
}
|
|
39
|
+
return dragOverResult;
|
|
40
|
+
}
|
|
41
|
+
export default handleDragOver;
|
|
42
|
+
//# sourceMappingURL=handleDragOver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleDragOver.js","sourceRoot":"","sources":["../../../src/util/dragAndDrop/handleDragOver.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAY7C;;GAEG;AACH,SAAS,cAAc,CAAuB,CAAY,EAAE,SAAY,EAAE,QAAsB,EAAE,MAAmB,EAAE,WAAgC,EAAE;IACxJ,MAAM,cAAc,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC;IACxD,MAAM,cAAc,GAAmB;QACtC,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,IAAI;KACf,CAAC;IAEF,IAAI,CAAC,cAAc,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC5C,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IACvC,cAAc,CAAC,eAAe,GAAG,CAAC,CAAC,MAAqB,CAAC;IAEzD,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;QACrD,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,MAAM,uBAAuB,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,WAAsC,EAAE;YACrG,GAAG,aAAa;YAChB,MAAM,EAAE;gBACP,OAAO,EAAE,cAAc;aACvB;YACD,WAAW,EAAE;gBACZ,OAAO,EAAE,MAAM;gBACf,SAAS;aACT;SAC6C,CAAC,CAAC;QAEjD,IAAI,uBAAuB,EAAE,CAAC;YAC7B,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,SAAS,GAAG,SAAS,CAAC;YACrC,OAAO,IAAI,CAAC;QACb,CAAC;QAED,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACxB,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC;IACvC,CAAC;IAED,OAAO,cAAc,CAAC;AACvB,CAAC;AAED,eAAe,cAAc,CAAC","sourcesContent":["import type UI5Element from \"../../UI5Element.js\";\nimport type MovePlacement from \"../../types/MovePlacement.js\";\nimport type { DragAndDropSettings } from \"./DragRegistry.js\";\nimport DragRegistry from \"./DragRegistry.js\";\n\ntype DragOverResult = {\n\ttargetReference: HTMLElement | null;\n\tplacement: any;\n}\n\ntype DragPosition = {\n\telement: HTMLElement;\n\tplacements: MovePlacement[];\n};\n\n/**\n * Handles the dragover event.\n */\nfunction handleDragOver<T extends UI5Element>(e: DragEvent, component: T, position: DragPosition, target: HTMLElement, settings: DragAndDropSettings = {}): DragOverResult {\n\tconst draggedElement = DragRegistry.getDraggedElement();\n\tconst dragOverResult: DragOverResult = {\n\t\ttargetReference: null,\n\t\tplacement: null,\n\t};\n\n\tif (!draggedElement && !settings?.crossDnD) {\n\t\treturn dragOverResult;\n\t}\n\n\tconst placements = position.placements;\n\tdragOverResult.targetReference = e.target as HTMLElement;\n\n\tconst placementAccepted = placements.some(placement => {\n\t\tconst originalEvent = settings.originalEvent ? { originalEvent: e } : {};\n\t\tconst beforeItemMovePrevented = !component.fireDecoratorEvent(\"move-over\" as keyof T[\"eventDetails\"], {\n\t\t\t...originalEvent,\n\t\t\tsource: {\n\t\t\t\telement: draggedElement,\n\t\t\t},\n\t\t\tdestination: {\n\t\t\t\telement: target,\n\t\t\t\tplacement,\n\t\t\t},\n\t\t} as T[\"eventDetails\"][keyof T[\"eventDetails\"]]);\n\n\t\tif (beforeItemMovePrevented) {\n\t\t\te.preventDefault();\n\t\t\tdragOverResult.targetReference = position.element;\n\t\t\tdragOverResult.placement = placement;\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n\n\tif (!placementAccepted) {\n\t\tdragOverResult.targetReference = null;\n\t}\n\n\treturn dragOverResult;\n}\n\nexport default handleDragOver;\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type UI5Element from "../../UI5Element.js";
|
|
2
|
+
import type MovePlacement from "../../types/MovePlacement.js";
|
|
3
|
+
import type { DragAndDropSettings } from "./DragRegistry.js";
|
|
4
|
+
declare function handleDrop<T extends UI5Element>(e: DragEvent, component: T, target: HTMLElement, placement: `${MovePlacement}`, settings?: DragAndDropSettings): void;
|
|
5
|
+
export default handleDrop;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import DragRegistry from "./DragRegistry.js";
|
|
2
|
+
function handleDrop(e, component, target, placement, settings = {}) {
|
|
3
|
+
e.preventDefault();
|
|
4
|
+
const draggedElement = DragRegistry.getDraggedElement();
|
|
5
|
+
if (!draggedElement && settings?.crossDnD) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const originalEvent = settings.originalEvent ? { originalEvent: e } : {};
|
|
9
|
+
component.fireDecoratorEvent("move", {
|
|
10
|
+
...originalEvent,
|
|
11
|
+
source: {
|
|
12
|
+
element: draggedElement,
|
|
13
|
+
},
|
|
14
|
+
destination: {
|
|
15
|
+
element: target,
|
|
16
|
+
placement,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
draggedElement?.focus();
|
|
20
|
+
}
|
|
21
|
+
export default handleDrop;
|
|
22
|
+
//# sourceMappingURL=handleDrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleDrop.js","sourceRoot":"","sources":["../../../src/util/dragAndDrop/handleDrop.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,SAAS,UAAU,CAAuB,CAAY,EAAE,SAAY,EAAE,MAAmB,EAAE,SAA6B,EAAE,WAAgC,EAAE;IAC3J,CAAC,CAAC,cAAc,EAAE,CAAC;IACnB,MAAM,cAAc,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC;IAExD,IAAI,CAAC,cAAc,IAAI,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC3C,OAAO;IACR,CAAC;IAED,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACzE,SAAS,CAAC,kBAAkB,CAAC,MAAiC,EAAE;QAC/D,GAAG,aAAa;QAChB,MAAM,EAAE;YACP,OAAO,EAAE,cAAc;SACvB;QACD,WAAW,EAAE;YACZ,OAAO,EAAE,MAAM;YACf,SAAS;SACT;KAC6C,CAAC,CAAC;IAEjD,cAAc,EAAE,KAAK,EAAE,CAAC;AACzB,CAAC;AAED,eAAe,UAAU,CAAC","sourcesContent":["import type UI5Element from \"../../UI5Element.js\";\nimport type MovePlacement from \"../../types/MovePlacement.js\";\nimport type { DragAndDropSettings } from \"./DragRegistry.js\";\nimport DragRegistry from \"./DragRegistry.js\";\n\nfunction handleDrop<T extends UI5Element>(e: DragEvent, component: T, target: HTMLElement, placement: `${MovePlacement}`, settings: DragAndDropSettings = {}): void {\n\te.preventDefault();\n\tconst draggedElement = DragRegistry.getDraggedElement();\n\n\tif (!draggedElement && settings?.crossDnD) {\n\t\treturn;\n\t}\n\n\tconst originalEvent = settings.originalEvent ? { originalEvent: e } : {};\n\tcomponent.fireDecoratorEvent(\"move\" as keyof T[\"eventDetails\"], {\n\t\t...originalEvent,\n\t\tsource: {\n\t\t\telement: draggedElement,\n\t\t},\n\t\tdestination: {\n\t\t\telement: target,\n\t\t\tplacement,\n\t\t},\n\t} as T[\"eventDetails\"][keyof T[\"eventDetails\"]]);\n\n\tdraggedElement?.focus();\n}\n\nexport default handleDrop;\n"]}
|
|
@@ -2,6 +2,10 @@ import type UI5Element from "../UI5Element.js";
|
|
|
2
2
|
declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () => void) => {
|
|
3
3
|
new (): {
|
|
4
4
|
eventDetails: object;
|
|
5
|
+
_jsxEvents: Omit<import("../jsx-runtime.js").JSX.DOMAttributes<any>, "onToggle" | "onClose" | "onChange" | "onInput" | "onSelect"> & object;
|
|
6
|
+
_jsxProps: Pick<import("../jsx-runtime.js").JSX.AllHTMLAttributes<HTMLElement>, "id" | "class" | "ref" | "hidden" | "slot" | "style" | "title" | "pattern" | "accesskey" | "autocomplete" | "autofocus" | "contenteditable" | "contextmenu" | "dir" | "draggable" | "enterkeyhint" | "exportparts" | "inputmode" | "lang" | "nonce" | "part" | "spellcheck" | "tabIndex" | "tabindex" | "autocapitalize" | "translate"> & Partial<Omit<any, keyof HTMLElement>> & Partial<Omit<import("../jsx-runtime.js").JSX.DOMAttributes<any>, "onToggle" | "onClose" | "onChange" | "onInput" | "onSelect"> & object> & {
|
|
7
|
+
key?: any;
|
|
8
|
+
};
|
|
5
9
|
__id?: string;
|
|
6
10
|
_suppressInvalidation: boolean;
|
|
7
11
|
_changedState: Array<import("../UI5Element.js").ChangeInfo>;
|
|
@@ -18,6 +22,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
18
22
|
_doNotSyncAttributes: Set<string>;
|
|
19
23
|
_state: import("../UI5ElementMetadata.js").State;
|
|
20
24
|
_internals: ElementInternals;
|
|
25
|
+
_individualSlot?: string;
|
|
21
26
|
_getRealDomRef?: () => HTMLElement;
|
|
22
27
|
initializedProperties: Map<string, unknown>;
|
|
23
28
|
_rendered: boolean;
|
|
@@ -414,6 +419,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
414
419
|
renderer: import("../UI5Element.js").Renderer;
|
|
415
420
|
readonly formAssociated: boolean;
|
|
416
421
|
readonly observedAttributes: string[];
|
|
422
|
+
readonly tagsToScope: string[];
|
|
417
423
|
_needsShadowDOM(): boolean;
|
|
418
424
|
_generateAccessors(): void;
|
|
419
425
|
metadata: import("../UI5ElementMetadata.js").Metadata;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function hash2str(hash: Record<string, boolean>): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default function hash2str(hash) {
|
|
2
|
+
let str = "";
|
|
3
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
4
|
+
for (const prop in hash) {
|
|
5
|
+
if (hash[prop]) {
|
|
6
|
+
if (str) {
|
|
7
|
+
str += " ";
|
|
8
|
+
}
|
|
9
|
+
str += prop;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return str;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=hash2str.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash2str.js","sourceRoot":"","sources":["../../src/util/hash2str.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAA6B;IAC7D,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,gDAAgD;IAChD,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAChB,IAAI,GAAG,EAAE,CAAC;gBACT,GAAG,IAAI,GAAG,CAAC;YACZ,CAAC;YACD,GAAG,IAAI,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC","sourcesContent":["export default function hash2str(hash: Record<string, boolean>): string {\n\tlet str = \"\";\n\t// eslint-disable-next-line no-restricted-syntax\n\tfor (const prop in hash) {\n\t\tif (hash[prop]) {\n\t\t\tif (str) {\n\t\t\t\tstr += \" \";\n\t\t\t}\n\t\t\tstr += prop;\n\t\t}\n\t}\n\treturn str;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toLowercaseEnumValue.js","sourceRoot":"","sources":["../../src/util/toLowercaseEnumValue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAmB,KAAQ;IACtE,OAAO,KAAK,CAAC,WAAW,EAAsB,CAAC;AAChD,CAAC","sourcesContent":["type LowercaseEnum<T> = T extends string ? Lowercase<T> : never;\n\nexport default function toLowercaseEnumValue<T extends string>(value: T): LowercaseEnum<T> {\n\treturn value.toLowerCase() as LowercaseEnum<T>;\n}\n"]}
|
package/index.js
CHANGED
|
@@ -88,9 +88,6 @@ import I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from "./dis
|
|
|
88
88
|
// MediaRange.ts
|
|
89
89
|
import MediaRange from "./dist/MediaRange.js";
|
|
90
90
|
|
|
91
|
-
// PropertiesFileFormat.ts
|
|
92
|
-
import parseProperties from "./dist/PropertiesFileFormat.js";
|
|
93
|
-
|
|
94
91
|
// Render.ts
|
|
95
92
|
import {
|
|
96
93
|
renderDeferred,
|
|
@@ -195,9 +192,6 @@ export {
|
|
|
195
192
|
// MediaRange.ts
|
|
196
193
|
MediaRange,
|
|
197
194
|
|
|
198
|
-
// PropertiesFileFormat.ts
|
|
199
|
-
parseProperties,
|
|
200
|
-
|
|
201
195
|
// Render.ts
|
|
202
196
|
renderDeferred,
|
|
203
197
|
renderImmediately,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0-rc.0",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,14 +16,18 @@
|
|
|
16
16
|
"url": "https://github.com/SAP/ui5-webcomponents.git",
|
|
17
17
|
"directory": "packages/base"
|
|
18
18
|
},
|
|
19
|
-
"types": "./dist",
|
|
20
19
|
"exports": {
|
|
20
|
+
"./jsx-runtime": "./dist/jsx-runtime.js",
|
|
21
|
+
"./jsx-dev-runtime": "./dist/jsx-dev-runtime.js",
|
|
21
22
|
"./dist/ssr-dom.js": {
|
|
22
23
|
"browser": "./dist/ssr-dom.js",
|
|
23
24
|
"node": "./dist/ssr-dom-shim.js",
|
|
24
25
|
"default": "./dist/ssr-dom.js"
|
|
25
26
|
},
|
|
26
|
-
".":
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./src/index.d.ts",
|
|
29
|
+
"default": "./index.js"
|
|
30
|
+
},
|
|
27
31
|
"./dist/*": {
|
|
28
32
|
"production": "./dist/prod/*",
|
|
29
33
|
"development": "./dist/*",
|
|
@@ -33,6 +37,7 @@
|
|
|
33
37
|
"./bundle.esm.js": "./bundle.esm.js",
|
|
34
38
|
"./*": "./dist/*"
|
|
35
39
|
},
|
|
40
|
+
"types": "./dist",
|
|
36
41
|
"scripts": {
|
|
37
42
|
"clean": "nps clean",
|
|
38
43
|
"lint": "nps lint",
|
|
@@ -52,7 +57,7 @@
|
|
|
52
57
|
},
|
|
53
58
|
"devDependencies": {
|
|
54
59
|
"@openui5/sap.ui.core": "1.120.17",
|
|
55
|
-
"@ui5/webcomponents-tools": "2.
|
|
60
|
+
"@ui5/webcomponents-tools": "2.6.0-rc.0",
|
|
56
61
|
"chromedriver": "^131.0.0",
|
|
57
62
|
"clean-css": "^5.2.2",
|
|
58
63
|
"copy-and-watch": "^0.1.5",
|
|
@@ -63,5 +68,5 @@
|
|
|
63
68
|
"resolve": "^1.20.0",
|
|
64
69
|
"touch": "^3.1.0"
|
|
65
70
|
},
|
|
66
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "17869d45f20b28009feaac9d6f59054ba530b3ae"
|
|
67
72
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{options as r,Fragment as e}from"./preact.module.js";export{Fragment}from"./preact.module.js";var t=/["&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=""";break;case 38:f="&";break;case 60:f="<";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=0,i=Array.isArray;function u(e,t,n,o,i,u){t||(t={});var a,c,l=t;"ref"in t&&(a=t.ref,delete t.ref);var p={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===l[c]&&(l[c]=a[c]);return r.vnode&&r.vnode(p),p}function a(r){var t=u(e,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},l=/[A-Z]/g;function p(e,t){if(r.attr){var f=r.attr(e,t);if("string"==typeof f)return f}if("ref"===e||"key"===e)return"";if("style"===e&&"object"==typeof t){var i="";for(var u in t){var a=t[u];if(null!=a&&""!==a){var p="-"==u[0]?u:c[u]||(c[u]=u.replace(l,"-$&").toLowerCase()),s=";";"number"!=typeof a||p.startsWith("--")||o.test(p)||(s="px;"),i=i+p+":"+a+s}}return e+'="'+i+'"'}return null==t||!1===t||"function"==typeof t||"object"==typeof t?"":!0===t?e:e+'="'+n(t)+'"'}function s(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(i(r)){for(var e=0;e<r.length;e++)r[e]=s(r[e]);return r}}return n(""+r)}export{u as jsx,p as jsxAttr,u as jsxDEV,s as jsxEscape,a as jsxTemplate,u as jsxs};
|
|
2
|
+
//# sourceMappingURL=jsxRuntime.module.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n,l,u,t,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(u=i.length,o=void 0,f=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),F(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[f]:null,c,null==f?C(r):f,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,z(c,o,s),o.__e!=f&&S(o)),i.length>u&&i.sort(e));P.__r=0}function $(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=F(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=H(y,f,n):"function"==typeof y.type&&void 0!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function I(n,l,u,t){var i,o,r,e,f,c=l.length,s=u.length,a=s,h=0;for(n.__k=[],i=0;i<c;i++)null!=(o=l[i])&&"boolean"!=typeof o&&"function"!=typeof o?(e=i+h,(o=n.__k[i]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,r=null,-1!==(f=o.__i=O(o,u,e,a))&&(a--,(r=u[f])&&(r.__u|=2)),null==r||null===r.__v?(-1==f&&h--,"function"!=typeof o.type&&(o.__u|=4)):f!==e&&(f==e-1?h--:f==e+1?h++:(f>e?h--:h++,o.__u|=4))):o=n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(r=u[i])&&0==(2&r.__u)&&(r.__e==t&&(t=C(r)),q(r,r));return t}function H(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=H(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=C(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function L(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){L(n,l)}):l.push(n)),l}function O(n,l,u,t){var i=n.key,o=n.type,r=u-1,e=u+1,f=l[u];if(null===f||f&&i==f.key&&o===f.type&&0==(2&f.__u))return u;if(("function"!=typeof o||o===k||i)&&t>(null!=f&&0==(2&f.__u)?1:0))for(;r>=0||e<l.length;){if(r>=0){if((f=l[r])&&0==(2&f.__u)&&i==f.key&&o===f.type)return r;r--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&i==f.key&&o===f.type)return e;e++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var o,r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{r=n.tagName&&n.tagName.includes("-"),u!==t&&(n[l]=null!=u||r?u:"");break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function A(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function F(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,H,L,O,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,C="prototype"in j&&j.prototype.render,S=(a=j.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)C&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,H=0,C){for(h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++H<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(O=null!=a&&a.type===k&&null==a.key?a.props.children:a)?O:[O],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8===f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f}else for(T=r.length;T--;)_(r[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,o,r,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,g,m,b,k=i.props,x=t.props,S=t.type;if("svg"===S?r="http://www.w3.org/2000/svg":"math"===S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName===S:3===w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null===S)return document.createTextNode(x);u=document.createElementNS(r,S,x.is&&x),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null===S)k===x||c&&u.data===x||(u.data=x);else{if(e=e&&n.call(u.childNodes),k=i.props||p,!c&&null!=e)for(k={},a=0;a<u.attributes.length;a++)k[(w=u.attributes[a]).name]=w.value;for(a in k)if(w=k[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in x)){if("value"==a&&"defaultValue"in x||"checked"==a&&"defaultChecked"in x)continue;j(u,a,null,w,r)}for(a in x)w=x[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||k[a]===w||(a.startsWith("on")&&(b=o[Object.keys(o)[0]].props.value,w=w.bind(b)),j(u,a,w,k[a],r));if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),$(u,d(y)?y:[y],t,i,o,"foreignObject"===S?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"===S&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===S&&!g||"option"===S&&g!==k[a])&&j(u,a,g,k[a],r),a="checked",void 0!==m&&m!==u[a]&&j(u,a,m,k[a],r))}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function q(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&q(i[o],u,t||"function"!=typeof n.type);t||_(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var o,r,e,f;t===document&&(t=document.documentElement),l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],F(t,u=(!o&&i||t).__k=g(k,null,[u]),r||p,p,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),z(e,u,f)}function E(n,l){D(n,l,E)}function G(l,u,t){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&void 0!==e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,o||l.ref,null)}function J(n,l){var u={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=A(!1),a=A(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,g as createElement,b as createRef,g as h,E as hydrate,t as isValidElement,l as options,D as render,L as toChildArray};
|
|
2
|
+
//# sourceMappingURL=preact.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
preact version: "10.25.1"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/AriaHasPopup.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Different types of ARIA hasPopup.\n * @public\n */\nenum AriaHasPopup {\n\t/**\n\t * Dialog popup type.\n\t * @public\n\t */\n\tDialog = \"Dialog\",\n\n\t/**\n\t * Grid popup type.\n\t * @public\n\t */\n\tGrid = \"Grid\",\n\n\t/**\n\t * ListBox popup type.\n\t * @public\n\t */\n\tListBox = \"ListBox\",\n\n\t /**\n\t * Menu popup type.\n\t * @public\n\t */\n\tMenu = \"Menu\",\n\n\t /**\n\t * Tree popup type.\n\t * @public\n\t */\n\tTree = \"Tree\",\n}\n\nexport default AriaHasPopup;\n"],
|
|
5
|
-
"mappings": "aAIA,IAAKA,OAKJA,EAAA,OAAS,SAMTA,EAAA,KAAO,OAMPA,EAAA,QAAU,UAMVA,EAAA,KAAO,OAMPA,EAAA,KAAO,OA7BHA,OAAA,IAgCL,eAAeA",
|
|
6
|
-
"names": ["AriaHasPopup"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var t=(n=>(n.None="None",n.Banner="Banner",n.Main="Main",n.Region="Region",n.Navigation="Navigation",n.Search="Search",n.Complementary="Complementary",n.Form="Form",n.ContentInfo="ContentInfo",n))(t||{});export default t;
|
|
2
|
-
//# sourceMappingURL=AriaLandmarkRole.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/AriaLandmarkRole.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Defines the ARIA accessible landmark roles.\n */\nenum AriaLandmarkRole {\n\t/**\n\t * No explicit role is applicable.\n\t *\n\t * The interpretation of this value depends on the element which defines a property with this type.\n\t * Normally this value means that no accessible landmark should be written.\n\t *\n\t * @public\n\t */\n\tNone = \"None\",\n\n\t/**\n\t * The ARIA role <code>banner</code>.\n\t *\n\t * A banner usually appears at the top of the page and typically spans the full width.\n\t *\n\t * @public\n\t */\n\tBanner = \"Banner\",\n\n\t/**\n\t * The ARIA role <code>main</code>.\n\t *\n\t * The main content of a page.\n\t *\n\t * @public\n\t */\n\tMain = \"Main\",\n\n\t/**\n\t * The ARIA role <code>region</code>.\n\t *\n\t * A section of a page, that is important enough to be included in a page summary or table of contents.\n\t *\n\t * @public\n\t */\n\tRegion = \"Region\",\n\n\t/**\n\t * The ARIA role <code>navigation</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a navigation facility.\n\t *\n\t * @public\n\t */\n\tNavigation = \"Navigation\",\n\n\t/**\n\t * The ARIA role <code>search</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a search facility.\n\t *\n\t * @public\n\t */\n\tSearch = \"Search\",\n\n\t/**\n\t * The ARIA role <code>complementary</code>.\n\t *\n\t * A section of the page, designed to be complementary to the main content at a similar level in the DOM hierarchy.\n\t *\n\t * @public\n\t */\n\tComplementary = \"Complementary\",\n\n\t/**\n\t * The ARIA role <code>form</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a form.\n\t *\n\t * @public\n\t */\n\tForm = \"Form\",\n\n\t/**\n\t * The ARIA role <code>contentinfo</code>.\n\t *\n\t * A region that contains information about the content on the page.\n\t *\n\t * @public\n\t */\n\tContentInfo = \"ContentInfo\"\n\n}\n\nexport default AriaLandmarkRole;\n"],
|
|
5
|
-
"mappings": "aAGA,IAAKA,OASJA,EAAA,KAAO,OASPA,EAAA,OAAS,SASTA,EAAA,KAAO,OASPA,EAAA,OAAS,SASTA,EAAA,WAAa,aASbA,EAAA,OAAS,SASTA,EAAA,cAAgB,gBAShBA,EAAA,KAAO,OASPA,EAAA,YAAc,cAjFVA,OAAA,IAqFL,eAAeA",
|
|
6
|
-
"names": ["AriaLandmarkRole"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/AriaRole.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Types of ARIA roles.\n * @public\n */\nenum AriaRole {\n\t/**\n\t* The ARIA role \"alertdialog\".\n\t* @public\n\t*/\n\tAlertDialog = \"AlertDialog\",\n\n\t/**\n\t * The ARIA role \"button\".\n\t * @public\n\t */\n\tButton = \"Button\",\n\n\t/**\n\t * The ARIA role \"dialog\".\n\t * @public\n\t */\n\tDialog = \"Dialog\",\n\n\t/**\n\t * The ARIA role \"link\".\n\t * @public\n\t */\n\tLink = \"Link\",\n}\n\nexport default AriaRole;\n"],
|
|
5
|
-
"mappings": "aAIA,IAAKA,OAKJA,EAAA,YAAc,cAMdA,EAAA,OAAS,SAMTA,EAAA,OAAS,SAMTA,EAAA,KAAO,OAvBHA,OAAA,IA0BL,eAAeA",
|
|
6
|
-
"names": ["AriaRole"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/util/getParentElement.ts"],
|
|
4
|
-
"sourcesContent": ["const getParentElement = (el: HTMLElement) => {\n\treturn (el.parentElement ? el.parentNode : (el.parentNode as ShadowRoot).host) as HTMLElement;\n};\n\nexport default getParentElement;\n"],
|
|
5
|
-
"mappings": "aAAA,MAAMA,EAAoBC,GACjBA,EAAG,cAAgBA,EAAG,WAAcA,EAAG,WAA0B,KAG1E,eAAeD",
|
|
6
|
-
"names": ["getParentElement", "el"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=n=>{const e=getComputedStyle(n);return["size","inline-size"].indexOf(e.containerType)>-1||["transform","perspective"].indexOf(e.willChange)>-1||["layout","paint","strict","content"].indexOf(e.contain)>-1||e.transform&&e.transform!=="none"||e.perspective&&e.perspective!=="none"||e.backdropFilter&&e.backdropFilter!=="none"};export default t;
|
|
2
|
-
//# sourceMappingURL=isElementContainingBlock.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/util/isElementContainingBlock.ts"],
|
|
4
|
-
"sourcesContent": ["const isElementContainingBlock = (el: HTMLElement) => {\n\tconst computedStyle = getComputedStyle(el);\n\n\treturn [\"size\", \"inline-size\"].indexOf(computedStyle.containerType) > -1\n\t|| [\"transform\", \"perspective\"].indexOf(computedStyle.willChange) > -1\n\t|| [\"layout\", \"paint\", \"strict\", \"content\"].indexOf(computedStyle.contain) > -1\n\t|| (computedStyle.transform && computedStyle.transform !== \"none\")\n\t|| (computedStyle.perspective && computedStyle.perspective !== \"none\")\n\t|| (computedStyle.backdropFilter && computedStyle.backdropFilter !== \"none\");\n};\n\nexport default isElementContainingBlock;\n"],
|
|
5
|
-
"mappings": "aAAA,MAAMA,EAA4BC,GAAoB,CACrD,MAAMC,EAAgB,iBAAiBD,CAAE,EAEzC,MAAO,CAAC,OAAQ,aAAa,EAAE,QAAQC,EAAc,aAAa,EAAI,IACnE,CAAC,YAAa,aAAa,EAAE,QAAQA,EAAc,UAAU,EAAI,IACjE,CAAC,SAAU,QAAS,SAAU,SAAS,EAAE,QAAQA,EAAc,OAAO,EAAI,IACzEA,EAAc,WAAaA,EAAc,YAAc,QACvDA,EAAc,aAAeA,EAAc,cAAgB,QAC3DA,EAAc,gBAAkBA,EAAc,iBAAmB,MACtE,EAEA,eAAeF",
|
|
6
|
-
"names": ["isElementContainingBlock", "el", "computedStyle"]
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Different types of ARIA hasPopup.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
declare enum AriaHasPopup {
|
|
6
|
-
/**
|
|
7
|
-
* Dialog popup type.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
Dialog = "Dialog",
|
|
11
|
-
/**
|
|
12
|
-
* Grid popup type.
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
Grid = "Grid",
|
|
16
|
-
/**
|
|
17
|
-
* ListBox popup type.
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
ListBox = "ListBox",
|
|
21
|
-
/**
|
|
22
|
-
* Menu popup type.
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
Menu = "Menu",
|
|
26
|
-
/**
|
|
27
|
-
* Tree popup type.
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
Tree = "Tree"
|
|
31
|
-
}
|
|
32
|
-
export default AriaHasPopup;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Different types of ARIA hasPopup.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
var AriaHasPopup;
|
|
6
|
-
(function (AriaHasPopup) {
|
|
7
|
-
/**
|
|
8
|
-
* Dialog popup type.
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
AriaHasPopup["Dialog"] = "Dialog";
|
|
12
|
-
/**
|
|
13
|
-
* Grid popup type.
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
AriaHasPopup["Grid"] = "Grid";
|
|
17
|
-
/**
|
|
18
|
-
* ListBox popup type.
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
AriaHasPopup["ListBox"] = "ListBox";
|
|
22
|
-
/**
|
|
23
|
-
* Menu popup type.
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
AriaHasPopup["Menu"] = "Menu";
|
|
27
|
-
/**
|
|
28
|
-
* Tree popup type.
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
AriaHasPopup["Tree"] = "Tree";
|
|
32
|
-
})(AriaHasPopup || (AriaHasPopup = {}));
|
|
33
|
-
export default AriaHasPopup;
|
|
34
|
-
//# sourceMappingURL=AriaHasPopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AriaHasPopup.js","sourceRoot":"","sources":["../../src/types/AriaHasPopup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,IAAK,YA8BJ;AA9BD,WAAK,YAAY;IAChB;;;OAGG;IACH,iCAAiB,CAAA;IAEjB;;;OAGG;IACH,6BAAa,CAAA;IAEb;;;OAGG;IACH,mCAAmB,CAAA;IAElB;;;OAGG;IACJ,6BAAa,CAAA;IAEZ;;;OAGG;IACJ,6BAAa,CAAA;AACd,CAAC,EA9BI,YAAY,KAAZ,YAAY,QA8BhB;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * Different types of ARIA hasPopup.\n * @public\n */\nenum AriaHasPopup {\n\t/**\n\t * Dialog popup type.\n\t * @public\n\t */\n\tDialog = \"Dialog\",\n\n\t/**\n\t * Grid popup type.\n\t * @public\n\t */\n\tGrid = \"Grid\",\n\n\t/**\n\t * ListBox popup type.\n\t * @public\n\t */\n\tListBox = \"ListBox\",\n\n\t /**\n\t * Menu popup type.\n\t * @public\n\t */\n\tMenu = \"Menu\",\n\n\t /**\n\t * Tree popup type.\n\t * @public\n\t */\n\tTree = \"Tree\",\n}\n\nexport default AriaHasPopup;\n"]}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines the ARIA accessible landmark roles.
|
|
3
|
-
*/
|
|
4
|
-
declare enum AriaLandmarkRole {
|
|
5
|
-
/**
|
|
6
|
-
* No explicit role is applicable.
|
|
7
|
-
*
|
|
8
|
-
* The interpretation of this value depends on the element which defines a property with this type.
|
|
9
|
-
* Normally this value means that no accessible landmark should be written.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
None = "None",
|
|
14
|
-
/**
|
|
15
|
-
* The ARIA role <code>banner</code>.
|
|
16
|
-
*
|
|
17
|
-
* A banner usually appears at the top of the page and typically spans the full width.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
Banner = "Banner",
|
|
22
|
-
/**
|
|
23
|
-
* The ARIA role <code>main</code>.
|
|
24
|
-
*
|
|
25
|
-
* The main content of a page.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
Main = "Main",
|
|
30
|
-
/**
|
|
31
|
-
* The ARIA role <code>region</code>.
|
|
32
|
-
*
|
|
33
|
-
* A section of a page, that is important enough to be included in a page summary or table of contents.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
Region = "Region",
|
|
38
|
-
/**
|
|
39
|
-
* The ARIA role <code>navigation</code>.
|
|
40
|
-
*
|
|
41
|
-
* A region that contains a collection of items and objects that, as a whole, combine to create a navigation facility.
|
|
42
|
-
*
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
Navigation = "Navigation",
|
|
46
|
-
/**
|
|
47
|
-
* The ARIA role <code>search</code>.
|
|
48
|
-
*
|
|
49
|
-
* A region that contains a collection of items and objects that, as a whole, combine to create a search facility.
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
Search = "Search",
|
|
54
|
-
/**
|
|
55
|
-
* The ARIA role <code>complementary</code>.
|
|
56
|
-
*
|
|
57
|
-
* A section of the page, designed to be complementary to the main content at a similar level in the DOM hierarchy.
|
|
58
|
-
*
|
|
59
|
-
* @public
|
|
60
|
-
*/
|
|
61
|
-
Complementary = "Complementary",
|
|
62
|
-
/**
|
|
63
|
-
* The ARIA role <code>form</code>.
|
|
64
|
-
*
|
|
65
|
-
* A region that contains a collection of items and objects that, as a whole, combine to create a form.
|
|
66
|
-
*
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
Form = "Form",
|
|
70
|
-
/**
|
|
71
|
-
* The ARIA role <code>contentinfo</code>.
|
|
72
|
-
*
|
|
73
|
-
* A region that contains information about the content on the page.
|
|
74
|
-
*
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
ContentInfo = "ContentInfo"
|
|
78
|
-
}
|
|
79
|
-
export default AriaLandmarkRole;
|