eco-vue-js 0.9.6 → 0.9.8
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/Button/WButton.vue.js +2 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts +4 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +2 -1
- package/dist/components/Tabs/WTabsItem.vue.d.ts +2 -0
- package/dist/components/Tabs/WTabsItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsItem.vue.js +2 -1
- package/dist/components/Tabs/WTabsStepper.vue.js +1 -0
- package/dist/components/Tabs/types.d.ts +2 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/package.json +1 -1
@@ -28,8 +28,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
emit("click", event);
|
29
29
|
};
|
30
30
|
return (_ctx, _cache) => {
|
31
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? unref(RouterLink) : _ctx.tag), mergeProps(
|
32
|
-
_ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : void 0,
|
31
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to !== void 0 ? _ctx.disabled ? "a" : unref(RouterLink) : _ctx.tag), mergeProps(
|
32
|
+
_ctx.disabled ? void 0 : _ctx.tag === "a" ? { href: _ctx.href, target: _ctx.target } : _ctx.to !== void 0 ? { to: _ctx.to, replace: _ctx.replace } : void 0,
|
33
33
|
{
|
34
34
|
class: ["relative isolate flex select-none items-center justify-center whitespace-nowrap rounded-2xl font-medium outline-none", {
|
35
35
|
[unref(semanticTypeButtonStylesMap)[_ctx.semanticType]]: true,
|
@@ -10,7 +10,8 @@ declare function __VLS_template(): {
|
|
10
10
|
$props: {
|
11
11
|
readonly customSlots?: import('vue').VNode[] | undefined;
|
12
12
|
readonly lessTransitions?: boolean | undefined;
|
13
|
-
readonly initTab?:
|
13
|
+
readonly initTab?: string | undefined;
|
14
|
+
readonly initTabIndex?: number | undefined;
|
14
15
|
readonly disableMinHeight?: boolean | undefined;
|
15
16
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
16
17
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
@@ -434,7 +435,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
434
435
|
$props: {
|
435
436
|
readonly customSlots?: import('vue').VNode[] | undefined;
|
436
437
|
readonly lessTransitions?: boolean | undefined;
|
437
|
-
readonly initTab?:
|
438
|
+
readonly initTab?: string | undefined;
|
439
|
+
readonly initTabIndex?: number | undefined;
|
438
440
|
readonly disableMinHeight?: boolean | undefined;
|
439
441
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
440
442
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAyKA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG
|
1
|
+
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAyKA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAkEqxS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OAlB16S,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":"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":"AAkUA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAC,KAAK,aAAa,EAA6G,MAAM,KAAK,CAAA;AAElJ,OAAO,KAAK,MAAM,6BAA6B,CAAA;;2BAyEjB,MAAM;yBAMR,MAAM;gBAcjB,IAAI;oBAIA,IAAI;sBAUA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAIhI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAiPlF,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAH6C,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAH6C,GAAG,8CAC7D,GAAG,yBACE,GAAG,6DACE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;AAgM/B,wBAeG"}
|
@@ -11,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
customSlots: {},
|
12
12
|
lessTransitions: { type: Boolean },
|
13
13
|
initTab: {},
|
14
|
+
initTabIndex: {},
|
14
15
|
side: { type: Boolean },
|
15
16
|
disableMinHeight: { type: Boolean },
|
16
17
|
noHeader: { type: Boolean },
|
@@ -40,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
41
|
return defaultSlotsAll.value.filter(isTabItem);
|
41
42
|
});
|
42
43
|
const defaultSlotsKeys = computed(() => defaultSlots.value.map((item) => item.props?.name));
|
43
|
-
const current = ref(defaultSlotsKeys.value[props.
|
44
|
+
const current = ref(props.initTab ?? (props.initTabIndex !== void 0 ? defaultSlotsKeys.value[props.initTabIndex] : defaultSlots.value.find((slot) => !!slot.props?.init)?.props?.name ?? defaultSlotsKeys.value[0]));
|
44
45
|
const currentIndex = computed(() => defaultSlotsKeys.value.indexOf(current.value));
|
45
46
|
const isDirect = ref(true);
|
46
47
|
const buttonRef = useTemplateRef("button");
|
@@ -22,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
22
22
|
disabled?: boolean;
|
23
23
|
removable?: boolean;
|
24
24
|
divided?: boolean;
|
25
|
+
init?: boolean;
|
25
26
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
26
27
|
title: string;
|
27
28
|
name: string;
|
@@ -29,6 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
29
30
|
disabled?: boolean;
|
30
31
|
removable?: boolean;
|
31
32
|
divided?: boolean;
|
33
|
+
init?: boolean;
|
32
34
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
33
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
34
36
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabsItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabsItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsItem.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AA0BhD,iBAAS,cAAc;;kBAVX,MAAM,IAAI;gBACZ,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;iBACnC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;gBACrC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;;kBAHlC,MAAM,IAAI;gBACZ,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;iBACnC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;gBACrC,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI;;;WAsChC,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA/DZ,MAAM;UACP,MAAM;WACL,YAAY;eACR,OAAO;gBACN,OAAO;cACT,OAAO;WACV,OAAO;;WANP,MAAM;UACP,MAAM;WACL,YAAY;eACR,OAAO;gBACN,OAAO;cACT,OAAO;WACV,OAAO;iGA+Dd,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,7 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
icon: {},
|
9
9
|
disabled: { type: Boolean },
|
10
10
|
removable: { type: Boolean },
|
11
|
-
divided: { type: Boolean }
|
11
|
+
divided: { type: Boolean },
|
12
|
+
init: { type: Boolean }
|
12
13
|
},
|
13
14
|
setup(__props) {
|
14
15
|
return (_ctx, _cache) => {
|
@@ -8,6 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
customSlots: {},
|
9
9
|
lessTransitions: { type: Boolean },
|
10
10
|
initTab: {},
|
11
|
+
initTabIndex: {},
|
11
12
|
disableMinHeight: { type: Boolean }
|
12
13
|
},
|
13
14
|
emits: ["update:current", "update:current-index", "update:first", "update:last", "update:progress", "update:has-changes", "update:current-title"],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,KAAK,EAAE,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,GAAG,UAAU,GAAG,MAAM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