@elmethis/qwik 1.0.0-alpha.29 → 1.0.0-alpha.31
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/lib/index.qwik.cjs +139 -74
- package/lib/index.qwik.mjs +139 -74
- package/lib/q-manifest.json +4 -4
- package/lib/style.css +103 -10
- package/lib-types/components/containments/elm-tabs.stories.d.ts +1 -0
- package/lib-types/components/media/elm-audio-player.stories.d.ts +1 -0
- package/lib-types/components/table/elm-table.stories.d.ts +7 -0
- package/package.json +13 -9
package/lib/index.qwik.cjs
CHANGED
|
@@ -42,15 +42,15 @@ const zodToJsonSchema = require("zod-to-json-schema");
|
|
|
42
42
|
const uuid = require("uuid");
|
|
43
43
|
const autoAnimate = require("@formkit/auto-animate");
|
|
44
44
|
const esToolkit = require("es-toolkit");
|
|
45
|
-
const tab = "
|
|
46
|
-
const active$3 = "
|
|
45
|
+
const tab = "_tab_fka8s_14";
|
|
46
|
+
const active$3 = "_active_fka8s_42";
|
|
47
47
|
const styles$S = {
|
|
48
|
-
"elm-tabs": "_elm-
|
|
49
|
-
"tab-container": "_tab-
|
|
48
|
+
"elm-tabs": "_elm-tabs_fka8s_1",
|
|
49
|
+
"tab-container": "_tab-container_fka8s_14",
|
|
50
50
|
tab,
|
|
51
51
|
active: active$3,
|
|
52
|
-
"tab-content": "_tab-
|
|
53
|
-
"tab-content-inner": "_tab-content-
|
|
52
|
+
"tab-content": "_tab-content_fka8s_53",
|
|
53
|
+
"tab-content-inner": "_tab-content-inner_fka8s_58"
|
|
54
54
|
};
|
|
55
55
|
const row$2 = "_row_12wiu_5";
|
|
56
56
|
const open$1 = "_open_12wiu_11";
|
|
@@ -65,7 +65,7 @@ const styles$R = {
|
|
|
65
65
|
both,
|
|
66
66
|
inner
|
|
67
67
|
};
|
|
68
|
-
const _hf0$
|
|
68
|
+
const _hf0$C = (p0) => ({
|
|
69
69
|
"--elmethis-scoped-transition-timing-function": p0.transitionTimingFunction ?? "ease-in-out"
|
|
70
70
|
});
|
|
71
71
|
const ElmCollapse = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
@@ -86,7 +86,7 @@ const ElmCollapse = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
86
86
|
},
|
|
87
87
|
_rawProps.class
|
|
88
88
|
],
|
|
89
|
-
style: core$1._fnSignal(_hf0$
|
|
89
|
+
style: core$1._fnSignal(_hf0$C, [
|
|
90
90
|
_rawProps
|
|
91
91
|
]),
|
|
92
92
|
...core$1._getVarProps(props)
|
|
@@ -98,7 +98,7 @@ function useBindableSignal({ signal, defaultValue }) {
|
|
|
98
98
|
const internal = core$1.useSignal(defaultValue);
|
|
99
99
|
return signal ?? internal;
|
|
100
100
|
}
|
|
101
|
-
const _hf0$
|
|
101
|
+
const _hf0$B = (p0, p1) => p0.selectedValue.value === p1.value;
|
|
102
102
|
const ElmTabsContext = core$1.createContextId("elmethis.tabs");
|
|
103
103
|
const ElmTabs = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
104
104
|
const rest = core$1._restProps(props, [
|
|
@@ -174,7 +174,7 @@ const ElmTabPanel = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
174
174
|
...core$1._getVarProps(rest)
|
|
175
175
|
}, core$1._getConstProps(rest), /* @__PURE__ */ core$1._jsxSorted(ElmCollapse, null, {
|
|
176
176
|
direction: "row",
|
|
177
|
-
isOpen: core$1._fnSignal(_hf0$
|
|
177
|
+
isOpen: core$1._fnSignal(_hf0$B, [
|
|
178
178
|
ctx,
|
|
179
179
|
props
|
|
180
180
|
]),
|
|
@@ -293,8 +293,8 @@ const styles$O = {
|
|
|
293
293
|
const styles$N = {
|
|
294
294
|
"elm-inline-icon": "_elm-inline-icon_1qs0i_1"
|
|
295
295
|
};
|
|
296
|
-
const _hf0$
|
|
297
|
-
const _hf1$
|
|
296
|
+
const _hf0$A = (p0) => p0.width ?? p0.size ?? 16;
|
|
297
|
+
const _hf1$k = (p0) => p0.height ?? p0.size ?? 16;
|
|
298
298
|
const ElmInlineIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
299
299
|
const props = core$1._restProps(_rawProps, [
|
|
300
300
|
"class",
|
|
@@ -312,18 +312,18 @@ const ElmInlineIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
312
312
|
...core$1._getVarProps(props)
|
|
313
313
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted("img", {
|
|
314
314
|
alt: core$1._wrapProp(_rawProps, "alt"),
|
|
315
|
-
height: core$1._fnSignal(_hf1$
|
|
315
|
+
height: core$1._fnSignal(_hf1$k, [
|
|
316
316
|
_rawProps
|
|
317
317
|
]),
|
|
318
318
|
src: core$1._wrapProp(_rawProps, "src"),
|
|
319
|
-
width: core$1._fnSignal(_hf0$
|
|
319
|
+
width: core$1._fnSignal(_hf0$A, [
|
|
320
320
|
_rawProps
|
|
321
321
|
])
|
|
322
322
|
}, {
|
|
323
323
|
class: styles$N["elm-inline-icon"]
|
|
324
324
|
}, null, 3, null), 0, "D4_0");
|
|
325
325
|
}, "ElmInlineIcon_component_9LkENpSGozA"));
|
|
326
|
-
const _hf0$
|
|
326
|
+
const _hf0$z = (p0) => ({
|
|
327
327
|
...p0.style,
|
|
328
328
|
"--elmethis-scoped-color": p0.color,
|
|
329
329
|
"--elmethis-scoped-font-size": p0.size ?? "1em",
|
|
@@ -386,7 +386,7 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
386
386
|
textStyles.text,
|
|
387
387
|
_rawProps.class
|
|
388
388
|
],
|
|
389
|
-
style: core$1._fnSignal(_hf0$
|
|
389
|
+
style: core$1._fnSignal(_hf0$z, [
|
|
390
390
|
_rawProps
|
|
391
391
|
]),
|
|
392
392
|
...core$1._getVarProps(rest)
|
|
@@ -395,7 +395,7 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
395
395
|
const styles$M = {
|
|
396
396
|
"elm-paragraph": "_elm-paragraph_rbsk5_1"
|
|
397
397
|
};
|
|
398
|
-
const _hf0$
|
|
398
|
+
const _hf0$y = (p0) => ({
|
|
399
399
|
...p0.style,
|
|
400
400
|
"--elmethis-scoped-color": p0.color,
|
|
401
401
|
"--elmethis-scoped-background-color": p0.backgroundColor
|
|
@@ -413,7 +413,7 @@ const ElmParagraph = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
413
413
|
textStyles.text,
|
|
414
414
|
_rawProps.class
|
|
415
415
|
],
|
|
416
|
-
style: core$1._fnSignal(_hf0$
|
|
416
|
+
style: core$1._fnSignal(_hf0$y, [
|
|
417
417
|
_rawProps
|
|
418
418
|
]),
|
|
419
419
|
...core$1._getVarProps(props)
|
|
@@ -533,8 +533,8 @@ function firstChildMargin(index) {
|
|
|
533
533
|
marginBlockStart: 0
|
|
534
534
|
} : void 0;
|
|
535
535
|
}
|
|
536
|
-
const _hf0$
|
|
537
|
-
const _hf1$
|
|
536
|
+
const _hf0$x = (p0) => p0.props.min ?? 0;
|
|
537
|
+
const _hf1$j = (p0) => p0.props.max;
|
|
538
538
|
const textFieldInputType = {
|
|
539
539
|
shortText: "text",
|
|
540
540
|
number: "number",
|
|
@@ -691,10 +691,10 @@ const basicCatalog = new CatalogRenderer([
|
|
|
691
691
|
defineRenderer(basic_catalog.SliderApi, (_rawProps) => {
|
|
692
692
|
const value = typeof _rawProps.props.value === "number" ? _rawProps.props.value : Number(_rawProps.ctx.dataContext.resolveDynamicValue(_rawProps.props.value) ?? 0);
|
|
693
693
|
return /* @__PURE__ */ core$1._jsxSorted("input", {
|
|
694
|
-
max: core$1._fnSignal(_hf1$
|
|
694
|
+
max: core$1._fnSignal(_hf1$j, [
|
|
695
695
|
_rawProps
|
|
696
696
|
]),
|
|
697
|
-
min: core$1._fnSignal(_hf0$
|
|
697
|
+
min: core$1._fnSignal(_hf0$x, [
|
|
698
698
|
_rawProps
|
|
699
699
|
]),
|
|
700
700
|
"q-e:change": /* @__PURE__ */ core$1.inlinedQrl((_e, el, _rawProps2) => _rawProps2.setBinding$("value", Number(el.value)), "basicCatalog_defineRenderer_input_q_e_change_U0Dwvjz0O9o"),
|
|
@@ -1190,7 +1190,7 @@ const ElmA2ui = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
1190
1190
|
const styles$K = {
|
|
1191
1191
|
"elm-katex": "_elm-katex_189xe_1"
|
|
1192
1192
|
};
|
|
1193
|
-
const _hf0$
|
|
1193
|
+
const _hf0$w = (p0) => p0.value ?? "";
|
|
1194
1194
|
const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
1195
1195
|
const rest = core$1._restProps(props, [
|
|
1196
1196
|
"class",
|
|
@@ -1212,7 +1212,7 @@ const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
1212
1212
|
props.block ? styles$K["elm-katex"] : void 0,
|
|
1213
1213
|
props.class
|
|
1214
1214
|
],
|
|
1215
|
-
dangerouslySetInnerHTML: core$1._fnSignal(_hf0$
|
|
1215
|
+
dangerouslySetInnerHTML: core$1._fnSignal(_hf0$w, [
|
|
1216
1216
|
html
|
|
1217
1217
|
]),
|
|
1218
1218
|
...core$1._getVarProps(rest)
|
|
@@ -1229,8 +1229,8 @@ const styles$J = {
|
|
|
1229
1229
|
divider: divider$1,
|
|
1230
1230
|
code
|
|
1231
1231
|
};
|
|
1232
|
-
const _hf0$
|
|
1233
|
-
const _hf1$
|
|
1232
|
+
const _hf0$v = (p0) => p0.icon.viewBox;
|
|
1233
|
+
const _hf1$i = (p0) => p0.size ?? 24;
|
|
1234
1234
|
const scopeId = (value, key2, suffix) => key2 === "id" ? `${value}-${suffix}` : value.replace(/url\(#([^)]+)\)/g, `url(#$1-${suffix})`);
|
|
1235
1235
|
const renderNode = (node, suffix, key2) => {
|
|
1236
1236
|
const attrs = {};
|
|
@@ -1249,13 +1249,13 @@ const LanguageGlyph = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
1249
1249
|
const suffix = core$1.useId();
|
|
1250
1250
|
return /* @__PURE__ */ core$1._jsxSplit("svg", {
|
|
1251
1251
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1252
|
-
viewBox: core$1._fnSignal(_hf0$
|
|
1252
|
+
viewBox: core$1._fnSignal(_hf0$v, [
|
|
1253
1253
|
_rawProps
|
|
1254
1254
|
]),
|
|
1255
|
-
width: core$1._fnSignal(_hf1$
|
|
1255
|
+
width: core$1._fnSignal(_hf1$i, [
|
|
1256
1256
|
_rawProps
|
|
1257
1257
|
]),
|
|
1258
|
-
height: core$1._fnSignal(_hf1$
|
|
1258
|
+
height: core$1._fnSignal(_hf1$i, [
|
|
1259
1259
|
_rawProps
|
|
1260
1260
|
]),
|
|
1261
1261
|
class: core$1._wrapProp(_rawProps, "class"),
|
|
@@ -1266,13 +1266,13 @@ const LanguageGlyph = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
1266
1266
|
const styles$I = {
|
|
1267
1267
|
"elm-mdi-icon": "_elm-mdi-icon_ihskx_1"
|
|
1268
1268
|
};
|
|
1269
|
-
const _hf0$
|
|
1269
|
+
const _hf0$u = (p0) => ({
|
|
1270
1270
|
"--elmethis-scoped-color": p0.lightColor ?? p0.color ?? "currentColor",
|
|
1271
1271
|
"--dark-color": p0.darkColor ?? p0.color ?? "currentColor",
|
|
1272
1272
|
...p0.style
|
|
1273
1273
|
});
|
|
1274
|
-
const _hf1$
|
|
1275
|
-
const _hf2$
|
|
1274
|
+
const _hf1$h = (p0) => p0.size ?? "1em";
|
|
1275
|
+
const _hf2$c = (p0) => p0.color ?? "currentColor";
|
|
1276
1276
|
const ElmMdiIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
1277
1277
|
const props = core$1._restProps(_rawProps, [
|
|
1278
1278
|
"class",
|
|
@@ -1288,17 +1288,17 @@ const ElmMdiIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
1288
1288
|
styles$I["elm-mdi-icon"],
|
|
1289
1289
|
_rawProps.class
|
|
1290
1290
|
],
|
|
1291
|
-
style: core$1._fnSignal(_hf0$
|
|
1291
|
+
style: core$1._fnSignal(_hf0$u, [
|
|
1292
1292
|
_rawProps
|
|
1293
1293
|
]),
|
|
1294
|
-
width: core$1._fnSignal(_hf1$
|
|
1294
|
+
width: core$1._fnSignal(_hf1$h, [
|
|
1295
1295
|
_rawProps
|
|
1296
1296
|
]),
|
|
1297
|
-
height: core$1._fnSignal(_hf1$
|
|
1297
|
+
height: core$1._fnSignal(_hf1$h, [
|
|
1298
1298
|
_rawProps
|
|
1299
1299
|
]),
|
|
1300
1300
|
viewBox: "0 0 24 24",
|
|
1301
|
-
fill: core$1._fnSignal(_hf2$
|
|
1301
|
+
fill: core$1._fnSignal(_hf2$c, [
|
|
1302
1302
|
_rawProps
|
|
1303
1303
|
]),
|
|
1304
1304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1309,7 +1309,7 @@ const ElmMdiIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
1309
1309
|
d: core$1._wrapProp(_rawProps, "d")
|
|
1310
1310
|
}, null, null, 3, null), 0, "IA_0");
|
|
1311
1311
|
}, "ElmMdiIcon_component_AUxPCIu3tI0"));
|
|
1312
|
-
const _hf0$
|
|
1312
|
+
const _hf0$t = (p0) => p0.size ?? 24;
|
|
1313
1313
|
const ElmLanguageIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
1314
1314
|
const normalized = core.normalizeLanguage(_rawProps.language);
|
|
1315
1315
|
if (normalized === "file") {
|
|
@@ -1322,7 +1322,7 @@ const ElmLanguageIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core
|
|
|
1322
1322
|
return /* @__PURE__ */ core$1._jsxSorted(LanguageGlyph, {
|
|
1323
1323
|
icon: core.languageIcons[normalized]
|
|
1324
1324
|
}, {
|
|
1325
|
-
size: core$1._fnSignal(_hf0$
|
|
1325
|
+
size: core$1._fnSignal(_hf0$t, [
|
|
1326
1326
|
_rawProps
|
|
1327
1327
|
]),
|
|
1328
1328
|
class: core$1._wrapProp(_rawProps, "class"),
|
|
@@ -1441,8 +1441,8 @@ const useClipboard = (options) => {
|
|
|
1441
1441
|
copy
|
|
1442
1442
|
};
|
|
1443
1443
|
};
|
|
1444
|
-
const _hf0$
|
|
1445
|
-
const _hf1$
|
|
1444
|
+
const _hf0$s = (p0) => p0.language ?? "txt";
|
|
1445
|
+
const _hf1$g = (p0) => p0.caption || (p0.language ?? "txt");
|
|
1446
1446
|
const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
1447
1447
|
const props = core$1._restProps(_rawProps, [
|
|
1448
1448
|
"class",
|
|
@@ -1463,14 +1463,14 @@ const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
1463
1463
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
1464
1464
|
class: styles$J["language-icon"]
|
|
1465
1465
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmLanguageIcon, null, {
|
|
1466
|
-
language: core$1._fnSignal(_hf0$
|
|
1466
|
+
language: core$1._fnSignal(_hf0$s, [
|
|
1467
1467
|
_rawProps
|
|
1468
1468
|
])
|
|
1469
1469
|
}, null, 3, "sK_0"), 1, null),
|
|
1470
1470
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
1471
1471
|
class: styles$J.caption
|
|
1472
1472
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, [
|
|
1473
|
-
core$1._fnSignal(_hf1$
|
|
1473
|
+
core$1._fnSignal(_hf1$g, [
|
|
1474
1474
|
_rawProps
|
|
1475
1475
|
]),
|
|
1476
1476
|
/* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "sK_1")
|
|
@@ -1485,7 +1485,7 @@ const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
1485
1485
|
class: styles$J.code
|
|
1486
1486
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmShikiHighlighter, null, {
|
|
1487
1487
|
code: core$1._wrapProp(_rawProps, "code"),
|
|
1488
|
-
language: core$1._fnSignal(_hf0$
|
|
1488
|
+
language: core$1._fnSignal(_hf0$s, [
|
|
1489
1489
|
_rawProps
|
|
1490
1490
|
])
|
|
1491
1491
|
}, null, 3, "sK_4"), 1, null)
|
|
@@ -1537,13 +1537,13 @@ const styles$F = {
|
|
|
1537
1537
|
"error-notice": "_error-notice_p7xym_421",
|
|
1538
1538
|
"error-message": "_error-message_p7xym_431"
|
|
1539
1539
|
};
|
|
1540
|
-
const _hf0$
|
|
1540
|
+
const _hf0$r = (p0, p1) => ({
|
|
1541
1541
|
"--elmethis-scoped-progress": p1.value,
|
|
1542
1542
|
"--elmethis-scoped-hover": p0.value ?? 0
|
|
1543
1543
|
});
|
|
1544
|
-
const _hf1$
|
|
1545
|
-
const _hf2$
|
|
1546
|
-
const _hf3$
|
|
1544
|
+
const _hf1$f = (p0) => p0.errorMessage ?? "This audio couldn't be loaded.";
|
|
1545
|
+
const _hf2$b = (p0) => p0.value ? "Pause" : "Play";
|
|
1546
|
+
const _hf3$a = (p0) => p0.value ? "Unmute" : "Mute";
|
|
1547
1547
|
const _hf4$5 = (p0, p1) => p0.value ? 0 : p1.value;
|
|
1548
1548
|
const _hf5$3 = (p0, p1) => ({
|
|
1549
1549
|
"--elmethis-scoped-volume": p0.value ? 0 : p1.value
|
|
@@ -1702,7 +1702,7 @@ const ElmAudioPlayer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
1702
1702
|
hasError.value && styles$F.errored,
|
|
1703
1703
|
props.class
|
|
1704
1704
|
],
|
|
1705
|
-
style: core$1._fnSignal(_hf0$
|
|
1705
|
+
style: core$1._fnSignal(_hf0$r, [
|
|
1706
1706
|
hoverRatio,
|
|
1707
1707
|
progress
|
|
1708
1708
|
]),
|
|
@@ -1807,7 +1807,7 @@ const ElmAudioPlayer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
1807
1807
|
}, null, 3, "CY_2"),
|
|
1808
1808
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
1809
1809
|
class: styles$F["error-message"]
|
|
1810
|
-
}, core$1._fnSignal(_hf1$
|
|
1810
|
+
}, core$1._fnSignal(_hf1$f, [
|
|
1811
1811
|
props
|
|
1812
1812
|
]), 1, null)
|
|
1813
1813
|
], 1, "CY_3") : /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, [
|
|
@@ -1905,7 +1905,7 @@ const ElmAudioPlayer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
1905
1905
|
type: "button",
|
|
1906
1906
|
class: styles$F["play-button"],
|
|
1907
1907
|
"q-e:click": togglePlay,
|
|
1908
|
-
"aria-label": core$1._fnSignal(_hf2$
|
|
1908
|
+
"aria-label": core$1._fnSignal(_hf2$b, [
|
|
1909
1909
|
isPlaying
|
|
1910
1910
|
]),
|
|
1911
1911
|
"aria-pressed": core$1._wrapProp(isPlaying)
|
|
@@ -1937,7 +1937,7 @@ const ElmAudioPlayer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
1937
1937
|
type: "button",
|
|
1938
1938
|
class: styles$F["icon-button"],
|
|
1939
1939
|
"q-e:click": toggleMute,
|
|
1940
|
-
"aria-label": core$1._fnSignal(_hf3$
|
|
1940
|
+
"aria-label": core$1._fnSignal(_hf3$a, [
|
|
1941
1941
|
isMuted
|
|
1942
1942
|
]),
|
|
1943
1943
|
"aria-pressed": core$1._wrapProp(isMuted)
|
|
@@ -2110,10 +2110,10 @@ const useModal = (options = {}) => {
|
|
|
2110
2110
|
toggle
|
|
2111
2111
|
};
|
|
2112
2112
|
};
|
|
2113
|
-
const _hf0$
|
|
2114
|
-
const _hf1$
|
|
2115
|
-
const _hf2$
|
|
2116
|
-
const _hf3$
|
|
2113
|
+
const _hf0$q = (p0) => p0.alt ?? p0.caption ?? "Image";
|
|
2114
|
+
const _hf1$e = (p0, p1) => p0 ? void 0 : p1.srcset;
|
|
2115
|
+
const _hf2$a = (p0, p1) => p0 ? void 0 : p1.sizes;
|
|
2116
|
+
const _hf3$9 = (p0) => ({
|
|
2117
2117
|
"--elmethis-scoped-opacity": p0.value ? 1 : 0.01
|
|
2118
2118
|
});
|
|
2119
2119
|
const _hf4$4 = (p0) => ({
|
|
@@ -2166,7 +2166,7 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2166
2166
|
isLoading
|
|
2167
2167
|
]));
|
|
2168
2168
|
const ImageComponent = (isModal) => /* @__PURE__ */ core$1._jsxSorted("img", {
|
|
2169
|
-
alt: core$1._fnSignal(_hf0$
|
|
2169
|
+
alt: core$1._fnSignal(_hf0$q, [
|
|
2170
2170
|
props
|
|
2171
2171
|
]),
|
|
2172
2172
|
fetchPriority: isModal ? "low" : "auto",
|
|
@@ -2176,12 +2176,12 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2176
2176
|
// Only the inline image owns imgRef; the modal image must not steal it
|
|
2177
2177
|
// (ElmModal keeps its slot mounted, so both can coexist in the DOM).
|
|
2178
2178
|
ref: isModal ? void 0 : imgRef,
|
|
2179
|
-
sizes: core$1._fnSignal(_hf2$
|
|
2179
|
+
sizes: core$1._fnSignal(_hf2$a, [
|
|
2180
2180
|
isModal,
|
|
2181
2181
|
props
|
|
2182
2182
|
]),
|
|
2183
2183
|
src: core$1._wrapProp(props, "src"),
|
|
2184
|
-
srcset: core$1._fnSignal(_hf1$
|
|
2184
|
+
srcset: core$1._fnSignal(_hf1$e, [
|
|
2185
2185
|
isModal,
|
|
2186
2186
|
props
|
|
2187
2187
|
]),
|
|
@@ -2204,7 +2204,7 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2204
2204
|
}, core$1._getConstProps(rest), [
|
|
2205
2205
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2206
2206
|
class: styles$E["image-container"],
|
|
2207
|
-
style: core$1._fnSignal(_hf3$
|
|
2207
|
+
style: core$1._fnSignal(_hf3$9, [
|
|
2208
2208
|
isLoading
|
|
2209
2209
|
]),
|
|
2210
2210
|
"q-e:click": handleOpenModal
|
|
@@ -2308,7 +2308,7 @@ const styles$A = {
|
|
|
2308
2308
|
description,
|
|
2309
2309
|
link
|
|
2310
2310
|
};
|
|
2311
|
-
const _hf0$
|
|
2311
|
+
const _hf0$p = (p0, p1, p2) => p2.value || p0.image == null ? p1 : {};
|
|
2312
2312
|
const ElmBookmark = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2313
2313
|
const props = core$1._restProps(_rawProps, [
|
|
2314
2314
|
"class",
|
|
@@ -2344,7 +2344,7 @@ const ElmBookmark = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
2344
2344
|
}, [
|
|
2345
2345
|
/* @__PURE__ */ core$1._jsxSorted("img", {
|
|
2346
2346
|
src: core$1._wrapProp(_rawProps, "image"),
|
|
2347
|
-
style: core$1._fnSignal(_hf0$
|
|
2347
|
+
style: core$1._fnSignal(_hf0$p, [
|
|
2348
2348
|
_rawProps,
|
|
2349
2349
|
hiddenStyle,
|
|
2350
2350
|
isError
|
|
@@ -2401,8 +2401,8 @@ const styles$z = {
|
|
|
2401
2401
|
border,
|
|
2402
2402
|
content: content$1
|
|
2403
2403
|
};
|
|
2404
|
-
const _hf0$
|
|
2405
|
-
const _hf1$
|
|
2404
|
+
const _hf0$o = (p0) => p0.monochrome ? "var(--elmethis-color-neutral-weak)" : "var(--elmethis-color-primary)";
|
|
2405
|
+
const _hf1$d = (p0, p1) => p1.monochrome ? "var(--elmethis-color-neutral-weak)" : p0.value ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)";
|
|
2406
2406
|
const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
2407
2407
|
const rest = core$1._restProps(props, [
|
|
2408
2408
|
"class",
|
|
@@ -2450,7 +2450,7 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2450
2450
|
]
|
|
2451
2451
|
}, null, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2452
2452
|
d: js.mdiChevronRight,
|
|
2453
|
-
color: core$1._fnSignal(_hf0$
|
|
2453
|
+
color: core$1._fnSignal(_hf0$o, [
|
|
2454
2454
|
props
|
|
2455
2455
|
]),
|
|
2456
2456
|
size: "1rem"
|
|
@@ -2472,7 +2472,7 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2472
2472
|
}, null, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2473
2473
|
d: js.mdiPlus,
|
|
2474
2474
|
size: "1rem",
|
|
2475
|
-
color: core$1._fnSignal(_hf1$
|
|
2475
|
+
color: core$1._fnSignal(_hf1$d, [
|
|
2476
2476
|
isOpen,
|
|
2477
2477
|
props
|
|
2478
2478
|
])
|
|
@@ -2552,7 +2552,7 @@ const styles$x = {
|
|
|
2552
2552
|
warning,
|
|
2553
2553
|
caution
|
|
2554
2554
|
};
|
|
2555
|
-
const _hf0$
|
|
2555
|
+
const _hf0$n = (p0) => p0.type ?? "note";
|
|
2556
2556
|
const ICON_MAP = Object.freeze({
|
|
2557
2557
|
note: js.mdiInformation,
|
|
2558
2558
|
tip: js.mdiLightbulbOn,
|
|
@@ -2584,7 +2584,7 @@ const ElmCallout = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
2584
2584
|
class: styles$x.icon,
|
|
2585
2585
|
size: "1.25rem"
|
|
2586
2586
|
}, null, 3, "qp_0"),
|
|
2587
|
-
/* @__PURE__ */ core$1._jsxSorted("span", null, null, core$1._fnSignal(_hf0$
|
|
2587
|
+
/* @__PURE__ */ core$1._jsxSorted("span", null, null, core$1._fnSignal(_hf0$n, [
|
|
2588
2588
|
_rawProps
|
|
2589
2589
|
]), 1, null)
|
|
2590
2590
|
], 1, null),
|
|
@@ -2645,16 +2645,23 @@ const ElmList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2645
2645
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "jF_2"), 0, "jF_3");
|
|
2646
2646
|
}
|
|
2647
2647
|
}, "ElmList_component_aFEzPziW6Gs"));
|
|
2648
|
-
const caption = "
|
|
2649
|
-
const spacing = "
|
|
2648
|
+
const caption = "_caption_wl7v3_68";
|
|
2649
|
+
const spacing = "_spacing_wl7v3_85";
|
|
2650
2650
|
const styles$u = {
|
|
2651
|
-
"elm-table": "_elm-
|
|
2651
|
+
"elm-table-frame": "_elm-table-frame_wl7v3_3",
|
|
2652
|
+
"elm-table-scroll": "_elm-table-scroll_wl7v3_50",
|
|
2653
|
+
"elm-table": "_elm-table_wl7v3_3",
|
|
2652
2654
|
caption,
|
|
2653
|
-
"caption-inner": "_caption-
|
|
2654
|
-
spacing
|
|
2655
|
+
"caption-inner": "_caption-inner_wl7v3_78",
|
|
2656
|
+
spacing,
|
|
2657
|
+
"sticky-row-header": "_sticky-row-header_wl7v3_96"
|
|
2655
2658
|
};
|
|
2656
2659
|
const HasRowHeaderContext = core$1.createContextId("elm.table.HasRowHeader");
|
|
2657
2660
|
const TableSectionContext = core$1.createContextId("elm.table.Section");
|
|
2661
|
+
const _hf0$m = (p0, p1) => p1.value && !p0.value ? "" : void 0;
|
|
2662
|
+
const _hf1$c = (p0) => p0.value ? 0 : void 0;
|
|
2663
|
+
const _hf2$9 = (p0, p1) => p0.value && p1.caption != null ? "region" : void 0;
|
|
2664
|
+
const _hf3$8 = (p0, p1) => p0.value && p1.caption != null ? p1.caption : void 0;
|
|
2658
2665
|
const ElmTable = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
2659
2666
|
const rest = core$1._restProps(props, [
|
|
2660
2667
|
"class",
|
|
@@ -2670,10 +2677,68 @@ const ElmTable = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
2670
2677
|
props
|
|
2671
2678
|
]));
|
|
2672
2679
|
core$1.useContextProvider(HasRowHeaderContext, hasRowHeader);
|
|
2673
|
-
|
|
2680
|
+
const scrollRef = core$1.useSignal();
|
|
2681
|
+
const canScroll = core$1.useSignal(false);
|
|
2682
|
+
const atStart = core$1.useSignal(true);
|
|
2683
|
+
const atEnd = core$1.useSignal(true);
|
|
2684
|
+
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ cleanup }) => {
|
|
2685
|
+
const atEnd2 = core$1._captures[0], atStart2 = core$1._captures[1], canScroll2 = core$1._captures[2], scrollRef2 = core$1._captures[3];
|
|
2686
|
+
const el = scrollRef2.value;
|
|
2687
|
+
if (el == null) return;
|
|
2688
|
+
const measure = () => {
|
|
2689
|
+
const max = el.scrollWidth - el.clientWidth;
|
|
2690
|
+
canScroll2.value = max > 1;
|
|
2691
|
+
atStart2.value = el.scrollLeft <= 1;
|
|
2692
|
+
atEnd2.value = el.scrollLeft >= max - 1;
|
|
2693
|
+
};
|
|
2694
|
+
measure();
|
|
2695
|
+
el.addEventListener("scroll", measure, {
|
|
2696
|
+
passive: true
|
|
2697
|
+
});
|
|
2698
|
+
cleanup(() => el.removeEventListener("scroll", measure));
|
|
2699
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
2700
|
+
const observer = new ResizeObserver(measure);
|
|
2701
|
+
observer.observe(el);
|
|
2702
|
+
cleanup(() => observer.disconnect());
|
|
2703
|
+
}
|
|
2704
|
+
}, "ElmTable_component_useVisibleTask_93J4bNO5KnI", [
|
|
2705
|
+
atEnd,
|
|
2706
|
+
atStart,
|
|
2707
|
+
canScroll,
|
|
2708
|
+
scrollRef
|
|
2709
|
+
]), {
|
|
2710
|
+
strategy: "document-ready"
|
|
2711
|
+
});
|
|
2712
|
+
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2713
|
+
class: styles$u["elm-table-frame"],
|
|
2714
|
+
"data-overflow-start": core$1._fnSignal(_hf0$m, [
|
|
2715
|
+
atStart,
|
|
2716
|
+
canScroll
|
|
2717
|
+
]),
|
|
2718
|
+
"data-overflow-end": core$1._fnSignal(_hf0$m, [
|
|
2719
|
+
atEnd,
|
|
2720
|
+
canScroll
|
|
2721
|
+
])
|
|
2722
|
+
}, /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
2723
|
+
"aria-label": core$1._fnSignal(_hf3$8, [
|
|
2724
|
+
canScroll,
|
|
2725
|
+
props
|
|
2726
|
+
]),
|
|
2727
|
+
ref: scrollRef,
|
|
2728
|
+
role: core$1._fnSignal(_hf2$9, [
|
|
2729
|
+
canScroll,
|
|
2730
|
+
props
|
|
2731
|
+
])
|
|
2732
|
+
}, {
|
|
2733
|
+
class: styles$u["elm-table-scroll"],
|
|
2734
|
+
tabIndex: core$1._fnSignal(_hf1$c, [
|
|
2735
|
+
canScroll
|
|
2736
|
+
])
|
|
2737
|
+
}, /* @__PURE__ */ core$1._jsxSplit("table", {
|
|
2674
2738
|
class: [
|
|
2675
2739
|
styles$u["elm-table"],
|
|
2676
2740
|
textStyles.text,
|
|
2741
|
+
hasRowHeader.value && styles$u["sticky-row-header"],
|
|
2677
2742
|
props.class
|
|
2678
2743
|
],
|
|
2679
2744
|
...core$1._getVarProps(rest)
|
|
@@ -2692,7 +2757,7 @@ const ElmTable = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
2692
2757
|
}, null, 3, null)
|
|
2693
2758
|
], 1, null), 1, "Yw_1"),
|
|
2694
2759
|
/* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Yw_2")
|
|
2695
|
-
], 0, "Yw_3");
|
|
2760
|
+
], 0, null), 1, null), 1, "Yw_3");
|
|
2696
2761
|
}, "ElmTable_component_UT2AChu46oY"));
|
|
2697
2762
|
const styles$t = {
|
|
2698
2763
|
"elm-table-header": "_elm-table-header_jhft7_1"
|