solid-ui 3.1.3-14 → 3.1.3-16
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/chat/message.cjs.js +1 -1
- package/dist/chat/message.cjs.js.map +1 -1
- package/dist/chat/message.esm.js +9 -8
- package/dist/chat/message.esm.js.map +1 -1
- package/dist/chunks/{DialogProvider-0HIHjONx.js → DialogProvider-BFllJFfq.js} +2 -2
- package/dist/chunks/{DialogProvider-0HIHjONx.js.map → DialogProvider-BFllJFfq.js.map} +1 -1
- package/dist/chunks/{account-Ch8h_zTv.js → account-CFAjLyt5.js} +10 -10
- package/dist/chunks/{account-Ch8h_zTv.js.map → account-CFAjLyt5.js.map} +1 -1
- package/dist/chunks/{auth-D4NUMSzc.js → auth-IpQoQHJx.js} +10 -10
- package/dist/chunks/{auth-D4NUMSzc.js.map → auth-IpQoQHJx.js.map} +1 -1
- package/dist/chunks/{avatar-BWtz4RlU.js → avatar-CJ728tvg.js} +3 -3
- package/dist/chunks/{avatar-BWtz4RlU.js.map → avatar-CJ728tvg.js.map} +1 -1
- package/dist/chunks/{button-BJyFKOKO.js → button-CnmrOsEf.js} +2 -2
- package/dist/chunks/{button-BJyFKOKO.js.map → button-CnmrOsEf.js.map} +1 -1
- package/dist/chunks/{chunk.64OG2H45-BADxAtEI.js → chunk.64OG2H45-BFgXEuP7.js} +2 -2
- package/dist/chunks/{chunk.64OG2H45-BADxAtEI.js.map → chunk.64OG2H45-BFgXEuP7.js.map} +1 -1
- package/dist/chunks/{combobox-0NWv9K3D.js → combobox-D3eGdicW.js} +3 -3
- package/dist/chunks/{combobox-0NWv9K3D.js.map → combobox-D3eGdicW.js.map} +1 -1
- package/dist/chunks/{combobox-option-B-twy1Zn.js → combobox-option-BcXpUnWu.js} +2 -2
- package/dist/chunks/{combobox-option-B-twy1Zn.js.map → combobox-option-BcXpUnWu.js.map} +1 -1
- package/dist/chunks/{components-DrP7BOrs.js → components-BHoVP7zE.js} +13 -11
- package/dist/chunks/{components-DrP7BOrs.js.map → components-BHoVP7zE.js.map} +1 -1
- package/dist/chunks/{dialog-CcMVH-Ut.js → dialog-D9Ellvjx.js} +4 -4
- package/dist/chunks/{dialog-CcMVH-Ut.js.map → dialog-D9Ellvjx.js.map} +1 -1
- package/dist/chunks/{dialog-content-DcD_s3hK.js → dialog-content-B2FmmQvH.js} +2 -2
- package/dist/chunks/{dialog-content-DcD_s3hK.js.map → dialog-content-B2FmmQvH.js.map} +1 -1
- package/dist/chunks/{dialog-footer-CHgSH7G5.js → dialog-footer-CxjoqQJF.js} +2 -2
- package/dist/chunks/{dialog-footer-CHgSH7G5.js.map → dialog-footer-CxjoqQJF.js.map} +1 -1
- package/dist/chunks/{dialog-header-BjellR7_.js → dialog-header-0dobhr5C.js} +2 -2
- package/dist/chunks/{dialog-header-BjellR7_.js.map → dialog-header-0dobhr5C.js.map} +1 -1
- package/dist/chunks/{dialogs-CeHuLUo5.js → dialogs-D2n-R0lI.js} +2 -2
- package/dist/chunks/{dialogs-CeHuLUo5.js.map → dialogs-D2n-R0lI.js.map} +1 -1
- package/dist/chunks/{dialogs-root-CvsON-m8.js → dialogs-root-ngPW2Q6K.js} +3 -3
- package/dist/chunks/{dialogs-root-CvsON-m8.js.map → dialogs-root-ngPW2Q6K.js.map} +1 -1
- package/dist/chunks/{guard-BIesxo_f.js → guard-CkfPYP4e.js} +3 -3
- package/dist/chunks/{guard-BIesxo_f.js.map → guard-CkfPYP4e.js.map} +1 -1
- package/dist/chunks/{index.esm-CyyOkz04.js → index.esm-BW2SOmt6.js} +343 -255
- package/dist/chunks/index.esm-BW2SOmt6.js.map +1 -0
- package/dist/chunks/{input-CFDN76Y5.js → input-BIhn_8nf.js} +2 -2
- package/dist/chunks/{input-CFDN76Y5.js.map → input-BIhn_8nf.js.map} +1 -1
- package/dist/chunks/{jsonld-52q5nY_t.js → jsonld-PfYSYrj9.js} +120 -99
- package/dist/chunks/{jsonld-52q5nY_t.js.map → jsonld-PfYSYrj9.js.map} +1 -1
- package/dist/chunks/{login-button-BhdKFJ-F.js → login-button-C7TABAml.js} +4 -4
- package/dist/chunks/{login-button-BhdKFJ-F.js.map → login-button-C7TABAml.js.map} +1 -1
- package/dist/chunks/{logout-button-ClbKS9ss.js → logout-button-BDpulDka.js} +4 -4
- package/dist/chunks/{logout-button-ClbKS9ss.js.map → logout-button-BDpulDka.js.map} +1 -1
- package/dist/chunks/{menu-DVgG-el5.js → menu-hMtmUkel.js} +3 -3
- package/dist/chunks/{menu-DVgG-el5.js.map → menu-hMtmUkel.js.map} +1 -1
- package/dist/chunks/{menu-item-Bj3NgLzB.js → menu-item-BdCkmJol.js} +2 -2
- package/dist/chunks/{menu-item-Bj3NgLzB.js.map → menu-item-BdCkmJol.js.map} +1 -1
- package/dist/chunks/{photo-capture-CVKE0SKx.js → photo-capture-Bvixtxsq.js} +4 -4
- package/dist/chunks/{photo-capture-CVKE0SKx.js.map → photo-capture-Bvixtxsq.js.map} +1 -1
- package/dist/chunks/{photo-capture-modal-DARmhHUH.js → photo-capture-modal-BhmL3kYD.js} +6 -6
- package/dist/chunks/{photo-capture-modal-DARmhHUH.js.map → photo-capture-modal-BhmL3kYD.js.map} +1 -1
- package/dist/chunks/{provider-CBSBzOfP.js → provider-DP9Us_Aw.js} +5 -5
- package/dist/chunks/{provider-CBSBzOfP.js.map → provider-DP9Us_Aw.js.map} +1 -1
- package/dist/chunks/{rdf-form-BeuzVBOP.js → rdf-form-CUUvMplY.js} +4 -4
- package/dist/chunks/{rdf-form-BeuzVBOP.js.map → rdf-form-CUUvMplY.js.map} +1 -1
- package/dist/chunks/{rdf-input-n73oeSkf.js → rdf-input-CH5Aah6g.js} +5 -5
- package/dist/chunks/{rdf-input-n73oeSkf.js.map → rdf-input-CH5Aah6g.js.map} +1 -1
- package/dist/chunks/{select-BuIxSm1A.js → select-BcC-ICqO.js} +2 -2
- package/dist/chunks/{select-BuIxSm1A.js.map → select-BcC-ICqO.js.map} +1 -1
- package/dist/chunks/{select-option-Z8qZsCQo.js → select-option-B0uXcj2O.js} +2 -2
- package/dist/chunks/{select-option-Z8qZsCQo.js.map → select-option-B0uXcj2O.js.map} +1 -1
- package/dist/chunks/{signup-button-B-AgjjAK.js → signup-button-06D4XyCv.js} +4 -4
- package/dist/chunks/{signup-button-B-AgjjAK.js.map → signup-button-06D4XyCv.js.map} +1 -1
- package/dist/chunks/{solid-emblem-D4ItOckU.js → solid-emblem-CcQOqRX0.js} +2 -2
- package/dist/chunks/{solid-emblem-D4ItOckU.js.map → solid-emblem-CcQOqRX0.js.map} +1 -1
- package/dist/chunks/{src-CMpy92si.js → src--J7RRo6J.js} +2362 -2317
- package/dist/chunks/src--J7RRo6J.js.map +1 -0
- package/dist/chunks/{style-CjYxsW7j.js → style-_Eni1Wf8.js} +12 -10
- package/dist/chunks/{style-CjYxsW7j.js.map → style-_Eni1Wf8.js.map} +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture-modal.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +26 -26
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/lib/file-explorer/context.cjs.js +2 -0
- package/dist/lib/file-explorer/context.cjs.js.map +1 -0
- package/dist/lib/file-explorer/context.d.ts +22 -0
- package/dist/lib/file-explorer/context.d.ts.map +1 -0
- package/dist/lib/file-explorer/context.esm.js +7 -0
- package/dist/lib/file-explorer/context.esm.js.map +1 -0
- package/dist/lib/log.cjs.js +1 -1
- package/dist/lib/log.cjs.js.map +1 -1
- package/dist/lib/log.esm.js +10 -8
- package/dist/lib/log.esm.js.map +1 -1
- package/dist/lib/table.cjs.js.map +1 -1
- package/dist/lib/table.esm.js.map +1 -1
- package/dist/loader.js +8 -8
- package/dist/login/login.cjs.js +1 -1
- package/dist/login/login.cjs.js.map +1 -1
- package/dist/login/login.d.ts.map +1 -1
- package/dist/login/login.esm.js +6 -0
- package/dist/login/login.esm.js.map +1 -1
- package/dist/solid-ui.js +83 -83
- package/dist/solid-ui.min.js +83 -83
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/widgets/forms.cjs.js +1 -1
- package/dist/widgets/forms.cjs.js.map +1 -1
- package/dist/widgets/forms.esm.js +13 -11
- package/dist/widgets/forms.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/index.esm-CyyOkz04.js.map +0 -1
- package/dist/chunks/src-CMpy92si.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e, i as t, p as n, t as r, u as i } from "./components-
|
|
1
|
+
import { g as e, i as t, p as n, t as r, u as i } from "./components-BHoVP7zE.js";
|
|
2
2
|
import { t as a } from "./query-BYu9q8lA.js";
|
|
3
3
|
//#region src/components/input/Input.styles.css
|
|
4
4
|
var o = n`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;background:#fff;border-radius:5px;padding:10px}& input:read-only{cursor:not-allowed;border:none;padding:0}}}`, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O;
|
|
@@ -280,4 +280,4 @@ var H = V;
|
|
|
280
280
|
//#endregion
|
|
281
281
|
export { V as n, H as t };
|
|
282
282
|
|
|
283
|
-
//# sourceMappingURL=input-
|
|
283
|
+
//# sourceMappingURL=input-BIhn_8nf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-
|
|
1
|
+
{"version":3,"file":"input-BIhn_8nf.js","names":["customElement","FormControlComponent","html","property","query","styles","_classDecs","_Input","_Input2","_A","WeakMap","_B","_C","_D","_E","_ref","_typeDecs","type","String","reflect","_placeholderDecs","_requiredDecs","Boolean","_readonlyDecs","_controlElementDecs","_Input3","Input","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_type","_init_placeholder","_init_required","_init_readonly","_init_controlElement","_classPrivateFieldGet","v","_classPrivateFieldSet","placeholder","required","readonly","controlElement","render","controlTrait","renderLabel","controlId","name","value","onInput","onKeyDown","e","key","preventDefault","onSubmit","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","Input"],"sources":["../../src/components/input/Input.styles.css","../../src/components/input/Input.ts","../../src/components/input/index.ts"],"sourcesContent":[":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 5px;\n\n label {\n color: var(--solid-ui-color-gray-600);\n font-size: var(--solid-ui-font-size-sm);\n font-weight: 400;\n }\n\n .input-wrapper {\n position: relative;\n width: 100%;\n\n input {\n border: 1px solid var(--solid-ui-color-gray-400);\n border-radius: 5px;\n padding: 10px;\n width: 100%;\n background: white;\n color: var(--solid-ui-color-gray-700);\n font-size: inherit;\n }\n\n input:read-only {\n border: none;\n padding: 0;\n cursor: not-allowed;\n }\n }\n \n}\n","import { customElement, FormControlComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query } from 'lit/decorators.js'\n\nimport styles from './Input.styles.css'\n\n@customElement('solid-ui-input')\nexport default class Input extends FormControlComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor type = 'text';\n\n @property({ type: String, reflect: true })\n accessor placeholder = '';\n\n @property({ type: Boolean, reflect: true })\n accessor required = false;\n\n @property({ type: Boolean, reflect: true })\n accessor readonly = false;\n\n @query('input')\n protected accessor controlElement: HTMLInputElement | null = null;\n\n protected render () {\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <input\n id=${this.controlTrait.controlId}\n type=${this.type}\n name=${this.name}\n placeholder=${this.placeholder}\n ?required=${this.required}\n .value=${this.value}\n ?readonly=${this.readonly}\n @input=${() => this.controlTrait.onInput()}\n @keydown=${this.onKeyDown}\n />\n </div>\n `\n }\n\n private onKeyDown (e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault()\n\n this.controlTrait.onSubmit()\n }\n }\n}\n","import Input from './Input'\n\nexport { Input }\nexport default Input\n"],"mappings":"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"}
|
|
@@ -320,11 +320,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
320
320
|
let r = n[0];
|
|
321
321
|
this.canonicalIssuer.getId(r);
|
|
322
322
|
}
|
|
323
|
-
if (this.maxDeepIterations < 0)
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
323
|
+
if (this.maxDeepIterations < 0) {
|
|
324
|
+
if (this.maxWorkFactor === 0) this.maxDeepIterations = 0;
|
|
325
|
+
else if (this.maxWorkFactor === Infinity) this.maxDeepIterations = Infinity;
|
|
326
|
+
else {
|
|
327
|
+
let e = a.reduce((e, t) => e + t.length, 0);
|
|
328
|
+
this.maxDeepIterations = e ** this.maxWorkFactor;
|
|
329
|
+
}
|
|
328
330
|
}
|
|
329
331
|
this.maxDeepIterations > 2 ** 53 - 1 && (this.maxDeepIterations = Infinity), this.remainingDeepIterations = this.maxDeepIterations;
|
|
330
332
|
for (let e of a) {
|
|
@@ -501,11 +503,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
501
503
|
let r = n[0];
|
|
502
504
|
this.canonicalIssuer.getId(r);
|
|
503
505
|
}
|
|
504
|
-
if (this.maxDeepIterations < 0)
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
if (this.maxDeepIterations < 0) {
|
|
507
|
+
if (this.maxWorkFactor === 0) this.maxDeepIterations = 0;
|
|
508
|
+
else if (this.maxWorkFactor === Infinity) this.maxDeepIterations = Infinity;
|
|
509
|
+
else {
|
|
510
|
+
let e = a.reduce((e, t) => e + t.length, 0);
|
|
511
|
+
this.maxDeepIterations = e ** this.maxWorkFactor;
|
|
512
|
+
}
|
|
509
513
|
}
|
|
510
514
|
this.maxDeepIterations > 2 ** 53 - 1 && (this.maxDeepIterations = Infinity), this.remainingDeepIterations = this.maxDeepIterations;
|
|
511
515
|
for (let e of a) {
|
|
@@ -1547,11 +1551,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
1547
1551
|
}
|
|
1548
1552
|
if (b.processingMode = b.processingMode || e.processingMode, "@base" in s) {
|
|
1549
1553
|
let e = s["@base"];
|
|
1550
|
-
if (!(e === null || c(e)))
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1554
|
+
if (!(e === null || c(e))) {
|
|
1555
|
+
if (l(e)) e = u(b["@base"], e);
|
|
1556
|
+
else throw new r("Invalid JSON-LD syntax; the value of \"@base\" in a @context must be an absolute IRI, a relative IRI, or null.", "jsonld.SyntaxError", {
|
|
1557
|
+
code: "invalid base IRI",
|
|
1558
|
+
context: s
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1555
1561
|
b["@base"] = e, v.set("@base", !0);
|
|
1556
1562
|
}
|
|
1557
1563
|
if ("@vocab" in s) {
|
|
@@ -1835,26 +1841,28 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
1835
1841
|
h["@id"] = i, h._prefix = m && !h._termHasColon && i.match(/[:\/\?#\[\]@]$/) !== null;
|
|
1836
1842
|
}
|
|
1837
1843
|
}
|
|
1838
|
-
if (!("@id" in h))
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1844
|
+
if (!("@id" in h)) {
|
|
1845
|
+
if (h._termHasColon) {
|
|
1846
|
+
let r = n.substr(0, v);
|
|
1847
|
+
if (t.hasOwnProperty(r) && S.createTermDefinition({
|
|
1848
|
+
activeCtx: e,
|
|
1849
|
+
localCtx: t,
|
|
1850
|
+
term: r,
|
|
1851
|
+
defined: s,
|
|
1852
|
+
options: l
|
|
1853
|
+
}), e.mappings.has(r)) {
|
|
1854
|
+
let t = n.substr(v + 1);
|
|
1855
|
+
h["@id"] = e.mappings.get(r)["@id"] + t;
|
|
1856
|
+
} else h["@id"] = n;
|
|
1857
|
+
} else if (n === "@type") h["@id"] = n;
|
|
1858
|
+
else {
|
|
1859
|
+
if (!("@vocab" in e)) throw new r("Invalid JSON-LD syntax; @context terms must define an @id.", "jsonld.SyntaxError", {
|
|
1860
|
+
code: "invalid IRI mapping",
|
|
1861
|
+
context: t,
|
|
1862
|
+
term: n
|
|
1863
|
+
});
|
|
1864
|
+
h["@id"] = e["@vocab"] + n;
|
|
1865
|
+
}
|
|
1858
1866
|
}
|
|
1859
1867
|
if ((d["@protected"] === !0 || s.get("@protected") === !0 && d["@protected"] !== !1) && (e.protected[n] = !0, h.protected = !0), s.set(n, !0), "@type" in d) {
|
|
1860
1868
|
let n = d["@type"];
|
|
@@ -2908,18 +2916,20 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
2908
2916
|
continue;
|
|
2909
2917
|
}
|
|
2910
2918
|
let y = w(l, s, d, t);
|
|
2911
|
-
if (o(u, c, y, { propertyIsArray: !0 }), v)
|
|
2912
|
-
|
|
2913
|
-
|
|
2919
|
+
if (o(u, c, y, { propertyIsArray: !0 }), v) {
|
|
2920
|
+
if (h === g) {
|
|
2921
|
+
let e = r[h];
|
|
2922
|
+
"usages" in e || (e.usages = []), e.usages.push({
|
|
2923
|
+
node: u,
|
|
2924
|
+
property: c,
|
|
2925
|
+
value: y
|
|
2926
|
+
});
|
|
2927
|
+
} else m[h] = h in m ? !1 : {
|
|
2914
2928
|
node: u,
|
|
2915
2929
|
property: c,
|
|
2916
2930
|
value: y
|
|
2917
|
-
}
|
|
2918
|
-
}
|
|
2919
|
-
node: u,
|
|
2920
|
-
property: c,
|
|
2921
|
-
value: y
|
|
2922
|
-
};
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2923
2933
|
}
|
|
2924
2934
|
for (let e in p) {
|
|
2925
2935
|
let t = p[e];
|
|
@@ -2977,13 +2987,15 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
2977
2987
|
});
|
|
2978
2988
|
}
|
|
2979
2989
|
}
|
|
2980
|
-
if (t)
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2990
|
+
if (t) {
|
|
2991
|
+
if (c === y) l["@value"] === "true" || l["@value"] === "1" ? l["@value"] = !0 : l["@value"] === "false" || l["@value"] === "0" ? l["@value"] = !1 : l["@type"] = c;
|
|
2992
|
+
else if (c === x) {
|
|
2993
|
+
if (i.isNumeric(l["@value"])) {
|
|
2994
|
+
let e = parseInt(l["@value"], 10);
|
|
2995
|
+
e.toFixed(0) === l["@value"] && (l["@value"] = e);
|
|
2996
|
+
} else l["@type"] = c;
|
|
2997
|
+
} else c === b && i.isNumeric(l["@value"]) ? l["@value"] = parseFloat(l["@value"]) : l["@type"] = c;
|
|
2998
|
+
} else if (r === "i18n-datatype" && c.startsWith("https://www.w3.org/ns/i18n#")) {
|
|
2987
2999
|
let [, e, t] = c.split(/[#_]/);
|
|
2988
3000
|
e.length > 0 && (l["@language"] = e, e.match(a) || o.eventHandler && s({
|
|
2989
3001
|
event: {
|
|
@@ -3645,45 +3657,48 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3645
3657
|
element: y || _ ? b : t,
|
|
3646
3658
|
options: f
|
|
3647
3659
|
});
|
|
3648
|
-
if (y)
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3660
|
+
if (y) {
|
|
3661
|
+
if (r(x) || (x = [x]), !g.includes("@list")) x = { [k.compactIri({
|
|
3662
|
+
activeCtx: e,
|
|
3663
|
+
iri: "@list",
|
|
3664
|
+
relativeTo: { vocab: !0 }
|
|
3665
|
+
})]: x }, "@index" in t && (x[k.compactIri({
|
|
3666
|
+
activeCtx: e,
|
|
3667
|
+
iri: "@index",
|
|
3668
|
+
relativeTo: { vocab: !0 }
|
|
3669
|
+
})] = t["@index"]);
|
|
3670
|
+
else {
|
|
3671
|
+
T(h, n, x, {
|
|
3672
|
+
valueIsArray: !0,
|
|
3673
|
+
allowDuplicate: !0
|
|
3674
|
+
});
|
|
3675
|
+
continue;
|
|
3676
|
+
}
|
|
3663
3677
|
}
|
|
3664
|
-
if (_)
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3678
|
+
if (_) {
|
|
3679
|
+
if (g.includes("@graph") && (g.includes("@id") || g.includes("@index") && u(t))) {
|
|
3680
|
+
let r;
|
|
3681
|
+
h.hasOwnProperty(n) ? r = h[n] : h[n] = r = {};
|
|
3682
|
+
let i = (g.includes("@id") ? t["@id"] : t["@index"]) || k.compactIri({
|
|
3683
|
+
activeCtx: e,
|
|
3684
|
+
iri: "@none",
|
|
3685
|
+
relativeTo: { vocab: !0 }
|
|
3686
|
+
});
|
|
3687
|
+
T(r, i, x, { propertyIsArray: !f.compactArrays || g.includes("@set") });
|
|
3688
|
+
} else g.includes("@graph") && u(t) ? (r(x) && x.length > 1 && (x = { "@included": x }), T(h, n, x, { propertyIsArray: !f.compactArrays || g.includes("@set") })) : (r(x) && x.length === 1 && f.compactArrays && (x = x[0]), x = { [k.compactIri({
|
|
3668
3689
|
activeCtx: e,
|
|
3669
|
-
iri: "@
|
|
3690
|
+
iri: "@graph",
|
|
3670
3691
|
relativeTo: { vocab: !0 }
|
|
3671
|
-
})
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
})] = t["@id"]), "@index" in t && (x[k.compactIri({
|
|
3682
|
-
activeCtx: e,
|
|
3683
|
-
iri: "@index",
|
|
3684
|
-
relativeTo: { vocab: !0 }
|
|
3685
|
-
})] = t["@index"]), T(h, n, x, { propertyIsArray: !f.compactArrays || g.includes("@set") }));
|
|
3686
|
-
else if (g.includes("@language") || g.includes("@index") || g.includes("@id") || g.includes("@type")) {
|
|
3692
|
+
})]: x }, "@id" in t && (x[k.compactIri({
|
|
3693
|
+
activeCtx: e,
|
|
3694
|
+
iri: "@id",
|
|
3695
|
+
relativeTo: { vocab: !0 }
|
|
3696
|
+
})] = t["@id"]), "@index" in t && (x[k.compactIri({
|
|
3697
|
+
activeCtx: e,
|
|
3698
|
+
iri: "@index",
|
|
3699
|
+
relativeTo: { vocab: !0 }
|
|
3700
|
+
})] = t["@index"]), T(h, n, x, { propertyIsArray: !f.compactArrays || g.includes("@set") }));
|
|
3701
|
+
} else if (g.includes("@language") || g.includes("@index") || g.includes("@id") || g.includes("@type")) {
|
|
3687
3702
|
let r;
|
|
3688
3703
|
h.hasOwnProperty(n) ? r = h[n] : h[n] = r = {};
|
|
3689
3704
|
let i;
|
|
@@ -3774,12 +3789,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3774
3789
|
t ||= "@none", r ||= "@none", r === "@none" ? d = t : (u = "@type", d = r);
|
|
3775
3790
|
}
|
|
3776
3791
|
} else {
|
|
3777
|
-
if (c(r))
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3792
|
+
if (c(r)) {
|
|
3793
|
+
if ("@language" in r && !("@index" in r)) {
|
|
3794
|
+
a.push("@language", "@language@set"), d = r["@language"];
|
|
3795
|
+
let e = r["@direction"];
|
|
3796
|
+
e && (d = `${d}_${e}`);
|
|
3797
|
+
} else "@direction" in r && !("@index" in r) ? d = `_${r["@direction"]}` : "@type" in r && (u = "@type", d = r["@type"]);
|
|
3798
|
+
} else u = "@type", d = "@id";
|
|
3783
3799
|
a.push("@set");
|
|
3784
3800
|
}
|
|
3785
3801
|
a.push("@none"), i(r) && !("@index" in r) && a.push("@index", "@index@set"), c(r) && Object.keys(r).length === 1 && a.push("@language", "@language@set");
|
|
@@ -3807,11 +3823,16 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
3807
3823
|
code: "IRI confused with prefix",
|
|
3808
3824
|
context: e
|
|
3809
3825
|
});
|
|
3810
|
-
if (!a.vocab)
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3826
|
+
if (!a.vocab) {
|
|
3827
|
+
if ("@base" in e) {
|
|
3828
|
+
if (e["@base"]) {
|
|
3829
|
+
let n = S(C(u, e["@base"]), t);
|
|
3830
|
+
return w.test(n) ? `./${n}` : n;
|
|
3831
|
+
}
|
|
3832
|
+
return t;
|
|
3833
|
+
}
|
|
3834
|
+
return S(u, t);
|
|
3835
|
+
}
|
|
3815
3836
|
return t;
|
|
3816
3837
|
}, k.compactValue = ({ activeCtx: e, activeProperty: t, value: n, options: r }) => {
|
|
3817
3838
|
if (c(n)) {
|
|
@@ -4148,4 +4169,4 @@ var t = /* @__PURE__ */ e(((e, t) => {
|
|
|
4148
4169
|
//#endregion
|
|
4149
4170
|
export default L();
|
|
4150
4171
|
|
|
4151
|
-
//# sourceMappingURL=jsonld-
|
|
4172
|
+
//# sourceMappingURL=jsonld-PfYSYrj9.js.map
|