lkt-step-process 2.0.11 → 2.0.13

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 { Lt as default };
2
- declare namespace Lt {
1
+ export { Ft as default };
2
+ declare namespace Ft {
3
3
  function install(e: any, a?: {}): void;
4
4
  }
package/dist/build.js CHANGED
@@ -1,52 +1,68 @@
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";
1
+ var me = Object.defineProperty;
2
+ var ye = (e, a, c) => a in e ? me(e, a, { enumerable: !0, configurable: !0, writable: !0, value: c }) : e[a] = c;
3
+ var n = (e, a, c) => ye(e, typeof a != "symbol" ? a + "" : a, c);
4
+ import { ref as k, defineComponent as re, useSlots as ne, resolveComponent as j, createElementBlock as B, openBlock as f, withDirectives as X, createCommentVNode as A, createBlock as N, mergeProps as R, vShow as U, unref as _, renderSlot as H, normalizeProps as F, Fragment as $, renderList as oe, mergeDefaults as ke, watch as E, computed as b, onMounted as he, normalizeClass as be, createSlots as Y, withCtx as ee, guardReactiveProps as te, createElementVNode as xe } from "vue";
5
5
  import "lkt-string-tools";
6
6
  import "lkt-object-tools";
7
7
  import "lkt-data-state";
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
+ var Ae = ((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.InvisibleWrapper = "invisible-wrapper", e.Menu = "menu", e.Tab = "tab", e))(Ae || {}), ge = ((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.DayOfWeek = "day-of-week", e))(ge || {}), Se = ["lktDateProps", "lktStrictItem", "lktExcludedProps"], x, Be = (x = class {
9
9
  constructor(a) {
10
10
  }
11
- feed(a = {}, u = this) {
12
- if (typeof a == "object") for (let [n, m] of Object.entries(a)) u.assignProp(n, m);
11
+ feed(a = {}, c = this) {
12
+ if (typeof a == "object") for (let [r, g] of Object.entries(a)) c.assignProp(r, g);
13
13
  }
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);
14
+ assignProp(a, c) {
15
+ if (!(Se.includes(a) || x.lktExcludedProps.includes(a))) {
16
+ if (x.lktDateProps.includes(a)) {
17
+ this[a] = new Date(c);
18
18
  return;
19
19
  }
20
- this[a] = u;
20
+ this[a] = c;
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
+ }, n(x, "lktAllowUndefinedProps", []), n(x, "lktExcludedProps", []), n(x, "lktDateProps", []), n(x, "lktStrictItem", !1), n(x, "lktDefaultValues", []), x), we = ((e) => (e.Auto = "auto", e.Always = "always", e.Lazy = "lazy", e.Ever = "ever", e))(we || {}), Ie = ((e) => (e.Transform = "transform", e.Height = "height", e.Display = "display", e))(Ie || {}), Le = ((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))(Le || {}), Ce = ((e) => (e.Static = "static", e.Parallax = "parallax", e))(Ce || {}), Me = ((e) => (e.None = "", e.Field = "field", e.Button = "button", e.Anchor = "anchor", e.Content = "content", e.InlineDrop = "inline-drop", e.ColumnIndex = "column-index", e))(Me || {}), Ne = ((e) => (e.Date = "date", e.Number = "number", e.Timer = "timer", e.Chrono = "chrono", e))(Ne || {}), Re = ((e) => (e.Auto = "auto", e.Progress = "progress", e))(Re || {}), Te = ((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))(Te || {}), De = ((e) => (e.List = "list", e.Inline = "inline", e.Count = "count", e.Table = "table", e))(De || {}), 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 || {}), Ve = ((e) => (e.Ok = "ok", e.Ko = "ko", e.Info = "info", e))(Ve || {}), Oe = ((e) => (e.StorageUnit = "unit", e.Directory = "dir", e.Image = "img", e.Video = "vid", e.File = "file", e))(Oe || {}), Ee = ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(Ee || {}), He = ((e) => (e.NotDefined = "", e.Button = "button", e))(He || {}), Fe = ((e) => (e.Start = "start", e.End = "end", e))(Fe || {}), je = ((e) => (e.Create = "create", e.Update = "update", e.Read = "read", e))(je || {}), _e = ((e) => (e.Inline = "inline", e.Modal = "modal", e))(_e || {}), J = ((e) => (e.Top = "top", e.Bottom = "bottom", e.Hidden = "hidden", e))(J || {}), G = ((e) => (e.Changed = "changed", e.Always = "always", e.Never = "never", e))(G || {}), ze = ((e) => (e.Manual = "manual", e.Auto = "auto", e.Delay = "delay", e))(ze || {}), We = ((e) => (e.Toast = "toast", e.Inline = "inline", e.Silent = "silent", e))(We || {}), Xe = ((e) => (e.Current = "current", e.Modifications = "modifications", e.SplitView = "split-view", e.Differences = "differences", e))(Xe || {}), Ue = ((e) => (e.Hidden = "hidden", e.Always = "always", e.TabList = "tablist", e))(Ue || {}), $e = ((e) => (e.Anchor = "anchor", e.Button = "button", e.Header = "header", e.Entry = "entry", e))($e || {}), Je = ((e) => (e.Modal = "modal", e.Confirm = "confirm", e))(Je || {}), Ge = ((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.TimelineAsc = "timeline-asc", e.TimelineDesc = "timeline-desc", e.TimelineAscDesc = "timeline-asc-desc", e))(Ge || {}), qe = ((e) => (e.None = "", e.Incremental = "incremental", e.Decremental = "decremental", e))(qe || {}), Ke = ((e) => (e.NotDefined = "", e.Hidden = "hidden", e.Integer = "integer", e.Decimal = "decimal", e.Auto = "auto", e))(Ke || {}), Qe = ((e) => (e.Bar = "bar", e.Circle = "circle", e))(Qe || {}), W, Ze = (W = class extends Be {
24
24
  constructor(a = {}) {
25
25
  super();
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");
26
+ n(this, "modelValue", "");
27
+ n(this, "loading", !1);
28
+ n(this, "steps", []);
29
+ n(this, "header", {});
30
+ n(this, "nextButton", {});
31
+ n(this, "prevButton", {});
32
+ n(this, "buttonNavPosition", "top");
33
+ n(this, "buttonNavVisibility", "always");
34
34
  this.feed(a);
35
35
  }
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 = {};
36
+ }, n(W, "lktDefaultValues", ["modelValue", "loading", "steps", "header", "nextButton", "prevButton", "buttonNavPosition", "buttonNavVisibility"]), W), Ye = ((e) => (e.Table = "table", e.Item = "item", e.Ul = "ul", e.Ol = "ol", e.Carousel = "carousel", e.Accordion = "accordion", e.Calendar = "calendar", e))(Ye || {}), et = ((e) => (e[e.Auto = 0] = "Auto", e[e.PreferItem = 1] = "PreferItem", e[e.PreferCustomItem = 2] = "PreferCustomItem", e[e.PreferColumns = 3] = "PreferColumns", e))(et || {}), tt = ((e) => (e.NotDefined = "", e.ActionIcon = "action-icon", e))(tt || {}), at = ((e) => (e.Message = "message", e.Button = "button", e))(at || {}), rt = ((e) => (e.Left = "left", e.Center = "center", e.Right = "right", e))(rt || {}), nt = ((e) => (e.Fixed = "fixed", e.Absolute = "absolute", e))(nt || {}), ot = ((e) => (e.Top = "top", e.Bottom = "bottom", e.Center = "center", e.ReferrerCenter = "referrer-center", e))(ot || {}), lt = ((e) => (e.Left = "left", e.Right = "right", e.Center = "center", e.LeftCorner = "left-corner", e.RightCorner = "right-corner", e))(lt || {}), st = ((e) => (e.Relative = "relative", e.Full = "full", e))(st || {}), it = ((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))(it || {}), ut = ((e) => (e.Grid = "grid", e.FlexRow = "flex-row", e.FlexRows = "flex-rows", e.FlexColumn = "flex-column", e))(ut || {}), ct = ((e) => (e.Draft = "draft", e.Public = "public", e.Scheduled = "scheduled", e))(ct || {}), dt = ((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))(dt || {}), vt = ((e) => (e.PrevButton = "prev", e.NextButton = "next", e.DatePicker = "datePicker", e.GoToCurrent = "goToCurrent", e))(vt || {}), pt = ((e) => (e[e.Sunday = 0] = "Sunday", e[e.Monday = 1] = "Monday", e[e.Tuesday = 2] = "Tuesday", e[e.Wednesday = 3] = "Wednesday", e[e.Thursday = 4] = "Thursday", e[e.Friday = 5] = "Friday", e[e.Saturday = 6] = "Saturday", e))(pt || {}), ft = ((e) => (e.None = "", e.Focus = "focus", e.Blur = "blur", e.Always = "always", e))(ft || {}), mt = ((e) => (e.Error = "error", e.Errors = "errors", e.All = "all", e))(mt || {}), yt = ((e) => (e.Message = "message", e.Inline = "inline", e))(yt || {}), kt = ((e) => (e.Auto = "auto", e.Local = "local", e.Remote = "remote", e.External = "external", e))(kt || {}), ht = ((e) => (e.Text = "text", e.Textarea = "textarea", e.Html = "html", e.Many = "many", e))(ht || {}), bt = ((e) => (e.Refresh = "refresh", e.Close = "close", e.ReOpen = "reOpen", e.Exec = "exec", e.Open = "open", e))(bt || {}), xt = ((e) => (e.Asc = "asc", e.Desc = "desc", e))(xt || {}), S = ((e) => (e[e.RendersAndVisibleIfActive = 1] = "RendersAndVisibleIfActive", e[e.AlwaysRendersVisibleIfActive = 2] = "AlwaysRendersVisibleIfActive", e[e.AlwaysRendersVisibleAfterFirstActive = 3] = "AlwaysRendersVisibleAfterFirstActive", e[e.AlwaysRendersAlwaysVisible = 4] = "AlwaysRendersAlwaysVisible", e))(S || {}), At = ((e) => (e.Always = "always", e.Lazy = "lazy", e.Ever = "ever", e))(At || {}), gt = ((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))(gt || {}), St = ((e) => (e.Lazy = "lazy", e.Ever = "ever", e))(St || {}), Bt = ((e) => (e.Page = "page", e.Element = "element", e))(Bt || {}), m;
37
+ m = class {
38
+ }, n(m, "lktAppSize", k(4)), n(m, "lktAdminEnabled", k(!0)), n(m, "lktAppLoading", k(!0)), n(m, "lktAppReady", k(!1)), n(m, "lktAppSetup", k({})), n(m, "lktMainMenu"), n(m, "lktBottomBar"), n(m, "hasMainHeader", !0), n(m, "hasMainMenu", !0), n(m, "hasBottomBar", !0), n(m, "replaceMainMenuButtonWithBack", !1), n(m, "setup"), n(m, "mainHeader", k(void 0));
39
+ var p;
40
+ p = class {
41
+ static setup(a) {
42
+ a.firstDayOfWeek && (p.firstDayOfWeek.value = a.firstDayOfWeek), a.days && (p.days = a.days), a.months && (p.months = a.months), a.smDays && (p.smDays = a.smDays), a.smMonths && (p.smMonths = a.smMonths);
43
+ }
44
+ static getDaysAsOptions() {
45
+ let a = [], c = p.firstDayOfWeek.value;
46
+ for (let r = c; r < 7; ++r) a.push({ value: r, label: p.days[r] });
47
+ --c;
48
+ for (let r = c; r >= 0; --r) a.push({ value: r, label: p.days[r] });
49
+ return a;
50
+ }
51
+ }, n(p, "firstDayOfWeek", k(0)), n(p, "days", ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]), n(p, "months", ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]), n(p, "smDays", ["Sun", "Mon", "Tu", "Wed", "Th", "Fri", "Sat"]), n(p, "smMonths", ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]);
52
+ var wt = ((e) => (e.Quick = "quick", e.Full = "full", e))(wt || {});
53
+ function It(e) {
54
+ let a = new e(), c = {};
39
55
  if (!Array.isArray(e.lktDefaultValues)) throw new Error("lktDefaultValues must be a keys array.");
40
- for (let n of e.lktDefaultValues) n in a && (u[n] = a[n]);
41
- return u;
56
+ for (let r of e.lktDefaultValues) r in a && (c[r] = a[r]);
57
+ return c;
42
58
  }
