lkt-step-process 2.0.10 → 2.0.11
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/build.d.ts
CHANGED
package/dist/build.js
CHANGED
|
@@ -1,48 +1,52 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
1
|
+
var ie = Object.defineProperty;
|
|
2
|
+
var ce = (e, a, u) => a in e ? ie(e, a, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[a] = u;
|
|
3
|
+
var s = (e, a, u) => ce(e, typeof a != "symbol" ? a + "" : a, u);
|
|
4
|
+
import { defineComponent as ee, useSlots as te, ref as w, resolveComponent as O, createElementBlock as y, openBlock as l, withDirectives as K, createCommentVNode as f, createBlock as L, mergeProps as N, vShow as Q, unref as _, renderSlot as E, normalizeProps as H, Fragment as F, renderList as ae, mergeDefaults as ve, watch as R, computed as d, onMounted as de, normalizeClass as pe, createSlots as J, withCtx as W, guardReactiveProps as Y, createElementVNode as fe } from "vue";
|
|
5
5
|
import "lkt-string-tools";
|
|
6
|
+
import "lkt-object-tools";
|
|
6
7
|
import "lkt-data-state";
|
|
7
|
-
var
|
|
8
|
+
var me = ((e) => (e.Button = "button", e.Submit = "submit", e.Reset = "reset", e.Anchor = "anchor", e.Content = "content", e.Switch = "switch", e.HiddenSwitch = "hidden-switch", e.Split = "split", e.SplitLazy = "split-lazy", e.SplitEver = "split-ever", e.Tooltip = "tooltip", e.TooltipLazy = "tooltip-lazy", e.TooltipEver = "tooltip-ever", e.FileUpload = "file-upload", e.ImageUpload = "image-upload", e))(me || {}), ke = ((e) => (e.Text = "text", e.Email = "email", e.Tel = "tel", e.Password = "password", e.Search = "search", e.Number = "number", e.Color = "color", e.Range = "range", e.Textarea = "textarea", e.Html = "html", e.Date = "date", e.Time = "time", e.DateTime = "datetime", e.File = "file", e.Image = "image", e.Select = "select", e.Check = "check", e.Switch = "switch", e.Calc = "calc", e.Card = "card", e.Table = "table", e.Radio = "radio", e.ToggleButtonGroup = "toggle-button-group", e))(ke || {}), he = ["lktDateProps", "lktStrictItem", "lktExcludedProps"], p, ye = (p = class {
|
|
8
9
|
constructor(a) {
|
|
9
10
|
}
|
|
10
|
-
feed(a = {},
|
|
11
|
-
if (typeof a == "object") for (let [n,
|
|
11
|
+
feed(a = {}, u = this) {
|
|
12
|
+
if (typeof a == "object") for (let [n, m] of Object.entries(a)) u.assignProp(n, m);
|
|
12
13
|
}
|
|
13
|
-
assignProp(a,
|
|
14
|
-
if (!(
|
|
15
|
-
if (
|
|
16
|
-
this[a] = new Date(
|
|
14
|
+
assignProp(a, u) {
|
|
15
|
+
if (!(he.includes(a) || p.lktExcludedProps.includes(a))) {
|
|
16
|
+
if (p.lktDateProps.includes(a)) {
|
|
17
|
+
this[a] = new Date(u);
|
|
17
18
|
return;
|
|
18
19
|
}
|
|
19
|
-
this[a] =
|
|
20
|
+
this[a] = u;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, s(p, "lktAllowUndefinedProps", []), s(p, "lktExcludedProps", []), s(p, "lktDateProps", []), s(p, "lktStrictItem", !1), s(p, "lktDefaultValues", []), p), xe = ((e) => (e.Auto = "auto", e.Always = "always", e.Lazy = "lazy", e.Ever = "ever", e))(xe || {}), be = ((e) => (e.Transform = "transform", e.Height = "height", e.Display = "display", e))(be || {}), Se = ((e) => (e.Href = "href", e.RouterLink = "router-link", e.RouterLinkBack = "router-link-back", e.Mail = "mail", e.Tel = "tel", e.Tab = "tab", e.Download = "download", e.Action = "action", e.Legacy = "", e))(Se || {}), Be = ((e) => (e.Static = "static", e.Parallax = "parallax", e))(Be || {}), ge = ((e) => (e.None = "", e.Field = "field", e.Button = "button", e.Anchor = "anchor", e.InlineDrop = "inline-drop", e.ColumnIndex = "column-index", e))(ge || {}), Le = ((e) => (e.Date = "date", e.Number = "number", e.Timer = "timer", e))(Le || {}), Ne = ((e) => (e.A0 = "a0", e.A1 = "a1", e.A2 = "a2", e.A3 = "a3", e.A4 = "a4", e.A5 = "a5", e.A6 = "a6", e.A7 = "a7", e.A8 = "a8", e.A9 = "a9", e))(Ne || {}), Ce = ((e) => (e.List = "list", e.Inline = "inline", e.Count = "count", e.Table = "table", e))(Ce || {}), Pe = ((e) => (e.HTTPResponse = "http-response", e.MinStringLength = "min-str", e.MinNumber = "min-num", e.MaxStringLength = "max-str", e.MaxNumber = "max-num", e.Email = "email", e.Empty = "empty", e.EqualTo = "equal-to", e.MinNumbers = "min-numbers", e.MaxNumbers = "max-numbers", e.MinChars = "min-chars", e.MaxChars = "max-chars", e.MinUpperChars = "min-upper-chars", e.MaxUpperChars = "max-upper-chars", e.MinLowerChars = "min-lower-chars", e.MaxLowerChars = "max-lower-chars", e.MinSpecialChars = "min-special-chars", e.MaxSpecialChars = "max-special-chars", e))(Pe || {}), we = ((e) => (e.Ok = "ok", e.Ko = "ko", e.Info = "info", e))(we || {}), Ie = ((e) => (e.StorageUnit = "unit", e.Directory = "dir", e.Image = "img", e.Video = "vid", e.File = "file", e))(Ie || {}), Ae = ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(Ae || {}), De = ((e) => (e.NotDefined = "", e.Button = "button", e))(De || {}), Me = ((e) => (e.Start = "start", e.End = "end", e))(Me || {}), Te = ((e) => (e.Create = "create", e.Update = "update", e.Read = "read", e))(Te || {}), Re = ((e) => (e.Inline = "inline", e.Modal = "modal", e))(Re || {}), X = ((e) => (e.Top = "top", e.Bottom = "bottom", e))(X || {}), z = ((e) => (e.Changed = "changed", e.Always = "always", e.Never = "never", e))(z || {}), Ee = ((e) => (e.Manual = "manual", e.Auto = "auto", e.Delay = "delay", e))(Ee || {}), He = ((e) => (e.Toast = "toast", e.Inline = "inline", e))(He || {}), Oe = ((e) => (e.Current = "current", e.Modifications = "modifications", e.SplitView = "split-view", e.Differences = "differences", e))(Oe || {}), _e = ((e) => (e.Anchor = "anchor", e.Button = "button", e.Header = "header", e.Entry = "entry", e))(_e || {}), Ve = ((e) => (e.Modal = "modal", e.Confirm = "confirm", e))(Ve || {}), je = ((e) => (e.Pages = "pages", e.PrevNext = "prev-next", e.PagesPrevNext = "pages-prev-next", e.PagesPrevNextFirstLast = "pages-prev-next-first-last", e.LoadMore = "load-more", e.Infinite = "infinite", e))(je || {}), Fe = ((e) => (e.None = "", e.Incremental = "incremental", e.Decremental = "decremental", e))(Fe || {}), Xe = ((e) => (e.NotDefined = "", e.Hidden = "hidden", e.Integer = "integer", e.Decimal = "decimal", e.Auto = "auto", e))(Xe || {}), j, ze = (j = class extends ye {
|
|
23
24
|
constructor(a = {}) {
|
|
24
25
|
super();
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
s(this, "modelValue", "");
|
|
27
|
+
s(this, "loading", !1);
|
|
28
|
+
s(this, "steps", []);
|
|
29
|
+
s(this, "header", {});
|
|
30
|
+
s(this, "nextButton", {});
|
|
31
|
+
s(this, "prevButton", {});
|
|
32
|
+
s(this, "buttonNavPosition", "top");
|
|
33
|
+
s(this, "buttonNavVisibility", "always");
|
|
33
34
|
this.feed(a);
|
|
34
35
|
}
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
let a = new e(),
|
|
36
|
+
}, s(j, "lktDefaultValues", ["modelValue", "loading", "steps", "header", "nextButton", "prevButton", "buttonNavPosition", "buttonNavVisibility"]), j), Ue = ((e) => (e.Table = "table", e.Item = "item", e.Ul = "ul", e.Ol = "ol", e.Carousel = "carousel", e.Accordion = "accordion", e))(Ue || {}), $e = ((e) => (e[e.Auto = 0] = "Auto", e[e.PreferItem = 1] = "PreferItem", e[e.PreferCustomItem = 2] = "PreferCustomItem", e[e.PreferColumns = 3] = "PreferColumns", e))($e || {}), Ge = ((e) => (e.NotDefined = "", e.ActionIcon = "action-icon", e))(Ge || {}), qe = ((e) => (e.Message = "message", e.Button = "button", e))(qe || {}), Ke = ((e) => (e.Left = "left", e.Center = "center", e.Right = "right", e))(Ke || {}), Qe = ((e) => (e.Fixed = "fixed", e.Absolute = "absolute", e))(Qe || {}), Je = ((e) => (e.Top = "top", e.Bottom = "bottom", e.Center = "center", e.ReferrerCenter = "referrer-center", e))(Je || {}), We = ((e) => (e.Left = "left", e.Right = "right", e.Center = "center", e.LeftCorner = "left-corner", e.RightCorner = "right-corner", e))(We || {}), Ye = ((e) => (e.LktAnchor = "lkt-anchor", e.LktLayoutAccordion = "lkt-layout-accordion", e.LktTextAccordion = "lkt-text-accordion", e.LktLayoutBox = "lkt-layout-box", e.LktTextBox = "lkt-text-box", e.LktLayoutBanner = "lkt-layout-banner", e.LktTextBanner = "lkt-text-banner", e.LktButton = "lkt-button", e.LktLayout = "lkt-layout", e.LktHeader = "lkt-header", e.LktIcon = "lkt-icon", e.LktIcons = "lkt-icons", e.LktImage = "lkt-image", e.LktText = "lkt-text", e))(Ye || {}), Ze = ((e) => (e.Grid = "grid", e.FlexRow = "flex-row", e.FlexRows = "flex-rows", e.FlexColumn = "flex-column", e))(Ze || {}), et = ((e) => (e.Draft = "draft", e.Public = "public", e.Scheduled = "scheduled", e))(et || {}), tt = ((e) => (e[e.XXS = 1] = "XXS", e[e.XS = 2] = "XS", e[e.SM = 3] = "SM", e[e.MD = 4] = "MD", e[e.LG = 5] = "LG", e[e.XL = 6] = "XL", e[e.XXL = 7] = "XXL", e))(tt || {}), at = ((e) => (e.None = "", e.Focus = "focus", e.Blur = "blur", e.Always = "always", e))(at || {}), nt = ((e) => (e.Message = "message", e.Inline = "inline", e))(nt || {}), rt = ((e) => (e.Auto = "auto", e.Local = "local", e.Remote = "remote", e))(rt || {}), ot = ((e) => (e.Refresh = "refresh", e.Close = "close", e.ReOpen = "reOpen", e.Exec = "exec", e.Open = "open", e))(ot || {}), lt = ((e) => (e.Asc = "asc", e.Desc = "desc", e))(lt || {}), ut = ((e) => (e.Create = "create", e.Update = "update", e.Edit = "edit", e.Drop = "drop", e.Sort = "sort", e.SwitchEditMode = "switch-edit-mode", e.InlineEdit = "inline-edit", e.InlineCreate = "inline-create", e.ModalCreate = "modal-create", e.InlineCreateEver = "inline-create-ever", e))(ut || {}), st = ((e) => (e.Lazy = "lazy", e.Ever = "ever", e))(st || {}), it = ((e) => (e.Page = "page", e.Element = "element", e))(it || {}), ct = ((e) => (e.Quick = "quick", e.Full = "full", e))(ct || {});
|
|
37
|
+
function vt(e) {
|
|
38
|
+
let a = new e(), u = {};
|
|
38
39
|
if (!Array.isArray(e.lktDefaultValues)) throw new Error("lktDefaultValues must be a keys array.");
|
|
39
|
-
for (let n of e.lktDefaultValues) n in a && (
|
|
40
|
-
return
|
|
40
|
+
for (let n of e.lktDefaultValues) n in a && (u[n] = a[n]);
|
|
41
|
+
return u;
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
+
const dt = { class: "lkt-step-process--nav" }, pt = {
|
|
44
|
+
key: 1,
|
|
45
|
+
class: "lkt-step-process--nav-info"
|
|
46
|
+
}, ft = {
|
|
43
47
|
key: 1,
|
|
44
48
|
class: "lkt-step-process--dots"
|
|
45
|
-
},
|
|
49
|
+
}, Z = /* @__PURE__ */ ee({
|
|
46
50
|
__name: "ButtonNav",
|
|
47
51
|
props: {
|
|
48
52
|
prevButton: { type: [Object, Boolean] },
|
|
@@ -55,60 +59,54 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
|
|
|
55
59
|
dotsNumbers: { type: Boolean }
|
|
56
60
|
},
|
|
57
61
|
emits: ["prev", "next"],
|
|
58
|
-
setup(e, { expose: a, emit:
|
|
59
|
-
const n =
|
|
62
|
+
setup(e, { expose: a, emit: u }) {
|
|
63
|
+
const n = te(), m = w(null), x = w(null);
|
|
60
64
|
return a({
|
|
61
65
|
goNext: () => {
|
|
62
|
-
|
|
66
|
+
x.value.click();
|
|
63
67
|
},
|
|
64
68
|
goPrev: () => {
|
|
65
|
-
|
|
69
|
+
m.value.click();
|
|
66
70
|
}
|
|
67
|
-
}), (r,
|
|
68
|
-
const
|
|
69
|
-
return
|
|
70
|
-
r.prevButton ?
|
|
71
|
+
}), (r, c) => {
|
|
72
|
+
const i = O("lkt-button"), C = O("lkt-dot");
|
|
73
|
+
return l(), y("div", dt, [
|
|
74
|
+
r.prevButton ? K((l(), L(i, N({
|
|
71
75
|
key: 0,
|
|
72
76
|
ref_key: "prevButtonRef",
|
|
73
|
-
ref:
|
|
74
|
-
}, r.prevButton, {
|
|
75
|
-
|
|
76
|
-
onClick: u[0] || (u[0] = (c) => n("prev"))
|
|
77
|
-
}), null, 16)), [
|
|
78
|
-
[z, !r.isLoading]
|
|
77
|
+
ref: m
|
|
78
|
+
}, r.prevButton, { class: "is-prev-button" }), null, 16)), [
|
|
79
|
+
[Q, !r.isLoading]
|
|
79
80
|
]) : f("", !0),
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
_(n)["nav-info"] || r.dots && r.amountOfSteps > 0 ? (l(), y("div", pt, [
|
|
82
|
+
_(n)["nav-info"] ? E(r.$slots, "nav-info", H(N({ key: 0 }, {
|
|
82
83
|
currentStep: r.currentStep,
|
|
83
84
|
currentStepIndex: r.currentStepIndex,
|
|
84
85
|
amountOfSteps: r.amountOfSteps
|
|
85
86
|
}))) : f("", !0),
|
|
86
|
-
r.dots && r.amountOfSteps > 0 ? (
|
|
87
|
-
(
|
|
88
|
-
text: r.dotsNumbers ?
|
|
89
|
-
class:
|
|
87
|
+
r.dots && r.amountOfSteps > 0 ? (l(), y("div", ft, [
|
|
88
|
+
(l(!0), y(F, null, ae(r.amountOfSteps, (T) => (l(), L(C, N({ ref_for: !0 }, {
|
|
89
|
+
text: r.dotsNumbers ? T : "",
|
|
90
|
+
class: T === r.currentStepIndex + 1 ? "is-active" : ""
|
|
90
91
|
}), null, 16))), 256))
|
|
91
92
|
])) : f("", !0)
|
|
92
|
-
]),
|
|
93
|
-
r.nextButton ?
|
|
94
|
-
key:
|
|
93
|
+
])) : f("", !0),
|
|
94
|
+
r.nextButton ? K((l(), L(i, N({
|
|
95
|
+
key: 2,
|
|
95
96
|
ref_key: "nextButtonRef",
|
|
96
|
-
ref:
|
|
97
|
-
}, r.nextButton, {
|
|
98
|
-
|
|
99
|
-
onClick: u[1] || (u[1] = (c) => n("next"))
|
|
100
|
-
}), null, 16)), [
|
|
101
|
-
[z, !r.isLoading]
|
|
97
|
+
ref: x
|
|
98
|
+
}, r.nextButton, { class: "is-next-button" }), null, 16)), [
|
|
99
|
+
[Q, !r.isLoading]
|
|
102
100
|
]) : f("", !0)
|
|
103
101
|
]);
|
|
104
102
|
};
|
|
105
103
|
}
|
|
106
|
-
}),
|
|
104
|
+
}), mt = {
|
|
107
105
|
key: 2,
|
|
108
106
|
class: "lkt-step-process--content"
|
|
109
|
-
},
|
|
107
|
+
}, kt = { class: "lkt-grid-1" }, ht = { key: 0 }, yt = /* @__PURE__ */ ee({
|
|
110
108
|
__name: "LktStepProcess",
|
|
111
|
-
props: /* @__PURE__ */
|
|
109
|
+
props: /* @__PURE__ */ ve({
|
|
112
110
|
modelValue: {},
|
|
113
111
|
loading: { type: Boolean },
|
|
114
112
|
steps: {},
|
|
@@ -119,7 +117,7 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
|
|
|
119
117
|
buttonNavVisibility: {},
|
|
120
118
|
dots: { type: Boolean },
|
|
121
119
|
dotsNumbers: { type: Boolean }
|
|
122
|
-
},
|
|
120
|
+
}, vt(ze)),
|
|
123
121
|
emits: [
|
|
124
122
|
"next",
|
|
125
123
|
"prev",
|
|
@@ -127,104 +125,120 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
|
|
|
127
125
|
"update:modelValue",
|
|
128
126
|
"update:loading"
|
|
129
127
|
],
|
|
130
|
-
setup(e, { expose: a, emit:
|
|
131
|
-
const n = e,
|
|
132
|
-
|
|
133
|
-
const T =
|
|
128
|
+
setup(e, { expose: a, emit: u }) {
|
|
129
|
+
const n = e, m = te(), x = u, r = w(n.loading), c = w(n.modelValue), i = w(n.steps), C = w(null);
|
|
130
|
+
R(() => n.loading, (t) => r.value = t), R(() => n.modelValue, (t) => c.value = t), R(r, (t) => x("update:loading", t)), R(c, (t) => x("update:modelValue", t));
|
|
131
|
+
const T = d(() => {
|
|
134
132
|
let t = [];
|
|
135
|
-
for (let k in
|
|
133
|
+
for (let k in m) k.indexOf("step-") !== -1 && t.push(k.substring(5));
|
|
136
134
|
return t;
|
|
137
|
-
}),
|
|
138
|
-
var
|
|
139
|
-
if (((
|
|
135
|
+
}), P = d(() => i.value.findIndex((t) => t.key === c.value)), o = d(() => i.value[P.value]), ne = d(() => P.value === 0), U = d(() => {
|
|
136
|
+
var b, S, v, h, B, I, A, D;
|
|
137
|
+
if (((b = o.value) == null ? void 0 : b.prevButton) === !1 || n.prevButton === !1 && !((S = o.value) != null && S.prevButton) || typeof o.value == "object" && (typeof ((v = o.value) == null ? void 0 : v.prevHidden) == "function" && o.value.prevHidden(o.value, i.value) || typeof ((h = o.value) == null ? void 0 : h.prevHidden) == "boolean" && ((B = o.value) == null ? void 0 : B.prevHidden) === !0))
|
|
140
138
|
return !1;
|
|
141
139
|
let t = { ...n.prevButton };
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
typeof ((I = o.value) == null ? void 0 : I.prevButton) == "object" && (t = { ...t, ...(A = o.value) == null ? void 0 : A.prevButton }), typeof t.disabled > "u" && (t.disabled = ne.value);
|
|
141
|
+
const k = (D = t.events) == null ? void 0 : D.click;
|
|
142
|
+
return {
|
|
143
|
+
...t,
|
|
144
|
+
events: {
|
|
145
|
+
...t.events,
|
|
146
|
+
click: (g) => {
|
|
147
|
+
var M;
|
|
148
|
+
typeof k == "function" && k(g), ((M = g.httpResponse) == null ? void 0 : M.success) !== !1 && se(g);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}), $ = d(() => {
|
|
153
|
+
var b, S, v, h, B, I, A, D;
|
|
154
|
+
if (((b = o.value) == null ? void 0 : b.nextButton) === !1 || n.nextButton === !1 && !((S = o.value) != null && S.nextButton) || typeof o.value == "object" && (typeof ((v = o.value) == null ? void 0 : v.nextHidden) == "function" && o.value.nextHidden(o.value, i.value) || typeof ((h = o.value) == null ? void 0 : h.nextHidden) == "boolean" && ((B = o.value) == null ? void 0 : B.nextHidden) === !0))
|
|
146
155
|
return !1;
|
|
147
156
|
let t = { ...n.nextButton };
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
typeof ((I = o.value) == null ? void 0 : I.nextButton) == "object" && (t = { ...t, ...(A = o.value) == null ? void 0 : A.nextButton });
|
|
158
|
+
const k = (D = t.events) == null ? void 0 : D.click;
|
|
159
|
+
return {
|
|
160
|
+
...t,
|
|
161
|
+
events: {
|
|
162
|
+
...t.events,
|
|
163
|
+
click: (g) => {
|
|
164
|
+
var M;
|
|
165
|
+
typeof k == "function" && k(g), ((M = g.httpResponse) == null ? void 0 : M.success) !== !1 && ue(g);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}), re = d(() => {
|
|
150
170
|
const t = [];
|
|
151
|
-
return
|
|
152
|
-
}),
|
|
153
|
-
isLoading:
|
|
154
|
-
prevButton:
|
|
155
|
-
nextButton:
|
|
156
|
-
currentStep:
|
|
157
|
-
currentStepIndex:
|
|
158
|
-
amountOfSteps:
|
|
171
|
+
return c.value && t.push(`step-${c.value}`), t.join(" ");
|
|
172
|
+
}), oe = d(() => n.buttonNavVisibility === z.Never ? !1 : !n.buttonNavPosition || n.buttonNavPosition === X.Top), le = d(() => n.buttonNavVisibility === z.Never ? !1 : n.buttonNavPosition === X.Bottom), V = d(() => i.value.length), G = d(() => ({
|
|
173
|
+
isLoading: r.value,
|
|
174
|
+
prevButton: U.value,
|
|
175
|
+
nextButton: $.value,
|
|
176
|
+
currentStep: c.value,
|
|
177
|
+
currentStepIndex: P.value,
|
|
178
|
+
amountOfSteps: V.value,
|
|
159
179
|
dots: n.dots,
|
|
160
180
|
dotsNumbers: n.dotsNumbers
|
|
161
|
-
})),
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
|
|
181
|
+
})), q = d(() => typeof U.value == "object" || typeof $.value == "object" || n.dots || typeof m["nav-info"] < "u"), ue = (t) => {
|
|
182
|
+
c.value = i.value[P.value + 1].key, P.value === i.value.length - 1 ? x("finish", t) : x("next", t);
|
|
183
|
+
}, se = (t) => {
|
|
184
|
+
c.value = i.value[P.value - 1].key, x("prev", t);
|
|
165
185
|
};
|
|
166
186
|
return a({
|
|
167
187
|
goNext: () => {
|
|
168
|
-
|
|
188
|
+
C.value.goNext();
|
|
169
189
|
},
|
|
170
190
|
goPrev: () => {
|
|
171
|
-
|
|
191
|
+
C.value.goPrev();
|
|
172
192
|
},
|
|
173
|
-
startLoader: () =>
|
|
174
|
-
stopLoader: () =>
|
|
175
|
-
}),
|
|
176
|
-
!
|
|
193
|
+
startLoader: () => r.value = !0,
|
|
194
|
+
stopLoader: () => r.value = !1
|
|
195
|
+
}), de(() => {
|
|
196
|
+
!c.value && i.value.length > 0 && (c.value = i.value[0].key);
|
|
177
197
|
}), (t, k) => {
|
|
178
|
-
const
|
|
179
|
-
return
|
|
180
|
-
class:
|
|
198
|
+
const b = O("lkt-header"), S = O("lkt-loader");
|
|
199
|
+
return l(), y("article", {
|
|
200
|
+
class: pe(["lkt-step-process", re.value])
|
|
181
201
|
}, [
|
|
182
|
-
t.header && Object.keys(t.header).length > 0 ? (
|
|
183
|
-
|
|
202
|
+
t.header && Object.keys(t.header).length > 0 ? (l(), L(b, H(N({ key: 0 }, t.header)), null, 16)) : f("", !0),
|
|
203
|
+
oe.value && q.value ? (l(), L(Z, N({
|
|
184
204
|
key: 1,
|
|
185
205
|
ref_key: "navRef",
|
|
186
|
-
ref:
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
onNext: X
|
|
190
|
-
}), U({ _: 2 }, [
|
|
191
|
-
E(b)["nav-info"] ? {
|
|
206
|
+
ref: C
|
|
207
|
+
}, G.value), J({ _: 2 }, [
|
|
208
|
+
_(m)["nav-info"] ? {
|
|
192
209
|
name: "nav-info",
|
|
193
|
-
fn:
|
|
194
|
-
|
|
195
|
-
currentStep:
|
|
210
|
+
fn: W(({ currentStep: v, currentStepIndex: h, amountOfSteps: B }) => [
|
|
211
|
+
E(t.$slots, "nav-info", H(Y({
|
|
212
|
+
currentStep: v,
|
|
196
213
|
currentStepIndex: h,
|
|
197
|
-
amountOfSteps:
|
|
214
|
+
amountOfSteps: V.value
|
|
198
215
|
})))
|
|
199
216
|
]),
|
|
200
217
|
key: "0"
|
|
201
218
|
} : void 0
|
|
202
219
|
]), 1040)) : f("", !0),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
(
|
|
206
|
-
|
|
207
|
-
|
|
220
|
+
r.value ? f("", !0) : (l(), y("div", mt, [
|
|
221
|
+
fe("div", kt, [
|
|
222
|
+
(l(!0), y(F, null, ae(T.value, (v) => (l(), y(F, null, [
|
|
223
|
+
v === c.value ? (l(), y("div", ht, [
|
|
224
|
+
E(t.$slots, "step-" + v, { config: i.value })
|
|
208
225
|
])) : f("", !0)
|
|
209
226
|
], 64))), 256))
|
|
210
227
|
])
|
|
211
228
|
])),
|
|
212
|
-
|
|
213
|
-
|
|
229
|
+
r.value ? (l(), L(S, { key: 3 })) : f("", !0),
|
|
230
|
+
le.value && q.value ? (l(), L(Z, N({
|
|
214
231
|
key: 4,
|
|
215
232
|
ref_key: "navRef",
|
|
216
|
-
ref:
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
onNext: X
|
|
220
|
-
}), U({ _: 2 }, [
|
|
221
|
-
E(b)["nav-info"] ? {
|
|
233
|
+
ref: C
|
|
234
|
+
}, G.value), J({ _: 2 }, [
|
|
235
|
+
_(m)["nav-info"] ? {
|
|
222
236
|
name: "nav-info",
|
|
223
|
-
fn:
|
|
224
|
-
|
|
225
|
-
currentStep:
|
|
237
|
+
fn: W(({ currentStep: v, currentStepIndex: h, amountOfSteps: B }) => [
|
|
238
|
+
E(t.$slots, "nav-info", H(Y({
|
|
239
|
+
currentStep: v,
|
|
226
240
|
currentStepIndex: h,
|
|
227
|
-
amountOfSteps:
|
|
241
|
+
amountOfSteps: V.value
|
|
228
242
|
})))
|
|
229
243
|
]),
|
|
230
244
|
key: "0"
|
|
@@ -233,11 +247,11 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
|
|
|
233
247
|
], 2);
|
|
234
248
|
};
|
|
235
249
|
}
|
|
236
|
-
}),
|
|
250
|
+
}), Lt = {
|
|
237
251
|
install: (e, a = {}) => {
|
|
238
|
-
e.component("lkt-step-process",
|
|
252
|
+
e.component("lkt-step-process", yt);
|
|
239
253
|
}
|
|
240
254
|
};
|
|
241
255
|
export {
|
|
242
|
-
|
|
256
|
+
Lt as default
|
|
243
257
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ButtonNavProps } from '../config/ButtonNavProps';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_7: {
|
|
3
3
|
currentStep: string;
|
|
4
4
|
currentStepIndex: number;
|
|
5
5
|
amountOfSteps: number;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
'nav-info'?: (props: typeof
|
|
8
|
+
'nav-info'?: (props: typeof __VLS_7) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_component: import("vue").DefineComponent<ButtonNavProps, {
|
|
11
11
|
goNext: () => void;
|