@loafacto/ui 0.8.0 → 0.8.2
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/components/LfAlert.vue.d.ts +5 -3
- package/dist/components/LfCard.vue.d.ts +6 -4
- package/dist/components/LfEmptyState.vue.d.ts +11 -4
- package/dist/components/LfPageHeader.vue.d.ts +7 -5
- package/dist/components/LfStatCard.vue.d.ts +4 -2
- package/dist/index.js +121 -97
- package/dist/index.js.map +1 -1
- package/dist/lib/apiClient.d.ts +8 -1
- package/dist/loafacto-ui.css +83 -69
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -135,10 +135,10 @@ const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_re
|
|
|
135
135
|
const _hoisted_1$r = { class: "lf-shell" };
|
|
136
136
|
const _hoisted_2$n = { class: "lf-topbar" };
|
|
137
137
|
const _hoisted_3$i = { class: "lf-topbar__inner" };
|
|
138
|
-
const _hoisted_4$
|
|
138
|
+
const _hoisted_4$g = ["href", "aria-label"];
|
|
139
139
|
const _hoisted_5$c = ["src"];
|
|
140
140
|
const _hoisted_6$9 = { class: "lf-brand__name" };
|
|
141
|
-
const _hoisted_7$
|
|
141
|
+
const _hoisted_7$8 = ["aria-expanded"];
|
|
142
142
|
const _hoisted_8$3 = {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "lf-switcher__menu",
|
|
@@ -292,7 +292,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
292
292
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
293
293
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
294
294
|
], 64))
|
|
295
|
-
], 8, _hoisted_4$
|
|
295
|
+
], 8, _hoisted_4$g),
|
|
296
296
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
297
297
|
key: 0,
|
|
298
298
|
ref_key: "switcherEl",
|
|
@@ -317,7 +317,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
317
317
|
fill: "currentColor"
|
|
318
318
|
})
|
|
319
319
|
], -1))
|
|
320
|
-
], 8, _hoisted_7$
|
|
320
|
+
], 8, _hoisted_7$8),
|
|
321
321
|
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
322
322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
323
323
|
return openBlock(), createElementBlock("a", {
|
|
@@ -482,10 +482,10 @@ const _hoisted_3$h = {
|
|
|
482
482
|
viewBox: "0 0 24 24",
|
|
483
483
|
"aria-hidden": "true"
|
|
484
484
|
};
|
|
485
|
-
const _hoisted_4$
|
|
485
|
+
const _hoisted_4$f = ["d"];
|
|
486
486
|
const _hoisted_5$b = { class: "toast-message" };
|
|
487
487
|
const _hoisted_6$8 = ["onClick"];
|
|
488
|
-
const _hoisted_7$
|
|
488
|
+
const _hoisted_7$7 = {
|
|
489
489
|
viewBox: "0 0 24 24",
|
|
490
490
|
"aria-hidden": "true"
|
|
491
491
|
};
|
|
@@ -536,7 +536,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
536
536
|
createElementVNode("path", {
|
|
537
537
|
d: ICON_PATHS[item.type],
|
|
538
538
|
fill: "currentColor"
|
|
539
|
-
}, null, 8, _hoisted_4$
|
|
539
|
+
}, null, 8, _hoisted_4$f)
|
|
540
540
|
])),
|
|
541
541
|
createElementVNode("span", _hoisted_5$b, toDisplayString(item.message), 1),
|
|
542
542
|
createElementVNode("button", {
|
|
@@ -545,7 +545,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
"aria-label": "닫기",
|
|
546
546
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
547
547
|
}, [
|
|
548
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
548
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$7, [
|
|
549
549
|
createElementVNode("path", {
|
|
550
550
|
d: ICON_PATHS.close,
|
|
551
551
|
fill: "currentColor"
|
|
@@ -668,10 +668,10 @@ const _hoisted_2$l = {
|
|
|
668
668
|
"aria-modal": "true"
|
|
669
669
|
};
|
|
670
670
|
const _hoisted_3$g = { class: "app-confirm__header" };
|
|
671
|
-
const _hoisted_4$
|
|
671
|
+
const _hoisted_4$e = { class: "app-confirm__title" };
|
|
672
672
|
const _hoisted_5$a = { class: "app-confirm__body" };
|
|
673
673
|
const _hoisted_6$7 = { class: "app-confirm__message" };
|
|
674
|
-
const _hoisted_7$
|
|
674
|
+
const _hoisted_7$6 = {
|
|
675
675
|
key: 0,
|
|
676
676
|
class: "app-confirm__require"
|
|
677
677
|
};
|
|
@@ -690,11 +690,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
690
690
|
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
691
691
|
createElementVNode("div", _hoisted_2$l, [
|
|
692
692
|
createElementVNode("div", _hoisted_3$g, [
|
|
693
|
-
createElementVNode("h3", _hoisted_4$
|
|
693
|
+
createElementVNode("h3", _hoisted_4$e, toDisplayString(unref(store).title), 1)
|
|
694
694
|
]),
|
|
695
695
|
createElementVNode("div", _hoisted_5$a, [
|
|
696
696
|
createElementVNode("p", _hoisted_6$7, toDisplayString(unref(store).message), 1),
|
|
697
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
697
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$6, [
|
|
698
698
|
createElementVNode("span", _hoisted_8$1, toDisplayString(unref(store).requireLabel || `계속하려면 ${unref(store).requireText} 를 입력하세요`), 1),
|
|
699
699
|
withDirectives(createElementVNode("input", {
|
|
700
700
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(store).typedText = $event),
|
|
@@ -950,7 +950,7 @@ const _hoisted_3$e = {
|
|
|
950
950
|
class: "lf-field__error",
|
|
951
951
|
role: "alert"
|
|
952
952
|
};
|
|
953
|
-
const _hoisted_4$
|
|
953
|
+
const _hoisted_4$d = {
|
|
954
954
|
key: 2,
|
|
955
955
|
class: "lf-field__hint"
|
|
956
956
|
};
|
|
@@ -977,7 +977,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
977
977
|
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$j, "*")) : createCommentVNode("", true)
|
|
978
978
|
], 8, _hoisted_1$k)) : createCommentVNode("", true),
|
|
979
979
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
980
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$e, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
980
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$e, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$d, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
981
981
|
], 2);
|
|
982
982
|
};
|
|
983
983
|
}
|
|
@@ -989,7 +989,7 @@ const _hoisted_2$i = {
|
|
|
989
989
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
990
990
|
};
|
|
991
991
|
const _hoisted_3$d = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
992
|
-
const _hoisted_4$
|
|
992
|
+
const _hoisted_4$c = ["aria-label"];
|
|
993
993
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
994
994
|
...{ inheritAttrs: false },
|
|
995
995
|
__name: "LfTextField",
|
|
@@ -1067,7 +1067,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1067
1067
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1068
1068
|
size: "1.125rem"
|
|
1069
1069
|
}, null, 8, ["name"])
|
|
1070
|
-
], 8, _hoisted_4$
|
|
1070
|
+
], 8, _hoisted_4$c)) : __props.clearable && !!model.value && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1071
1071
|
key: 2,
|
|
1072
1072
|
type: "button",
|
|
1073
1073
|
class: "lf-control-action",
|
|
@@ -1169,7 +1169,7 @@ const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data
|
|
|
1169
1169
|
const _hoisted_1$h = { class: "lf-control-wrap" };
|
|
1170
1170
|
const _hoisted_2$g = ["id", "disabled", "required", "aria-invalid"];
|
|
1171
1171
|
const _hoisted_3$c = ["disabled"];
|
|
1172
|
-
const _hoisted_4$
|
|
1172
|
+
const _hoisted_4$b = ["value", "disabled"];
|
|
1173
1173
|
const _hoisted_5$9 = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1174
1174
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1175
1175
|
...{ inheritAttrs: false },
|
|
@@ -1223,7 +1223,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1223
1223
|
key: String(opt.value),
|
|
1224
1224
|
value: opt.value,
|
|
1225
1225
|
disabled: opt.disabled
|
|
1226
|
-
}, toDisplayString(opt.label), 9, _hoisted_4$
|
|
1226
|
+
}, toDisplayString(opt.label), 9, _hoisted_4$b);
|
|
1227
1227
|
}), 128))
|
|
1228
1228
|
], 16, _hoisted_2$g), [
|
|
1229
1229
|
[vModelSelect, model.value]
|
|
@@ -1251,7 +1251,7 @@ const _hoisted_3$b = {
|
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
class: "lf-check__text"
|
|
1253
1253
|
};
|
|
1254
|
-
const _hoisted_4$
|
|
1254
|
+
const _hoisted_4$a = { class: "lf-check__label" };
|
|
1255
1255
|
const _hoisted_5$8 = {
|
|
1256
1256
|
key: 0,
|
|
1257
1257
|
class: "lf-check__desc"
|
|
@@ -1291,7 +1291,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1291
1291
|
})
|
|
1292
1292
|
]),
|
|
1293
1293
|
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$b, [
|
|
1294
|
-
createElementVNode("span", _hoisted_4$
|
|
1294
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
1295
1295
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1296
1296
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1297
1297
|
], true)
|
|
@@ -1312,7 +1312,7 @@ const _hoisted_3$a = {
|
|
|
1312
1312
|
key: 0,
|
|
1313
1313
|
class: "lf-switch__desc"
|
|
1314
1314
|
};
|
|
1315
|
-
const _hoisted_4$
|
|
1315
|
+
const _hoisted_4$9 = ["disabled"];
|
|
1316
1316
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1317
1317
|
...{ inheritAttrs: false },
|
|
1318
1318
|
__name: "LfSwitch",
|
|
@@ -1346,7 +1346,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1346
1346
|
type: "checkbox",
|
|
1347
1347
|
role: "switch",
|
|
1348
1348
|
disabled: __props.disabled
|
|
1349
|
-
}), null, 16, _hoisted_4$
|
|
1349
|
+
}), null, 16, _hoisted_4$9), [
|
|
1350
1350
|
[vModelCheckbox, model.value]
|
|
1351
1351
|
]),
|
|
1352
1352
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1370,13 +1370,13 @@ const _hoisted_2$d = {
|
|
|
1370
1370
|
"aria-hidden": "true"
|
|
1371
1371
|
};
|
|
1372
1372
|
const _hoisted_3$9 = ["name", "value", "disabled"];
|
|
1373
|
-
const _hoisted_4$
|
|
1373
|
+
const _hoisted_4$8 = { class: "lf-radio__text" };
|
|
1374
1374
|
const _hoisted_5$7 = { class: "lf-radio__label" };
|
|
1375
1375
|
const _hoisted_6$6 = {
|
|
1376
1376
|
key: 0,
|
|
1377
1377
|
class: "lf-radio__desc"
|
|
1378
1378
|
};
|
|
1379
|
-
const _hoisted_7$
|
|
1379
|
+
const _hoisted_7$5 = {
|
|
1380
1380
|
key: 1,
|
|
1381
1381
|
class: "lf-radio-group__error",
|
|
1382
1382
|
role: "alert"
|
|
@@ -1434,13 +1434,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1434
1434
|
class: "lf-radio__dot",
|
|
1435
1435
|
"aria-hidden": "true"
|
|
1436
1436
|
}, null, -1)),
|
|
1437
|
-
createElementVNode("span", _hoisted_4$
|
|
1437
|
+
createElementVNode("span", _hoisted_4$8, [
|
|
1438
1438
|
createElementVNode("span", _hoisted_5$7, toDisplayString(opt.label), 1),
|
|
1439
1439
|
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1440
1440
|
])
|
|
1441
1441
|
], 2);
|
|
1442
1442
|
}), 128)),
|
|
1443
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1443
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$5, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1444
1444
|
], 2);
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
@@ -1452,13 +1452,13 @@ const _hoisted_2$c = {
|
|
|
1452
1452
|
class: "lf-modal__header"
|
|
1453
1453
|
};
|
|
1454
1454
|
const _hoisted_3$8 = { class: "lf-modal__heading" };
|
|
1455
|
-
const _hoisted_4$
|
|
1455
|
+
const _hoisted_4$7 = ["id"];
|
|
1456
1456
|
const _hoisted_5$6 = {
|
|
1457
1457
|
key: 0,
|
|
1458
1458
|
class: "lf-modal__subtitle"
|
|
1459
1459
|
};
|
|
1460
1460
|
const _hoisted_6$5 = { class: "lf-modal__body" };
|
|
1461
|
-
const _hoisted_7$
|
|
1461
|
+
const _hoisted_7$4 = {
|
|
1462
1462
|
key: 1,
|
|
1463
1463
|
class: "lf-modal__footer"
|
|
1464
1464
|
};
|
|
@@ -1579,7 +1579,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1579
1579
|
createElementVNode("h2", {
|
|
1580
1580
|
id: unref(titleId),
|
|
1581
1581
|
class: "lf-modal__title"
|
|
1582
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1582
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$7),
|
|
1583
1583
|
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$6, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1584
1584
|
])
|
|
1585
1585
|
], true),
|
|
@@ -1594,7 +1594,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1594
1594
|
createElementVNode("div", _hoisted_6$5, [
|
|
1595
1595
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1596
1596
|
]),
|
|
1597
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1597
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$4, [
|
|
1598
1598
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1599
1599
|
])) : createCommentVNode("", true)
|
|
1600
1600
|
], 42, _hoisted_1$d)
|
|
@@ -1611,17 +1611,21 @@ const _hoisted_1$c = {
|
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
class: "lf-card__head"
|
|
1613
1613
|
};
|
|
1614
|
-
const _hoisted_2$b = {
|
|
1615
|
-
|
|
1614
|
+
const _hoisted_2$b = {
|
|
1615
|
+
key: 0,
|
|
1616
|
+
class: "lf-card__icon"
|
|
1617
|
+
};
|
|
1618
|
+
const _hoisted_3$7 = { class: "lf-card__title" };
|
|
1619
|
+
const _hoisted_4$6 = {
|
|
1616
1620
|
key: 1,
|
|
1617
1621
|
class: "lf-card__count"
|
|
1618
1622
|
};
|
|
1619
|
-
const
|
|
1623
|
+
const _hoisted_5$5 = {
|
|
1620
1624
|
key: 0,
|
|
1621
1625
|
class: "lf-card__actions"
|
|
1622
1626
|
};
|
|
1623
|
-
const
|
|
1624
|
-
const
|
|
1627
|
+
const _hoisted_6$4 = { class: "lf-card__body" };
|
|
1628
|
+
const _hoisted_7$3 = {
|
|
1625
1629
|
key: 1,
|
|
1626
1630
|
class: "lf-card__foot"
|
|
1627
1631
|
};
|
|
@@ -1643,44 +1647,50 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1643
1647
|
}, [
|
|
1644
1648
|
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$c, [
|
|
1645
1649
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1646
|
-
__props.icon || __props.iconPath ? (openBlock(),
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1650
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$b, [
|
|
1651
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1652
|
+
createVNode(LfIcon, {
|
|
1653
|
+
name: __props.icon,
|
|
1654
|
+
path: __props.iconPath,
|
|
1655
|
+
size: "1rem"
|
|
1656
|
+
}, null, 8, ["name", "path"])
|
|
1657
|
+
], true)
|
|
1658
|
+
])) : createCommentVNode("", true),
|
|
1659
|
+
createElementVNode("h3", _hoisted_3$7, toDisplayString(__props.title), 1),
|
|
1660
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1655
1661
|
], true),
|
|
1656
1662
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1657
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div",
|
|
1663
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
1658
1664
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1659
1665
|
])) : createCommentVNode("", true)
|
|
1660
1666
|
])) : createCommentVNode("", true),
|
|
1661
|
-
createElementVNode("div",
|
|
1667
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
1662
1668
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1663
1669
|
]),
|
|
1664
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer",
|
|
1670
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$3, [
|
|
1665
1671
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1666
1672
|
])) : createCommentVNode("", true)
|
|
1667
1673
|
], 2);
|
|
1668
1674
|
};
|
|
1669
1675
|
}
|
|
1670
1676
|
});
|
|
1671
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
1677
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-caad35ef"]]);
|
|
1672
1678
|
const _hoisted_1$b = { class: "lf-page-header" };
|
|
1673
1679
|
const _hoisted_2$a = { class: "lf-page-header__title-box" };
|
|
1674
1680
|
const _hoisted_3$6 = { class: "lf-page-header__title" };
|
|
1675
|
-
const _hoisted_4$
|
|
1681
|
+
const _hoisted_4$5 = {
|
|
1676
1682
|
key: 0,
|
|
1677
|
-
class: "lf-page-
|
|
1683
|
+
class: "lf-page-header__icon"
|
|
1678
1684
|
};
|
|
1679
1685
|
const _hoisted_5$4 = {
|
|
1680
1686
|
key: 0,
|
|
1681
|
-
class: "lf-page-
|
|
1687
|
+
class: "lf-page-header__count"
|
|
1682
1688
|
};
|
|
1683
1689
|
const _hoisted_6$3 = {
|
|
1690
|
+
key: 0,
|
|
1691
|
+
class: "lf-page-header__tools"
|
|
1692
|
+
};
|
|
1693
|
+
const _hoisted_7$2 = {
|
|
1684
1694
|
key: 1,
|
|
1685
1695
|
class: "lf-page-header__desc"
|
|
1686
1696
|
};
|
|
@@ -1700,25 +1710,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1700
1710
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
1701
1711
|
createElementVNode("div", _hoisted_2$a, [
|
|
1702
1712
|
createElementVNode("h1", _hoisted_3$6, [
|
|
1703
|
-
__props.icon || __props.iconPath ? (openBlock(),
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1713
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
|
|
1714
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1715
|
+
createVNode(LfIcon, {
|
|
1716
|
+
name: __props.icon,
|
|
1717
|
+
path: __props.iconPath,
|
|
1718
|
+
size: "1.375rem"
|
|
1719
|
+
}, null, 8, ["name", "path"])
|
|
1720
|
+
], true)
|
|
1721
|
+
])) : createCommentVNode("", true),
|
|
1710
1722
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
1711
1723
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1712
1724
|
], true)
|
|
1713
1725
|
]),
|
|
1714
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span",
|
|
1726
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$4, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1715
1727
|
]),
|
|
1716
|
-
hasTools.value ? (openBlock(), createElementBlock("div",
|
|
1728
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
1717
1729
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1718
1730
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1719
1731
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1720
1732
|
])) : createCommentVNode("", true),
|
|
1721
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p",
|
|
1733
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$2, [
|
|
1722
1734
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1723
1735
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1724
1736
|
], true)
|
|
@@ -1727,7 +1739,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1727
1739
|
};
|
|
1728
1740
|
}
|
|
1729
1741
|
});
|
|
1730
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
1742
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d368ef8"]]);
|
|
1731
1743
|
const _hoisted_1$a = {
|
|
1732
1744
|
key: 0,
|
|
1733
1745
|
class: "lf-badge__dot",
|
|
@@ -1786,7 +1798,7 @@ const _hoisted_2$8 = {
|
|
|
1786
1798
|
"aria-hidden": "true"
|
|
1787
1799
|
};
|
|
1788
1800
|
const _hoisted_3$5 = { class: "lf-alert__body" };
|
|
1789
|
-
const _hoisted_4$
|
|
1801
|
+
const _hoisted_4$4 = {
|
|
1790
1802
|
key: 0,
|
|
1791
1803
|
class: "lf-alert__title"
|
|
1792
1804
|
};
|
|
@@ -1821,14 +1833,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1821
1833
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1822
1834
|
}, [
|
|
1823
1835
|
createElementVNode("span", _hoisted_2$8, [
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1836
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1837
|
+
createVNode(LfIcon, {
|
|
1838
|
+
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
1839
|
+
path: __props.iconPath,
|
|
1840
|
+
size: __props.dense ? "0.9375rem" : "1.0625rem"
|
|
1841
|
+
}, null, 8, ["name", "path", "size"])
|
|
1842
|
+
], true)
|
|
1829
1843
|
]),
|
|
1830
1844
|
createElementVNode("div", _hoisted_3$5, [
|
|
1831
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1845
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$4, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1832
1846
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1833
1847
|
key: 1,
|
|
1834
1848
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1853,7 +1867,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1853
1867
|
};
|
|
1854
1868
|
}
|
|
1855
1869
|
});
|
|
1856
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
1870
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-62839786"]]);
|
|
1857
1871
|
const _hoisted_1$8 = ["title"];
|
|
1858
1872
|
const _hoisted_2$7 = ["src", "alt"];
|
|
1859
1873
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -1902,7 +1916,7 @@ const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v
|
|
|
1902
1916
|
const _hoisted_1$7 = { class: "lf-table-wrap" };
|
|
1903
1917
|
const _hoisted_2$6 = ["aria-sort"];
|
|
1904
1918
|
const _hoisted_3$4 = ["onClick"];
|
|
1905
|
-
const _hoisted_4$
|
|
1919
|
+
const _hoisted_4$3 = { key: 1 };
|
|
1906
1920
|
const _hoisted_5$2 = ["colspan"];
|
|
1907
1921
|
const _hoisted_6$2 = ["tabindex", "onClick", "onKeydown"];
|
|
1908
1922
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -1986,7 +2000,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1986
2000
|
])], 2);
|
|
1987
2001
|
}), 128))
|
|
1988
2002
|
]);
|
|
1989
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$
|
|
2003
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$3, [
|
|
1990
2004
|
createElementVNode("td", {
|
|
1991
2005
|
class: "lf-table__empty",
|
|
1992
2006
|
colspan: __props.columns.length
|
|
@@ -2036,7 +2050,7 @@ const _hoisted_3$3 = {
|
|
|
2036
2050
|
key: 1,
|
|
2037
2051
|
class: "lf-pagination__btns"
|
|
2038
2052
|
};
|
|
2039
|
-
const _hoisted_4$
|
|
2053
|
+
const _hoisted_4$2 = ["disabled"];
|
|
2040
2054
|
const _hoisted_5$1 = {
|
|
2041
2055
|
key: 0,
|
|
2042
2056
|
class: "lf-pagination__gap",
|
|
@@ -2103,7 +2117,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2103
2117
|
name: "chevron_left",
|
|
2104
2118
|
size: "1rem"
|
|
2105
2119
|
})
|
|
2106
|
-
], 8, _hoisted_4$
|
|
2120
|
+
], 8, _hoisted_4$2),
|
|
2107
2121
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2108
2122
|
return openBlock(), createElementBlock(Fragment, {
|
|
2109
2123
|
key: `${p}-${i2}`
|
|
@@ -2135,12 +2149,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2135
2149
|
}
|
|
2136
2150
|
});
|
|
2137
2151
|
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-53fce087"]]);
|
|
2138
|
-
const _hoisted_1$5 = {
|
|
2139
|
-
|
|
2152
|
+
const _hoisted_1$5 = {
|
|
2153
|
+
key: 0,
|
|
2154
|
+
class: "lf-empty__icon"
|
|
2155
|
+
};
|
|
2156
|
+
const _hoisted_2$4 = { class: "lf-empty__title" };
|
|
2157
|
+
const _hoisted_3$2 = {
|
|
2140
2158
|
key: 1,
|
|
2141
2159
|
class: "lf-empty__desc"
|
|
2142
2160
|
};
|
|
2143
|
-
const
|
|
2161
|
+
const _hoisted_4$1 = {
|
|
2144
2162
|
key: 2,
|
|
2145
2163
|
class: "lf-empty__action"
|
|
2146
2164
|
};
|
|
@@ -2151,38 +2169,41 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2151
2169
|
description: {},
|
|
2152
2170
|
icon: {},
|
|
2153
2171
|
iconPath: {},
|
|
2154
|
-
tone: { default: "muted" }
|
|
2172
|
+
tone: { default: "muted" },
|
|
2173
|
+
dense: { type: Boolean }
|
|
2155
2174
|
},
|
|
2156
2175
|
setup(__props) {
|
|
2157
2176
|
return (_ctx, _cache) => {
|
|
2158
2177
|
return openBlock(), createElementBlock("div", {
|
|
2159
|
-
class: normalizeClass(["lf-empty", `lf-empty--${__props.tone}
|
|
2178
|
+
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2160
2179
|
}, [
|
|
2161
|
-
__props.icon || __props.iconPath ? (openBlock(),
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2180
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$5, [
|
|
2181
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2182
|
+
createVNode(LfIcon, {
|
|
2183
|
+
name: __props.icon,
|
|
2184
|
+
path: __props.iconPath,
|
|
2185
|
+
size: "2.5rem"
|
|
2186
|
+
}, null, 8, ["name", "path"])
|
|
2187
|
+
], true)
|
|
2188
|
+
])) : createCommentVNode("", true),
|
|
2189
|
+
createElementVNode("p", _hoisted_2$4, [
|
|
2169
2190
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2170
2191
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2171
2192
|
], true)
|
|
2172
2193
|
]),
|
|
2173
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p",
|
|
2194
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$2, [
|
|
2174
2195
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2175
2196
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2176
2197
|
], true)
|
|
2177
2198
|
])) : createCommentVNode("", true),
|
|
2178
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div",
|
|
2199
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
2179
2200
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2180
2201
|
])) : createCommentVNode("", true)
|
|
2181
2202
|
], 2);
|
|
2182
2203
|
};
|
|
2183
2204
|
}
|
|
2184
2205
|
});
|
|
2185
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
2206
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2186
2207
|
const _hoisted_1$4 = {
|
|
2187
2208
|
key: 0,
|
|
2188
2209
|
class: "lf-skeleton-group",
|
|
@@ -2268,11 +2289,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2268
2289
|
}, {
|
|
2269
2290
|
default: withCtx(() => [
|
|
2270
2291
|
createElementVNode("span", _hoisted_1$3, [
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2292
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2293
|
+
createVNode(LfIcon, {
|
|
2294
|
+
name: __props.icon,
|
|
2295
|
+
path: __props.iconPath,
|
|
2296
|
+
size: "1.125rem"
|
|
2297
|
+
}, null, 8, ["name", "path"])
|
|
2298
|
+
], true)
|
|
2276
2299
|
]),
|
|
2277
2300
|
createElementVNode("div", _hoisted_2$3, [
|
|
2278
2301
|
createElementVNode("div", _hoisted_3$1, toDisplayString(__props.label), 1),
|
|
@@ -2302,7 +2325,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2302
2325
|
};
|
|
2303
2326
|
}
|
|
2304
2327
|
});
|
|
2305
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
2328
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a80fddaf"]]);
|
|
2306
2329
|
const _hoisted_1$2 = ["aria-describedby"];
|
|
2307
2330
|
const _hoisted_2$2 = ["id"];
|
|
2308
2331
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -2490,6 +2513,7 @@ function createApiClient(options) {
|
|
|
2490
2513
|
const {
|
|
2491
2514
|
baseUrl,
|
|
2492
2515
|
refreshPath = DEFAULT_REFRESH_PATH,
|
|
2516
|
+
refreshUrl = `${baseUrl}${refreshPath}`,
|
|
2493
2517
|
isAuthPath = (url) => url.includes("/api/v1/auth/"),
|
|
2494
2518
|
onUnauthorized,
|
|
2495
2519
|
onActivity
|
|
@@ -2498,7 +2522,7 @@ function createApiClient(options) {
|
|
|
2498
2522
|
let refreshing = null;
|
|
2499
2523
|
let notified = false;
|
|
2500
2524
|
function tryRefresh() {
|
|
2501
|
-
refreshing ?? (refreshing = baseFetch(
|
|
2525
|
+
refreshing ?? (refreshing = baseFetch(refreshUrl, {
|
|
2502
2526
|
method: "POST",
|
|
2503
2527
|
credentials: "include"
|
|
2504
2528
|
}).then((r) => r.ok).catch(() => false).finally(() => {
|