lkt-vue-kernel 1.0.11 → 1.0.12

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
@@ -182,7 +182,6 @@ interface ButtonConfig {
182
182
 
183
183
  declare class LktSettings {
184
184
  static debug: boolean;
185
- static version: string;
186
185
  static defaultConfirmButton: Partial<ButtonConfig>;
187
186
  static defaultCancelButton: Partial<ButtonConfig>;
188
187
  static setDefaultConfirmButton(button: Partial<ButtonConfig>): typeof LktSettings;
@@ -332,6 +331,11 @@ interface FieldConfig {
332
331
  prop?: LktObject;
333
332
  }
334
333
 
334
+ declare enum ItemCrudView {
335
+ Inline = "inline",
336
+ Modal = "modal"
337
+ }
338
+
335
339
  declare enum ModalCallbackAction {
336
340
  Refresh = "refresh",
337
341
  Close = "close",
@@ -348,6 +352,96 @@ interface ModalCallbackConfig {
348
352
  args?: LktObject;
349
353
  }
350
354
 
355
+ declare enum ItemCrudType {
356
+ Create = "create",
357
+ Edit = "edit",
358
+ Read = "read"
359
+ }
360
+
361
+ declare enum ItemCrudButtonNavPosition {
362
+ Top = "top",
363
+ Bottom = "bottom"
364
+ }
365
+
366
+ declare enum ItemCrudButtonNavVisibility {
367
+ Changed = "changed",
368
+ Always = "always"
369
+ }
370
+
371
+ declare enum SaveType {
372
+ Manual = "manual",
373
+ Auto = "auto",
374
+ Delay = "delay"
375
+ }
376
+
377
+ interface SaveConfig {
378
+ type?: SaveType;
379
+ delay?: number;
380
+ }
381
+
382
+ interface ItemCrudConfig {
383
+ modelValue: LktObject;
384
+ editing: boolean;
385
+ type: ItemCrudType;
386
+ view: ItemCrudView;
387
+ editButton: ButtonConfig;
388
+ dropButton: ButtonConfig;
389
+ createButton: ButtonConfig;
390
+ updateButton: ButtonConfig;
391
+ modalConfig: ModalConfig;
392
+ saveConfig: SaveConfig;
393
+ title: string;
394
+ hiddenSave: boolean;
395
+ hiddenDrop: boolean;
396
+ hiddenButtons: boolean;
397
+ hideSwitchEdition: boolean;
398
+ readResource: string;
399
+ readData: LktObject;
400
+ saveValidator: Function;
401
+ beforeEmitUpdate: Function | undefined;
402
+ dataStateConfig: LktObject;
403
+ buttonNavPosition?: ItemCrudButtonNavPosition;
404
+ buttonNavVisibility?: ItemCrudButtonNavVisibility;
405
+ insideModal: boolean;
406
+ saveText: string;
407
+ saveIcon: string;
408
+ dropText: string;
409
+ dropIcon: string;
410
+ createResource: string;
411
+ updateResource: string;
412
+ dropResource: string;
413
+ createConfirm: string;
414
+ updateConfirm: string;
415
+ dropConfirm: string;
416
+ createConfirmData: LktObject;
417
+ updateConfirmData: LktObject;
418
+ dropConfirmData: LktObject;
419
+ createDisabled: boolean;
420
+ updateDisabled: boolean;
421
+ dropDisabled: boolean;
422
+ createData: LktObject;
423
+ updateData: LktObject;
424
+ dropData: LktObject;
425
+ editModeText: string;
426
+ onCreate: Function | undefined;
427
+ onUpdate: Function | undefined;
428
+ onCreateModalCallbacks: ModalCallbackConfig[];
429
+ onUpdateModalCallbacks: ModalCallbackConfig[];
430
+ onDropModalCallbacks: ModalCallbackConfig[];
431
+ isCreate: boolean;
432
+ size: string;
433
+ preTitle: string;
434
+ showClose: boolean;
435
+ disabledClose: boolean;
436
+ disabledVeilClick: boolean;
437
+ modalName: string;
438
+ modalKey: string;
439
+ zIndex: number;
440
+ editedCloseConfirm: string;
441
+ editedCloseConfirmKey: string | number;
442
+ beforeClose: Function | undefined;
443
+ }
444
+
351
445
  declare enum PaginatorType {
352
446
  Pages = "pages",
353
447
  PrevNext = "prev-next",
@@ -847,4 +941,4 @@ declare function getDefaultValues<T>(cls: {
847
941
  lktDefaultValues: (keyof T)[];
848
942
  }): Partial<T>;
849
943
 
850
- export { Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, type IsDisabledChecker, type IsDisabledCheckerArgs, LktItem, type LktObject, LktSettings, LktStrictItem, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalType, MultipleOptionsDisplay, Option, type OptionConfig, Paginator, type PaginatorConfig, PaginatorType, SafeString, type ScanPropTarget, SortDirection, Table, type TableConfig, TablePermission, TableRowType, TableType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type ValidBeforeCloseModal, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, type ValidIsDisabledValue, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidPaginatorConfig, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTablePermission, type ValidTableRowTypeValue, extractI18nValue, extractPropValue, getDefaultValues };
944
+ export { Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudType, ItemCrudView, LktItem, type LktObject, LktSettings, LktStrictItem, Modal, ModalCallbackAction, type ModalCallbackConfig, type ModalConfig, ModalType, MultipleOptionsDisplay, Option, type OptionConfig, Paginator, type PaginatorConfig, PaginatorType, SafeString, type SaveConfig, SaveType, type ScanPropTarget, SortDirection, Table, type TableConfig, TablePermission, TableRowType, TableType, ToggleMode, Tooltip, type TooltipConfig, TooltipLocationX, TooltipLocationY, TooltipPositionEngine, type ValidBeforeCloseModal, type ValidColSpan, type ValidCustomSlot, type ValidDragConfig, type ValidFieldMinMax, type ValidFieldValue, type ValidIsDisabledValue, type ValidModalKey, type ValidModalName, type ValidOptionValue, type ValidPaginatorConfig, type ValidSafeStringValue, type ValidScanPropTarget, type ValidTabIndex, type ValidTablePermission, type ValidTableRowTypeValue, extractI18nValue, extractPropValue, getDefaultValues };
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // src/settings/LktSettings.ts
2
2
  var LktSettings = class _LktSettings {
3
3
  static debug = false;
4
- static version = "0.0.1";
5
4
  static defaultConfirmButton = {
6
5
  text: "Confirm"
7
6
  };
@@ -780,6 +779,35 @@ var Table = class extends LktItem {
780
779
  }
781
780
  };
782
781
 
782
+ // src/enums/ItemCrudButtonNavPosition.ts
783
+ var ItemCrudButtonNavPosition = /* @__PURE__ */ ((ItemCrudButtonNavPosition2) => {
784
+ ItemCrudButtonNavPosition2["Top"] = "top";
785
+ ItemCrudButtonNavPosition2["Bottom"] = "bottom";
786
+ return ItemCrudButtonNavPosition2;
787
+ })(ItemCrudButtonNavPosition || {});
788
+
789
+ // src/enums/ItemCrudButtonNavVisibility.ts
790
+ var ItemCrudButtonNavVisibility = /* @__PURE__ */ ((ItemCrudButtonNavVisibility2) => {
791
+ ItemCrudButtonNavVisibility2["Changed"] = "changed";
792
+ ItemCrudButtonNavVisibility2["Always"] = "always";
793
+ return ItemCrudButtonNavVisibility2;
794
+ })(ItemCrudButtonNavVisibility || {});
795
+
796
+ // src/enums/ItemCrudType.ts
797
+ var ItemCrudType = /* @__PURE__ */ ((ItemCrudType2) => {
798
+ ItemCrudType2["Create"] = "create";
799
+ ItemCrudType2["Edit"] = "edit";
800
+ ItemCrudType2["Read"] = "read";
801
+ return ItemCrudType2;
802
+ })(ItemCrudType || {});
803
+
804
+ // src/enums/ItemCrudView.ts
805
+ var ItemCrudView = /* @__PURE__ */ ((ItemCrudView2) => {
806
+ ItemCrudView2["Inline"] = "inline";
807
+ ItemCrudView2["Modal"] = "modal";
808
+ return ItemCrudView2;
809
+ })(ItemCrudView || {});
810
+
783
811
  // src/enums/ModalCallbackAction.ts
784
812
  var ModalCallbackAction = /* @__PURE__ */ ((ModalCallbackAction2) => {
785
813
  ModalCallbackAction2["Refresh"] = "refresh";
@@ -797,6 +825,14 @@ var ModalType = /* @__PURE__ */ ((ModalType2) => {
797
825
  return ModalType2;
798
826
  })(ModalType || {});
799
827
 
828
+ // src/enums/SaveType.ts
829
+ var SaveType = /* @__PURE__ */ ((SaveType2) => {
830
+ SaveType2["Manual"] = "manual";
831
+ SaveType2["Auto"] = "auto";
832
+ SaveType2["Delay"] = "delay";
833
+ return SaveType2;
834
+ })(SaveType || {});
835
+
800
836
  // src/enums/SortDirection.ts
801
837
  var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
802
838
  SortDirection2["Asc"] = "asc";
@@ -865,6 +901,10 @@ export {
865
901
  Field,
866
902
  FieldAutoValidationTrigger,
867
903
  FieldType,
904
+ ItemCrudButtonNavPosition,
905
+ ItemCrudButtonNavVisibility,
906
+ ItemCrudType,
907
+ ItemCrudView,
868
908
  LktItem,
869
909
  LktSettings,
870
910
  LktStrictItem,
@@ -876,6 +916,7 @@ export {
876
916
  Paginator,
877
917
  PaginatorType,
878
918
  SafeString,
919
+ SaveType,
879
920
  SortDirection,
880
921
  Table,
881
922
  TablePermission,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",