43
- const dt = { class: "lkt-step-process--nav" }, pt = {
59
+ const Lt = { class: "lkt-step-process--nav" }, Ct = {
44
60
  key: 1,
45
61
  class: "lkt-step-process--nav-info"
46
- }, ft = {
62
+ }, Mt = {
47
63
  key: 1,
48
64
  class: "lkt-step-process--dots"
49
- }, Z = /* @__PURE__ */ ee({
65
+ }, ae = /* @__PURE__ */ re({
50
66
  __name: "ButtonNav",
51
67
  props: {
52
68
  prevButton: { type: [Object, Boolean] },
@@ -59,65 +75,65 @@ const dt = { class: "lkt-step-process--nav" }, pt = {
59
75
  dotsNumbers: { type: Boolean }
60
76
  },
61
77
  emits: ["prev", "next"],
62
- setup(e, { expose: a, emit: u }) {
63
- const n = te(), m = w(null), x = w(null);
78
+ setup(e, { expose: a, emit: c }) {
79
+ const r = ne(), g = k(null), w = k(null);
64
80
  return a({
65
81
  goNext: () => {
66
- x.value.click();
82
+ w.value.click();
67
83
  },
68
84
  goPrev: () => {
69
- m.value.click();
85
+ g.value.click();
70
86
  }
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({
87
+ }), (l, y) => {
88
+ const s = j("lkt-button"), O = j("lkt-dot");
89
+ return f(), B("div", Lt, [
90
+ l.prevButton ? X((f(), N(s, R({
75
91
  key: 0,
76
92
  ref_key: "prevButtonRef",
77
- ref: m
78
- }, r.prevButton, { class: "is-prev-button" }), null, 16)), [
79
- [Q, !r.isLoading]
80
- ]) : f("", !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 }, {
83
- currentStep: r.currentStep,
84
- currentStepIndex: r.currentStepIndex,
85
- amountOfSteps: r.amountOfSteps
86
- }))) : f("", !0),
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" : ""
93
+ ref: g
94
+ }, l.prevButton, { class: "is-prev-button" }), null, 16)), [
95
+ [U, !l.isLoading]
96
+ ]) : A("", !0),
97
+ _(r)["nav-info"] || l.dots && l.amountOfSteps > 0 ? (f(), B("div", Ct, [
98
+ _(r)["nav-info"] ? H(l.$slots, "nav-info", F(R({ key: 0 }, {
99
+ currentStep: l.currentStep,
100
+ currentStepIndex: l.currentStepIndex,
101
+ amountOfSteps: l.amountOfSteps
102
+ }))) : A("", !0),
103
+ l.dots && l.amountOfSteps > 0 ? (f(), B("div", Mt, [
104
+ (f(!0), B($, null, oe(l.amountOfSteps, (L) => (f(), N(O, R({ ref_for: !0 }, {
105
+ text: l.dotsNumbers ? L : "",
106
+ class: L === l.currentStepIndex + 1 ? "is-active" : ""
91
107
  }), null, 16))), 256))
92
- ])) : f("", !0)
93
- ])) : f("", !0),
94
- r.nextButton ? K((l(), L(i, N({
108
+ ])) : A("", !0)
109
+ ])) : A("", !0),
110
+ l.nextButton ? X((f(), N(s, R({
95
111
  key: 2,
96
112
  ref_key: "nextButtonRef",
97
- ref: x
98
- }, r.nextButton, { class: "is-next-button" }), null, 16)), [
99
- [Q, !r.isLoading]
100
- ]) : f("", !0)
113
+ ref: w
114
+ }, l.nextButton, { class: "is-next-button" }), null, 16)), [
115
+ [U, !l.isLoading]
116
+ ]) : A("", !0)
101
117
  ]);
