mx-ui-components-pkg 0.0.717-alpha.141 → 0.0.717-alpha.143
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/{cssMode-B6is5AF3.js → cssMode-Ckts_lW4.js} +1 -1
- package/dist/{freemarker2-DasCl8cI.js → freemarker2-DSYhn0Op.js} +1 -1
- package/dist/{handlebars-CijsxRsq.js → handlebars-Cz5GkR2x.js} +1 -1
- package/dist/{html-0HFmJiZx.js → html-pOuIWq32.js} +1 -1
- package/dist/{htmlMode-sOweo5kM.js → htmlMode-BP5gO8do.js} +1 -1
- package/dist/{index-4tMe7t2o.js → index-D0X4Q1LD.js} +37 -35
- package/dist/{index.es-BwluMKeD.js → index.es-CJIjtaq6.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/{javascript-ItR90mU2.js → javascript-C5zHaFOJ.js} +1 -1
- package/dist/{jsonMode-CgB9at4t.js → jsonMode-BD_G4HTv.js} +1 -1
- package/dist/{liquid-DJW48MQs.js → liquid-_TI0xPkt.js} +1 -1
- package/dist/{mdx-MVMjVn-L.js → mdx-hiUeWnGH.js} +1 -1
- package/dist/{python-ug134DVI.js → python-iykUhQTt.js} +1 -1
- package/dist/{razor-I03OUfwp.js → razor-7Wro8dES.js} +1 -1
- package/dist/{tsMode-KP69xQIn.js → tsMode-BUQYtaeC.js} +1 -1
- package/dist/types/src/routes/+layout.server.d.ts +219 -86
- package/dist/{typescript-7DSfJmtT.js → typescript-B5Gm6ExP.js} +1 -1
- package/dist/{xml-B0xT2NLz.js → xml-CnEV7eef.js} +1 -1
- package/dist/{yaml-D2IsKN7z.js → yaml-DZ5P2Iwc.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as et } from "./index-
|
|
1
|
+
import { m as et } from "./index-D0X4Q1LD.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as f } from "./index-
|
|
1
|
+
import { m as f } from "./index-D0X4Q1LD.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-D0X4Q1LD.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-D0X4Q1LD.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as lt } from "./index-
|
|
1
|
+
import { m as lt } from "./index-D0X4Q1LD.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -13697,16 +13697,16 @@ function nUt(i, e, t) {
|
|
|
13697
13697
|
const h = o.getElementsByTagName("image")[0].getAttribute("alt") || "Images";
|
|
13698
13698
|
u += `
|
|
13699
13699
|
<xsl:template match="image">
|
|
13700
|
-
<image href="/
|
|
13700
|
+
<image href="/mnt/data/${t}/${h}" alt="Images"/>
|
|
13701
13701
|
</xsl:template>`;
|
|
13702
13702
|
}
|
|
13703
13703
|
return o.getElementsByTagName("object").length > 0 && (u += `
|
|
13704
13704
|
<xsl:template match="object">
|
|
13705
|
-
<object data="/
|
|
13705
|
+
<object data="/mnt/data/${t}/" outputclass="video"/>
|
|
13706
13706
|
</xsl:template>`), u.trim();
|
|
13707
13707
|
}
|
|
13708
13708
|
function iUt(i, e) {
|
|
13709
|
-
return console.log(i, "first"), i.map((t, n) => typeof t.dataSourceId == "string" ? `<xsl:param name="${t.parameterName}" select="document('/
|
|
13709
|
+
return console.log(i, "first"), i.map((t, n) => typeof t.dataSourceId == "string" ? `<xsl:param name="${t.parameterName}" select="document('/mnt/data/${e}/${t.dataSourceId}.xml')"/> ` : `<xsl:param name="${t.parameterName}" select="document('/mnt/data/${e}/${t.parameterName}.xml')"/> `);
|
|
13710
13710
|
}
|
|
13711
13711
|
async function P7e(i, e) {
|
|
13712
13712
|
var u, d, h, f, p, g, m, v, A;
|
|
@@ -13714,7 +13714,7 @@ async function P7e(i, e) {
|
|
|
13714
13714
|
const t = (h = i[0]) == null ? void 0 : h.placeholders, n = (f = i[0]) == null ? void 0 : f.name, r = (p = i[0]) == null ? void 0 : p.type, s = (g = i[0]) == null ? void 0 : g.content, o = await iUt(t, e);
|
|
13715
13715
|
await Z7t(i == null ? void 0 : i.id);
|
|
13716
13716
|
const a = await tUt(s), l = await nUt(s, (v = (m = i[0]) == null ? void 0 : m.placeholders[0]) == null ? void 0 : v.parameterName, e);
|
|
13717
|
-
let c = `<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" exclude-result-prefixes="fn"> <xsl:output method="xml" indent="yes" doctype-public="-//OASIS//DTD DITA Topic//EN" doctype-system="${r}.dtd" encoding="UTF-8"/> ${o} <xsl:param name="templateFile" select="document('/
|
|
13717
|
+
let c = `<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" exclude-result-prefixes="fn"> <xsl:output method="xml" indent="yes" doctype-public="-//OASIS//DTD DITA Topic//EN" doctype-system="${r}.dtd" encoding="UTF-8"/> ${o} <xsl:param name="templateFile" select="document('/mnt/data/${e}/${n}.dita')"/> <xsl:template match="/"> <xsl:message>Starting transformation...</xsl:message> ${a} </xsl:template> ${l} </xsl:stylesheet>`;
|
|
13718
13718
|
console.log(c), await eUt((A = i[0]) == null ? void 0 : A.id, c);
|
|
13719
13719
|
}
|
|
13720
13720
|
async function rUt(i) {
|
|
@@ -25909,7 +25909,7 @@ function(i) {
|
|
|
25909
25909
|
*/
|
|
25910
25910
|
function(i) {
|
|
25911
25911
|
function e() {
|
|
25912
|
-
return (to.canvg ? Promise.resolve(to.canvg) : import("./index.es-
|
|
25912
|
+
return (to.canvg ? Promise.resolve(to.canvg) : import("./index.es-CJIjtaq6.js")).catch(function(t) {
|
|
25913
25913
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
25914
25914
|
}).then(function(t) {
|
|
25915
25915
|
return t.default ? t.default : t;
|
|
@@ -80011,7 +80011,7 @@ const Zjt = /* @__PURE__ */ Qq(Jjt), eKt = Zjt, qv = {
|
|
|
80011
80011
|
return (i ?? []).map((o) => {
|
|
80012
80012
|
var a;
|
|
80013
80013
|
return (a = YT(o)) == null ? void 0 : a.assetNameWithExt;
|
|
80014
|
-
}).map((o) => `<image href="/
|
|
80014
|
+
}).map((o) => `<image href="/mnt/data/${n}/${o}" alt="${o}" />`).join(`
|
|
80015
80015
|
`);
|
|
80016
80016
|
},
|
|
80017
80017
|
// TODO: Remove this after btf side fixes
|
|
@@ -141251,10 +141251,10 @@ function Dgn(i, e) {
|
|
|
141251
141251
|
return Lgn(F);
|
|
141252
141252
|
} else if (u.type === "image") {
|
|
141253
141253
|
const F = (v = YT(((m = u.attrs) == null ? void 0 : m.src) || "")) == null ? void 0 : v.assetNameWithExt;
|
|
141254
|
-
return `<image style="${(A = u == null ? void 0 : u.attrs) == null ? void 0 : A.style}" href="/
|
|
141254
|
+
return `<image style="${(A = u == null ? void 0 : u.attrs) == null ? void 0 : A.style}" href="/mnt/data/${e}/${F}" alt="${F}" />`;
|
|
141255
141255
|
} else if (u.type === "video") {
|
|
141256
141256
|
const F = (y = YT(((_ = u.attrs) == null ? void 0 : _.src) || "")) == null ? void 0 : y.assetNameWithExt;
|
|
141257
|
-
return `<object type="video/${(C = YT(((w = u.attrs) == null ? void 0 : w.src) || "")) == null ? void 0 : C.fileExtension}" data="/
|
|
141257
|
+
return `<object type="video/${(C = YT(((w = u.attrs) == null ? void 0 : w.src) || "")) == null ? void 0 : C.fileExtension}" data="/mnt/data/${e}/${F}"> <param name="autoplay" value="false"/> <param name="controls" value="true"/> <desc>Video Uploaded from CMS</desc> </object>`;
|
|
141258
141258
|
} else if (u.type === "codeBlock") {
|
|
141259
141259
|
const F = (b = u.attrs) == null ? void 0 : b.language, z = ((E = u.content) == null ? void 0 : E.map(s).join("")) || "";
|
|
141260
141260
|
return `<codeblock outputclass="language-${F}">${z}</codeblock>`;
|
|
@@ -270393,37 +270393,37 @@ Gi({
|
|
|
270393
270393
|
id: "freemarker2",
|
|
270394
270394
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
270395
270395
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
270396
|
-
loader: () => import("./freemarker2-
|
|
270396
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagAutoInterpolationDollar)
|
|
270397
270397
|
});
|
|
270398
270398
|
Gi({
|
|
270399
270399
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
270400
270400
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
270401
|
-
loader: () => import("./freemarker2-
|
|
270401
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagAngleInterpolationDollar)
|
|
270402
270402
|
});
|
|
270403
270403
|
Gi({
|
|
270404
270404
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
270405
270405
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
270406
|
-
loader: () => import("./freemarker2-
|
|
270406
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagBracketInterpolationDollar)
|
|
270407
270407
|
});
|
|
270408
270408
|
Gi({
|
|
270409
270409
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
270410
270410
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
270411
|
-
loader: () => import("./freemarker2-
|
|
270411
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagAngleInterpolationBracket)
|
|
270412
270412
|
});
|
|
270413
270413
|
Gi({
|
|
270414
270414
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
270415
270415
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
270416
|
-
loader: () => import("./freemarker2-
|
|
270416
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagBracketInterpolationBracket)
|
|
270417
270417
|
});
|
|
270418
270418
|
Gi({
|
|
270419
270419
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
270420
270420
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
270421
|
-
loader: () => import("./freemarker2-
|
|
270421
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagAutoInterpolationDollar)
|
|
270422
270422
|
});
|
|
270423
270423
|
Gi({
|
|
270424
270424
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
270425
270425
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
270426
|
-
loader: () => import("./freemarker2-
|
|
270426
|
+
loader: () => import("./freemarker2-DSYhn0Op.js").then((i) => i.TagAutoInterpolationBracket)
|
|
270427
270427
|
});
|
|
270428
270428
|
/*!-----------------------------------------------------------------------------
|
|
270429
270429
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270461,7 +270461,7 @@ Gi({
|
|
|
270461
270461
|
extensions: [".handlebars", ".hbs"],
|
|
270462
270462
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
270463
270463
|
mimetypes: ["text/x-handlebars-template"],
|
|
270464
|
-
loader: () => import("./handlebars-
|
|
270464
|
+
loader: () => import("./handlebars-Cz5GkR2x.js")
|
|
270465
270465
|
});
|
|
270466
270466
|
/*!-----------------------------------------------------------------------------
|
|
270467
270467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270486,7 +270486,7 @@ Gi({
|
|
|
270486
270486
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
270487
270487
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
270488
270488
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
270489
|
-
loader: () => import("./html-
|
|
270489
|
+
loader: () => import("./html-pOuIWq32.js")
|
|
270490
270490
|
});
|
|
270491
270491
|
/*!-----------------------------------------------------------------------------
|
|
270492
270492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270527,7 +270527,7 @@ Gi({
|
|
|
270527
270527
|
filenames: ["jakefile"],
|
|
270528
270528
|
aliases: ["JavaScript", "javascript", "js"],
|
|
270529
270529
|
mimetypes: ["text/javascript"],
|
|
270530
|
-
loader: () => import("./javascript-
|
|
270530
|
+
loader: () => import("./javascript-C5zHaFOJ.js")
|
|
270531
270531
|
});
|
|
270532
270532
|
/*!-----------------------------------------------------------------------------
|
|
270533
270533
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270602,7 +270602,7 @@ Gi({
|
|
|
270602
270602
|
extensions: [".liquid", ".html.liquid"],
|
|
270603
270603
|
aliases: ["Liquid", "liquid"],
|
|
270604
270604
|
mimetypes: ["application/liquid"],
|
|
270605
|
-
loader: () => import("./liquid-
|
|
270605
|
+
loader: () => import("./liquid-_TI0xPkt.js")
|
|
270606
270606
|
});
|
|
270607
270607
|
/*!-----------------------------------------------------------------------------
|
|
270608
270608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270638,7 +270638,7 @@ Gi({
|
|
|
270638
270638
|
id: "mdx",
|
|
270639
270639
|
extensions: [".mdx"],
|
|
270640
270640
|
aliases: ["MDX", "mdx"],
|
|
270641
|
-
loader: () => import("./mdx-
|
|
270641
|
+
loader: () => import("./mdx-hiUeWnGH.js")
|
|
270642
270642
|
});
|
|
270643
270643
|
/*!-----------------------------------------------------------------------------
|
|
270644
270644
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270833,7 +270833,7 @@ Gi({
|
|
|
270833
270833
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
270834
270834
|
aliases: ["Python", "py"],
|
|
270835
270835
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
270836
|
-
loader: () => import("./python-
|
|
270836
|
+
loader: () => import("./python-iykUhQTt.js")
|
|
270837
270837
|
});
|
|
270838
270838
|
/*!-----------------------------------------------------------------------------
|
|
270839
270839
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -270870,7 +270870,7 @@ Gi({
|
|
|
270870
270870
|
extensions: [".cshtml"],
|
|
270871
270871
|
aliases: ["Razor", "razor"],
|
|
270872
270872
|
mimetypes: ["text/x-cshtml"],
|
|
270873
|
-
loader: () => import("./razor-
|
|
270873
|
+
loader: () => import("./razor-7Wro8dES.js")
|
|
270874
270874
|
});
|
|
270875
270875
|
/*!-----------------------------------------------------------------------------
|
|
270876
270876
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -271122,7 +271122,7 @@ Gi({
|
|
|
271122
271122
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
271123
271123
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
271124
271124
|
mimetypes: ["text/typescript"],
|
|
271125
|
-
loader: () => import("./typescript-
|
|
271125
|
+
loader: () => import("./typescript-B5Gm6ExP.js")
|
|
271126
271126
|
});
|
|
271127
271127
|
/*!-----------------------------------------------------------------------------
|
|
271128
271128
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -271190,7 +271190,7 @@ Gi({
|
|
|
271190
271190
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
271191
271191
|
aliases: ["XML", "xml"],
|
|
271192
271192
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
271193
|
-
loader: () => import("./xml-
|
|
271193
|
+
loader: () => import("./xml-CnEV7eef.js")
|
|
271194
271194
|
});
|
|
271195
271195
|
/*!-----------------------------------------------------------------------------
|
|
271196
271196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -271203,7 +271203,7 @@ Gi({
|
|
|
271203
271203
|
extensions: [".yaml", ".yml"],
|
|
271204
271204
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
271205
271205
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
271206
|
-
loader: () => import("./yaml-
|
|
271206
|
+
loader: () => import("./yaml-DZ5P2Iwc.js")
|
|
271207
271207
|
});
|
|
271208
271208
|
/*!-----------------------------------------------------------------------------
|
|
271209
271209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -271306,7 +271306,7 @@ var bFe = class {
|
|
|
271306
271306
|
);
|
|
271307
271307
|
F8.languages.css = { cssDefaults: qIt, lessDefaults: $It, scssDefaults: QIt };
|
|
271308
271308
|
function SFe() {
|
|
271309
|
-
return import("./cssMode-
|
|
271309
|
+
return import("./cssMode-Ckts_lW4.js");
|
|
271310
271310
|
}
|
|
271311
271311
|
F8.languages.onLanguage("less", () => {
|
|
271312
271312
|
SFe().then((i) => i.setupMode($It));
|
|
@@ -271412,7 +271412,7 @@ _de.languages.html = {
|
|
|
271412
271412
|
registerHTMLLanguageService: wde
|
|
271413
271413
|
};
|
|
271414
271414
|
function JZn() {
|
|
271415
|
-
return import("./htmlMode-
|
|
271415
|
+
return import("./htmlMode-BP5gO8do.js");
|
|
271416
271416
|
}
|
|
271417
271417
|
function wde(i, e = yde, t = bde(i)) {
|
|
271418
271418
|
const n = new $Zn(i, e, t);
|
|
@@ -271489,7 +271489,7 @@ var sei = class {
|
|
|
271489
271489
|
), lei = () => JIt().then((i) => i.getWorker());
|
|
271490
271490
|
u$.languages.json = { jsonDefaults: XIt, getWorker: lei };
|
|
271491
271491
|
function JIt() {
|
|
271492
|
-
return import("./jsonMode-
|
|
271492
|
+
return import("./jsonMode-BD_G4HTv.js");
|
|
271493
271493
|
}
|
|
271494
271494
|
u$.languages.register({
|
|
271495
271495
|
id: "json",
|
|
@@ -271653,7 +271653,7 @@ f6.languages.typescript = {
|
|
|
271653
271653
|
getJavaScriptWorker: Aei
|
|
271654
271654
|
};
|
|
271655
271655
|
function Cde() {
|
|
271656
|
-
return import("./tsMode-
|
|
271656
|
+
return import("./tsMode-BUQYtaeC.js");
|
|
271657
271657
|
}
|
|
271658
271658
|
f6.languages.onLanguage("typescript", () => Cde().then((i) => i.setupTypeScript(oLt)));
|
|
271659
271659
|
f6.languages.onLanguage("javascript", () => Cde().then((i) => i.setupJavaScript(aLt)));
|
|
@@ -312697,16 +312697,18 @@ class dfi extends ri {
|
|
|
312697
312697
|
this.setBindings(t, () => {
|
|
312698
312698
|
});
|
|
312699
312699
|
const n = JSON.parse(this.getAttribute("props") || "{}");
|
|
312700
|
-
Object.keys(n).forEach((
|
|
312701
|
-
this.setAttribute(
|
|
312700
|
+
Object.keys(n).forEach((u) => {
|
|
312701
|
+
this.setAttribute(u, n[u] ?? "");
|
|
312702
312702
|
});
|
|
312703
|
-
const { color: r = "#000000", colorInputStyles: s = "", colorValueDisplayStyles: o = "hidden" } = n,
|
|
312704
|
-
this.input = document.createElement("input"), this.input.className = s, this.input.type = "color",
|
|
312703
|
+
const { color: r = "#000000", colorInputStyles: s = "", colorValueDisplayStyles: o = "hidden", colorDivStyles: a = "flex flex-col", isReadOnly: l = "true" } = n, c = document.createElement("div");
|
|
312704
|
+
this.input = document.createElement("input"), this.input.className = s, this.input.type = "color", c.appendChild(this.input), this.colorValueDisplay = document.createElement("input"), this.colorValueDisplay.type = "text", this.colorValueDisplay.readOnly = l == "true", this.colorValueDisplay.className = o, this.componentName = this.getAttribute("name") || "name", c.className = a, c.appendChild(this.colorValueDisplay), this.appendChild(c), this.input.addEventListener("input", this.handleColorChange.bind(this)), this.input.value = r, this.updateColorValueDisplay(r);
|
|
312705
312705
|
}
|
|
312706
312706
|
handleColorChange(t) {
|
|
312707
|
-
var
|
|
312707
|
+
var s;
|
|
312708
312708
|
const n = t.target.value;
|
|
312709
|
-
this.updateColorValueDisplay(n)
|
|
312709
|
+
this.updateColorValueDisplay(n);
|
|
312710
|
+
let r = this.getState();
|
|
312711
|
+
(s = this.signal) == null || s.set({ ...r, [this.componentName]: n || "#ffffff" }), this.updateState({ ...r, [this.componentName]: n || "#ffffff" });
|
|
312710
312712
|
}
|
|
312711
312713
|
updateColorValueDisplay(t) {
|
|
312712
312714
|
this.colorValueDisplay && (this.colorValueDisplay.value = t);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ag as o, aV as e, N as i, aq as t, bl as r, bI as b, au as n, p as u, q as d, bj as C, B as M, Q as m, j as l, l as p, aa as c, be as g, K as h, bh as D, x as y, a6 as A, bA as B, aZ as T, a_ as w, bZ as I, b9 as S, aW as P, aX as F, bB as R, b5 as k, aC as x, b7 as v, aG as H, aE as L, aF as f, bb as E, ba as G, bc as N, bC as O, bE as V, bX as W, C as U, bL as q, V as z, bn as J, ar as K, b3 as X, bR as j, aS as Q, bS as Y, E as Z, ac as $, aT as _, F as aa, bs as sa, bG as oa, b2 as ea, X as ia, Y as ta, Z as ra, $ as ba, a0 as na, a1 as ua, bt as da, a2 as Ca, b8 as Ma, as as ma, I as la, a4 as pa, ai as ca, a3 as ga, bv as ha, af as Da, bi as ya, ah as Aa, ad as Ba, r as Ta, av as wa, aN as Ia, aQ as Sa, aO as Pa, aP as Fa, bd as Ra, n as ka, bH as xa, aU as va, b1 as Ha, ab as La, bU as fa, y as Ea, u as Ga, s as Na, e as Oa, bf as Va, bV as Wa, a$ as Ua, o as qa, az as za, bP as Ja, aK as Ka, aI as Xa, aJ as ja, bN as Qa, c0 as Ya, bY as Za, b$ as $a, bQ as _a, bO as as, b as ss, bD as os, k as es, c1 as is, d as ts, v as rs, b_ as bs, aY as ns, b0 as us, bF as ds, bW as Cs, M as Ms, h as ms, bw as ls, i as ps, bz as cs, by as gs, bx as hs, a9 as Ds, br as ys, G as As, aw as Bs, ay as Ts, ax as ws, A as Is, aD as Ss, bJ as Ps, bK as Fs, bM as Rs, O as ks, P as xs, bm as vs, aj as Hs, ak as Ls, D as fs, f as Es, a7 as Gs, am as Ns, aH as Os, a8 as Vs, bq as Ws, L as Us, R as qs, bk as zs, a5 as Js, z as Ks, at as Xs, bu as js, bp as Qs, bo as Ys, an as Zs, J as $s, S as _s, U as ao, H as so, T as oo, w as eo, ao as io, ap as to, b4 as ro, aA as bo, bT as no, al as uo, ae as Co, b6 as Mo, a9 as mo, W as lo, aR as po, bg as co, aB as go, aM as ho, a as Do, aL as yo } from "./index-
|
|
1
|
+
import { ag as o, aV as e, N as i, aq as t, bl as r, bI as b, au as n, p as u, q as d, bj as C, B as M, Q as m, j as l, l as p, aa as c, be as g, K as h, bh as D, x as y, a6 as A, bA as B, aZ as T, a_ as w, bZ as I, b9 as S, aW as P, aX as F, bB as R, b5 as k, aC as x, b7 as v, aG as H, aE as L, aF as f, bb as E, ba as G, bc as N, bC as O, bE as V, bX as W, C as U, bL as q, V as z, bn as J, ar as K, b3 as X, bR as j, aS as Q, bS as Y, E as Z, ac as $, aT as _, F as aa, bs as sa, bG as oa, b2 as ea, X as ia, Y as ta, Z as ra, $ as ba, a0 as na, a1 as ua, bt as da, a2 as Ca, b8 as Ma, as as ma, I as la, a4 as pa, ai as ca, a3 as ga, bv as ha, af as Da, bi as ya, ah as Aa, ad as Ba, r as Ta, av as wa, aN as Ia, aQ as Sa, aO as Pa, aP as Fa, bd as Ra, n as ka, bH as xa, aU as va, b1 as Ha, ab as La, bU as fa, y as Ea, u as Ga, s as Na, e as Oa, bf as Va, bV as Wa, a$ as Ua, o as qa, az as za, bP as Ja, aK as Ka, aI as Xa, aJ as ja, bN as Qa, c0 as Ya, bY as Za, b$ as $a, bQ as _a, bO as as, b as ss, bD as os, k as es, c1 as is, d as ts, v as rs, b_ as bs, aY as ns, b0 as us, bF as ds, bW as Cs, M as Ms, h as ms, bw as ls, i as ps, bz as cs, by as gs, bx as hs, a9 as Ds, br as ys, G as As, aw as Bs, ay as Ts, ax as ws, A as Is, aD as Ss, bJ as Ps, bK as Fs, bM as Rs, O as ks, P as xs, bm as vs, aj as Hs, ak as Ls, D as fs, f as Es, a7 as Gs, am as Ns, aH as Os, a8 as Vs, bq as Ws, L as Us, R as qs, bk as zs, a5 as Js, z as Ks, at as Xs, bu as js, bp as Qs, bo as Ys, an as Zs, J as $s, S as _s, U as ao, H as so, T as oo, w as eo, ao as io, ap as to, b4 as ro, aA as bo, bT as no, al as uo, ae as Co, b6 as Mo, a9 as mo, W as lo, aR as po, bg as co, aB as go, aM as ho, a as Do, aL as yo } from "./index-D0X4Q1LD.js";
|
|
2
2
|
export {
|
|
3
3
|
o as A,
|
|
4
4
|
e as Action,
|