eco-vue-js 0.9.11 → 0.9.13
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/Modal/WModalStepper.vue.d.ts +2 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +1 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +30 -8
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +15 -5
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsColumns.vue.js +8 -13
- package/dist/components/Tabs/WTabsStepper.vue.d.ts +2 -0
- package/dist/components/Tabs/WTabsStepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +9 -6
- package/dist/types/global.d.ts +7 -3
- package/dist/utils/utils.d.ts +2 -2
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +1 -1
@@ -54,6 +54,7 @@ declare function __VLS_template(): {
|
|
54
54
|
"update:current-title": (value: string) => any;
|
55
55
|
"update:tabs-length": (value: number) => any;
|
56
56
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
57
|
+
container: HTMLDivElement;
|
57
58
|
buttonContainer: HTMLDivElement;
|
58
59
|
button: (({
|
59
60
|
$: import('vue').ComponentInternalInstance;
|
@@ -547,6 +548,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
547
548
|
"update:current-title": (value: string) => any;
|
548
549
|
"update:tabs-length": (value: number) => any;
|
549
550
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
551
|
+
container: HTMLDivElement;
|
550
552
|
buttonContainer: HTMLDivElement;
|
551
553
|
button: (({
|
552
554
|
$: import('vue').ComponentInternalInstance;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AA0KA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG
|
1
|
+
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AA0KA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAkEiuS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;WAxD12S,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAA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value: string) => any) | undefined;
|
26
26
|
"onUpdate:tabs-length"?: ((value: number) => any) | undefined;
|
27
27
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
28
|
+
container: HTMLDivElement;
|
28
29
|
buttonContainer: HTMLDivElement;
|
29
30
|
button: (({
|
30
31
|
$: import('vue').ComponentInternalInstance;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAmWA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAC,KAAK,aAAa,EAA6G,MAAM,KAAK,CAAA;AAElJ,OAAO,KAAK,MAAM,6BAA6B,CAAA;;2BAqFjB,MAAM;yBAMR,MAAM;gBAiCjB,IAAI;oBAIA,IAAI;sBAUA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;+BAIzH,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAMzI,MAAM;;UAAuE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;uBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA0M5I,GAAG,8CAA8C,GAAG,yBAE/D,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAF9B,GAAG,8CAA8C,GAAG,yBAE/D,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF9B,GAAG,8CAA8C,GAAG,yBAE/D,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0MhD,wBAeG"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { defineComponent, useSlots, useTemplateRef, computed, ref, inject, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, unref, createSlots, withCtx, resolveDynamicComponent, mergeProps, normalizeStyle, createCommentVNode, createVNode, TransitionGroup } from 'vue';
|
2
2
|
import '../Button/WButtonAction.vue.js';
|
3
3
|
import '../Button/WButton.vue.js';
|
4
|
-
import {
|
4
|
+
import { getIsMobile } from '../../utils/mobile.js';
|
5
5
|
import '../Button/WButtonDropdown.vue.js';
|
6
|
+
import { debounce, throttle } from '../../utils/utils.js';
|
6
7
|
import '../../utils/supportsPassive.js';
|
7
8
|
import '../Dropdown/utils/DropdownStyle.js';
|
8
9
|
import 'vue-router';
|
@@ -32,9 +33,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
33
|
},
|
33
34
|
emits: ["update:current", "update:current-index", "update:has-changes", "update:current-title", "update:tabs-length"],
|
34
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
36
|
+
const mobile = getIsMobile();
|
35
37
|
const props = __props;
|
36
38
|
const emit = __emit;
|
37
39
|
const slots = useSlots();
|
40
|
+
const containerRef = useTemplateRef("container");
|
38
41
|
const buttonContainerRef = useTemplateRef("buttonContainer");
|
39
42
|
const defaultSlotsRaw = computed(() => props.customSlots ?? slots.default?.() ?? []);
|
40
43
|
const unwrapSlots = (slots2) => {
|
@@ -83,11 +86,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
86
|
tabItemRef.value?.[currentIndex.value]?.emitHeight?.();
|
84
87
|
setCurrentDebounced(defaultSlotsKeys.value[value]);
|
85
88
|
};
|
89
|
+
let timeout = null;
|
90
|
+
const scrollToTabContent = () => {
|
91
|
+
if (!mobile || !props.side) return;
|
92
|
+
if (timeout) {
|
93
|
+
clearTimeout(timeout);
|
94
|
+
timeout = null;
|
95
|
+
}
|
96
|
+
timeout = setTimeout(() => {
|
97
|
+
containerRef.value?.scrollTo({ left: document.documentElement.offsetWidth, behavior: "smooth" });
|
98
|
+
timeout = null;
|
99
|
+
}, 300);
|
100
|
+
};
|
86
101
|
const setCurrentDebounced = debounce((value) => {
|
87
102
|
if (current.value === value || !defaultSlotsKeys.value.includes(value)) return;
|
88
103
|
if (defaultSlots.value[defaultSlotsKeys.value.indexOf(value)].props?.disabled !== void 0) return;
|
89
104
|
isDirect.value = defaultSlotsKeys.value.indexOf(current.value) < defaultSlotsKeys.value.indexOf(value);
|
90
105
|
current.value = value;
|
106
|
+
scrollToTabContent();
|
91
107
|
}, 100);
|
92
108
|
const next = () => {
|
93
109
|
switchTab(defaultSlotsKeys.value[currentIndex.value + 1]);
|
@@ -165,17 +181,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
165
181
|
});
|
166
182
|
return (_ctx, _cache) => {
|
167
183
|
return openBlock(), createElementBlock("div", {
|
184
|
+
ref: "container",
|
168
185
|
class: normalizeClass(["grid gap-4", {
|
169
186
|
"grid grid-cols-1": !_ctx.side,
|
170
|
-
"grid grid-cols-[auto,1fr] items-start": _ctx.side
|
187
|
+
"sm-not:grid-cols-[repeat(2,100vw)] grid snap-x snap-mandatory snap-always grid-cols-[auto,1fr] items-start overflow-x-auto overscroll-x-contain": _ctx.side
|
171
188
|
}])
|
172
189
|
}, [
|
173
190
|
!_ctx.noHeader ? (openBlock(), createElementBlock("div", {
|
174
191
|
key: 0,
|
175
192
|
ref: "buttonContainer",
|
176
|
-
class: normalizeClass(["
|
177
|
-
"grid grid-cols-[1fr,auto]": _ctx.side,
|
178
|
-
"flex pr-[30%]": !_ctx.side
|
193
|
+
class: normalizeClass(["relative", {
|
194
|
+
"sm-not:snap-start grid grid-cols-[1fr,auto]": _ctx.side,
|
195
|
+
"no-scrollbar sm-not:-pl--inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain pr-[30%]": !_ctx.side
|
179
196
|
}])
|
180
197
|
}, [
|
181
198
|
(openBlock(true), createElementBlock(Fragment, null, renderList(defaultSlotsAll.value, (slot, index) => {
|
@@ -200,6 +217,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
217
|
"show-has-value": _ctx.showHasValue,
|
201
218
|
side: _ctx.side,
|
202
219
|
"no-indicator": _ctx.noIndicator,
|
220
|
+
class: normalizeClass({
|
221
|
+
"snap-center": !_ctx.side
|
222
|
+
}),
|
203
223
|
"onUpdate:indicatorStyle": _cache[0] || (_cache[0] = ($event) => indicatorStyle.value = $event),
|
204
224
|
"onUpdate:scrollPosition": updateScrollPosition,
|
205
225
|
onClick: ($event) => unref(switchTab)(slot.props?.name)
|
@@ -225,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
245
|
]),
|
226
246
|
key: "2"
|
227
247
|
} : void 0
|
228
|
-
]), 1032, ["active", "index", "title", "icon", "has-changes", "has-error", "has-value", "first", "last", "disabled", "stepper", "show-has-value", "side", "no-indicator", "onClick"])) : (openBlock(), createBlock(resolveDynamicComponent(slot), { key: 1 }))
|
248
|
+
]), 1032, ["active", "index", "title", "icon", "has-changes", "has-error", "has-value", "first", "last", "disabled", "stepper", "show-has-value", "side", "no-indicator", "class", "onClick"])) : (openBlock(), createBlock(resolveDynamicComponent(slot), { key: 1 }))
|
229
249
|
], 64);
|
230
250
|
}), 128)),
|
231
251
|
!_ctx.noIndicator ? (openBlock(), createElementBlock("div", {
|
@@ -241,7 +261,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
261
|
], 2)) : createCommentVNode("", true),
|
242
262
|
defaultSlots.value.some((slot) => slot.children?.default) ? (openBlock(), createElementBlock("div", {
|
243
263
|
key: 1,
|
244
|
-
class: "relative h-full transition-[min-height] duration-300",
|
264
|
+
class: normalizeClass(["relative h-full transition-[min-height] duration-300", {
|
265
|
+
"sm-not:snap-start": _ctx.side
|
266
|
+
}]),
|
245
267
|
style: normalizeStyle({ minHeight: minHeight.value ? minHeight.value + "px" : "auto", "--direction-factor": isDirect.value ? "1" : "-1" })
|
246
268
|
}, [
|
247
269
|
createVNode(TransitionGroup, {
|
@@ -273,7 +295,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
273
295
|
]),
|
274
296
|
_: 1
|
275
297
|
}, 8, ["enter-from-class", "leave-to-class"])
|
276
|
-
],
|
298
|
+
], 6)) : createCommentVNode("", true)
|
277
299
|
], 2);
|
278
300
|
};
|
279
301
|
}
|
@@ -1,7 +1,17 @@
|
|
1
|
-
declare
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
slots: {
|
3
|
+
default?(_: {}): any;
|
4
|
+
};
|
5
|
+
refs: {};
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
};
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
6
11
|
export default _default;
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
13
|
+
new (): {
|
14
|
+
$slots: S;
|
15
|
+
};
|
16
|
+
};
|
7
17
|
//# sourceMappingURL=WTabsColumns.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabsColumns.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsColumns.vue"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"WTabsColumns.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsColumns.vue"],"names":[],"mappings":"AAuCA,iBAAS,cAAc;;yBA+CM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,29 +1,24 @@
|
|
1
|
-
import { defineComponent, unref, openBlock, createBlock, createElementBlock, normalizeStyle, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
1
|
+
import { defineComponent, unref, openBlock, createBlock, withCtx, renderSlot, createElementBlock, normalizeStyle, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
2
2
|
import _sfc_main$1 from './WTabs.vue.js';
|
3
3
|
import { getIsMobile } from '../../utils/mobile.js';
|
4
4
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "WTabsColumns",
|
7
|
-
props: {
|
8
|
-
names: {}
|
9
|
-
},
|
10
7
|
setup(__props) {
|
11
8
|
const isMobile = getIsMobile();
|
12
9
|
return (_ctx, _cache) => {
|
13
|
-
return unref(isMobile) ? (openBlock(), createBlock(_sfc_main$1, {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
return unref(isMobile) ? (openBlock(), createBlock(_sfc_main$1, { key: 0 }, {
|
11
|
+
default: withCtx(() => [
|
12
|
+
renderSlot(_ctx.$slots, "default")
|
13
|
+
]),
|
14
|
+
_: 3
|
15
|
+
})) : (openBlock(), createElementBlock("div", {
|
18
16
|
key: 1,
|
19
17
|
class: "grid grid-cols-[repeat(var(--w-columns-length),calc(50%-((var(--w-columns-length)-1)*var(--modal-wrapper-padding,2rem)/2)))] gap-[var(--modal-wrapper-padding,2rem)]",
|
20
18
|
style: normalizeStyle({ "--w-columns-length": _ctx.$slots.default?.().length })
|
21
19
|
}, [
|
22
20
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
|
23
|
-
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
24
|
-
key: index,
|
25
|
-
title: _ctx.names[index]
|
26
|
-
}, null, 8, ["title"]);
|
21
|
+
return openBlock(), createBlock(resolveDynamicComponent(slot), { key: index });
|
27
22
|
}), 128))
|
28
23
|
], 4));
|
29
24
|
};
|
@@ -28,6 +28,7 @@ declare function __VLS_template(): {
|
|
28
28
|
"update:current-title": (value: string) => any;
|
29
29
|
"update:tabs-length": (value: number) => any;
|
30
30
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
31
|
+
container: HTMLDivElement;
|
31
32
|
buttonContainer: HTMLDivElement;
|
32
33
|
button: (({
|
33
34
|
$: import('vue').ComponentInternalInstance;
|
@@ -431,6 +432,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsStepperProps, {
|
|
431
432
|
"update:current-title": (value: string) => any;
|
432
433
|
"update:tabs-length": (value: number) => any;
|
433
434
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
435
|
+
container: HTMLDivElement;
|
434
436
|
buttonContainer: HTMLDivElement;
|
435
437
|
button: (({
|
436
438
|
$: import('vue').ComponentInternalInstance;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabsStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsStepper.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAmF7C,iBAAS,cAAc;;yBA4HO,GAAG
|
1
|
+
{"version":3,"file":"WTabsStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsStepper.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAmF7C,iBAAS,cAAc;;yBA4HO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAoEqpd,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA1D9xd,OAAO,IAA6B;EAEjD;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;gBA3MJ,IAAI;oBAJA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkP6pd,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAlB1yd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TabTitleButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/components/TabTitleButton.vue"],"names":[],"mappings":"AAyNA,OAAO,EAAC,KAAK,aAAa,EAA6C,MAAM,KAAK,CAAA;AAqGlF,iBAAS,cAAc;;;;;;YA0NK,GAAG;;;;;YACF,GAAG;;;;;YACJ,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArVX,OAAO;WACR,MAAM;cACH,OAAO;gBACL,OAAO;cACT,OAAO;WACV,MAAM;UACP,YAAY,GAAG,SAAS;WACvB,OAAO;UACR,OAAO;eACF,OAAO;cACR,OAAO;mBACF,OAAO;kBACR,OAAO;WACd,OAAO;;;;;;;cAiV8B,MAAM;;aAAU,MAAM;;;YA9V1D,OAAO;WACR,MAAM;cACH,OAAO;gBACL,OAAO;cACT,OAAO;WACV,MAAM;UACP,YAAY,GAAG,SAAS;WACvB,OAAO;UACR,OAAO;eACF,OAAO;cACR,OAAO;mBACF,OAAO;kBACR,OAAO;WACd,OAAO;;;;;cAiV8B,MAAM;;aAAU,MAAM;;;;OAIlE,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -8,8 +8,7 @@ const _hoisted_2 = {
|
|
8
8
|
key: 0,
|
9
9
|
class: "p-8"
|
10
10
|
};
|
11
|
-
const _hoisted_3 = {
|
12
|
-
const _hoisted_4 = {
|
11
|
+
const _hoisted_3 = {
|
13
12
|
key: 2,
|
14
13
|
class: "absolute bottom-0 h-1 w-full rounded-sm bg-current"
|
15
14
|
};
|
@@ -92,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
91
|
}, [
|
93
92
|
createElementVNode("button", {
|
94
93
|
disabled: _ctx.disabled,
|
95
|
-
class: normalizeClass(["w-ripple-trigger grid select-none
|
94
|
+
class: normalizeClass(["w-ripple-trigger grid select-none grid-cols-[auto,1fr] font-semibold outline-none transition-colors duration-500", {
|
96
95
|
"text-primary-default dark:text-primary-dark": !_ctx.hasError && _ctx.active,
|
97
96
|
"text-negative dark:text-negative-dark": _ctx.hasError,
|
98
97
|
"text-positive dark:text-positive-dark": _ctx.showHasValue && !_ctx.active && !_ctx.hasError && _ctx.hasValue,
|
@@ -136,7 +135,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
136
135
|
"py-3 text-start": _ctx.side
|
137
136
|
}])
|
138
137
|
}, [
|
139
|
-
createElementVNode("div",
|
138
|
+
createElementVNode("div", {
|
139
|
+
class: normalizeClass(["whitespace-nowrap px-4", {
|
140
|
+
"sm-not:-pl--inner-margin": _ctx.side
|
141
|
+
}])
|
142
|
+
}, [
|
140
143
|
_ctx.icon !== void 0 ? (openBlock(), createBlock(Suspense, { key: 0 }, {
|
141
144
|
fallback: withCtx(() => _cache[1] || (_cache[1] = [
|
142
145
|
createElementVNode("svg", { class: "square-5 -mt-1 inline" }, [
|
@@ -149,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
149
152
|
_: 1
|
150
153
|
})) : createCommentVNode("", true),
|
151
154
|
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
152
|
-
]),
|
155
|
+
], 2),
|
153
156
|
renderSlot(_ctx.$slots, "suffix", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
|
154
157
|
], 2)),
|
155
158
|
createVNode(Transition, {
|
@@ -169,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
169
172
|
]),
|
170
173
|
_: 1
|
171
174
|
}),
|
172
|
-
_ctx.stepper ? (openBlock(), createElementBlock("div",
|
175
|
+
_ctx.stepper ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true)
|
173
176
|
], 2)
|
174
177
|
], 10, _hoisted_1),
|
175
178
|
renderSlot(_ctx.$slots, "right", normalizeProps(guardReactiveProps({ hasChanges: _ctx.hasChanges, hasError: _ctx.hasError, hasValue: _ctx.hasValue })))
|
package/dist/types/global.d.ts
CHANGED
@@ -128,9 +128,13 @@ declare type UnionToTuple<
|
|
128
128
|
|
129
129
|
declare type ObjectKeys<O> = UnionToTuple<keyof O>
|
130
130
|
|
131
|
-
declare type PartialNested<T> =
|
132
|
-
|
133
|
-
|
131
|
+
declare type PartialNested<T> = T extends unknown[]
|
132
|
+
? T
|
133
|
+
: T extends object
|
134
|
+
? {
|
135
|
+
[P in keyof T]?: PartialNested<T[P]> | undefined
|
136
|
+
}
|
137
|
+
: T
|
134
138
|
|
135
139
|
declare type Flatten<T> =
|
136
140
|
T extends []
|
package/dist/utils/utils.d.ts
CHANGED
@@ -17,8 +17,8 @@ export declare const parseId: (value: unknown) => number;
|
|
17
17
|
export declare const isPage: (value: unknown) => value is number;
|
18
18
|
export declare const isIndex: (value: unknown) => value is number;
|
19
19
|
export declare const parseIndex: (value: unknown) => number;
|
20
|
-
export declare const get: <FieldType, Data
|
21
|
-
export declare const set: <FieldType, Data
|
20
|
+
export declare const get: <FieldType, Data>(data: Data, path: keyof ObjectPaths<Data, FieldType>) => FieldType | undefined;
|
21
|
+
export declare const set: <FieldType, Data>(data: Data, path: keyof ObjectPaths<Data, FieldType>, value: FieldType) => Data;
|
22
22
|
export declare const getDefaultFieldConfigMap: <Fields extends ListFields<any, any>>(fields: Fields, visible: true extends IsTuple<Fields> ? GetFieldLabels<Fields>[] : string[]) => FieldConfigMap<Fields>;
|
23
23
|
export {};
|
24
24
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAYpG,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,KAAK,CAAC,OAAO,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