@tenorlab/vue-dashboard 1.6.4 → 1.6.6
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/core.d.ts +13 -1
- package/dist/vue-dashboard.d.ts +41 -4
- package/dist/vue-dashboard.es.js +831 -783
- package/package.json +2 -2
package/dist/core.d.ts
CHANGED
|
@@ -197,6 +197,7 @@ export declare interface IDashboardConfig {
|
|
|
197
197
|
responsiveGrid: boolean;
|
|
198
198
|
widgets: TDashboardWidgetKey[];
|
|
199
199
|
childWidgetsConfig: IChildWidgetConfigEntry[];
|
|
200
|
+
savedProps?: IWidgetSavedProps[];
|
|
200
201
|
cssSettings: IDashboardSettingEntry[];
|
|
201
202
|
_version?: number;
|
|
202
203
|
_stateDescription?: string;
|
|
@@ -282,7 +283,10 @@ export declare interface IDashboardWidgetPropsBase<TExtraProps = any> {
|
|
|
282
283
|
noShadow?: boolean;
|
|
283
284
|
noBorder?: boolean;
|
|
284
285
|
noPadding?: boolean;
|
|
286
|
+
noCollapse?: boolean;
|
|
285
287
|
direction?: TWidgetDirection;
|
|
288
|
+
widgetSavedProps?: IWidgetSavedProps;
|
|
289
|
+
meta?: TWidgetMetaInfoBase;
|
|
286
290
|
extraProps?: TExtraProps;
|
|
287
291
|
}
|
|
288
292
|
|
|
@@ -315,6 +319,12 @@ export declare interface IDynamicWidgetCatalogEntryBase<TFrameworkElementType =
|
|
|
315
319
|
loader?: TWidgetFactoryBase<TFrameworkComponentType>;
|
|
316
320
|
}
|
|
317
321
|
|
|
322
|
+
export declare interface IWidgetSavedProps {
|
|
323
|
+
parentWidgetKey?: TDashboardWidgetKey;
|
|
324
|
+
widgetKey: TDashboardWidgetKey;
|
|
325
|
+
isCollapsed?: boolean;
|
|
326
|
+
}
|
|
327
|
+
|
|
318
328
|
/**
|
|
319
329
|
* @name localWidgetDiscovery
|
|
320
330
|
* @description Scans local directories for widgets.
|
|
@@ -537,8 +547,10 @@ export declare type TWidgetMetaInfoBase<TFrameworkElementType = any> = {
|
|
|
537
547
|
description: string;
|
|
538
548
|
categories: TWidgetCategory[];
|
|
539
549
|
noDuplicatedWidgets?: boolean;
|
|
540
|
-
icon?: TFrameworkElementType | undefined;
|
|
550
|
+
icon?: TFrameworkElementType | string | undefined;
|
|
541
551
|
externalDependencies: string[];
|
|
552
|
+
tags?: string[];
|
|
553
|
+
noCollapse?: boolean;
|
|
542
554
|
};
|
|
543
555
|
|
|
544
556
|
/**
|
package/dist/vue-dashboard.d.ts
CHANGED
|
@@ -17,10 +17,12 @@ declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {},
|
|
|
17
17
|
removeClick: (widgetKey: string, parentWidgetKey?: string | undefined) => any;
|
|
18
18
|
moveClick: (direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any;
|
|
19
19
|
selectContainer: (containerKey?: string | undefined) => any;
|
|
20
|
+
savedPropsChanged: (savedProps: IWidgetSavedProps) => any;
|
|
20
21
|
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
21
22
|
onRemoveClick?: ((widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
22
23
|
onMoveClick?: ((direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
23
24
|
onSelectContainer?: ((containerKey?: string | undefined) => any) | undefined;
|
|
25
|
+
onSavedPropsChanged?: ((savedProps: IWidgetSavedProps) => any) | undefined;
|
|
24
26
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
27
|
|
|
26
28
|
declare const __VLS_component_3: DefineComponent<IButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -308,6 +310,11 @@ declare const computedGetters: {
|
|
|
308
310
|
parentWidgetKey: TDashboardWidgetKey;
|
|
309
311
|
widgetKey: TDashboardWidgetKey;
|
|
310
312
|
}[];
|
|
313
|
+
savedProps?: {
|
|
314
|
+
parentWidgetKey?: TDashboardWidgetKey | undefined;
|
|
315
|
+
widgetKey: TDashboardWidgetKey;
|
|
316
|
+
isCollapsed?: boolean | undefined;
|
|
317
|
+
}[] | undefined;
|
|
311
318
|
cssSettings: {
|
|
312
319
|
key: string;
|
|
313
320
|
name: string;
|
|
@@ -334,6 +341,11 @@ declare const computedGetters: {
|
|
|
334
341
|
parentWidgetKey: TDashboardWidgetKey;
|
|
335
342
|
widgetKey: TDashboardWidgetKey;
|
|
336
343
|
}[];
|
|
344
|
+
savedProps?: {
|
|
345
|
+
parentWidgetKey?: TDashboardWidgetKey | undefined;
|
|
346
|
+
widgetKey: TDashboardWidgetKey;
|
|
347
|
+
isCollapsed?: boolean | undefined;
|
|
348
|
+
}[] | undefined;
|
|
337
349
|
cssSettings: {
|
|
338
350
|
key: string;
|
|
339
351
|
name: string;
|
|
@@ -370,10 +382,12 @@ export declare const DynamicWidgetLoader: DefineComponent<__VLS_Props, {}, {}, {
|
|
|
370
382
|
removeClick: (widgetKey: string, parentWidgetKey?: string | undefined) => any;
|
|
371
383
|
moveClick: (direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any;
|
|
372
384
|
selectContainer: (containerKey?: string | undefined) => any;
|
|
385
|
+
savedPropsChanged: (savedProps: IWidgetSavedProps) => any;
|
|
373
386
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
374
387
|
onRemoveClick?: ((widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
375
388
|
onMoveClick?: ((direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
376
389
|
onSelectContainer?: ((containerKey?: string | undefined) => any) | undefined;
|
|
390
|
+
onSavedPropsChanged?: ((savedProps: IWidgetSavedProps) => any) | undefined;
|
|
377
391
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
378
392
|
|
|
379
393
|
export declare const EditIcon: DefineComponent<TSvgIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TSvgIconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
@@ -442,6 +456,7 @@ export declare interface IDashboardConfig {
|
|
|
442
456
|
responsiveGrid: boolean;
|
|
443
457
|
widgets: TDashboardWidgetKey[];
|
|
444
458
|
childWidgetsConfig: IChildWidgetConfigEntry[];
|
|
459
|
+
savedProps?: IWidgetSavedProps[];
|
|
445
460
|
cssSettings: IDashboardSettingEntry[];
|
|
446
461
|
_version?: number;
|
|
447
462
|
_stateDescription?: string;
|
|
@@ -563,7 +578,10 @@ export declare interface IDashboardWidgetPropsBase<TExtraProps = any> {
|
|
|
563
578
|
noShadow?: boolean;
|
|
564
579
|
noBorder?: boolean;
|
|
565
580
|
noPadding?: boolean;
|
|
581
|
+
noCollapse?: boolean;
|
|
566
582
|
direction?: TWidgetDirection;
|
|
583
|
+
widgetSavedProps?: IWidgetSavedProps;
|
|
584
|
+
meta?: TWidgetMetaInfoBase;
|
|
567
585
|
extraProps?: TExtraProps;
|
|
568
586
|
}
|
|
569
587
|
|
|
@@ -628,6 +646,12 @@ export declare interface ITooltipProps {
|
|
|
628
646
|
title: string;
|
|
629
647
|
}
|
|
630
648
|
|
|
649
|
+
declare interface IWidgetSavedProps {
|
|
650
|
+
parentWidgetKey?: TDashboardWidgetKey;
|
|
651
|
+
widgetKey: TDashboardWidgetKey;
|
|
652
|
+
isCollapsed?: boolean;
|
|
653
|
+
}
|
|
654
|
+
|
|
631
655
|
export declare const ListItem: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
632
656
|
|
|
633
657
|
export declare const MinusCircleIcon: DefineComponent<TSvgIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TSvgIconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
@@ -725,6 +749,7 @@ declare type TDynamicWidgetLoaderProps<TExtraProps = any> = {
|
|
|
725
749
|
parentWidgetKey?: TDashboardWidgetKey;
|
|
726
750
|
targetContainerKey?: TDashboardWidgetKey;
|
|
727
751
|
childWidgetsConfig?: IChildWidgetConfigEntry[];
|
|
752
|
+
savedProps?: IWidgetSavedProps[];
|
|
728
753
|
widgetCatalog: TDashboardWidgetCatalog;
|
|
729
754
|
isEditing: boolean;
|
|
730
755
|
extraProps?: TExtraProps;
|
|
@@ -850,6 +875,7 @@ export declare type TWidgetEmits = {
|
|
|
850
875
|
(event: 'removeClick', widgetKey: TDashboardWidgetKey, parentWidgetKey?: TDashboardWidgetKey): void;
|
|
851
876
|
(event: 'moveClick', direction: -1 | 1, widgetKey: TDashboardWidgetKey, parentWidgetKey?: TDashboardWidgetKey): void;
|
|
852
877
|
(event: 'selectContainer', containerKey?: TDashboardWidgetKey): void;
|
|
878
|
+
(event: 'savedPropsChanged', savedProps: IWidgetSavedProps): void;
|
|
853
879
|
};
|
|
854
880
|
|
|
855
881
|
export declare type TWidgetErrorExtraProps = {
|
|
@@ -918,8 +944,10 @@ export declare type TWidgetMetaInfoBase<TFrameworkElementType = any> = {
|
|
|
918
944
|
description: string;
|
|
919
945
|
categories: TWidgetCategory[];
|
|
920
946
|
noDuplicatedWidgets?: boolean;
|
|
921
|
-
icon?: TFrameworkElementType | undefined;
|
|
947
|
+
icon?: TFrameworkElementType | string | undefined;
|
|
922
948
|
externalDependencies: string[];
|
|
949
|
+
tags?: string[];
|
|
950
|
+
noCollapse?: boolean;
|
|
923
951
|
};
|
|
924
952
|
|
|
925
953
|
declare type TWidgetsCatalogFlyoutProps = {
|
|
@@ -985,6 +1013,11 @@ export declare const useDashboardUndoService: () => {
|
|
|
985
1013
|
readonly parentWidgetKey: TDashboardWidgetKey;
|
|
986
1014
|
readonly widgetKey: TDashboardWidgetKey;
|
|
987
1015
|
}[];
|
|
1016
|
+
readonly savedProps?: readonly {
|
|
1017
|
+
readonly parentWidgetKey?: TDashboardWidgetKey | undefined;
|
|
1018
|
+
readonly widgetKey: TDashboardWidgetKey;
|
|
1019
|
+
readonly isCollapsed?: boolean | undefined;
|
|
1020
|
+
}[] | undefined;
|
|
988
1021
|
readonly cssSettings: readonly {
|
|
989
1022
|
readonly key: string;
|
|
990
1023
|
readonly name: string;
|
|
@@ -1017,6 +1050,7 @@ export declare function useWidgetEmits(emits: TWidgetEmits): {
|
|
|
1017
1050
|
removeClick: (widgetKey: TDashboardWidgetKey, parentWidgetKey?: TDashboardWidgetKey) => any;
|
|
1018
1051
|
moveClick: (direction: -1 | 1, widgetKey: TDashboardWidgetKey, parentWidgetKey?: TDashboardWidgetKey) => any;
|
|
1019
1052
|
selectContainer: (containerKey?: TDashboardWidgetKey) => any;
|
|
1053
|
+
savedPropsChanged: (value: IWidgetSavedProps) => any;
|
|
1020
1054
|
};
|
|
1021
1055
|
|
|
1022
1056
|
export declare const WidgetContainerColumn: <K extends TDashboardWidgetKey = TDashboardWidgetKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -1024,7 +1058,8 @@ export declare const WidgetContainerColumn: <K extends TDashboardWidgetKey = TDa
|
|
|
1024
1058
|
readonly onRemoveClick?: ((widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1025
1059
|
readonly onMoveClick?: ((direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1026
1060
|
readonly onSelectContainer?: ((containerKey?: string | undefined) => any) | undefined;
|
|
1027
|
-
|
|
1061
|
+
readonly onSavedPropsChanged?: ((savedProps: IWidgetSavedProps) => any) | undefined;
|
|
1062
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onRemoveClick" | "onMoveClick" | "onSelectContainer" | "onSavedPropsChanged"> & IDashboardWidgetProps<any> & Partial<{}>> & PublicProps;
|
|
1028
1063
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
1029
1064
|
attrs: any;
|
|
1030
1065
|
slots: {
|
|
@@ -1040,7 +1075,8 @@ export declare const WidgetContainerLarge: <K extends TDashboardWidgetKey = TDas
|
|
|
1040
1075
|
readonly onRemoveClick?: ((widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1041
1076
|
readonly onMoveClick?: ((direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1042
1077
|
readonly onSelectContainer?: ((containerKey?: string | undefined) => any) | undefined;
|
|
1043
|
-
|
|
1078
|
+
readonly onSavedPropsChanged?: ((savedProps: IWidgetSavedProps) => any) | undefined;
|
|
1079
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onRemoveClick" | "onMoveClick" | "onSelectContainer" | "onSavedPropsChanged"> & IDashboardWidgetProps<any> & Partial<{}>> & PublicProps;
|
|
1044
1080
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
1045
1081
|
attrs: any;
|
|
1046
1082
|
slots: {
|
|
@@ -1056,7 +1092,8 @@ export declare const WidgetContainerRow: <K extends TDashboardWidgetKey = TDashb
|
|
|
1056
1092
|
readonly onRemoveClick?: ((widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1057
1093
|
readonly onMoveClick?: ((direction: 1 | -1, widgetKey: string, parentWidgetKey?: string | undefined) => any) | undefined;
|
|
1058
1094
|
readonly onSelectContainer?: ((containerKey?: string | undefined) => any) | undefined;
|
|
1059
|
-
|
|
1095
|
+
readonly onSavedPropsChanged?: ((savedProps: IWidgetSavedProps) => any) | undefined;
|
|
1096
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onRemoveClick" | "onMoveClick" | "onSelectContainer" | "onSavedPropsChanged"> & IDashboardWidgetProps<any> & Partial<{}>> & PublicProps;
|
|
1060
1097
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
1061
1098
|
attrs: any;
|
|
1062
1099
|
slots: {
|