lkt-vue-kernel 1.2.15 → 1.2.16

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/index.d.ts CHANGED
@@ -96,6 +96,13 @@ interface ModalConfig extends LktObject {
96
96
  headerActionsButton?: Partial<ButtonConfig>;
97
97
  }
98
98
 
99
+ type ValidTextValue = string | number | undefined;
100
+
101
+ declare enum IconType {
102
+ NotDefined = "",
103
+ Button = "button"
104
+ }
105
+
99
106
  interface ClickEventArgs {
100
107
  event?: Event | undefined;
101
108
  httpResponse?: HTTPResponse | undefined;
@@ -105,13 +112,6 @@ interface EventsConfig {
105
112
  click?: (data: ClickEventArgs) => void | undefined;
106
113
  }
107
114
 
108
- type ValidTextValue = string | number | undefined;
109
-
110
- declare enum IconType {
111
- NotDefined = "",
112
- Button = "button"
113
- }
114
-
115
115
  declare enum IconPosition {
116
116
  Start = "start",
117
117
  End = "end"
@@ -132,6 +132,10 @@ interface IconConfig {
132
132
 
133
133
  type ValidAnchorTo = RouteConfig | string | ((data: LktObject) => RouteConfig | string);
134
134
 
135
+ interface AnchorEvents {
136
+ click?: (data: ClickEventArgs) => void | undefined;
137
+ }
138
+
135
139
  interface AnchorConfig {
136
140
  type?: AnchorType;
137
141
  to?: ValidAnchorTo;
@@ -146,7 +150,7 @@ interface AnchorConfig {
146
150
  external?: boolean;
147
151
  text?: ValidTextValue;
148
152
  icon?: IconConfig | string;
149
- events?: EventsConfig | undefined;
153
+ events?: AnchorEvents | undefined;
150
154
  prop?: LktObject;
151
155
  onClick?: Function | undefined;
152
156
  }
@@ -242,6 +246,12 @@ interface AriaConfig {
242
246
  selected?: boolean;
243
247
  }
244
248
 
249
+ interface ButtonEvents {
250
+ click?: (data: ClickEventArgs) => void | undefined;
251
+ httpStart?: undefined | Function;
252
+ httpEnd?: (data: ClickEventArgs) => void | undefined;
253
+ }
254
+
245
255
  interface ButtonConfig {
246
256
  type?: ButtonType;
247
257
  name?: string;
@@ -286,11 +296,7 @@ interface ButtonConfig {
286
296
  prop?: LktObject;
287
297
  aria?: AriaConfig;
288
298
  clickRef?: Element | VueElement;
289
- events?: {
290
- click?: (data: ClickEventArgs) => void | undefined;
291
- httpStart?: undefined | Function;
292
- httpEnd?: (data: ClickEventArgs) => void | undefined;
293
- };
299
+ events?: ButtonEvents;
294
300
  }
295
301
 
296
302
  declare enum FieldType {
@@ -492,18 +498,15 @@ interface FieldValidationConfig {
492
498
  groupConstraintsButton?: ButtonConfig;
493
499
  }
494
500
 
495
- interface FieldValidationEndEventArgs {
496
- config: FieldValidationConfig;
497
- httpResponse: HTTPResponse;
501
+ interface HttpCallEvents {
502
+ onStart?: Function | undefined;
503
+ onEnd?: Function | undefined;
498
504
  }
499
505
 
500
506
  interface HttpCallConfig {
501
507
  resource?: string;
502
508
  data?: LktObject;
503
- events?: {
504
- onStart?: Function | undefined;
505
- onEnd?: Function | undefined;
506
- };
509
+ events?: HttpCallEvents;
507
510
  }
508
511
 
509
512
  declare enum TableType {
@@ -586,6 +589,12 @@ declare enum PaginatorType {
586
589
  TimelineAscDesc = "timeline-asc-desc"
587
590
  }
588
591
 
592
+ interface PaginatorEvents {
593
+ httpStart?: undefined | Function;
594
+ httpEnd?: (data: ClickEventArgs) => void | undefined;
595
+ parseResults?: (data: LktObject[]) => void | undefined;
596
+ }
597
+
589
598
  interface PaginatorConfig {
590
599
  type?: PaginatorType;
591
600
  modelValue?: number;
@@ -598,11 +607,7 @@ interface PaginatorConfig {
598
607
  timelineOldestDate?: Date | undefined;
599
608
  timelineNewestDate?: Date | undefined;
600
609
  timelineVisibleDate?: Date | undefined;
601
- events?: {
602
- httpStart?: undefined | Function;
603
- httpEnd?: (data: ClickEventArgs) => void | undefined;
604
- parseResults?: (data: LktObject[]) => void | undefined;
605
- };
610
+ events?: PaginatorEvents;
606
611
  }
607
612
 
608
613
  type ValidPaginatorConfig = PaginatorConfig | undefined;
@@ -745,20 +750,22 @@ interface CalendarNavigationConfig {
745
750
  hideNextPreview?: boolean;
746
751
  }
747
752
 
753
+ interface CalendarEvents {
754
+ dayPicked?: ((args: {
755
+ pickedDate: Date;
756
+ items: Array<CalendarItemConfig>;
757
+ }) => void);
758
+ visibleMonthChanged?: ((args: {
759
+ visibleDate: Date;
760
+ }) => void);
761
+ }
762
+
748
763
  interface CalendarConfig {
749
764
  modelValue?: Date | undefined;
750
765
  items?: Array<CalendarItemConfig>;
751
766
  disabled?: boolean | CalendarDisabledConfig;
752
767
  navigation?: CalendarNavigationConfig;
753
- events?: {
754
- dayPicked?: ((args: {
755
- pickedDate: Date;
756
- items: Array<CalendarItemConfig>;
757
- }) => void);
758
- visibleMonthChanged?: ((args: {
759
- visibleDate: Date;
760
- }) => void);
761
- };
768
+ events?: CalendarEvents;
762
769
  }
763
770
 
764
771
  interface CalendarGroupsConfig {
@@ -813,6 +820,11 @@ interface FormConfig {
813
820
  uiConfig?: Partial<FormUiConfig>;
814
821
  }
815
822
 
823
+ interface TableEvents {
824
+ parseResults?: (data: LktObject[]) => void | undefined | LktObject[];
825
+ viewChanged?: (view: TableType) => void;
826
+ }
827
+
816
828
  interface TableConfig {
817
829
  modelValue?: LktObject[];
818
830
  type?: TableType;
@@ -869,10 +881,7 @@ interface TableConfig {
869
881
  index: number;
870
882
  }) => boolean);
871
883
  filtersForm?: FormConfig;
872
- events?: {
873
- parseResults?: (data: LktObject[]) => void | undefined | LktObject[];
874
- viewChanged?: (view: TableType) => void;
875
- };
884
+ events?: TableEvents;
876
885
  }
877
886
 
878
887
  interface OptionsConfig {
@@ -912,11 +921,31 @@ interface FileBrowserConfig {
912
921
  listConfig?: TableConfig;
913
922
  }
914
923
 
924
+ interface FieldValidationEndEventArgs {
925
+ config: FieldValidationConfig;
926
+ httpResponse: HTTPResponse;
927
+ }
928
+
915
929
  interface FieldLoadOptionsEndEventArgs {
916
930
  options: Array<OptionConfig>;
917
931
  httpResponse: HTTPResponse;
918
932
  }
919
933
 
934
+ interface FieldEvents {
935
+ validationStart?: undefined | Function;
936
+ validationEnd?: undefined | ((data: FieldValidationEndEventArgs) => boolean);
937
+ loadOptionsStart?: undefined | Function;
938
+ loadOptionsEnd?: undefined | ((data: FieldLoadOptionsEndEventArgs) => void);
939
+ updatedOptions?: ((data: {
940
+ options: Array<OptionConfig>;
941
+ }) => void);
942
+ clickOption?: ((data: {
943
+ option: OptionConfig;
944
+ }) => void);
945
+ itemCreated?: undefined | Function;
946
+ changed?: undefined | Function;
947
+ }
948
+
920
949
  interface FieldConfig extends RenderAndDisplayProps {
921
950
  modelValue?: ValidFieldValue;
922
951
  type?: FieldType;
@@ -982,20 +1011,7 @@ interface FieldConfig extends RenderAndDisplayProps {
982
1011
  customButtonClass?: string;
983
1012
  createButton?: ButtonConfig | false;
984
1013
  callToActionButton?: ButtonConfig | false;
985
- events?: {
986
- validationStart?: undefined | Function;
987
- validationEnd?: undefined | ((data: FieldValidationEndEventArgs) => boolean);
988
- loadOptionsStart?: undefined | Function;
989
- loadOptionsEnd?: undefined | ((data: FieldLoadOptionsEndEventArgs) => void);
990
- updatedOptions?: ((data: {
991
- options: Array<OptionConfig>;
992
- }) => void);
993
- clickOption?: ((data: {
994
- option: OptionConfig;
995
- }) => void);
996
- itemCreated?: undefined | Function;
997
- changed?: undefined | Function;
998
- };
1014
+ events?: FieldEvents;
999
1015
  }
1000
1016
 
1001
1017
  declare class LktSettings {
@@ -1181,6 +1197,59 @@ declare enum CounterType {
1181
1197
  Timer = "timer"
1182
1198
  }
1183
1199
 
1200
+ declare enum ProgressAnimation {
1201
+ None = "",
1202
+ Incremental = "incremental",
1203
+ Decremental = "decremental"
1204
+ }
1205
+
1206
+ declare enum ProgressValueFormat {
1207
+ NotDefined = "",
1208
+ Hidden = "hidden",
1209
+ Integer = "integer",
1210
+ Decimal = "decimal",
1211
+ Auto = "auto"
1212
+ }
1213
+
1214
+ declare enum ProgressType {
1215
+ Bar = "bar",
1216
+ Circle = "circle"
1217
+ }
1218
+
1219
+ interface UnitConfig {
1220
+ text: string;
1221
+ position: 'start' | 'end';
1222
+ }
1223
+
1224
+ interface ProgressAnimationConfig {
1225
+ type: ProgressAnimation;
1226
+ autoplay: boolean;
1227
+ externalControl: boolean;
1228
+ }
1229
+
1230
+ interface ProgressConfig {
1231
+ modelValue?: number;
1232
+ type?: ProgressType;
1233
+ animation?: ProgressAnimation | ProgressAnimationConfig;
1234
+ duration?: number;
1235
+ direction?: 'right' | 'left';
1236
+ pauseOnHover?: boolean;
1237
+ unit?: string | UnitConfig;
1238
+ header?: HeaderConfig;
1239
+ valueFormat?: ProgressValueFormat;
1240
+ text?: string | Function;
1241
+ circle?: CircleConfig;
1242
+ }
1243
+
1244
+ declare enum CounterView {
1245
+ Auto = "auto",
1246
+ Progress = "progress"
1247
+ }
1248
+
1249
+ interface CounterEvents {
1250
+ onEnd?: () => void;
1251
+ }
1252
+
1184
1253
  interface CounterConfig {
1185
1254
  type?: CounterType;
1186
1255
  from?: Date | number;
@@ -1189,6 +1258,9 @@ interface CounterConfig {
1189
1258
  timeout?: number;
1190
1259
  dateFormat?: string;
1191
1260
  seconds?: number;
1261
+ view?: CounterView;
1262
+ progress?: ProgressConfig;
1263
+ events?: CounterEvents;
1192
1264
  }
1193
1265
 
1194
1266
  declare enum DocPageSize {
@@ -1289,6 +1361,11 @@ declare enum NotificationType {
1289
1361
  Inline = "inline"
1290
1362
  }
1291
1363
 
1364
+ interface ItemCrudEvents {
1365
+ httpStart?: undefined | Function;
1366
+ httpEnd?: (data: ClickEventArgs) => void | undefined;
1367
+ }
1368
+
1292
1369
  interface ItemCrudConfig {
1293
1370
  modelValue?: LktObject;
1294
1371
  modifications?: LktObject;
@@ -1327,10 +1404,7 @@ interface ItemCrudConfig {
1327
1404
  navStartButtonsEditing?: Array<ButtonConfig>;
1328
1405
  navEndButtons?: Array<ButtonConfig>;
1329
1406
  navEndButtonsEditing?: Array<ButtonConfig>;
1330
- events?: {
1331
- httpStart?: undefined | Function;
1332
- httpEnd?: (data: ClickEventArgs) => void | undefined;
1333
- };
1407
+ events?: ItemCrudEvents;
1334
1408
  }
1335
1409
 
1336
1410
  interface ItemSlotComponentConfig {
@@ -1386,48 +1460,6 @@ interface MenuConfig {
1386
1460
  http?: HttpCallConfig;
1387
1461
  }
1388
1462
 
1389
- declare enum ProgressAnimation {
1390
- None = "",
1391
- Incremental = "incremental",
1392
- Decremental = "decremental"
1393
- }
1394
-
1395
- declare enum ProgressValueFormat {
1396
- NotDefined = "",
1397
- Hidden = "hidden",
1398
- Integer = "integer",
1399
- Decimal = "decimal",
1400
- Auto = "auto"
1401
- }
1402
-
1403
- declare enum ProgressType {
1404
- Bar = "bar",
1405
- Circle = "circle"
1406
- }
1407
-
1408
- interface UnitConfig {
1409
- text: string;
1410
- position: 'start' | 'end';
1411
- }
1412
-
1413
- interface ProgressAnimationConfig {
1414
- type: ProgressAnimation;
1415
- autoplay: boolean;
1416
- }
1417
-
1418
- interface ProgressConfig {
1419
- modelValue?: number;
1420
- type?: ProgressType;
1421
- animation?: ProgressAnimation | ProgressAnimationConfig;
1422
- duration?: number;
1423
- direction?: 'right' | 'left';
1424
- pauseOnHover?: boolean;
1425
- unit?: string | UnitConfig;
1426
- header?: HeaderConfig;
1427
- valueFormat?: ProgressValueFormat;
1428
- circle?: CircleConfig;
1429
- }
1430
-
1431
1463
  interface StepProcessStepConfig {
1432
1464
  key: string;
1433
1465
  nextButton?: ButtonConfig | false;
@@ -1647,7 +1679,7 @@ declare class Anchor extends LktItem implements AnchorConfig {
1647
1679
  text?: ValidTextValue;
1648
1680
  icon?: IconConfig | string;
1649
1681
  prop: LktObject;
1650
- events?: EventsConfig | undefined;
1682
+ events?: AnchorEvents | undefined;
1651
1683
  getHref(): string;
1652
1684
  constructor(data?: Partial<AnchorConfig>);
1653
1685
  }
@@ -1721,7 +1753,7 @@ declare class Button extends LktItem implements ButtonConfig {
1721
1753
  splitButtons?: Array<ButtonConfig>;
1722
1754
  tooltip?: TooltipConfig;
1723
1755
  prop?: LktObject;
1724
- events?: EventsConfig | undefined;
1756
+ events?: ButtonEvents | undefined;
1725
1757
  constructor(data?: Partial<ButtonConfig>);
1726
1758
  isDisabled(): boolean | undefined;
1727
1759
  }
@@ -1762,6 +1794,9 @@ declare class Counter extends LktItem implements CounterConfig {
1762
1794
  timeout?: number;
1763
1795
  dateFormat?: string;
1764
1796
  seconds?: number;
1797
+ view?: CounterView;
1798
+ progress?: ProgressConfig;
1799
+ events?: CounterEvents;
1765
1800
  constructor(data?: Partial<CounterConfig>);
1766
1801
  }
1767
1802
 
@@ -1852,7 +1887,7 @@ declare class Field extends LktItem implements FieldConfig {
1852
1887
  fileBrowserConfig?: FileBrowserConfig;
1853
1888
  canRender: boolean;
1854
1889
  canDisplay: boolean;
1855
- events?: LktObject;
1890
+ events?: FieldEvents;
1856
1891
  constructor(data?: Partial<FieldConfig>);
1857
1892
  }
1858
1893
 
@@ -2037,7 +2072,7 @@ declare class Paginator extends LktItem implements PaginatorConfig {
2037
2072
  loading?: boolean;
2038
2073
  resourceData?: LktObject;
2039
2074
  dateKey?: string;
2040
- events: LktObject;
2075
+ events?: PaginatorEvents;
2041
2076
  constructor(data?: Partial<PaginatorConfig>);
2042
2077
  }
2043
2078
 
@@ -2052,6 +2087,7 @@ declare class Progress extends LktItem implements ProgressConfig {
2052
2087
  unit?: UnitConfig;
2053
2088
  header?: HeaderConfig;
2054
2089
  valueFormat?: ProgressValueFormat;
2090
+ text?: string | Function;
2055
2091
  circle?: CircleConfig;
2056
2092
  constructor(data?: Partial<ProgressConfig>);
2057
2093
  }
@@ -2119,7 +2155,7 @@ declare class Table extends LktItem implements TableConfig {
2119
2155
  itemSlotComponent?: string | Function | Component;
2120
2156
  itemSlotData?: LktObject | Function;
2121
2157
  itemSlotEvents?: LktObject | Function;
2122
- events?: LktObject;
2158
+ events?: TableEvents;
2123
2159
  switchableTypes?: Array<TableType>;
2124
2160
  switchableTypesButtons?: TableTypeSwitchButtonsConfig;
2125
2161
  useItemSlot: boolean;
@@ -2444,4 +2480,4 @@ declare function getDefaultValues<T>(cls: {
2444
2480
  lktDefaultValues: (keyof T)[];
2445
2481
  }): Partial<T>;
2446
2482
 
2447
- export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, AppSize, type AriaConfig, Banner, type BannerConfig, BannerType, type BeforeCloseModalData, type BooleanFieldConfig, Box, type BoxConfig, Button, type ButtonConfig, ButtonType, type CalendarConfig, type CalendarDisabledConfig, type CalendarGroupsConfig, type CalendarItemConfig, type CalendarNavBarConfig, CalendarNavBarElements, type CalendarNavigationConfig, type CircleConfig, type ClickEventArgs, Column, type ColumnConfig, ColumnType, type ConditionalColumnArgs, Counter, type CounterConfig, CounterType, DocPage, type DocPageConfig, DocPageSize, Dot, type DotConfig, type DragConfig, type EmptyModalKey, type EventsConfig, Field, FieldAutoValidationTrigger, type FieldConfig, type FieldLoadOptionsEndEventArgs, type FieldReadModeConfig, FieldReportLevel, FieldReportType, FieldType, FieldValidation, type FieldValidationConfig, type FieldValidationEndEventArgs, FieldValidationType, type FileBrowserConfig, FileEntity, type FileEntityConfig, FileEntityType, type FormComponentConfig, type FormConfig, FormInstance, type FormItemConfig, type FormUiConfig, Header, type HeaderConfig, HeaderTag, type HttpCallConfig, Icon, type IconConfig, IconPosition, IconType, Image, type ImageConfig, type IntervalConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, ItemCrudView, type ItemSlotComponentConfig, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Login, type LoginConfig, Menu, type MenuConfig, MenuController, MenuEntry, type MenuEntryConfig, MenuEntryType, MenuType, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalController, type ModalRegister, ModalRegisterType, ModalType, ModificationView, type MultiLangValue, MultipleOptionsDisplay, NotificationType, Option, type OptionConfig, type OptionsConfig, Paginator, type PaginatorConfig, PaginatorType, type PolymorphicElementConfig, Progress, ProgressAnimation, type ProgressAnimationConfig, type ProgressConfig, type ProgressTextSlot, ProgressType, ProgressValueFormat, type RenderAndDisplayProps, type RenderModalConfig, type RouteConfig, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, StepProcess, type StepProcessConfig, type StepProcessStepConfig, type TabConfig, TabType, Table, type TableConfig, TablePermission, TableRowType, TableType, type TableTypeSwitchButtonsConfig, Tabs, type TabsConfig, Tag, type TagConfig, TagType, Toast, type ToastConfig, ToastPositionX, ToastType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type TooltipSettings, TooltipSettingsController, type TrackConfig, type UnitConfig, type ValidBeforeCloseModal, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, type ValidIconDot, type ValidIsDisabledValue, type ValidModalComponent, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidPaginatorConfig, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTabKey, type ValidTablePermission, type ValidTableRowTypeValue, type ValidTextValue, ValidationCode, ValidationStatus, WebElement, type WebElementConfig, WebElementController, WebElementLayoutType, type WebElementPropsConfig, type WebElementSettings, WebElementType, type WebItemConfig, WebItemsController, WebPage, type WebPageConfig, WebPageController, type WebPageSettings, WebPageStatus, WebParentType, addConfirm, addModal, applyTextAlignment, applyTextFormat, booleanFieldTypes, changeBackgroundColor, changeFontFamily, changeTextColor, closeConfirm, closeModal, createColumn, ensureButtonConfig, ensureFieldConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getAdminMenuEntries, getAnchorHref, getDefaultLktAnchorWebElement, getDefaultLktButtonWebElement, getDefaultLktHeaderWebElement, getDefaultLktIconWebElement, getDefaultLktImageWebElement, getDefaultLktLayoutAccordionWebElement, getDefaultLktLayoutBoxWebElement, getDefaultLktLayoutWebElement, getDefaultLktTextAccordionWebElement, getDefaultLktTextBannerWebElement, getDefaultLktTextBoxWebElement, getDefaultLktTextWebElement, getDefaultValues, getFormDataState, getFormFieldsKeys, getFormSlotKeys, lktDebug, openConfirm, openModal, prepareResourceData, runModalCallback, setModalCanvas, textFieldTypes, textFieldTypesWithOptions };
2483
+ export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, type AnchorEvents, AnchorType, AppSize, type AriaConfig, Banner, type BannerConfig, BannerType, type BeforeCloseModalData, type BooleanFieldConfig, Box, type BoxConfig, Button, type ButtonConfig, type ButtonEvents, ButtonType, type CalendarConfig, type CalendarDisabledConfig, type CalendarEvents, type CalendarGroupsConfig, type CalendarItemConfig, type CalendarNavBarConfig, CalendarNavBarElements, type CalendarNavigationConfig, type CircleConfig, type ClickEventArgs, Column, type ColumnConfig, ColumnType, type ConditionalColumnArgs, Counter, type CounterConfig, type CounterEvents, CounterType, CounterView, DocPage, type DocPageConfig, DocPageSize, Dot, type DotConfig, type DragConfig, type EmptyModalKey, type EventsConfig, Field, FieldAutoValidationTrigger, type FieldConfig, type FieldEvents, type FieldLoadOptionsEndEventArgs, type FieldReadModeConfig, FieldReportLevel, FieldReportType, FieldType, FieldValidation, type FieldValidationConfig, type FieldValidationEndEventArgs, FieldValidationType, type FileBrowserConfig, FileEntity, type FileEntityConfig, FileEntityType, type FormComponentConfig, type FormConfig, FormInstance, type FormItemConfig, type FormUiConfig, Header, type HeaderConfig, HeaderTag, type HttpCallConfig, type HttpCallEvents, Icon, type IconConfig, IconPosition, IconType, Image, type ImageConfig, type IntervalConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, type ItemCrudEvents, ItemCrudMode, ItemCrudView, type ItemSlotComponentConfig, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Login, type LoginConfig, Menu, type MenuConfig, MenuController, MenuEntry, type MenuEntryConfig, MenuEntryType, MenuType, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalController, type ModalRegister, ModalRegisterType, ModalType, ModificationView, type MultiLangValue, MultipleOptionsDisplay, NotificationType, Option, type OptionConfig, type OptionsConfig, Paginator, type PaginatorConfig, type PaginatorEvents, PaginatorType, type PolymorphicElementConfig, Progress, ProgressAnimation, type ProgressAnimationConfig, type ProgressConfig, type ProgressTextSlot, ProgressType, ProgressValueFormat, type RenderAndDisplayProps, type RenderModalConfig, type RouteConfig, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, StepProcess, type StepProcessConfig, type StepProcessStepConfig, type TabConfig, TabType, Table, type TableConfig, type TableEvents, TablePermission, TableRowType, TableType, type TableTypeSwitchButtonsConfig, Tabs, type TabsConfig, Tag, type TagConfig, TagType, Toast, type ToastConfig, ToastPositionX, ToastType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type TooltipSettings, TooltipSettingsController, type TrackConfig, type UnitConfig, type ValidBeforeCloseModal, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, type ValidIconDot, type ValidIsDisabledValue, type ValidModalComponent, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidPaginatorConfig, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTabKey, type ValidTablePermission, type ValidTableRowTypeValue, type ValidTextValue, ValidationCode, ValidationStatus, WebElement, type WebElementConfig, WebElementController, WebElementLayoutType, type WebElementPropsConfig, type WebElementSettings, WebElementType, type WebItemConfig, WebItemsController, WebPage, type WebPageConfig, WebPageController, type WebPageSettings, WebPageStatus, WebParentType, addConfirm, addModal, applyTextAlignment, applyTextFormat, booleanFieldTypes, changeBackgroundColor, changeFontFamily, changeTextColor, closeConfirm, closeModal, createColumn, ensureButtonConfig, ensureFieldConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getAdminMenuEntries, getAnchorHref, getDefaultLktAnchorWebElement, getDefaultLktButtonWebElement, getDefaultLktHeaderWebElement, getDefaultLktIconWebElement, getDefaultLktImageWebElement, getDefaultLktLayoutAccordionWebElement, getDefaultLktLayoutBoxWebElement, getDefaultLktLayoutWebElement, getDefaultLktTextAccordionWebElement, getDefaultLktTextBannerWebElement, getDefaultLktTextBoxWebElement, getDefaultLktTextWebElement, getDefaultValues, getFormDataState, getFormFieldsKeys, getFormSlotKeys, lktDebug, openConfirm, openModal, prepareResourceData, runModalCallback, setModalCanvas, textFieldTypes, textFieldTypesWithOptions };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var Ee=(l=>(l.Button="button",l.Submit="submit",l.Reset="reset",l.Anchor="anchor",l.Content="content",l.Switch="switch",l.HiddenSwitch="hidden-switch",l.Split="split",l.SplitLazy="split-lazy",l.SplitEver="split-ever",l.Tooltip="tooltip",l.TooltipLazy="tooltip-lazy",l.TooltipEver="tooltip-ever",l.FileUpload="file-upload",l.ImageUpload="image-upload",l.InvisibleWrapper="invisible-wrapper",l.Menu="menu",l.Tab="tab",l))(Ee||{});var c=(t,e)=>typeof t>"u"||!t?e:{...e,...t},h=(t,e)=>typeof t>"u"?e:{...e,...t};var b=class t{static debugEnabled=!1;static debugMode(e=!0){return t.debugEnabled=e,t}static defaultCreateErrorText="Creation failed";static defaultCreateErrorDetails="An error occurred while creating the item. Please try again.";static defaultCreateErrorIcon="";static setDefaultCreateError(e){t.defaultCreateErrorText=e.text??t.defaultCreateErrorText,t.defaultCreateErrorDetails=e.details??t.defaultCreateErrorDetails,t.defaultCreateErrorIcon=e.icon??t.defaultCreateErrorIcon}static defaultUpdateErrorText="Update failed";static defaultUpdateErrorDetails="An error occurred while updating the item. Please try again.";static defaultUpdateErrorIcon="";static setDefaultUpdateError(e){t.defaultUpdateErrorText=e.text??t.defaultUpdateErrorText,t.defaultUpdateErrorDetails=e.details??t.defaultUpdateErrorDetails,t.defaultUpdateErrorIcon=e.icon??t.defaultUpdateErrorIcon}static defaultDropErrorText="Drop failed";static defaultDropErrorDetails="An error occurred while removing the item. Please try again.";static defaultDropErrorIcon="";static setDefaultDropError(e){t.defaultDropErrorText=e.text??t.defaultDropErrorText,t.defaultDropErrorDetails=e.details??t.defaultDropErrorDetails,t.defaultDropErrorIcon=e.icon??t.defaultDropErrorIcon}static defaultCreateSuccessText="Item created";static defaultCreateSuccessDetails="";static defaultCreateSuccessIcon="";static setDefaultCreateSuccess(e){t.defaultCreateSuccessText=e.text??t.defaultCreateSuccessText,t.defaultCreateSuccessDetails=e.details??t.defaultCreateSuccessDetails,t.defaultCreateSuccessIcon=e.icon??t.defaultCreateSuccessIcon}static defaultUpdateSuccessText="Item updated";static defaultUpdateSuccessDetails="";static defaultUpdateSuccessIcon="";static setDefaultUpdateSuccess(e){t.defaultUpdateSuccessText=e.text??t.defaultUpdateSuccessText,t.defaultUpdateSuccessDetails=e.details??t.defaultUpdateSuccessDetails,t.defaultUpdateSuccessIcon=e.icon??t.defaultUpdateSuccessIcon}static defaultDropSuccessText="Item removed";static defaultDropSuccessDetails="";static defaultDropSuccessIcon="";static setDefaultDropSuccess(e){t.defaultDropSuccessText=e.text??t.defaultDropSuccessText,t.defaultDropSuccessDetails=e.details??t.defaultDropSuccessDetails,t.defaultDropSuccessIcon=e.icon??t.defaultDropSuccessIcon}static defaultUploadSuccessText="Upload success";static defaultUploadSuccessDetails="";static defaultUploadSuccessIcon="";static setDefaultUploadSuccess(e){t.defaultUploadSuccessText=e.text??t.defaultUploadSuccessText,t.defaultUploadSuccessDetails=e.details??t.defaultUploadSuccessDetails,t.defaultUploadSuccessIcon=e.icon??t.defaultUploadSuccessIcon}static defaultUploadErrorText="Upload error";static defaultUploadErrorDetails="";static defaultUploadErrorIcon="";static setDefaultUploadError(e){t.defaultUploadErrorText=e.text??t.defaultUploadErrorText,t.defaultUploadErrorDetails=e.details??t.defaultUploadErrorDetails,t.defaultUploadErrorIcon=e.icon??t.defaultUploadErrorIcon}static defaultSaveButton={text:"Save",icon:"lkt-icn-save"};static setDefaultSaveButton(e,o=!0){return o?t.defaultSaveButton=e:t.defaultSaveButton=c(e,t.defaultSaveButton),t}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(e,o=!0){return o?t.defaultConfirmButton=e:t.defaultConfirmButton=c(e,t.defaultConfirmButton),t}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(e,o=!0){return o?t.defaultCancelButton=e:t.defaultCancelButton=c(e,t.defaultCancelButton),t}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(e,o=!0){return o?t.defaultCreateButton=e:t.defaultCreateButton=c(e,t.defaultCreateButton),t}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(e,o=!0){return o?t.defaultUpdateButton=e:t.defaultUpdateButton=c(e,t.defaultUpdateButton),t}static defaultDropButton={text:"Drop"};static setDefaultDropButton(e,o=!0){return o?t.defaultDropButton=e:t.defaultDropButton=c(e,t.defaultDropButton),t}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(e,o=!0){return o?t.defaultEditModeButton=e:t.defaultEditModeButton=c(e,t.defaultEditModeButton),t}static defaultGroupButton={text:"Actions",type:"split",icon:"lkt-icn-settings-cogs"};static setDefaultGroupButton(e,o=!0){return o?t.defaultGroupButton=e:t.defaultGroupButton=c(e,t.defaultGroupButton),t}static defaultToggleButton={text:"Toggle",textOn:"Close",textOff:"Show more",type:"hidden-switch"};static setDefaultToggleButton(e,o=!0){return o?t.defaultToggleButton=e:t.defaultToggleButton=c(e,t.defaultToggleButton),t}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(e,o=!0){return o?t.defaultLoadMoreButton=e:t.defaultLoadMoreButton=c(e,t.defaultLoadMoreButton),t}static defaultCloseModalIcon="lkt-icn-cancel";static setDefaultCloseModalIcon(e){return t.defaultCloseModalIcon=e,t}static defaultCloseToastIcon="lkt-icn-cancel";static setDefaultCloseToastIcon(e){return t.defaultCloseToastIcon=e,t}static defaultTableSortAscIcon="lkt-icn-arrow-bottom";static defaultTableSortDescIcon="lkt-icn-arrow-top";static setDefaultTableSortAscIcon(e){return t.defaultTableSortAscIcon=e,t}static setDefaultTableSortDescIcon(e){return t.defaultTableSortDescIcon=e,t}static defaultPaginatorFirstButton={text:"",icon:"lkt-icn-angle-double-left"};static defaultPaginatorPrevButton={text:"",icon:"lkt-icn-angle-left"};static defaultPaginatorNextButton={text:"",iconEnd:"lkt-icn-angle-right"};static defaultPaginatorLastButton={text:"",iconEnd:"lkt-icn-angle-double-right"};static setDefaultPaginatorFirstButton(e,o=!0){return o?t.defaultPaginatorFirstButton=e:t.defaultPaginatorFirstButton=c(e,t.defaultPaginatorFirstButton),t}static setDefaultPaginatorPrevButton(e,o=!0){return o?t.defaultPaginatorPrevButton=e:t.defaultPaginatorPrevButton=c(e,t.defaultPaginatorPrevButton),t}static setDefaultPaginatorNextButton(e,o=!0){return o?t.defaultPaginatorNextButton=e:t.defaultPaginatorNextButton=c(e,t.defaultPaginatorNextButton),t}static setDefaultPaginatorLastButton(e,o=!0){return o?t.defaultPaginatorLastButton=e:t.defaultPaginatorLastButton=c(e,t.defaultPaginatorLastButton),t}static defaultFieldElementCustomClassField={label:"Appearance",multiple:!1};static defaultFieldLktAccordionElementCustomClassField={};static defaultFieldLktBoxElementCustomClassField={};static defaultFieldLktIconElementCustomClassField={};static defaultFieldLktImageElementCustomClassField={};static setDefaultFieldLktAccordionElementCustomClassField(e,o=!0){return o?t.defaultFieldLktAccordionElementCustomClassField=e:t.defaultFieldLktAccordionElementCustomClassField=h(e,t.defaultFieldLktAccordionElementCustomClassField),t}static setDefaultFieldLktBoxElementCustomClassField(e,o=!0){return o?t.defaultFieldLktBoxElementCustomClassField=e:t.defaultFieldLktBoxElementCustomClassField=h(e,t.defaultFieldLktBoxElementCustomClassField),t}static setDefaultFieldLktIconElementCustomClassField(e,o=!0){return o?t.defaultFieldLktIconElementCustomClassField=e:t.defaultFieldLktIconElementCustomClassField=h(e,t.defaultFieldLktIconElementCustomClassField),t}static setDefaultFieldLktImageElementCustomClassField(e,o=!0){return o?t.defaultFieldLktImageElementCustomClassField=e:t.defaultFieldLktImageElementCustomClassField=h(e,t.defaultFieldLktImageElementCustomClassField),t}static i18nOptionsFormatter={};static setI18nOptionsFormatter(e,o){return t.i18nOptionsFormatter[e]=o,t}};var D=class t{static data={};static configure(e){return t.data=e,t}};var Ie=(s=>(s.Text="text",s.Email="email",s.Tel="tel",s.Password="password",s.Search="search",s.Number="number",s.Color="color",s.Range="range",s.Textarea="textarea",s.Html="html",s.Date="date",s.Time="time",s.DateTime="datetime",s.File="file",s.Image="image",s.Select="select",s.Check="check",s.Switch="switch",s.Calc="calc",s.Card="card",s.Table="table",s.Radio="radio",s.ToggleButtonGroup="toggle-button-group",s))(Ie||{});var Dt=["text","search","select"],Vt=["switch","check"],vt=["switch","check"],Tt=["text","search"],Ft=["switch","check"],At=["select","color","card","image"],Ot=["text","email","password"];var wt=["lktDateProps","lktStrictItem","lktExcludedProps"],a=class t{static lktAllowUndefinedProps=[];static lktExcludedProps=[];static lktDateProps=[];static lktStrictItem=!1;static lktDefaultValues=[];constructor(e){}feed(e={},o=this){if(typeof e=="object")for(let[r,n]of Object.entries(e))o.assignProp(r,n)}assignProp(e,o){if(!(wt.includes(e)||t.lktExcludedProps.includes(e))&&!(t.lktStrictItem&&!this.hasOwnProperty(e))){if(t.lktDateProps.includes(e)){this[e]=new Date(o);return}this[e]=o}}};var L=class extends a{lktStrictItem=!0};var V=class t extends L{r=0;g=0;b=0;a=255;constructor(e){super(),this.feed(e)}static fromHexColor(e){let o=parseInt(+("0x"+e.substring(1,3)),10),r=parseInt(+("0x"+e.substring(3,5)),10),n=parseInt(+("0x"+e.substring(5,7)),10),i=255;return e.length===9&&(i=parseInt(+("0x"+e.substring(5,7)),10)),new t({r:o,g:r,b:n,a:i})}toString(){let e=parseInt(this.r).toString(16).padStart(2,"0").toUpperCase(),o=parseInt(this.g).toString(16).padStart(2,"0").toUpperCase(),r=parseInt(this.b).toString(16).padStart(2,"0").toUpperCase(),n="#"+e+o+r;if(this.a==255)return n;let i=parseInt(this.a).toString(16).padStart(2,"0").toUpperCase();return n+i}getContrastFontColor(){return(.299*this.r+.587*this.g+.114*this.b)/this.a>.5?"#000000":"#ffffff"}};var v=(n=>(n.Auto="auto",n.Always="always",n.Lazy="lazy",n.Ever="ever",n))(v||{});var Me=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(Me||{});var T=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["modelValue","type","toggleMode","actionButton","toggleButton","toggleOnClickIntro","toggleTimeout","title","icon","class","contentClass","iconRotation","minHeight","iconAtEnd","toggleIconAtEnd"];modelValue=!1;type="auto";toggleMode="height";actionButton={};toggleButton={};toggleOnClickIntro=!1;toggleTimeout=0;title="";icon="";class="";contentClass="";iconRotation="90";minHeight=void 0;iconAtEnd=!1;toggleIconAtEnd=!1;constructor(e={}){super(),this.feed(e)}};var Se=(m=>(m.Href="href",m.RouterLink="router-link",m.RouterLinkBack="router-link-back",m.Mail="mail",m.Tel="tel",m.Tab="tab",m.Download="download",m.Action="action",m.Legacy="",m))(Se||{});import{__ as Pt}from"lkt-i18n";var S=(t,e)=>{if(typeof t=="string"){if(t==="prop:")return e;if(t.startsWith("prop:"))return e[t.substring(5)];if(t.includes("feed{")){let o=/\bfeed{(.*?)}/g;return t.replace(o,(n,i)=>e[i.trim()]||"")}}return t},jt=t=>{if(typeof t=="string"&&t.startsWith("__:")){let e=String(t);return e.startsWith("__:")?Pt(e.substring(3)):e}return t},Wt=(t,e)=>{if(!t)return{};let o={};for(let r in t)o[r]=S(t[r],e);return o};var F=t=>{let e="";if(typeof t.to=="string"&&(e=t.to),typeof t.to=="function"&&(e=t.to(t.prop??{})),typeof t.to=="string"&&(e=S(t.to,t.prop??{})),typeof t.type<"u")switch(t.type){case"mail":return`mailto:${e}`;case"tel":return`tel:${e}`;case"href":case"tab":case"download":return e}return e};var A=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","to","class","isActive","downloadFileName","disabled","onClick","confirmModal","confirmModalKey","confirmData","imposter","external","events","text","icon","prop"];type="router-link";to="";class="";isActive=!1;downloadFileName="";disabled=!1;onClick=void 0;confirmModal="";confirmModalKey="_";confirmData={};imposter=!1;external=!1;text="";icon="";prop={};events={};getHref(){return F(this)}constructor(e={}){super(),this.feed(e)}};var O=(o=>(o.Static="static",o.Parallax="parallax",o))(O||{});var w=class extends a{static lktDefaultValues=["type","header","subHeader","art","opacity","globalButton","navButtons"];type="static";header=void 0;subHeader=void 0;art=void 0;media=void 0;opacity=void 0;globalButton=void 0;navButtons=[];constructor(e={}){super(),this.feed(e)}};var P=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","contentClass","icon"];title="";iconAtEnd=!1;style="";class="";contentClass;icon="";constructor(e={}){super(),this.feed(e)}};import{generateRandomString as Nt}from"lkt-string-tools";var j=class extends a{lktAllowUndefinedProps=["clickRef","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave"];static lktDefaultValues=["type","name","class","containerClass","value","disabled","loading","wrapButton","splitIcon","resource","resourceData","modal","modalKey","modalData","confirmModal","confirmModalKey","confirmData","modalCallbacks","text","textOn","textOff","icon","iconOn","iconOff","iconEndOn","iconEndOff","dot","iconEnd","img","showTooltipOnHoverDelay","tooltip","checked","clickRef","openTooltip","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave","splitClass","splitButtons","prop","events","menuKey"];type="button";name=Nt(10);class="";containerClass="";value="";disabled=!1;loading=!1;wrapButton=!1;splitIcon="lkt-icn-angle-bottom";resource="";resourceData={};modal="";modalKey="_";modalData={};confirmModal="";confirmModalKey="_";confirmData={};modalCallbacks=[];menuKey=void 0;text="";textOn=void 0;textOff=void 0;iconOn=void 0;iconOff=void 0;iconEndOn=void 0;iconEndOff=void 0;icon="";dot=!1;iconEnd="";img="";showTooltipOnHoverDelay=0;checked=!1;clickRef=void 0;openTooltip=!1;tabindex=void 0;anchor=void 0;showTooltipOnHover=void 0;hideTooltipOnLeave=void 0;splitClass="";splitButtons=[];tooltip={};prop={};events={};constructor(e={}){super(),this.feed(e)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var De=(g=>(g.None="",g.Field="field",g.Button="button",g.Anchor="anchor",g.InlineDrop="inline-drop",g.ColumnIndex="column-index",g))(De||{});var B=class extends a{lktExcludedProps=["field","anchor","button"];lktAllowUndefinedProps=["formatter","checkEmpty","colspan","field","anchor","button"];static lktDefaultValues=["type","key","label","class","sortable","ensureFieldLabel","hidden","formatter","checkEmpty","colspan","preferSlot","isForRowKey","isForAccordionHeader","isCalendarDate","isCalendarGroup","extractTitleFromColumn","slotData","field","anchor","button"];type="";key="";label="";class="";sortable=!0;ensureFieldLabel=!1;hidden=!1;formatter=void 0;checkEmpty=void 0;colspan=void 0;preferSlot=!0;isForRowKey=!1;isForAccordionHeader=!1;isCalendarDate=!1;isCalendarGroup=!1;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(e={}){super(),this.feed(e)}};var Ve=(r=>(r.Date="date",r.Number="number",r.Timer="timer",r))(Ve||{});var W=class extends a{static lktDefaultValues=["type","from","to","step","timeout","dateFormat"];type="number";from=void 0;to=void 0;step=1;timeout=1e3;dateFormat=":dd :hh :mm :ss";seconds=60;constructor(e={}){super(),this.feed(e)}};var ve=(u=>(u.A0="a0",u.A1="a1",u.A2="a2",u.A3="a3",u.A4="a4",u.A5="a5",u.A6="a6",u.A7="a7",u.A8="a8",u.A9="a9",u))(ve||{});var N=class extends a{static lktDefaultValues=["id","size","skipPageNumber","frontPage","title","img","icon"];id="";size="a4";skipPageNumber=!1;frontPage=!1;title="";img="";icon="";constructor(e={}){super(),this.feed(e)}};var H=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["text","class"];text="";class="";constructor(e={}){super(),this.feed(e)}};import{generateRandomString as Ht}from"lkt-string-tools";var Te=(n=>(n.List="list",n.Inline="inline",n.Count="count",n.Table="table",n))(Te||{});var U=class extends a{static lktDefaultValues=["modelValue","type","valid","placeholder","searchPlaceholder","label","labelIcon","labelIconAtEnd","name","autocomplete","disabled","readonly","hidden","readMode","allowReadModeSwitch","tabindex","mandatory","showPassword","canClear","canUndo","canI18n","canStep","canTag","mandatoryMessage","infoMessage","errorMessage","min","max","step","enableAutoNumberFix","emptyValueSlot","optionSlot","valueSlot","editSlot","slotData","featuredButton","infoButtonEllipsis","fileName","customButtonText","customButtonClass","options","multiple","multipleDisplay","multipleDisplayEdition","searchable","icon","download","modal","modalKey","modalData","validation","prop","optionValueType","optionsConfig","fileUploadHttp","tooltipConfig","fileBrowserConfig","readModeConfig","configOn","configOff","canRender","canDisplay","createButton","callToActionButton","events"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Ht(16);autocomplete=!1;disabled=!1;readonly=!1;hidden=!1;tabindex=void 0;mandatory=!1;showPassword=!1;canClear=!1;canUndo=!1;canI18n=!1;canStep=!1;canTag=!1;mandatoryMessage="";infoMessage="";errorMessage="";min=void 0;max=void 0;step=1;enableAutoNumberFix=!0;emptyValueSlot="";optionSlot=void 0;valueSlot=void 0;editSlot=void 0;slotData={};featuredButton="";infoButtonEllipsis=!1;fileName="";customButtonText="";customButtonClass="";options=[];multiple=!1;multipleDisplay="list";multipleDisplayEdition="inline";searchable=!1;icon="";download="";modal="";modalKey="";modalData={};validation={};configOn={};configOff={};readMode=!1;allowReadModeSwitch=!1;readModeConfig;prop={};optionValueType="value";optionsConfig={};fileUploadHttp={};fileUploadButton={};createButton=!1;callToActionButton=!1;tooltipConfig={};fileBrowserConfig={};canRender=!0;canDisplay=!0;events={};constructor(e={}){super(),this.feed(e)}};var K=class extends a{static lktDefaultValues=["items","submitButton","container","header","uiConfig"];items=[];submitButton=!1;container={};header={};uiConfig={};constructor(e={}){super(),this.feed(e),this.items=this.items.map(o=>(o.type==="field"&&typeof o.modificationsField>"u"&&(o.modificationsField={options:[]}),o))}static mkFieldItemConfig(e,o,r={},n={}){return{type:"field",key:e,field:o,modificationsField:r,...n}}static mkFormItemConfig(e,o={}){return{type:"form",form:e,...o}}static mkComponentItemConfig(e,o={}){return{type:"component",component:e,...o}}static mkSlotItemConfig(e,o={}){return{type:"slot",key:e,slotData:o}}};var Fe=(l=>(l.HTTPResponse="http-response",l.MinStringLength="min-str",l.MinNumber="min-num",l.MaxStringLength="max-str",l.MaxNumber="max-num",l.Email="email",l.Empty="empty",l.EqualTo="equal-to",l.MinNumbers="min-numbers",l.MaxNumbers="max-numbers",l.MinChars="min-chars",l.MaxChars="max-chars",l.MinUpperChars="min-upper-chars",l.MaxUpperChars="max-upper-chars",l.MinLowerChars="min-lower-chars",l.MaxLowerChars="max-lower-chars",l.MinSpecialChars="min-special-chars",l.MaxSpecialChars="max-special-chars",l))(Fe||{});var Ae=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(Ae||{});var R=class t extends a{code=void 0;status="info";icon=void 0;min=0;max=0;equalToValue=void 0;httpResponse=void 0;element=void 0;constructor(e){super(),this.feed(e)}setMin(e){return this.min=e,this}setMax(e){return this.max=e,this}setEqualToValue(e){return this.equalToValue=e,this}setHTTPResponse(e){return this.httpResponse=e,this}static createEmpty(e="ko"){return new t({code:"empty",status:e})}static createEmail(e="ko"){return new t({code:"email",status:e})}static createMinStr(e,o="ko"){return new t({code:"min-str",status:o}).setMin(e)}static createMaxStr(e,o="ko"){return new t({code:"max-str",status:o}).setMax(e)}static createMinNum(e,o="ko"){return new t({code:"min-num",status:o}).setMin(e)}static createMaxNum(e,o="ko"){return new t({code:"max-num",status:o}).setMax(e)}static createNumBetween(e,o,r="ko"){return new t({code:"max-num",status:r}).setMin(e).setMax(o)}static createMinNumbers(e,o="ko"){return new t({code:"min-numbers",status:o}).setMin(e)}static createMaxNumbers(e,o="ko"){return new t({code:"max-numbers",status:o}).setMax(e)}static createMinUpperChars(e,o="ko"){return new t({code:"min-upper-chars",status:o}).setMin(e)}static createMaxUpperChars(e,o="ko"){return new t({code:"max-upper-chars",status:o}).setMax(e)}static createMinLowerChars(e,o="ko"){return new t({code:"min-lower-chars",status:o}).setMin(e)}static createMaxLowerChars(e,o="ko"){return new t({code:"max-lower-chars",status:o}).setMax(e)}static createMinSpecialChars(e,o="ko"){return new t({code:"min-special-chars",status:o}).setMin(e)}static createMaxSpecialChars(e,o="ko"){return new t({code:"max-special-chars",status:o}).setMax(e)}static createMinChars(e,o="ko"){return new t({code:"min-chars",status:o}).setMin(e)}static createMaxChars(e,o="ko"){return new t({code:"max-chars",status:o}).setMax(e)}static createEqualTo(e,o="ko"){return new t({code:"equal-to",status:o}).setEqualToValue(e)}static createRemoteResponse(e,o="ko"){return new t({code:"http-response",status:o}).setHTTPResponse(e)}};var Oe=(i=>(i.StorageUnit="unit",i.Directory="dir",i.Image="img",i.Video="vid",i.File="file",i))(Oe||{});var G=class t extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["id","type","name","src","children","parent"];id=void 0;type="img";name="";src="";children=[];isPicked=!1;parent=void 0;constructor(e={}){super(),this.feed(e),this.children||(this.children=[]),this.children=this.children.map(o=>new t({...o,parent:this.id}))}};var we=(g=>(g.H1="h1",g.H2="h2",g.H3="h3",g.H4="h4",g.H5="h5",g.H6="h6",g))(we||{});var q=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon","topStartButtons","topStartContent","topEndButtons","topEndContent","bottomButtons"];tag="h2";class="";text="";icon="";topStartButtons=[];topStartContent=[];topEndButtons=[];topEndContent=[];bottomButtons=[];constructor(e={}){super(),this.feed(e)}};var Pe=(o=>(o.NotDefined="",o.Button="button",o))(Pe||{});var je=(o=>(o.Start="start",o.End="end",o))(je||{});var X=class extends a{static lktDefaultValues=["icon","text","class","type","position","events"];icon="";text="";class="";type="";position="start";events={};constructor(e={}){super(),this.feed(e)}};var z=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["src","alt","text","class","imageStyle"];src="";alt="";text="";class="";imageStyle="";constructor(e={}){super(),this.feed(e)}};var We=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(We||{});var Ne=(o=>(o.Inline="inline",o.Modal="modal",o))(Ne||{});var He=(o=>(o.Top="top",o.Bottom="bottom",o))(He||{});var Ue=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(Ue||{});var Ke=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(Ke||{});var Re=(o=>(o.Toast="toast",o.Inline="inline",o))(Re||{});var Ge=(n=>(n.Current="current",n.Modifications="modifications",n.SplitView="split-view",n.Differences="differences",n))(Ge||{});var $=class extends a{static lktDefaultValues=["modelValue","modifications","editing","perms","customData","mode","view","visibleView","modificationViews","editModeButton","dropButton","createButton","createAndNewButton","updateButton","groupButton","groupButtonAsModalActions","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType","enabledSaveWithoutChanges","redirectOnCreate","redirectOnDrop","differencesTableConfig","events","form","formUiConfig","navStartButtons","navStartButtonsEditing","navEndButtons","navEndButtonsEditing"];modelValue={};modifications={};editing=!1;perms=[];customData={};form={};formUiConfig={};mode="read";view="inline";visibleView="current";modificationViews=!0;editModeButton={};dropButton={};createButton={};createAndNewButton=!1;updateButton={};groupButton=!1;groupButtonAsModalActions=!1;modalConfig={};saveConfig={type:"manual"};title="";header={};readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";enabledSaveWithoutChanges=!1;redirectOnCreate=void 0;redirectOnDrop=void 0;differencesTableConfig={};navStartButtons=[];navStartButtonsEditing=[];navEndButtons=[];navEndButtonsEditing=[];events={};constructor(e={}){super(),this.feed(e)}};var J=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(e={}){super(),this.feed(e)}};var qe=(r=>(r.Hidden="hidden",r.Always="always",r.TabList="tablist",r))(qe||{});var Y=class extends a{static lktDefaultValues=["modelValue","http","type","menuKey","hiddenPosition","closeOnClickOutside"];modelValue=[];type="always";menuKey="_";http={};closeOnClickOutside=!0;hiddenPosition="left";constructor(e={}){super(),this.feed(e)}};var Xe=(n=>(n.Anchor="anchor",n.Button="button",n.Header="header",n.Entry="entry",n))(Xe||{});var Q=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events","anchor","button","header"];key="";type="anchor";class="";icon="";anchor={};button={};header={};isActiveChecker=void 0;isOpened=!1;isActive=!1;keepOpenOnChildClick=!1;parent=void 0;children;events={};constructor(e={}){super(),this.feed(e)}doClose(){this.isOpened=!1}};var ze=(o=>(o.Modal="modal",o.Confirm="confirm",o))(ze||{});var Z=class extends a{static lktDefaultValues=["size","preTitle","preTitleIcon","title","closeIcon","closeConfirm","closeConfirmKey","showClose","disabledClose","disabledVeilClick","hiddenFooter","modalName","modalKey","zIndex","beforeClose","item","type","confirmButton","cancelButton","headerActionsButton"];size="";preTitle="";preTitleIcon="";title="";closeIcon=b.defaultCloseModalIcon;closeConfirm="";closeConfirmKey="_";showClose=!0;disabledClose=!1;disabledVeilClick=!1;hiddenFooter=!1;modalName="";modalKey="_";zIndex=500;beforeClose=void 0;item={};confirmButton={};cancelButton={};headerActionsButton={};type="modal";constructor(e={}){super(),this.feed(e)}};var _=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(e={}){super(),this.feed(e)}};var $e=(m=>(m.Pages="pages",m.PrevNext="prev-next",m.PagesPrevNext="pages-prev-next",m.PagesPrevNextFirstLast="pages-prev-next-first-last",m.LoadMore="load-more",m.Infinite="infinite",m.TimelineAsc="timeline-asc",m.TimelineDesc="timeline-desc",m.TimelineAscDesc="timeline-asc-desc",m))($e||{});var ee=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData","dateKey","events"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};dateKey="";events={};constructor(e={}){super(),this.feed(e)}};var Je=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(Je||{});var Ye=(i=>(i.NotDefined="",i.Hidden="hidden",i.Integer="integer",i.Decimal="decimal",i.Auto="auto",i))(Ye||{});var Qe=(o=>(o.Bar="bar",o.Circle="circle",o))(Qe||{});var te=class extends a{static lktAllowUndefinedProps=["circle","unit"];static lktDefaultValues=["modelValue","animation","type","duration","pauseOnHover","header","valueFormat","circle","unit"];modelValue=0;animation="";type="bar";duration=4e3;pauseOnHover=!1;unit=void 0;header={};valueFormat="auto";circle=void 0;constructor(e={}){super(),this.feed(e)}};var oe=class extends a{static lktDefaultValues=["modelValue","loading","steps","header","nextButton","prevButton","buttonNavPosition","buttonNavVisibility"];modelValue="";loading=!1;steps=[];header={};nextButton={};prevButton={};buttonNavPosition="top";buttonNavVisibility="always";constructor(e={}){super(),this.feed(e)}};var Ze=(f=>(f.Table="table",f.Item="item",f.Ul="ul",f.Ol="ol",f.Carousel="carousel",f.Accordion="accordion",f.Calendar="calendar",f))(Ze||{});var _e=(n=>(n[n.Auto=0]="Auto",n[n.PreferItem=1]="PreferItem",n[n.PreferCustomItem=2]="PreferCustomItem",n[n.PreferColumns=3]="PreferColumns",n))(_e||{});var re=class extends a{static lktDefaultValues=["modelValue","type","columns","noResultsText","hideEmptyColumns","itemDisplayChecker","customItemSlotName","loading","page","perms","editMode","dataStateConfig","sortable","sorter","initialSorting","drag","paginator","header","title","titleTag","titleIcon","headerClass","editModeButton","saveButton","createButton","groupButton","wrapContentTag","wrapContentClass","itemsContainerClass","itemContainerClass","itemContainerStyle","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","calendar","calendarGroups","accordion","hideTableHeader","skipTableItemsContainer","events","switchableTypes","switchableTypesButtons","useItemSlot","filtersForm"];modelValue=[];type="table";columns=[];noResultsText="";hideTableHeader=!1;hideEmptyColumns=!1;itemDisplayChecker=void 0;customItemSlotName=void 0;rowDisplayType=0;loading=!1;page=1;perms=[];editMode=!1;dataStateConfig={};sortable=!1;sorter=void 0;initialSorting=!1;drag=void 0;paginator={};carousel={};calendar={};calendarGroups={};accordion={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;itemContainerStyle;skipTableItemsContainer;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";itemSlotComponent=void 0;itemSlotData={};itemSlotEvents={};events={};switchableTypes=[];switchableTypesButtons={};useItemSlot=!1;filtersForm={};constructor(e={}){super(),this.feed(e)}};var ne=class extends a{static lktDefaultValues=["modelValue","id","class","contentClass","useSession","cacheLifetime","tabs","navStartButtons","navEndButtons","navPostEndButtonsElements"];modelValue="";id="";class="";contentClass="";useSession=!1;cacheLifetime=5;tabs=[];navStartButtons=[];navEndButtons=[];navPostEndButtonsElements=[];constructor(e={}){super(),this.feed(e)}};var et=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(et||{});var ae=class extends a{static lktDefaultValues=["class","text","featuredText","icon","iconAtEnd","featuredAtStart","type"];class="";text="";featuredText="";icon="";iconAtEnd=!1;featuredAtStart=!1;type="";constructor(e={}){super(),this.feed(e)}};var tt=(o=>(o.Message="message",o.Button="button",o))(tt||{});var ot=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(ot||{});var ie=class extends a{static lktDefaultValues=["type","text","details","icon","positionX","duration","buttonConfig","zIndex"];type="message";text="";details="";icon="";positionX="right";duration=void 0;buttonConfig=void 0;zIndex=1e3;constructor(e={}){super(),this.feed(e)}};var rt=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(rt||{});var nt=(n=>(n.Top="top",n.Bottom="bottom",n.Center="center",n.ReferrerCenter="referrer-center",n))(nt||{});var at=(i=>(i.Left="left",i.Right="right",i.Center="center",i.LeftCorner="left-corner",i.RightCorner="right-corner",i))(at||{});var le=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","indicator","class","contentClass","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay","compensationX","compensationY","compensateGlobalContainers","remoteControl","teleport","content"];modelValue=!1;alwaysOpen=!1;indicator=!1;class="";contentClass="";text="";icon="";iconAtEnd=!1;engine="fixed";referrerWidth=!1;referrerMargin=0;windowMargin=0;referrer=void 0;locationY="bottom";locationX="left-corner";showOnReferrerHover=!1;showOnReferrerHoverDelay=0;hideOnReferrerLeave=!1;hideOnReferrerLeaveDelay=0;compensationX=0;compensationY=0;compensateGlobalContainers=!0;remoteControl=!1;teleport="";content=[];constructor(e={}){super(),this.feed(e)}};var it=(p=>(p.LktAnchor="lkt-anchor",p.LktLayoutAccordion="lkt-layout-accordion",p.LktTextAccordion="lkt-text-accordion",p.LktLayoutBox="lkt-layout-box",p.LktTextBox="lkt-text-box",p.LktLayoutBanner="lkt-layout-banner",p.LktTextBanner="lkt-text-banner",p.LktButton="lkt-button",p.LktLayout="lkt-layout",p.LktHeader="lkt-header",p.LktIcon="lkt-icon",p.LktIcons="lkt-icons",p.LktImage="lkt-image",p.LktText="lkt-text",p))(it||{});var se=(n=>(n.Grid="grid",n.FlexRow="flex-row",n.FlexRows="flex-rows",n.FlexColumn="flex-column",n))(se||{});import{getAvailableLanguages as C}from"lkt-i18n";var k=(t="Time to create")=>{let e={};return C().forEach(r=>{e[r]=t}),new d({id:0,type:"lkt-text",props:{text:e},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}})},fe=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-anchor",props:{text:t},config:{hasHeader:!0,hasIcon:!0}})},ue=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-button",props:{text:t},config:{hasHeader:!0,hasIcon:!0},children:[k("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}})},me=()=>new d({id:0,type:"lkt-layout",props:{},config:{},children:[],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),de=()=>{let t={},e={};return C().forEach(r=>{t[r]="Title goes here",e[r]="Content goes here"}),new d({id:0,type:"lkt-text-box",props:{header:t,text:e},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},ce=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-layout-box",props:{header:t},config:{hasHeader:!0,hasIcon:!0},children:[k("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},pe=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-layout-accordion",props:{header:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[k("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},ge=()=>{let t={},e={};return C().forEach(r=>{t[r]="Title goes here",e[r]="Content goes here"}),new d({id:0,type:"lkt-text-accordion",props:{header:t,text:e,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},Ce=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-header",props:{text:t},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},E=()=>{let t={};return C().forEach(o=>{t[o]="Content goes here"}),new d({id:0,type:"lkt-icon",props:{text:t},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},xe=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Image description goes here",e[n]="",o[n]=""}),new d({id:0,type:"lkt-image",props:{text:t,alt:e,title:o},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},be=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Title goes here",e[n]="Subtitle goes here",o[n]="Content goes here"}),new d({id:0,type:"lkt-text-banner",props:{header:t,subHeader:e,text:o,art:{},media:{},opacity:0,type:"static"},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},lt=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Title goes here",e[n]="Subtitle goes here",o[n]="Content goes here"}),new d({id:0,type:"lkt-icons",props:{header:t,subHeader:e,text:o},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},subElements:[E()],layout:{type:"flex-rows",columns:[],alignSelf:[],justifySelf:[]}})};import{cloneObject as Ut}from"lkt-object-tools";import{generateRandomString as Kt}from"lkt-string-tools";import{time as Rt}from"lkt-date-tools";var I=class t{static elements=[];static customAppearance={};static addWebElement(e){return t.elements.push(e),t}static getElements(){return t.elements}static getCustomWebElementSettings(e){let o=e.startsWith("custom:")?e.split(":")[1]:e;return t.elements.find(r=>r.id===o)}static setCustomAppearance(e){return typeof e.key=="string"?t.customAppearance[e.key]=e:e.key.forEach(o=>{t.customAppearance[o]=e}),t}static getCustomAppearance(e){return t.customAppearance[e]}};var d=class t extends a{static lktDefaultValues=["id","type","component","props","children","layout","config","subElements"];id=0;type="lkt-text";component="";props={class:"",icon:"",header:{},subHeader:{},text:{}};children=[];subElements=[];layout={type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]};config={hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]};keyMoment="";uid="";constructor(e={}){super(),this.feed(e),this.props||(this.props={text:{}}),this.layout||(this.layout={amountOfItems:[],columns:[],alignSelf:[],alignItems:[],justifySelf:[],justifyContent:[]}),this.layout.columns||(this.layout.columns=[]),this.layout.alignSelf||(this.layout.alignSelf=[]),this.layout.alignItems||(this.layout.alignItems=[]),this.layout.justifySelf||(this.layout.justifySelf=[]),this.layout.justifyContent||(this.layout.justifyContent=[]),this.props.header||(this.props.header={}),(!this.props.text||typeof this.props.text!="object")&&(this.props.text={}),this.type==="lkt-text-banner"&&(this.props.subHeader||(this.props.subHeader={}),(!this.props.art||typeof this.props.art!="object"||Object.keys(this.props.art).length===0)&&(this.props.art={src:""}),(!this.props.media||typeof this.props.media!="object"||Object.keys(this.props.media).length===0)&&(this.props.media={src:""}),this.props.opacity||(this.props.opacity=0),this.props.type||(this.props.type="static")),this.type==="lkt-image"&&(this.props.alt||(this.props.alt={}),this.props.title||(this.props.title={}),this.props.text||(this.props.text={})),Array.isArray(this.config.callToActions)&&this.config.callToActions?.length>0&&(this.config.callToActions=this.config.callToActions.map(o=>new t(o))),Array.isArray(this.children)||(this.children=[]),this.children=this.children.map(o=>new t(o)),this.subElements=this.subElements.map(o=>new t(o)),this.uid=[this.id,Kt(6)].join("-"),this.updateKeyMoment()}updateKeyMoment(){this.keyMoment=[this.uid,Rt()].join("-")}addChild(e,o=void 0){return Array.isArray(this.children)||(this.children=[]),typeof o=="number"&&o>=0&&o<this.children.length?(this.children.splice(o,0,e),this):(this.children.push(e),this)}getClone(){let e=o=>(o.id=0,o.children?.forEach(r=>e(r)),o);return new t(e(Ut(this)))}static createByType(e){switch(e){case"lkt-layout-box":return ce();case"lkt-text-box":return de();case"lkt-layout-accordion":return pe();case"lkt-text-accordion":return ge();case"lkt-icon":return E();case"lkt-icons":return lt();case"lkt-image":return xe();case"lkt-anchor":return fe();case"lkt-button":return ue();case"lkt-layout":return me();case"lkt-header":return Ce();case"lkt-text":return k();case"lkt-text-banner":return be()}return new t({type:e})}addSubElement(){switch(this.type){case"lkt-icons":this.subElements.push(E());break}return this}isCustom(){return this.type.startsWith("custom:")}getCustomSettings(){return I.getCustomWebElementSettings(this.type)}};import{generateRandomString as ft,getUrlSlug as ut}from"lkt-string-tools";import{time as mt}from"lkt-date-tools";var st=(r=>(r.Draft="draft",r.Public="public",r.Scheduled="scheduled",r))(st||{});import{getAvailableLanguages as Gt}from"lkt-i18n";var he=class extends a{static lktDefaultValues=["id","name","slug","status","scheduledDate","nameData","webElements"];keyMoment="";id=0;name="";nameData={};slug="";slugData={};status="draft";scheduledDate=void 0;webElements=[];crudConfig={};constructor(e={}){super(),this.feed(e),this.keyMoment=ft(4)+this.id+mt(),Array.isArray(this.slugData)&&(this.slugData={},this.updateSlug()),this.slugData||this.updateSlug()}updateKeyMoment(){this.keyMoment=ft(4)+this.id+mt()}updateSlug(){this.slug=ut(this.name);let e=Gt();for(let o in e){let r=e[o];this.slugData[r]=ut(String(this.nameData[r]))}}};var dt=(f=>(f[f.XXS=1]="XXS",f[f.XS=2]="XS",f[f.SM=3]="SM",f[f.MD=4]="MD",f[f.LG=5]="LG",f[f.XL=6]="XL",f[f.XXL=7]="XXL",f))(dt||{});var ct=(n=>(n.PrevButton="prev",n.NextButton="next",n.DatePicker="datePicker",n.GoToCurrent="goToCurrent",n))(ct||{});var pt=(n=>(n.None="",n.Focus="focus",n.Blur="blur",n.Always="always",n))(pt||{});var gt=(r=>(r.Error="error",r.Errors="errors",r.All="all",r))(gt||{});var Ct=(o=>(o.Message="message",o.Inline="inline",o))(Ct||{});var xt=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(xt||{});var bt=(i=>(i.Refresh="refresh",i.Close="close",i.ReOpen="reOpen",i.Exec="exec",i.Open="open",i))(bt||{});var ht=(o=>(o.Asc="asc",o.Desc="desc",o))(ht||{});var kt=(r=>(r.Always="always",r.Lazy="lazy",r.Ever="ever",r))(kt||{});var yt=(u=>(u.Create="create",u.Update="update",u.Edit="edit",u.Drop="drop",u.Sort="sort",u.SwitchEditMode="switch-edit-mode",u.InlineEdit="inline-edit",u.InlineCreate="inline-create",u.ModalCreate="modal-create",u.InlineCreateEver="inline-create-ever",u))(yt||{});var Lt=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Lt||{});var Bt=(o=>(o.Page="page",o.Element="element",o))(Bt||{});var ke=class t{value;constructor(e){this.value=e}getValue(...e){return typeof this.value=="function"?this.value(...e):typeof this.value=="object"&&typeof this.value==typeof t?this.value.getValue(...e):typeof this.value=="string"?this.value:""}};var y=class t{static pages=[];static defaultPageEnabled=!0;static setDefaultPageEnabled(e){return t.defaultPageEnabled=e,t}static hasDefaultPageEnabled(){return t.defaultPageEnabled}static addWebPage(e){return t.pages.push(e),t}static getPages(){return t.pages}static getCustomWebPageSettings(e){return t.pages.find(o=>o.id===e||o.code===e)}};var M=class t{static stack={};static setWebItemConfig(e){return t.stack[e.code]=e,t}static getItems(){return Object.values(t.stack)}static getWebItemSettings(e){return t.stack[e]}};var qt=t=>{let e=[];return y.hasDefaultPageEnabled()&&e.push({key:"web-pages",type:"entry",icon:"lkt-icn-webpage",anchor:{to:"/admin/web-pages/0",text:"Pages",events:{click:()=>{t.menuStatus.value=!1}}}}),y.getPages().forEach(o=>{e.push({key:o.code,type:"entry",icon:"lkt-icn-webpage",anchor:{to:`/admin/web-pages/${o.id}`,text:o.label,events:{click:()=>{t.menuStatus.value=!1}}}})}),M.getItems().forEach(o=>{o.many!==!1&&e.push({key:o.code,type:"entry",icon:o.icon,anchor:{to:`/admin/web-items/${o.code}`,text:o.labelMany,events:{click:()=>{t.menuStatus.value=!1}}}})}),e.push({key:"translations",type:"entry",icon:"lkt-icn-lang-picker",anchor:{to:"/admin/i18n",text:"Translations",events:{click:()=>{t.menuStatus.value=!1}}}}),e};var Xt=(t,...e)=>{b.debugEnabled&&console.info("::lkt::",`[${t}] `,...e)};import{DataState as zt}from"lkt-data-state";var $t=(t,e,o)=>{let r=new zt(JSON.parse(JSON.stringify(t)),{onlyProps:ye(o),recursiveOnlyProps:!1});return r.increment(JSON.parse(JSON.stringify(e))),r},ye=t=>{if(t.items===void 0)return[];if(t.items.length===0)return[];let e=[];for(let o in t.items){let r=t.items[o];switch(r.type){case"field":r.key!==void 0&&e.push(r.key);break;case"form":r.form&&(e=[...e,...ye(r.form)]);break}}return e},Et=t=>{if(t.items===void 0)return[];if(t.items.length===0)return[];let e=[];for(let o in t.items){let r=t.items[o];switch(r.type){case"slot":r.key!==void 0&&e.push(r.key);break;case"form":r.form&&(e=[...e,...Et(r.form)]);break}}return e};import{nextTick as Jt}from"vue";var x=class t{static config=[];static components=[];static zIndex=500;static canvas=void 0;static addModal(e){return t.config.push(e),t}static findConfig(e){return t.config.find(o=>o.name===e)}static getInstanceIndex(e){return`${e.modalName}_${e.modalKey}`}static getModalInfo(e,o={},r){let n=t.getInstanceIndex(e);return e={...r.config,...e,zIndex:t.zIndex},{componentProps:o,modalConfig:e,modalRegister:r,index:n,legacy:!1,legacyData:{props:{...e,modalConfig:e,...o}}}}static focus(e){return t.components[e.index]=e,t.components[e.index]}static open(e,o={},r=!1){o.modalKey&&(e.modalKey=o.modalKey);let n=t.findConfig(e.modalName);if(r&&(o.size&&(e.size=o.size,delete o.size),o.preTitle&&(e.preTitle=o.preTitle,delete o.preTitle),o.preTitleIcon&&(e.preTitleIcon=o.preTitleIcon,delete o.preTitleIcon),o.title&&(e.title=o.title,delete o.title),o.closeIcon&&(e.closeIcon=o.closeIcon,delete o.closeIcon),o.closeConfirm&&(e.closeConfirm=o.closeConfirm,delete o.closeConfirm),o.closeConfirmKey&&(e.closeConfirmKey=o.closeConfirmKey,delete o.closeConfirmKey),o.showClose&&(e.showClose=o.showClose,delete o.showClose),o.disabledClose&&(e.disabledClose=o.disabledClose,delete o.disabledClose),o.disabledVeilClick&&(e.disabledVeilClick=o.disabledVeilClick,delete o.disabledVeilClick),o.hiddenFooter&&(e.hiddenFooter=o.hiddenFooter,delete o.hiddenFooter),o.modalName&&(e.modalName=o.modalName,delete o.modalName),o.modalKey&&(e.modalKey=o.modalKey,delete o.modalKey),o.beforeClose&&(e.beforeClose=o.beforeClose,delete o.beforeClose),o.item&&(e.item=o.item,delete o.item),o.confirmButton&&(e.confirmButton=o.confirmButton,delete o.confirmButton),o.cancelButton&&(e.cancelButton=o.cancelButton,delete o.cancelButton),o.type&&(e.type=o.type,delete o.type)),n){++t.zIndex;let i=this.getModalInfo(e,o,n);return i.legacy=r,t.components[i.index]?t.focus(i):(t.components[i.index]=i,t.canvas?.refresh(),t.components[i.index])}}static close(e){if(t.findConfig(e.modalName)){--t.zIndex;let r=t.getInstanceIndex(e);delete t.components[r],Object.keys(t.components).length===0&&(t.zIndex=500),t.canvas?.refresh()}}static reOpen(e,o={},r=!1){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.close(e),t.canvas?.refresh(),Jt(()=>{t.open(e,o,r),t.canvas?.refresh()})}static execModal(e,o,r={}){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.canvas?.execModal(e.modalName,e.modalKey,o,r),t.canvas?.refresh()}static refresh(e,o={}){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.canvas?.refreshModal(e.modalName,e.modalKey,o),t.canvas?.refresh()}static runModalCallback(e){let o=e.modalKey?e.modalKey:"_",r=e.args?e.args:{},n={modalName:e.modalName,modalKey:o};switch(e.action){case"reOpen":return t.reOpen(n,r);case"open":return t.open(n,r);case"close":return t.close(n);case"refresh":return t.refresh(n,r);case"exec":let i=e.method;return i?t.execModal(n,i,r):void 0}}static updateModalKey(e,o){if(!t.canvas){console.warn("ModalCanvas not defined");return}let r=t.getInstanceIndex(e),n=t.getInstanceIndex({modalName:e.modalName,modalKey:o});return t.components[n]=t.components[r],t.components[n].modalConfig.modalKey=o,t.components[n].legacyData.props.modalConfig.modalKey=o,t.components[n].legacyData.props.modalKey=o,delete t.components[r],t.canvas?.refresh(),t}};var Le=t=>(typeof t=="string"&&t.indexOf("confirm__")===0&&(t=t.substring(9)),"confirm__"+t),Yt=t=>{x.addModal(t)},Qt=t=>{x.addModal({...t,name:Le(t.name)})},It=(t,e)=>{x.open(t,e),x.canvas?.refresh()},Mt=t=>{x.close(t),x.canvas?.refresh()},Zt=t=>{x.canvas=t},_t=(t,e)=>{It({...t,modalName:Le(t.modalName)},e)},eo=t=>{Mt({...t,modalName:Le(t.modalName)})},to=t=>{x.runModalCallback(t)};var oo=t=>new B(t);var ro=t=>{document.execCommand(t,!1)},no=t=>{document.execCommand("justify"+t,!1)},ao=t=>{document.execCommand("foreColor",!1,t)},io=t=>{document.execCommand("backColor",!1,t)},lo=(t,e)=>{document.execCommand("fontName",!1,e)};import{ref as so}from"vue";var Be=class t{static config={};static addMenu(e,o){let r=typeof e=="function"?e():e;return t.config[r]=so(o),t}static toggleMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!t.config[o].value,t.config[o].value}static closeMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!1,t.config[o].value}static openMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!0,t.config[o].value}static getMenuStatus(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value}};var St=(o=>(o.Quick="quick",o.Full="full",o))(St||{});function ka(t){let e=new t,o={};if(!Array.isArray(t.lktDefaultValues))throw new Error("lktDefaultValues must be a keys array.");for(let r of t.lktDefaultValues)r in e&&(o[r]=e[r]);return o}export{T as Accordion,Me as AccordionToggleMode,v as AccordionType,A as Anchor,Se as AnchorType,dt as AppSize,w as Banner,O as BannerType,P as Box,j as Button,Ee as ButtonType,ct as CalendarNavBarElements,B as Column,De as ColumnType,W as Counter,Ve as CounterType,N as DocPage,ve as DocPageSize,H as Dot,U as Field,pt as FieldAutoValidationTrigger,gt as FieldReportLevel,Ct as FieldReportType,Ie as FieldType,R as FieldValidation,xt as FieldValidationType,G as FileEntity,Oe as FileEntityType,K as FormInstance,q as Header,we as HeaderTag,X as Icon,je as IconPosition,Pe as IconType,z as Image,$ as ItemCrud,He as ItemCrudButtonNavPosition,Ue as ItemCrudButtonNavVisibility,We as ItemCrudMode,Ne as ItemCrudView,V as LktColor,a as LktItem,b as LktSettings,L as LktStrictItem,J as Login,Y as Menu,Be as MenuController,Q as MenuEntry,Xe as MenuEntryType,qe as MenuType,Z as Modal,bt as ModalCallbackAction,x as ModalController,St as ModalRegisterType,ze as ModalType,Ge as ModificationView,Te as MultipleOptionsDisplay,Re as NotificationType,_ as Option,ee as Paginator,$e as PaginatorType,te as Progress,Je as ProgressAnimation,Qe as ProgressType,Ye as ProgressValueFormat,ke as SafeString,Ke as SaveType,ht as SortDirection,oe as StepProcess,kt as TabType,re as Table,yt as TablePermission,_e as TableRowType,Ze as TableType,ne as Tabs,ae as Tag,et as TagType,ie as Toast,ot as ToastPositionX,tt as ToastType,Lt as ToggleMode,le as Tooltip,at as TooltipLocationX,nt as TooltipLocationY,rt as TooltipPositionEngine,D as TooltipSettingsController,Fe as ValidationCode,Ae as ValidationStatus,d as WebElement,I as WebElementController,se as WebElementLayoutType,it as WebElementType,M as WebItemsController,he as WebPage,y as WebPageController,st as WebPageStatus,Bt as WebParentType,Qt as addConfirm,Yt as addModal,no as applyTextAlignment,ro as applyTextFormat,Ft as booleanFieldTypes,io as changeBackgroundColor,lo as changeFontFamily,ao as changeTextColor,eo as closeConfirm,Mt as closeModal,oo as createColumn,c as ensureButtonConfig,h as ensureFieldConfig,jt as extractI18nValue,S as extractPropValue,Dt as fieldTypesWithOptions,Vt as fieldTypesWithoutClear,vt as fieldTypesWithoutUndo,At as fieldsWithMultipleMode,qt as getAdminMenuEntries,F as getAnchorHref,fe as getDefaultLktAnchorWebElement,ue as getDefaultLktButtonWebElement,Ce as getDefaultLktHeaderWebElement,E as getDefaultLktIconWebElement,xe as getDefaultLktImageWebElement,pe as getDefaultLktLayoutAccordionWebElement,ce as getDefaultLktLayoutBoxWebElement,me as getDefaultLktLayoutWebElement,ge as getDefaultLktTextAccordionWebElement,be as getDefaultLktTextBannerWebElement,de as getDefaultLktTextBoxWebElement,k as getDefaultLktTextWebElement,ka as getDefaultValues,$t as getFormDataState,ye as getFormFieldsKeys,Et as getFormSlotKeys,Xt as lktDebug,_t as openConfirm,It as openModal,Wt as prepareResourceData,to as runModalCallback,Zt as setModalCanvas,Ot as textFieldTypes,Tt as textFieldTypesWithOptions};
1
+ var Be=(l=>(l.Button="button",l.Submit="submit",l.Reset="reset",l.Anchor="anchor",l.Content="content",l.Switch="switch",l.HiddenSwitch="hidden-switch",l.Split="split",l.SplitLazy="split-lazy",l.SplitEver="split-ever",l.Tooltip="tooltip",l.TooltipLazy="tooltip-lazy",l.TooltipEver="tooltip-ever",l.FileUpload="file-upload",l.ImageUpload="image-upload",l.InvisibleWrapper="invisible-wrapper",l.Menu="menu",l.Tab="tab",l))(Be||{});var c=(t,e)=>typeof t>"u"||!t?e:{...e,...t},h=(t,e)=>typeof t>"u"?e:{...e,...t};var b=class t{static debugEnabled=!1;static debugMode(e=!0){return t.debugEnabled=e,t}static defaultCreateErrorText="Creation failed";static defaultCreateErrorDetails="An error occurred while creating the item. Please try again.";static defaultCreateErrorIcon="";static setDefaultCreateError(e){t.defaultCreateErrorText=e.text??t.defaultCreateErrorText,t.defaultCreateErrorDetails=e.details??t.defaultCreateErrorDetails,t.defaultCreateErrorIcon=e.icon??t.defaultCreateErrorIcon}static defaultUpdateErrorText="Update failed";static defaultUpdateErrorDetails="An error occurred while updating the item. Please try again.";static defaultUpdateErrorIcon="";static setDefaultUpdateError(e){t.defaultUpdateErrorText=e.text??t.defaultUpdateErrorText,t.defaultUpdateErrorDetails=e.details??t.defaultUpdateErrorDetails,t.defaultUpdateErrorIcon=e.icon??t.defaultUpdateErrorIcon}static defaultDropErrorText="Drop failed";static defaultDropErrorDetails="An error occurred while removing the item. Please try again.";static defaultDropErrorIcon="";static setDefaultDropError(e){t.defaultDropErrorText=e.text??t.defaultDropErrorText,t.defaultDropErrorDetails=e.details??t.defaultDropErrorDetails,t.defaultDropErrorIcon=e.icon??t.defaultDropErrorIcon}static defaultCreateSuccessText="Item created";static defaultCreateSuccessDetails="";static defaultCreateSuccessIcon="";static setDefaultCreateSuccess(e){t.defaultCreateSuccessText=e.text??t.defaultCreateSuccessText,t.defaultCreateSuccessDetails=e.details??t.defaultCreateSuccessDetails,t.defaultCreateSuccessIcon=e.icon??t.defaultCreateSuccessIcon}static defaultUpdateSuccessText="Item updated";static defaultUpdateSuccessDetails="";static defaultUpdateSuccessIcon="";static setDefaultUpdateSuccess(e){t.defaultUpdateSuccessText=e.text??t.defaultUpdateSuccessText,t.defaultUpdateSuccessDetails=e.details??t.defaultUpdateSuccessDetails,t.defaultUpdateSuccessIcon=e.icon??t.defaultUpdateSuccessIcon}static defaultDropSuccessText="Item removed";static defaultDropSuccessDetails="";static defaultDropSuccessIcon="";static setDefaultDropSuccess(e){t.defaultDropSuccessText=e.text??t.defaultDropSuccessText,t.defaultDropSuccessDetails=e.details??t.defaultDropSuccessDetails,t.defaultDropSuccessIcon=e.icon??t.defaultDropSuccessIcon}static defaultUploadSuccessText="Upload success";static defaultUploadSuccessDetails="";static defaultUploadSuccessIcon="";static setDefaultUploadSuccess(e){t.defaultUploadSuccessText=e.text??t.defaultUploadSuccessText,t.defaultUploadSuccessDetails=e.details??t.defaultUploadSuccessDetails,t.defaultUploadSuccessIcon=e.icon??t.defaultUploadSuccessIcon}static defaultUploadErrorText="Upload error";static defaultUploadErrorDetails="";static defaultUploadErrorIcon="";static setDefaultUploadError(e){t.defaultUploadErrorText=e.text??t.defaultUploadErrorText,t.defaultUploadErrorDetails=e.details??t.defaultUploadErrorDetails,t.defaultUploadErrorIcon=e.icon??t.defaultUploadErrorIcon}static defaultSaveButton={text:"Save",icon:"lkt-icn-save"};static setDefaultSaveButton(e,o=!0){return o?t.defaultSaveButton=e:t.defaultSaveButton=c(e,t.defaultSaveButton),t}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(e,o=!0){return o?t.defaultConfirmButton=e:t.defaultConfirmButton=c(e,t.defaultConfirmButton),t}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(e,o=!0){return o?t.defaultCancelButton=e:t.defaultCancelButton=c(e,t.defaultCancelButton),t}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(e,o=!0){return o?t.defaultCreateButton=e:t.defaultCreateButton=c(e,t.defaultCreateButton),t}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(e,o=!0){return o?t.defaultUpdateButton=e:t.defaultUpdateButton=c(e,t.defaultUpdateButton),t}static defaultDropButton={text:"Drop"};static setDefaultDropButton(e,o=!0){return o?t.defaultDropButton=e:t.defaultDropButton=c(e,t.defaultDropButton),t}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(e,o=!0){return o?t.defaultEditModeButton=e:t.defaultEditModeButton=c(e,t.defaultEditModeButton),t}static defaultGroupButton={text:"Actions",type:"split",icon:"lkt-icn-settings-cogs"};static setDefaultGroupButton(e,o=!0){return o?t.defaultGroupButton=e:t.defaultGroupButton=c(e,t.defaultGroupButton),t}static defaultToggleButton={text:"Toggle",textOn:"Close",textOff:"Show more",type:"hidden-switch"};static setDefaultToggleButton(e,o=!0){return o?t.defaultToggleButton=e:t.defaultToggleButton=c(e,t.defaultToggleButton),t}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(e,o=!0){return o?t.defaultLoadMoreButton=e:t.defaultLoadMoreButton=c(e,t.defaultLoadMoreButton),t}static defaultCloseModalIcon="lkt-icn-cancel";static setDefaultCloseModalIcon(e){return t.defaultCloseModalIcon=e,t}static defaultCloseToastIcon="lkt-icn-cancel";static setDefaultCloseToastIcon(e){return t.defaultCloseToastIcon=e,t}static defaultTableSortAscIcon="lkt-icn-arrow-bottom";static defaultTableSortDescIcon="lkt-icn-arrow-top";static setDefaultTableSortAscIcon(e){return t.defaultTableSortAscIcon=e,t}static setDefaultTableSortDescIcon(e){return t.defaultTableSortDescIcon=e,t}static defaultPaginatorFirstButton={text:"",icon:"lkt-icn-angle-double-left"};static defaultPaginatorPrevButton={text:"",icon:"lkt-icn-angle-left"};static defaultPaginatorNextButton={text:"",iconEnd:"lkt-icn-angle-right"};static defaultPaginatorLastButton={text:"",iconEnd:"lkt-icn-angle-double-right"};static setDefaultPaginatorFirstButton(e,o=!0){return o?t.defaultPaginatorFirstButton=e:t.defaultPaginatorFirstButton=c(e,t.defaultPaginatorFirstButton),t}static setDefaultPaginatorPrevButton(e,o=!0){return o?t.defaultPaginatorPrevButton=e:t.defaultPaginatorPrevButton=c(e,t.defaultPaginatorPrevButton),t}static setDefaultPaginatorNextButton(e,o=!0){return o?t.defaultPaginatorNextButton=e:t.defaultPaginatorNextButton=c(e,t.defaultPaginatorNextButton),t}static setDefaultPaginatorLastButton(e,o=!0){return o?t.defaultPaginatorLastButton=e:t.defaultPaginatorLastButton=c(e,t.defaultPaginatorLastButton),t}static defaultFieldElementCustomClassField={label:"Appearance",multiple:!1};static defaultFieldLktAccordionElementCustomClassField={};static defaultFieldLktBoxElementCustomClassField={};static defaultFieldLktIconElementCustomClassField={};static defaultFieldLktImageElementCustomClassField={};static setDefaultFieldLktAccordionElementCustomClassField(e,o=!0){return o?t.defaultFieldLktAccordionElementCustomClassField=e:t.defaultFieldLktAccordionElementCustomClassField=h(e,t.defaultFieldLktAccordionElementCustomClassField),t}static setDefaultFieldLktBoxElementCustomClassField(e,o=!0){return o?t.defaultFieldLktBoxElementCustomClassField=e:t.defaultFieldLktBoxElementCustomClassField=h(e,t.defaultFieldLktBoxElementCustomClassField),t}static setDefaultFieldLktIconElementCustomClassField(e,o=!0){return o?t.defaultFieldLktIconElementCustomClassField=e:t.defaultFieldLktIconElementCustomClassField=h(e,t.defaultFieldLktIconElementCustomClassField),t}static setDefaultFieldLktImageElementCustomClassField(e,o=!0){return o?t.defaultFieldLktImageElementCustomClassField=e:t.defaultFieldLktImageElementCustomClassField=h(e,t.defaultFieldLktImageElementCustomClassField),t}static i18nOptionsFormatter={};static setI18nOptionsFormatter(e,o){return t.i18nOptionsFormatter[e]=o,t}};var D=class t{static data={};static configure(e){return t.data=e,t}};var Ie=(s=>(s.Text="text",s.Email="email",s.Tel="tel",s.Password="password",s.Search="search",s.Number="number",s.Color="color",s.Range="range",s.Textarea="textarea",s.Html="html",s.Date="date",s.Time="time",s.DateTime="datetime",s.File="file",s.Image="image",s.Select="select",s.Check="check",s.Switch="switch",s.Calc="calc",s.Card="card",s.Table="table",s.Radio="radio",s.ToggleButtonGroup="toggle-button-group",s))(Ie||{});var Vt=["text","search","select"],vt=["switch","check"],Tt=["switch","check"],Ft=["text","search"],At=["switch","check"],wt=["select","color","card","image"],Pt=["text","email","password"];var Ot=["lktDateProps","lktStrictItem","lktExcludedProps"],a=class t{static lktAllowUndefinedProps=[];static lktExcludedProps=[];static lktDateProps=[];static lktStrictItem=!1;static lktDefaultValues=[];constructor(e){}feed(e={},o=this){if(typeof e=="object")for(let[r,n]of Object.entries(e))o.assignProp(r,n)}assignProp(e,o){if(!(Ot.includes(e)||t.lktExcludedProps.includes(e))&&!(t.lktStrictItem&&!this.hasOwnProperty(e))){if(t.lktDateProps.includes(e)){this[e]=new Date(o);return}this[e]=o}}};var L=class extends a{lktStrictItem=!0};var V=class t extends L{r=0;g=0;b=0;a=255;constructor(e){super(),this.feed(e)}static fromHexColor(e){let o=parseInt(+("0x"+e.substring(1,3)),10),r=parseInt(+("0x"+e.substring(3,5)),10),n=parseInt(+("0x"+e.substring(5,7)),10),i=255;return e.length===9&&(i=parseInt(+("0x"+e.substring(5,7)),10)),new t({r:o,g:r,b:n,a:i})}toString(){let e=parseInt(this.r).toString(16).padStart(2,"0").toUpperCase(),o=parseInt(this.g).toString(16).padStart(2,"0").toUpperCase(),r=parseInt(this.b).toString(16).padStart(2,"0").toUpperCase(),n="#"+e+o+r;if(this.a==255)return n;let i=parseInt(this.a).toString(16).padStart(2,"0").toUpperCase();return n+i}getContrastFontColor(){return(.299*this.r+.587*this.g+.114*this.b)/this.a>.5?"#000000":"#ffffff"}};var v=(n=>(n.Auto="auto",n.Always="always",n.Lazy="lazy",n.Ever="ever",n))(v||{});var Me=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(Me||{});var T=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["modelValue","type","toggleMode","actionButton","toggleButton","toggleOnClickIntro","toggleTimeout","title","icon","class","contentClass","iconRotation","minHeight","iconAtEnd","toggleIconAtEnd"];modelValue=!1;type="auto";toggleMode="height";actionButton={};toggleButton={};toggleOnClickIntro=!1;toggleTimeout=0;title="";icon="";class="";contentClass="";iconRotation="90";minHeight=void 0;iconAtEnd=!1;toggleIconAtEnd=!1;constructor(e={}){super(),this.feed(e)}};var Se=(m=>(m.Href="href",m.RouterLink="router-link",m.RouterLinkBack="router-link-back",m.Mail="mail",m.Tel="tel",m.Tab="tab",m.Download="download",m.Action="action",m.Legacy="",m))(Se||{});import{__ as jt}from"lkt-i18n";var S=(t,e)=>{if(typeof t=="string"){if(t==="prop:")return e;if(t.startsWith("prop:"))return e[t.substring(5)];if(t.includes("feed{")){let o=/\bfeed{(.*?)}/g;return t.replace(o,(n,i)=>e[i.trim()]||"")}}return t},Wt=t=>{if(typeof t=="string"&&t.startsWith("__:")){let e=String(t);return e.startsWith("__:")?jt(e.substring(3)):e}return t},Nt=(t,e)=>{if(!t)return{};let o={};for(let r in t)o[r]=S(t[r],e);return o};var F=t=>{let e="";if(typeof t.to=="string"&&(e=t.to),typeof t.to=="function"&&(e=t.to(t.prop??{})),typeof t.to=="string"&&(e=S(t.to,t.prop??{})),typeof t.type<"u")switch(t.type){case"mail":return`mailto:${e}`;case"tel":return`tel:${e}`;case"href":case"tab":case"download":return e}return e};var A=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","to","class","isActive","downloadFileName","disabled","onClick","confirmModal","confirmModalKey","confirmData","imposter","external","events","text","icon","prop"];type="router-link";to="";class="";isActive=!1;downloadFileName="";disabled=!1;onClick=void 0;confirmModal="";confirmModalKey="_";confirmData={};imposter=!1;external=!1;text="";icon="";prop={};events={};getHref(){return F(this)}constructor(e={}){super(),this.feed(e)}};var w=(o=>(o.Static="static",o.Parallax="parallax",o))(w||{});var P=class extends a{static lktDefaultValues=["type","header","subHeader","art","opacity","globalButton","navButtons"];type="static";header=void 0;subHeader=void 0;art=void 0;media=void 0;opacity=void 0;globalButton=void 0;navButtons=[];constructor(e={}){super(),this.feed(e)}};var O=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","contentClass","icon"];title="";iconAtEnd=!1;style="";class="";contentClass;icon="";constructor(e={}){super(),this.feed(e)}};import{generateRandomString as Ht}from"lkt-string-tools";var j=class extends a{lktAllowUndefinedProps=["clickRef","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave"];static lktDefaultValues=["type","name","class","containerClass","value","disabled","loading","wrapButton","splitIcon","resource","resourceData","modal","modalKey","modalData","confirmModal","confirmModalKey","confirmData","modalCallbacks","text","textOn","textOff","icon","iconOn","iconOff","iconEndOn","iconEndOff","dot","iconEnd","img","showTooltipOnHoverDelay","tooltip","checked","clickRef","openTooltip","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave","splitClass","splitButtons","prop","events","menuKey"];type="button";name=Ht(10);class="";containerClass="";value="";disabled=!1;loading=!1;wrapButton=!1;splitIcon="lkt-icn-angle-bottom";resource="";resourceData={};modal="";modalKey="_";modalData={};confirmModal="";confirmModalKey="_";confirmData={};modalCallbacks=[];menuKey=void 0;text="";textOn=void 0;textOff=void 0;iconOn=void 0;iconOff=void 0;iconEndOn=void 0;iconEndOff=void 0;icon="";dot=!1;iconEnd="";img="";showTooltipOnHoverDelay=0;checked=!1;clickRef=void 0;openTooltip=!1;tabindex=void 0;anchor=void 0;showTooltipOnHover=void 0;hideTooltipOnLeave=void 0;splitClass="";splitButtons=[];tooltip={};prop={};events={};constructor(e={}){super(),this.feed(e)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var De=(g=>(g.None="",g.Field="field",g.Button="button",g.Anchor="anchor",g.InlineDrop="inline-drop",g.ColumnIndex="column-index",g))(De||{});var E=class extends a{lktExcludedProps=["field","anchor","button"];lktAllowUndefinedProps=["formatter","checkEmpty","colspan","field","anchor","button"];static lktDefaultValues=["type","key","label","class","sortable","ensureFieldLabel","hidden","formatter","checkEmpty","colspan","preferSlot","isForRowKey","isForAccordionHeader","isCalendarDate","isCalendarGroup","extractTitleFromColumn","slotData","field","anchor","button"];type="";key="";label="";class="";sortable=!0;ensureFieldLabel=!1;hidden=!1;formatter=void 0;checkEmpty=void 0;colspan=void 0;preferSlot=!0;isForRowKey=!1;isForAccordionHeader=!1;isCalendarDate=!1;isCalendarGroup=!1;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(e={}){super(),this.feed(e)}};var Ve=(r=>(r.Date="date",r.Number="number",r.Timer="timer",r))(Ve||{});var ve=(o=>(o.Auto="auto",o.Progress="progress",o))(ve||{});var W=class extends a{static lktDefaultValues=["type","from","to","step","timeout","dateFormat","view","progress","events"];type="number";from=void 0;to=void 0;step=1;timeout=1e3;dateFormat=":dd :hh :mm :ss";seconds=60;view="auto";progress={};events={};constructor(e={}){super(),this.feed(e)}};var Te=(u=>(u.A0="a0",u.A1="a1",u.A2="a2",u.A3="a3",u.A4="a4",u.A5="a5",u.A6="a6",u.A7="a7",u.A8="a8",u.A9="a9",u))(Te||{});var N=class extends a{static lktDefaultValues=["id","size","skipPageNumber","frontPage","title","img","icon"];id="";size="a4";skipPageNumber=!1;frontPage=!1;title="";img="";icon="";constructor(e={}){super(),this.feed(e)}};var H=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["text","class"];text="";class="";constructor(e={}){super(),this.feed(e)}};import{generateRandomString as Ut}from"lkt-string-tools";var Fe=(n=>(n.List="list",n.Inline="inline",n.Count="count",n.Table="table",n))(Fe||{});var U=class extends a{static lktDefaultValues=["modelValue","type","valid","placeholder","searchPlaceholder","label","labelIcon","labelIconAtEnd","name","autocomplete","disabled","readonly","hidden","readMode","allowReadModeSwitch","tabindex","mandatory","showPassword","canClear","canUndo","canI18n","canStep","canTag","mandatoryMessage","infoMessage","errorMessage","min","max","step","enableAutoNumberFix","emptyValueSlot","optionSlot","valueSlot","editSlot","slotData","featuredButton","infoButtonEllipsis","fileName","customButtonText","customButtonClass","options","multiple","multipleDisplay","multipleDisplayEdition","searchable","icon","download","modal","modalKey","modalData","validation","prop","optionValueType","optionsConfig","fileUploadHttp","tooltipConfig","fileBrowserConfig","readModeConfig","configOn","configOff","canRender","canDisplay","createButton","callToActionButton","events"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Ut(16);autocomplete=!1;disabled=!1;readonly=!1;hidden=!1;tabindex=void 0;mandatory=!1;showPassword=!1;canClear=!1;canUndo=!1;canI18n=!1;canStep=!1;canTag=!1;mandatoryMessage="";infoMessage="";errorMessage="";min=void 0;max=void 0;step=1;enableAutoNumberFix=!0;emptyValueSlot="";optionSlot=void 0;valueSlot=void 0;editSlot=void 0;slotData={};featuredButton="";infoButtonEllipsis=!1;fileName="";customButtonText="";customButtonClass="";options=[];multiple=!1;multipleDisplay="list";multipleDisplayEdition="inline";searchable=!1;icon="";download="";modal="";modalKey="";modalData={};validation={};configOn={};configOff={};readMode=!1;allowReadModeSwitch=!1;readModeConfig;prop={};optionValueType="value";optionsConfig={};fileUploadHttp={};fileUploadButton={};createButton=!1;callToActionButton=!1;tooltipConfig={};fileBrowserConfig={};canRender=!0;canDisplay=!0;events={};constructor(e={}){super(),this.feed(e)}};var K=class extends a{static lktDefaultValues=["items","submitButton","container","header","uiConfig"];items=[];submitButton=!1;container={};header={};uiConfig={};constructor(e={}){super(),this.feed(e),this.items=this.items.map(o=>(o.type==="field"&&typeof o.modificationsField>"u"&&(o.modificationsField={options:[]}),o))}static mkFieldItemConfig(e,o,r={},n={}){return{type:"field",key:e,field:o,modificationsField:r,...n}}static mkFormItemConfig(e,o={}){return{type:"form",form:e,...o}}static mkComponentItemConfig(e,o={}){return{type:"component",component:e,...o}}static mkSlotItemConfig(e,o={}){return{type:"slot",key:e,slotData:o}}};var Ae=(l=>(l.HTTPResponse="http-response",l.MinStringLength="min-str",l.MinNumber="min-num",l.MaxStringLength="max-str",l.MaxNumber="max-num",l.Email="email",l.Empty="empty",l.EqualTo="equal-to",l.MinNumbers="min-numbers",l.MaxNumbers="max-numbers",l.MinChars="min-chars",l.MaxChars="max-chars",l.MinUpperChars="min-upper-chars",l.MaxUpperChars="max-upper-chars",l.MinLowerChars="min-lower-chars",l.MaxLowerChars="max-lower-chars",l.MinSpecialChars="min-special-chars",l.MaxSpecialChars="max-special-chars",l))(Ae||{});var we=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(we||{});var R=class t extends a{code=void 0;status="info";icon=void 0;min=0;max=0;equalToValue=void 0;httpResponse=void 0;element=void 0;constructor(e){super(),this.feed(e)}setMin(e){return this.min=e,this}setMax(e){return this.max=e,this}setEqualToValue(e){return this.equalToValue=e,this}setHTTPResponse(e){return this.httpResponse=e,this}static createEmpty(e="ko"){return new t({code:"empty",status:e})}static createEmail(e="ko"){return new t({code:"email",status:e})}static createMinStr(e,o="ko"){return new t({code:"min-str",status:o}).setMin(e)}static createMaxStr(e,o="ko"){return new t({code:"max-str",status:o}).setMax(e)}static createMinNum(e,o="ko"){return new t({code:"min-num",status:o}).setMin(e)}static createMaxNum(e,o="ko"){return new t({code:"max-num",status:o}).setMax(e)}static createNumBetween(e,o,r="ko"){return new t({code:"max-num",status:r}).setMin(e).setMax(o)}static createMinNumbers(e,o="ko"){return new t({code:"min-numbers",status:o}).setMin(e)}static createMaxNumbers(e,o="ko"){return new t({code:"max-numbers",status:o}).setMax(e)}static createMinUpperChars(e,o="ko"){return new t({code:"min-upper-chars",status:o}).setMin(e)}static createMaxUpperChars(e,o="ko"){return new t({code:"max-upper-chars",status:o}).setMax(e)}static createMinLowerChars(e,o="ko"){return new t({code:"min-lower-chars",status:o}).setMin(e)}static createMaxLowerChars(e,o="ko"){return new t({code:"max-lower-chars",status:o}).setMax(e)}static createMinSpecialChars(e,o="ko"){return new t({code:"min-special-chars",status:o}).setMin(e)}static createMaxSpecialChars(e,o="ko"){return new t({code:"max-special-chars",status:o}).setMax(e)}static createMinChars(e,o="ko"){return new t({code:"min-chars",status:o}).setMin(e)}static createMaxChars(e,o="ko"){return new t({code:"max-chars",status:o}).setMax(e)}static createEqualTo(e,o="ko"){return new t({code:"equal-to",status:o}).setEqualToValue(e)}static createRemoteResponse(e,o="ko"){return new t({code:"http-response",status:o}).setHTTPResponse(e)}};var Pe=(i=>(i.StorageUnit="unit",i.Directory="dir",i.Image="img",i.Video="vid",i.File="file",i))(Pe||{});var G=class t extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["id","type","name","src","children","parent"];id=void 0;type="img";name="";src="";children=[];isPicked=!1;parent=void 0;constructor(e={}){super(),this.feed(e),this.children||(this.children=[]),this.children=this.children.map(o=>new t({...o,parent:this.id}))}};var Oe=(g=>(g.H1="h1",g.H2="h2",g.H3="h3",g.H4="h4",g.H5="h5",g.H6="h6",g))(Oe||{});var q=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon","topStartButtons","topStartContent","topEndButtons","topEndContent","bottomButtons"];tag="h2";class="";text="";icon="";topStartButtons=[];topStartContent=[];topEndButtons=[];topEndContent=[];bottomButtons=[];constructor(e={}){super(),this.feed(e)}};var je=(o=>(o.NotDefined="",o.Button="button",o))(je||{});var We=(o=>(o.Start="start",o.End="end",o))(We||{});var X=class extends a{static lktDefaultValues=["icon","text","class","type","position","events"];icon="";text="";class="";type="";position="start";events={};constructor(e={}){super(),this.feed(e)}};var z=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["src","alt","text","class","imageStyle"];src="";alt="";text="";class="";imageStyle="";constructor(e={}){super(),this.feed(e)}};var Ne=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(Ne||{});var He=(o=>(o.Inline="inline",o.Modal="modal",o))(He||{});var Ue=(o=>(o.Top="top",o.Bottom="bottom",o))(Ue||{});var Ke=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(Ke||{});var Re=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(Re||{});var Ge=(o=>(o.Toast="toast",o.Inline="inline",o))(Ge||{});var qe=(n=>(n.Current="current",n.Modifications="modifications",n.SplitView="split-view",n.Differences="differences",n))(qe||{});var $=class extends a{static lktDefaultValues=["modelValue","modifications","editing","perms","customData","mode","view","visibleView","modificationViews","editModeButton","dropButton","createButton","createAndNewButton","updateButton","groupButton","groupButtonAsModalActions","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType","enabledSaveWithoutChanges","redirectOnCreate","redirectOnDrop","differencesTableConfig","events","form","formUiConfig","navStartButtons","navStartButtonsEditing","navEndButtons","navEndButtonsEditing"];modelValue={};modifications={};editing=!1;perms=[];customData={};form={};formUiConfig={};mode="read";view="inline";visibleView="current";modificationViews=!0;editModeButton={};dropButton={};createButton={};createAndNewButton=!1;updateButton={};groupButton=!1;groupButtonAsModalActions=!1;modalConfig={};saveConfig={type:"manual"};title="";header={};readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";enabledSaveWithoutChanges=!1;redirectOnCreate=void 0;redirectOnDrop=void 0;differencesTableConfig={};navStartButtons=[];navStartButtonsEditing=[];navEndButtons=[];navEndButtonsEditing=[];events={};constructor(e={}){super(),this.feed(e)}};var J=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(e={}){super(),this.feed(e)}};var Xe=(r=>(r.Hidden="hidden",r.Always="always",r.TabList="tablist",r))(Xe||{});var Y=class extends a{static lktDefaultValues=["modelValue","http","type","menuKey","hiddenPosition","closeOnClickOutside"];modelValue=[];type="always";menuKey="_";http={};closeOnClickOutside=!0;hiddenPosition="left";constructor(e={}){super(),this.feed(e)}};var ze=(n=>(n.Anchor="anchor",n.Button="button",n.Header="header",n.Entry="entry",n))(ze||{});var Q=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events","anchor","button","header"];key="";type="anchor";class="";icon="";anchor={};button={};header={};isActiveChecker=void 0;isOpened=!1;isActive=!1;keepOpenOnChildClick=!1;parent=void 0;children;events={};constructor(e={}){super(),this.feed(e)}doClose(){this.isOpened=!1}};var $e=(o=>(o.Modal="modal",o.Confirm="confirm",o))($e||{});var Z=class extends a{static lktDefaultValues=["size","preTitle","preTitleIcon","title","closeIcon","closeConfirm","closeConfirmKey","showClose","disabledClose","disabledVeilClick","hiddenFooter","modalName","modalKey","zIndex","beforeClose","item","type","confirmButton","cancelButton","headerActionsButton"];size="";preTitle="";preTitleIcon="";title="";closeIcon=b.defaultCloseModalIcon;closeConfirm="";closeConfirmKey="_";showClose=!0;disabledClose=!1;disabledVeilClick=!1;hiddenFooter=!1;modalName="";modalKey="_";zIndex=500;beforeClose=void 0;item={};confirmButton={};cancelButton={};headerActionsButton={};type="modal";constructor(e={}){super(),this.feed(e)}};var _=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(e={}){super(),this.feed(e)}};var Je=(m=>(m.Pages="pages",m.PrevNext="prev-next",m.PagesPrevNext="pages-prev-next",m.PagesPrevNextFirstLast="pages-prev-next-first-last",m.LoadMore="load-more",m.Infinite="infinite",m.TimelineAsc="timeline-asc",m.TimelineDesc="timeline-desc",m.TimelineAscDesc="timeline-asc-desc",m))(Je||{});var ee=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData","dateKey","events"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};dateKey="";events={};constructor(e={}){super(),this.feed(e)}};var Ye=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(Ye||{});var Qe=(i=>(i.NotDefined="",i.Hidden="hidden",i.Integer="integer",i.Decimal="decimal",i.Auto="auto",i))(Qe||{});var Ze=(o=>(o.Bar="bar",o.Circle="circle",o))(Ze||{});var te=class extends a{static lktAllowUndefinedProps=["circle","unit","text"];static lktDefaultValues=["modelValue","animation","type","duration","pauseOnHover","header","valueFormat","circle","unit","text"];modelValue=0;animation="";type="bar";duration=4e3;pauseOnHover=!1;unit=void 0;header={};valueFormat="auto";text=void 0;circle=void 0;constructor(e={}){super(),this.feed(e)}};var oe=class extends a{static lktDefaultValues=["modelValue","loading","steps","header","nextButton","prevButton","buttonNavPosition","buttonNavVisibility"];modelValue="";loading=!1;steps=[];header={};nextButton={};prevButton={};buttonNavPosition="top";buttonNavVisibility="always";constructor(e={}){super(),this.feed(e)}};var _e=(f=>(f.Table="table",f.Item="item",f.Ul="ul",f.Ol="ol",f.Carousel="carousel",f.Accordion="accordion",f.Calendar="calendar",f))(_e||{});var et=(n=>(n[n.Auto=0]="Auto",n[n.PreferItem=1]="PreferItem",n[n.PreferCustomItem=2]="PreferCustomItem",n[n.PreferColumns=3]="PreferColumns",n))(et||{});var re=class extends a{static lktDefaultValues=["modelValue","type","columns","noResultsText","hideEmptyColumns","itemDisplayChecker","customItemSlotName","loading","page","perms","editMode","dataStateConfig","sortable","sorter","initialSorting","drag","paginator","header","title","titleTag","titleIcon","headerClass","editModeButton","saveButton","createButton","groupButton","wrapContentTag","wrapContentClass","itemsContainerClass","itemContainerClass","itemContainerStyle","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","calendar","calendarGroups","accordion","hideTableHeader","skipTableItemsContainer","events","switchableTypes","switchableTypesButtons","useItemSlot","filtersForm"];modelValue=[];type="table";columns=[];noResultsText="";hideTableHeader=!1;hideEmptyColumns=!1;itemDisplayChecker=void 0;customItemSlotName=void 0;rowDisplayType=0;loading=!1;page=1;perms=[];editMode=!1;dataStateConfig={};sortable=!1;sorter=void 0;initialSorting=!1;drag=void 0;paginator={};carousel={};calendar={};calendarGroups={};accordion={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;itemContainerStyle;skipTableItemsContainer;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";itemSlotComponent=void 0;itemSlotData={};itemSlotEvents={};events={};switchableTypes=[];switchableTypesButtons={};useItemSlot=!1;filtersForm={};constructor(e={}){super(),this.feed(e)}};var ne=class extends a{static lktDefaultValues=["modelValue","id","class","contentClass","useSession","cacheLifetime","tabs","navStartButtons","navEndButtons","navPostEndButtonsElements"];modelValue="";id="";class="";contentClass="";useSession=!1;cacheLifetime=5;tabs=[];navStartButtons=[];navEndButtons=[];navPostEndButtonsElements=[];constructor(e={}){super(),this.feed(e)}};var tt=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(tt||{});var ae=class extends a{static lktDefaultValues=["class","text","featuredText","icon","iconAtEnd","featuredAtStart","type"];class="";text="";featuredText="";icon="";iconAtEnd=!1;featuredAtStart=!1;type="";constructor(e={}){super(),this.feed(e)}};var ot=(o=>(o.Message="message",o.Button="button",o))(ot||{});var rt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(rt||{});var ie=class extends a{static lktDefaultValues=["type","text","details","icon","positionX","duration","buttonConfig","zIndex"];type="message";text="";details="";icon="";positionX="right";duration=void 0;buttonConfig=void 0;zIndex=1e3;constructor(e={}){super(),this.feed(e)}};var nt=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(nt||{});var at=(n=>(n.Top="top",n.Bottom="bottom",n.Center="center",n.ReferrerCenter="referrer-center",n))(at||{});var it=(i=>(i.Left="left",i.Right="right",i.Center="center",i.LeftCorner="left-corner",i.RightCorner="right-corner",i))(it||{});var le=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","indicator","class","contentClass","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay","compensationX","compensationY","compensateGlobalContainers","remoteControl","teleport","content"];modelValue=!1;alwaysOpen=!1;indicator=!1;class="";contentClass="";text="";icon="";iconAtEnd=!1;engine="fixed";referrerWidth=!1;referrerMargin=0;windowMargin=0;referrer=void 0;locationY="bottom";locationX="left-corner";showOnReferrerHover=!1;showOnReferrerHoverDelay=0;hideOnReferrerLeave=!1;hideOnReferrerLeaveDelay=0;compensationX=0;compensationY=0;compensateGlobalContainers=!0;remoteControl=!1;teleport="";content=[];constructor(e={}){super(),this.feed(e)}};var lt=(p=>(p.LktAnchor="lkt-anchor",p.LktLayoutAccordion="lkt-layout-accordion",p.LktTextAccordion="lkt-text-accordion",p.LktLayoutBox="lkt-layout-box",p.LktTextBox="lkt-text-box",p.LktLayoutBanner="lkt-layout-banner",p.LktTextBanner="lkt-text-banner",p.LktButton="lkt-button",p.LktLayout="lkt-layout",p.LktHeader="lkt-header",p.LktIcon="lkt-icon",p.LktIcons="lkt-icons",p.LktImage="lkt-image",p.LktText="lkt-text",p))(lt||{});var se=(n=>(n.Grid="grid",n.FlexRow="flex-row",n.FlexRows="flex-rows",n.FlexColumn="flex-column",n))(se||{});import{getAvailableLanguages as C}from"lkt-i18n";var k=(t="Time to create")=>{let e={};return C().forEach(r=>{e[r]=t}),new d({id:0,type:"lkt-text",props:{text:e},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}})},fe=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-anchor",props:{text:t},config:{hasHeader:!0,hasIcon:!0}})},ue=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-button",props:{text:t},config:{hasHeader:!0,hasIcon:!0},children:[k("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}})},me=()=>new d({id:0,type:"lkt-layout",props:{},config:{},children:[],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),de=()=>{let t={},e={};return C().forEach(r=>{t[r]="Title goes here",e[r]="Content goes here"}),new d({id:0,type:"lkt-text-box",props:{header:t,text:e},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},ce=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-layout-box",props:{header:t},config:{hasHeader:!0,hasIcon:!0},children:[k("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},pe=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-layout-accordion",props:{header:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[k("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},ge=()=>{let t={},e={};return C().forEach(r=>{t[r]="Title goes here",e[r]="Content goes here"}),new d({id:0,type:"lkt-text-accordion",props:{header:t,text:e,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},Ce=()=>{let t={};return C().forEach(o=>{t[o]="Title goes here"}),new d({id:0,type:"lkt-header",props:{text:t},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},B=()=>{let t={};return C().forEach(o=>{t[o]="Content goes here"}),new d({id:0,type:"lkt-icon",props:{text:t},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},xe=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Image description goes here",e[n]="",o[n]=""}),new d({id:0,type:"lkt-image",props:{text:t,alt:e,title:o},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},be=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Title goes here",e[n]="Subtitle goes here",o[n]="Content goes here"}),new d({id:0,type:"lkt-text-banner",props:{header:t,subHeader:e,text:o,art:{},media:{},opacity:0,type:"static"},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},st=()=>{let t={},e={},o={};return C().forEach(n=>{t[n]="Title goes here",e[n]="Subtitle goes here",o[n]="Content goes here"}),new d({id:0,type:"lkt-icons",props:{header:t,subHeader:e,text:o},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},subElements:[B()],layout:{type:"flex-rows",columns:[],alignSelf:[],justifySelf:[]}})};import{cloneObject as Kt}from"lkt-object-tools";import{generateRandomString as Rt}from"lkt-string-tools";import{time as Gt}from"lkt-date-tools";var I=class t{static elements=[];static customAppearance={};static addWebElement(e){return t.elements.push(e),t}static getElements(){return t.elements}static getCustomWebElementSettings(e){let o=e.startsWith("custom:")?e.split(":")[1]:e;return t.elements.find(r=>r.id===o)}static setCustomAppearance(e){return typeof e.key=="string"?t.customAppearance[e.key]=e:e.key.forEach(o=>{t.customAppearance[o]=e}),t}static getCustomAppearance(e){return t.customAppearance[e]}};var d=class t extends a{static lktDefaultValues=["id","type","component","props","children","layout","config","subElements"];id=0;type="lkt-text";component="";props={class:"",icon:"",header:{},subHeader:{},text:{}};children=[];subElements=[];layout={type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]};config={hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]};keyMoment="";uid="";constructor(e={}){super(),this.feed(e),this.props||(this.props={text:{}}),this.layout||(this.layout={amountOfItems:[],columns:[],alignSelf:[],alignItems:[],justifySelf:[],justifyContent:[]}),this.layout.columns||(this.layout.columns=[]),this.layout.alignSelf||(this.layout.alignSelf=[]),this.layout.alignItems||(this.layout.alignItems=[]),this.layout.justifySelf||(this.layout.justifySelf=[]),this.layout.justifyContent||(this.layout.justifyContent=[]),this.props.header||(this.props.header={}),(!this.props.text||typeof this.props.text!="object")&&(this.props.text={}),this.type==="lkt-text-banner"&&(this.props.subHeader||(this.props.subHeader={}),(!this.props.art||typeof this.props.art!="object"||Object.keys(this.props.art).length===0)&&(this.props.art={src:""}),(!this.props.media||typeof this.props.media!="object"||Object.keys(this.props.media).length===0)&&(this.props.media={src:""}),this.props.opacity||(this.props.opacity=0),this.props.type||(this.props.type="static")),this.type==="lkt-image"&&(this.props.alt||(this.props.alt={}),this.props.title||(this.props.title={}),this.props.text||(this.props.text={})),Array.isArray(this.config.callToActions)&&this.config.callToActions?.length>0&&(this.config.callToActions=this.config.callToActions.map(o=>new t(o))),Array.isArray(this.children)||(this.children=[]),this.children=this.children.map(o=>new t(o)),this.subElements=this.subElements.map(o=>new t(o)),this.uid=[this.id,Rt(6)].join("-"),this.updateKeyMoment()}updateKeyMoment(){this.keyMoment=[this.uid,Gt()].join("-")}addChild(e,o=void 0){return Array.isArray(this.children)||(this.children=[]),typeof o=="number"&&o>=0&&o<this.children.length?(this.children.splice(o,0,e),this):(this.children.push(e),this)}getClone(){let e=o=>(o.id=0,o.children?.forEach(r=>e(r)),o);return new t(e(Kt(this)))}static createByType(e){switch(e){case"lkt-layout-box":return ce();case"lkt-text-box":return de();case"lkt-layout-accordion":return pe();case"lkt-text-accordion":return ge();case"lkt-icon":return B();case"lkt-icons":return st();case"lkt-image":return xe();case"lkt-anchor":return fe();case"lkt-button":return ue();case"lkt-layout":return me();case"lkt-header":return Ce();case"lkt-text":return k();case"lkt-text-banner":return be()}return new t({type:e})}addSubElement(){switch(this.type){case"lkt-icons":this.subElements.push(B());break}return this}isCustom(){return this.type.startsWith("custom:")}getCustomSettings(){return I.getCustomWebElementSettings(this.type)}};import{generateRandomString as ut,getUrlSlug as mt}from"lkt-string-tools";import{time as dt}from"lkt-date-tools";var ft=(r=>(r.Draft="draft",r.Public="public",r.Scheduled="scheduled",r))(ft||{});import{getAvailableLanguages as qt}from"lkt-i18n";var he=class extends a{static lktDefaultValues=["id","name","slug","status","scheduledDate","nameData","webElements"];keyMoment="";id=0;name="";nameData={};slug="";slugData={};status="draft";scheduledDate=void 0;webElements=[];crudConfig={};constructor(e={}){super(),this.feed(e),this.keyMoment=ut(4)+this.id+dt(),Array.isArray(this.slugData)&&(this.slugData={},this.updateSlug()),this.slugData||this.updateSlug()}updateKeyMoment(){this.keyMoment=ut(4)+this.id+dt()}updateSlug(){this.slug=mt(this.name);let e=qt();for(let o in e){let r=e[o];this.slugData[r]=mt(String(this.nameData[r]))}}};var ct=(f=>(f[f.XXS=1]="XXS",f[f.XS=2]="XS",f[f.SM=3]="SM",f[f.MD=4]="MD",f[f.LG=5]="LG",f[f.XL=6]="XL",f[f.XXL=7]="XXL",f))(ct||{});var pt=(n=>(n.PrevButton="prev",n.NextButton="next",n.DatePicker="datePicker",n.GoToCurrent="goToCurrent",n))(pt||{});var gt=(n=>(n.None="",n.Focus="focus",n.Blur="blur",n.Always="always",n))(gt||{});var Ct=(r=>(r.Error="error",r.Errors="errors",r.All="all",r))(Ct||{});var xt=(o=>(o.Message="message",o.Inline="inline",o))(xt||{});var bt=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(bt||{});var ht=(i=>(i.Refresh="refresh",i.Close="close",i.ReOpen="reOpen",i.Exec="exec",i.Open="open",i))(ht||{});var kt=(o=>(o.Asc="asc",o.Desc="desc",o))(kt||{});var yt=(r=>(r.Always="always",r.Lazy="lazy",r.Ever="ever",r))(yt||{});var Lt=(u=>(u.Create="create",u.Update="update",u.Edit="edit",u.Drop="drop",u.Sort="sort",u.SwitchEditMode="switch-edit-mode",u.InlineEdit="inline-edit",u.InlineCreate="inline-create",u.ModalCreate="modal-create",u.InlineCreateEver="inline-create-ever",u))(Lt||{});var Et=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Et||{});var Bt=(o=>(o.Page="page",o.Element="element",o))(Bt||{});var ke=class t{value;constructor(e){this.value=e}getValue(...e){return typeof this.value=="function"?this.value(...e):typeof this.value=="object"&&typeof this.value==typeof t?this.value.getValue(...e):typeof this.value=="string"?this.value:""}};var y=class t{static pages=[];static defaultPageEnabled=!0;static setDefaultPageEnabled(e){return t.defaultPageEnabled=e,t}static hasDefaultPageEnabled(){return t.defaultPageEnabled}static addWebPage(e){return t.pages.push(e),t}static getPages(){return t.pages}static getCustomWebPageSettings(e){return t.pages.find(o=>o.id===e||o.code===e)}};var M=class t{static stack={};static setWebItemConfig(e){return t.stack[e.code]=e,t}static getItems(){return Object.values(t.stack)}static getWebItemSettings(e){return t.stack[e]}};var Xt=t=>{let e=[];return y.hasDefaultPageEnabled()&&e.push({key:"web-pages",type:"entry",icon:"lkt-icn-webpage",anchor:{to:"/admin/web-pages/0",text:"Pages",events:{click:()=>{t.menuStatus.value=!1}}}}),y.getPages().forEach(o=>{e.push({key:o.code,type:"entry",icon:"lkt-icn-webpage",anchor:{to:`/admin/web-pages/${o.id}`,text:o.label,events:{click:()=>{t.menuStatus.value=!1}}}})}),M.getItems().forEach(o=>{o.many!==!1&&e.push({key:o.code,type:"entry",icon:o.icon,anchor:{to:`/admin/web-items/${o.code}`,text:o.labelMany,events:{click:()=>{t.menuStatus.value=!1}}}})}),e.push({key:"translations",type:"entry",icon:"lkt-icn-lang-picker",anchor:{to:"/admin/i18n",text:"Translations",events:{click:()=>{t.menuStatus.value=!1}}}}),e};var zt=(t,...e)=>{b.debugEnabled&&console.info("::lkt::",`[${t}] `,...e)};import{DataState as $t}from"lkt-data-state";var Jt=(t,e,o)=>{let r=new $t(JSON.parse(JSON.stringify(t)),{onlyProps:ye(o),recursiveOnlyProps:!1});return r.increment(JSON.parse(JSON.stringify(e))),r},ye=t=>{if(t.items===void 0)return[];if(t.items.length===0)return[];let e=[];for(let o in t.items){let r=t.items[o];switch(r.type){case"field":r.key!==void 0&&e.push(r.key);break;case"form":r.form&&(e=[...e,...ye(r.form)]);break}}return e},It=t=>{if(t.items===void 0)return[];if(t.items.length===0)return[];let e=[];for(let o in t.items){let r=t.items[o];switch(r.type){case"slot":r.key!==void 0&&e.push(r.key);break;case"form":r.form&&(e=[...e,...It(r.form)]);break}}return e};import{nextTick as Yt}from"vue";var x=class t{static config=[];static components=[];static zIndex=500;static canvas=void 0;static addModal(e){return t.config.push(e),t}static findConfig(e){return t.config.find(o=>o.name===e)}static getInstanceIndex(e){return`${e.modalName}_${e.modalKey}`}static getModalInfo(e,o={},r){let n=t.getInstanceIndex(e);return e={...r.config,...e,zIndex:t.zIndex},{componentProps:o,modalConfig:e,modalRegister:r,index:n,legacy:!1,legacyData:{props:{...e,modalConfig:e,...o}}}}static focus(e){return t.components[e.index]=e,t.components[e.index]}static open(e,o={},r=!1){o.modalKey&&(e.modalKey=o.modalKey);let n=t.findConfig(e.modalName);if(r&&(o.size&&(e.size=o.size,delete o.size),o.preTitle&&(e.preTitle=o.preTitle,delete o.preTitle),o.preTitleIcon&&(e.preTitleIcon=o.preTitleIcon,delete o.preTitleIcon),o.title&&(e.title=o.title,delete o.title),o.closeIcon&&(e.closeIcon=o.closeIcon,delete o.closeIcon),o.closeConfirm&&(e.closeConfirm=o.closeConfirm,delete o.closeConfirm),o.closeConfirmKey&&(e.closeConfirmKey=o.closeConfirmKey,delete o.closeConfirmKey),o.showClose&&(e.showClose=o.showClose,delete o.showClose),o.disabledClose&&(e.disabledClose=o.disabledClose,delete o.disabledClose),o.disabledVeilClick&&(e.disabledVeilClick=o.disabledVeilClick,delete o.disabledVeilClick),o.hiddenFooter&&(e.hiddenFooter=o.hiddenFooter,delete o.hiddenFooter),o.modalName&&(e.modalName=o.modalName,delete o.modalName),o.modalKey&&(e.modalKey=o.modalKey,delete o.modalKey),o.beforeClose&&(e.beforeClose=o.beforeClose,delete o.beforeClose),o.item&&(e.item=o.item,delete o.item),o.confirmButton&&(e.confirmButton=o.confirmButton,delete o.confirmButton),o.cancelButton&&(e.cancelButton=o.cancelButton,delete o.cancelButton),o.type&&(e.type=o.type,delete o.type)),n){++t.zIndex;let i=this.getModalInfo(e,o,n);return i.legacy=r,t.components[i.index]?t.focus(i):(t.components[i.index]=i,t.canvas?.refresh(),t.components[i.index])}}static close(e){if(t.findConfig(e.modalName)){--t.zIndex;let r=t.getInstanceIndex(e);delete t.components[r],Object.keys(t.components).length===0&&(t.zIndex=500),t.canvas?.refresh()}}static reOpen(e,o={},r=!1){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.close(e),t.canvas?.refresh(),Yt(()=>{t.open(e,o,r),t.canvas?.refresh()})}static execModal(e,o,r={}){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.canvas?.execModal(e.modalName,e.modalKey,o,r),t.canvas?.refresh()}static refresh(e,o={}){if(!t.canvas){console.warn("ModalCanvas not defined");return}t.canvas?.refreshModal(e.modalName,e.modalKey,o),t.canvas?.refresh()}static runModalCallback(e){let o=e.modalKey?e.modalKey:"_",r=e.args?e.args:{},n={modalName:e.modalName,modalKey:o};switch(e.action){case"reOpen":return t.reOpen(n,r);case"open":return t.open(n,r);case"close":return t.close(n);case"refresh":return t.refresh(n,r);case"exec":let i=e.method;return i?t.execModal(n,i,r):void 0}}static updateModalKey(e,o){if(!t.canvas){console.warn("ModalCanvas not defined");return}let r=t.getInstanceIndex(e),n=t.getInstanceIndex({modalName:e.modalName,modalKey:o});return t.components[n]=t.components[r],t.components[n].modalConfig.modalKey=o,t.components[n].legacyData.props.modalConfig.modalKey=o,t.components[n].legacyData.props.modalKey=o,delete t.components[r],t.canvas?.refresh(),t}};var Le=t=>(typeof t=="string"&&t.indexOf("confirm__")===0&&(t=t.substring(9)),"confirm__"+t),Qt=t=>{x.addModal(t)},Zt=t=>{x.addModal({...t,name:Le(t.name)})},Mt=(t,e)=>{x.open(t,e),x.canvas?.refresh()},St=t=>{x.close(t),x.canvas?.refresh()},_t=t=>{x.canvas=t},eo=(t,e)=>{Mt({...t,modalName:Le(t.modalName)},e)},to=t=>{St({...t,modalName:Le(t.modalName)})},oo=t=>{x.runModalCallback(t)};var ro=t=>new E(t);var no=t=>{document.execCommand(t,!1)},ao=t=>{document.execCommand("justify"+t,!1)},io=t=>{document.execCommand("foreColor",!1,t)},lo=t=>{document.execCommand("backColor",!1,t)},so=(t,e)=>{document.execCommand("fontName",!1,e)};import{ref as fo}from"vue";var Ee=class t{static config={};static addMenu(e,o){let r=typeof e=="function"?e():e;return t.config[r]=fo(o),t}static toggleMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!t.config[o].value,t.config[o].value}static closeMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!1,t.config[o].value}static openMenu(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value=!0,t.config[o].value}static getMenuStatus(e){let o=typeof e=="function"?e():e;if(!(typeof t.config[o]>"u"))return t.config[o].value}};var Dt=(o=>(o.Quick="quick",o.Full="full",o))(Dt||{});function La(t){let e=new t,o={};if(!Array.isArray(t.lktDefaultValues))throw new Error("lktDefaultValues must be a keys array.");for(let r of t.lktDefaultValues)r in e&&(o[r]=e[r]);return o}export{T as Accordion,Me as AccordionToggleMode,v as AccordionType,A as Anchor,Se as AnchorType,ct as AppSize,P as Banner,w as BannerType,O as Box,j as Button,Be as ButtonType,pt as CalendarNavBarElements,E as Column,De as ColumnType,W as Counter,Ve as CounterType,ve as CounterView,N as DocPage,Te as DocPageSize,H as Dot,U as Field,gt as FieldAutoValidationTrigger,Ct as FieldReportLevel,xt as FieldReportType,Ie as FieldType,R as FieldValidation,bt as FieldValidationType,G as FileEntity,Pe as FileEntityType,K as FormInstance,q as Header,Oe as HeaderTag,X as Icon,We as IconPosition,je as IconType,z as Image,$ as ItemCrud,Ue as ItemCrudButtonNavPosition,Ke as ItemCrudButtonNavVisibility,Ne as ItemCrudMode,He as ItemCrudView,V as LktColor,a as LktItem,b as LktSettings,L as LktStrictItem,J as Login,Y as Menu,Ee as MenuController,Q as MenuEntry,ze as MenuEntryType,Xe as MenuType,Z as Modal,ht as ModalCallbackAction,x as ModalController,Dt as ModalRegisterType,$e as ModalType,qe as ModificationView,Fe as MultipleOptionsDisplay,Ge as NotificationType,_ as Option,ee as Paginator,Je as PaginatorType,te as Progress,Ye as ProgressAnimation,Ze as ProgressType,Qe as ProgressValueFormat,ke as SafeString,Re as SaveType,kt as SortDirection,oe as StepProcess,yt as TabType,re as Table,Lt as TablePermission,et as TableRowType,_e as TableType,ne as Tabs,ae as Tag,tt as TagType,ie as Toast,rt as ToastPositionX,ot as ToastType,Et as ToggleMode,le as Tooltip,it as TooltipLocationX,at as TooltipLocationY,nt as TooltipPositionEngine,D as TooltipSettingsController,Ae as ValidationCode,we as ValidationStatus,d as WebElement,I as WebElementController,se as WebElementLayoutType,lt as WebElementType,M as WebItemsController,he as WebPage,y as WebPageController,ft as WebPageStatus,Bt as WebParentType,Zt as addConfirm,Qt as addModal,ao as applyTextAlignment,no as applyTextFormat,At as booleanFieldTypes,lo as changeBackgroundColor,so as changeFontFamily,io as changeTextColor,to as closeConfirm,St as closeModal,ro as createColumn,c as ensureButtonConfig,h as ensureFieldConfig,Wt as extractI18nValue,S as extractPropValue,Vt as fieldTypesWithOptions,vt as fieldTypesWithoutClear,Tt as fieldTypesWithoutUndo,wt as fieldsWithMultipleMode,Xt as getAdminMenuEntries,F as getAnchorHref,fe as getDefaultLktAnchorWebElement,ue as getDefaultLktButtonWebElement,Ce as getDefaultLktHeaderWebElement,B as getDefaultLktIconWebElement,xe as getDefaultLktImageWebElement,pe as getDefaultLktLayoutAccordionWebElement,ce as getDefaultLktLayoutBoxWebElement,me as getDefaultLktLayoutWebElement,ge as getDefaultLktTextAccordionWebElement,be as getDefaultLktTextBannerWebElement,de as getDefaultLktTextBoxWebElement,k as getDefaultLktTextWebElement,La as getDefaultValues,Jt as getFormDataState,ye as getFormFieldsKeys,It as getFormSlotKeys,zt as lktDebug,eo as openConfirm,Mt as openModal,Nt as prepareResourceData,oo as runModalCallback,_t as setModalCanvas,Pt as textFieldTypes,Ft as textFieldTypesWithOptions};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",