102
118
  };
103
119
  }
104
- }), mt = {
120
+ }), Nt = {
105
121
  key: 2,
106
122
  class: "lkt-step-process--content"
107
- }, kt = { class: "lkt-grid-1" }, ht = { key: 0 }, yt = /* @__PURE__ */ ee({
123
+ }, Rt = { class: "lkt-grid-1" }, Tt = { key: 0 }, Dt = /* @__PURE__ */ re({
108
124
  __name: "LktStepProcess",
109
- props: /* @__PURE__ */ ve({
125
+ props: /* @__PURE__ */ ke({
110
126
  modelValue: {},
111
127
  loading: { type: Boolean },
112
128
  steps: {},
113
129
  header: {},
114
- nextButton: {},
115
- prevButton: {},
130
+ nextButton: { type: [Boolean, Object] },
131
+ prevButton: { type: [Boolean, Object] },
116
132
  buttonNavPosition: {},
117
133
  buttonNavVisibility: {},
118
134
  dots: { type: Boolean },
119
135
  dotsNumbers: { type: Boolean }
120
- }, vt(ze)),
136
+ }, It(Ze)),
121
137
  emits: [
122
138
  "next",
123
139
  "prev",
@@ -125,133 +141,176 @@ const dt = { class: "lkt-step-process--nav" }, pt = {
125
141
  "update:modelValue",
126
142
  "update:loading"
127
143
  ],
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(() => {
144
+ setup(e, { expose: a, emit: c }) {
145
+ const r = e, g = ne(), w = c, l = k(r.loading), y = k(r.modelValue), s = k(r.steps), O = k({}), L = k(null);
146
+ E(() => r.loading, (t) => l.value = t), E(() => r.modelValue, (t) => y.value = t), E(l, (t) => w("update:loading", t)), E(y, (t) => {
147
+ O.value[t] = !0, w("update:modelValue", t);
148
+ });
149
+ const le = b(() => {
132
150
  let t = [];
133
- for (let k in m) k.indexOf("step-") !== -1 && t.push(k.substring(5));
151
+ for (let o in g) o.indexOf("step-") !== -1 && t.push(o.substring(5));
134
152
  return t;
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))
153
+ }), I = b(() => s.value.findIndex((t) => t.key === y.value)), u = b(() => s.value[I.value]), se = b(() => I.value === 0), q = b(() => {
154
+ var d, v, i, h, C, T, D, P;
155
+ if (((d = u.value) == null ? void 0 : d.prevButton) === !1 || r.prevButton === !1 && !((v = u.value) != null && v.prevButton) || typeof u.value == "object" && (typeof ((i = u.value) == null ? void 0 : i.prevHidden) == "function" && u.value.prevHidden(u.value, s.value) || typeof ((h = u.value) == null ? void 0 : h.prevHidden) == "boolean" && ((C = u.value) == null ? void 0 : C.prevHidden) === !0))
138
156
  return !1;
139
- let t = { ...n.prevButton };
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;
157
+ let t = { ...r.prevButton };
158
+ typeof ((T = u.value) == null ? void 0 : T.prevButton) == "object" && (t = { ...t, ...(D = u.value) == null ? void 0 : D.prevButton }), typeof t.disabled > "u" && (t.disabled = se.value);
159
+ const o = (P = t.events) == null ? void 0 : P.click;
142
160
  return {
143
161
  ...t,
144
162
  events: {
145
163
  ...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);
164
+ click: (M) => {
165
+ var V;
166
+ typeof o == "function" && o(M), ((V = M.httpResponse) == null ? void 0 : V.success) !== !1 && ve(M);
149
167
  }
150
168
  }
151
169
  };
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))
170
+ }), K = b(() => {
171
+ var d, v, i, h, C, T, D, P;
172
+ if (((d = u.value) == null ? void 0 : d.nextButton) === !1 || r.nextButton === !1 && !((v = u.value) != null && v.nextButton) || typeof u.value == "object" && (typeof ((i = u.value) == null ? void 0 : i.nextHidden) == "function" && u.value.nextHidden(u.value, s.value) || typeof ((h = u.value) == null ? void 0 : h.nextHidden) == "boolean" && ((C = u.value) == null ? void 0 : C.nextHidden) === !0))
155
173
  return !1;
156
- let t = { ...n.nextButton };
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;
174
+ let t = { ...r.nextButton };
175
+ typeof ((T = u.value) == null ? void 0 : T.nextButton) == "object" && (t = { ...t, ...(D = u.value) == null ? void 0 : D.nextButton });
176
+ const o = (P = t.events) == null ? void 0 : P.click;
159
177
  return {
160
178
  ...t,
161
179
  events: {
162
180
  ...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);
181
+ click: (M) => {
182
+ var V;
183
+ typeof o == "function" && o(M), ((V = M.httpResponse) == null ? void 0 : V.success) !== !1 && de(M);
166
184
  }
167
185
  }
168
186
  };
169
- }), re = d(() => {
187
+ }), ie = b(() => {
170
188
  const t = [];
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,
179
- dots: n.dots,
180
- dotsNumbers: n.dotsNumbers
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);
189
+ return y.value && t.push(`step-${y.value}`), t.join(" ");
190
+ }), ue = b(() => r.buttonNavVisibility === G.Never ? !1 : !r.buttonNavPosition || r.buttonNavPosition === J.Top), ce = b(() => r.buttonNavVisibility === G.Never ? !1 : r.buttonNavPosition === J.Bottom), z = b(() => s.value.length), Q = b(() => ({
191
+ isLoading: l.value,
192
+ prevButton: q.value,
193
+ nextButton: K.value,
194
+ currentStep: y.value,
195
+ currentStepIndex: I.value,
196
+ amountOfSteps: z.value,
197
+ dots: r.dots,
198
+ dotsNumbers: r.dotsNumbers
199
+ })), Z = b(() => typeof q.value == "object" || typeof K.value == "object" || r.dots || typeof g["nav-info"] < "u"), de = (t) => {
200
+ var v;
201
+ let o = (v = s.value[I.value]) == null ? void 0 : v.nextKey, d = I.value + 1;
202
+ if (typeof o == "function" && (o = o()), typeof o == "string") {
203
+ let i = s.value.findIndex((h) => h.key === o);
204
+ i > -1 && (d = i);
205
+ }
206
+ y.value = s.value[d].key, I.value === s.value.length - 1 ? w("finish", t) : w("next", t);
207
+ }, ve = (t) => {
208
+ var v;
209
+ let o = (v = s.value[I.value]) == null ? void 0 : v.prevKey, d = I.value - 1;
210
+ if (typeof o == "function" && (o = o()), typeof o == "string") {
211
+ let i = s.value.findIndex((h) => h.key === o);
212
+ i > -1 && (d = i);
213
+ }
214
+ y.value = s.value[d].key, w("prev", t);
215
+ }, pe = (t) => {
216
+ var d, v;
217
+ const o = s.value.findIndex((i) => i.key === t);
218
+ if (o > -1 && ((d = s.value[o]) != null && d.renderType))
219
+ switch ((v = s.value[o]) == null ? void 0 : v.renderType) {
220
+ case S.AlwaysRendersAlwaysVisible:
221
+ case S.AlwaysRendersVisibleAfterFirstActive:
222
+ case S.AlwaysRendersVisibleIfActive:
223
+ return !0;
224
+ case S.RendersAndVisibleIfActive:
225
+ return t === y.value;
226
+ }
227
+ return t === y.value;
228
+ }, fe = (t) => {
229
+ var d, v;
230
+ const o = s.value.findIndex((i) => i.key === t);
231
+ if (o > -1 && ((d = s.value[o]) != null && d.renderType))
232
+ switch ((v = s.value[o]) == null ? void 0 : v.renderType) {
233
+ case S.AlwaysRendersAlwaysVisible:
234
+ return !0;
235
+ case S.AlwaysRendersVisibleAfterFirstActive:
236
+ return O.value[t] === !0;
237
+ case S.AlwaysRendersVisibleIfActive:
238
+ case S.RendersAndVisibleIfActive:
239
+ return t === y.value;
240
+ }
241
+ return !0;
185
242
  };
