lkt-vue-kernel 1.0.47 → 1.0.50

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
@@ -248,109 +248,6 @@ interface ButtonConfig {
248
248
  events?: EventsConfig | undefined;
249
249
  }
250
250
 
251
- declare class LktSettings {
252
- static debugEnabled: boolean;
253
- static debugMode(enabled?: boolean): typeof LktSettings;
254
- static defaultCreateErrorText: string;
255
- static defaultCreateErrorDetails: string;
256
- static defaultCreateErrorIcon: string;
257
- static setDefaultCreateError(config: {
258
- text?: string;
259
- details?: string;
260
- icon?: string;
261
- }): void;
262
- static defaultUpdateErrorText: string;
263
- static defaultUpdateErrorDetails: string;
264
- static defaultUpdateErrorIcon: string;
265
- static setDefaultUpdateError(config: {
266
- text?: string;
267
- details?: string;
268
- icon?: string;
269
- }): void;
270
- static defaultDropErrorText: string;
271
- static defaultDropErrorDetails: string;
272
- static defaultDropErrorIcon: string;
273
- static setDefaultDropError(config: {
274
- text?: string;
275
- details?: string;
276
- icon?: string;
277
- }): void;
278
- static defaultCreateSuccessText: string;
279
- static defaultCreateSuccessDetails: string;
280
- static defaultCreateSuccessIcon: string;
281
- static setDefaultCreateSuccess(config: {
282
- text?: string;
283
- details?: string;
284
- icon?: string;
285
- }): void;
286
- static defaultUpdateSuccessText: string;
287
- static defaultUpdateSuccessDetails: string;
288
- static defaultUpdateSuccessIcon: string;
289
- static setDefaultUpdateSuccess(config: {
290
- text?: string;
291
- details?: string;
292
- icon?: string;
293
- }): void;
294
- static defaultDropSuccessText: string;
295
- static defaultDropSuccessDetails: string;
296
- static defaultDropSuccessIcon: string;
297
- static setDefaultDropSuccess(config: {
298
- text?: string;
299
- details?: string;
300
- icon?: string;
301
- }): void;
302
- static defaultUploadSuccessText: string;
303
- static defaultUploadSuccessDetails: string;
304
- static defaultUploadSuccessIcon: string;
305
- static setDefaultUploadSuccess(config: {
306
- text?: string;
307
- details?: string;
308
- icon?: string;
309
- }): void;
310
- static defaultUploadErrorText: string;
311
- static defaultUploadErrorDetails: string;
312
- static defaultUploadErrorIcon: string;
313
- static setDefaultUploadError(config: {
314
- text?: string;
315
- details?: string;
316
- icon?: string;
317
- }): void;
318
- static defaultSaveButton: Partial<ButtonConfig>;
319
- static setDefaultSaveButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
320
- static defaultConfirmButton: Partial<ButtonConfig>;
321
- static setDefaultConfirmButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
322
- static defaultCancelButton: Partial<ButtonConfig>;
323
- static setDefaultCancelButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
324
- static defaultCreateButton: Partial<ButtonConfig>;
325
- static setDefaultCreateButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
326
- static defaultUpdateButton: Partial<ButtonConfig>;
327
- static setDefaultUpdateButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
328
- static defaultDropButton: Partial<ButtonConfig>;
329
- static setDefaultDropButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
330
- static defaultEditModeButton: Partial<ButtonConfig>;
331
- static setDefaultEditModeButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
332
- static defaultToggleButton: Partial<ButtonConfig>;
333
- static setDefaultToggleButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
334
- static defaultLoadMoreButton: Partial<ButtonConfig>;
335
- static setDefaultLoadMoreButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
336
- static defaultCloseModalIcon: string;
337
- static setDefaultCloseModalIcon(icon: string): typeof LktSettings;
338
- static defaultCloseToastIcon: string;
339
- static setDefaultCloseToastIcon(icon: string): typeof LktSettings;
340
- static defaultTableSortAscIcon: string;
341
- static defaultTableSortDescIcon: string;
342
- static setDefaultTableSortAscIcon(icon: string): typeof LktSettings;
343
- static setDefaultTableSortDescIcon(icon: string): typeof LktSettings;
344
- static defaultPaginatorFirstButton: Partial<ButtonConfig>;
345
- static defaultPaginatorPrevButton: Partial<ButtonConfig>;
346
- static defaultPaginatorNextButton: Partial<ButtonConfig>;
347
- static defaultPaginatorLastButton: Partial<ButtonConfig>;
348
- static setDefaultPaginatorFirstButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
349
- static setDefaultPaginatorPrevButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
350
- static setDefaultPaginatorNextButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
351
- static setDefaultPaginatorLastButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
352
- }
353
-
354
251
  declare enum FieldType {
355
252
  Text = "text",
356
253
  Email = "email",
@@ -373,60 +270,6 @@ declare enum FieldType {
373
270
  Elements = "elements"
374
271
  }
375
272
 
376
- declare const fieldTypesWithOptions: FieldType[];
377
- declare const fieldTypesWithoutClear: FieldType[];
378
- declare const fieldTypesWithoutUndo: FieldType[];
379
- declare const textFieldTypesWithOptions: FieldType[];
380
- declare const booleanFieldTypes: FieldType[];
381
- declare const fieldsWithMultipleMode: FieldType[];
382
- declare const textFieldTypes: FieldType[];
383
-
384
- declare enum AccordionToggleMode {
385
- Transform = "transform",
386
- Height = "height",
387
- Display = "display"
388
- }
389
-
390
- declare enum AccordionType {
391
- Auto = "auto",// Default accordion flow
392
- Always = "always",// Always opened
393
- Lazy = "lazy",// Lazy content, only after fist open
394
- Ever = "ever"
395
- }
396
-
397
- interface AccordionConfig {
398
- modelValue?: boolean;
399
- type?: AccordionType;
400
- toggleMode?: AccordionToggleMode;
401
- actionButton?: ButtonConfig;
402
- toggleButton?: ButtonConfig;
403
- toggleOnClickIntro?: boolean;
404
- toggleTimeout?: number;
405
- title?: string;
406
- icon?: string;
407
- class?: string;
408
- contentClass?: string;
409
- iconRotation?: '90' | '180' | '-90' | '-180';
410
- minHeight?: number | undefined;
411
- iconAtEnd?: boolean;
412
- toggleIconAtEnd?: boolean;
413
- }
414
-
415
- interface BooleanFieldConfig {
416
- label?: ValidTextValue;
417
- icon?: ValidTextValue;
418
- labelIcon?: ValidTextValue;
419
- }
420
-
421
- declare enum ColumnType {
422
- None = "",
423
- Field = "field",
424
- Button = "button",
425
- Anchor = "anchor"
426
- }
427
-
428
- type ValidColSpan = Function | boolean | number | undefined;
429
-
430
273
  type ValidOptionValue = string | number | undefined;
431
274
 
432
275
  declare enum TagType {
@@ -539,6 +382,12 @@ interface FieldReadModeConfig {
539
382
  textMaxLength?: number;
540
383
  }
541
384
 
385
+ interface BooleanFieldConfig {
386
+ label?: ValidTextValue;
387
+ icon?: ValidTextValue;
388
+ labelIcon?: ValidTextValue;
389
+ }
390
+
542
391
  interface FieldConfig {
543
392
  modelValue?: ValidFieldValue;
544
393
  type?: FieldType;
@@ -576,7 +425,7 @@ interface FieldConfig {
576
425
  featuredButton?: string;
577
426
  infoButtonEllipsis?: boolean;
578
427
  fileName?: string;
579
- options?: string | Option[];
428
+ options?: string | Option[] | OptionConfig[];
580
429
  multiple?: boolean;
581
430
  multipleDisplay?: MultipleOptionsDisplay;
582
431
  multipleDisplayEdition?: MultipleOptionsDisplay;
@@ -607,6 +456,193 @@ interface FieldConfig {
607
456
  };
608
457
  }
609
458
 
459
+ declare class LktSettings {
460
+ static debugEnabled: boolean;
461
+ static debugMode(enabled?: boolean): typeof LktSettings;
462
+ static defaultCreateErrorText: string;
463
+ static defaultCreateErrorDetails: string;
464
+ static defaultCreateErrorIcon: string;
465
+ static setDefaultCreateError(config: {
466
+ text?: string;
467
+ details?: string;
468
+ icon?: string;
469
+ }): void;
470
+ static defaultUpdateErrorText: string;
471
+ static defaultUpdateErrorDetails: string;
472
+ static defaultUpdateErrorIcon: string;
473
+ static setDefaultUpdateError(config: {
474
+ text?: string;
475
+ details?: string;
476
+ icon?: string;
477
+ }): void;
478
+ static defaultDropErrorText: string;
479
+ static defaultDropErrorDetails: string;
480
+ static defaultDropErrorIcon: string;
481
+ static setDefaultDropError(config: {
482
+ text?: string;
483
+ details?: string;
484
+ icon?: string;
485
+ }): void;
486
+ static defaultCreateSuccessText: string;
487
+ static defaultCreateSuccessDetails: string;
488
+ static defaultCreateSuccessIcon: string;
489
+ static setDefaultCreateSuccess(config: {
490
+ text?: string;
491
+ details?: string;
492
+ icon?: string;
493
+ }): void;
494
+ static defaultUpdateSuccessText: string;
495
+ static defaultUpdateSuccessDetails: string;
496
+ static defaultUpdateSuccessIcon: string;
497
+ static setDefaultUpdateSuccess(config: {
498
+ text?: string;
499
+ details?: string;
500
+ icon?: string;
501
+ }): void;
502
+ static defaultDropSuccessText: string;
503
+ static defaultDropSuccessDetails: string;
504
+ static defaultDropSuccessIcon: string;
505
+ static setDefaultDropSuccess(config: {
506
+ text?: string;
507
+ details?: string;
508
+ icon?: string;
509
+ }): void;
510
+ static defaultUploadSuccessText: string;
511
+ static defaultUploadSuccessDetails: string;
512
+ static defaultUploadSuccessIcon: string;
513
+ static setDefaultUploadSuccess(config: {
514
+ text?: string;
515
+ details?: string;
516
+ icon?: string;
517
+ }): void;
518
+ static defaultUploadErrorText: string;
519
+ static defaultUploadErrorDetails: string;
520
+ static defaultUploadErrorIcon: string;
521
+ static setDefaultUploadError(config: {
522
+ text?: string;
523
+ details?: string;
524
+ icon?: string;
525
+ }): void;
526
+ static defaultSaveButton: Partial<ButtonConfig>;
527
+ static setDefaultSaveButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
528
+ static defaultConfirmButton: Partial<ButtonConfig>;
529
+ static setDefaultConfirmButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
530
+ static defaultCancelButton: Partial<ButtonConfig>;
531
+ static setDefaultCancelButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
532
+ static defaultCreateButton: Partial<ButtonConfig>;
533
+ static setDefaultCreateButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
534
+ static defaultUpdateButton: Partial<ButtonConfig>;
535
+ static setDefaultUpdateButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
536
+ static defaultDropButton: Partial<ButtonConfig>;
537
+ static setDefaultDropButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
538
+ static defaultEditModeButton: Partial<ButtonConfig>;
539
+ static setDefaultEditModeButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
540
+ static defaultToggleButton: Partial<ButtonConfig>;
541
+ static setDefaultToggleButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
542
+ static defaultLoadMoreButton: Partial<ButtonConfig>;
543
+ static setDefaultLoadMoreButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
544
+ static defaultCloseModalIcon: string;
545
+ static setDefaultCloseModalIcon(icon: string): typeof LktSettings;
546
+ static defaultCloseToastIcon: string;
547
+ static setDefaultCloseToastIcon(icon: string): typeof LktSettings;
548
+ static defaultTableSortAscIcon: string;
549
+ static defaultTableSortDescIcon: string;
550
+ static setDefaultTableSortAscIcon(icon: string): typeof LktSettings;
551
+ static setDefaultTableSortDescIcon(icon: string): typeof LktSettings;
552
+ static defaultPaginatorFirstButton: Partial<ButtonConfig>;
553
+ static defaultPaginatorPrevButton: Partial<ButtonConfig>;
554
+ static defaultPaginatorNextButton: Partial<ButtonConfig>;
555
+ static defaultPaginatorLastButton: Partial<ButtonConfig>;
556
+ static setDefaultPaginatorFirstButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
557
+ static setDefaultPaginatorPrevButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
558
+ static setDefaultPaginatorNextButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
559
+ static setDefaultPaginatorLastButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
560
+ static defaultFieldElementCustomClassField: Partial<FieldConfig>;
561
+ static defaultFieldLktAccordionElementCustomClassField: Partial<FieldConfig>;
562
+ static defaultFieldLktBoxElementCustomClassField: Partial<FieldConfig>;
563
+ static defaultFieldLktIconElementCustomClassField: Partial<FieldConfig>;
564
+ static defaultFieldLktImageElementCustomClassField: Partial<FieldConfig>;
565
+ static setDefaultFieldLktAccordionElementCustomClassField(field: Partial<FieldConfig>, override?: boolean): typeof LktSettings;
566
+ static setDefaultFieldLktBoxElementCustomClassField(field: Partial<FieldConfig>, override?: boolean): typeof LktSettings;
567
+ static setDefaultFieldLktIconElementCustomClassField(field: Partial<FieldConfig>, override?: boolean): typeof LktSettings;
568
+ static setDefaultFieldLktImageElementCustomClassField(field: Partial<FieldConfig>, override?: boolean): typeof LktSettings;
569
+ }
570
+
571
+ declare const fieldTypesWithOptions: FieldType[];
572
+ declare const fieldTypesWithoutClear: FieldType[];
573
+ declare const fieldTypesWithoutUndo: FieldType[];
574
+ declare const textFieldTypesWithOptions: FieldType[];
575
+ declare const booleanFieldTypes: FieldType[];
576
+ declare const fieldsWithMultipleMode: FieldType[];
577
+ declare const textFieldTypes: FieldType[];
578
+
579
+ declare enum AccordionToggleMode {
580
+ Transform = "transform",
581
+ Height = "height",
582
+ Display = "display"
583
+ }
584
+
585
+ declare enum AccordionType {
586
+ Auto = "auto",// Default accordion flow
587
+ Always = "always",// Always opened
588
+ Lazy = "lazy",// Lazy content, only after fist open
589
+ Ever = "ever"
590
+ }
591
+
592
+ interface AccordionConfig {
593
+ modelValue?: boolean;
594
+ type?: AccordionType;
595
+ toggleMode?: AccordionToggleMode;
596
+ actionButton?: ButtonConfig;
597
+ toggleButton?: ButtonConfig;
598
+ toggleOnClickIntro?: boolean;
599
+ toggleTimeout?: number;
600
+ title?: string;
601
+ icon?: string;
602
+ class?: string;
603
+ contentClass?: string;
604
+ iconRotation?: '90' | '180' | '-90' | '-180';
605
+ minHeight?: number | undefined;
606
+ iconAtEnd?: boolean;
607
+ toggleIconAtEnd?: boolean;
608
+ }
609
+
610
+ declare enum IconType {
611
+ NotDefined = "",
612
+ Button = "button"
613
+ }
614
+
615
+ declare enum IconPosition {
616
+ Start = "start",
617
+ End = "end"
618
+ }
619
+
620
+ interface IconConfig {
621
+ icon?: ValidTextValue;
622
+ text?: ValidTextValue;
623
+ class?: ValidTextValue;
624
+ type?: IconType;
625
+ position?: IconPosition;
626
+ events?: EventsConfig | undefined;
627
+ }
628
+
629
+ interface BoxConfig {
630
+ title?: string;
631
+ iconAtEnd?: boolean;
632
+ style?: string;
633
+ class?: string;
634
+ icon?: IconConfig | string;
635
+ }
636
+
637
+ declare enum ColumnType {
638
+ None = "",
639
+ Field = "field",
640
+ Button = "button",
641
+ Anchor = "anchor"
642
+ }
643
+
644
+ type ValidColSpan = Function | boolean | number | undefined;
645
+
610
646
  interface ColumnConfig {
611
647
  type: ColumnType;
612
648
  key: string;
@@ -637,25 +673,6 @@ interface DragConfig {
637
673
  dragKey?: string;
638
674
  }
639
675
 
640
- declare enum IconType {
641
- NotDefined = "",
642
- Button = "button"
643
- }
644
-
645
- declare enum IconPosition {
646
- Start = "start",
647
- End = "end"
648
- }
649
-
650
- interface IconConfig {
651
- icon?: ValidTextValue;
652
- text?: ValidTextValue;
653
- class?: ValidTextValue;
654
- type?: IconType;
655
- position?: IconPosition;
656
- events?: EventsConfig | undefined;
657
- }
658
-
659
676
  interface ImageConfig {
660
677
  src?: string;
661
678
  alt?: string;
@@ -702,15 +719,31 @@ declare enum NotificationType {
702
719
  Inline = "inline"
703
720
  }
704
721
 
722
+ declare enum TablePermission {
723
+ Create = "create",
724
+ Update = "update",// Save changes
725
+ Edit = "edit",// Displays edit button
726
+ Drop = "drop",// Displays drop button
727
+ Sort = "sort",// Sort
728
+ SwitchEditMode = "switch-edit-mode",
729
+ InlineEdit = "inline-edit",// Be able to edit columns inside the table
730
+ InlineCreate = "inline-create",// Be able to append a new editable row (needs InlineEdit in order to be editable)
731
+ ModalCreate = "modal-create",// Be able to append a new row after save a modal form
732
+ InlineCreateEver = "inline-create-ever"
733
+ }
734
+
735
+ type ValidTablePermission = TablePermission | string;
736
+
705
737
  interface ItemCrudConfig {
706
738
  modelValue?: LktObject;
707
739
  editing?: boolean;
740
+ perms?: ValidTablePermission[];
708
741
  mode?: ItemCrudMode;
709
742
  view?: ItemCrudView;
710
- editModeButton?: ButtonConfig;
711
- dropButton?: ButtonConfig;
712
- createButton?: ButtonConfig;
713
- updateButton?: ButtonConfig;
743
+ editModeButton?: ButtonConfig | false;
744
+ dropButton?: ButtonConfig | false;
745
+ createButton?: ButtonConfig | false;
746
+ updateButton?: ButtonConfig | false;
714
747
  buttonNavPosition?: ItemCrudButtonNavPosition;
715
748
  buttonNavVisibility?: ItemCrudButtonNavVisibility;
716
749
  modalConfig?: ModalConfig;
@@ -823,21 +856,6 @@ declare class Column extends LktItem implements ColumnConfig {
823
856
  constructor(data?: Partial<ColumnConfig>);
824
857
  }
825
858
 
826
- declare enum TablePermission {
827
- Create = "create",
828
- Update = "update",// Save changes
829
- Edit = "edit",// Displays edit button
830
- Drop = "drop",// Displays drop button
831
- Sort = "sort",// Sort
832
- SwitchEditMode = "switch-edit-mode",
833
- InlineEdit = "inline-edit",// Be able to edit columns inside the table
834
- InlineCreate = "inline-create",// Be able to append a new editable row (needs InlineEdit in order to be editable)
835
- ModalCreate = "modal-create",// Be able to append a new row after save a modal form
836
- InlineCreateEver = "inline-create-ever"
837
- }
838
-
839
- type ValidTablePermission = TablePermission | string;
840
-
841
859
  interface HeaderConfig {
842
860
  tag?: string;
843
861
  class?: string;
@@ -979,6 +997,16 @@ declare class Accordion extends LktItem implements AccordionConfig {
979
997
  constructor(data?: Partial<AnchorConfig>);
980
998
  }
981
999
 
1000
+ declare class Box extends LktItem implements BoxConfig {
1001
+ static lktDefaultValues: (keyof BoxConfig)[];
1002
+ title: string;
1003
+ iconAtEnd: boolean;
1004
+ style: string;
1005
+ class: string;
1006
+ icon: IconConfig | string;
1007
+ constructor(data?: Partial<BoxConfig>);
1008
+ }
1009
+
982
1010
  declare class Button extends LktItem implements ButtonConfig {
983
1011
  lktAllowUndefinedProps: string[];
984
1012
  static lktDefaultValues: (keyof ButtonConfig)[];
@@ -1067,7 +1095,7 @@ declare class Field extends LktItem implements FieldConfig {
1067
1095
  fileName: string;
1068
1096
  customButtonText: string;
1069
1097
  customButtonClass: string;
1070
- options: string | Option[];
1098
+ options: string | Option[] | OptionConfig[];
1071
1099
  multiple: boolean;
1072
1100
  multipleDisplay: MultipleOptionsDisplay;
1073
1101
  multipleDisplayEdition: MultipleOptionsDisplay;
@@ -1174,6 +1202,7 @@ declare class ItemCrud extends LktItem implements ItemCrudConfig {
1174
1202
  static lktDefaultValues: (keyof ItemCrudConfig)[];
1175
1203
  modelValue: LktObject;
1176
1204
  editing: boolean;
1205
+ perms: ValidTablePermission[];
1177
1206
  mode: ItemCrudMode;
1178
1207
  view: ItemCrudView;
1179
1208
  editModeButton: ButtonConfig;
@@ -1402,6 +1431,7 @@ declare const extractI18nValue: (needle: ValidTextValue) => any;
1402
1431
  declare const prepareResourceData: (resourceData: LktObject | undefined, haystack: LktObject) => LktObject;
1403
1432
 
1404
1433
  declare const ensureButtonConfig: (buttonConfig: Partial<ButtonConfig> | undefined, settingsConfig: Partial<ButtonConfig>) => Partial<ButtonConfig>;
1434
+ declare const ensureFieldConfig: (config: Partial<FieldConfig> | undefined, settingsConfig: Partial<FieldConfig>) => Partial<FieldConfig>;
1405
1435
 
1406
1436
  declare const lktDebug: (component: string, ...args: any[]) => void;
1407
1437
 
@@ -1463,4 +1493,4 @@ declare function getDefaultValues<T>(cls: {
1463
1493
  lktDefaultValues: (keyof T)[];
1464
1494
  }): Partial<T>;
1465
1495
 
1466
- export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, type BooleanFieldConfig, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, type EventsConfig, Field, FieldAutoValidationTrigger, type FieldConfig, type FieldReadModeConfig, FieldType, FieldValidation, type FieldValidationConfig, FieldValidationType, type HttpCallConfig, Icon, type IconConfig, IconPosition, IconType, Image, type ImageConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, ItemCrudView, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Menu, type MenuConfig, MenuEntry, type MenuEntryConfig, MenuEntryType, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalController, type ModalRegister, ModalRegisterType, ModalType, MultipleOptionsDisplay, NotificationType, Option, type OptionConfig, type OptionsConfig, Paginator, type PaginatorConfig, PaginatorType, Progress, type ProgressConfig, ProgressType, ProgressValueFormat, type RenderModalConfig, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, 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 ValidBeforeCloseModal, type ValidButtonDot, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, 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, addModal, booleanFieldTypes, closeModal, createColumn, ensureButtonConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getAnchorHref, getDefaultValues, lktDebug, openModal, prepareResourceData, textFieldTypes, textFieldTypesWithOptions };
1496
+ export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, type BooleanFieldConfig, Box, type BoxConfig, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, type EventsConfig, Field, FieldAutoValidationTrigger, type FieldConfig, type FieldReadModeConfig, FieldType, FieldValidation, type FieldValidationConfig, FieldValidationType, type HttpCallConfig, Icon, type IconConfig, IconPosition, IconType, Image, type ImageConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, ItemCrudView, LktColor, LktItem, type LktObject, LktSettings, LktStrictItem, Menu, type MenuConfig, MenuEntry, type MenuEntryConfig, MenuEntryType, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalController, type ModalRegister, ModalRegisterType, ModalType, MultipleOptionsDisplay, NotificationType, Option, type OptionConfig, type OptionsConfig, Paginator, type PaginatorConfig, PaginatorType, Progress, type ProgressConfig, ProgressType, ProgressValueFormat, type RenderModalConfig, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, 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 ValidBeforeCloseModal, type ValidButtonDot, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, 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, addModal, booleanFieldTypes, closeModal, createColumn, ensureButtonConfig, ensureFieldConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getAnchorHref, getDefaultValues, lktDebug, openModal, prepareResourceData, textFieldTypes, textFieldTypesWithOptions };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var K=(f=>(f.Button="button",f.Submit="submit",f.Reset="reset",f.Anchor="anchor",f.Content="content",f.Switch="switch",f.HiddenSwitch="hidden-switch",f.Split="split",f.SplitLazy="split-lazy",f.SplitEver="split-ever",f.Tooltip="tooltip",f.TooltipLazy="tooltip-lazy",f.TooltipEver="tooltip-ever",f.FileUpload="file-upload",f.ImageUpload="image-upload",f))(K||{});var d=(e,t)=>typeof e>"u"?t:{...t,...e};var p=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 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}};var j=(l=>(l.Text="text",l.Email="email",l.Tel="tel",l.Password="password",l.Search="search",l.Number="number",l.Color="color",l.Range="range",l.Textarea="textarea",l.Html="html",l.Date="date",l.File="file",l.Image="image",l.Select="select",l.Check="check",l.Switch="switch",l.Calc="calc",l.Card="card",l.Elements="elements",l))(j||{});var It=["text","search","select"],St=["switch","check"],yt=["switch","check"],Dt=["text","search"],Tt=["switch","check"],Et=["select","color","card"],vt=["text","email","password"];var wt=["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(!(wt.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 x=class extends a{lktStrictItem=!0};var h=class e extends x{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 H=(i=>(i.Auto="auto",i.Always="always",i.Lazy="lazy",i.Ever="ever",i))(H||{});var z=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(z||{});var M=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 W=(m=>(m.Href="href",m.RouterLink="router-link",m.RouterLinkBack="router-link-back",m.Mail="mail",m.Tel="tel",m.Tab="tab",m.Download="download",m.Action="action",m.Legacy="",m))(W||{});var V=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 C=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 V(this)}constructor(t={}){super(),this.feed(t)}};import{generateRandomString as Lt}from"lkt-string-tools";var k=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=Lt(10);class="";containerClass="";value="";disabled=!1;loading=!1;wrapContent=!1;splitIcon="";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),this.anchor=new C(t.anchor)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var q=(i=>(i.None="",i.Field="field",i.Button="button",i.Anchor="anchor",i))(q||{});var b=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)}};import{generateRandomString as Ot}from"lkt-string-tools";var $=(r=>(r.List="list",r.Inline="inline",r.Count="count",r))($||{});var B=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","readModeConfig","configOn","configOff"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Ot(16);autocomplete=!1;disabled=!1;readonly=!1;hidden=!1;tabindex=void 0;mandatory=!1;showPassword=!1;canClear=!1;canUndo=!1;canI18n=!1;canStep=!0;canTag=!0;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={};constructor(t={}){super(),this.feed(t)}};var G=(s=>(s.MinStringLength="min-str",s.MinNumber="min-num",s.MaxStringLength="max-str",s.MaxNumber="max-num",s.Email="email",s.Empty="empty",s.EqualTo="equal-to",s.MinNumbers="min-numbers",s.MaxNumbers="max-numbers",s.MinChars="min-chars",s.MaxChars="max-chars",s.MinUpperChars="min-upper-chars",s.MaxUpperChars="max-upper-chars",s.MinLowerChars="min-lower-chars",s.MaxLowerChars="max-lower-chars",s.MinSpecialChars="min-special-chars",s.MaxSpecialChars="max-special-chars",s))(G||{});var X=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(X||{});var I=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 Q=(o=>(o.NotDefined="",o.Button="button",o))(Q||{});var Y=(o=>(o.Start="start",o.End="end",o))(Y||{});var S=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 y=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 J=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(J||{});var Z=(o=>(o.Inline="inline",o.Modal="modal",o))(Z||{});var _=(o=>(o.Top="top",o.Bottom="bottom",o))(_||{});var tt=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(tt||{});var et=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(et||{});var ot=(o=>(o.Toast="toast",o.Inline="inline",o))(ot||{});var D=class extends a{static lktDefaultValues=["modelValue","editing","mode","view","editModeButton","dropButton","createButton","updateButton","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType"];modelValue={};editing=!1;mode="read";view="inline";editModeButton={};dropButton={};createButton={};updateButton={};modalConfig={};saveConfig={type:"manual"};title="";readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";constructor(t={}){super(),this.feed(t)}};var T=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var rt=(r=>(r.Anchor="anchor",r.Button="button",r.Entry="entry",r))(rt||{});var E=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events","onClick"];key="";type="anchor";icon="";anchor={};button={};isActiveChecker=void 0;isOpened=!1;isActive=!1;parent=void 0;children;events={};onClick=void 0;constructor(t={}){super(),this.feed(t)}doClose(){this.isOpened=!1}};var at=(o=>(o.Modal="modal",o.Confirm="confirm",o))(at||{});var v=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=p.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 w=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var it=(g=>(g.Pages="pages",g.PrevNext="prev-next",g.PagesPrevNext="pages-prev-next",g.PagesPrevNextFirstLast="pages-prev-next-first-last",g.LoadMore="load-more",g.Infinite="infinite",g))(it||{});var L=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 nt=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(nt||{});var lt=(n=>(n.NotDefined="",n.Hidden="hidden",n.Integer="integer",n.Decimal="decimal",n.Auto="auto",n))(lt||{});var O=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 st=(n=>(n.Table="table",n.Item="item",n.Ul="ul",n.Ol="ol",n.Carousel="carousel",n))(st||{});var ft=(i=>(i[i.Auto=0]="Auto",i[i.PreferItem=1]="PreferItem",i[i.PreferCustomItem=2]="PreferCustomItem",i[i.PreferColumns=3]="PreferColumns",i))(ft||{});var U=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","wrapContentTag","wrapContentClass","itemsContainerClass","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel"];modelValue=[];type="table";columns=[];noResultsText="";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;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";constructor(t={}){super(),this.feed(t)}};var P=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 dt=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(dt||{});var N=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 ut=(o=>(o.Message="message",o.Button="button",o))(ut||{});var mt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(mt||{});var A=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 ct=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(ct||{});var pt=(i=>(i.Top="top",i.Bottom="bottom",i.Center="center",i.ReferrerCenter="referrer-center",i))(pt||{});var gt=(n=>(n.Left="left",n.Right="right",n.Center="center",n.LeftCorner="left-corner",n.RightCorner="right-corner",n))(gt||{});var F=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 xt=(i=>(i.None="",i.Focus="focus",i.Blur="blur",i.Always="always",i))(xt||{});var Ct=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(Ct||{});var bt=(n=>(n.Refresh="refresh",n.Close="close",n.ReOpen="reOpen",n.Exec="exec",n.Open="open",n))(bt||{});var ht=(o=>(o.Asc="asc",o.Desc="desc",o))(ht||{});var Mt=(u=>(u.Create="create",u.Update="update",u.Edit="edit",u.Drop="drop",u.Sort="sort",u.SwitchEditMode="switch-edit-mode",u.InlineEdit="inline-edit",u.InlineCreate="inline-create",u.ModalCreate="modal-create",u.InlineCreateEver="inline-create-ever",u))(Mt||{});var Vt=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Vt||{});var R=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 Ut}from"lkt-i18n";var kt=(e,t)=>typeof e=="string"&&e.startsWith("prop:")?t[e.substring(5)]:e,Pt=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Ut(t.substring(3)):t}return e},Nt=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=kt(e[r],t);return o};var At=(e,...t)=>{p.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 Ft=e=>{c.addModal(e)},Rt=(e,t)=>{c.open(e,t),c.canvas?.refresh()},Kt=e=>{c.close(e),c.canvas?.refresh()};var jt=e=>new b(e);var Bt=(o=>(o.Quick="quick",o.Full="full",o))(Bt||{});function No(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{M as Accordion,z as AccordionToggleMode,H as AccordionType,C as Anchor,W as AnchorType,k as Button,K as ButtonType,b as Column,q as ColumnType,B as Field,xt as FieldAutoValidationTrigger,j as FieldType,I as FieldValidation,Ct as FieldValidationType,S as Icon,Y as IconPosition,Q as IconType,y as Image,D as ItemCrud,_ as ItemCrudButtonNavPosition,tt as ItemCrudButtonNavVisibility,J as ItemCrudMode,Z as ItemCrudView,h as LktColor,a as LktItem,p as LktSettings,x as LktStrictItem,T as Menu,E as MenuEntry,rt as MenuEntryType,v as Modal,bt as ModalCallbackAction,c as ModalController,Bt as ModalRegisterType,at as ModalType,$ as MultipleOptionsDisplay,ot as NotificationType,w as Option,L as Paginator,it as PaginatorType,O as Progress,nt as ProgressType,lt as ProgressValueFormat,R as SafeString,et as SaveType,ht as SortDirection,U as Table,Mt as TablePermission,ft as TableRowType,st as TableType,P as Tabs,N as Tag,dt as TagType,A as Toast,mt as ToastPositionX,ut as ToastType,Vt as ToggleMode,F as Tooltip,gt as TooltipLocationX,pt as TooltipLocationY,ct as TooltipPositionEngine,G as ValidationCode,X as ValidationStatus,Ft as addModal,Tt as booleanFieldTypes,Kt as closeModal,jt as createColumn,d as ensureButtonConfig,Pt as extractI18nValue,kt as extractPropValue,It as fieldTypesWithOptions,St as fieldTypesWithoutClear,yt as fieldTypesWithoutUndo,Et as fieldsWithMultipleMode,V as getAnchorHref,No as getDefaultValues,At as lktDebug,Rt as openModal,Nt as prepareResourceData,vt as textFieldTypes,Dt as textFieldTypesWithOptions};
1
+ var H=(f=>(f.Button="button",f.Submit="submit",f.Reset="reset",f.Anchor="anchor",f.Content="content",f.Switch="switch",f.HiddenSwitch="hidden-switch",f.Split="split",f.SplitLazy="split-lazy",f.SplitEver="split-ever",f.Tooltip="tooltip",f.TooltipLazy="tooltip-lazy",f.TooltipEver="tooltip-ever",f.FileUpload="file-upload",f.ImageUpload="image-upload",f))(H||{});var d=(e,t)=>typeof e>"u"?t:{...t,...e},C=(e,t)=>typeof e>"u"?t:{...t,...e};var p=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 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:"Custom Class",multiple:!1};static defaultFieldLktAccordionElementCustomClassField={};static defaultFieldLktBoxElementCustomClassField={};static defaultFieldLktIconElementCustomClassField={};static defaultFieldLktImageElementCustomClassField={};static setDefaultFieldLktAccordionElementCustomClassField(t,o=!0){return o?e.defaultFieldLktAccordionElementCustomClassField=t:e.defaultFieldLktAccordionElementCustomClassField=C(t,e.defaultFieldLktAccordionElementCustomClassField),e}static setDefaultFieldLktBoxElementCustomClassField(t,o=!0){return o?e.defaultFieldLktBoxElementCustomClassField=t:e.defaultFieldLktBoxElementCustomClassField=C(t,e.defaultFieldLktBoxElementCustomClassField),e}static setDefaultFieldLktIconElementCustomClassField(t,o=!0){return o?e.defaultFieldLktIconElementCustomClassField=t:e.defaultFieldLktIconElementCustomClassField=C(t,e.defaultFieldLktIconElementCustomClassField),e}static setDefaultFieldLktImageElementCustomClassField(t,o=!0){return o?e.defaultFieldLktImageElementCustomClassField=t:e.defaultFieldLktImageElementCustomClassField=C(t,e.defaultFieldLktImageElementCustomClassField),e}};var z=(l=>(l.Text="text",l.Email="email",l.Tel="tel",l.Password="password",l.Search="search",l.Number="number",l.Color="color",l.Range="range",l.Textarea="textarea",l.Html="html",l.Date="date",l.File="file",l.Image="image",l.Select="select",l.Check="check",l.Switch="switch",l.Calc="calc",l.Card="card",l.Elements="elements",l))(z||{});var yt=["text","search","select"],St=["switch","check"],Et=["switch","check"],Lt=["text","search"],Tt=["switch","check"],vt=["select","color","card"],wt=["text","email","password"];var Ot=["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(!(Ot.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 x=class extends a{lktStrictItem=!0};var k=class e extends x{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 W=(i=>(i.Auto="auto",i.Always="always",i.Lazy="lazy",i.Ever="ever",i))(W||{});var q=(r=>(r.Transform="transform",r.Height="height",r.Display="display",r))(q||{});var M=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 $=(m=>(m.Href="href",m.RouterLink="router-link",m.RouterLinkBack="router-link-back",m.Mail="mail",m.Tel="tel",m.Tab="tab",m.Download="download",m.Action="action",m.Legacy="",m))($||{});var V=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 b=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 V(this)}constructor(t={}){super(),this.feed(t)}};var B=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 Ft}from"lkt-string-tools";var I=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=Ft(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),this.anchor=new b(t.anchor)}isDisabled(){return typeof this.disabled=="function"?this.disabled():this.disabled}};var G=(i=>(i.None="",i.Field="field",i.Button="button",i.Anchor="anchor",i))(G||{});var h=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)}};import{generateRandomString as Pt}from"lkt-string-tools";var X=(r=>(r.List="list",r.Inline="inline",r.Count="count",r))(X||{});var D=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","readModeConfig","configOn","configOff"];modelValue="";type="text";valid=void 0;placeholder="";searchPlaceholder="";label="";labelIcon="";labelIconAtEnd=!1;name=Pt(16);autocomplete=!1;disabled=!1;readonly=!1;hidden=!1;tabindex=void 0;mandatory=!1;showPassword=!1;canClear=!1;canUndo=!1;canI18n=!1;canStep=!0;canTag=!0;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={};constructor(t={}){super(),this.feed(t)}};var Q=(s=>(s.MinStringLength="min-str",s.MinNumber="min-num",s.MaxStringLength="max-str",s.MaxNumber="max-num",s.Email="email",s.Empty="empty",s.EqualTo="equal-to",s.MinNumbers="min-numbers",s.MaxNumbers="max-numbers",s.MinChars="min-chars",s.MaxChars="max-chars",s.MinUpperChars="min-upper-chars",s.MaxUpperChars="max-upper-chars",s.MinLowerChars="min-lower-chars",s.MaxLowerChars="max-lower-chars",s.MinSpecialChars="min-special-chars",s.MaxSpecialChars="max-special-chars",s))(Q||{});var Y=(r=>(r.Ok="ok",r.Ko="ko",r.Info="info",r))(Y||{});var y=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 J=(o=>(o.NotDefined="",o.Button="button",o))(J||{});var Z=(o=>(o.Start="start",o.End="end",o))(Z||{});var S=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 E=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 _=(r=>(r.Create="create",r.Update="update",r.Read="read",r))(_||{});var tt=(o=>(o.Inline="inline",o.Modal="modal",o))(tt||{});var et=(o=>(o.Top="top",o.Bottom="bottom",o))(et||{});var ot=(r=>(r.Changed="changed",r.Always="always",r.Never="never",r))(ot||{});var rt=(r=>(r.Manual="manual",r.Auto="auto",r.Delay="delay",r))(rt||{});var at=(o=>(o.Toast="toast",o.Inline="inline",o))(at||{});var L=class extends a{static lktDefaultValues=["modelValue","editing","perms","mode","view","editModeButton","dropButton","createButton","updateButton","modalConfig","saveConfig","title","readResource","readData","beforeEmitUpdate","dataStateConfig","buttonNavPosition","buttonNavVisibility","notificationType"];modelValue={};editing=!1;perms=[];mode="read";view="inline";editModeButton={};dropButton={};createButton={};updateButton={};modalConfig={};saveConfig={type:"manual"};title="";readResource="";readData={};beforeEmitUpdate=void 0;dataStateConfig={};buttonNavPosition="top";buttonNavVisibility="always";notificationType="toast";constructor(t={}){super(),this.feed(t)}};var T=class extends a{static lktDefaultValues=["modelValue","http"];modelValue=[];http={};constructor(t={}){super(),this.feed(t)}};var it=(r=>(r.Anchor="anchor",r.Button="button",r.Entry="entry",r))(it||{});var v=class extends a{static lktDefaultValues=["key","type","icon","isActiveChecker","isOpened","isActive","parent","children","events","onClick"];key="";type="anchor";icon="";anchor={};button={};isActiveChecker=void 0;isOpened=!1;isActive=!1;parent=void 0;children;events={};onClick=void 0;constructor(t={}){super(),this.feed(t)}doClose(){this.isOpened=!1}};var nt=(o=>(o.Modal="modal",o.Confirm="confirm",o))(nt||{});var w=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=p.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 O=class extends a{value=void 0;label="";data={};disabled=!1;group="";icon="";modal="";tags=[];constructor(t={}){super(),this.feed(t)}};var lt=(g=>(g.Pages="pages",g.PrevNext="prev-next",g.PagesPrevNext="pages-prev-next",g.PagesPrevNextFirstLast="pages-prev-next-first-last",g.LoadMore="load-more",g.Infinite="infinite",g))(lt||{});var F=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 st=(r=>(r.None="",r.Incremental="incremental",r.Decremental="decremental",r))(st||{});var ft=(n=>(n.NotDefined="",n.Hidden="hidden",n.Integer="integer",n.Decimal="decimal",n.Auto="auto",n))(ft||{});var P=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 dt=(n=>(n.Table="table",n.Item="item",n.Ul="ul",n.Ol="ol",n.Carousel="carousel",n))(dt||{});var ut=(i=>(i[i.Auto=0]="Auto",i[i.PreferItem=1]="PreferItem",i[i.PreferCustomItem=2]="PreferCustomItem",i[i.PreferColumns=3]="PreferColumns",i))(ut||{});var U=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","wrapContentTag","wrapContentClass","itemsContainerClass","hiddenSave","addNavigation","createEnabledValidator","newValueGenerator","requiredItemsForTopCreate","requiredItemsForBottomCreate","slotItemVar","carousel"];modelValue=[];type="table";columns=[];noResultsText="";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;wrapContentTag="div";wrapContentClass="";itemsContainerClass="";addNavigation=!1;createEnabledValidator=void 0;newValueGenerator=void 0;requiredItemsForTopCreate=0;requiredItemsForBottomCreate=0;slotItemVar="item";constructor(t={}){super(),this.feed(t)}};var A=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 mt=(o=>(o.NotDefined="",o.ActionIcon="action-icon",o))(mt||{});var N=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 ct=(o=>(o.Message="message",o.Button="button",o))(ct||{});var pt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(pt||{});var R=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 gt=(o=>(o.Fixed="fixed",o.Absolute="absolute",o))(gt||{});var Ct=(i=>(i.Top="top",i.Bottom="bottom",i.Center="center",i.ReferrerCenter="referrer-center",i))(Ct||{});var xt=(n=>(n.Left="left",n.Right="right",n.Center="center",n.LeftCorner="left-corner",n.RightCorner="right-corner",n))(xt||{});var K=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 bt=(i=>(i.None="",i.Focus="focus",i.Blur="blur",i.Always="always",i))(bt||{});var ht=(r=>(r.Auto="auto",r.Local="local",r.Remote="remote",r))(ht||{});var kt=(n=>(n.Refresh="refresh",n.Close="close",n.ReOpen="reOpen",n.Exec="exec",n.Open="open",n))(kt||{});var Mt=(o=>(o.Asc="asc",o.Desc="desc",o))(Mt||{});var Vt=(u=>(u.Create="create",u.Update="update",u.Edit="edit",u.Drop="drop",u.Sort="sort",u.SwitchEditMode="switch-edit-mode",u.InlineEdit="inline-edit",u.InlineCreate="inline-create",u.ModalCreate="modal-create",u.InlineCreateEver="inline-create-ever",u))(Vt||{});var Bt=(o=>(o.Lazy="lazy",o.Ever="ever",o))(Bt||{});var j=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 Ut}from"lkt-i18n";var It=(e,t)=>typeof e=="string"&&e.startsWith("prop:")?t[e.substring(5)]:e,At=e=>{if(typeof e=="string"&&e.startsWith("__:")){let t=String(e);return t.startsWith("__:")?Ut(t.substring(3)):t}return e},Nt=(e,t)=>{if(!e)return{};let o={};for(let r in e)o[r]=It(e[r],t);return o};var Rt=(e,...t)=>{p.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 Kt=e=>{c.addModal(e)},jt=(e,t)=>{c.open(e,t),c.canvas?.refresh()},Ht=e=>{c.close(e),c.canvas?.refresh()};var zt=e=>new h(e);var Dt=(o=>(o.Quick="quick",o.Full="full",o))(Dt||{});function Ko(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{M as Accordion,q as AccordionToggleMode,W as AccordionType,b as Anchor,$ as AnchorType,B as Box,I as Button,H as ButtonType,h as Column,G as ColumnType,D as Field,bt as FieldAutoValidationTrigger,z as FieldType,y as FieldValidation,ht as FieldValidationType,S as Icon,Z as IconPosition,J as IconType,E as Image,L as ItemCrud,et as ItemCrudButtonNavPosition,ot as ItemCrudButtonNavVisibility,_ as ItemCrudMode,tt as ItemCrudView,k as LktColor,a as LktItem,p as LktSettings,x as LktStrictItem,T as Menu,v as MenuEntry,it as MenuEntryType,w as Modal,kt as ModalCallbackAction,c as ModalController,Dt as ModalRegisterType,nt as ModalType,X as MultipleOptionsDisplay,at as NotificationType,O as Option,F as Paginator,lt as PaginatorType,P as Progress,st as ProgressType,ft as ProgressValueFormat,j as SafeString,rt as SaveType,Mt as SortDirection,U as Table,Vt as TablePermission,ut as TableRowType,dt as TableType,A as Tabs,N as Tag,mt as TagType,R as Toast,pt as ToastPositionX,ct as ToastType,Bt as ToggleMode,K as Tooltip,xt as TooltipLocationX,Ct as TooltipLocationY,gt as TooltipPositionEngine,Q as ValidationCode,Y as ValidationStatus,Kt as addModal,Tt as booleanFieldTypes,Ht as closeModal,zt as createColumn,d as ensureButtonConfig,C as ensureFieldConfig,At as extractI18nValue,It as extractPropValue,yt as fieldTypesWithOptions,St as fieldTypesWithoutClear,Et as fieldTypesWithoutUndo,vt as fieldsWithMultipleMode,V as getAnchorHref,Ko as getDefaultValues,Rt as lktDebug,jt as openModal,Nt as prepareResourceData,wt as textFieldTypes,Lt as textFieldTypesWithOptions};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.0.47",
3
+ "version": "1.0.50",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",