lkt-vue-kernel 1.0.71 → 1.0.73
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 +192 -187
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,25 @@ interface EventsConfig {
|
|
|
90
90
|
|
|
91
91
|
type ValidTextValue = string | number | undefined;
|
|
92
92
|
|
|
93
|
+
declare enum IconType {
|
|
94
|
+
NotDefined = "",
|
|
95
|
+
Button = "button"
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare enum IconPosition {
|
|
99
|
+
Start = "start",
|
|
100
|
+
End = "end"
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface IconConfig {
|
|
104
|
+
icon?: ValidTextValue;
|
|
105
|
+
text?: ValidTextValue;
|
|
106
|
+
class?: ValidTextValue;
|
|
107
|
+
type?: IconType;
|
|
108
|
+
position?: IconPosition;
|
|
109
|
+
events?: EventsConfig | undefined;
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
interface AnchorConfig {
|
|
94
113
|
type?: AnchorType;
|
|
95
114
|
to?: RouteLocationRaw | string;
|
|
@@ -103,6 +122,7 @@ interface AnchorConfig {
|
|
|
103
122
|
imposter?: boolean;
|
|
104
123
|
external?: boolean;
|
|
105
124
|
text?: ValidTextValue;
|
|
125
|
+
icon?: IconConfig | string;
|
|
106
126
|
events?: EventsConfig | undefined;
|
|
107
127
|
onClick?: Function | undefined;
|
|
108
128
|
}
|
|
@@ -373,11 +393,179 @@ interface BooleanFieldConfig {
|
|
|
373
393
|
labelIcon?: ValidTextValue;
|
|
374
394
|
}
|
|
375
395
|
|
|
396
|
+
declare enum TableType {
|
|
397
|
+
Table = "table",
|
|
398
|
+
Item = "item",
|
|
399
|
+
Ul = "ul",
|
|
400
|
+
Ol = "ol",
|
|
401
|
+
Carousel = "carousel"
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare enum TablePermission {
|
|
405
|
+
Create = "create",
|
|
406
|
+
Update = "update",// Save changes
|
|
407
|
+
Edit = "edit",// Displays edit button
|
|
408
|
+
Drop = "drop",// Displays drop button
|
|
409
|
+
Sort = "sort",// Sort
|
|
410
|
+
SwitchEditMode = "switch-edit-mode",
|
|
411
|
+
InlineEdit = "inline-edit",// Be able to edit columns inside the table
|
|
412
|
+
InlineCreate = "inline-create",// Be able to append a new editable row (needs InlineEdit in order to be editable)
|
|
413
|
+
ModalCreate = "modal-create",// Be able to append a new row after save a modal form
|
|
414
|
+
InlineCreateEver = "inline-create-ever"
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
type ValidTablePermission = TablePermission | string;
|
|
418
|
+
|
|
419
|
+
declare enum HeaderTag {
|
|
420
|
+
H1 = "h1",
|
|
421
|
+
H2 = "h2",
|
|
422
|
+
H3 = "h3",
|
|
423
|
+
H4 = "h4",
|
|
424
|
+
H5 = "h5",
|
|
425
|
+
H6 = "h6"
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
interface HeaderConfig {
|
|
429
|
+
tag?: HeaderTag;
|
|
430
|
+
class?: string;
|
|
431
|
+
text?: string;
|
|
432
|
+
icon?: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare enum TableRowType {
|
|
436
|
+
Auto = 0,
|
|
437
|
+
PreferItem = 1,
|
|
438
|
+
PreferCustomItem = 2,
|
|
439
|
+
PreferColumns = 3
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
type ValidTableRowTypeValue = TableRowType | ((...args: any[]) => TableRowType) | undefined;
|
|
443
|
+
|
|
444
|
+
type ValidDrag = boolean | ((item: LktObject) => boolean);
|
|
445
|
+
|
|
446
|
+
interface DragConfig {
|
|
447
|
+
enabled: boolean;
|
|
448
|
+
isDraggable?: ValidDrag;
|
|
449
|
+
isValid?: ValidDrag;
|
|
450
|
+
isDisabled?: boolean | Function;
|
|
451
|
+
canRender?: boolean | Function;
|
|
452
|
+
dragKey?: string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
type ValidDragConfig = DragConfig | undefined;
|
|
456
|
+
|
|
457
|
+
declare enum PaginatorType {
|
|
458
|
+
Pages = "pages",
|
|
459
|
+
PrevNext = "prev-next",
|
|
460
|
+
PagesPrevNext = "pages-prev-next",
|
|
461
|
+
PagesPrevNextFirstLast = "pages-prev-next-first-last",
|
|
462
|
+
LoadMore = "load-more",
|
|
463
|
+
Infinite = "infinite"
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
interface PaginatorConfig {
|
|
467
|
+
type?: PaginatorType;
|
|
468
|
+
modelValue?: number;
|
|
469
|
+
class?: string;
|
|
470
|
+
resource?: string;
|
|
471
|
+
resourceData?: LktObject;
|
|
472
|
+
readOnly?: boolean;
|
|
473
|
+
loading?: boolean;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
type ValidPaginatorConfig = PaginatorConfig | undefined;
|
|
477
|
+
|
|
478
|
+
interface CarouselConfig {
|
|
479
|
+
currentSlide?: number;
|
|
480
|
+
itemsToShow?: number;
|
|
481
|
+
itemsToScroll?: number;
|
|
482
|
+
autoplay?: number;
|
|
483
|
+
infinite?: boolean;
|
|
484
|
+
mouseDrag?: boolean;
|
|
485
|
+
touchDrag?: boolean;
|
|
486
|
+
pauseAutoplayOnHover?: boolean;
|
|
487
|
+
dir?: 'ltr' | 'rtl';
|
|
488
|
+
snapAlign?: 'start' | 'end' | 'center' | 'center-odd' | 'center-even';
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare enum ColumnType {
|
|
492
|
+
None = "",
|
|
493
|
+
Field = "field",
|
|
494
|
+
Button = "button",
|
|
495
|
+
Anchor = "anchor"
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
type ValidColSpan = Function | boolean | number | undefined;
|
|
499
|
+
|
|
500
|
+
interface ColumnConfig {
|
|
501
|
+
type: ColumnType;
|
|
502
|
+
key: string;
|
|
503
|
+
label?: string;
|
|
504
|
+
sortable?: boolean;
|
|
505
|
+
hidden?: boolean;
|
|
506
|
+
editable?: boolean;
|
|
507
|
+
formatter?: Function | undefined;
|
|
508
|
+
checkEmpty?: Function | undefined;
|
|
509
|
+
colspan?: ValidColSpan;
|
|
510
|
+
preferSlot?: Function | boolean;
|
|
511
|
+
isForRowKey?: boolean;
|
|
512
|
+
extractTitleFromColumn?: string;
|
|
513
|
+
slotData?: LktObject;
|
|
514
|
+
field?: FieldConfig | undefined;
|
|
515
|
+
anchor?: AnchorConfig | undefined;
|
|
516
|
+
button?: ButtonConfig | undefined;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
interface TableConfig {
|
|
520
|
+
modelValue?: LktObject[];
|
|
521
|
+
type?: TableType;
|
|
522
|
+
columns?: Array<ColumnConfig>;
|
|
523
|
+
noResultsText?: string;
|
|
524
|
+
hideEmptyColumns?: boolean;
|
|
525
|
+
hideTableHeader?: boolean;
|
|
526
|
+
itemDisplayChecker?: Function;
|
|
527
|
+
rowDisplayType?: ValidTableRowTypeValue;
|
|
528
|
+
slotItemVar?: string;
|
|
529
|
+
loading?: boolean;
|
|
530
|
+
page?: number;
|
|
531
|
+
perms?: ValidTablePermission[];
|
|
532
|
+
editMode?: boolean;
|
|
533
|
+
dataStateConfig?: LktObject;
|
|
534
|
+
sortable?: boolean;
|
|
535
|
+
sorter?: Function;
|
|
536
|
+
initialSorting?: boolean;
|
|
537
|
+
drag?: ValidDragConfig;
|
|
538
|
+
paginator?: ValidPaginatorConfig;
|
|
539
|
+
carousel?: CarouselConfig;
|
|
540
|
+
header?: HeaderConfig;
|
|
541
|
+
title?: string;
|
|
542
|
+
titleTag?: string;
|
|
543
|
+
titleIcon?: string;
|
|
544
|
+
headerClass?: string;
|
|
545
|
+
editModeButton?: ButtonConfig;
|
|
546
|
+
saveButton?: ButtonConfig;
|
|
547
|
+
createButton?: ButtonConfig;
|
|
548
|
+
dropButton?: ButtonConfig;
|
|
549
|
+
editButton?: ButtonConfig;
|
|
550
|
+
hiddenSave?: boolean;
|
|
551
|
+
groupButton?: ButtonConfig | boolean;
|
|
552
|
+
requiredItemsForTopCreate?: number;
|
|
553
|
+
requiredItemsForBottomCreate?: number;
|
|
554
|
+
addNavigation?: boolean;
|
|
555
|
+
newValueGenerator?: Function;
|
|
556
|
+
wrapContentTag?: string;
|
|
557
|
+
wrapContentClass?: string;
|
|
558
|
+
itemsContainerClass?: string;
|
|
559
|
+
itemContainerClass?: string | Function;
|
|
560
|
+
createEnabledValidator?: Function;
|
|
561
|
+
}
|
|
562
|
+
|
|
376
563
|
interface FileBrowserConfig {
|
|
377
564
|
http?: HttpCallConfig;
|
|
378
565
|
entityCreateButton?: ButtonConfig;
|
|
379
566
|
entityUpdateButton?: ButtonConfig;
|
|
380
567
|
entityDropButton?: ButtonConfig;
|
|
568
|
+
listConfig?: TableConfig;
|
|
381
569
|
}
|
|
382
570
|
|
|
383
571
|
interface FieldConfig {
|
|
@@ -604,25 +792,6 @@ interface AccordionConfig {
|
|
|
604
792
|
toggleIconAtEnd?: boolean;
|
|
605
793
|
}
|
|
606
794
|
|
|
607
|
-
declare enum IconType {
|
|
608
|
-
NotDefined = "",
|
|
609
|
-
Button = "button"
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
declare enum IconPosition {
|
|
613
|
-
Start = "start",
|
|
614
|
-
End = "end"
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
interface IconConfig {
|
|
618
|
-
icon?: ValidTextValue;
|
|
619
|
-
text?: ValidTextValue;
|
|
620
|
-
class?: ValidTextValue;
|
|
621
|
-
type?: IconType;
|
|
622
|
-
position?: IconPosition;
|
|
623
|
-
events?: EventsConfig | undefined;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
795
|
interface BoxConfig {
|
|
627
796
|
title?: string;
|
|
628
797
|
iconAtEnd?: boolean;
|
|
@@ -631,34 +800,6 @@ interface BoxConfig {
|
|
|
631
800
|
icon?: IconConfig | string;
|
|
632
801
|
}
|
|
633
802
|
|
|
634
|
-
declare enum ColumnType {
|
|
635
|
-
None = "",
|
|
636
|
-
Field = "field",
|
|
637
|
-
Button = "button",
|
|
638
|
-
Anchor = "anchor"
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
type ValidColSpan = Function | boolean | number | undefined;
|
|
642
|
-
|
|
643
|
-
interface ColumnConfig {
|
|
644
|
-
type: ColumnType;
|
|
645
|
-
key: string;
|
|
646
|
-
label?: string;
|
|
647
|
-
sortable?: boolean;
|
|
648
|
-
hidden?: boolean;
|
|
649
|
-
editable?: boolean;
|
|
650
|
-
formatter?: Function | undefined;
|
|
651
|
-
checkEmpty?: Function | undefined;
|
|
652
|
-
colspan?: ValidColSpan;
|
|
653
|
-
preferSlot?: Function | boolean;
|
|
654
|
-
isForRowKey?: boolean;
|
|
655
|
-
extractTitleFromColumn?: string;
|
|
656
|
-
slotData?: LktObject;
|
|
657
|
-
field?: FieldConfig | undefined;
|
|
658
|
-
anchor?: AnchorConfig | undefined;
|
|
659
|
-
button?: ButtonConfig | undefined;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
803
|
declare enum DocPageSize {
|
|
663
804
|
A0 = "a0",
|
|
664
805
|
A1 = "a1",
|
|
@@ -682,17 +823,6 @@ interface DocPageConfig {
|
|
|
682
823
|
icon?: string;
|
|
683
824
|
}
|
|
684
825
|
|
|
685
|
-
type ValidDrag = boolean | ((item: LktObject) => boolean);
|
|
686
|
-
|
|
687
|
-
interface DragConfig {
|
|
688
|
-
enabled: boolean;
|
|
689
|
-
isDraggable?: ValidDrag;
|
|
690
|
-
isValid?: ValidDrag;
|
|
691
|
-
isDisabled?: boolean | Function;
|
|
692
|
-
canRender?: boolean | Function;
|
|
693
|
-
dragKey?: string;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
826
|
interface MultiLangValue {
|
|
697
827
|
en?: string;
|
|
698
828
|
es?: string;
|
|
@@ -726,6 +856,7 @@ interface FileEntityConfig {
|
|
|
726
856
|
name: string;
|
|
727
857
|
src: string;
|
|
728
858
|
children?: FileEntityConfig[];
|
|
859
|
+
parent?: number | string | undefined;
|
|
729
860
|
}
|
|
730
861
|
|
|
731
862
|
interface FormFieldConfig {
|
|
@@ -739,22 +870,6 @@ interface PolymorphicElementConfig {
|
|
|
739
870
|
props: LktObject;
|
|
740
871
|
}
|
|
741
872
|
|
|
742
|
-
declare enum HeaderTag {
|
|
743
|
-
H1 = "h1",
|
|
744
|
-
H2 = "h2",
|
|
745
|
-
H3 = "h3",
|
|
746
|
-
H4 = "h4",
|
|
747
|
-
H5 = "h5",
|
|
748
|
-
H6 = "h6"
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
interface HeaderConfig {
|
|
752
|
-
tag?: HeaderTag;
|
|
753
|
-
class?: string;
|
|
754
|
-
text?: string;
|
|
755
|
-
icon?: string;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
873
|
interface FormConfig {
|
|
759
874
|
modelValue: LktObject;
|
|
760
875
|
fields: Array<FormFieldConfig>;
|
|
@@ -809,21 +924,6 @@ declare enum NotificationType {
|
|
|
809
924
|
Inline = "inline"
|
|
810
925
|
}
|
|
811
926
|
|
|
812
|
-
declare enum TablePermission {
|
|
813
|
-
Create = "create",
|
|
814
|
-
Update = "update",// Save changes
|
|
815
|
-
Edit = "edit",// Displays edit button
|
|
816
|
-
Drop = "drop",// Displays drop button
|
|
817
|
-
Sort = "sort",// Sort
|
|
818
|
-
SwitchEditMode = "switch-edit-mode",
|
|
819
|
-
InlineEdit = "inline-edit",// Be able to edit columns inside the table
|
|
820
|
-
InlineCreate = "inline-create",// Be able to append a new editable row (needs InlineEdit in order to be editable)
|
|
821
|
-
ModalCreate = "modal-create",// Be able to append a new row after save a modal form
|
|
822
|
-
InlineCreateEver = "inline-create-ever"
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
type ValidTablePermission = TablePermission | string;
|
|
826
|
-
|
|
827
927
|
interface ItemCrudConfig {
|
|
828
928
|
modelValue?: LktObject;
|
|
829
929
|
editing?: boolean;
|
|
@@ -879,25 +979,6 @@ interface MenuConfig {
|
|
|
879
979
|
http?: HttpCallConfig;
|
|
880
980
|
}
|
|
881
981
|
|
|
882
|
-
declare enum PaginatorType {
|
|
883
|
-
Pages = "pages",
|
|
884
|
-
PrevNext = "prev-next",
|
|
885
|
-
PagesPrevNext = "pages-prev-next",
|
|
886
|
-
PagesPrevNextFirstLast = "pages-prev-next-first-last",
|
|
887
|
-
LoadMore = "load-more",
|
|
888
|
-
Infinite = "infinite"
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
interface PaginatorConfig {
|
|
892
|
-
type?: PaginatorType;
|
|
893
|
-
modelValue?: number;
|
|
894
|
-
class?: string;
|
|
895
|
-
resource?: string;
|
|
896
|
-
resourceData?: LktObject;
|
|
897
|
-
readOnly?: boolean;
|
|
898
|
-
loading?: boolean;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
982
|
declare enum ProgressType {
|
|
902
983
|
None = "",
|
|
903
984
|
Incremental = "incremental",
|
|
@@ -922,84 +1003,6 @@ interface ProgressConfig {
|
|
|
922
1003
|
palette?: string;
|
|
923
1004
|
}
|
|
924
1005
|
|
|
925
|
-
declare enum TableType {
|
|
926
|
-
Table = "table",
|
|
927
|
-
Item = "item",
|
|
928
|
-
Ul = "ul",
|
|
929
|
-
Ol = "ol",
|
|
930
|
-
Carousel = "carousel"
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
declare enum TableRowType {
|
|
934
|
-
Auto = 0,
|
|
935
|
-
PreferItem = 1,
|
|
936
|
-
PreferCustomItem = 2,
|
|
937
|
-
PreferColumns = 3
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
type ValidTableRowTypeValue = TableRowType | ((...args: any[]) => TableRowType) | undefined;
|
|
941
|
-
|
|
942
|
-
type ValidDragConfig = DragConfig | undefined;
|
|
943
|
-
|
|
944
|
-
type ValidPaginatorConfig = PaginatorConfig | undefined;
|
|
945
|
-
|
|
946
|
-
interface CarouselConfig {
|
|
947
|
-
currentSlide?: number;
|
|
948
|
-
itemsToShow?: number;
|
|
949
|
-
itemsToScroll?: number;
|
|
950
|
-
autoplay?: number;
|
|
951
|
-
infinite?: boolean;
|
|
952
|
-
mouseDrag?: boolean;
|
|
953
|
-
touchDrag?: boolean;
|
|
954
|
-
pauseAutoplayOnHover?: boolean;
|
|
955
|
-
dir?: 'ltr' | 'rtl';
|
|
956
|
-
snapAlign?: 'start' | 'end' | 'center' | 'center-odd' | 'center-even';
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
interface TableConfig {
|
|
960
|
-
modelValue?: LktObject[];
|
|
961
|
-
type?: TableType;
|
|
962
|
-
columns?: Array<ColumnConfig>;
|
|
963
|
-
noResultsText?: string;
|
|
964
|
-
hideEmptyColumns?: boolean;
|
|
965
|
-
hideTableHeader?: boolean;
|
|
966
|
-
itemDisplayChecker?: Function;
|
|
967
|
-
rowDisplayType?: ValidTableRowTypeValue;
|
|
968
|
-
slotItemVar?: string;
|
|
969
|
-
loading?: boolean;
|
|
970
|
-
page?: number;
|
|
971
|
-
perms?: ValidTablePermission[];
|
|
972
|
-
editMode?: boolean;
|
|
973
|
-
dataStateConfig?: LktObject;
|
|
974
|
-
sortable?: boolean;
|
|
975
|
-
sorter?: Function;
|
|
976
|
-
initialSorting?: boolean;
|
|
977
|
-
drag?: ValidDragConfig;
|
|
978
|
-
paginator?: ValidPaginatorConfig;
|
|
979
|
-
carousel?: CarouselConfig;
|
|
980
|
-
header?: HeaderConfig;
|
|
981
|
-
title?: string;
|
|
982
|
-
titleTag?: string;
|
|
983
|
-
titleIcon?: string;
|
|
984
|
-
headerClass?: string;
|
|
985
|
-
editModeButton?: ButtonConfig;
|
|
986
|
-
saveButton?: ButtonConfig;
|
|
987
|
-
createButton?: ButtonConfig;
|
|
988
|
-
dropButton?: ButtonConfig;
|
|
989
|
-
editButton?: ButtonConfig;
|
|
990
|
-
hiddenSave?: boolean;
|
|
991
|
-
groupButton?: ButtonConfig | boolean;
|
|
992
|
-
requiredItemsForTopCreate?: number;
|
|
993
|
-
requiredItemsForBottomCreate?: number;
|
|
994
|
-
addNavigation?: boolean;
|
|
995
|
-
newValueGenerator?: Function;
|
|
996
|
-
wrapContentTag?: string;
|
|
997
|
-
wrapContentClass?: string;
|
|
998
|
-
itemsContainerClass?: string;
|
|
999
|
-
itemContainerClass?: string | Function;
|
|
1000
|
-
createEnabledValidator?: Function;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
1006
|
interface TabsConfig {
|
|
1004
1007
|
modelValue: string | number;
|
|
1005
1008
|
id?: string;
|
|
@@ -1127,6 +1130,7 @@ declare class Anchor extends LktItem implements AnchorConfig {
|
|
|
1127
1130
|
imposter: boolean;
|
|
1128
1131
|
external: boolean;
|
|
1129
1132
|
text?: ValidTextValue;
|
|
1133
|
+
icon?: IconConfig | string;
|
|
1130
1134
|
events?: EventsConfig | undefined;
|
|
1131
1135
|
getHref(): string;
|
|
1132
1136
|
constructor(data?: Partial<AnchorConfig>);
|
|
@@ -1354,8 +1358,9 @@ declare class FileEntity extends LktItem implements FileEntityConfig {
|
|
|
1354
1358
|
type: FileEntityType;
|
|
1355
1359
|
name: string;
|
|
1356
1360
|
src: string;
|
|
1357
|
-
children
|
|
1361
|
+
children: FileEntity[];
|
|
1358
1362
|
isPicked: boolean;
|
|
1363
|
+
parent?: number | string | undefined;
|
|
1359
1364
|
constructor(data?: Partial<FileEntityConfig>);
|
|
1360
1365
|
}
|
|
1361
1366
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Y=(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))(Y||{});var u=(e,t)=>typeof e>"u"||!e?t:{...t,...e},b=(e,t)=>typeof e>"u"?t:{...t,...e};var x=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=u(t,e.defaultSaveButton),e}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(t,o=!0){return o?e.defaultConfirmButton=t:e.defaultConfirmButton=u(t,e.defaultConfirmButton),e}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(t,o=!0){return o?e.defaultCancelButton=t:e.defaultCancelButton=u(t,e.defaultCancelButton),e}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(t,o=!0){return o?e.defaultCreateButton=t:e.defaultCreateButton=u(t,e.defaultCreateButton),e}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(t,o=!0){return o?e.defaultUpdateButton=t:e.defaultUpdateButton=u(t,e.defaultUpdateButton),e}static defaultDropButton={text:"Drop"};static setDefaultDropButton(t,o=!0){return o?e.defaultDropButton=t:e.defaultDropButton=u(t,e.defaultDropButton),e}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(t,o=!0){return o?e.defaultEditModeButton=t:e.defaultEditModeButton=u(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=u(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=u(t,e.defaultToggleButton),e}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(t,o=!0){return o?e.defaultLoadMoreButton=t:e.defaultLoadMoreButton=u(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=u(t,e.defaultPaginatorFirstButton),e}static setDefaultPaginatorPrevButton(t,o=!0){return o?e.defaultPaginatorPrevButton=t:e.defaultPaginatorPrevButton=u(t,e.defaultPaginatorPrevButton),e}static setDefaultPaginatorNextButton(t,o=!0){return o?e.defaultPaginatorNextButton=t:e.defaultPaginatorNextButton=u(t,e.defaultPaginatorNextButton),e}static setDefaultPaginatorLastButton(t,o=!0){return o?e.defaultPaginatorLastButton=t:e.defaultPaginatorLastButton=u(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=b(t,e.defaultFieldLktAccordionElementCustomClassField),e}static setDefaultFieldLktBoxElementCustomClassField(t,o=!0){return o?e.defaultFieldLktBoxElementCustomClassField=t:e.defaultFieldLktBoxElementCustomClassField=b(t,e.defaultFieldLktBoxElementCustomClassField),e}static setDefaultFieldLktIconElementCustomClassField(t,o=!0){return o?e.defaultFieldLktIconElementCustomClassField=t:e.defaultFieldLktIconElementCustomClassField=b(t,e.defaultFieldLktIconElementCustomClassField),e}static setDefaultFieldLktImageElementCustomClassField(t,o=!0){return o?e.defaultFieldLktImageElementCustomClassField=t:e.defaultFieldLktImageElementCustomClassField=b(t,e.defaultFieldLktImageElementCustomClassField),e}static i18nOptionsFormatter={};static setI18nOptionsFormatter(t,o){return e.i18nOptionsFormatter[t]=o,e}};var J=(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.File="file",s.Image="image",s.Select="select",s.Check="check",s.Switch="switch",s.Calc="calc",s.Card="card",s.Elements="elements",s))(J||{});var Nt=["text","search","select"],Ht=["switch","check"],Wt=["switch","check"],Rt=["text","search"],Kt=["switch","check"],zt=["select","color","card"],qt=["text","email","password"];var Gt=["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,i]of Object.entries(t))o.assignProp(r,i)}assignProp(t,o){if(!(Gt.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 h=class extends a{lktStrictItem=!0};var L=class e extends h{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),i=parseInt(+("0x"+t.substring(5,7)),10),n=255;return t.length===9&&(n=parseInt(+("0x"+t.substring(5,7)),10)),new e({r:o,g:r,b:i,a:n})}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(),i="#"+t+o+r;if(this.a==255)return i;let n=parseInt(this.a).toString(16).padStart(2,"0").toUpperCase();return i+n}getContrastFontColor(){return(.299*this.r+.587*this.g+.114*this.b)/this.a>.5?"#000000":"#ffffff"}};var Z=(i=>(i.Auto="auto",i.Always="always",i.Lazy="lazy",i.Ever="ever",i))(Z||{});var _=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(_||{});var I=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 tt=(g=>(g.Href="href",g.RouterLink="router-link",g.RouterLinkBack="router-link-back",g.Mail="mail",g.Tel="tel",g.Tab="tab",g.Download="download",g.Action="action",g.Legacy="",g))(tt||{});var B=e=>{let t="";if(typeof e.to=="string"&&(t=e.to),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 M=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","to","class","isActive","downloadFileName","disabled","onClick","confirmModal","confirmModalKey","confirmData","imposter","external","events","text"];type="router-link";to="";class="";isActive=!1;downloadFileName="";disabled=!1;onClick=void 0;confirmModal="";confirmModalKey="_";confirmData={};imposter=!1;external=!1;text;events={};getHref(){return B(this)}constructor(t={}){super(),this.feed(t)}};var E=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","icon"];title="";iconAtEnd=!1;style="";class="";icon="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as $t}from"lkt-string-tools";var V=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","prop","events"];type="button";name=$t(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="";tooltip={};prop={};events={};constructor(t={}){super(),this.feed(t)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var et=(i=>(i.None="",i.Field="field",i.Button="button",i.Anchor="anchor",i))(et||{});var k=class extends a{lktExcludedProps=["field","anchor","button"];lktAllowUndefinedProps=["formatter","checkEmpty","colspan","field","anchor","button"];static lktDefaultValues=["type","key","label","sortable","hidden","editable","formatter","checkEmpty","colspan","preferSlot","isForRowKey","extractTitleFromColumn","slotData","field","anchor","button"];type="";key="";label="";sortable=!0;hidden=!1;editable=!1;formatter=void 0;checkEmpty=void 0;colspan=void 0;preferSlot=!0;isForRowKey=!1;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(t={}){super(),this.feed(t)}};var ot=(l=>(l.A0="a0",l.A1="a1",l.A2="a2",l.A3="a3",l.A4="a4",l.A5="a5",l.A6="a6",l.A7="a7",l.A8="a8",l.A9="a9",l))(ot||{});var D=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)}};import{generateRandomString as Xt}from"lkt-string-tools";var rt=(r=>(r.List="list",r.Inline="inline",r.Count="count",r))(rt||{});var S=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"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Xt(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;allowReadModeSwitch=!1;readModeConfig;prop={};optionValueType="value";optionsConfig={};fileUploadHttp={};fileUploadButton={};tooltipConfig={};fileBrowserConfig={};constructor(t={}){super(),this.feed(t)}};var at=(f=>(f.MinStringLength="min-str",f.MinNumber="min-num",f.MaxStringLength="max-str",f.MaxNumber="max-num",f.Email="email",f.Empty="empty",f.EqualTo="equal-to",f.MinNumbers="min-numbers",f.MaxNumbers="max-numbers",f.MinChars="min-chars",f.MaxChars="max-chars",f.MinUpperChars="min-upper-chars",f.MaxUpperChars="max-upper-chars",f.MinLowerChars="min-lower-chars",f.MaxLowerChars="max-lower-chars",f.MinSpecialChars="min-special-chars",f.MaxSpecialChars="max-special-chars",f))(at||{});var it=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(it||{});var v=class e{code=void 0;status="info";min=0;max=0;equalToValue=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}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)}};var nt=(n=>(n.StorageUnit="unit",n.Directory="dir",n.Image="img",n.Video="vid",n.File="file",n))(nt||{});var T=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["id","type","name","src","children"];id=void 0;type="img";name="";src="";children=[];isPicked=!1;constructor(t={}){super(),this.feed(t)}};var lt=(m=>(m.H1="h1",m.H2="h2",m.H3="h3",m.H4="h4",m.H5="h5",m.H6="h6",m))(lt||{});var O=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon"];tag="h2";class="";text="";icon="";constructor(t={}){super(),this.feed(t)}};var st=(o=>(o.NotDefined="",o.Button="button",o))(st||{});var ft=(o=>(o.Start="start",o.End="end",o))(ft||{});var F=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 w=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 ut=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(ut||{});var dt=(o=>(o.Inline="inline",o.Modal="modal",o))(dt||{});var mt=(o=>(o.Top="top",o.Bottom="bottom",o))(mt||{});var ct=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(ct||{});var pt=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(pt||{});var gt=(o=>(o.Toast="toast",o.Inline="inline",o))(gt||{});var A=class extends a{static lktDefaultValues=["modelValue","editing","perms","mode","view","editModeButton","dropButton","createButton","updateButton","groupButton","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType"];modelValue={};editing=!1;perms=[];mode="read";view="inline";editModeButton={};dropButton={};createButton={};updateButton={};groupButton=!1;modalConfig={};saveConfig={type:"manual"};title="";readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";constructor(t={}){super(),this.feed(t)}};var P=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(t={}){super(),this.feed(t)}};var U=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var Ct=(r=>(r.Anchor="anchor",r.Button="button",r.Entry="entry",r))(Ct||{});var j=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events"];key="";type="anchor";class="";icon="";anchor={};button={};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 N=class extends a{static lktDefaultValues=["size","preTitle","preTitleIcon","title","closeIcon","closeConfirm","closeConfirmKey","showClose","disabledClose","disabledVeilClick","hiddenFooter","modalName","modalKey","zIndex","beforeClose","item","type"];size="";preTitle="";preTitleIcon="";title="";closeIcon=x.defaultCloseModalIcon;closeConfirm="";closeConfirmKey="_";showClose=!0;disabledClose=!1;disabledVeilClick=!1;hiddenFooter=!1;modalName="";modalKey="_";zIndex=500;beforeClose=void 0;item={};confirmButton={};cancelButton={};type="modal";constructor(t={}){super(),this.feed(t)}};var H=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var bt=(m=>(m.Pages="pages",m.PrevNext="prev-next",m.PagesPrevNext="pages-prev-next",m.PagesPrevNextFirstLast="pages-prev-next-first-last",m.LoadMore="load-more",m.Infinite="infinite",m))(bt||{});var W=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};constructor(t={}){super(),this.feed(t)}};var ht=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(ht||{});var kt=(n=>(n.NotDefined="",n.Hidden="hidden",n.Integer="integer",n.Decimal="decimal",n.Auto="auto",n))(kt||{});var R=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["modelValue","type","duration","pauseOnHover","header","valueFormat","palette"];modelValue=0;type="";duration=4e3;pauseOnHover=!1;header="";valueFormat="auto";palette="";constructor(t={}){super(),this.feed(t)}};var yt=(n=>(n.Table="table",n.Item="item",n.Ul="ul",n.Ol="ol",n.Carousel="carousel",n))(yt||{});var Lt=(i=>(i[i.Auto=0]="Auto",i[i.PreferItem=1]="PreferItem",i[i.PreferCustomItem=2]="PreferCustomItem",i[i.PreferColumns=3]="PreferColumns",i))(Lt||{});var K=class extends a{static lktDefaultValues=["modelValue","type","columns","noResultsText","hideEmptyColumns","itemDisplayChecker","loading","page","perms","editMode","dataStateConfig","sortable","sorter","initialSorting","drag","paginator","header","title","titleTag","titleIcon","headerClass","editModeButton","saveButton","createButton","dropButton","editButton","groupButton","wrapContentTag","wrapContentClass","itemsContainerClass","itemContainerClass","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","hideTableHeader"];modelValue=[];type="table";columns=[];noResultsText="";hideTableHeader=!1;hideEmptyColumns=!1;itemDisplayChecker=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={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};dropButton={};editButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";constructor(t={}){super(),this.feed(t)}};var z=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 It=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(It||{});var q=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 Bt=(o=>(o.Message="message",o.Button="button",o))(Bt||{});var Mt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Mt||{});var G=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 Et=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(Et||{});var Vt=(i=>(i.Top="top",i.Bottom="bottom",i.Center="center",i.ReferrerCenter="referrer-center",i))(Vt||{});var Dt=(n=>(n.Left="left",n.Right="right",n.Center="center",n.LeftCorner="left-corner",n.RightCorner="right-corner",n))(Dt||{});var $=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","class","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay"];modelValue=!1;alwaysOpen=!1;class="";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;constructor(t={}){super(),this.feed(t)}};var St=(c=>(c.LktAnchor="lkt-anchor",c.LktLayoutAccordion="lkt-layout-accordion",c.LktTextAccordion="lkt-text-accordion",c.LktLayoutBox="lkt-layout-box",c.LktTextBox="lkt-text-box",c.LktButton="lkt-button",c.LktLayout="lkt-layout",c.LktHeader="lkt-header",c.LktIcon="lkt-icon",c.LktImage="lkt-image",c.LktText="lkt-text",c))(St||{});var vt=(i=>(i.Grid="grid",i.FlexRow="flex-row",i.FlexRows="flex-rows",i.FlexColumn="flex-column",i))(vt||{});var X=class extends a{static lktDefaultValues=["id","type","component","props","children","layout","config"];id=0;type="lkt-text";component="";props={class:"",icon:"",header:{},text:{}};children=[];layout={type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]};config={hasHeader:!0,hasIcon:!0};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=[])}};var Tt=(i=>(i.None="",i.Focus="focus",i.Blur="blur",i.Always="always",i))(Tt||{});var Ot=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(Ot||{});var Ft=(n=>(n.Refresh="refresh",n.Close="close",n.ReOpen="reOpen",n.Exec="exec",n.Open="open",n))(Ft||{});var wt=(o=>(o.Asc="asc",o.Desc="desc",o))(wt||{});var At=(l=>(l.Create="create",l.Update="update",l.Edit="edit",l.Drop="drop",l.Sort="sort",l.SwitchEditMode="switch-edit-mode",l.InlineEdit="inline-edit",l.InlineCreate="inline-create",l.ModalCreate="modal-create",l.InlineCreateEver="inline-create-ever",l))(At||{});var Pt=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Pt||{});var Q=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:""}};import{__ as Qt}from"lkt-i18n";var Ut=(e,t)=>typeof e=="string"&&e.startsWith("prop:")?t[e.substring(5)]:e,Yt=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Qt(t.substring(3)):t}return e},Jt=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=Ut(e[r],t);return o};import{getAvailableLanguages as p}from"lkt-i18n";var y=(e="Time to create")=>{let t={};return p().forEach(r=>{t[r]=e}),{id:0,type:"lkt-text",props:{text:t},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}}},Zt=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-anchor",props:{text:e},config:{hasHeader:!0,hasIcon:!0}}},_t=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-button",props:{text:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}}},te=()=>({id:0,type:"lkt-layout",props:{},config:{},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),ee=()=>{let e={},t={};return p().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),{id:0,type:"lkt-text-box",props:{header:e,text:t},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}}},oe=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{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:[]}}},re=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{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:[]}}},ae=()=>{let e={},t={};return p().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),{id:0,type:"lkt-text-accordion",props:{header:e,text:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}}},ie=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-header",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}},ne=()=>{let e={};return p().forEach(o=>{e[o]="Content goes here"}),{id:0,type:"lkt-icon",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}},le=()=>{let e={};return p().forEach(o=>{e[o]="Image description goes here"}),{id:0,type:"lkt-image",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}};var se=(e,...t)=>{x.debugEnabled&&console.info("::lkt::",`[${e}] `,...t)};var C=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 i=e.getInstanceIndex(t);return t={...r.config,...t,zIndex:e.zIndex},{componentProps:o,modalConfig:t,modalRegister:r,index:i,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 i=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)),i){++e.zIndex;let n=this.getModalInfo(t,o,i);return n.legacy=r,e.components[n.index]?e.focus(n):(e.components[n.index]=n,e.canvas?.refresh(),e.components[n.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()}}};var fe=e=>{C.addModal(e)},ue=(e,t)=>{C.open(e,t),C.canvas?.refresh()},de=e=>{C.close(e),C.canvas?.refresh()};var me=e=>new k(e);var jt=(o=>(o.Quick="quick",o.Full="full",o))(jt||{});function Mr(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{I as Accordion,_ as AccordionToggleMode,Z as AccordionType,M as Anchor,tt as AnchorType,E as Box,V as Button,Y as ButtonType,k as Column,et as ColumnType,D as DocPage,ot as DocPageSize,S as Field,Tt as FieldAutoValidationTrigger,J as FieldType,v as FieldValidation,Ot as FieldValidationType,T as FileEntity,nt as FileEntityType,O as Header,lt as HeaderTag,F as Icon,ft as IconPosition,st as IconType,w as Image,A as ItemCrud,mt as ItemCrudButtonNavPosition,ct as ItemCrudButtonNavVisibility,ut as ItemCrudMode,dt as ItemCrudView,L as LktColor,a as LktItem,x as LktSettings,h as LktStrictItem,P as Login,U as Menu,j as MenuEntry,Ct as MenuEntryType,N as Modal,Ft as ModalCallbackAction,C as ModalController,jt as ModalRegisterType,xt as ModalType,rt as MultipleOptionsDisplay,gt as NotificationType,H as Option,W as Paginator,bt as PaginatorType,R as Progress,ht as ProgressType,kt as ProgressValueFormat,Q as SafeString,pt as SaveType,wt as SortDirection,K as Table,At as TablePermission,Lt as TableRowType,yt as TableType,z as Tabs,q as Tag,It as TagType,G as Toast,Mt as ToastPositionX,Bt as ToastType,Pt as ToggleMode,$ as Tooltip,Dt as TooltipLocationX,Vt as TooltipLocationY,Et as TooltipPositionEngine,at as ValidationCode,it as ValidationStatus,X as WebElement,vt as WebElementLayoutType,St as WebElementType,fe as addModal,Kt as booleanFieldTypes,de as closeModal,me as createColumn,u as ensureButtonConfig,b as ensureFieldConfig,Yt as extractI18nValue,Ut as extractPropValue,Nt as fieldTypesWithOptions,Ht as fieldTypesWithoutClear,Wt as fieldTypesWithoutUndo,zt as fieldsWithMultipleMode,B as getAnchorHref,Zt as getDefaultLktAnchorWebElement,_t as getDefaultLktButtonWebElement,ie as getDefaultLktHeaderWebElement,ne as getDefaultLktIconWebElement,le as getDefaultLktImageWebElement,re as getDefaultLktLayoutAccordionWebElement,oe as getDefaultLktLayoutBoxWebElement,te as getDefaultLktLayoutWebElement,ae as getDefaultLktTextAccordionWebElement,ee as getDefaultLktTextBoxWebElement,y as getDefaultLktTextWebElement,Mr as getDefaultValues,se as lktDebug,ue as openModal,Jt as prepareResourceData,qt as textFieldTypes,Rt as textFieldTypesWithOptions};
|
|
1
|
+
var Y=(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))(Y||{});var u=(e,t)=>typeof e>"u"||!e?t:{...t,...e},b=(e,t)=>typeof e>"u"?t:{...t,...e};var x=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=u(t,e.defaultSaveButton),e}static defaultConfirmButton={text:"Confirm"};static setDefaultConfirmButton(t,o=!0){return o?e.defaultConfirmButton=t:e.defaultConfirmButton=u(t,e.defaultConfirmButton),e}static defaultCancelButton={text:"Cancel"};static setDefaultCancelButton(t,o=!0){return o?e.defaultCancelButton=t:e.defaultCancelButton=u(t,e.defaultCancelButton),e}static defaultCreateButton={text:"Create",icon:"lkt-icn-save"};static setDefaultCreateButton(t,o=!0){return o?e.defaultCreateButton=t:e.defaultCreateButton=u(t,e.defaultCreateButton),e}static defaultUpdateButton={text:"Update",icon:"lkt-icn-save"};static setDefaultUpdateButton(t,o=!0){return o?e.defaultUpdateButton=t:e.defaultUpdateButton=u(t,e.defaultUpdateButton),e}static defaultDropButton={text:"Drop"};static setDefaultDropButton(t,o=!0){return o?e.defaultDropButton=t:e.defaultDropButton=u(t,e.defaultDropButton),e}static defaultEditModeButton={text:"Edit mode",type:"switch"};static setDefaultEditModeButton(t,o=!0){return o?e.defaultEditModeButton=t:e.defaultEditModeButton=u(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=u(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=u(t,e.defaultToggleButton),e}static defaultLoadMoreButton={text:"Load more",type:"hidden-switch"};static setDefaultLoadMoreButton(t,o=!0){return o?e.defaultLoadMoreButton=t:e.defaultLoadMoreButton=u(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=u(t,e.defaultPaginatorFirstButton),e}static setDefaultPaginatorPrevButton(t,o=!0){return o?e.defaultPaginatorPrevButton=t:e.defaultPaginatorPrevButton=u(t,e.defaultPaginatorPrevButton),e}static setDefaultPaginatorNextButton(t,o=!0){return o?e.defaultPaginatorNextButton=t:e.defaultPaginatorNextButton=u(t,e.defaultPaginatorNextButton),e}static setDefaultPaginatorLastButton(t,o=!0){return o?e.defaultPaginatorLastButton=t:e.defaultPaginatorLastButton=u(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=b(t,e.defaultFieldLktAccordionElementCustomClassField),e}static setDefaultFieldLktBoxElementCustomClassField(t,o=!0){return o?e.defaultFieldLktBoxElementCustomClassField=t:e.defaultFieldLktBoxElementCustomClassField=b(t,e.defaultFieldLktBoxElementCustomClassField),e}static setDefaultFieldLktIconElementCustomClassField(t,o=!0){return o?e.defaultFieldLktIconElementCustomClassField=t:e.defaultFieldLktIconElementCustomClassField=b(t,e.defaultFieldLktIconElementCustomClassField),e}static setDefaultFieldLktImageElementCustomClassField(t,o=!0){return o?e.defaultFieldLktImageElementCustomClassField=t:e.defaultFieldLktImageElementCustomClassField=b(t,e.defaultFieldLktImageElementCustomClassField),e}static i18nOptionsFormatter={};static setI18nOptionsFormatter(t,o){return e.i18nOptionsFormatter[t]=o,e}};var J=(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.File="file",s.Image="image",s.Select="select",s.Check="check",s.Switch="switch",s.Calc="calc",s.Card="card",s.Elements="elements",s))(J||{});var Nt=["text","search","select"],Ht=["switch","check"],Wt=["switch","check"],Rt=["text","search"],Kt=["switch","check"],zt=["select","color","card"],qt=["text","email","password"];var Gt=["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,i]of Object.entries(t))o.assignProp(r,i)}assignProp(t,o){if(!(Gt.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 h=class extends a{lktStrictItem=!0};var L=class e extends h{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),i=parseInt(+("0x"+t.substring(5,7)),10),n=255;return t.length===9&&(n=parseInt(+("0x"+t.substring(5,7)),10)),new e({r:o,g:r,b:i,a:n})}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(),i="#"+t+o+r;if(this.a==255)return i;let n=parseInt(this.a).toString(16).padStart(2,"0").toUpperCase();return i+n}getContrastFontColor(){return(.299*this.r+.587*this.g+.114*this.b)/this.a>.5?"#000000":"#ffffff"}};var Z=(i=>(i.Auto="auto",i.Always="always",i.Lazy="lazy",i.Ever="ever",i))(Z||{});var _=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(_||{});var I=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 tt=(g=>(g.Href="href",g.RouterLink="router-link",g.RouterLinkBack="router-link-back",g.Mail="mail",g.Tel="tel",g.Tab="tab",g.Download="download",g.Action="action",g.Legacy="",g))(tt||{});var B=e=>{let t="";if(typeof e.to=="string"&&(t=e.to),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 M=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","to","class","isActive","downloadFileName","disabled","onClick","confirmModal","confirmModalKey","confirmData","imposter","external","events","text","icon"];type="router-link";to="";class="";isActive=!1;downloadFileName="";disabled=!1;onClick=void 0;confirmModal="";confirmModalKey="_";confirmData={};imposter=!1;external=!1;text="";icon="";events={};getHref(){return B(this)}constructor(t={}){super(),this.feed(t)}};var E=class extends a{static lktDefaultValues=["title","iconAtEnd","style","class","icon"];title="";iconAtEnd=!1;style="";class="";icon="";constructor(t={}){super(),this.feed(t)}};import{generateRandomString as $t}from"lkt-string-tools";var V=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","prop","events"];type="button";name=$t(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="";tooltip={};prop={};events={};constructor(t={}){super(),this.feed(t)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var et=(i=>(i.None="",i.Field="field",i.Button="button",i.Anchor="anchor",i))(et||{});var k=class extends a{lktExcludedProps=["field","anchor","button"];lktAllowUndefinedProps=["formatter","checkEmpty","colspan","field","anchor","button"];static lktDefaultValues=["type","key","label","sortable","hidden","editable","formatter","checkEmpty","colspan","preferSlot","isForRowKey","extractTitleFromColumn","slotData","field","anchor","button"];type="";key="";label="";sortable=!0;hidden=!1;editable=!1;formatter=void 0;checkEmpty=void 0;colspan=void 0;preferSlot=!0;isForRowKey=!1;extractTitleFromColumn="";slotData={};field=void 0;anchor=void 0;button=void 0;constructor(t={}){super(),this.feed(t)}};var ot=(l=>(l.A0="a0",l.A1="a1",l.A2="a2",l.A3="a3",l.A4="a4",l.A5="a5",l.A6="a6",l.A7="a7",l.A8="a8",l.A9="a9",l))(ot||{});var D=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)}};import{generateRandomString as Xt}from"lkt-string-tools";var rt=(r=>(r.List="list",r.Inline="inline",r.Count="count",r))(rt||{});var S=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"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Xt(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;allowReadModeSwitch=!1;readModeConfig;prop={};optionValueType="value";optionsConfig={};fileUploadHttp={};fileUploadButton={};tooltipConfig={};fileBrowserConfig={};constructor(t={}){super(),this.feed(t)}};var at=(f=>(f.MinStringLength="min-str",f.MinNumber="min-num",f.MaxStringLength="max-str",f.MaxNumber="max-num",f.Email="email",f.Empty="empty",f.EqualTo="equal-to",f.MinNumbers="min-numbers",f.MaxNumbers="max-numbers",f.MinChars="min-chars",f.MaxChars="max-chars",f.MinUpperChars="min-upper-chars",f.MaxUpperChars="max-upper-chars",f.MinLowerChars="min-lower-chars",f.MaxLowerChars="max-lower-chars",f.MinSpecialChars="min-special-chars",f.MaxSpecialChars="max-special-chars",f))(at||{});var it=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(it||{});var v=class e{code=void 0;status="info";min=0;max=0;equalToValue=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}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)}};var nt=(n=>(n.StorageUnit="unit",n.Directory="dir",n.Image="img",n.Video="vid",n.File="file",n))(nt||{});var T=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 lt=(m=>(m.H1="h1",m.H2="h2",m.H3="h3",m.H4="h4",m.H5="h5",m.H6="h6",m))(lt||{});var O=class extends a{static lktAllowUndefinedProps=["onClick"];static lktDefaultValues=["tag","class","text","icon"];tag="h2";class="";text="";icon="";constructor(t={}){super(),this.feed(t)}};var st=(o=>(o.NotDefined="",o.Button="button",o))(st||{});var ft=(o=>(o.Start="start",o.End="end",o))(ft||{});var F=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 w=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 ut=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(ut||{});var dt=(o=>(o.Inline="inline",o.Modal="modal",o))(dt||{});var mt=(o=>(o.Top="top",o.Bottom="bottom",o))(mt||{});var ct=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(ct||{});var pt=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(pt||{});var gt=(o=>(o.Toast="toast",o.Inline="inline",o))(gt||{});var A=class extends a{static lktDefaultValues=["modelValue","editing","perms","mode","view","editModeButton","dropButton","createButton","updateButton","groupButton","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType"];modelValue={};editing=!1;perms=[];mode="read";view="inline";editModeButton={};dropButton={};createButton={};updateButton={};groupButton=!1;modalConfig={};saveConfig={type:"manual"};title="";readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";constructor(t={}){super(),this.feed(t)}};var P=class extends a{static lktDefaultValues=["loginForm","singUpForm"];loginForm=void 0;singUpForm=void 0;constructor(t={}){super(),this.feed(t)}};var U=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var Ct=(r=>(r.Anchor="anchor",r.Button="button",r.Entry="entry",r))(Ct||{});var j=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events"];key="";type="anchor";class="";icon="";anchor={};button={};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 N=class extends a{static lktDefaultValues=["size","preTitle","preTitleIcon","title","closeIcon","closeConfirm","closeConfirmKey","showClose","disabledClose","disabledVeilClick","hiddenFooter","modalName","modalKey","zIndex","beforeClose","item","type"];size="";preTitle="";preTitleIcon="";title="";closeIcon=x.defaultCloseModalIcon;closeConfirm="";closeConfirmKey="_";showClose=!0;disabledClose=!1;disabledVeilClick=!1;hiddenFooter=!1;modalName="";modalKey="_";zIndex=500;beforeClose=void 0;item={};confirmButton={};cancelButton={};type="modal";constructor(t={}){super(),this.feed(t)}};var H=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var bt=(m=>(m.Pages="pages",m.PrevNext="prev-next",m.PagesPrevNext="pages-prev-next",m.PagesPrevNextFirstLast="pages-prev-next-first-last",m.LoadMore="load-more",m.Infinite="infinite",m))(bt||{});var W=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["type","modelValue","class","resource","readOnly","loading","resourceData"];type="pages-prev-next";modelValue=1;class="";resource="";readOnly=!1;loading=!1;resourceData={};constructor(t={}){super(),this.feed(t)}};var ht=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(ht||{});var kt=(n=>(n.NotDefined="",n.Hidden="hidden",n.Integer="integer",n.Decimal="decimal",n.Auto="auto",n))(kt||{});var R=class extends a{static lktAllowUndefinedProps=[];static lktDefaultValues=["modelValue","type","duration","pauseOnHover","header","valueFormat","palette"];modelValue=0;type="";duration=4e3;pauseOnHover=!1;header="";valueFormat="auto";palette="";constructor(t={}){super(),this.feed(t)}};var yt=(n=>(n.Table="table",n.Item="item",n.Ul="ul",n.Ol="ol",n.Carousel="carousel",n))(yt||{});var Lt=(i=>(i[i.Auto=0]="Auto",i[i.PreferItem=1]="PreferItem",i[i.PreferCustomItem=2]="PreferCustomItem",i[i.PreferColumns=3]="PreferColumns",i))(Lt||{});var K=class extends a{static lktDefaultValues=["modelValue","type","columns","noResultsText","hideEmptyColumns","itemDisplayChecker","loading","page","perms","editMode","dataStateConfig","sortable","sorter","initialSorting","drag","paginator","header","title","titleTag","titleIcon","headerClass","editModeButton","saveButton","createButton","dropButton","editButton","groupButton","wrapContentTag","wrapContentClass","itemsContainerClass","itemContainerClass","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel","hideTableHeader"];modelValue=[];type="table";columns=[];noResultsText="";hideTableHeader=!1;hideEmptyColumns=!1;itemDisplayChecker=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={};header;title="";titleTag="h2";titleIcon="";headerClass="";editModeButton={};saveButton={};createButton={};dropButton={};editButton={};hiddenSave=!1;groupButton=!1;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";itemContainerClass;addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";constructor(t={}){super(),this.feed(t)}};var z=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 It=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(It||{});var q=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 Bt=(o=>(o.Message="message",o.Button="button",o))(Bt||{});var Mt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Mt||{});var G=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 Et=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(Et||{});var Vt=(i=>(i.Top="top",i.Bottom="bottom",i.Center="center",i.ReferrerCenter="referrer-center",i))(Vt||{});var Dt=(n=>(n.Left="left",n.Right="right",n.Center="center",n.LeftCorner="left-corner",n.RightCorner="right-corner",n))(Dt||{});var $=class extends a{static lktDefaultValues=["modelValue","alwaysOpen","class","text","icon","iconAtEnd","engine","referrerWidth","referrerMargin","windowMargin","referrer","locationY","locationX","showOnReferrerHover","showOnReferrerHoverDelay","hideOnReferrerLeave","hideOnReferrerLeaveDelay"];modelValue=!1;alwaysOpen=!1;class="";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;constructor(t={}){super(),this.feed(t)}};var St=(c=>(c.LktAnchor="lkt-anchor",c.LktLayoutAccordion="lkt-layout-accordion",c.LktTextAccordion="lkt-text-accordion",c.LktLayoutBox="lkt-layout-box",c.LktTextBox="lkt-text-box",c.LktButton="lkt-button",c.LktLayout="lkt-layout",c.LktHeader="lkt-header",c.LktIcon="lkt-icon",c.LktImage="lkt-image",c.LktText="lkt-text",c))(St||{});var vt=(i=>(i.Grid="grid",i.FlexRow="flex-row",i.FlexRows="flex-rows",i.FlexColumn="flex-column",i))(vt||{});var X=class extends a{static lktDefaultValues=["id","type","component","props","children","layout","config"];id=0;type="lkt-text";component="";props={class:"",icon:"",header:{},text:{}};children=[];layout={type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]};config={hasHeader:!0,hasIcon:!0};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=[])}};var Tt=(i=>(i.None="",i.Focus="focus",i.Blur="blur",i.Always="always",i))(Tt||{});var Ot=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(Ot||{});var Ft=(n=>(n.Refresh="refresh",n.Close="close",n.ReOpen="reOpen",n.Exec="exec",n.Open="open",n))(Ft||{});var wt=(o=>(o.Asc="asc",o.Desc="desc",o))(wt||{});var At=(l=>(l.Create="create",l.Update="update",l.Edit="edit",l.Drop="drop",l.Sort="sort",l.SwitchEditMode="switch-edit-mode",l.InlineEdit="inline-edit",l.InlineCreate="inline-create",l.ModalCreate="modal-create",l.InlineCreateEver="inline-create-ever",l))(At||{});var Pt=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Pt||{});var Q=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:""}};import{__ as Qt}from"lkt-i18n";var Ut=(e,t)=>typeof e=="string"&&e.startsWith("prop:")?t[e.substring(5)]:e,Yt=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Qt(t.substring(3)):t}return e},Jt=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=Ut(e[r],t);return o};import{getAvailableLanguages as p}from"lkt-i18n";var y=(e="Time to create")=>{let t={};return p().forEach(r=>{t[r]=e}),{id:0,type:"lkt-text",props:{text:t},config:{},layout:{columns:[],alignSelf:[],justifySelf:[]}}},Zt=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-anchor",props:{text:e},config:{hasHeader:!0,hasIcon:!0}}},_t=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-button",props:{text:e},config:{hasHeader:!0,hasIcon:!0},children:[y("Button text")],layout:{columns:[],alignSelf:[],justifySelf:[]}}},te=()=>({id:0,type:"lkt-layout",props:{},config:{},children:[y("Content goes here")],layout:{type:"grid",amountOfItems:[],alignItems:[],justifyContent:[],columns:[],alignSelf:[],justifySelf:[]}}),ee=()=>{let e={},t={};return p().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),{id:0,type:"lkt-text-box",props:{header:e,text:t},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}}},oe=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{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:[]}}},re=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{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:[]}}},ae=()=>{let e={},t={};return p().forEach(r=>{e[r]="Title goes here",t[r]="Content goes here"}),{id:0,type:"lkt-text-accordion",props:{header:e,text:t,type:"auto"},config:{hasHeader:!0,hasIcon:!0},children:[],layout:{columns:[],alignSelf:[],justifySelf:[]}}},ie=()=>{let e={};return p().forEach(o=>{e[o]="Title goes here"}),{id:0,type:"lkt-header",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}},ne=()=>{let e={};return p().forEach(o=>{e[o]="Content goes here"}),{id:0,type:"lkt-icon",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}},le=()=>{let e={};return p().forEach(o=>{e[o]="Image description goes here"}),{id:0,type:"lkt-image",props:{text:e},config:{hasHeader:!0,hasIcon:!0},layout:{columns:[],alignSelf:[],justifySelf:[]}}};var se=(e,...t)=>{x.debugEnabled&&console.info("::lkt::",`[${e}] `,...t)};var C=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 i=e.getInstanceIndex(t);return t={...r.config,...t,zIndex:e.zIndex},{componentProps:o,modalConfig:t,modalRegister:r,index:i,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 i=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)),i){++e.zIndex;let n=this.getModalInfo(t,o,i);return n.legacy=r,e.components[n.index]?e.focus(n):(e.components[n.index]=n,e.canvas?.refresh(),e.components[n.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()}}};var fe=e=>{C.addModal(e)},ue=(e,t)=>{C.open(e,t),C.canvas?.refresh()},de=e=>{C.close(e),C.canvas?.refresh()};var me=e=>new k(e);var jt=(o=>(o.Quick="quick",o.Full="full",o))(jt||{});function Mr(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{I as Accordion,_ as AccordionToggleMode,Z as AccordionType,M as Anchor,tt as AnchorType,E as Box,V as Button,Y as ButtonType,k as Column,et as ColumnType,D as DocPage,ot as DocPageSize,S as Field,Tt as FieldAutoValidationTrigger,J as FieldType,v as FieldValidation,Ot as FieldValidationType,T as FileEntity,nt as FileEntityType,O as Header,lt as HeaderTag,F as Icon,ft as IconPosition,st as IconType,w as Image,A as ItemCrud,mt as ItemCrudButtonNavPosition,ct as ItemCrudButtonNavVisibility,ut as ItemCrudMode,dt as ItemCrudView,L as LktColor,a as LktItem,x as LktSettings,h as LktStrictItem,P as Login,U as Menu,j as MenuEntry,Ct as MenuEntryType,N as Modal,Ft as ModalCallbackAction,C as ModalController,jt as ModalRegisterType,xt as ModalType,rt as MultipleOptionsDisplay,gt as NotificationType,H as Option,W as Paginator,bt as PaginatorType,R as Progress,ht as ProgressType,kt as ProgressValueFormat,Q as SafeString,pt as SaveType,wt as SortDirection,K as Table,At as TablePermission,Lt as TableRowType,yt as TableType,z as Tabs,q as Tag,It as TagType,G as Toast,Mt as ToastPositionX,Bt as ToastType,Pt as ToggleMode,$ as Tooltip,Dt as TooltipLocationX,Vt as TooltipLocationY,Et as TooltipPositionEngine,at as ValidationCode,it as ValidationStatus,X as WebElement,vt as WebElementLayoutType,St as WebElementType,fe as addModal,Kt as booleanFieldTypes,de as closeModal,me as createColumn,u as ensureButtonConfig,b as ensureFieldConfig,Yt as extractI18nValue,Ut as extractPropValue,Nt as fieldTypesWithOptions,Ht as fieldTypesWithoutClear,Wt as fieldTypesWithoutUndo,zt as fieldsWithMultipleMode,B as getAnchorHref,Zt as getDefaultLktAnchorWebElement,_t as getDefaultLktButtonWebElement,ie as getDefaultLktHeaderWebElement,ne as getDefaultLktIconWebElement,le as getDefaultLktImageWebElement,re as getDefaultLktLayoutAccordionWebElement,oe as getDefaultLktLayoutBoxWebElement,te as getDefaultLktLayoutWebElement,ae as getDefaultLktTextAccordionWebElement,ee as getDefaultLktTextBoxWebElement,y as getDefaultLktTextWebElement,Mr as getDefaultValues,se as lktDebug,ue as openModal,Jt as prepareResourceData,qt as textFieldTypes,Rt as textFieldTypesWithOptions};
|