@loafacto/ui 0.15.3 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/LfTransitionList.vue.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +184 -66
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +464 -309
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -156,7 +156,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
156
156
|
}
|
|
157
157
|
return target;
|
|
158
158
|
};
|
|
159
|
-
const _sfc_main$
|
|
159
|
+
const _sfc_main$A = {};
|
|
160
160
|
const _hoisted_1$x = {
|
|
161
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
162
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
@@ -167,8 +167,8 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
167
167
|
createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
|
|
168
168
|
])]);
|
|
169
169
|
}
|
|
170
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
171
|
-
const _sfc_main$
|
|
170
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$1]]);
|
|
171
|
+
const _sfc_main$z = {};
|
|
172
172
|
const _hoisted_1$w = {
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
viewBox: "30 -4 142 168",
|
|
@@ -198,7 +198,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
198
198
|
}, null, -1)
|
|
199
199
|
])]);
|
|
200
200
|
}
|
|
201
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
201
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render]]);
|
|
202
202
|
const _hoisted_1$v = { class: "lf-topbar" };
|
|
203
203
|
const _hoisted_2$r = { class: "lf-topbar__inner" };
|
|
204
204
|
const _hoisted_3$m = ["aria-label", "title", "aria-expanded"];
|
|
@@ -268,7 +268,7 @@ const _hoisted_32 = { class: "site-footer-inner" };
|
|
|
268
268
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
269
269
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
270
270
|
const RAIL_KEY = "lf-rail-hidden";
|
|
271
|
-
const _sfc_main$
|
|
271
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
272
272
|
__name: "AppShell",
|
|
273
273
|
props: {
|
|
274
274
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -591,7 +591,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
594
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-7b2df3a9"]]);
|
|
595
595
|
function generateId() {
|
|
596
596
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
597
597
|
}
|
|
@@ -644,7 +644,7 @@ const _hoisted_7$9 = {
|
|
|
644
644
|
"aria-hidden": "true"
|
|
645
645
|
};
|
|
646
646
|
const _hoisted_8$4 = ["d"];
|
|
647
|
-
const _sfc_main$
|
|
647
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
648
648
|
__name: "AppToast",
|
|
649
649
|
setup(__props) {
|
|
650
650
|
const toastStore = useToastStore();
|
|
@@ -716,7 +716,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
});
|
|
719
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
719
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-58e54e0c"]]);
|
|
720
720
|
const useLoadingStore = defineStore("loading", () => {
|
|
721
721
|
const count = ref(0);
|
|
722
722
|
const loading = computed(() => count.value > 0);
|
|
@@ -743,7 +743,7 @@ const _hoisted_1$t = {
|
|
|
743
743
|
"aria-live": "polite",
|
|
744
744
|
"aria-label": "로딩 중"
|
|
745
745
|
};
|
|
746
|
-
const _sfc_main$
|
|
746
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
747
747
|
__name: "AppLoadingOverlay",
|
|
748
748
|
setup(__props) {
|
|
749
749
|
const loadingStore = useLoadingStore();
|
|
@@ -764,7 +764,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
767
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
768
768
|
const useConfirmStore = defineStore("confirm", () => {
|
|
769
769
|
const open = ref(false);
|
|
770
770
|
const title = ref("확인");
|
|
@@ -832,7 +832,7 @@ const _hoisted_7$8 = {
|
|
|
832
832
|
const _hoisted_8$3 = { class: "app-confirm__require-label" };
|
|
833
833
|
const _hoisted_9$1 = { class: "app-confirm__actions" };
|
|
834
834
|
const _hoisted_10$1 = ["disabled"];
|
|
835
|
-
const _sfc_main$
|
|
835
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
836
836
|
__name: "AppConfirmModal",
|
|
837
837
|
setup(__props) {
|
|
838
838
|
const store = useConfirmStore();
|
|
@@ -905,7 +905,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
908
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-561536f9"]]);
|
|
909
909
|
const LF_ICONS = {
|
|
910
910
|
close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
|
|
911
911
|
search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z",
|
|
@@ -948,7 +948,7 @@ const LF_ICONS = {
|
|
|
948
948
|
const _hoisted_1$r = ["role", "aria-label", "aria-hidden"];
|
|
949
949
|
const _hoisted_2$o = { key: 0 };
|
|
950
950
|
const _hoisted_3$j = ["d"];
|
|
951
|
-
const _sfc_main$
|
|
951
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
952
952
|
__name: "LfIcon",
|
|
953
953
|
props: {
|
|
954
954
|
name: {},
|
|
@@ -981,9 +981,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
|
-
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
984
|
+
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b70b3868"]]);
|
|
985
985
|
const _hoisted_1$q = ["role", "aria-label", "aria-hidden"];
|
|
986
|
-
const _sfc_main$
|
|
986
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
987
987
|
__name: "LfSpinner",
|
|
988
988
|
props: {
|
|
989
989
|
size: { default: "1.25rem" },
|
|
@@ -1019,12 +1019,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
});
|
|
1022
|
-
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1022
|
+
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4aedf6b0"]]);
|
|
1023
1023
|
const _hoisted_1$p = {
|
|
1024
1024
|
key: 2,
|
|
1025
1025
|
class: "lf-btn__label"
|
|
1026
1026
|
};
|
|
1027
|
-
const _sfc_main$
|
|
1027
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1028
1028
|
__name: "LfButton",
|
|
1029
1029
|
props: {
|
|
1030
1030
|
variant: { default: "ghost" },
|
|
@@ -1074,8 +1074,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1078
|
-
const _sfc_main$
|
|
1077
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
1078
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1079
1079
|
__name: "LfIconButton",
|
|
1080
1080
|
props: {
|
|
1081
1081
|
icon: {},
|
|
@@ -1120,7 +1120,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
1123
|
-
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1123
|
+
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-6af12755"]]);
|
|
1124
1124
|
const _hoisted_1$o = ["for"];
|
|
1125
1125
|
const _hoisted_2$n = {
|
|
1126
1126
|
key: 0,
|
|
@@ -1136,7 +1136,7 @@ const _hoisted_4$g = {
|
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
class: "lf-field__hint"
|
|
1138
1138
|
};
|
|
1139
|
-
const _sfc_main$
|
|
1139
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1140
1140
|
__name: "LfField",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
label: {},
|
|
@@ -1164,7 +1164,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
|
-
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1167
|
+
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-38509e4d"]]);
|
|
1168
1168
|
function useSplitAttrs() {
|
|
1169
1169
|
const attrs = useAttrs();
|
|
1170
1170
|
const rootAttrs = computed(() => ({ class: attrs.class, style: attrs.style }));
|
|
@@ -1185,7 +1185,7 @@ const _hoisted_4$f = {
|
|
|
1185
1185
|
class: "lf-control-wrap__suffix"
|
|
1186
1186
|
};
|
|
1187
1187
|
const _hoisted_5$c = ["aria-label"];
|
|
1188
|
-
const _sfc_main$
|
|
1188
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1189
1189
|
...{ inheritAttrs: false },
|
|
1190
1190
|
__name: "LfTextField",
|
|
1191
1191
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1293,13 +1293,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1293
1293
|
};
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1296
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e113043f"]]);
|
|
1297
1297
|
const _hoisted_1$m = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1298
1298
|
const _hoisted_2$l = {
|
|
1299
1299
|
key: 0,
|
|
1300
1300
|
class: "lf-textarea__counter"
|
|
1301
1301
|
};
|
|
1302
|
-
const _sfc_main$
|
|
1302
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1303
1303
|
...{ inheritAttrs: false },
|
|
1304
1304
|
__name: "LfTextarea",
|
|
1305
1305
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1373,13 +1373,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
1376
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1376
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-81fbed25"]]);
|
|
1377
1377
|
const _hoisted_1$l = { class: "lf-control-wrap" };
|
|
1378
1378
|
const _hoisted_2$k = ["id", "disabled", "required", "aria-invalid"];
|
|
1379
1379
|
const _hoisted_3$g = ["disabled"];
|
|
1380
1380
|
const _hoisted_4$e = ["value", "disabled"];
|
|
1381
1381
|
const _hoisted_5$b = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1382
|
-
const _sfc_main$
|
|
1382
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1383
1383
|
...{ inheritAttrs: false },
|
|
1384
1384
|
__name: "LfSelect",
|
|
1385
1385
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1458,7 +1458,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1458
1458
|
};
|
|
1459
1459
|
}
|
|
1460
1460
|
});
|
|
1461
|
-
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1461
|
+
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-01fa2b3e"]]);
|
|
1462
1462
|
const _hoisted_1$k = ["disabled", "value"];
|
|
1463
1463
|
const _hoisted_2$j = {
|
|
1464
1464
|
class: "lf-check__box",
|
|
@@ -1473,7 +1473,7 @@ const _hoisted_5$a = {
|
|
|
1473
1473
|
key: 0,
|
|
1474
1474
|
class: "lf-check__desc"
|
|
1475
1475
|
};
|
|
1476
|
-
const _sfc_main$
|
|
1476
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1477
1477
|
...{ inheritAttrs: false },
|
|
1478
1478
|
__name: "LfCheckbox",
|
|
1479
1479
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1519,7 +1519,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
1521
|
});
|
|
1522
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1522
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a86332f0"]]);
|
|
1523
1523
|
const _hoisted_1$j = {
|
|
1524
1524
|
key: 0,
|
|
1525
1525
|
class: "lf-switch__text"
|
|
@@ -1530,7 +1530,7 @@ const _hoisted_3$e = {
|
|
|
1530
1530
|
class: "lf-switch__desc"
|
|
1531
1531
|
};
|
|
1532
1532
|
const _hoisted_4$c = ["disabled"];
|
|
1533
|
-
const _sfc_main$
|
|
1533
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1534
1534
|
...{ inheritAttrs: false },
|
|
1535
1535
|
__name: "LfSwitch",
|
|
1536
1536
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1576,7 +1576,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1576
1576
|
};
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
1579
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1579
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1580
1580
|
const _hoisted_1$i = {
|
|
1581
1581
|
key: 0,
|
|
1582
1582
|
class: "lf-radio-group__legend"
|
|
@@ -1602,7 +1602,7 @@ const _hoisted_8$2 = {
|
|
|
1602
1602
|
key: 2,
|
|
1603
1603
|
class: "lf-radio-group__hint"
|
|
1604
1604
|
};
|
|
1605
|
-
const _sfc_main$
|
|
1605
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1606
1606
|
__name: "LfRadioGroup",
|
|
1607
1607
|
props: /* @__PURE__ */ mergeModels({
|
|
1608
1608
|
options: { default: () => [] },
|
|
@@ -1662,7 +1662,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
1664
|
});
|
|
1665
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1665
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-cffad147"]]);
|
|
1666
1666
|
const _hoisted_1$h = ["aria-labelledby", "aria-label"];
|
|
1667
1667
|
const _hoisted_2$g = {
|
|
1668
1668
|
key: 0,
|
|
@@ -1679,7 +1679,7 @@ const _hoisted_7$6 = {
|
|
|
1679
1679
|
key: 1,
|
|
1680
1680
|
class: "lf-modal__footer"
|
|
1681
1681
|
};
|
|
1682
|
-
const _sfc_main$
|
|
1682
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1683
1683
|
__name: "LfModal",
|
|
1684
1684
|
props: /* @__PURE__ */ mergeModels({
|
|
1685
1685
|
title: {},
|
|
@@ -1824,7 +1824,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1827
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-da4a649b"]]);
|
|
1828
1828
|
const _hoisted_1$g = {
|
|
1829
1829
|
key: 0,
|
|
1830
1830
|
class: "lf-card__head"
|
|
@@ -1847,7 +1847,7 @@ const _hoisted_7$5 = {
|
|
|
1847
1847
|
key: 1,
|
|
1848
1848
|
class: "lf-card__foot"
|
|
1849
1849
|
};
|
|
1850
|
-
const _sfc_main$
|
|
1850
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1851
1851
|
__name: "LfCard",
|
|
1852
1852
|
props: {
|
|
1853
1853
|
title: {},
|
|
@@ -1892,7 +1892,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1895
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-3ffcb11e"]]);
|
|
1896
1896
|
const _hoisted_1$f = { class: "lf-page-header" };
|
|
1897
1897
|
const _hoisted_2$e = { class: "lf-page-header__title-box" };
|
|
1898
1898
|
const _hoisted_3$a = { class: "lf-page-header__title" };
|
|
@@ -1912,7 +1912,7 @@ const _hoisted_7$4 = {
|
|
|
1912
1912
|
key: 1,
|
|
1913
1913
|
class: "lf-page-header__desc"
|
|
1914
1914
|
};
|
|
1915
|
-
const _sfc_main$
|
|
1915
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1916
1916
|
__name: "LfPageHeader",
|
|
1917
1917
|
props: {
|
|
1918
1918
|
title: {},
|
|
@@ -1957,14 +1957,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
1959
1959
|
});
|
|
1960
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1960
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1961
1961
|
const _hoisted_1$e = {
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
class: "lf-badge__dot",
|
|
1964
1964
|
"aria-hidden": "true"
|
|
1965
1965
|
};
|
|
1966
1966
|
const _hoisted_2$d = ["aria-label"];
|
|
1967
|
-
const _sfc_main$
|
|
1967
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1968
1968
|
__name: "LfBadge",
|
|
1969
1969
|
props: {
|
|
1970
1970
|
label: {},
|
|
@@ -2009,7 +2009,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2012
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b55cda7f"]]);
|
|
2013
2013
|
const _hoisted_1$d = ["role"];
|
|
2014
2014
|
const _hoisted_2$c = {
|
|
2015
2015
|
class: "lf-alert__badge",
|
|
@@ -2024,7 +2024,7 @@ const _hoisted_5$5 = {
|
|
|
2024
2024
|
key: 2,
|
|
2025
2025
|
class: "lf-alert__actions"
|
|
2026
2026
|
};
|
|
2027
|
-
const _sfc_main$
|
|
2027
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2028
2028
|
__name: "LfAlert",
|
|
2029
2029
|
props: {
|
|
2030
2030
|
tone: { default: "info" },
|
|
@@ -2085,10 +2085,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
2087
|
});
|
|
2088
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2088
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-62839786"]]);
|
|
2089
2089
|
const _hoisted_1$c = ["title"];
|
|
2090
2090
|
const _hoisted_2$b = ["src", "alt"];
|
|
2091
|
-
const _sfc_main$
|
|
2091
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2092
2092
|
__name: "LfAvatar",
|
|
2093
2093
|
props: {
|
|
2094
2094
|
name: {},
|
|
@@ -2130,14 +2130,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2133
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-61adf36e"]]);
|
|
2134
2134
|
const _hoisted_1$b = { class: "lf-table-wrap" };
|
|
2135
2135
|
const _hoisted_2$a = ["aria-sort"];
|
|
2136
2136
|
const _hoisted_3$8 = ["onClick"];
|
|
2137
2137
|
const _hoisted_4$6 = { key: 1 };
|
|
2138
2138
|
const _hoisted_5$4 = ["colspan"];
|
|
2139
2139
|
const _hoisted_6$4 = ["tabindex", "onClick", "onKeydown"];
|
|
2140
|
-
const _sfc_main$
|
|
2140
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2141
2141
|
__name: "LfTable",
|
|
2142
2142
|
props: {
|
|
2143
2143
|
columns: {},
|
|
@@ -2258,7 +2258,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2258
2258
|
};
|
|
2259
2259
|
}
|
|
2260
2260
|
});
|
|
2261
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2261
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dc7b5ff5"]]);
|
|
2262
2262
|
const _hoisted_1$a = ["aria-label"];
|
|
2263
2263
|
const _hoisted_2$9 = {
|
|
2264
2264
|
key: 0,
|
|
@@ -2277,7 +2277,7 @@ const _hoisted_5$3 = {
|
|
|
2277
2277
|
const _hoisted_6$3 = ["aria-current", "onClick"];
|
|
2278
2278
|
const _hoisted_7$3 = ["disabled"];
|
|
2279
2279
|
const ELLIPSIS = -1;
|
|
2280
|
-
const _sfc_main$
|
|
2280
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2281
2281
|
__name: "LfPagination",
|
|
2282
2282
|
props: /* @__PURE__ */ mergeModels({
|
|
2283
2283
|
total: { default: 0 },
|
|
@@ -2366,7 +2366,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2369
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-be847541"]]);
|
|
2370
2370
|
const _hoisted_1$9 = {
|
|
2371
2371
|
key: 0,
|
|
2372
2372
|
class: "lf-empty__icon"
|
|
@@ -2380,7 +2380,7 @@ const _hoisted_4$4 = {
|
|
|
2380
2380
|
key: 2,
|
|
2381
2381
|
class: "lf-empty__action"
|
|
2382
2382
|
};
|
|
2383
|
-
const _sfc_main$
|
|
2383
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2384
2384
|
__name: "LfEmptyState",
|
|
2385
2385
|
props: {
|
|
2386
2386
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2421,14 +2421,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2421
2421
|
};
|
|
2422
2422
|
}
|
|
2423
2423
|
});
|
|
2424
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2424
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2425
2425
|
const _hoisted_1$8 = {
|
|
2426
2426
|
key: 0,
|
|
2427
2427
|
class: "lf-skeleton-group",
|
|
2428
2428
|
"aria-busy": true,
|
|
2429
2429
|
"aria-live": "polite"
|
|
2430
2430
|
};
|
|
2431
|
-
const _sfc_main$
|
|
2431
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2432
2432
|
__name: "LfSkeleton",
|
|
2433
2433
|
props: {
|
|
2434
2434
|
variant: { default: "text" },
|
|
@@ -2460,7 +2460,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
2462
|
});
|
|
2463
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2463
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-a01556ce"]]);
|
|
2464
2464
|
const _hoisted_1$7 = {
|
|
2465
2465
|
class: "lf-stat__badge",
|
|
2466
2466
|
"aria-hidden": "true"
|
|
@@ -2477,7 +2477,7 @@ const _hoisted_7$2 = {
|
|
|
2477
2477
|
key: 0,
|
|
2478
2478
|
class: "lf-stat__hint"
|
|
2479
2479
|
};
|
|
2480
|
-
const _sfc_main$
|
|
2480
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2481
2481
|
__name: "LfStatCard",
|
|
2482
2482
|
props: {
|
|
2483
2483
|
label: {},
|
|
@@ -2543,10 +2543,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2543
2543
|
};
|
|
2544
2544
|
}
|
|
2545
2545
|
});
|
|
2546
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2546
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ddc6565d"]]);
|
|
2547
2547
|
const _hoisted_1$6 = ["aria-describedby"];
|
|
2548
2548
|
const _hoisted_2$6 = ["id"];
|
|
2549
|
-
const _sfc_main$
|
|
2549
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2550
2550
|
__name: "LfTooltip",
|
|
2551
2551
|
props: {
|
|
2552
2552
|
text: {},
|
|
@@ -2577,14 +2577,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2577
2577
|
};
|
|
2578
2578
|
}
|
|
2579
2579
|
});
|
|
2580
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2580
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2581
2581
|
const _hoisted_1$5 = ["disabled", "onClick"];
|
|
2582
2582
|
const _hoisted_2$5 = { class: "lf-menu__item-text" };
|
|
2583
2583
|
const _hoisted_3$4 = {
|
|
2584
2584
|
key: 0,
|
|
2585
2585
|
class: "lf-menu__item-desc"
|
|
2586
2586
|
};
|
|
2587
|
-
const _sfc_main$
|
|
2587
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2588
2588
|
__name: "LfMenu",
|
|
2589
2589
|
props: {
|
|
2590
2590
|
items: { default: () => [] },
|
|
@@ -2689,7 +2689,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2689
2689
|
};
|
|
2690
2690
|
}
|
|
2691
2691
|
});
|
|
2692
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2692
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0318782c"]]);
|
|
2693
2693
|
const _hoisted_1$4 = { class: "lf-rail__list" };
|
|
2694
2694
|
const _hoisted_2$4 = {
|
|
2695
2695
|
key: 0,
|
|
@@ -2705,7 +2705,7 @@ const _hoisted_5$1 = {
|
|
|
2705
2705
|
const _hoisted_6$1 = { class: "lf-rail__name" };
|
|
2706
2706
|
const _hoisted_7$1 = { class: "lf-rail__short" };
|
|
2707
2707
|
const _hoisted_8$1 = { class: "lf-rail__long" };
|
|
2708
|
-
const _sfc_main$
|
|
2708
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2709
2709
|
__name: "LfNavRail",
|
|
2710
2710
|
props: {
|
|
2711
2711
|
items: {},
|
|
@@ -2765,7 +2765,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2765
2765
|
};
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2768
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1af1c379"]]);
|
|
2769
2769
|
const _hoisted_1$3 = ["aria-label"];
|
|
2770
2770
|
const _hoisted_2$3 = ["aria-checked", "aria-label", "title", "disabled", "onClick"];
|
|
2771
2771
|
const _hoisted_3$2 = {
|
|
@@ -2776,7 +2776,7 @@ const _hoisted_4$1 = {
|
|
|
2776
2776
|
key: 2,
|
|
2777
2777
|
class: "lf-seg__badge"
|
|
2778
2778
|
};
|
|
2779
|
-
const _sfc_main$
|
|
2779
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2780
2780
|
__name: "LfSegmented",
|
|
2781
2781
|
props: /* @__PURE__ */ mergeModels({
|
|
2782
2782
|
options: { default: () => [] },
|
|
@@ -2796,16 +2796,43 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2796
2796
|
const normalized = computed(
|
|
2797
2797
|
() => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
2798
2798
|
);
|
|
2799
|
+
const root = useTemplateRef("root");
|
|
2800
|
+
const thumb = ref(null);
|
|
2801
|
+
function measure() {
|
|
2802
|
+
var _a;
|
|
2803
|
+
const el = (_a = root.value) == null ? void 0 : _a.querySelector(".lf-seg__btn--on");
|
|
2804
|
+
thumb.value = el ? { x: el.offsetLeft, w: el.offsetWidth } : null;
|
|
2805
|
+
}
|
|
2806
|
+
watch(() => [model.value, normalized.value.length], () => {
|
|
2807
|
+
void nextTick(measure);
|
|
2808
|
+
});
|
|
2809
|
+
let ro = null;
|
|
2810
|
+
onMounted(() => {
|
|
2811
|
+
measure();
|
|
2812
|
+
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
2813
|
+
ro = new ResizeObserver(() => measure());
|
|
2814
|
+
ro.observe(root.value);
|
|
2815
|
+
}
|
|
2816
|
+
});
|
|
2817
|
+
onBeforeUnmount(() => ro == null ? void 0 : ro.disconnect());
|
|
2799
2818
|
function iconOf(opt) {
|
|
2800
2819
|
if (!opt.icon) return {};
|
|
2801
2820
|
return opt.icon in LF_ICONS ? { name: opt.icon } : { path: opt.icon };
|
|
2802
2821
|
}
|
|
2803
2822
|
return (_ctx, _cache) => {
|
|
2804
2823
|
return openBlock(), createElementBlock("div", {
|
|
2805
|
-
|
|
2824
|
+
ref_key: "root",
|
|
2825
|
+
ref: root,
|
|
2826
|
+
class: normalizeClass(["lf-seg", [`lf-seg--${__props.size}`, { "lf-seg--block": __props.block, "lf-seg--thumb": thumb.value }]]),
|
|
2806
2827
|
role: "radiogroup",
|
|
2807
2828
|
"aria-label": __props.ariaLabel
|
|
2808
2829
|
}, [
|
|
2830
|
+
thumb.value ? (openBlock(), createElementBlock("span", {
|
|
2831
|
+
key: 0,
|
|
2832
|
+
class: "lf-seg__thumb",
|
|
2833
|
+
style: normalizeStyle({ transform: `translateX(${thumb.value.x}px)`, width: `${thumb.value.w}px` }),
|
|
2834
|
+
"aria-hidden": "true"
|
|
2835
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
2809
2836
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
2810
2837
|
return openBlock(), createElementBlock("button", {
|
|
2811
2838
|
key: String(opt.value),
|
|
@@ -2830,7 +2857,97 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2830
2857
|
};
|
|
2831
2858
|
}
|
|
2832
2859
|
});
|
|
2833
|
-
const LfSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2860
|
+
const LfSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-474f0f2f"]]);
|
|
2861
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2862
|
+
__name: "LfTransitionList",
|
|
2863
|
+
props: {
|
|
2864
|
+
tag: { default: "div" },
|
|
2865
|
+
max: { default: 8 }
|
|
2866
|
+
},
|
|
2867
|
+
setup(__props) {
|
|
2868
|
+
const props = __props;
|
|
2869
|
+
let batch = [];
|
|
2870
|
+
let scheduled = false;
|
|
2871
|
+
const reduced = () => {
|
|
2872
|
+
var _a;
|
|
2873
|
+
return typeof window !== "undefined" && ((_a = window.matchMedia) == null ? void 0 : _a.call(window, "(prefers-reduced-motion: reduce)").matches);
|
|
2874
|
+
};
|
|
2875
|
+
const tok = (name, fb) => {
|
|
2876
|
+
const v = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
|
|
2877
|
+
const n = parseFloat(v);
|
|
2878
|
+
return Number.isFinite(n) ? v.endsWith("s") && !v.endsWith("ms") ? n * 1e3 : n : fb;
|
|
2879
|
+
};
|
|
2880
|
+
const ease = (name, fb) => getComputedStyle(document.documentElement).getPropertyValue(name).trim() || fb;
|
|
2881
|
+
function box(el) {
|
|
2882
|
+
const cs = getComputedStyle(el);
|
|
2883
|
+
const inner = cs.boxSizing === "border-box" ? el.offsetHeight : el.offsetHeight - parseFloat(cs.paddingTop) - parseFloat(cs.paddingBottom) - parseFloat(cs.borderTopWidth) - parseFloat(cs.borderBottomWidth);
|
|
2884
|
+
return { height: `${inner}px`, paddingTop: cs.paddingTop, paddingBottom: cs.paddingBottom, marginTop: cs.marginTop, marginBottom: cs.marginBottom };
|
|
2885
|
+
}
|
|
2886
|
+
const FLAT = { height: "0px", paddingTop: "0px", paddingBottom: "0px", marginTop: "0px", marginBottom: "0px" };
|
|
2887
|
+
const HIDE = [["opacity", "0"], ["height", "0px"], ["padding-top", "0px"], ["padding-bottom", "0px"], ["margin-top", "0px"], ["margin-bottom", "0px"], ["overflow", "hidden"]];
|
|
2888
|
+
const hide = (el) => {
|
|
2889
|
+
for (const [k, v] of HIDE) el.style.setProperty(k, v);
|
|
2890
|
+
};
|
|
2891
|
+
const unhide = (el) => {
|
|
2892
|
+
for (const [k] of HIDE) el.style.removeProperty(k);
|
|
2893
|
+
};
|
|
2894
|
+
function run(job, quick) {
|
|
2895
|
+
const { el, done, kind } = job;
|
|
2896
|
+
if (kind === "in") unhide(el);
|
|
2897
|
+
if (quick || !el.animate) {
|
|
2898
|
+
done();
|
|
2899
|
+
return;
|
|
2900
|
+
}
|
|
2901
|
+
const full = box(el);
|
|
2902
|
+
const overflow = el.style.overflow;
|
|
2903
|
+
el.style.overflow = "hidden";
|
|
2904
|
+
const frames = kind === "in" ? [{ ...FLAT, opacity: 0, transform: "translateY(-4px)" }, { ...full, opacity: 1, transform: "none" }] : [{ ...full, opacity: 1, transform: "none" }, { ...FLAT, opacity: 0, transform: "translateX(8px)" }];
|
|
2905
|
+
const a = el.animate(frames, kind === "in" ? { duration: tok("--lf-dur", 220), easing: ease("--lf-ease", "cubic-bezier(0.2, 0, 0, 1)") } : { duration: tok("--lf-dur", 220), easing: ease("--lf-ease-exit", "cubic-bezier(0.4, 0, 1, 1)") });
|
|
2906
|
+
const end = () => {
|
|
2907
|
+
el.style.overflow = overflow;
|
|
2908
|
+
done();
|
|
2909
|
+
};
|
|
2910
|
+
a.onfinish = end;
|
|
2911
|
+
a.oncancel = end;
|
|
2912
|
+
}
|
|
2913
|
+
function queue(job) {
|
|
2914
|
+
if (typeof document !== "undefined" && document.hidden) {
|
|
2915
|
+
run(job, true);
|
|
2916
|
+
return;
|
|
2917
|
+
}
|
|
2918
|
+
batch.push(job);
|
|
2919
|
+
if (scheduled) return;
|
|
2920
|
+
scheduled = true;
|
|
2921
|
+
requestAnimationFrame(() => {
|
|
2922
|
+
const jobs = batch;
|
|
2923
|
+
batch = [];
|
|
2924
|
+
scheduled = false;
|
|
2925
|
+
const quick = reduced() || jobs.length > props.max;
|
|
2926
|
+
for (const j of jobs) run(j, quick);
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
function onEnter(el, done) {
|
|
2930
|
+
if (!reduced()) hide(el);
|
|
2931
|
+
queue({ el, done, kind: "in" });
|
|
2932
|
+
}
|
|
2933
|
+
function onLeave(el, done) {
|
|
2934
|
+
queue({ el, done, kind: "out" });
|
|
2935
|
+
}
|
|
2936
|
+
return (_ctx, _cache) => {
|
|
2937
|
+
return openBlock(), createBlock(TransitionGroup, {
|
|
2938
|
+
tag: __props.tag,
|
|
2939
|
+
css: false,
|
|
2940
|
+
onEnter,
|
|
2941
|
+
onLeave
|
|
2942
|
+
}, {
|
|
2943
|
+
default: withCtx(() => [
|
|
2944
|
+
renderSlot(_ctx.$slots, "default")
|
|
2945
|
+
]),
|
|
2946
|
+
_: 3
|
|
2947
|
+
}, 8, ["tag"]);
|
|
2948
|
+
};
|
|
2949
|
+
}
|
|
2950
|
+
});
|
|
2834
2951
|
const _hoisted_1$2 = { class: "lf-control-wrap" };
|
|
2835
2952
|
const _hoisted_2$2 = {
|
|
2836
2953
|
key: 0,
|
|
@@ -3194,7 +3311,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3194
3311
|
};
|
|
3195
3312
|
}
|
|
3196
3313
|
});
|
|
3197
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
3314
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-532597e1"]]);
|
|
3198
3315
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3199
3316
|
__name: "LfList",
|
|
3200
3317
|
props: {
|
|
@@ -3462,6 +3579,7 @@ export {
|
|
|
3462
3579
|
LfTextField,
|
|
3463
3580
|
LfTextarea,
|
|
3464
3581
|
LfTooltip,
|
|
3582
|
+
_sfc_main$4 as LfTransitionList,
|
|
3465
3583
|
c as applySemanticPalette,
|
|
3466
3584
|
applyTheme,
|
|
3467
3585
|
d as colorToRgb,
|