eco-vue-js 0.9.15 → 0.9.17

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.
@@ -1 +0,0 @@
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,75 +0,0 @@
1
- import { defineComponent, useTemplateRef, ref, computed, watch, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
2
- import _sfc_main$1 from './WTabs.vue.js';
3
- import { Notify } from '../../utils/Notify.js';
4
-
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "WTabsStepper",
7
- props: {
8
- customSlots: {},
9
- lessTransitions: { type: Boolean },
10
- initTab: {},
11
- initTabIndex: {},
12
- disableMinHeight: { type: Boolean },
13
- noHeader: { type: Boolean },
14
- stepper: { type: Boolean },
15
- showHasValue: { type: Boolean },
16
- noSwitchOnInvalid: { type: Boolean }
17
- },
18
- emits: ["update:current", "update:current-index", "update:first", "update:last", "update:progress", "update:has-changes", "update:current-title"],
19
- setup(__props, { expose: __expose, emit: __emit }) {
20
- const props = __props;
21
- const emit = __emit;
22
- const tabsRef = useTemplateRef("tabs");
23
- const tabsLength = ref(0);
24
- const current = ref(0);
25
- const first = computed(() => current.value === 0);
26
- const last = computed(() => current.value === tabsLength.value - 1);
27
- const progress = computed(() => 100 * (current.value + 1) / tabsLength.value);
28
- const previous = () => {
29
- tabsRef.value?.previous();
30
- };
31
- const next = () => {
32
- const errorMessage = tabsRef.value?.validateIfNoError(current.value);
33
- if (errorMessage) {
34
- Notify.warn({ title: "Form contains invalid values", caption: errorMessage.length < 200 ? errorMessage : void 0 });
35
- return;
36
- }
37
- tabsRef.value?.next();
38
- };
39
- watch(progress, (value) => {
40
- emit("update:progress", value);
41
- }, { immediate: true });
42
- watch(first, (value) => {
43
- emit("update:first", value);
44
- }, { immediate: true });
45
- watch(last, (value) => {
46
- emit("update:last", value);
47
- }, { immediate: true });
48
- __expose({
49
- next,
50
- previous
51
- });
52
- return (_ctx, _cache) => {
53
- return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "tabs" }, props, {
54
- stepper: "",
55
- "no-indicator": "",
56
- "show-has-value": "",
57
- "onUpdate:current": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:current", $event)),
58
- "onUpdate:currentIndex": _cache[1] || (_cache[1] = ($event) => {
59
- current.value = $event;
60
- _ctx.$emit("update:current-index", $event);
61
- }),
62
- "onUpdate:currentTitle": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:current-title", $event)),
63
- "onUpdate:hasChanges": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:has-changes", $event)),
64
- "onUpdate:tabsLength": _cache[4] || (_cache[4] = ($event) => tabsLength.value = $event)
65
- }), {
66
- default: withCtx(() => [
67
- renderSlot(_ctx.$slots, "default")
68
- ]),
69
- _: 3
70
- }, 16);
71
- };
72
- }
73
- });
74
-
75
- export { _sfc_main as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './WTabsStepper.vue.js';
2
-
3
-
4
-
5
- export { _sfc_main as default };