lkt-vue-kernel 1.0.21 → 1.0.23
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 +42 -16
- package/dist/index.js +1 -1245
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -184,24 +184,30 @@ interface TooltipConfig {
|
|
|
184
184
|
locationX?: TooltipLocationX;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
type ValidButtonDot = boolean | string | number;
|
|
188
|
+
|
|
187
189
|
interface ButtonConfig {
|
|
188
190
|
type?: ButtonType;
|
|
189
|
-
openTooltip?: boolean;
|
|
190
191
|
name?: string;
|
|
191
|
-
text?: string | number;
|
|
192
|
-
icon?: string;
|
|
193
|
-
class?: string;
|
|
194
|
-
containerClass?: string;
|
|
195
|
-
palette?: string;
|
|
196
192
|
value?: string;
|
|
197
193
|
disabled?: ValidIsDisabledValue;
|
|
194
|
+
openTooltip?: boolean;
|
|
198
195
|
loading?: boolean;
|
|
196
|
+
class?: string;
|
|
197
|
+
containerClass?: string;
|
|
199
198
|
wrapContent?: boolean;
|
|
199
|
+
text?: string | number;
|
|
200
|
+
icon?: string;
|
|
201
|
+
iconEnd?: string;
|
|
202
|
+
img?: string;
|
|
200
203
|
checked?: boolean;
|
|
201
204
|
textOn?: string | number | undefined;
|
|
202
205
|
textOff?: string | number | undefined;
|
|
203
206
|
iconOn?: string | number | undefined;
|
|
204
207
|
iconOff?: string | number | undefined;
|
|
208
|
+
iconEndOn?: string | number | undefined;
|
|
209
|
+
iconEndOff?: string | number | undefined;
|
|
210
|
+
dot?: ValidButtonDot;
|
|
205
211
|
anchor?: AnchorConfig | Anchor;
|
|
206
212
|
resource?: string;
|
|
207
213
|
resourceData?: LktObject;
|
|
@@ -212,20 +218,16 @@ interface ButtonConfig {
|
|
|
212
218
|
confirmModalKey?: ValidModalKey;
|
|
213
219
|
confirmData?: Partial<ModalConfig>;
|
|
214
220
|
modalCallbacks?: Array<ModalCallbackConfig>;
|
|
215
|
-
|
|
216
|
-
iconEnd?: string;
|
|
217
|
-
img?: string;
|
|
221
|
+
tooltip?: TooltipConfig;
|
|
218
222
|
splitIcon?: string;
|
|
219
223
|
showTooltipOnHover?: boolean;
|
|
220
224
|
showTooltipOnHoverDelay?: number;
|
|
221
225
|
hideTooltipOnLeave?: boolean;
|
|
222
|
-
tooltip?: TooltipConfig;
|
|
223
226
|
splitClass?: string;
|
|
224
|
-
clickRef?: Element | VueElement;
|
|
225
227
|
tabindex?: ValidTabIndex;
|
|
226
228
|
prop?: LktObject;
|
|
229
|
+
clickRef?: Element | VueElement;
|
|
227
230
|
onClick?: Function | undefined;
|
|
228
|
-
onConfirm?: Function | undefined;
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
declare class LktSettings {
|
|
@@ -245,6 +247,8 @@ declare class LktSettings {
|
|
|
245
247
|
static setDefaultDropButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
|
|
246
248
|
static defaultEditModeButton: Partial<ButtonConfig>;
|
|
247
249
|
static setDefaultEditModeButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
|
|
250
|
+
static defaultToggleButton: Partial<ButtonConfig>;
|
|
251
|
+
static setDefaultToggleButton(button: Partial<ButtonConfig>, override?: boolean): typeof LktSettings;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
declare enum FieldType {
|
|
@@ -304,8 +308,8 @@ interface AccordionConfig {
|
|
|
304
308
|
contentClass?: string;
|
|
305
309
|
iconRotation?: '90' | '180' | '-90' | '-180';
|
|
306
310
|
minHeight?: number | undefined;
|
|
307
|
-
toggleIconAtEnd?: boolean;
|
|
308
311
|
iconAtEnd?: boolean;
|
|
312
|
+
toggleIconAtEnd?: boolean;
|
|
309
313
|
}
|
|
310
314
|
|
|
311
315
|
declare enum ColumnType {
|
|
@@ -583,8 +587,10 @@ declare class Button extends LktItem implements ButtonConfig {
|
|
|
583
587
|
textOff: string | number | undefined;
|
|
584
588
|
iconOn: string | number | undefined;
|
|
585
589
|
iconOff: string | number | undefined;
|
|
590
|
+
iconEndOn: string | number | undefined;
|
|
591
|
+
iconEndOff: string | number | undefined;
|
|
586
592
|
icon: string;
|
|
587
|
-
|
|
593
|
+
dot: ValidButtonDot;
|
|
588
594
|
iconEnd: string;
|
|
589
595
|
img: string;
|
|
590
596
|
showTooltipOnHoverDelay: number;
|
|
@@ -599,7 +605,6 @@ declare class Button extends LktItem implements ButtonConfig {
|
|
|
599
605
|
tooltip?: TooltipConfig;
|
|
600
606
|
prop?: LktObject;
|
|
601
607
|
onClick?: Function | undefined;
|
|
602
|
-
onConfirm?: Function | undefined;
|
|
603
608
|
constructor(data?: Partial<ButtonConfig>);
|
|
604
609
|
isDisabled(): boolean | undefined;
|
|
605
610
|
}
|
|
@@ -890,6 +895,27 @@ declare class FieldValidation {
|
|
|
890
895
|
static createEqualTo(value: number | string, status?: ValidationStatus): FieldValidation;
|
|
891
896
|
}
|
|
892
897
|
|
|
898
|
+
declare class Accordion extends LktItem implements AccordionConfig {
|
|
899
|
+
static lktAllowUndefinedProps: string[];
|
|
900
|
+
static lktDefaultValues: (keyof AccordionConfig)[];
|
|
901
|
+
modelValue?: boolean;
|
|
902
|
+
type?: AccordionType;
|
|
903
|
+
toggleMode?: AccordionToggleMode;
|
|
904
|
+
actionButton?: ButtonConfig;
|
|
905
|
+
toggleButton?: ButtonConfig;
|
|
906
|
+
toggleOnClickIntro?: boolean;
|
|
907
|
+
toggleTimeout?: number;
|
|
908
|
+
title?: string;
|
|
909
|
+
icon?: string;
|
|
910
|
+
class?: string;
|
|
911
|
+
contentClass?: string;
|
|
912
|
+
iconRotation?: '90' | '180' | '-90' | '-180';
|
|
913
|
+
minHeight?: number | undefined;
|
|
914
|
+
iconAtEnd?: boolean;
|
|
915
|
+
toggleIconAtEnd?: boolean;
|
|
916
|
+
constructor(data?: Partial<AnchorConfig>);
|
|
917
|
+
}
|
|
918
|
+
|
|
893
919
|
declare class Tooltip extends LktItem implements TooltipConfig {
|
|
894
920
|
static lktDefaultValues: (keyof TooltipConfig)[];
|
|
895
921
|
modelValue: boolean;
|
|
@@ -1055,4 +1081,4 @@ declare function getDefaultValues<T>(cls: {
|
|
|
1055
1081
|
lktDefaultValues: (keyof T)[];
|
|
1056
1082
|
}): Partial<T>;
|
|
1057
1083
|
|
|
1058
|
-
export { type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, FieldValidation, type FieldValidationConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, 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, ValidationCode, ValidationStatus, booleanFieldTypes, createColumn, ensureButtonConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getDefaultValues, lktDebug, textFieldTypes, textFieldTypesWithOptions };
|
|
1084
|
+
export { Accordion, type AccordionConfig, AccordionToggleMode, AccordionType, Anchor, type AnchorConfig, AnchorType, type BeforeCloseModalData, Button, type ButtonConfig, ButtonType, Column, type ColumnConfig, ColumnType, type DragConfig, type EmptyModalKey, Field, FieldAutoValidationTrigger, type FieldConfig, FieldType, FieldValidation, type FieldValidationConfig, type IsDisabledChecker, type IsDisabledCheckerArgs, ItemCrud, ItemCrudButtonNavPosition, ItemCrudButtonNavVisibility, type ItemCrudConfig, ItemCrudMode, 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 ValidButtonDot, 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, ValidationCode, ValidationStatus, booleanFieldTypes, createColumn, ensureButtonConfig, extractI18nValue, extractPropValue, fieldTypesWithOptions, fieldTypesWithoutClear, fieldTypesWithoutUndo, fieldsWithMultipleMode, getDefaultValues, lktDebug, textFieldTypes, textFieldTypesWithOptions };
|