lkt-vue-kernel 1.0.133 → 1.1.1

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
@@ -35,7 +35,8 @@ declare const enum ButtonType {
35
35
  TooltipLazy = "tooltip-lazy",// Tooltip button, contents generated after first open
36
36
  TooltipEver = "tooltip-ever",// Tooltip button, contents generated each time it's clicked
37
37
  FileUpload = "file-upload",// File upload mode. Enables HTTP upload by lkt-field
38
- ImageUpload = "image-upload"
38
+ ImageUpload = "image-upload",// Image upload mode. Enables HTTP upload by lkt-field
39
+ InvisibleWrapper = "invisible-wrapper"
39
40
  }
40
41
 
41
42
  declare enum AnchorType {
@@ -376,6 +377,66 @@ declare enum FieldReportType {
376
377
  Inline = "inline"
377
378
  }
378
379
 
380
+ declare enum ValidationCode {
381
+ HTTPResponse = "http-response",
382
+ MinStringLength = "min-str",
383
+ MinNumber = "min-num",
384
+ MaxStringLength = "max-str",
385
+ MaxNumber = "max-num",
386
+ Email = "email",
387
+ Empty = "empty",
388
+ EqualTo = "equal-to",
389
+ MinNumbers = "min-numbers",
390
+ MaxNumbers = "max-numbers",
391
+ MinChars = "min-chars",
392
+ MaxChars = "max-chars",
393
+ MinUpperChars = "min-upper-chars",
394
+ MaxUpperChars = "max-upper-chars",
395
+ MinLowerChars = "min-lower-chars",
396
+ MaxLowerChars = "max-lower-chars",
397
+ MinSpecialChars = "min-special-chars",
398
+ MaxSpecialChars = "max-special-chars"
399
+ }
400
+
401
+ declare enum ValidationStatus {
402
+ Ok = "ok",
403
+ Ko = "ko",
404
+ Info = "info"
405
+ }
406
+
407
+ declare class FieldValidation {
408
+ code?: ValidationCode | string;
409
+ status: ValidationStatus;
410
+ min: number;
411
+ max: number;
412
+ equalToValue: number | string | undefined;
413
+ httpResponse?: HTTPResponse;
414
+ constructor(code: ValidationCode, status: ValidationStatus);
415
+ setMin(n: number): this;
416
+ setMax(n: number): this;
417
+ setEqualToValue(val: number | string): this;
418
+ setHTTPResponse(val: HTTPResponse): this;
419
+ static createEmpty(status?: ValidationStatus): FieldValidation;
420
+ static createEmail(status?: ValidationStatus): FieldValidation;
421
+ static createMinStr(min: number, status?: ValidationStatus): FieldValidation;
422
+ static createMaxStr(max: number, status?: ValidationStatus): FieldValidation;
423
+ static createMinNum(min: number, status?: ValidationStatus): FieldValidation;
424
+ static createMaxNum(max: number, status?: ValidationStatus): FieldValidation;
425
+ static createNumBetween(min: number, max: number, status?: ValidationStatus): FieldValidation;
426
+ static createMinNumbers(min: number, status?: ValidationStatus): FieldValidation;
427
+ static createMaxNumbers(max: number, status?: ValidationStatus): FieldValidation;
428
+ static createMinUpperChars(min: number, status?: ValidationStatus): FieldValidation;
429
+ static createMaxUpperChars(max: number, status?: ValidationStatus): FieldValidation;
430
+ static createMinLowerChars(min: number, status?: ValidationStatus): FieldValidation;
431
+ static createMaxLowerChars(max: number, status?: ValidationStatus): FieldValidation;
432
+ static createMinSpecialChars(min: number, status?: ValidationStatus): FieldValidation;
433
+ static createMaxSpecialChars(max: number, status?: ValidationStatus): FieldValidation;
434
+ static createMinChars(min: number, status?: ValidationStatus): FieldValidation;
435
+ static createMaxChars(max: number, status?: ValidationStatus): FieldValidation;
436
+ static createEqualTo(value: number | string, status?: ValidationStatus): FieldValidation;
437
+ static createRemoteResponse(httpResponse: HTTPResponse, status?: ValidationStatus): FieldValidation;
438
+ }
439
+
379
440
  interface FieldValidationConfig {
380
441
  type?: FieldValidationType;
381
442
  trigger?: FieldAutoValidationTrigger;
@@ -394,6 +455,7 @@ interface FieldValidationConfig {
394
455
  minSpecialChars?: ValidFieldMinMax;
395
456
  maxSpecialChars?: ValidFieldMinMax;
396
457
  checkEqualTo?: ValidFieldMinMax;
458
+ defaultValue?: FieldValidation[];
397
459
  }
398
460
 
399
461
  interface FieldValidationEndEventArgs {
@@ -920,9 +982,15 @@ interface BoxConfig {
920
982
  icon?: IconConfig | string;
921
983
  }
922
984
 
985
+ interface TrackConfig {
986
+ borderWidth?: number;
987
+ width?: number;
988
+ }
989
+
923
990
  interface CircleConfig {
924
- radius?: number;
925
- strokeWidth?: number;
991
+ radius: number;
992
+ track?: TrackConfig;
993
+ ball?: CircleConfig;
926
994
  }
927
995
 
928
996
  declare enum CounterType {
@@ -1187,7 +1255,7 @@ interface MenuConfig {
1187
1255
  http?: HttpCallConfig;
1188
1256
  }
1189
1257
 
1190
- declare enum ProgressType {
1258
+ declare enum ProgressAnimation {
1191
1259
  None = "",
1192
1260
  Incremental = "incremental",
1193
1261
  Decremental = "decremental"
@@ -1201,21 +1269,32 @@ declare enum ProgressValueFormat {
1201
1269
  Auto = "auto"
1202
1270
  }
1203
1271
 
1204
- declare enum ProgressInterface {
1272
+ declare enum ProgressType {
1205
1273
  Bar = "bar",
1206
1274
  Circle = "circle"
1207
1275
  }
1208
1276
 
1277
+ interface UnitConfig {
1278
+ text: string;
1279
+ position: 'start' | 'end';
1280
+ }
1281
+
1282
+ interface ProgressAnimationConfig {
1283
+ type: ProgressAnimation;
1284
+ autoplay: boolean;
1285
+ }
1286
+
1209
1287
  interface ProgressConfig {
1210
1288
  modelValue?: number;
1211
1289
  type?: ProgressType;
1212
- interface?: ProgressInterface;
1290
+ animation?: ProgressAnimation | ProgressAnimationConfig;
1213
1291
  duration?: number;
1292
+ direction?: 'right' | 'left';
1214
1293
  pauseOnHover?: boolean;
1215
- header?: string;
1294
+ unit?: string | UnitConfig;
1295
+ header?: HeaderConfig;
1216
1296
  valueFormat?: ProgressValueFormat;
1217
1297
  circle?: CircleConfig;
1218
- palette?: string;
1219
1298
  }
1220
1299
 
1221
1300
  interface StepProcessStepConfig {
@@ -1634,66 +1713,6 @@ declare class FormInstance extends LktItem implements FormConfig {
1634
1713
  static mkSlotItemConfig(key: string, slotData?: LktObject): FormItemConfig;
1635
1714
  }
1636
1715
 
1637
- declare enum ValidationCode {
1638
- HTTPResponse = "http-response",
1639
- MinStringLength = "min-str",
1640
- MinNumber = "min-num",
1641
- MaxStringLength = "max-str",
1642
- MaxNumber = "max-num",
1643
- Email = "email",
1644
- Empty = "empty",
1645
- EqualTo = "equal-to",
1646
- MinNumbers = "min-numbers",
1647
- MaxNumbers = "max-numbers",
1648
- MinChars = "min-chars",
1649
- MaxChars = "max-chars",
1650
- MinUpperChars = "min-upper-chars",
1651
- MaxUpperChars = "max-upper-chars",
1652
- MinLowerChars = "min-lower-chars",
1653
- MaxLowerChars = "max-lower-chars",
1654
- MinSpecialChars = "min-special-chars",
1655
- MaxSpecialChars = "max-special-chars"
1656
- }
1657
-
1658
- declare enum ValidationStatus {
1659
- Ok = "ok",
1660
- Ko = "ko",
1661
- Info = "info"
1662
- }
1663
-
1664
- declare class FieldValidation {
1665
- code?: ValidationCode | string;
1666
- status: ValidationStatus;
1667
- min: number;
1668
- max: number;
1669
- equalToValue: number | string | undefined;
1670
- httpResponse?: HTTPResponse;
1671
- constructor(code: ValidationCode, status: ValidationStatus);
1672
- setMin(n: number): this;
1673
- setMax(n: number): this;
1674
- setEqualToValue(val: number | string): this;
1675
- setHTTPResponse(val: HTTPResponse): this;
1676
- static createEmpty(status?: ValidationStatus): FieldValidation;
1677
- static createEmail(status?: ValidationStatus): FieldValidation;
1678
- static createMinStr(min: number, status?: ValidationStatus): FieldValidation;
1679
- static createMaxStr(max: number, status?: ValidationStatus): FieldValidation;
1680
- static createMinNum(min: number, status?: ValidationStatus): FieldValidation;
1681
- static createMaxNum(max: number, status?: ValidationStatus): FieldValidation;
1682
- static createNumBetween(min: number, max: number, status?: ValidationStatus): FieldValidation;
1683
- static createMinNumbers(min: number, status?: ValidationStatus): FieldValidation;
1684
- static createMaxNumbers(max: number, status?: ValidationStatus): FieldValidation;
1685
- static createMinUpperChars(min: number, status?: ValidationStatus): FieldValidation;
1686
- static createMaxUpperChars(max: number, status?: ValidationStatus): FieldValidation;
1687
- static createMinLowerChars(min: number, status?: ValidationStatus): FieldValidation;
1688
- static createMaxLowerChars(max: number, status?: ValidationStatus): FieldValidation;
1689
- static createMinSpecialChars(min: number, status?: ValidationStatus): FieldValidation;
1690
- static createMaxSpecialChars(max: number, status?: ValidationStatus): FieldValidation;
1691
- static createMinChars(min: number, status?: ValidationStatus): FieldValidation;
1692
- static createMaxChars(max: number, status?: ValidationStatus): FieldValidation;
1693
- static createEqualTo(value: number | string, status?: ValidationStatus): FieldValidation;
1694
- static createRemoteResponse(httpResponse: HTTPResponse, status?: ValidationStatus): FieldValidation;
1695
- }
1696
-
1697
1716
  declare class FileEntity extends LktItem implements FileEntityConfig {
1698
1717
  static lktAllowUndefinedProps: string[];
1699
1718
  static lktDefaultValues: (keyof FileEntityConfig)[];
@@ -1862,14 +1881,14 @@ declare class Progress extends LktItem implements ProgressConfig {
1862
1881
  static lktAllowUndefinedProps: string[];
1863
1882
  static lktDefaultValues: (keyof ProgressConfig)[];
1864
1883
  modelValue?: number;
1884
+ animation?: ProgressAnimation;
1865
1885
  type?: ProgressType;
1866
- interface?: ProgressInterface;
1867
1886
  duration?: number;
1868
1887
  pauseOnHover?: boolean;
1869
- header?: string;
1888
+ unit?: UnitConfig;
1889
+ header?: HeaderConfig;
1870
1890
  valueFormat?: ProgressValueFormat;
1871
1891
  circle?: CircleConfig;
1872
- palette?: string;
1873
1892
  constructor(data?: Partial<ProgressConfig>);
1874
1893
  }
1875
1894
 
@@ -2058,6 +2077,12 @@ type ValidSafeStringValue = string | ((...args: any[]) => string) | undefined |
2058
2077
 
2059
2078
  type ValidScanPropTarget = ScanPropTarget | ((...args: any[]) => ScanPropTarget);
2060
2079
 
2080
+ interface ProgressTextSlot {
2081
+ text: string;
2082
+ progress: number;
2083
+ unit?: UnitConfig;
2084
+ }
2085
+
2061
2086
  declare const getAdminMenuEntries: (data: {
2062
2087
  menuStatus: Ref<boolean>;
2063
2088
  }) => MenuEntryConfig[];
@@ -2230,4 +2255,4 @@ declare function getDefaultValues<T>(cls: {
2230
2255
  lktDefaultValues: (keyof T)[];
2231
2256
  }): Partial<T>;
2232
2257
 
2233
- export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, AppSize, Banner, type BannerConfig, BannerType, type BeforeCloseModalData, type BooleanFieldConfig, Box, type BoxConfig, Button, type ButtonConfig, ButtonType, 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, 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 IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, ItemCrudView, type ItemSlotComponentConfig, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Login, type LoginConfig, Menu, type MenuConfig, MenuEntry, type MenuEntryConfig, MenuEntryType, 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, Progress, type ProgressConfig, ProgressInterface, ProgressType, ProgressValueFormat, type RenderAndDisplayProps, type RenderModalConfig, type RouteConfig, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, StepProcess, type StepProcessConfig, type StepProcessStepConfig, Table, type TableConfig, TablePermission, TableRowType, TableType, Tabs, type TabsConfig, Tag, type TagConfig, TagType, Toast, type ToastConfig, ToastPositionX, ToastType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type TooltipSettings, TooltipSettingsController, 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 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 };
2258
+ export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, AppSize, Banner, type BannerConfig, BannerType, type BeforeCloseModalData, type BooleanFieldConfig, Box, type BoxConfig, Button, type ButtonConfig, ButtonType, 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, 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 IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, ItemCrudView, type ItemSlotComponentConfig, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Login, type LoginConfig, Menu, type MenuConfig, MenuEntry, type MenuEntryConfig, MenuEntryType, 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, 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, Table, type TableConfig, TablePermission, TableRowType, TableType, 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 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 It=(c=>(c.Button="button",c.Submit="submit",c.Reset="reset",c.Anchor="anchor",c.Content="content",c.Switch="switch",c.HiddenSwitch="hidden-switch",c.Split="split",c.SplitLazy="split-lazy",c.SplitEver="split-ever",c.Tooltip="tooltip",c.TooltipLazy="tooltip-lazy",c.TooltipEver="tooltip-ever",c.FileUpload="file-upload",c.ImageUpload="image-upload",c))(It||{});var d=(e,t)=>typeof e>"u"||!e?t:{...t,...e},k=(e,t)=>typeof e>"u"?t:{...t,...e};var h=class e{static debugEnabled=!1;static debugMode(t=!0){return e.debugEnabled=t,e}static defaultCreateErrorText="Creation failed";static defaultCreateErrorDetails="An error occurred while creating the item. Please try again.";static defaultCreateErrorIcon="";static setDefaultCreateError(t){e.defaultCreateErrorText=t.text??e.defaultCreateErrorText,e.defaultCreateErrorDetails=t.details??e.defaultCreateErrorDetails,e.defaultCreateErrorIcon=t.icon??e.defaultCreateErrorIcon}static defaultUpdateErrorText="Update failed";static defaultUpdateErrorDetails="An error occurred while updating the item. Please try again.";static defaultUpdateErrorIcon="";static setDefaultUpdateError(t){e.defaultUpdateErrorText=t.text??e.defaultUpdateErrorText,e.defaultUpdateErrorDetails=t.details??e.defaultUpdateErrorDetails,e.defaultUpdateErrorIcon=t.icon??e.defaultUpdateErrorIcon}static defaultDropErrorText="Drop failed";static defaultDropErrorDetails="An error occurred while removing the item. Please try again.";static defaultDropErrorIcon="";static setDefaultDropError(t){e.defaultDropErrorText=t.text??e.defaultDropErrorText,e.defaultDropErrorDetails=t.details??e.defaultDropErrorDetails,e.defaultDropErrorIcon=t.icon??e.defaultDropErrorIcon}static defaultCreateSuccessText="Item created";static defaultCreateSuccessDetails="";static defaultCreateSuccessIcon="";static setDefaultCreateSuccess(t){e.defaultCreateSuccessText=t.text??e.defaultCreateSuccessText,e.defaultCreateSuccessDetails=t.details??e.defaultCreateSuccessDetails,e.defaultCreateSuccessIcon=t.icon??e.defaultCreateSuccessIcon}static defaultUpdateSuccessText="Item updated";static defaultUpdateSuccessDetails="";static defaultUpdateSuccessIcon="";static setDefaultUpdateSuccess(t){e.defaultUpdateSuccessText=t.text??e.defaultUpdateSuccessText,e.defaultUpdateSuccessDetails=t.details??e.defaultUpdateSuccessDetails,e.defaultUpdateSuccessIcon=t.icon??e.defaultUpdateSuccessIcon}static defaultDropSuccessText="Item removed";static defaultDropSuccessDetails="";static defaultDropSuccessIcon="";static setDefaultDropSuccess(t){e.defaultDropSuccessText=t.text??e.defaultDropSuccessText,e.defaultDropSuccessDetails=t.details??e.defaultDropSuccessDetails,e.defaultDropSuccessIcon=t.icon??e.defaultDropSuccessIcon}static defaultUploadSuccessText="Upload success";static defaultUploadSuccessDetails="";static defaultUploadSuccessIcon="";static setDefaultUploadSuccess(t){e.defaultUploadSuccessText=t.text??e.defaultUploadSuccessText,e.defaultUploadSuccessDetails=t.details??e.defaultUploadSuccessDetails,e.defaultUploadSuccessIcon=t.icon??e.defaultUploadSuccessIcon}static defaultUploadErrorText="Upload error";static defaultUploadErrorDetails="";static defaultUploadErrorIcon="";static setDefaultUploadError(t){e.defaultUploadErrorText=t.text??e.defaultUploadErrorText,e.defaultUploadErrorDetails=t.details??e.defaultUploadErrorDetails,e.defaultUploadErrorIcon=t.icon??e.defaultUploadErrorIcon}static defaultSaveButton={text:"Save",icon:"lkt-icn-save"};static setDefaultSaveButton(t,o=!0){return o?e.defaultSaveButton=t:e.defaultSaveButton=d(t,e.defaultSaveButton),e}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(t,o=!0){return o?e.defaultConfirmButton=t:e.defaultConfirmButton=d(t,e.defaultConfirmButton),e}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(t,o=!0){return o?e.defaultCancelButton=t:e.defaultCancelButton=d(t,e.defaultCancelButton),e}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(t,o=!0){return o?e.defaultCreateButton=t:e.defaultCreateButton=d(t,e.defaultCreateButton),e}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(t,o=!0){return o?e.defaultUpdateButton=t:e.defaultUpdateButton=d(t,e.defaultUpdateButton),e}static defaultDropButton={text:"Drop"};static setDefaultDropButton(t,o=!0){return o?e.defaultDropButton=t:e.defaultDropButton=d(t,e.defaultDropButton),e}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(t,o=!0){return o?e.defaultEditModeButton=t:e.defaultEditModeButton=d(t,e.defaultEditModeButton),e}static defaultGroupButton={text:"Actions",type:"split",icon:"lkt-icn-settings-cogs"};static setDefaultGroupButton(t,o=!0){return o?e.defaultGroupButton=t:e.defaultGroupButton=d(t,e.defaultGroupButton),e}static defaultToggleButton={text:"Toggle",textOn:"Close",textOff:"Show more",type:"hidden-switch"};static setDefaultToggleButton(t,o=!0){return o?e.defaultToggleButton=t:e.defaultToggleButton=d(t,e.defaultToggleButton),e}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(t,o=!0){return o?e.defaultLoadMoreButton=t:e.defaultLoadMoreButton=d(t,e.defaultLoadMoreButton),e}static defaultCloseModalIcon="lkt-icn-cancel";static setDefaultCloseModalIcon(t){return e.defaultCloseModalIcon=t,e}static defaultCloseToastIcon="lkt-icn-cancel";static setDefaultCloseToastIcon(t){return e.defaultCloseToastIcon=t,e}static defaultTableSortAscIcon="lkt-icn-arrow-bottom";static defaultTableSortDescIcon="lkt-icn-arrow-top";static setDefaultTableSortAscIcon(t){return e.defaultTableSortAscIcon=t,e}static setDefaultTableSortDescIcon(t){return e.defaultTableSortDescIcon=t,e}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(t,o=!0){return o?e.defaultPaginatorFirstButton=t:e.defaultPaginatorFirstButton=d(t,e.defaultPaginatorFirstButton),e}static setDefaultPaginatorPrevButton(t,o=!0){return o?e.defaultPaginatorPrevButton=t:e.defaultPaginatorPrevButton=d(t,e.defaultPaginatorPrevButton),e}static setDefaultPaginatorNextButton(t,o=!0){return o?e.defaultPaginatorNextButton=t:e.defaultPaginatorNextButton=d(t,e.defaultPaginatorNextButton),e}static setDefaultPaginatorLastButton(t,o=!0){return o?e.defaultPaginatorLastButton=t:e.defaultPaginatorLastButton=d(t,e.defaultPaginatorLastButton),e}static defaultFieldElementCustomClassField={label:"Appearance",multiple:!1};static defaultFieldLktAccordionElementCustomClassField={};static defaultFieldLktBoxElementCustomClassField={};static defaultFieldLktIconElementCustomClassField={};static defaultFieldLktImageElementCustomClassField={};static setDefaultFieldLktAccordionElementCustomClassField(t,o=!0){return o?e.defaultFieldLktAccordionElementCustomClassField=t:e.defaultFieldLktAccordionElementCustomClassField=k(t,e.defaultFieldLktAccordionElementCustomClassField),e}static setDefaultFieldLktBoxElementCustomClassField(t,o=!0){return o?e.defaultFieldLktBoxElementCustomClassField=t:e.defaultFieldLktBoxElementCustomClassField=k(t,e.defaultFieldLktBoxElementCustomClassField),e}static setDefaultFieldLktIconElementCustomClassField(t,o=!0){return o?e.defaultFieldLktIconElementCustomClassField=t:e.defaultFieldLktIconElementCustomClassField=k(t,e.defaultFieldLktIconElementCustomClassField),e}static setDefaultFieldLktImageElementCustomClassField(t,o=!0){return o?e.defaultFieldLktImageElementCustomClassField=t:e.defaultFieldLktImageElementCustomClassField=k(t,e.defaultFieldLktImageElementCustomClassField),e}static i18nOptionsFormatter={};static setI18nOptionsFormatter(t,o){return e.i18nOptionsFormatter[t]=o,e}};var V=class e{static data={};static configure(t){return e.data=t,e}};var Et=(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))(Et||{});var Ie=["text","search","select"],Ee=["switch","check"],Me=["switch","check"],Se=["text","search"],De=["switch","check"],Ve=["select","color","card"],ve=["text","email","password"];var Te=["lktDateProps","lktStrictItem","lktExcludedProps"],a=class e{static lktAllowUndefinedProps=[];static lktExcludedProps=[];static lktDateProps=[];static lktStrictItem=!1;static lktDefaultValues=[];constructor(t){}feed(t={},o=this){if(typeof t=="object")for(let[r,n]of Object.entries(t))o.assignProp(r,n)}assignProp(t,o){if(!(Te.includes(t)||e.lktExcludedProps.includes(t))&&!(e.lktStrictItem&&!this.hasOwnProperty(t))){if(e.lktDateProps.includes(t)){this[t]=new Date(o);return}this[t]=o}}};var B=class extends a{lktStrictItem=!0};var v=class e extends B{r=0;g=0;b=0;a=255;constructor(t){super(),this.feed(t)}static fromHexColor(t){let o=parseInt(+("0x"+t.substring(1,3)),10),r=parseInt(+("0x"+t.substring(3,5)),10),n=parseInt(+("0x"+t.substring(5,7)),10),i=255;return t.length===9&&(i=parseInt(+("0x"+t.substring(5,7)),10)),new e({r:o,g:r,b:n,a:i})}toString(){let t=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="#"+t+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 T=(n=>(n.Auto="auto",n.Always="always",n.Lazy="lazy",n.Ever="ever",n))(T||{});var Mt=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(Mt||{});var F=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(t={}){super(),this.feed(t)}};var St=(b=>(b.Href="href",b.RouterLink="router-link",b.RouterLinkBack="router-link-back",b.Mail="mail",b.Tel="tel",b.Tab="tab",b.Download="download",b.Action="action",b.Legacy="",b))(St||{});import{__ as Fe}from"lkt-i18n";var D=(e,t)=>{if(typeof e=="string"){if(e==="prop:")return t;if(e.startsWith("prop:"))return t[e.substring(5)];if(e.includes("feed{")){let o=/\bfeed{(.*?)}/g;return e.replace(o,(n,i)=>t[i.trim()]||"")}}return e},Oe=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Fe(t.substring(3)):t}return e},Ae=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=D(e[r],t);return o};var O=e=>{let t="";if(typeof e.to=="string"&&(t=e.to),typeof e.to=="function"&&(t=e.to(e.prop??{})),typeof e.to=="string"&&(t=D(e.to,e.prop??{})),typeof e.type<"u")switch(e.type){case"mail":return`mailto:${t}`;case"tel":return`tel:${t}`;case"href":case"tab":case"download":return t}return t};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 O(this)}constructor(t={}){super(),this.feed(t)}};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(t={}){super(),this.feed(t)}};var j=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","contentClass","icon"];title="";iconAtEnd=!1;style="";class="";contentClass;icon="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as we}from"lkt-string-tools";var W=class extends a{lktAllowUndefinedProps=["clickRef","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave"];static lktDefaultValues=["type","name","class","containerClass","value","disabled","loading","wrapContent","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"];type="button";name=we(10);class="";containerClass="";value="";disabled=!1;loading=!1;wrapContent=!1;splitIcon="lkt-icn-angle-bottom";resource="";resourceData={};modal="";modalKey="_";modalData={};confirmModal="";confirmModalKey="_";confirmData={};modalCallbacks=[];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(t={}){super(),this.feed(t)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var Dt=(l=>(l.None="",l.Field="field",l.Button="button",l.Anchor="anchor",l.InlineDrop="inline-drop",l.ColumnIndex="column-index",l))(Dt||{});var I=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","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;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(t={}){super(),this.feed(t)}};var Vt=(r=>(r.Date="date",r.Number="number",r.Timer="timer",r))(Vt||{});var N=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(t={}){super(),this.feed(t)}};var vt=(f=>(f.A0="a0",f.A1="a1",f.A2="a2",f.A3="a3",f.A4="a4",f.A5="a5",f.A6="a6",f.A7="a7",f.A8="a8",f.A9="a9",f))(vt||{});var H=class extends a{static lktDefaultValues=["id","size","skipPageNumber","frontPage","title","img","icon"];id="";size="a4";skipPageNumber=!1;frontPage=!1;title="";img="";icon="";constructor(t={}){super(),this.feed(t)}};var U=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["text","class"];text="";class="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as Pe}from"lkt-string-tools";var Tt=(n=>(n.List="list",n.Inline="inline",n.Count="count",n.Table="table",n))(Tt||{});var R=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","events"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Pe(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;tooltipConfig={};fileBrowserConfig={};canRender=!0;canDisplay=!0;events={};constructor(t={}){super(),this.feed(t)}};var K=class extends a{static lktDefaultValues=["items","submitButton","container","header","uiConfig"];items=[];submitButton=!1;container={};header={};uiConfig={};constructor(t={}){super(),this.feed(t),this.items=this.items.map(o=>(o.type==="field"&&typeof o.modificationsField>"u"&&(o.modificationsField={options:[]}),o))}static mkFieldItemConfig(t,o,r={},n={}){return{type:"field",key:t,field:o,modificationsField:r,...n}}static mkFormItemConfig(t,o={}){return{type:"form",form:t,...o}}static mkComponentItemConfig(t,o={}){return{type:"component",component:t,...o}}static mkSlotItemConfig(t,o={}){return{type:"slot",key:t,slotData:o}}};var Ft=(u=>(u.HTTPResponse="http-response",u.MinStringLength="min-str",u.MinNumber="min-num",u.MaxStringLength="max-str",u.MaxNumber="max-num",u.Email="email",u.Empty="empty",u.EqualTo="equal-to",u.MinNumbers="min-numbers",u.MaxNumbers="max-numbers",u.MinChars="min-chars",u.MaxChars="max-chars",u.MinUpperChars="min-upper-chars",u.MaxUpperChars="max-upper-chars",u.MinLowerChars="min-lower-chars",u.MaxLowerChars="max-lower-chars",u.MinSpecialChars="min-special-chars",u.MaxSpecialChars="max-special-chars",u))(Ft||{});var Ot=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(Ot||{});var G=class e{code=void 0;status="info";min=0;max=0;equalToValue=void 0;httpResponse=void 0;constructor(t,o){this.code=t,this.status=o}setMin(t){return this.min=t,this}setMax(t){return this.max=t,this}setEqualToValue(t){return this.equalToValue=t,this}setHTTPResponse(t){return this.httpResponse=t,this}static createEmpty(t="ko"){return new e("empty",t)}static createEmail(t="ko"){return new e("email",t)}static createMinStr(t,o="ko"){return new e("min-str",o).setMin(t)}static createMaxStr(t,o="ko"){return new e("max-str",o).setMax(t)}static createMinNum(t,o="ko"){return new e("min-num",o).setMin(t)}static createMaxNum(t,o="ko"){return new e("max-num",o).setMax(t)}static createNumBetween(t,o,r="ko"){return new e("max-num",r).setMin(t).setMax(o)}static createMinNumbers(t,o="ko"){return new e("min-numbers",o).setMin(t)}static createMaxNumbers(t,o="ko"){return new e("max-numbers",o).setMax(t)}static createMinUpperChars(t,o="ko"){return new e("min-upper-chars",o).setMin(t)}static createMaxUpperChars(t,o="ko"){return new e("max-upper-chars",o).setMax(t)}static createMinLowerChars(t,o="ko"){return new e("min-lower-chars",o).setMin(t)}static createMaxLowerChars(t,o="ko"){return new e("max-lower-chars",o).setMax(t)}static createMinSpecialChars(t,o="ko"){return new e("min-special-chars",o).setMin(t)}static createMaxSpecialChars(t,o="ko"){return new e("max-special-chars",o).setMax(t)}static createMinChars(t,o="ko"){return new e("min-chars",o).setMin(t)}static createMaxChars(t,o="ko"){return new e("max-chars",o).setMax(t)}static createEqualTo(t,o="ko"){return new e("equal-to",o).setEqualToValue(t)}static createRemoteResponse(t,o="ko"){return new e("http-response",o).setHTTPResponse(t)}};var At=(i=>(i.StorageUnit="unit",i.Directory="dir",i.Image="img",i.Video="vid",i.File="file",i))(At||{});var q=class e 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(t={}){super(),this.feed(t),this.children||(this.children=[]),this.children=this.children.map(o=>new e({...o,parent:this.id}))}};var wt=(l=>(l.H1="h1",l.H2="h2",l.H3="h3",l.H4="h4",l.H5="h5",l.H6="h6",l))(wt||{});var X=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon","topStartButtons","topEndButtons","bottomButtons"];tag="h2";class="";text="";icon="";topStartButtons=[];topEndButtons=[];bottomButtons=[];constructor(t={}){super(),this.feed(t)}};var Pt=(o=>(o.NotDefined="",o.Button="button",o))(Pt||{});var jt=(o=>(o.Start="start",o.End="end",o))(jt||{});var $=class extends a{static lktDefaultValues=["icon","text","class","type","position","events"];icon="";text="";class="";type="";position="start";events={};constructor(t={}){super(),this.feed(t)}};var z=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["src","alt","text","class","imageStyle"];src="";alt="";text="";class="";imageStyle="";constructor(t={}){super(),this.feed(t)}};var Wt=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(Wt||{});var Nt=(o=>(o.Inline="inline",o.Modal="modal",o))(Nt||{});var Ht=(o=>(o.Top="top",o.Bottom="bottom",o))(Ht||{});var Ut=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(Ut||{});var Rt=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(Rt||{});var Kt=(o=>(o.Toast="toast",o.Inline="inline",o))(Kt||{});var Gt=(n=>(n.Current="current",n.Modifications="modifications",n.SplitView="split-view",n.Differences="differences",n))(Gt||{});var J=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(t={}){super(),this.feed(t)}};var Y=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(t={}){super(),this.feed(t)}};var Q=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var qt=(n=>(n.Anchor="anchor",n.Button="button",n.Header="header",n.Entry="entry",n))(qt||{});var Z=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(t={}){super(),this.feed(t)}doClose(){this.isOpened=!1}};var Xt=(o=>(o.Modal="modal",o.Confirm="confirm",o))(Xt||{});var _=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=h.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(t={}){super(),this.feed(t)}};var tt=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var $t=(l=>(l.Pages="pages",l.PrevNext="prev-next",l.PagesPrevNext="pages-prev-next",l.PagesPrevNextFirstLast="pages-prev-next-first-last",l.LoadMore="load-more",l.Infinite="infinite",l))($t||{});var et=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData","events"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};events={};constructor(t={}){super(),this.feed(t)}};var zt=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(zt||{});var Jt=(i=>(i.NotDefined="",i.Hidden="hidden",i.Integer="integer",i.Decimal="decimal",i.Auto="auto",i))(Jt||{});var Yt=(o=>(o.Bar="bar",o.Circle="circle",o))(Yt||{});var ot=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["modelValue","type","interface","duration","pauseOnHover","header","valueFormat","circle","palette"];modelValue=0;type="";interface="bar";duration=4e3;pauseOnHover=!1;header="";valueFormat="auto";circle={};palette="";constructor(t={}){super(),this.feed(t)}};var rt=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(t={}){super(),this.feed(t)}};var Qt=(l=>(l.Table="table",l.Item="item",l.Ul="ul",l.Ol="ol",l.Carousel="carousel",l.Accordion="accordion",l))(Qt||{});var Zt=(n=>(n[n.Auto=0]="Auto",n[n.PreferItem=1]="PreferItem",n[n.PreferCustomItem=2]="PreferCustomItem",n[n.PreferColumns=3]="PreferColumns",n))(Zt||{});var nt=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","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","accordion","hideTableHeader","skipTableItemsContainer","events"];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=void 0;carousel={};accordion={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;skipTableItemsContainer;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";itemSlotComponent=void 0;itemSlotData={};itemSlotEvents={};events={};constructor(t={}){super(),this.feed(t)}};var at=class extends a{static lktDefaultValues=["modelValue","id","useSession","cacheLifetime","contentPad","titles"];modelValue="";id="";useSession=!1;cacheLifetime=5;contentPad;titles;constructor(t={}){super(),this.feed(t)}};var _t=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(_t||{});var it=class extends a{static lktDefaultValues=["class","text","featuredText","icon","iconAtEnd","featuredAtStart","type"];class="";text="";featuredText="";icon="";iconAtEnd=!1;featuredAtStart=!1;type="";constructor(t={}){super(),this.feed(t)}};var te=(o=>(o.Message="message",o.Button="button",o))(te||{});var ee=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(ee||{});var lt=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(t={}){super(),this.feed(t)}};var oe=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(oe||{});var re=(n=>(n.Top="top",n.Bottom="bottom",n.Center="center",n.ReferrerCenter="referrer-center",n))(re||{});var ne=(i=>(i.Left="left",i.Right="right",i.Center="center",i.LeftCorner="left-corner",i.RightCorner="right-corner",i))(ne||{});var st=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","class","contentClass","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay","compensationX","compensationY","compensateGlobalContainers","remoteControl"];modelValue=!1;alwaysOpen=!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;constructor(t={}){super(),this.feed(t)}};var ae=(g=>(g.LktAnchor="lkt-anchor",g.LktLayoutAccordion="lkt-layout-accordion",g.LktTextAccordion="lkt-text-accordion",g.LktLayoutBox="lkt-layout-box",g.LktTextBox="lkt-text-box",g.LktLayoutBanner="lkt-layout-banner",g.LktTextBanner="lkt-text-banner",g.LktButton="lkt-button",g.LktLayout="lkt-layout",g.LktHeader="lkt-header",g.LktIcon="lkt-icon",g.LktIcons="lkt-icons",g.LktImage="lkt-image",g.LktText="lkt-text",g))(ae||{});var ft=(n=>(n.Grid="grid",n.FlexRow="flex-row",n.FlexRows="flex-rows",n.FlexColumn="flex-column",n))(ft||{});import{getAvailableLanguages as C}from"lkt-i18n";var y=(e="Time to create")=>{let t={};return C().forEach(r=>{t[r]=e}),new m({id:0,type:"lkt-text",props:{text:t},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}})},ut=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-anchor",props:{text:e},config:{hasHeader:!0,hasIcon:!0}})},mt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-button",props:{text:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}})},dt=()=>new m({id:0,type:"lkt-layout",props:{},config:{},children:[],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),ct=()=>{let e={},t={};return C().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),new m({id:0,type:"lkt-text-box",props:{header:e,text:t},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},pt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-layout-box",props:{header:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},gt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-layout-accordion",props:{header:e,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},Ct=()=>{let e={},t={};return C().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),new m({id:0,type:"lkt-text-accordion",props:{header:e,text:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},xt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-header",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},E=()=>{let e={};return C().forEach(o=>{e[o]="Content goes here"}),new m({id:0,type:"lkt-icon",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},bt=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Image description goes here",t[n]="",o[n]=""}),new m({id:0,type:"lkt-image",props:{text:e,alt:t,title:o},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},ht=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Title goes here",t[n]="Subtitle goes here",o[n]="Content goes here"}),new m({id:0,type:"lkt-text-banner",props:{header:e,subHeader:t,text:o,art:{},media:{},opacity:0,type:"static"},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},ie=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Title goes here",t[n]="Subtitle goes here",o[n]="Content goes here"}),new m({id:0,type:"lkt-icons",props:{header:e,subHeader:t,text:o},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},subElements:[E()],layout:{type:"flex-rows",columns:[],alignSelf:[],justifySelf:[]}})};import{cloneObject as je}from"lkt-object-tools";import{generateRandomString as We}from"lkt-string-tools";import{time as Ne}from"lkt-date-tools";var M=class e{static elements=[];static customAppearance={};static addWebElement(t){return e.elements.push(t),e}static getElements(){return e.elements}static getCustomWebElementSettings(t){let o=t.startsWith("custom:")?t.split(":")[1]:t;return e.elements.find(r=>r.id===o)}static setCustomAppearance(t){return typeof t.key=="string"?e.customAppearance[t.key]=t:t.key.forEach(o=>{e.customAppearance[o]=t}),e}static getCustomAppearance(t){return e.customAppearance[t]}};var m=class e 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(t={}){super(),this.feed(t),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 e(o))),Array.isArray(this.children)||(this.children=[]),this.children=this.children.map(o=>new e(o)),this.subElements=this.subElements.map(o=>new e(o)),this.uid=[this.id,We(6)].join("-"),this.updateKeyMoment()}updateKeyMoment(){this.keyMoment=[this.uid,Ne()].join("-")}addChild(t,o=void 0){return Array.isArray(this.children)||(this.children=[]),typeof o=="number"&&o>=0&&o<this.children.length?(this.children.splice(o,0,t),this):(this.children.push(t),this)}getClone(){let t=o=>(o.id=0,o.children?.forEach(r=>t(r)),o);return new e(t(je(this)))}static createByType(t){switch(t){case"lkt-layout-box":return pt();case"lkt-text-box":return ct();case"lkt-layout-accordion":return gt();case"lkt-text-accordion":return Ct();case"lkt-icon":return E();case"lkt-icons":return ie();case"lkt-image":return bt();case"lkt-anchor":return ut();case"lkt-button":return mt();case"lkt-layout":return dt();case"lkt-header":return xt();case"lkt-text":return y();case"lkt-text-banner":return ht()}return new e({type:t})}addSubElement(){switch(this.type){case"lkt-icons":this.subElements.push(E());break}return this}isCustom(){return this.type.startsWith("custom:")}getCustomSettings(){return M.getCustomWebElementSettings(this.type)}};import{generateRandomString as se,getUrlSlug as fe}from"lkt-string-tools";import{time as ue}from"lkt-date-tools";var le=(r=>(r.Draft="draft",r.Public="public",r.Scheduled="scheduled",r))(le||{});import{getAvailableLanguages as He}from"lkt-i18n";var kt=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(t={}){super(),this.feed(t),this.keyMoment=se(4)+this.id+ue(),Array.isArray(this.slugData)&&(this.slugData={},this.updateSlug()),this.slugData||this.updateSlug()}updateKeyMoment(){this.keyMoment=se(4)+this.id+ue()}updateSlug(){this.slug=fe(this.name);let t=He();for(let o in t){let r=t[o];this.slugData[r]=fe(String(this.nameData[r]))}}};var me=(p=>(p[p.XXS=1]="XXS",p[p.XS=2]="XS",p[p.SM=3]="SM",p[p.MD=4]="MD",p[p.LG=5]="LG",p[p.XL=6]="XL",p[p.XXL=7]="XXL",p))(me||{});var de=(n=>(n.None="",n.Focus="focus",n.Blur="blur",n.Always="always",n))(de||{});var ce=(o=>(o.Message="message",o.Inline="inline",o))(ce||{});var pe=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(pe||{});var ge=(i=>(i.Refresh="refresh",i.Close="close",i.ReOpen="reOpen",i.Exec="exec",i.Open="open",i))(ge||{});var Ce=(o=>(o.Asc="asc",o.Desc="desc",o))(Ce||{});var xe=(f=>(f.Create="create",f.Update="update",f.Edit="edit",f.Drop="drop",f.Sort="sort",f.SwitchEditMode="switch-edit-mode",f.InlineEdit="inline-edit",f.InlineCreate="inline-create",f.ModalCreate="modal-create",f.InlineCreateEver="inline-create-ever",f))(xe||{});var be=(o=>(o.Lazy="lazy",o.Ever="ever",o))(be||{});var he=(o=>(o.Page="page",o.Element="element",o))(he||{});var yt=class e{value;constructor(t){this.value=t}getValue(...t){return typeof this.value=="function"?this.value(...t):typeof this.value=="object"&&typeof this.value==typeof e?this.value.getValue(...t):typeof this.value=="string"?this.value:""}};var L=class e{static pages=[];static defaultPageEnabled=!0;static setDefaultPageEnabled(t){return e.defaultPageEnabled=t,e}static hasDefaultPageEnabled(){return e.defaultPageEnabled}static addWebPage(t){return e.pages.push(t),e}static getPages(){return e.pages}static getCustomWebPageSettings(t){return e.pages.find(o=>o.id===t||o.code===t)}};var S=class e{static stack={};static setWebItemConfig(t){return e.stack[t.code]=t,e}static getItems(){return Object.values(e.stack)}static getWebItemSettings(t){return e.stack[t]}};var Ue=e=>{let t=[];return L.hasDefaultPageEnabled()&&t.push({key:"web-pages",type:"entry",icon:"lkt-icn-webpage",anchor:{to:"/admin/web-pages/0",text:"Pages",events:{click:()=>{e.menuStatus.value=!1}}}}),L.getPages().forEach(o=>{t.push({key:o.code,type:"entry",icon:"lkt-icn-webpage",anchor:{to:`/admin/web-pages/${o.id}`,text:o.label,events:{click:()=>{e.menuStatus.value=!1}}}})}),S.getItems().forEach(o=>{o.many!==!1&&t.push({key:o.code,type:"entry",icon:o.icon,anchor:{to:`/admin/web-items/${o.code}`,text:o.labelMany,events:{click:()=>{e.menuStatus.value=!1}}}})}),t.push({key:"translations",type:"entry",icon:"lkt-icn-lang-picker",anchor:{to:"/admin/i18n",text:"Translations",events:{click:()=>{e.menuStatus.value=!1}}}}),t};var Re=(e,...t)=>{h.debugEnabled&&console.info("::lkt::",`[${e}] `,...t)};import{DataState as Ke}from"lkt-data-state";var Ge=(e,t,o)=>{let r=new Ke(JSON.parse(JSON.stringify(e)),{onlyProps:Lt(o),recursiveOnlyProps:!1});return r.increment(JSON.parse(JSON.stringify(t))),r},Lt=e=>{if(e.items===void 0)return[];if(e.items.length===0)return[];let t=[];for(let o in e.items){let r=e.items[o];switch(r.type){case"field":r.key!==void 0&&t.push(r.key);break;case"form":r.form&&(t=[...t,...Lt(r.form)]);break}}return t},ke=e=>{if(e.items===void 0)return[];if(e.items.length===0)return[];let t=[];for(let o in e.items){let r=e.items[o];switch(r.type){case"slot":r.key!==void 0&&t.push(r.key);break;case"form":r.form&&(t=[...t,...ke(r.form)]);break}}return t};import{nextTick as qe}from"vue";var x=class e{static config=[];static components=[];static zIndex=500;static canvas=void 0;static addModal(t){return e.config.push(t),e}static findConfig(t){return e.config.find(o=>o.name===t)}static getInstanceIndex(t){return`${t.modalName}_${t.modalKey}`}static getModalInfo(t,o={},r){let n=e.getInstanceIndex(t);return t={...r.config,...t,zIndex:e.zIndex},{componentProps:o,modalConfig:t,modalRegister:r,index:n,legacy:!1,legacyData:{props:{...t,modalConfig:t,...o}}}}static focus(t){return e.components[t.index]=t,e.components[t.index]}static open(t,o={},r=!1){o.modalKey&&(t.modalKey=o.modalKey);let n=e.findConfig(t.modalName);if(r&&(o.size&&(t.size=o.size,delete o.size),o.preTitle&&(t.preTitle=o.preTitle,delete o.preTitle),o.preTitleIcon&&(t.preTitleIcon=o.preTitleIcon,delete o.preTitleIcon),o.title&&(t.title=o.title,delete o.title),o.closeIcon&&(t.closeIcon=o.closeIcon,delete o.closeIcon),o.closeConfirm&&(t.closeConfirm=o.closeConfirm,delete o.closeConfirm),o.closeConfirmKey&&(t.closeConfirmKey=o.closeConfirmKey,delete o.closeConfirmKey),o.showClose&&(t.showClose=o.showClose,delete o.showClose),o.disabledClose&&(t.disabledClose=o.disabledClose,delete o.disabledClose),o.disabledVeilClick&&(t.disabledVeilClick=o.disabledVeilClick,delete o.disabledVeilClick),o.hiddenFooter&&(t.hiddenFooter=o.hiddenFooter,delete o.hiddenFooter),o.modalName&&(t.modalName=o.modalName,delete o.modalName),o.modalKey&&(t.modalKey=o.modalKey,delete o.modalKey),o.beforeClose&&(t.beforeClose=o.beforeClose,delete o.beforeClose),o.item&&(t.item=o.item,delete o.item),o.confirmButton&&(t.confirmButton=o.confirmButton,delete o.confirmButton),o.cancelButton&&(t.cancelButton=o.cancelButton,delete o.cancelButton),o.type&&(t.type=o.type,delete o.type)),n){++e.zIndex;let i=this.getModalInfo(t,o,n);return i.legacy=r,e.components[i.index]?e.focus(i):(e.components[i.index]=i,e.canvas?.refresh(),e.components[i.index])}}static close(t){if(e.findConfig(t.modalName)){--e.zIndex;let r=e.getInstanceIndex(t);delete e.components[r],Object.keys(e.components).length===0&&(e.zIndex=500),e.canvas?.refresh()}}static reOpen(t,o={},r=!1){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.close(t),e.canvas?.refresh(),qe(()=>{e.open(t,o,r),e.canvas?.refresh()})}static execModal(t,o,r={}){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.canvas?.execModal(t.modalName,t.modalKey,o,r),e.canvas?.refresh()}static refresh(t,o={}){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.canvas?.refreshModal(t.modalName,t.modalKey,o),e.canvas?.refresh()}static runModalCallback(t){let o=t.modalKey?t.modalKey:"_",r=t.args?t.args:{},n={modalName:t.modalName,modalKey:o};switch(t.action){case"reOpen":return e.reOpen(n,r);case"open":return e.open(n,r);case"close":return e.close(n);case"refresh":return e.refresh(n,r);case"exec":let i=t.method;return i?e.execModal(n,i,r):void 0}}static updateModalKey(t,o){if(!e.canvas){console.warn("ModalCanvas not defined");return}let r=e.getInstanceIndex(t),n=e.getInstanceIndex({modalName:t.modalName,modalKey:o});return e.components[n]=e.components[r],e.components[n].modalConfig.modalKey=o,e.components[n].legacyData.props.modalConfig.modalKey=o,e.components[n].legacyData.props.modalKey=o,delete e.components[r],e.canvas?.refresh(),e}};var Bt=e=>(typeof e=="string"&&e.indexOf("confirm__")===0&&(e=e.substring(9)),"confirm__"+e),Xe=e=>{x.addModal(e)},$e=e=>{x.addModal({...e,name:Bt(e.name)})},ye=(e,t)=>{x.open(e,t),x.canvas?.refresh()},Le=e=>{x.close(e),x.canvas?.refresh()},ze=e=>{x.canvas=e},Je=(e,t)=>{ye({...e,modalName:Bt(e.modalName)},t)},Ye=e=>{Le({...e,modalName:Bt(e.modalName)})},Qe=e=>{x.runModalCallback(e)};var Ze=e=>new I(e);var _e=e=>{document.execCommand(e,!1)},to=e=>{document.execCommand("justify"+e,!1)},eo=e=>{document.execCommand("foreColor",!1,e)},oo=e=>{document.execCommand("backColor",!1,e)},ro=(e,t)=>{document.execCommand("fontName",!1,t)};var Be=(o=>(o.Quick="quick",o.Full="full",o))(Be||{});function la(e){let t=new e,o={};if(!Array.isArray(e.lktDefaultValues))throw new Error("lktDefaultValues must be a keys array.");for(let r of e.lktDefaultValues)r in t&&(o[r]=t[r]);return o}export{F as Accordion,Mt as AccordionToggleMode,T as AccordionType,A as Anchor,St as AnchorType,me as AppSize,P as Banner,w as BannerType,j as Box,W as Button,It as ButtonType,I as Column,Dt as ColumnType,N as Counter,Vt as CounterType,H as DocPage,vt as DocPageSize,U as Dot,R as Field,de as FieldAutoValidationTrigger,ce as FieldReportType,Et as FieldType,G as FieldValidation,pe as FieldValidationType,q as FileEntity,At as FileEntityType,K as FormInstance,X as Header,wt as HeaderTag,$ as Icon,jt as IconPosition,Pt as IconType,z as Image,J as ItemCrud,Ht as ItemCrudButtonNavPosition,Ut as ItemCrudButtonNavVisibility,Wt as ItemCrudMode,Nt as ItemCrudView,v as LktColor,a as LktItem,h as LktSettings,B as LktStrictItem,Y as Login,Q as Menu,Z as MenuEntry,qt as MenuEntryType,_ as Modal,ge as ModalCallbackAction,x as ModalController,Be as ModalRegisterType,Xt as ModalType,Gt as ModificationView,Tt as MultipleOptionsDisplay,Kt as NotificationType,tt as Option,et as Paginator,$t as PaginatorType,ot as Progress,Yt as ProgressInterface,zt as ProgressType,Jt as ProgressValueFormat,yt as SafeString,Rt as SaveType,Ce as SortDirection,rt as StepProcess,nt as Table,xe as TablePermission,Zt as TableRowType,Qt as TableType,at as Tabs,it as Tag,_t as TagType,lt as Toast,ee as ToastPositionX,te as ToastType,be as ToggleMode,st as Tooltip,ne as TooltipLocationX,re as TooltipLocationY,oe as TooltipPositionEngine,V as TooltipSettingsController,Ft as ValidationCode,Ot as ValidationStatus,m as WebElement,M as WebElementController,ft as WebElementLayoutType,ae as WebElementType,S as WebItemsController,kt as WebPage,L as WebPageController,le as WebPageStatus,he as WebParentType,$e as addConfirm,Xe as addModal,to as applyTextAlignment,_e as applyTextFormat,De as booleanFieldTypes,oo as changeBackgroundColor,ro as changeFontFamily,eo as changeTextColor,Ye as closeConfirm,Le as closeModal,Ze as createColumn,d as ensureButtonConfig,k as ensureFieldConfig,Oe as extractI18nValue,D as extractPropValue,Ie as fieldTypesWithOptions,Ee as fieldTypesWithoutClear,Me as fieldTypesWithoutUndo,Ve as fieldsWithMultipleMode,Ue as getAdminMenuEntries,O as getAnchorHref,ut as getDefaultLktAnchorWebElement,mt as getDefaultLktButtonWebElement,xt as getDefaultLktHeaderWebElement,E as getDefaultLktIconWebElement,bt as getDefaultLktImageWebElement,gt as getDefaultLktLayoutAccordionWebElement,pt as getDefaultLktLayoutBoxWebElement,dt as getDefaultLktLayoutWebElement,Ct as getDefaultLktTextAccordionWebElement,ht as getDefaultLktTextBannerWebElement,ct as getDefaultLktTextBoxWebElement,y as getDefaultLktTextWebElement,la as getDefaultValues,Ge as getFormDataState,Lt as getFormFieldsKeys,ke as getFormSlotKeys,Re as lktDebug,Je as openConfirm,ye as openModal,Ae as prepareResourceData,Qe as runModalCallback,ze as setModalCanvas,ve as textFieldTypes,Se as textFieldTypesWithOptions};
1
+ var It=(d=>(d.Button="button",d.Submit="submit",d.Reset="reset",d.Anchor="anchor",d.Content="content",d.Switch="switch",d.HiddenSwitch="hidden-switch",d.Split="split",d.SplitLazy="split-lazy",d.SplitEver="split-ever",d.Tooltip="tooltip",d.TooltipLazy="tooltip-lazy",d.TooltipEver="tooltip-ever",d.FileUpload="file-upload",d.ImageUpload="image-upload",d.InvisibleWrapper="invisible-wrapper",d))(It||{});var c=(e,t)=>typeof e>"u"||!e?t:{...t,...e},k=(e,t)=>typeof e>"u"?t:{...t,...e};var h=class e{static debugEnabled=!1;static debugMode(t=!0){return e.debugEnabled=t,e}static defaultCreateErrorText="Creation failed";static defaultCreateErrorDetails="An error occurred while creating the item. Please try again.";static defaultCreateErrorIcon="";static setDefaultCreateError(t){e.defaultCreateErrorText=t.text??e.defaultCreateErrorText,e.defaultCreateErrorDetails=t.details??e.defaultCreateErrorDetails,e.defaultCreateErrorIcon=t.icon??e.defaultCreateErrorIcon}static defaultUpdateErrorText="Update failed";static defaultUpdateErrorDetails="An error occurred while updating the item. Please try again.";static defaultUpdateErrorIcon="";static setDefaultUpdateError(t){e.defaultUpdateErrorText=t.text??e.defaultUpdateErrorText,e.defaultUpdateErrorDetails=t.details??e.defaultUpdateErrorDetails,e.defaultUpdateErrorIcon=t.icon??e.defaultUpdateErrorIcon}static defaultDropErrorText="Drop failed";static defaultDropErrorDetails="An error occurred while removing the item. Please try again.";static defaultDropErrorIcon="";static setDefaultDropError(t){e.defaultDropErrorText=t.text??e.defaultDropErrorText,e.defaultDropErrorDetails=t.details??e.defaultDropErrorDetails,e.defaultDropErrorIcon=t.icon??e.defaultDropErrorIcon}static defaultCreateSuccessText="Item created";static defaultCreateSuccessDetails="";static defaultCreateSuccessIcon="";static setDefaultCreateSuccess(t){e.defaultCreateSuccessText=t.text??e.defaultCreateSuccessText,e.defaultCreateSuccessDetails=t.details??e.defaultCreateSuccessDetails,e.defaultCreateSuccessIcon=t.icon??e.defaultCreateSuccessIcon}static defaultUpdateSuccessText="Item updated";static defaultUpdateSuccessDetails="";static defaultUpdateSuccessIcon="";static setDefaultUpdateSuccess(t){e.defaultUpdateSuccessText=t.text??e.defaultUpdateSuccessText,e.defaultUpdateSuccessDetails=t.details??e.defaultUpdateSuccessDetails,e.defaultUpdateSuccessIcon=t.icon??e.defaultUpdateSuccessIcon}static defaultDropSuccessText="Item removed";static defaultDropSuccessDetails="";static defaultDropSuccessIcon="";static setDefaultDropSuccess(t){e.defaultDropSuccessText=t.text??e.defaultDropSuccessText,e.defaultDropSuccessDetails=t.details??e.defaultDropSuccessDetails,e.defaultDropSuccessIcon=t.icon??e.defaultDropSuccessIcon}static defaultUploadSuccessText="Upload success";static defaultUploadSuccessDetails="";static defaultUploadSuccessIcon="";static setDefaultUploadSuccess(t){e.defaultUploadSuccessText=t.text??e.defaultUploadSuccessText,e.defaultUploadSuccessDetails=t.details??e.defaultUploadSuccessDetails,e.defaultUploadSuccessIcon=t.icon??e.defaultUploadSuccessIcon}static defaultUploadErrorText="Upload error";static defaultUploadErrorDetails="";static defaultUploadErrorIcon="";static setDefaultUploadError(t){e.defaultUploadErrorText=t.text??e.defaultUploadErrorText,e.defaultUploadErrorDetails=t.details??e.defaultUploadErrorDetails,e.defaultUploadErrorIcon=t.icon??e.defaultUploadErrorIcon}static defaultSaveButton={text:"Save",icon:"lkt-icn-save"};static setDefaultSaveButton(t,o=!0){return o?e.defaultSaveButton=t:e.defaultSaveButton=c(t,e.defaultSaveButton),e}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(t,o=!0){return o?e.defaultConfirmButton=t:e.defaultConfirmButton=c(t,e.defaultConfirmButton),e}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(t,o=!0){return o?e.defaultCancelButton=t:e.defaultCancelButton=c(t,e.defaultCancelButton),e}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(t,o=!0){return o?e.defaultCreateButton=t:e.defaultCreateButton=c(t,e.defaultCreateButton),e}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(t,o=!0){return o?e.defaultUpdateButton=t:e.defaultUpdateButton=c(t,e.defaultUpdateButton),e}static defaultDropButton={text:"Drop"};static setDefaultDropButton(t,o=!0){return o?e.defaultDropButton=t:e.defaultDropButton=c(t,e.defaultDropButton),e}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(t,o=!0){return o?e.defaultEditModeButton=t:e.defaultEditModeButton=c(t,e.defaultEditModeButton),e}static defaultGroupButton={text:"Actions",type:"split",icon:"lkt-icn-settings-cogs"};static setDefaultGroupButton(t,o=!0){return o?e.defaultGroupButton=t:e.defaultGroupButton=c(t,e.defaultGroupButton),e}static defaultToggleButton={text:"Toggle",textOn:"Close",textOff:"Show more",type:"hidden-switch"};static setDefaultToggleButton(t,o=!0){return o?e.defaultToggleButton=t:e.defaultToggleButton=c(t,e.defaultToggleButton),e}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(t,o=!0){return o?e.defaultLoadMoreButton=t:e.defaultLoadMoreButton=c(t,e.defaultLoadMoreButton),e}static defaultCloseModalIcon="lkt-icn-cancel";static setDefaultCloseModalIcon(t){return e.defaultCloseModalIcon=t,e}static defaultCloseToastIcon="lkt-icn-cancel";static setDefaultCloseToastIcon(t){return e.defaultCloseToastIcon=t,e}static defaultTableSortAscIcon="lkt-icn-arrow-bottom";static defaultTableSortDescIcon="lkt-icn-arrow-top";static setDefaultTableSortAscIcon(t){return e.defaultTableSortAscIcon=t,e}static setDefaultTableSortDescIcon(t){return e.defaultTableSortDescIcon=t,e}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(t,o=!0){return o?e.defaultPaginatorFirstButton=t:e.defaultPaginatorFirstButton=c(t,e.defaultPaginatorFirstButton),e}static setDefaultPaginatorPrevButton(t,o=!0){return o?e.defaultPaginatorPrevButton=t:e.defaultPaginatorPrevButton=c(t,e.defaultPaginatorPrevButton),e}static setDefaultPaginatorNextButton(t,o=!0){return o?e.defaultPaginatorNextButton=t:e.defaultPaginatorNextButton=c(t,e.defaultPaginatorNextButton),e}static setDefaultPaginatorLastButton(t,o=!0){return o?e.defaultPaginatorLastButton=t:e.defaultPaginatorLastButton=c(t,e.defaultPaginatorLastButton),e}static defaultFieldElementCustomClassField={label:"Appearance",multiple:!1};static defaultFieldLktAccordionElementCustomClassField={};static defaultFieldLktBoxElementCustomClassField={};static defaultFieldLktIconElementCustomClassField={};static defaultFieldLktImageElementCustomClassField={};static setDefaultFieldLktAccordionElementCustomClassField(t,o=!0){return o?e.defaultFieldLktAccordionElementCustomClassField=t:e.defaultFieldLktAccordionElementCustomClassField=k(t,e.defaultFieldLktAccordionElementCustomClassField),e}static setDefaultFieldLktBoxElementCustomClassField(t,o=!0){return o?e.defaultFieldLktBoxElementCustomClassField=t:e.defaultFieldLktBoxElementCustomClassField=k(t,e.defaultFieldLktBoxElementCustomClassField),e}static setDefaultFieldLktIconElementCustomClassField(t,o=!0){return o?e.defaultFieldLktIconElementCustomClassField=t:e.defaultFieldLktIconElementCustomClassField=k(t,e.defaultFieldLktIconElementCustomClassField),e}static setDefaultFieldLktImageElementCustomClassField(t,o=!0){return o?e.defaultFieldLktImageElementCustomClassField=t:e.defaultFieldLktImageElementCustomClassField=k(t,e.defaultFieldLktImageElementCustomClassField),e}static i18nOptionsFormatter={};static setI18nOptionsFormatter(t,o){return e.i18nOptionsFormatter[t]=o,e}};var V=class e{static data={};static configure(t){return e.data=t,e}};var Et=(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))(Et||{});var Ie=["text","search","select"],Ee=["switch","check"],Me=["switch","check"],Se=["text","search"],De=["switch","check"],Ve=["select","color","card"],ve=["text","email","password"];var Te=["lktDateProps","lktStrictItem","lktExcludedProps"],a=class e{static lktAllowUndefinedProps=[];static lktExcludedProps=[];static lktDateProps=[];static lktStrictItem=!1;static lktDefaultValues=[];constructor(t){}feed(t={},o=this){if(typeof t=="object")for(let[r,n]of Object.entries(t))o.assignProp(r,n)}assignProp(t,o){if(!(Te.includes(t)||e.lktExcludedProps.includes(t))&&!(e.lktStrictItem&&!this.hasOwnProperty(t))){if(e.lktDateProps.includes(t)){this[t]=new Date(o);return}this[t]=o}}};var B=class extends a{lktStrictItem=!0};var v=class e extends B{r=0;g=0;b=0;a=255;constructor(t){super(),this.feed(t)}static fromHexColor(t){let o=parseInt(+("0x"+t.substring(1,3)),10),r=parseInt(+("0x"+t.substring(3,5)),10),n=parseInt(+("0x"+t.substring(5,7)),10),i=255;return t.length===9&&(i=parseInt(+("0x"+t.substring(5,7)),10)),new e({r:o,g:r,b:n,a:i})}toString(){let t=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="#"+t+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 T=(n=>(n.Auto="auto",n.Always="always",n.Lazy="lazy",n.Ever="ever",n))(T||{});var Mt=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(Mt||{});var F=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(t={}){super(),this.feed(t)}};var St=(b=>(b.Href="href",b.RouterLink="router-link",b.RouterLinkBack="router-link-back",b.Mail="mail",b.Tel="tel",b.Tab="tab",b.Download="download",b.Action="action",b.Legacy="",b))(St||{});import{__ as Fe}from"lkt-i18n";var D=(e,t)=>{if(typeof e=="string"){if(e==="prop:")return t;if(e.startsWith("prop:"))return t[e.substring(5)];if(e.includes("feed{")){let o=/\bfeed{(.*?)}/g;return e.replace(o,(n,i)=>t[i.trim()]||"")}}return e},Oe=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Fe(t.substring(3)):t}return e},Ae=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=D(e[r],t);return o};var O=e=>{let t="";if(typeof e.to=="string"&&(t=e.to),typeof e.to=="function"&&(t=e.to(e.prop??{})),typeof e.to=="string"&&(t=D(e.to,e.prop??{})),typeof e.type<"u")switch(e.type){case"mail":return`mailto:${t}`;case"tel":return`tel:${t}`;case"href":case"tab":case"download":return t}return t};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 O(this)}constructor(t={}){super(),this.feed(t)}};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(t={}){super(),this.feed(t)}};var j=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","contentClass","icon"];title="";iconAtEnd=!1;style="";class="";contentClass;icon="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as we}from"lkt-string-tools";var W=class extends a{lktAllowUndefinedProps=["clickRef","tabindex","anchor","showTooltipOnHover","hideTooltipOnLeave"];static lktDefaultValues=["type","name","class","containerClass","value","disabled","loading","wrapContent","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"];type="button";name=we(10);class="";containerClass="";value="";disabled=!1;loading=!1;wrapContent=!1;splitIcon="lkt-icn-angle-bottom";resource="";resourceData={};modal="";modalKey="_";modalData={};confirmModal="";confirmModalKey="_";confirmData={};modalCallbacks=[];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(t={}){super(),this.feed(t)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var Dt=(l=>(l.None="",l.Field="field",l.Button="button",l.Anchor="anchor",l.InlineDrop="inline-drop",l.ColumnIndex="column-index",l))(Dt||{});var I=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","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;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(t={}){super(),this.feed(t)}};var Vt=(r=>(r.Date="date",r.Number="number",r.Timer="timer",r))(Vt||{});var N=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(t={}){super(),this.feed(t)}};var vt=(f=>(f.A0="a0",f.A1="a1",f.A2="a2",f.A3="a3",f.A4="a4",f.A5="a5",f.A6="a6",f.A7="a7",f.A8="a8",f.A9="a9",f))(vt||{});var H=class extends a{static lktDefaultValues=["id","size","skipPageNumber","frontPage","title","img","icon"];id="";size="a4";skipPageNumber=!1;frontPage=!1;title="";img="";icon="";constructor(t={}){super(),this.feed(t)}};var U=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["text","class"];text="";class="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as Pe}from"lkt-string-tools";var Tt=(n=>(n.List="list",n.Inline="inline",n.Count="count",n.Table="table",n))(Tt||{});var R=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","events"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Pe(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;tooltipConfig={};fileBrowserConfig={};canRender=!0;canDisplay=!0;events={};constructor(t={}){super(),this.feed(t)}};var K=class extends a{static lktDefaultValues=["items","submitButton","container","header","uiConfig"];items=[];submitButton=!1;container={};header={};uiConfig={};constructor(t={}){super(),this.feed(t),this.items=this.items.map(o=>(o.type==="field"&&typeof o.modificationsField>"u"&&(o.modificationsField={options:[]}),o))}static mkFieldItemConfig(t,o,r={},n={}){return{type:"field",key:t,field:o,modificationsField:r,...n}}static mkFormItemConfig(t,o={}){return{type:"form",form:t,...o}}static mkComponentItemConfig(t,o={}){return{type:"component",component:t,...o}}static mkSlotItemConfig(t,o={}){return{type:"slot",key:t,slotData:o}}};var Ft=(u=>(u.HTTPResponse="http-response",u.MinStringLength="min-str",u.MinNumber="min-num",u.MaxStringLength="max-str",u.MaxNumber="max-num",u.Email="email",u.Empty="empty",u.EqualTo="equal-to",u.MinNumbers="min-numbers",u.MaxNumbers="max-numbers",u.MinChars="min-chars",u.MaxChars="max-chars",u.MinUpperChars="min-upper-chars",u.MaxUpperChars="max-upper-chars",u.MinLowerChars="min-lower-chars",u.MaxLowerChars="max-lower-chars",u.MinSpecialChars="min-special-chars",u.MaxSpecialChars="max-special-chars",u))(Ft||{});var Ot=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(Ot||{});var G=class e{code=void 0;status="info";min=0;max=0;equalToValue=void 0;httpResponse=void 0;constructor(t,o){this.code=t,this.status=o}setMin(t){return this.min=t,this}setMax(t){return this.max=t,this}setEqualToValue(t){return this.equalToValue=t,this}setHTTPResponse(t){return this.httpResponse=t,this}static createEmpty(t="ko"){return new e("empty",t)}static createEmail(t="ko"){return new e("email",t)}static createMinStr(t,o="ko"){return new e("min-str",o).setMin(t)}static createMaxStr(t,o="ko"){return new e("max-str",o).setMax(t)}static createMinNum(t,o="ko"){return new e("min-num",o).setMin(t)}static createMaxNum(t,o="ko"){return new e("max-num",o).setMax(t)}static createNumBetween(t,o,r="ko"){return new e("max-num",r).setMin(t).setMax(o)}static createMinNumbers(t,o="ko"){return new e("min-numbers",o).setMin(t)}static createMaxNumbers(t,o="ko"){return new e("max-numbers",o).setMax(t)}static createMinUpperChars(t,o="ko"){return new e("min-upper-chars",o).setMin(t)}static createMaxUpperChars(t,o="ko"){return new e("max-upper-chars",o).setMax(t)}static createMinLowerChars(t,o="ko"){return new e("min-lower-chars",o).setMin(t)}static createMaxLowerChars(t,o="ko"){return new e("max-lower-chars",o).setMax(t)}static createMinSpecialChars(t,o="ko"){return new e("min-special-chars",o).setMin(t)}static createMaxSpecialChars(t,o="ko"){return new e("max-special-chars",o).setMax(t)}static createMinChars(t,o="ko"){return new e("min-chars",o).setMin(t)}static createMaxChars(t,o="ko"){return new e("max-chars",o).setMax(t)}static createEqualTo(t,o="ko"){return new e("equal-to",o).setEqualToValue(t)}static createRemoteResponse(t,o="ko"){return new e("http-response",o).setHTTPResponse(t)}};var At=(i=>(i.StorageUnit="unit",i.Directory="dir",i.Image="img",i.Video="vid",i.File="file",i))(At||{});var q=class e 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(t={}){super(),this.feed(t),this.children||(this.children=[]),this.children=this.children.map(o=>new e({...o,parent:this.id}))}};var wt=(l=>(l.H1="h1",l.H2="h2",l.H3="h3",l.H4="h4",l.H5="h5",l.H6="h6",l))(wt||{});var X=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon","topStartButtons","topEndButtons","bottomButtons"];tag="h2";class="";text="";icon="";topStartButtons=[];topEndButtons=[];bottomButtons=[];constructor(t={}){super(),this.feed(t)}};var Pt=(o=>(o.NotDefined="",o.Button="button",o))(Pt||{});var jt=(o=>(o.Start="start",o.End="end",o))(jt||{});var $=class extends a{static lktDefaultValues=["icon","text","class","type","position","events"];icon="";text="";class="";type="";position="start";events={};constructor(t={}){super(),this.feed(t)}};var z=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["src","alt","text","class","imageStyle"];src="";alt="";text="";class="";imageStyle="";constructor(t={}){super(),this.feed(t)}};var Wt=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(Wt||{});var Nt=(o=>(o.Inline="inline",o.Modal="modal",o))(Nt||{});var Ht=(o=>(o.Top="top",o.Bottom="bottom",o))(Ht||{});var Ut=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(Ut||{});var Rt=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(Rt||{});var Kt=(o=>(o.Toast="toast",o.Inline="inline",o))(Kt||{});var Gt=(n=>(n.Current="current",n.Modifications="modifications",n.SplitView="split-view",n.Differences="differences",n))(Gt||{});var J=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(t={}){super(),this.feed(t)}};var Y=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(t={}){super(),this.feed(t)}};var Q=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var qt=(n=>(n.Anchor="anchor",n.Button="button",n.Header="header",n.Entry="entry",n))(qt||{});var Z=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(t={}){super(),this.feed(t)}doClose(){this.isOpened=!1}};var Xt=(o=>(o.Modal="modal",o.Confirm="confirm",o))(Xt||{});var _=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=h.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(t={}){super(),this.feed(t)}};var tt=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var $t=(l=>(l.Pages="pages",l.PrevNext="prev-next",l.PagesPrevNext="pages-prev-next",l.PagesPrevNextFirstLast="pages-prev-next-first-last",l.LoadMore="load-more",l.Infinite="infinite",l))($t||{});var et=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData","events"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};events={};constructor(t={}){super(),this.feed(t)}};var zt=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(zt||{});var Jt=(i=>(i.NotDefined="",i.Hidden="hidden",i.Integer="integer",i.Decimal="decimal",i.Auto="auto",i))(Jt||{});var Yt=(o=>(o.Bar="bar",o.Circle="circle",o))(Yt||{});var ot=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(t={}){super(),this.feed(t)}};var rt=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(t={}){super(),this.feed(t)}};var Qt=(l=>(l.Table="table",l.Item="item",l.Ul="ul",l.Ol="ol",l.Carousel="carousel",l.Accordion="accordion",l))(Qt||{});var Zt=(n=>(n[n.Auto=0]="Auto",n[n.PreferItem=1]="PreferItem",n[n.PreferCustomItem=2]="PreferCustomItem",n[n.PreferColumns=3]="PreferColumns",n))(Zt||{});var nt=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","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","accordion","hideTableHeader","skipTableItemsContainer","events"];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=void 0;carousel={};accordion={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;skipTableItemsContainer;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";itemSlotComponent=void 0;itemSlotData={};itemSlotEvents={};events={};constructor(t={}){super(),this.feed(t)}};var at=class extends a{static lktDefaultValues=["modelValue","id","useSession","cacheLifetime","contentPad","titles"];modelValue="";id="";useSession=!1;cacheLifetime=5;contentPad;titles;constructor(t={}){super(),this.feed(t)}};var _t=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(_t||{});var it=class extends a{static lktDefaultValues=["class","text","featuredText","icon","iconAtEnd","featuredAtStart","type"];class="";text="";featuredText="";icon="";iconAtEnd=!1;featuredAtStart=!1;type="";constructor(t={}){super(),this.feed(t)}};var te=(o=>(o.Message="message",o.Button="button",o))(te||{});var ee=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(ee||{});var lt=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(t={}){super(),this.feed(t)}};var oe=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(oe||{});var re=(n=>(n.Top="top",n.Bottom="bottom",n.Center="center",n.ReferrerCenter="referrer-center",n))(re||{});var ne=(i=>(i.Left="left",i.Right="right",i.Center="center",i.LeftCorner="left-corner",i.RightCorner="right-corner",i))(ne||{});var st=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","class","contentClass","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay","compensationX","compensationY","compensateGlobalContainers","remoteControl"];modelValue=!1;alwaysOpen=!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;constructor(t={}){super(),this.feed(t)}};var ae=(g=>(g.LktAnchor="lkt-anchor",g.LktLayoutAccordion="lkt-layout-accordion",g.LktTextAccordion="lkt-text-accordion",g.LktLayoutBox="lkt-layout-box",g.LktTextBox="lkt-text-box",g.LktLayoutBanner="lkt-layout-banner",g.LktTextBanner="lkt-text-banner",g.LktButton="lkt-button",g.LktLayout="lkt-layout",g.LktHeader="lkt-header",g.LktIcon="lkt-icon",g.LktIcons="lkt-icons",g.LktImage="lkt-image",g.LktText="lkt-text",g))(ae||{});var ft=(n=>(n.Grid="grid",n.FlexRow="flex-row",n.FlexRows="flex-rows",n.FlexColumn="flex-column",n))(ft||{});import{getAvailableLanguages as C}from"lkt-i18n";var y=(e="Time to create")=>{let t={};return C().forEach(r=>{t[r]=e}),new m({id:0,type:"lkt-text",props:{text:t},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}})},ut=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-anchor",props:{text:e},config:{hasHeader:!0,hasIcon:!0}})},mt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-button",props:{text:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}})},dt=()=>new m({id:0,type:"lkt-layout",props:{},config:{},children:[],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),ct=()=>{let e={},t={};return C().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),new m({id:0,type:"lkt-text-box",props:{header:e,text:t},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},pt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-layout-box",props:{header:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},gt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-layout-accordion",props:{header:e,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}})},Ct=()=>{let e={},t={};return C().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),new m({id:0,type:"lkt-text-accordion",props:{header:e,text:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},xt=()=>{let e={};return C().forEach(o=>{e[o]="Title goes here"}),new m({id:0,type:"lkt-header",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},E=()=>{let e={};return C().forEach(o=>{e[o]="Content goes here"}),new m({id:0,type:"lkt-icon",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},bt=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Image description goes here",t[n]="",o[n]=""}),new m({id:0,type:"lkt-image",props:{text:e,alt:t,title:o},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}})},ht=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Title goes here",t[n]="Subtitle goes here",o[n]="Content goes here"}),new m({id:0,type:"lkt-text-banner",props:{header:e,subHeader:t,text:o,art:{},media:{},opacity:0,type:"static"},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}})},ie=()=>{let e={},t={},o={};return C().forEach(n=>{e[n]="Title goes here",t[n]="Subtitle goes here",o[n]="Content goes here"}),new m({id:0,type:"lkt-icons",props:{header:e,subHeader:t,text:o},config:{hasHeader:!0,hasSubHeader:!0,hasIcon:!0,amountOfCallToActions:0,callToActions:[]},subElements:[E()],layout:{type:"flex-rows",columns:[],alignSelf:[],justifySelf:[]}})};import{cloneObject as je}from"lkt-object-tools";import{generateRandomString as We}from"lkt-string-tools";import{time as Ne}from"lkt-date-tools";var M=class e{static elements=[];static customAppearance={};static addWebElement(t){return e.elements.push(t),e}static getElements(){return e.elements}static getCustomWebElementSettings(t){let o=t.startsWith("custom:")?t.split(":")[1]:t;return e.elements.find(r=>r.id===o)}static setCustomAppearance(t){return typeof t.key=="string"?e.customAppearance[t.key]=t:t.key.forEach(o=>{e.customAppearance[o]=t}),e}static getCustomAppearance(t){return e.customAppearance[t]}};var m=class e 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(t={}){super(),this.feed(t),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 e(o))),Array.isArray(this.children)||(this.children=[]),this.children=this.children.map(o=>new e(o)),this.subElements=this.subElements.map(o=>new e(o)),this.uid=[this.id,We(6)].join("-"),this.updateKeyMoment()}updateKeyMoment(){this.keyMoment=[this.uid,Ne()].join("-")}addChild(t,o=void 0){return Array.isArray(this.children)||(this.children=[]),typeof o=="number"&&o>=0&&o<this.children.length?(this.children.splice(o,0,t),this):(this.children.push(t),this)}getClone(){let t=o=>(o.id=0,o.children?.forEach(r=>t(r)),o);return new e(t(je(this)))}static createByType(t){switch(t){case"lkt-layout-box":return pt();case"lkt-text-box":return ct();case"lkt-layout-accordion":return gt();case"lkt-text-accordion":return Ct();case"lkt-icon":return E();case"lkt-icons":return ie();case"lkt-image":return bt();case"lkt-anchor":return ut();case"lkt-button":return mt();case"lkt-layout":return dt();case"lkt-header":return xt();case"lkt-text":return y();case"lkt-text-banner":return ht()}return new e({type:t})}addSubElement(){switch(this.type){case"lkt-icons":this.subElements.push(E());break}return this}isCustom(){return this.type.startsWith("custom:")}getCustomSettings(){return M.getCustomWebElementSettings(this.type)}};import{generateRandomString as se,getUrlSlug as fe}from"lkt-string-tools";import{time as ue}from"lkt-date-tools";var le=(r=>(r.Draft="draft",r.Public="public",r.Scheduled="scheduled",r))(le||{});import{getAvailableLanguages as He}from"lkt-i18n";var kt=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(t={}){super(),this.feed(t),this.keyMoment=se(4)+this.id+ue(),Array.isArray(this.slugData)&&(this.slugData={},this.updateSlug()),this.slugData||this.updateSlug()}updateKeyMoment(){this.keyMoment=se(4)+this.id+ue()}updateSlug(){this.slug=fe(this.name);let t=He();for(let o in t){let r=t[o];this.slugData[r]=fe(String(this.nameData[r]))}}};var me=(p=>(p[p.XXS=1]="XXS",p[p.XS=2]="XS",p[p.SM=3]="SM",p[p.MD=4]="MD",p[p.LG=5]="LG",p[p.XL=6]="XL",p[p.XXL=7]="XXL",p))(me||{});var de=(n=>(n.None="",n.Focus="focus",n.Blur="blur",n.Always="always",n))(de||{});var ce=(o=>(o.Message="message",o.Inline="inline",o))(ce||{});var pe=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(pe||{});var ge=(i=>(i.Refresh="refresh",i.Close="close",i.ReOpen="reOpen",i.Exec="exec",i.Open="open",i))(ge||{});var Ce=(o=>(o.Asc="asc",o.Desc="desc",o))(Ce||{});var xe=(f=>(f.Create="create",f.Update="update",f.Edit="edit",f.Drop="drop",f.Sort="sort",f.SwitchEditMode="switch-edit-mode",f.InlineEdit="inline-edit",f.InlineCreate="inline-create",f.ModalCreate="modal-create",f.InlineCreateEver="inline-create-ever",f))(xe||{});var be=(o=>(o.Lazy="lazy",o.Ever="ever",o))(be||{});var he=(o=>(o.Page="page",o.Element="element",o))(he||{});var yt=class e{value;constructor(t){this.value=t}getValue(...t){return typeof this.value=="function"?this.value(...t):typeof this.value=="object"&&typeof this.value==typeof e?this.value.getValue(...t):typeof this.value=="string"?this.value:""}};var L=class e{static pages=[];static defaultPageEnabled=!0;static setDefaultPageEnabled(t){return e.defaultPageEnabled=t,e}static hasDefaultPageEnabled(){return e.defaultPageEnabled}static addWebPage(t){return e.pages.push(t),e}static getPages(){return e.pages}static getCustomWebPageSettings(t){return e.pages.find(o=>o.id===t||o.code===t)}};var S=class e{static stack={};static setWebItemConfig(t){return e.stack[t.code]=t,e}static getItems(){return Object.values(e.stack)}static getWebItemSettings(t){return e.stack[t]}};var Ue=e=>{let t=[];return L.hasDefaultPageEnabled()&&t.push({key:"web-pages",type:"entry",icon:"lkt-icn-webpage",anchor:{to:"/admin/web-pages/0",text:"Pages",events:{click:()=>{e.menuStatus.value=!1}}}}),L.getPages().forEach(o=>{t.push({key:o.code,type:"entry",icon:"lkt-icn-webpage",anchor:{to:`/admin/web-pages/${o.id}`,text:o.label,events:{click:()=>{e.menuStatus.value=!1}}}})}),S.getItems().forEach(o=>{o.many!==!1&&t.push({key:o.code,type:"entry",icon:o.icon,anchor:{to:`/admin/web-items/${o.code}`,text:o.labelMany,events:{click:()=>{e.menuStatus.value=!1}}}})}),t.push({key:"translations",type:"entry",icon:"lkt-icn-lang-picker",anchor:{to:"/admin/i18n",text:"Translations",events:{click:()=>{e.menuStatus.value=!1}}}}),t};var Re=(e,...t)=>{h.debugEnabled&&console.info("::lkt::",`[${e}] `,...t)};import{DataState as Ke}from"lkt-data-state";var Ge=(e,t,o)=>{let r=new Ke(JSON.parse(JSON.stringify(e)),{onlyProps:Lt(o),recursiveOnlyProps:!1});return r.increment(JSON.parse(JSON.stringify(t))),r},Lt=e=>{if(e.items===void 0)return[];if(e.items.length===0)return[];let t=[];for(let o in e.items){let r=e.items[o];switch(r.type){case"field":r.key!==void 0&&t.push(r.key);break;case"form":r.form&&(t=[...t,...Lt(r.form)]);break}}return t},ke=e=>{if(e.items===void 0)return[];if(e.items.length===0)return[];let t=[];for(let o in e.items){let r=e.items[o];switch(r.type){case"slot":r.key!==void 0&&t.push(r.key);break;case"form":r.form&&(t=[...t,...ke(r.form)]);break}}return t};import{nextTick as qe}from"vue";var x=class e{static config=[];static components=[];static zIndex=500;static canvas=void 0;static addModal(t){return e.config.push(t),e}static findConfig(t){return e.config.find(o=>o.name===t)}static getInstanceIndex(t){return`${t.modalName}_${t.modalKey}`}static getModalInfo(t,o={},r){let n=e.getInstanceIndex(t);return t={...r.config,...t,zIndex:e.zIndex},{componentProps:o,modalConfig:t,modalRegister:r,index:n,legacy:!1,legacyData:{props:{...t,modalConfig:t,...o}}}}static focus(t){return e.components[t.index]=t,e.components[t.index]}static open(t,o={},r=!1){o.modalKey&&(t.modalKey=o.modalKey);let n=e.findConfig(t.modalName);if(r&&(o.size&&(t.size=o.size,delete o.size),o.preTitle&&(t.preTitle=o.preTitle,delete o.preTitle),o.preTitleIcon&&(t.preTitleIcon=o.preTitleIcon,delete o.preTitleIcon),o.title&&(t.title=o.title,delete o.title),o.closeIcon&&(t.closeIcon=o.closeIcon,delete o.closeIcon),o.closeConfirm&&(t.closeConfirm=o.closeConfirm,delete o.closeConfirm),o.closeConfirmKey&&(t.closeConfirmKey=o.closeConfirmKey,delete o.closeConfirmKey),o.showClose&&(t.showClose=o.showClose,delete o.showClose),o.disabledClose&&(t.disabledClose=o.disabledClose,delete o.disabledClose),o.disabledVeilClick&&(t.disabledVeilClick=o.disabledVeilClick,delete o.disabledVeilClick),o.hiddenFooter&&(t.hiddenFooter=o.hiddenFooter,delete o.hiddenFooter),o.modalName&&(t.modalName=o.modalName,delete o.modalName),o.modalKey&&(t.modalKey=o.modalKey,delete o.modalKey),o.beforeClose&&(t.beforeClose=o.beforeClose,delete o.beforeClose),o.item&&(t.item=o.item,delete o.item),o.confirmButton&&(t.confirmButton=o.confirmButton,delete o.confirmButton),o.cancelButton&&(t.cancelButton=o.cancelButton,delete o.cancelButton),o.type&&(t.type=o.type,delete o.type)),n){++e.zIndex;let i=this.getModalInfo(t,o,n);return i.legacy=r,e.components[i.index]?e.focus(i):(e.components[i.index]=i,e.canvas?.refresh(),e.components[i.index])}}static close(t){if(e.findConfig(t.modalName)){--e.zIndex;let r=e.getInstanceIndex(t);delete e.components[r],Object.keys(e.components).length===0&&(e.zIndex=500),e.canvas?.refresh()}}static reOpen(t,o={},r=!1){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.close(t),e.canvas?.refresh(),qe(()=>{e.open(t,o,r),e.canvas?.refresh()})}static execModal(t,o,r={}){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.canvas?.execModal(t.modalName,t.modalKey,o,r),e.canvas?.refresh()}static refresh(t,o={}){if(!e.canvas){console.warn("ModalCanvas not defined");return}e.canvas?.refreshModal(t.modalName,t.modalKey,o),e.canvas?.refresh()}static runModalCallback(t){let o=t.modalKey?t.modalKey:"_",r=t.args?t.args:{},n={modalName:t.modalName,modalKey:o};switch(t.action){case"reOpen":return e.reOpen(n,r);case"open":return e.open(n,r);case"close":return e.close(n);case"refresh":return e.refresh(n,r);case"exec":let i=t.method;return i?e.execModal(n,i,r):void 0}}static updateModalKey(t,o){if(!e.canvas){console.warn("ModalCanvas not defined");return}let r=e.getInstanceIndex(t),n=e.getInstanceIndex({modalName:t.modalName,modalKey:o});return e.components[n]=e.components[r],e.components[n].modalConfig.modalKey=o,e.components[n].legacyData.props.modalConfig.modalKey=o,e.components[n].legacyData.props.modalKey=o,delete e.components[r],e.canvas?.refresh(),e}};var Bt=e=>(typeof e=="string"&&e.indexOf("confirm__")===0&&(e=e.substring(9)),"confirm__"+e),Xe=e=>{x.addModal(e)},$e=e=>{x.addModal({...e,name:Bt(e.name)})},ye=(e,t)=>{x.open(e,t),x.canvas?.refresh()},Le=e=>{x.close(e),x.canvas?.refresh()},ze=e=>{x.canvas=e},Je=(e,t)=>{ye({...e,modalName:Bt(e.modalName)},t)},Ye=e=>{Le({...e,modalName:Bt(e.modalName)})},Qe=e=>{x.runModalCallback(e)};var Ze=e=>new I(e);var _e=e=>{document.execCommand(e,!1)},to=e=>{document.execCommand("justify"+e,!1)},eo=e=>{document.execCommand("foreColor",!1,e)},oo=e=>{document.execCommand("backColor",!1,e)},ro=(e,t)=>{document.execCommand("fontName",!1,t)};var Be=(o=>(o.Quick="quick",o.Full="full",o))(Be||{});function la(e){let t=new e,o={};if(!Array.isArray(e.lktDefaultValues))throw new Error("lktDefaultValues must be a keys array.");for(let r of e.lktDefaultValues)r in t&&(o[r]=t[r]);return o}export{F as Accordion,Mt as AccordionToggleMode,T as AccordionType,A as Anchor,St as AnchorType,me as AppSize,P as Banner,w as BannerType,j as Box,W as Button,It as ButtonType,I as Column,Dt as ColumnType,N as Counter,Vt as CounterType,H as DocPage,vt as DocPageSize,U as Dot,R as Field,de as FieldAutoValidationTrigger,ce as FieldReportType,Et as FieldType,G as FieldValidation,pe as FieldValidationType,q as FileEntity,At as FileEntityType,K as FormInstance,X as Header,wt as HeaderTag,$ as Icon,jt as IconPosition,Pt as IconType,z as Image,J as ItemCrud,Ht as ItemCrudButtonNavPosition,Ut as ItemCrudButtonNavVisibility,Wt as ItemCrudMode,Nt as ItemCrudView,v as LktColor,a as LktItem,h as LktSettings,B as LktStrictItem,Y as Login,Q as Menu,Z as MenuEntry,qt as MenuEntryType,_ as Modal,ge as ModalCallbackAction,x as ModalController,Be as ModalRegisterType,Xt as ModalType,Gt as ModificationView,Tt as MultipleOptionsDisplay,Kt as NotificationType,tt as Option,et as Paginator,$t as PaginatorType,ot as Progress,zt as ProgressAnimation,Yt as ProgressType,Jt as ProgressValueFormat,yt as SafeString,Rt as SaveType,Ce as SortDirection,rt as StepProcess,nt as Table,xe as TablePermission,Zt as TableRowType,Qt as TableType,at as Tabs,it as Tag,_t as TagType,lt as Toast,ee as ToastPositionX,te as ToastType,be as ToggleMode,st as Tooltip,ne as TooltipLocationX,re as TooltipLocationY,oe as TooltipPositionEngine,V as TooltipSettingsController,Ft as ValidationCode,Ot as ValidationStatus,m as WebElement,M as WebElementController,ft as WebElementLayoutType,ae as WebElementType,S as WebItemsController,kt as WebPage,L as WebPageController,le as WebPageStatus,he as WebParentType,$e as addConfirm,Xe as addModal,to as applyTextAlignment,_e as applyTextFormat,De as booleanFieldTypes,oo as changeBackgroundColor,ro as changeFontFamily,eo as changeTextColor,Ye as closeConfirm,Le as closeModal,Ze as createColumn,c as ensureButtonConfig,k as ensureFieldConfig,Oe as extractI18nValue,D as extractPropValue,Ie as fieldTypesWithOptions,Ee as fieldTypesWithoutClear,Me as fieldTypesWithoutUndo,Ve as fieldsWithMultipleMode,Ue as getAdminMenuEntries,O as getAnchorHref,ut as getDefaultLktAnchorWebElement,mt as getDefaultLktButtonWebElement,xt as getDefaultLktHeaderWebElement,E as getDefaultLktIconWebElement,bt as getDefaultLktImageWebElement,gt as getDefaultLktLayoutAccordionWebElement,pt as getDefaultLktLayoutBoxWebElement,dt as getDefaultLktLayoutWebElement,Ct as getDefaultLktTextAccordionWebElement,ht as getDefaultLktTextBannerWebElement,ct as getDefaultLktTextBoxWebElement,y as getDefaultLktTextWebElement,la as getDefaultValues,Ge as getFormDataState,Lt as getFormFieldsKeys,ke as getFormSlotKeys,Re as lktDebug,Je as openConfirm,ye as openModal,Ae as prepareResourceData,Qe as runModalCallback,ze as setModalCanvas,ve as textFieldTypes,Se as textFieldTypesWithOptions};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.0.133",
3
+ "version": "1.1.1",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",