lkt-step-process 2.0.8 → 2.0.9

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 { ht as default };
2
- declare namespace ht {
1
+ export { xt as default };
2
+ declare namespace xt {
3
3
  function install(e: any, a?: {}): void;
4
4
  }
package/dist/build.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var oe = Object.defineProperty;
2
2
  var le = (e, a, l) => a in e ? oe(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l;
3
3
  var i = (e, a, l) => le(e, typeof a != "symbol" ? a + "" : a, l);
4
- import { defineComponent as K, useSlots as Q, ref as N, resolveComponent as M, createElementBlock as g, openBlock as s, withDirectives as E, createCommentVNode as h, createElementVNode as J, createBlock as L, mergeProps as C, vShow as O, renderSlot as A, unref as V, normalizeProps as D, Fragment as W, renderList as Y, mergeDefaults as ue, watch as I, computed as p, onMounted as ie, normalizeClass as se, createSlots as $, withCtx as U, guardReactiveProps as G } from "vue";
4
+ import { defineComponent as Q, useSlots as J, ref as N, resolveComponent as M, createElementBlock as y, openBlock as s, withDirectives as j, createCommentVNode as f, createElementVNode as W, createBlock as L, 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";
5
5
  import "lkt-string-tools";
6
6
  import "lkt-data-state";
7
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
8
  constructor(a) {
9
9
  }
10
10
  feed(a = {}, l = this) {
11
- if (typeof a == "object") for (let [n, y] of Object.entries(a)) l.assignProp(n, y);
11
+ if (typeof a == "object") for (let [n, b] of Object.entries(a)) l.assignProp(n, b);
12
12
  }
13
13
  assignProp(a, l) {
14
14
  if (!(ce.includes(a) || v.lktExcludedProps.includes(a))) {
@@ -19,7 +19,7 @@ var de = ((e) => (e.Button = "button", e.Submit = "submit", e.Reset = "reset", e
19
19
  this[a] = l;
20
20
  }
21
21
  }
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 || {}), Be = ((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))(Be || {}), ge = ((e) => (e.Ok = "ok", e.Ko = "ko", e.Info = "info", e))(ge || {}), Le = ((e) => (e.StorageUnit = "unit", e.Directory = "dir", e.Image = "img", e.Video = "vid", e.File = "file", e))(Le || {}), Ce = ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(Ce || {}), Ne = ((e) => (e.NotDefined = "", e.Button = "button", e))(Ne || {}), 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 || {}), _ = ((e) => (e.Top = "top", e.Bottom = "bottom", e))(_ || {}), F = ((e) => (e.Changed = "changed", e.Always = "always", e.Never = "never", e))(F || {}), 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 {
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 || {}), Be = ((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))(Be || {}), ge = ((e) => (e.Ok = "ok", e.Ko = "ko", e.Info = "info", e))(ge || {}), Le = ((e) => (e.StorageUnit = "unit", e.Directory = "dir", e.Image = "img", e.Video = "vid", e.File = "file", e))(Le || {}), Ce = ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(Ce || {}), Ne = ((e) => (e.NotDefined = "", e.Button = "button", e))(Ne || {}), 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
23
  constructor(a = {}) {
24
24
  super();
25
25
  i(this, "modelValue", "");
@@ -32,7 +32,7 @@ var de = ((e) => (e.Button = "button", e.Submit = "submit", e.Reset = "reset", e
32
32
  i(this, "buttonNavVisibility", "always");
33
33
  this.feed(a);
34
34
  }
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 || {}), je = ((e) => (e.Message = "message", e.Button = "button", e))(je || {}), ze = ((e) => (e.Left = "left", e.Center = "center", e.Right = "right", e))(ze || {}), $e = ((e) => (e.Fixed = "fixed", e.Absolute = "absolute", e))($e || {}), 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 || {});
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
36
  function lt(e) {
37
37
  let a = new e(), l = {};
38
38
  if (!Array.isArray(e.lktDefaultValues)) throw new Error("lktDefaultValues must be a keys array.");
@@ -42,7 +42,7 @@ function lt(e) {
42
42
  const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--nav-info" }, st = {
43
43
  key: 1,
44
44
  class: "lkt-step-process--dots"
45
- }, q = /* @__PURE__ */ K({
45
+ }, K = /* @__PURE__ */ Q({
46
46
  __name: "ButtonNav",
47
47
  props: {
48
48
  prevButton: { type: [Object, Boolean] },
@@ -56,7 +56,7 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
56
56
  },
57
57
  emits: ["prev", "next"],
58
58
  setup(e, { expose: a, emit: l }) {
59
- const n = l, y = Q(), x = N(null), m = N(null);
59
+ const n = l, b = J(), x = N(null), m = N(null);
60
60
  return a({
61
61
  goNext: () => {
62
62
  m.value.click();
@@ -66,8 +66,8 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
66
66
  }
67
67
  }), (r, u) => {
68
68
  const P = M("lkt-button"), T = M("lkt-dot");
69
- return s(), g("div", ut, [
70
- r.prevButton ? E((s(), L(P, C({
69
+ return s(), y("div", ut, [
70
+ r.prevButton ? j((s(), L(P, C({
71
71
  key: 0,
72
72
  ref_key: "prevButtonRef",
73
73
  ref: x
@@ -75,22 +75,22 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
75
75
  class: "is-prev-button",
76
76
  onClick: u[0] || (u[0] = (c) => n("prev"))
77
77
  }), null, 16)), [
78
- [O, !r.isLoading]
79
- ]) : h("", !0),
80
- J("div", it, [
81
- V(y)["nav-info"] ? A(r.$slots, "nav-info", D(C({ key: 0 }, {
78
+ [z, !r.isLoading]
79
+ ]) : f("", !0),
80
+ W("div", it, [
81
+ E(b)["nav-info"] ? A(r.$slots, "nav-info", D(C({ key: 0 }, {
82
82
  currentStep: r.currentStep,
83
83
  currentStepIndex: r.currentStepIndex,
84
84
  amountOfSteps: r.amountOfSteps
85
- }))) : h("", !0),
86
- r.dots && r.amountOfSteps > 0 ? (s(), g("div", st, [
87
- (s(!0), g(W, null, Y(r.amountOfSteps, (c) => (s(), L(T, C({ ref_for: !0 }, {
85
+ }))) : f("", !0),
86
+ r.dots && r.amountOfSteps > 0 ? (s(), y("div", st, [
87
+ (s(!0), y(O, null, Y(r.amountOfSteps, (c) => (s(), L(T, C({ ref_for: !0 }, {
88
88
  text: r.dotsNumbers ? c : "",
89
89
  class: c === r.currentStepIndex + 1 ? "is-active" : ""
90
90
  }), null, 16))), 256))
91
- ])) : h("", !0)
91
+ ])) : f("", !0)
92
92
  ]),
93
- r.nextButton ? E((s(), L(P, C({
93
+ r.nextButton ? j((s(), L(P, C({
94
94
  key: 1,
95
95
  ref_key: "nextButtonRef",
96
96
  ref: m
@@ -98,15 +98,15 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
98
98
  class: "is-next-button",
99
99
  onClick: u[1] || (u[1] = (c) => n("next"))
100
100
  }), null, 16)), [
101
- [O, !r.isLoading]
102
- ]) : h("", !0)
101
+ [z, !r.isLoading]
102
+ ]) : f("", !0)
103
103
  ]);
104
104
  };
105
105
  }
106
106
  }), dt = {
107
107
  key: 2,
108
108
  class: "lkt-step-process--content"
109
- }, vt = { class: "lkt-grid-1" }, ct = /* @__PURE__ */ K({
109
+ }, vt = { class: "lkt-grid-1" }, ct = { key: 0 }, pt = /* @__PURE__ */ Q({
110
110
  __name: "LktStepProcess",
111
111
  props: /* @__PURE__ */ ue({
112
112
  modelValue: {},
@@ -128,28 +128,28 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
128
128
  "update:loading"
129
129
  ],
130
130
  setup(e, { expose: a, emit: l }) {
131
- const n = e, y = Q(), x = l, m = N(n.loading), r = N(n.modelValue), u = N(n.steps), P = N(null);
131
+ const n = e, b = J(), x = l, m = N(n.loading), r = N(n.modelValue), u = N(n.steps), P = N(null);
132
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
133
  const T = p(() => {
134
134
  let t = [];
135
- for (let f in y) f.indexOf("step-") !== -1 && t.push(f.substring(5));
135
+ for (let k in b) k.indexOf("step-") !== -1 && t.push(k.substring(5));
136
136
  return t;
137
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 f, b, S, d, k, B, w;
139
- if (((f = o.value) == null ? void 0 : f.prevButton) === !1 || n.prevButton === !1 && !((b = o.value) != null && b.prevButton) || typeof o.value == "object" && (typeof ((S = o.value) == null ? void 0 : S.prevHidden) == "function" && o.value.prevHidden(o.value, u.value) || typeof ((d = o.value) == null ? void 0 : d.prevHidden) == "boolean" && ((k = o.value) == null ? void 0 : k.prevHidden) === !0))
138
+ var k, S, B, d, h, g, w;
139
+ if (((k = o.value) == null ? void 0 : k.prevButton) === !1 || n.prevButton === !1 && !((S = o.value) != null && S.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))
140
140
  return !1;
141
141
  let t = { ...n.prevButton };
142
- return typeof ((B = o.value) == null ? void 0 : B.prevButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.prevButton }), typeof t.disabled > "u" && (t.disabled = Z.value), t;
142
+ return typeof ((g = o.value) == null ? void 0 : g.prevButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.prevButton }), typeof t.disabled > "u" && (t.disabled = Z.value), t;
143
143
  }), te = p(() => {
144
- var f, b, S, d, k, B, w;
145
- if (((f = o.value) == null ? void 0 : f.nextButton) === !1 || n.nextButton === !1 && !((b = o.value) != null && b.nextButton) || typeof o.value == "object" && (typeof ((S = o.value) == null ? void 0 : S.nextHidden) == "function" && o.value.nextHidden(o.value, u.value) || typeof ((d = o.value) == null ? void 0 : d.nextHidden) == "boolean" && ((k = o.value) == null ? void 0 : k.nextHidden) === !0))
144
+ var k, S, B, d, h, g, w;
145
+ if (((k = o.value) == null ? void 0 : k.nextButton) === !1 || n.nextButton === !1 && !((S = o.value) != null && S.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))
146
146
  return !1;
147
147
  let t = { ...n.nextButton };
148
- return typeof ((B = o.value) == null ? void 0 : B.nextButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.nextButton }), t;
148
+ return typeof ((g = o.value) == null ? void 0 : g.nextButton) == "object" && (t = { ...t, ...(w = o.value) == null ? void 0 : w.nextButton }), t;
149
149
  }), ae = p(() => {
150
150
  const t = [];
151
151
  return r.value && t.push(`step-${r.value}`), t.join(" ");
152
- }), re = p(() => n.buttonNavVisibility === F.Never ? !1 : !n.buttonNavPosition || n.buttonNavPosition === _.Top), ne = p(() => n.buttonNavVisibility === F.Never ? !1 : n.buttonNavPosition === _.Bottom), R = p(() => u.value.length), X = p(() => ({
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
153
  isLoading: m.value,
154
154
  prevButton: ee.value,
155
155
  nextButton: te.value,
@@ -158,9 +158,9 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
158
158
  amountOfSteps: R.value,
159
159
  dots: n.dots,
160
160
  dotsNumbers: n.dotsNumbers
161
- })), j = (t) => {
161
+ })), X = (t) => {
162
162
  r.value = u.value[c.value + 1].key, c.value === u.value.length - 1 ? x("finish", t) : x("next", t);
163
- }, z = (t) => {
163
+ }, $ = (t) => {
164
164
  r.value = u.value[c.value - 1].key, x("prev", t);
165
165
  };
166
166
  return a({
@@ -174,62 +174,62 @@ const ut = { class: "lkt-step-process--nav" }, it = { class: "lkt-step-process--
174
174
  stopLoader: () => m.value = !1
175
175
  }), ie(() => {
176
176
  !r.value && u.value.length > 0 && (r.value = u.value[0].key);
177
- }), (t, f) => {
178
- const b = M("lkt-header"), S = M("lkt-loader");
179
- return s(), g("article", {
177
+ }), (t, k) => {
178
+ const S = M("lkt-header"), B = M("lkt-loader");
179
+ return s(), y("article", {
180
180
  class: se(["lkt-step-process", ae.value])
181
181
  }, [
182
- t.header && Object.keys(t.header).length > 0 ? (s(), L(b, D(C({ key: 0 }, t.header)), null, 16)) : h("", !0),
183
- re.value ? (s(), L(q, C({ key: 1 }, X.value, {
184
- onPrev: z,
185
- onNext: j
186
- }), $({ _: 2 }, [
187
- V(y)["nav-info"] ? {
182
+ t.header && Object.keys(t.header).length > 0 ? (s(), L(S, D(C({ key: 0 }, t.header)), null, 16)) : f("", !0),
183
+ re.value ? (s(), L(K, C({ key: 1 }, F.value, {
184
+ onPrev: $,
185
+ onNext: X
186
+ }), U({ _: 2 }, [
187
+ E(b)["nav-info"] ? {
188
188
  name: "nav-info",
189
- fn: U(({ currentStep: d, currentStepIndex: k, amountOfSteps: B }) => [
190
- A(t.$slots, "nav-info", D(G({
189
+ fn: G(({ currentStep: d, currentStepIndex: h, amountOfSteps: g }) => [
190
+ A(t.$slots, "nav-info", D(q({
191
191
  currentStep: d,
192
- currentStepIndex: k,
192
+ currentStepIndex: h,
193
193
  amountOfSteps: R.value
194
194
  })))
195
195
  ]),
196
196
  key: "0"
197
197
  } : void 0
198
- ]), 1040)) : h("", !0),
199
- m.value ? h("", !0) : (s(), g("div", dt, [
200
- J("div", vt, [
201
- (s(!0), g(W, null, Y(T.value, (d) => E((s(), g("div", null, [
202
- A(t.$slots, "step-" + d, { config: u.value })
203
- ], 512)), [
204
- [O, d === r.value]
205
- ])), 256))
198
+ ]), 1040)) : f("", !0),
199
+ m.value ? f("", !0) : (s(), y("div", dt, [
200
+ W("div", vt, [
201
+ (s(!0), y(O, null, Y(T.value, (d) => (s(), y(O, null, [
202
+ d === r.value ? (s(), y("div", ct, [
203
+ A(t.$slots, "step-" + d, { config: u.value })
204
+ ])) : f("", !0)
205
+ ], 64))), 256))
206
206
  ])
207
207
  ])),
208
- m.value ? (s(), L(S, { key: 3 })) : h("", !0),
209
- ne.value ? (s(), L(q, C({ key: 4 }, X.value, {
210
- onPrev: z,
211
- onNext: j
212
- }), $({ _: 2 }, [
213
- V(y)["nav-info"] ? {
208
+ m.value ? (s(), L(B, { key: 3 })) : f("", !0),
209
+ ne.value ? (s(), L(K, C({ key: 4 }, F.value, {
210
+ onPrev: $,
211
+ onNext: X
212
+ }), U({ _: 2 }, [
213
+ E(b)["nav-info"] ? {
214
214
  name: "nav-info",
215
- fn: U(({ currentStep: d, currentStepIndex: k, amountOfSteps: B }) => [
216
- A(t.$slots, "nav-info", D(G({
215
+ fn: G(({ currentStep: d, currentStepIndex: h, amountOfSteps: g }) => [
216
+ A(t.$slots, "nav-info", D(q({
217
217
  currentStep: d,
218
- currentStepIndex: k,
218
+ currentStepIndex: h,
219
219
  amountOfSteps: R.value
220
220
  })))
221
221
  ]),
222
222
  key: "0"
223
223
  } : void 0
224
- ]), 1040)) : h("", !0)
224
+ ]), 1040)) : f("", !0)
225
225
  ], 2);
226
226
  };
227
227
  }
228
- }), ht = {
228
+ }), xt = {
229
229
  install: (e, a = {}) => {
230
- e.component("lkt-step-process", ct);
230
+ e.component("lkt-step-process", pt);
231
231
  }
232
232
  };
233
233
  export {
234
- ht as default
234
+ xt as default
235
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-step-process",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/build.js",
@@ -178,9 +178,11 @@
178
178
 
179
179
  <div class="lkt-step-process--content" v-if="!isLoading">
180
180
  <div class="lkt-grid-1">
181
- <div v-for="step in slotsSteps" v-show="step === currentStep">
182
- <slot :name="'step-'+step" v-bind:config="stepsHaystack" />
183
- </div>
181
+ <template v-for="step in slotsSteps">
182
+ <div v-if="step === currentStep">
183
+ <slot :name="'step-'+step" v-bind:config="stepsHaystack" />
184
+ </div>
185
+ </template>
184
186
  </div>
185
187
  </div>
186
188
  <lkt-loader v-if="isLoading" />