lkt-vue-kernel 1.0.10 → 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
@@ -1,11 +1,193 @@
1
- import { DataState } from 'lkt-data-state';
2
1
  import { VueElement, Component } from 'vue';
3
2
  import { RouteLocationRaw } from 'vue-router';
3
+ import { DataState } from 'lkt-data-state';
4
4
 
5
5
  interface LktObject {
6
6
  [key: string | number]: any;
7
7
  }
8
8
 
9
+ declare const enum ButtonType {
10
+ Button = "button",// Default
11
+ Submit = "submit",// Form submit
12
+ Reset = "reset",
13
+ Anchor = "anchor",// Turns on anchor mode
14
+ Content = "content",// No click event
15
+ Switch = "switch",// Has a visible boolean state
16
+ HiddenSwitch = "hidden-switch",// Has a hidden boolean state
17
+ Split = "split",// Split button, content always generated
18
+ SplitLazy = "split-lazy",// Split button, contents generated after first open
19
+ SplitEver = "split-ever",// Split button, contents generated each time it's clicked
20
+ Tooltip = "tooltip",// Tooltip button, content always generated
21
+ TooltipLazy = "tooltip-lazy",// Tooltip button, contents generated after first open
22
+ TooltipEver = "tooltip-ever"
23
+ }
24
+
25
+ declare enum AnchorType {
26
+ Href = "href",// Vanilla JS+HTML anchor
27
+ RouterLink = "router-link",// For vue-router integration
28
+ RouterLinkBack = "router-link-back",// For vue-router back navigation
29
+ Mail = "mail",// Triggers OS mail integration
30
+ Tel = "tel",// Triggers OS phone integration
31
+ Tab = "tab",// New tab, similar to target="_blank"
32
+ Download = "download",// Download link
33
+ Action = "action",// Performs an action, without route changes
34
+ Legacy = ""
35
+ }
36
+
37
+ type ValidModalName = string | Function | undefined;
38
+
39
+ type EmptyModalKey = '_';
40
+
41
+ type ValidModalKey = string | Function | EmptyModalKey;
42
+
43
+ type BeforeCloseModalData = {
44
+ modalName: ValidModalKey;
45
+ modalKey: ValidModalKey;
46
+ item?: LktObject;
47
+ };
48
+
49
+ type ValidBeforeCloseModal = Function | undefined | ((data: BeforeCloseModalData) => void);
50
+
51
+ declare enum ModalType {
52
+ Modal = "modal",
53
+ Confirm = "confirm"
54
+ }
55
+
56
+ interface ModalConfig extends LktObject {
57
+ type?: ModalType;
58
+ size?: string;
59
+ preTitle?: string;
60
+ preTitleIcon?: string;
61
+ title?: string;
62
+ closeIcon?: string;
63
+ closeConfirm?: ValidModalName;
64
+ closeConfirmKey?: ValidModalKey;
65
+ showClose?: boolean;
66
+ disabledClose?: boolean;
67
+ disabledVeilClick?: boolean;
68
+ hiddenFooter?: boolean;
69
+ modalName?: ValidModalName;
70
+ modalKey?: ValidModalKey;
71
+ zIndex?: number;
72
+ beforeClose?: ValidBeforeCloseModal;
73
+ item?: LktObject;
74
+ confirmButton?: Partial<ButtonConfig>;
75
+ cancelButton?: Partial<ButtonConfig>;
76
+ }
77
+
78
+ interface AnchorConfig {
79
+ type?: AnchorType;
80
+ to?: RouteLocationRaw | string;
81
+ class?: string;
82
+ isActive?: boolean;
83
+ downloadFileName?: string;
84
+ disabled?: boolean;
85
+ onClick?: Function | undefined;
86
+ confirmModal?: ValidModalName;
87
+ confirmModalKey?: ValidModalKey;
88
+ confirmData?: ModalConfig;
89
+ imposter?: boolean;
90
+ external?: boolean;
91
+ }
92
+
93
+ type ValidTabIndex = string | number | undefined;
94
+
95
+ declare class LktItem implements LktObject {
96
+ static lktAllowUndefinedProps: string[];
97
+ static lktExcludedProps: string[];
98
+ static lktDateProps: string[];
99
+ static lktStrictItem: boolean;
100
+ static lktDefaultValues: (keyof LktObject)[];
101
+ constructor(data?: LktObject);
102
+ feed(data?: LktObject, target?: this): void;
103
+ assignProp(key: string, value: any): void;
104
+ }
105
+
106
+ declare class Anchor extends LktItem implements AnchorConfig {
107
+ static lktAllowUndefinedProps: string[];
108
+ static lktDefaultValues: (keyof AnchorConfig)[];
109
+ type: AnchorType;
110
+ to?: RouteLocationRaw | string;
111
+ class: string;
112
+ isActive: boolean;
113
+ downloadFileName: string;
114
+ disabled: boolean;
115
+ onClick: Function | undefined;
116
+ confirmModal: ValidModalName;
117
+ confirmModalKey: ValidModalKey;
118
+ confirmData: LktObject;
119
+ imposter: boolean;
120
+ external: boolean;
121
+ getHref(): string;
122
+ constructor(data?: Partial<AnchorConfig>);
123
+ }
124
+
125
+ declare enum TooltipPositionEngine {
126
+ Fixed = "fixed",
127
+ Absolute = "absolute"
128
+ }
129
+
130
+ interface IsDisabledCheckerArgs {
131
+ value?: any;
132
+ dataState?: DataState;
133
+ }
134
+
135
+ type IsDisabledChecker = ((args?: IsDisabledCheckerArgs) => boolean);
136
+
137
+ type ValidIsDisabledValue = boolean | undefined | IsDisabledChecker;
138
+
139
+ interface ButtonConfig {
140
+ type?: ButtonType;
141
+ checked?: boolean;
142
+ openTooltip?: boolean;
143
+ name?: string;
144
+ text?: string | number;
145
+ icon?: string;
146
+ class?: string;
147
+ containerClass?: string;
148
+ palette?: string;
149
+ value?: string;
150
+ disabled?: ValidIsDisabledValue;
151
+ loading?: boolean;
152
+ wrapContent?: boolean;
153
+ anchor?: AnchorConfig | Anchor;
154
+ resource?: string;
155
+ resourceData?: LktObject;
156
+ modal?: ValidModalName;
157
+ modalKey?: ValidModalKey;
158
+ modalData?: Partial<ModalConfig>;
159
+ confirmModal?: ValidModalName;
160
+ confirmModalKey?: ValidModalKey;
161
+ confirmData?: Partial<ModalConfig>;
162
+ iconDot?: boolean | string | number;
163
+ iconEnd?: string;
164
+ img?: string;
165
+ splitIcon?: string;
166
+ tooltipEngine?: TooltipPositionEngine;
167
+ showTooltipOnHover?: boolean;
168
+ showTooltipOnHoverDelay?: number;
169
+ hideTooltipOnLeave?: boolean;
170
+ tooltipWindowMargin?: number;
171
+ tooltipReferrerMargin?: number;
172
+ tooltipClass?: string;
173
+ tooltipLocationY?: string;
174
+ tooltipLocationX?: string;
175
+ splitClass?: string;
176
+ clickRef?: Element | VueElement;
177
+ tabindex?: ValidTabIndex;
178
+ prop?: LktObject;
179
+ onClick?: Function | undefined;
180
+ onConfirm?: Function | undefined;
181
+ }
182
+
183
+ declare class LktSettings {
184
+ static debug: boolean;
185
+ static defaultConfirmButton: Partial<ButtonConfig>;
186
+ static defaultCancelButton: Partial<ButtonConfig>;
187
+ static setDefaultConfirmButton(button: Partial<ButtonConfig>): typeof LktSettings;
188
+ static setDefaultCancelButton(button: Partial<ButtonConfig>): typeof LktSettings;
189
+ }
190
+
9
191
  declare enum FieldType {
10
192
  Text = "text",
11
193
  Email = "email",
@@ -40,19 +222,6 @@ interface OptionConfig {
40
222
  modal?: string | Function;
41
223
  }
42
224
 
43
- declare class LktItem implements LktObject {
44
- static lktAllowUndefinedProps: string[];
45
- static lktExcludedProps: string[];
46
- static lktDateProps: string[];
47
- static lktStrictItem: boolean;
48
- static lktDefaultValues: (keyof LktObject)[];
49
- constructor(data?: LktObject);
50
- feed(data?: LktObject, target?: this): void;
51
- assignProp(key: string, value: any): void;
52
- }
53
-
54
- type ValidModalName = string | Function | undefined;
55
-
56
225
  declare class Option extends LktItem implements OptionConfig {
57
226
  value: ValidOptionValue;
58
227
  label: string;
@@ -72,8 +241,6 @@ declare enum MultipleOptionsDisplay {
72
241
  Count = "count"
73
242
  }
74
243
 
75
- type ValidTabIndex = string | number | undefined;
76
-
77
244
  declare enum FieldAutoValidationTrigger {
78
245
  None = "",
79
246
  Focus = "focus",
@@ -164,9 +331,9 @@ interface FieldConfig {
164
331
  prop?: LktObject;
165
332
  }
166
333
 
167
- interface IsDisabledCheckerArgs {
168
- value?: any;
169
- dataState?: DataState;
334
+ declare enum ItemCrudView {
335
+ Inline = "inline",
336
+ Modal = "modal"
170
337
  }
171
338
 
172
339
  declare enum ModalCallbackAction {
@@ -177,10 +344,6 @@ declare enum ModalCallbackAction {
177
344
  Open = "open"
178
345
  }
179
346
 
180
- type EmptyModalKey = '_';
181
-
182
- type ValidModalKey = string | Function | EmptyModalKey;
183
-
184
347
  interface ModalCallbackConfig {
185
348
  modalName: ValidModalName;
186
349
  modalKey?: ValidModalKey;
@@ -189,154 +352,94 @@ interface ModalCallbackConfig {
189
352
  args?: LktObject;
190
353
  }
191
354
 
192
- type BeforeCloseModalData = {
193
- modalName: ValidModalKey;
194
- modalKey: ValidModalKey;
195
- item?: LktObject;
196
- };
197
-
198
- type ValidBeforeCloseModal = Function | undefined | ((data: BeforeCloseModalData) => void);
199
-
200
- declare enum ModalType {
201
- Modal = "modal",
202
- Confirm = "confirm"
203
- }
204
-
205
- declare const enum ButtonType {
206
- Button = "button",// Default
207
- Submit = "submit",// Form submit
208
- Reset = "reset",
209
- Anchor = "anchor",// Turns on anchor mode
210
- Content = "content",// No click event
211
- Switch = "switch",// Has a visible boolean state
212
- HiddenSwitch = "hidden-switch",// Has a hidden boolean state
213
- Split = "split",// Split button, content always generated
214
- SplitLazy = "split-lazy",// Split button, contents generated after first open
215
- SplitEver = "split-ever",// Split button, contents generated each time it's clicked
216
- Tooltip = "tooltip",// Tooltip button, content always generated
217
- TooltipLazy = "tooltip-lazy",// Tooltip button, contents generated after first open
218
- TooltipEver = "tooltip-ever"
219
- }
220
-
221
- declare enum AnchorType {
222
- Href = "href",// Vanilla JS+HTML anchor
223
- RouterLink = "router-link",// For vue-router integration
224
- RouterLinkBack = "router-link-back",// For vue-router back navigation
225
- Mail = "mail",// Triggers OS mail integration
226
- Tel = "tel",// Triggers OS phone integration
227
- Tab = "tab",// New tab, similar to target="_blank"
228
- Download = "download",// Download link
229
- Action = "action",// Performs an action, without route changes
230
- Legacy = ""
355
+ declare enum ItemCrudType {
356
+ Create = "create",
357
+ Edit = "edit",
358
+ Read = "read"
231
359
  }
232
360
 
233
- interface AnchorConfig {
234
- type?: AnchorType;
235
- to?: RouteLocationRaw | string;
236
- class?: string;
237
- isActive?: boolean;
238
- downloadFileName?: string;
239
- disabled?: boolean;
240
- onClick?: Function | undefined;
241
- confirmModal?: ValidModalName;
242
- confirmModalKey?: ValidModalKey;
243
- confirmData?: ModalConfig;
244
- imposter?: boolean;
245
- external?: boolean;
361
+ declare enum ItemCrudButtonNavPosition {
362
+ Top = "top",
363
+ Bottom = "bottom"
246
364
  }
247
365
 
248
- declare class Anchor extends LktItem implements AnchorConfig {
249
- static lktAllowUndefinedProps: string[];
250
- static lktDefaultValues: (keyof AnchorConfig)[];
251
- type: AnchorType;
252
- to?: RouteLocationRaw | string;
253
- class: string;
254
- isActive: boolean;
255
- downloadFileName: string;
256
- disabled: boolean;
257
- onClick: Function | undefined;
258
- confirmModal: ValidModalName;
259
- confirmModalKey: ValidModalKey;
260
- confirmData: LktObject;
261
- imposter: boolean;
262
- external: boolean;
263
- getHref(): string;
264
- constructor(data?: Partial<AnchorConfig>);
366
+ declare enum ItemCrudButtonNavVisibility {
367
+ Changed = "changed",
368
+ Always = "always"
265
369
  }
266
370
 
267
- declare enum TooltipPositionEngine {
268
- Fixed = "fixed",
269
- Absolute = "absolute"
371
+ declare enum SaveType {
372
+ Manual = "manual",
373
+ Auto = "auto",
374
+ Delay = "delay"
270
375
  }
271
376
 
272
- type IsDisabledChecker = ((args?: IsDisabledCheckerArgs) => boolean);
273
-
274
- type ValidIsDisabledValue = boolean | undefined | IsDisabledChecker;
275
-
276
- interface ButtonConfig {
277
- type?: ButtonType;
278
- checked?: boolean;
279
- openTooltip?: boolean;
280
- name?: string;
281
- text?: string | number;
282
- icon?: string;
283
- class?: string;
284
- containerClass?: string;
285
- palette?: string;
286
- value?: string;
287
- disabled?: ValidIsDisabledValue;
288
- loading?: boolean;
289
- wrapContent?: boolean;
290
- anchor?: AnchorConfig | Anchor;
291
- resource?: string;
292
- resourceData?: LktObject;
293
- modal?: ValidModalName;
294
- modalKey?: ValidModalKey;
295
- modalData?: Partial<ModalConfig>;
296
- confirmModal?: ValidModalName;
297
- confirmModalKey?: ValidModalKey;
298
- confirmData?: Partial<ModalConfig>;
299
- iconDot?: boolean | string | number;
300
- iconEnd?: string;
301
- img?: string;
302
- splitIcon?: string;
303
- tooltipEngine?: TooltipPositionEngine;
304
- showTooltipOnHover?: boolean;
305
- showTooltipOnHoverDelay?: number;
306
- hideTooltipOnLeave?: boolean;
307
- tooltipWindowMargin?: number;
308
- tooltipReferrerMargin?: number;
309
- tooltipClass?: string;
310
- tooltipLocationY?: string;
311
- tooltipLocationX?: string;
312
- splitClass?: string;
313
- clickRef?: Element | VueElement;
314
- tabindex?: ValidTabIndex;
315
- prop?: LktObject;
316
- onClick?: Function | undefined;
317
- onConfirm?: Function | undefined;
377
+ interface SaveConfig {
378
+ type?: SaveType;
379
+ delay?: number;
318
380
  }
319
381
 
320
- interface ModalConfig extends LktObject {
321
- type?: ModalType;
322
- size?: string;
323
- preTitle?: string;
324
- preTitleIcon?: string;
325
- title?: string;
326
- closeIcon?: string;
327
- closeConfirm?: ValidModalName;
328
- closeConfirmKey?: ValidModalKey;
329
- showClose?: boolean;
330
- disabledClose?: boolean;
331
- disabledVeilClick?: boolean;
332
- hiddenFooter?: boolean;
333
- modalName?: ValidModalName;
334
- modalKey?: ValidModalKey;
335
- zIndex?: number;
336
- beforeClose?: ValidBeforeCloseModal;
337
- item?: LktObject;
338
- confirmButton?: Partial<ButtonConfig>;
339
- cancelButton?: Partial<ButtonConfig>;
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;
340
443
  }
341
444
 
342
445
  declare enum PaginatorType {
@@ -827,7 +930,7 @@ type ValidCustomSlot = string | Component | undefined;
827
930
  type ValidScanPropTarget = ScanPropTarget | ((...args: any[]) => ScanPropTarget);
828
931
 
829
932
  declare const extractPropValue: (needle: ValidScanPropTarget, haystack: LktObject) => ValidScanPropTarget;
830
- declare const extractI18nValue: (needle: string) => any;
933
+ declare const extractI18nValue: (needle: string | number) => any;
831
934
 
832
935
  /**
833
936
  * Export common interfaces
@@ -838,4 +941,4 @@ declare function getDefaultValues<T>(cls: {
838
941
  lktDefaultValues: (keyof T)[];
839
942
  }): Partial<T>;
840
943
 
841
- 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, 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,3 +1,22 @@
1
+ // src/settings/LktSettings.ts
2
+ var LktSettings = class _LktSettings {
3
+ static debug = false;
4
+ static defaultConfirmButton = {
5
+ text: "Confirm"
6
+ };
7
+ static defaultCancelButton = {
8
+ text: "Cancel"
9
+ };
10
+ static setDefaultConfirmButton(button) {
11
+ _LktSettings.defaultConfirmButton = button;
12
+ return _LktSettings;
13
+ }
14
+ static setDefaultCancelButton(button) {
15
+ _LktSettings.defaultCancelButton = button;
16
+ return _LktSettings;
17
+ }
18
+ };
19
+
1
20
  // src/instances/LktItem.ts
2
21
  var skipDataProps = [
3
22
  "lktDateProps",
@@ -760,6 +779,35 @@ var Table = class extends LktItem {
760
779
  }
761
780
  };
762
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
+
763
811
  // src/enums/ModalCallbackAction.ts
764
812
  var ModalCallbackAction = /* @__PURE__ */ ((ModalCallbackAction2) => {
765
813
  ModalCallbackAction2["Refresh"] = "refresh";
@@ -777,6 +825,14 @@ var ModalType = /* @__PURE__ */ ((ModalType2) => {
777
825
  return ModalType2;
778
826
  })(ModalType || {});
779
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
+
780
836
  // src/enums/SortDirection.ts
781
837
  var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
782
838
  SortDirection2["Asc"] = "asc";
@@ -814,10 +870,11 @@ var extractPropValue = (needle, haystack) => {
814
870
  return needle;
815
871
  };
816
872
  var extractI18nValue = (needle) => {
817
- if (needle.startsWith("__:")) {
818
- return __(needle.substring(3));
873
+ let txt = String(needle);
874
+ if (txt.startsWith("__:")) {
875
+ return __(txt.substring(3));
819
876
  }
820
- return needle;
877
+ return txt;
821
878
  };
822
879
 
823
880
  // src/index.ts
@@ -844,7 +901,12 @@ export {
844
901
  Field,
845
902
  FieldAutoValidationTrigger,
846
903
  FieldType,
904
+ ItemCrudButtonNavPosition,
905
+ ItemCrudButtonNavVisibility,
906
+ ItemCrudType,
907
+ ItemCrudView,
847
908
  LktItem,
909
+ LktSettings,
848
910
  LktStrictItem,
849
911
  Modal,
850
912
  ModalCallbackAction,
@@ -854,6 +916,7 @@ export {
854
916
  Paginator,
855
917
  PaginatorType,
856
918
  SafeString,
919
+ SaveType,
857
920
  SortDirection,
858
921
  Table,
859
922
  TablePermission,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-vue-kernel",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "LKT Vue Kernel",
5
5
  "keywords": [
6
6
  "lkt",