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
@@ -1,4 +1,4 @@
1
- export { xt as default };
2
- declare namespace xt {
1
+ export { Lt as default };
2
+ declare namespace Lt {
3
3
  function install(e: any, a?: {}): void;
4
4
  }
package/dist/build.js CHANGED
@@ -1,48 +1,52 @@
1
- var oe = Object.defineProperty;
2
- var le = (e, a, l) => a in e ? oe(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l;
3
- var i = (e, a, l) => le(e, typeof a != "symbol" ? a + "" : a, l);
4
- import { defineComponent as Q, useSlots as J, ref as P, resolveComponent as M, createElementBlock as y, openBlock as s, withDirectives as j, createCommentVNode as f, createElementVNode as W, createBlock as N, mergeProps as C, vShow as z, renderSlot as A, unref as E, normalizeProps as D, Fragment as O, renderList as Y, mergeDefaults as ue, watch as I, computed as p, onMounted as ie, normalizeClass as se, createSlots as U, withCtx as G, guardReactiveProps as q } from "vue";
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 de = ((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))(de || {}), ve = ((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))(ve || {}), ce = ["lktDateProps", "lktStrictItem", "lktExcludedProps"], v, pe = (v = class {
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 = {}, l = this) {
11
- if (typeof a == "object") for (let [n, b] of Object.entries(a)) l.assignProp(n, b);
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, l) {
14
- if (!(ce.includes(a) || v.lktExcludedProps.includes(a))) {
15
- if (v.lktDateProps.includes(a)) {
16
- this[a] = new Date(l);
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] = l;
20
+ this[a] = u;
20
21
  }
21
22
  }
22
- }, i(v, "lktAllowUndefinedProps", []), i(v, "lktExcludedProps", []), i(v, "lktDateProps", []), i(v, "lktStrictItem", !1), i(v, "lktDefaultValues", []), v), me = ((e) => (e.Auto = "auto", e.Always = "always", e.Lazy = "lazy", e.Ever = "ever", e))(me || {}), fe = ((e) => (e.Transform = "transform", e.Height = "height", e.Display = "display", e))(fe || {}), ke = ((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))(ke || {}), he = ((e) => (e.Static = "static", e.Parallax = "parallax", e))(he || {}), xe = ((e) => (e.None = "", e.Field = "field", e.Button = "button", e.Anchor = "anchor", e.InlineDrop = "inline-drop", e.ColumnIndex = "column-index", e))(xe || {}), ye = ((e) => (e.Date = "date", e.Number = "number", e.Timer = "timer", e))(ye || {}), be = ((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))(be || {}), Se = ((e) => (e.List = "list", e.Inline = "inline", e.Count = "count", e.Table = "table", e))(Se || {}), ge = ((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))(ge || {}), Be = ((e) => (e.Ok = "ok", e.Ko = "ko", e.Info = "info", e))(Be || {}), Le = ((e) => (e.StorageUnit = "unit", e.Directory = "dir", e.Image = "img", e.Video = "vid", e.File = "file", e))(Le || {}), Ne = ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(Ne || {}), Ce = ((e) => (e.NotDefined = "", e.Button = "button", e))(Ce || {}), Pe = ((e) => (e.Start = "start", e.End = "end", e))(Pe || {}), we = ((e) => (e.Create = "create", e.Update = "update", e.Read = "read", e))(we || {}), Ie = ((e) => (e.Inline = "inline", e.Modal = "modal", e))(Ie || {}), V = ((e) => (e.Top = "top", e.Bottom = "bottom", e))(V || {}), _ = ((e) => (e.Changed = "changed", e.Always = "always", e.Never = "never", e))(_ || {}), Ae = ((e) => (e.Manual = "manual", e.Auto = "auto", e.Delay = "delay", e))(Ae || {}), De = ((e) => (e.Toast = "toast", e.Inline = "inline", e))(De || {}), Me = ((e) => (e.Current = "current", e.Modifications = "modifications", e.SplitView = "split-view", e.Differences = "differences", e))(Me || {}), Te = ((e) => (e.Anchor = "anchor", e.Button = "button", e.Header = "header", e.Entry = "entry", e))(Te || {}), Re = ((e) => (e.Modal = "modal", e.Confirm = "confirm", e))(Re || {}), He = ((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))(He || {}), Ee = ((e) => (e.None = "", e.Incremental = "incremental", e.Decremental = "decremental", e))(Ee || {}), Oe = ((e) => (e.NotDefined = "", e.Hidden = "hidden", e.Integer = "integer", e.Decimal = "decimal", e.Auto = "auto", e))(Oe || {}), H, Ve = (H = class extends pe {
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
- i(this, "modelValue", "");
26
- i(this, "loading", !1);
27
- i(this, "steps", []);
28
- i(this, "header", {});
29
- i(this, "nextButton", {});
30
- i(this, "prevButton", {});
31
- i(this, "buttonNavPosition", "top");
32
- i(this, "buttonNavVisibility", "always");
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
- }, i(H, "lktDefaultValues", ["modelValue", "loading", "steps", "header", "nextButton", "prevButton", "buttonNavPosition", "buttonNavVisibility"]), H), _e = ((e) => (e.Table = "table", e.Item = "item", e.Ul = "ul", e.Ol = "ol", e.Carousel = "carousel", e.Accordion = "accordion", e))(_e || {}), Fe = ((e) => (e[e.Auto = 0] = "Auto", e[e.PreferItem = 1] = "PreferItem", e[e.PreferCustomItem = 2] = "PreferCustomItem", e[e.PreferColumns = 3] = "PreferColumns", e))(Fe || {}), Xe = ((e) => (e.NotDefined = "", e.ActionIcon = "action-icon", e))(Xe || {}), $e = ((e) => (e.Message = "message", e.Button = "button", e))($e || {}), je = ((e) => (e.Left = "left", e.Center = "center", e.Right = "right", e))(je || {}), ze = ((e) => (e.Fixed = "fixed", e.Absolute = "absolute", e))(ze || {}), Ue = ((e) => (e.Top = "top", e.Bottom = "bottom", e.Center = "center", e.ReferrerCenter = "referrer-center", e))(Ue || {}), Ge = ((e) => (e.Left = "left", e.Right = "right", e.Center = "center", e.LeftCorner = "left-corner", e.RightCorner = "right-corner", e))(Ge || {}), qe = ((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))(qe || {}), Ke = ((e) => (e.Grid = "grid", e.FlexRow = "flex-row", e.FlexRows = "flex-rows", e.FlexColumn = "flex-column", e))(Ke || {}), Qe = ((e) => (e.Draft = "draft", e.Public = "public", e.Scheduled = "scheduled", e))(Qe || {}), Je = ((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))(Je || {}), We = ((e) => (e.None = "", e.Focus = "focus", e.Blur = "blur", e.Always = "always", e))(We || {}), Ye = ((e) => (e.Message = "message", e.Inline = "inline", e))(Ye || {}), Ze = ((e) => (e.Auto = "auto", e.Local = "local", e.Remote = "remote", e))(Ze || {}), et = ((e) => (e.Refresh = "refresh", e.Close = "close", e.ReOpen = "reOpen", e.Exec = "exec", e.Open = "open", e))(et || {}), tt = ((e) => (e.Asc = "asc", e.Desc = "desc", e))(tt || {}), at = ((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))(at || {}), rt = ((e) => (e.Lazy = "lazy", e.Ever = "ever", e))(rt || {}), nt = ((e) => (e.Page = "page", e.Element = "element", e))(nt || {}), ot = ((e) => (e.Quick = "quick", e.Full = "full", e))(ot || {});
36
- function lt(e) {
37
- let a = new e(), l = {};
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 && (l[n] = a[n]);
40
- return l;
40
+ for (let n of e.lktDefaultValues) n in a && (u[n] = a[n]);
41
+ return u;
41
42
  }
42
- const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--nav-info" }, st = {
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
- }, K = /* @__PURE__ */ Q({
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: l }) {
59
- const n = l, b = J(), x = P(null), m = P(null);
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
- m.value.click();
66
+ x.value.click();
63
67
  },
