eco-vue-js 0.9.14 → 0.9.16
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/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +1 -0
- 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.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +7 -7
- package/dist/components/Tabs/WTabsStepper.vue.js +2 -1
- package/dist/components/Tabs/types.d.ts +1 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAknBA,iBAAS,cAAc;;iBAbZ,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;WA4GP,OAAO,IAA6B;EAEjD;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WApaZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;wBA0QE,MAAM;qBAzEN,IAAI;;;;;;;WAvMjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;eACR,OAAO;;;;;;kFA2alB,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"}
|
@@ -71,6 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
71
71
|
const _hasValue = computed(() => mandatory.value && hasValueExact.value === false ? null : hasValueExact.value);
|
72
72
|
const requiredSymbols = computed(() => props.requiredSymbols?.split("") ?? []);
|
73
73
|
const _updateHasChanges = (value) => {
|
74
|
+
if (props.noChanges) return;
|
74
75
|
if (initModelValue.value === void 0) {
|
75
76
|
hasChanges.value = value !== void 0 && value !== "";
|
76
77
|
} else {
|
@@ -16,6 +16,7 @@ declare function __VLS_template(): {
|
|
16
16
|
readonly noHeader?: boolean | undefined;
|
17
17
|
readonly stepper?: boolean | undefined;
|
18
18
|
readonly showHasValue?: boolean | undefined;
|
19
|
+
readonly noSwitchOnInvalid?: boolean | undefined;
|
19
20
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
20
21
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
21
22
|
readonly "onUpdate:last"?: ((value: boolean) => any) | undefined;
|
@@ -510,6 +511,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
510
511
|
readonly noHeader?: boolean | undefined;
|
511
512
|
readonly stepper?: boolean | undefined;
|
512
513
|
readonly showHasValue?: boolean | undefined;
|
514
|
+
readonly noSwitchOnInvalid?: boolean | undefined;
|
513
515
|
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
514
516
|
readonly "onUpdate:first"?: ((value: boolean) => any) | undefined;
|
515
517
|
readonly "onUpdate:last"?: ((value: boolean) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AA0KA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA0W0uS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OAlBt3S,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":"AAmWA,OAAO,KAA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},
|
30
30
|
noIndicator: { type: Boolean },
|
31
31
|
stepper: { type: Boolean },
|
32
|
-
showHasValue: { type: Boolean }
|
32
|
+
showHasValue: { type: Boolean },
|
33
|
+
noSwitchOnInvalid: { type: Boolean }
|
33
34
|
},
|
34
35
|
emits: ["update:current", "update:current-index", "update:has-changes", "update:current-title", "update:tabs-length"],
|
35
36
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -184,7 +185,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
185
|
ref: "container",
|
185
186
|
class: normalizeClass(["grid gap-4", {
|
186
187
|
"grid grid-cols-1": !_ctx.side,
|
187
|
-
"sm-not:grid-cols-[repeat(2,100vw)]
|
188
|
+
"sm-not:grid-cols-[repeat(2,100vw)] sm-not:snap-x sm-not:snap-mandatory sm-not:snap-always sm-not:overflow-x-auto sm-not:overscroll-x-contain grid grid-cols-[auto,1fr] items-start": _ctx.side
|
188
189
|
}])
|
189
190
|
}, [
|
190
191
|
!_ctx.noHeader ? (openBlock(), createElementBlock("div", {
|
@@ -192,8 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
193
|
ref: "buttonContainer",
|
193
194
|
class: normalizeClass(["relative", {
|
194
195
|
"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-[50%]": !_ctx.side
|
196
|
-
"4xl:pl-[50%]": _ctx.stepper && !_ctx.side
|
196
|
+
"no-scrollbar sm-not:-pl--inner-margin flex snap-x snap-mandatory snap-always overflow-x-auto overscroll-x-contain pr-[50%]": !_ctx.side
|
197
197
|
}])
|
198
198
|
}, [
|
199
199
|
(openBlock(true), createElementBlock(Fragment, null, renderList(defaultSlotsAll.value, (slot, index) => {
|
@@ -283,15 +283,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
283
283
|
title: slot.props?.title,
|
284
284
|
active: slot.props?.name === current.value,
|
285
285
|
removable: slot.props?.removable,
|
286
|
-
"onTab:switch": unref(switchOnInvalid),
|
287
|
-
"onUpdate:height": _cache[
|
286
|
+
"onTab:switch": _cache[1] || (_cache[1] = ($event) => !_ctx.noSwitchOnInvalid && unref(switchOnInvalid)($event)),
|
287
|
+
"onUpdate:height": _cache[2] || (_cache[2] = ($event) => !_ctx.disableMinHeight && updateHeight($event)),
|
288
288
|
"onUpdate:active": ($event) => _ctx.$emit("update:current-title", slot.props?.title)
|
289
289
|
}, {
|
290
290
|
default: withCtx(() => [
|
291
291
|
(openBlock(), createBlock(resolveDynamicComponent(slot)))
|
292
292
|
]),
|
293
293
|
_: 2
|
294
|
-
}, 1032, ["name", "title", "active", "removable", "
|
294
|
+
}, 1032, ["name", "title", "active", "removable", "onUpdate:active"]);
|
295
295
|
}), 128))
|
296
296
|
]),
|
297
297
|
_: 1
|
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
disableMinHeight: { type: Boolean },
|
13
13
|
noHeader: { type: Boolean },
|
14
14
|
stepper: { type: Boolean },
|
15
|
-
showHasValue: { type: Boolean }
|
15
|
+
showHasValue: { type: Boolean },
|
16
|
+
noSwitchOnInvalid: { type: Boolean }
|
16
17
|
},
|
17
18
|
emits: ["update:current", "update:current-index", "update:first", "update:last", "update:progress", "update:has-changes", "update:current-title"],
|
18
19
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -11,6 +11,7 @@ export interface TabsProps {
|
|
11
11
|
noIndicator?: boolean;
|
12
12
|
stepper?: boolean;
|
13
13
|
showHasValue?: boolean;
|
14
|
+
noSwitchOnInvalid?: boolean;
|
14
15
|
}
|
15
16
|
export type TabsStepperProps = Omit<TabsProps, 'switchToNew' | 'noIndicator' | 'side'>;
|
16
17
|
export type TabsItemScopedProps = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/types.ts"],"names":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B,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAKvB,KAAK,SAAS,OAAO,GAAG,IAAI,yBAC/B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAKvB,KAAK,SAAS,OAAO,GAAG,IAAI,yBAC/B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0MxD,mBAAmB,CAAC;;gKAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA5LP,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;YAiMF,OAAO,CAAC,OAAO,WAAW,CAAC;;AApNvE,wBAoN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
})
|
42
42
|
}, [
|
43
43
|
createElementVNode("button", {
|
44
|
-
class: normalizeClass(["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] grid w-full select-none items-center gap-4 text-start focus:outline-none", {
|
44
|
+
class: normalizeClass(["w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08] isolate grid w-full select-none items-center gap-4 text-start focus:outline-none", {
|
45
45
|
"cursor-not-allowed opacity-50": _ctx.disabled,
|
46
46
|
"cursor-progress": _ctx.loading,
|
47
47
|
"cursor-pointer": !_ctx.readonly && !_ctx.loading && !_ctx.disabled,
|