@ai-ecoverse/slicc-spectrum 1.20.0 → 1.22.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.
@@ -1,64 +0,0 @@
1
- // node_modules/@spectrum-web-components/overlay/src/slottable-request-event.js
2
- var SlottableRequestEvent = class extends Event {
3
- constructor(e2, n2, t) {
4
- super("slottable-request", { bubbles: false, cancelable: true, composed: false }), this.name = e2, this.data = n2, this.slotName = t !== void 0 ? `${e2}.${t}` : e2;
5
- }
6
- };
7
- var removeSlottableRequest = /* @__PURE__ */ Symbol("remove-slottable-request");
8
-
9
- // node_modules/@spectrum-web-components/shared/src/random-id.js
10
- function randomID() {
11
- return Array.from(crypto.getRandomValues(new Uint8Array(4)), (r) => `0${(r & 255).toString(16)}`.slice(-2)).join("");
12
- }
13
-
14
- // node_modules/@spectrum-web-components/shared/src/platform.js
15
- function n(o) {
16
- return typeof window != "undefined" && window.navigator != null ? o.test(window.navigator.userAgent) : false;
17
- }
18
- function e(o) {
19
- return typeof window != "undefined" && window.navigator != null ? o.test(window.navigator.platform) : false;
20
- }
21
- function isMac() {
22
- return e(/^Mac/);
23
- }
24
- function isIPhone() {
25
- return e(/^iPhone/);
26
- }
27
- function isIPad() {
28
- return e(/^iPad/) || isMac() && navigator.maxTouchPoints > 1;
29
- }
30
- function isIOS() {
31
- return isIPhone() || isIPad();
32
- }
33
- function isWebKit() {
34
- return n(/AppleWebKit/) && !isChrome();
35
- }
36
- function isChrome() {
37
- return n(/Chrome/);
38
- }
39
- function isAndroid() {
40
- return n(/Android/);
41
- }
42
-
43
- // node_modules/@spectrum-web-components/base/src/condition-attribute-with-id.js
44
- function conditionAttributeWithoutId(t, i, n2) {
45
- const e2 = t.getAttribute(i);
46
- let r = e2 ? e2.split(/\s+/) : [];
47
- r = r.filter((s) => !n2.find((o) => s === o)), r.length ? t.setAttribute(i, r.join(" ")) : t.removeAttribute(i);
48
- }
49
- function conditionAttributeWithId(t, i, n2) {
50
- const e2 = Array.isArray(n2) ? n2 : [n2], r = t.getAttribute(i), s = r ? r.split(/\s+/) : [];
51
- return e2.every((d) => s.indexOf(d) > -1) ? () => {
52
- } : (s.push(...e2), t.setAttribute(i, s.join(" ")), () => conditionAttributeWithoutId(t, i, e2));
53
- }
54
-
55
- export {
56
- SlottableRequestEvent,
57
- removeSlottableRequest,
58
- isIOS,
59
- isWebKit,
60
- isAndroid,
61
- randomID,
62
- conditionAttributeWithId
63
- };
64
- //# sourceMappingURL=chunk-Y4Z7K443.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@spectrum-web-components/overlay/src/slottable-request-event.ts", "../node_modules/@spectrum-web-components/shared/src/random-id.ts", "../node_modules/@spectrum-web-components/shared/src/platform.ts", "../node_modules/@spectrum-web-components/base/src/condition-attribute-with-id.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport class SlottableRequestEvent extends Event {\n readonly data: unknown;\n readonly name: string;\n readonly slotName: string;\n constructor(name: string, data: unknown, key?: string) {\n super('slottable-request', {\n bubbles: false,\n cancelable: true,\n composed: false,\n });\n this.name = name;\n this.data = data;\n this.slotName = key !== undefined ? `${name}.${key}` : name;\n if (window.__swc?.DEBUG && window.__swc?.warn) {\n window.__swc.warn(\n undefined,\n `\u26A0\uFE0F WARNING \u26A0\uFE0F : \\`slottable-request\\` events are experimental and there is no guarantees behind usage of them in an application!! Their shape and presence within the library could be changed at anytime.\n\nLearn more about the protocol these events are based on below:`,\n 'https://github.com/webcomponents-cg/community-protocols/pull/45',\n {\n level: 'high',\n type: 'api',\n }\n );\n }\n }\n}\n\nexport const removeSlottableRequest = Symbol('remove-slottable-request');\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'slottable-request': SlottableRequestEvent;\n }\n}\n", "/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// This gnarly-looking implementation returns the equivalent of crypto.randomUUID().slice(0, 8).\n// It uses getRandomValues() in order to be compatible with HTTP contexts.\nexport function randomID(): string {\n return Array.from(crypto.getRandomValues(new Uint8Array(4)), (b) =>\n `0${(b & 0xff).toString(16)}`.slice(-2)\n ).join('');\n}\n", "/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nfunction testUserAgent(re: RegExp): boolean {\n return typeof window !== 'undefined' && window.navigator != null\n ? re.test(window.navigator.userAgent)\n : false;\n}\n\nfunction testPlatform(re: RegExp): boolean {\n return typeof window !== 'undefined' && window.navigator != null\n ? re.test(window.navigator.platform)\n : false;\n}\n\n/* c8 ignore next 3 */\nexport function isMac(): boolean {\n return testPlatform(/^Mac/);\n}\n\nexport function isIPhone(): boolean {\n return testPlatform(/^iPhone/);\n}\n\nexport function isIPad(): boolean {\n return (\n testPlatform(/^iPad/) ||\n // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n (isMac() && navigator.maxTouchPoints > 1)\n );\n}\n\nexport function isIOS(): boolean {\n return isIPhone() || isIPad();\n}\n\n/* c8 ignore next 3 */\nexport function isAppleDevice(): boolean {\n return isMac() || isIOS();\n}\n\n/* c8 ignore next 3 */\nexport function isWebKit(): boolean {\n return testUserAgent(/AppleWebKit/) && !isChrome();\n}\n\n/* c8 ignore next 3 */\nexport function isChrome(): boolean {\n return testUserAgent(/Chrome/);\n}\n\nexport function isFirefox(): boolean {\n return testUserAgent(/Firefox/) && !isSeamonkey();\n}\n\nexport function isSeamonkey(): boolean {\n return testUserAgent(/Seamonkey/);\n}\n\nexport function isAndroid(): boolean {\n return testUserAgent(/Android/);\n}\n", "/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport function conditionAttributeWithoutId(\n el: HTMLElement,\n attribute: string,\n ids: string[]\n): void {\n const ariaDescribedby = el.getAttribute(attribute);\n let descriptors = ariaDescribedby ? ariaDescribedby.split(/\\s+/) : [];\n descriptors = descriptors.filter(\n (descriptor) => !ids.find((id) => descriptor === id)\n );\n if (descriptors.length) {\n el.setAttribute(attribute, descriptors.join(' '));\n } else {\n el.removeAttribute(attribute);\n }\n}\n\nexport function conditionAttributeWithId(\n el: HTMLElement,\n attribute: string,\n id: string | string[]\n): () => void {\n const ids = Array.isArray(id) ? id : [id];\n const ariaDescribedby = el.getAttribute(attribute);\n const descriptors = ariaDescribedby ? ariaDescribedby.split(/\\s+/) : [];\n const hadIds = ids.every((id) => descriptors.indexOf(id) > -1);\n if (hadIds) /* c8 ignore next 3 */\n {\n return (): void => {\n return;\n };\n }\n descriptors.push(...ids);\n el.setAttribute(attribute, descriptors.join(' '));\n return () => conditionAttributeWithoutId(el, attribute, ids);\n}\n"],
5
- "mappings": ";AAYO,IAAM,wBAAN,cAAoC,MAAM;EAI/C,YAAYA,IAAcC,IAAeC,GAAc;AACrD,UAAM,qBAAqB,EACzB,SAAS,OACT,YAAY,MACZ,UAAU,MACZ,CAAC,GACD,KAAK,OAAOF,IACZ,KAAK,OAAOC,IACZ,KAAK,WAAWC,MAAQ,SAAY,GAAGF,EAAI,IAAIE,CAAG,KAAKF;EAczD;AACF;AAEO,IAAM,yBAAyB,uBAAO,0BAA0B;;;AC3BhE,SAAS,WAAmB;AACjC,SAAO,MAAM,KAAK,OAAO,gBAAgB,IAAI,WAAW,CAAC,CAAC,GAAIG,OAC5D,KAAKA,IAAI,KAAM,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE,CACxC,EAAE,KAAK,EAAE;AACX;;;ACNA,SAASC,EAAcC,GAAqB;AAC1C,SAAO,OAAO,UAAW,eAAe,OAAO,aAAa,OACxDA,EAAG,KAAK,OAAO,UAAU,SAAS,IAClC;AACN;AAEA,SAASC,EAAaD,GAAqB;AACzC,SAAO,OAAO,UAAW,eAAe,OAAO,aAAa,OACxDA,EAAG,KAAK,OAAO,UAAU,QAAQ,IACjC;AACN;AAGO,SAAS,QAAiB;AAC/B,SAAOC,EAAa,MAAM;AAC5B;AAEO,SAAS,WAAoB;AAClC,SAAOA,EAAa,SAAS;AAC/B;AAEO,SAAS,SAAkB;AAChC,SACEA,EAAa,OAAO,KAEnB,MAAM,KAAK,UAAU,iBAAiB;AAE3C;AAEO,SAAS,QAAiB;AAC/B,SAAO,SAAS,KAAK,OAAO;AAC9B;AAQO,SAAS,WAAoB;AAClC,SAAOC,EAAc,aAAa,KAAK,CAAC,SAAS;AACnD;AAGO,SAAS,WAAoB;AAClC,SAAOA,EAAc,QAAQ;AAC/B;AAUO,SAAS,YAAqB;AACnC,SAAOC,EAAc,SAAS;AAChC;;;AC1DO,SAAS,4BACdC,GACAC,GACAC,IACM;AACN,QAAMC,KAAkBH,EAAG,aAAaC,CAAS;AACjD,MAAIG,IAAcD,KAAkBA,GAAgB,MAAM,KAAK,IAAI,CAAC;AACpEC,MAAcA,EAAY,OACvBC,OAAe,CAACH,GAAI,KAAMI,OAAOD,MAAeC,CAAE,CACrD,GACIF,EAAY,SACdJ,EAAG,aAAaC,GAAWG,EAAY,KAAK,GAAG,CAAC,IAEhDJ,EAAG,gBAAgBC,CAAS;AAEhC;AAEO,SAAS,yBACdD,GACAC,GACAK,IACY;AACZ,QAAMJ,KAAM,MAAM,QAAQI,EAAE,IAAIA,KAAK,CAACA,EAAE,GAClCH,IAAkBH,EAAG,aAAaC,CAAS,GAC3CG,IAAcD,IAAkBA,EAAgB,MAAM,KAAK,IAAI,CAAC;AAEtE,SADeD,GAAI,MAAOI,OAAOF,EAAY,QAAQE,CAAE,IAAI,EAAE,IAGpD,MAAY;EAEnB,KAEFF,EAAY,KAAK,GAAGF,EAAG,GACvBF,EAAG,aAAaC,GAAWG,EAAY,KAAK,GAAG,CAAC,GACzC,MAAM,4BAA4BJ,GAAIC,GAAWC,EAAG;AAC7D;",
6
- "names": ["name", "data", "key", "b", "testUserAgent", "re", "testPlatform", "testUserAgent", "testUserAgent", "el", "attribute", "ids", "ariaDescribedby", "descriptors", "descriptor", "id"]
7
- }