64
68
  goPrev: () => {
65
- x.value.click();
69
+ m.value.click();
66
70
  }
67
- }), (r, u) => {
68
- const S = M("lkt-button"), T = M("lkt-dot");
69
- return s(), y("div", ut, [
70
- r.prevButton ? j((s(), N(S, C({
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: x
74
- }, r.prevButton, {
75
- class: "is-prev-button",
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
- W("div", it, [
81
- E(b)["nav-info"] ? A(r.$slots, "nav-info", D(C({ key: 0 }, {
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 ? (s(), y("div", st, [
87
- (s(!0), y(O, null, Y(r.amountOfSteps, (c) => (s(), N(T, C({ ref_for: !0 }, {
88
- text: r.dotsNumbers ? c : "",
89
- class: c === r.currentStepIndex + 1 ? "is-active" : ""
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 ? j((s(), N(S, C({
94
- key: 1,
93
+ ])) : f("", !0),
94
+ r.nextButton ? K((l(), L(i, N({
95
+ key: 2,
95
96
  ref_key: "nextButtonRef",
96
- ref: m
97
- }, r.nextButton, {
98
- class: "is-next-button",
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
- }), dt = {
104
+ }), mt = {
107
105
  key: 2,
108
106
  class: "lkt-step-process--content"
109
- }, vt = { class: "lkt-grid-1" }, ct = { key: 0 }, pt = /* @__PURE__ */ Q({
107
+ }, kt = { class: "lkt-grid-1" }, ht = { key: 0 }, yt = /* @__PURE__ */ ee({
110
108
  __name: "LktStepProcess",
111
- props: /* @__PURE__ */ ue({
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
- }, lt(Ve)),
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: l }) {
131
- const n = e, b = J(), x = l, m = P(n.loading), r = P(n.modelValue), u = P(n.steps), S = P(null);
132
- I(() => n.loading, (t) => m.value = t), I(() => n.modelValue, (t) => r.value = t), I(m, (t) => x("update:loading", t)), I(r, (t) => x("update:modelValue", t));
133
- const T = p(() => {
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 b) k.indexOf("step-") !== -1 && t.push(k.substring(5));
133
+ for (let k in m) k.indexOf("step-") !== -1 && t.push(k.substring(5));
136
134
  return t;
137
- }), c = p(() => u.value.findIndex((t) => t.key === r.value)), o = p(() => u.value[c.value]), Z = p(() => c.value === 0), ee = p(() => {
138
- var k, g, B, d, h, L, w;
139
- if (((k = o.value) == null ? void 0 : k.prevButton) === !1 || n.prevButton === !1 && !((g = o.value) != null && g.prevButton) || typeof o.value == "object" && (typeof ((B = o.value) == null ? void 0 : B.prevHidden) == "function" && o.value.prevHidden(o.value, u.value) || typeof ((d = o.value) == null ? void 0 : d.prevHidden) == "boolean" && ((h = o.value) == null ? void 0 : h.prevHidden) === !0))
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
- return typeof ((L = o.value) == null ? void 0 : L.prevButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.prevButton }), typeof t.disabled > "u" && (t.disabled = Z.value), t;
143
- }), te = p(() => {
144
- var k, g, B, d, h, L, w;
145
- if (((k = o.value) == null ? void 0 : k.nextButton) === !1 || n.nextButton === !1 && !((g = o.value) != null && g.nextButton) || typeof o.value == "object" && (typeof ((B = o.value) == null ? void 0 : B.nextHidden) == "function" && o.value.nextHidden(o.value, u.value) || typeof ((d = o.value) == null ? void 0 : d.nextHidden) == "boolean" && ((h = o.value) == null ? void 0 : h.nextHidden) === !0))
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
- return typeof ((L = o.value) == null ? void 0 : L.nextButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.nextButton }), t;
149
- }), ae = p(() => {
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 r.value && t.push(`step-${r.value}`), t.join(" ");
152
- }), re = p(() => n.buttonNavVisibility === _.Never ? !1 : !n.buttonNavPosition || n.buttonNavPosition === V.Top), ne = p(() => n.buttonNavVisibility === _.Never ? !1 : n.buttonNavPosition === V.Bottom), R = p(() => u.value.length), F = p(() => ({
153
- isLoading: m.value,
154
- prevButton: ee.value,
155
- nextButton: te.value,
156
- currentStep: r.value,
157
- currentStepIndex: c.value,
158
- amountOfSteps: R.value,
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
- })), X = (t) => {
162
- r.value = u.value[c.value + 1].key, c.value === u.value.length - 1 ? x("finish", t) : x("next", t);
163
- }, $ = (t) => {
164
- r.value = u.value[c.value - 1].key, x("prev", t);
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
- S.value.goNext();
188
+ C.value.goNext();
169
189
  },
170
190
  goPrev: () => {
171
- S.value.goPrev();
191
+ C.value.goPrev();
172
192
  },
173
- startLoader: () => m.value = !0,
174
- stopLoader: () => m.value = !1
175
- }), ie(() => {
176
- !r.value && u.value.length > 0 && (r.value = u.value[0].key);
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 g = M("lkt-header"), B = M("lkt-loader");
179
- return s(), y("article", {
180
- class: se(["lkt-step-process", ae.value])
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 ? (s(), N(g, D(C({ key: 0 }, t.header)), null, 16)) : f("", !0),
183
- re.value ? (s(), N(K, C({
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: S
187
- }, F.value, {
188
- onPrev: $,
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: G(({ currentStep: d, currentStepIndex: h, amountOfSteps: L }) => [
194
- A(t.$slots, "nav-info", D(q({
195
- currentStep: d,
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: R.value
214
+ amountOfSteps: V.value
198
215
  })))
199
216
  ]),
200
217
  key: "0"
201
218
  } : void 0
202
219
  ]), 1040)) : f("", !0),
203
- m.value ? f("", !0) : (s(), y("div", dt, [
204
- W("div", vt, [
205
- (s(!0), y(O, null, Y(T.value, (d) => (s(), y(O, null, [
206
- d === r.value ? (s(), y("div", ct, [
207
- A(t.$slots, "step-" + d, { config: u.value })
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
- m.value ? (s(), N(B, { key: 3 })) : f("", !0),
213
- ne.value ? (s(), N(K, C({
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: S
217
- }, F.value, {
218
- onPrev: $,
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: G(({ currentStep: d, currentStepIndex: h, amountOfSteps: L }) => [
224
- A(t.$slots, "nav-info", D(q({
225
- currentStep: d,
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: R.value
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
- }), xt = {
250
+ }), Lt = {
237
251
  install: (e, a = {}) => {
238
- e.component("lkt-step-process", pt);
252
+ e.component("lkt-step-process", yt);
239
253
  }
240
254
  };
241
255
  export {
242
- xt as default
256
+ Lt as default
243
257
  };
@@ -1,11 +1,11 @@
1
1
  import { ButtonNavProps } from '../config/ButtonNavProps';
2
- declare var __VLS_11: {
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 __VLS_11) => any;
8
+ 'nav-info'?: (props: typeof __VLS_7) => any;
9
9
  };
10
10
  declare const __VLS_component: import("vue").DefineComponent<ButtonNavProps, {
11
11
  goNext: () => void;