186
243
  return a({
187
244
  goNext: () => {
188
- C.value.goNext();
245
+ L.value.goNext();
189
246
  },
190
247
  goPrev: () => {
191
- C.value.goPrev();
248
+ L.value.goPrev();
192
249
  },
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);
197
- }), (t, k) => {
198
- const b = O("lkt-header"), S = O("lkt-loader");
199
- return l(), y("article", {
200
- class: pe(["lkt-step-process", re.value])
250
+ startLoader: () => l.value = !0,
251
+ stopLoader: () => l.value = !1
252
+ }), he(() => {
253
+ !y.value && s.value.length > 0 && (y.value = s.value[0].key);
254
+ }), (t, o) => {
255
+ const d = j("lkt-header"), v = j("lkt-loader");
256
+ return f(), B("article", {
257
+ class: be(["lkt-step-process", ie.value])
201
258
  }, [
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({
259
+ t.header && Object.keys(t.header).length > 0 ? (f(), N(d, F(R({ key: 0 }, t.header)), null, 16)) : A("", !0),
260
+ ue.value && Z.value ? (f(), N(ae, R({
204
261
  key: 1,
205
262
  ref_key: "navRef",
206
- ref: C
207
- }, G.value), J({ _: 2 }, [
208
- _(m)["nav-info"] ? {
263
+ ref: L
264
+ }, Q.value), Y({ _: 2 }, [
265
+ _(g)["nav-info"] ? {
209
266
  name: "nav-info",
210
- fn: W(({ currentStep: v, currentStepIndex: h, amountOfSteps: B }) => [
211
- E(t.$slots, "nav-info", H(Y({
212
- currentStep: v,
267
+ fn: ee(({ currentStep: i, currentStepIndex: h, amountOfSteps: C }) => [
268
+ H(t.$slots, "nav-info", F(te({
269
+ currentStep: i,
213
270
  currentStepIndex: h,
214
- amountOfSteps: V.value
271
+ amountOfSteps: z.value
215
272
  })))
216
273
  ]),
217
274
  key: "0"
218
275
  } : void 0
219
- ]), 1040)) : f("", !0),
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 })
225
- ])) : f("", !0)
276
+ ]), 1040)) : A("", !0),
277
+ l.value ? A("", !0) : (f(), B("div", Nt, [
278
+ xe("div", Rt, [
279
+ (f(!0), B($, null, oe(le.value, (i) => (f(), B($, null, [
280
+ pe(i) ? X((f(), B("div", Tt, [
281
+ H(t.$slots, "step-" + i, { config: s.value })
282
+ ], 512)), [
283
+ [U, fe(i)]
284
+ ]) : A("", !0)
226
285
  ], 64))), 256))
227
286
  ])
228
287
  ])),
229
- r.value ? (l(), L(S, { key: 3 })) : f("", !0),
230
- le.value && q.value ? (l(), L(Z, N({
288
+ l.value ? (f(), N(v, { key: 3 })) : A("", !0),
289
+ ce.value && Z.value ? (f(), N(ae, R({
231
290
  key: 4,
232
291
  ref_key: "navRef",
233
- ref: C
234
- }, G.value), J({ _: 2 }, [
235
- _(m)["nav-info"] ? {
292
+ ref: L
293
+ }, Q.value), Y({ _: 2 }, [
294
+ _(g)["nav-info"] ? {
236
295
  name: "nav-info",
237
- fn: W(({ currentStep: v, currentStepIndex: h, amountOfSteps: B }) => [
238
- E(t.$slots, "nav-info", H(Y({
239
- currentStep: v,
296
+ fn: ee(({ currentStep: i, currentStepIndex: h, amountOfSteps: C }) => [
297
+ H(t.$slots, "nav-info", F(te({
298
+ currentStep: i,
240
299
  currentStepIndex: h,
241
- amountOfSteps: V.value
300
+ amountOfSteps: z.value
242
301
  })))
243
302
  ]),
244
303
  key: "0"
245
304
  } : void 0
246
- ]), 1040)) : f("", !0)
305
+ ]), 1040)) : A("", !0)
247
306
  ], 2);
248
307
  };
249
308
  }
250
- }), Lt = {
309
+ }), Ft = {
251
310
  install: (e, a = {}) => {
252
- e.component("lkt-step-process", yt);
311
+ e.component("lkt-step-process", Dt);
253
312
  }
254
313
  };
255
314
  export {
256
- Lt as default
315
+ Ft as default
257
316
  };