lkt-step-process 2.0.12 → 2.0.14

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