lkt-vue-kernel 1.0.12 → 1.0.13
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 +6 -3
- package/dist/index.js +15 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -181,10 +181,11 @@ interface ButtonConfig {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
declare class LktSettings {
|
|
184
|
-
static
|
|
184
|
+
static debugEnabled: boolean;
|
|
185
|
+
static debugMode(enabled?: boolean): typeof LktSettings;
|
|
185
186
|
static defaultConfirmButton: Partial<ButtonConfig>;
|
|
186
|
-
static defaultCancelButton: Partial<ButtonConfig>;
|
|
187
187
|
static setDefaultConfirmButton(button: Partial<ButtonConfig>): typeof LktSettings;
|
|
188
|
+
static defaultCancelButton: Partial<ButtonConfig>;
|
|
188
189
|
static setDefaultCancelButton(button: Partial<ButtonConfig>): typeof LktSettings;
|
|
189
190
|
}
|
|
190
191
|
|
|
@@ -932,6 +933,8 @@ type ValidScanPropTarget = ScanPropTarget | ((...args: any[]) => ScanPropTarget)
|
|
|
932
933
|
declare const extractPropValue: (needle: ValidScanPropTarget, haystack: LktObject) => ValidScanPropTarget;
|
|
933
934
|
declare const extractI18nValue: (needle: string | number) => any;
|
|
934
935
|
|
|
936
|
+
declare const lktDebug: (component: string, ...args: any[]) => void;
|
|
937
|
+
|
|
935
938
|
/**
|
|
936
939
|
* Export common interfaces
|
|
937
940
|
*/
|
|
@@ -941,4 +944,4 @@ declare function getDefaultValues<T>(cls: {
|
|
|
941
944
|
lktDefaultValues: (keyof T)[];
|
|
942
945
|
}): Partial<T>;
|
|
943
946
|
|
|
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 };
|
|
947
|
+
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, lktDebug };
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
// src/settings/LktSettings.ts
|
|
2
2
|
var LktSettings = class _LktSettings {
|
|
3
|
-
static
|
|
3
|
+
static debugEnabled = false;
|
|
4
|
+
static debugMode(enabled = true) {
|
|
5
|
+
_LktSettings.debugEnabled = enabled;
|
|
6
|
+
return _LktSettings;
|
|
7
|
+
}
|
|
4
8
|
static defaultConfirmButton = {
|
|
5
9
|
text: "Confirm"
|
|
6
10
|
};
|
|
7
|
-
static defaultCancelButton = {
|
|
8
|
-
text: "Cancel"
|
|
9
|
-
};
|
|
10
11
|
static setDefaultConfirmButton(button) {
|
|
11
12
|
_LktSettings.defaultConfirmButton = button;
|
|
12
13
|
return _LktSettings;
|
|
13
14
|
}
|
|
15
|
+
static defaultCancelButton = {
|
|
16
|
+
text: "Cancel"
|
|
17
|
+
};
|
|
14
18
|
static setDefaultCancelButton(button) {
|
|
15
19
|
_LktSettings.defaultCancelButton = button;
|
|
16
20
|
return _LktSettings;
|
|
@@ -877,6 +881,11 @@ var extractI18nValue = (needle) => {
|
|
|
877
881
|
return txt;
|
|
878
882
|
};
|
|
879
883
|
|
|
884
|
+
// src/functions/debug-functions.ts
|
|
885
|
+
var lktDebug = (component, ...args) => {
|
|
886
|
+
if (LktSettings.debugEnabled) console.info("::lkt::", `[${component}] `, ...args);
|
|
887
|
+
};
|
|
888
|
+
|
|
880
889
|
// src/index.ts
|
|
881
890
|
function getDefaultValues(cls) {
|
|
882
891
|
const instance = new cls();
|
|
@@ -929,5 +938,6 @@ export {
|
|
|
929
938
|
TooltipPositionEngine,
|
|
930
939
|
extractI18nValue,
|
|
931
940
|
extractPropValue,
|
|
932
|
-
getDefaultValues
|
|
941
|
+
getDefaultValues,
|
|
942
|
+
lktDebug
|
|
933
943
|
};
|