@kong-ui-public/app-layout 4.7.1-pr.2439.feaa06b81.0 → 4.7.1-pr.2480.ebca41c60.0
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/app-layout.es.js +1178 -1352
- package/dist/app-layout.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts +8 -19
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts +5 -16
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/dist/types/types/sidebar.d.ts +0 -8
- package/dist/types/types/sidebar.d.ts.map +1 -1
- package/package.json +2 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
declare var __VLS_1: {}, __VLS_16: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_28: {},
|
|
2
|
+
import type { SidebarPrimaryItem, SidebarSecondaryItem } from '../types';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_16: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_28: {}, __VLS_39: {}, __VLS_42: {}, __VLS_45: {}, __VLS_49: `sidebar-icon-${string}`, __VLS_50: {}, __VLS_52: {}, __VLS_54: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
[K in NonNullable<typeof
|
|
5
|
+
[K in NonNullable<typeof __VLS_49>]?: (props: typeof __VLS_50) => any;
|
|
6
6
|
} & {
|
|
7
7
|
notification?: (props: typeof __VLS_1) => any;
|
|
8
8
|
} & {
|
|
@@ -16,15 +16,15 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
} & {
|
|
17
17
|
'navbar-right'?: (props: typeof __VLS_28) => any;
|
|
18
18
|
} & {
|
|
19
|
-
'sidebar-header'?: (props: typeof
|
|
19
|
+
'sidebar-header'?: (props: typeof __VLS_39) => any;
|
|
20
20
|
} & {
|
|
21
|
-
'sidebar-top'?: (props: typeof
|
|
21
|
+
'sidebar-top'?: (props: typeof __VLS_42) => any;
|
|
22
22
|
} & {
|
|
23
|
-
'sidebar-footer'?: (props: typeof
|
|
23
|
+
'sidebar-footer'?: (props: typeof __VLS_45) => any;
|
|
24
24
|
} & {
|
|
25
|
-
'app-error'?: (props: typeof
|
|
25
|
+
'app-error'?: (props: typeof __VLS_52) => any;
|
|
26
26
|
} & {
|
|
27
|
-
default?: (props: typeof
|
|
27
|
+
default?: (props: typeof __VLS_54) => any;
|
|
28
28
|
};
|
|
29
29
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
30
30
|
hideDefaultSlot: {
|
|
@@ -51,17 +51,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
51
51
|
type: PropType<SidebarPrimaryItem[]>;
|
|
52
52
|
default: () => never[];
|
|
53
53
|
};
|
|
54
|
-
groupConfig: {
|
|
55
|
-
type: PropType<GroupConfigMap>;
|
|
56
|
-
default: () => {};
|
|
57
|
-
};
|
|
58
54
|
theme: {
|
|
59
55
|
type: PropType<"light" | "dark">;
|
|
60
56
|
default: string;
|
|
61
57
|
validator: (theme: "light" | "dark") => boolean;
|
|
62
58
|
};
|
|
63
59
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
64
|
-
"toggle-collapse": (groupName: string, groupConfig: GroupConfig) => any;
|
|
65
60
|
"sidebar-click": (item: SidebarSecondaryItem | SidebarPrimaryItem) => any;
|
|
66
61
|
"update:topOffset": (offset: number) => any;
|
|
67
62
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -89,21 +84,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
89
84
|
type: PropType<SidebarPrimaryItem[]>;
|
|
90
85
|
default: () => never[];
|
|
91
86
|
};
|
|
92
|
-
groupConfig: {
|
|
93
|
-
type: PropType<GroupConfigMap>;
|
|
94
|
-
default: () => {};
|
|
95
|
-
};
|
|
96
87
|
theme: {
|
|
97
88
|
type: PropType<"light" | "dark">;
|
|
98
89
|
default: string;
|
|
99
90
|
validator: (theme: "light" | "dark") => boolean;
|
|
100
91
|
};
|
|
101
92
|
}>> & Readonly<{
|
|
102
|
-
"onToggle-collapse"?: ((groupName: string, groupConfig: GroupConfig) => any) | undefined;
|
|
103
93
|
"onSidebar-click"?: ((item: SidebarSecondaryItem | SidebarPrimaryItem) => any) | undefined;
|
|
104
94
|
"onUpdate:topOffset"?: ((offset: number) => any) | undefined;
|
|
105
95
|
}>, {
|
|
106
|
-
groupConfig: GroupConfigMap;
|
|
107
96
|
hideDefaultSlot: boolean;
|
|
108
97
|
navbarHidden: boolean;
|
|
109
98
|
sidebarHidden: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout.vue"],"names":[],"mappings":"AA+ZA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAKnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAmaxE,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,0BAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpR,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC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AO;;;;;;;;;;;;;;;;;;;;;;;cAV9B,QAAQ,CAAC,kBAAkB,EAAE,CAAC;;;;cAI9B,QAAQ,CAAC,kBAAkB,EAAE,CAAC;;;;cAI7B,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC;;2BAEvB,OAAO,GAAG,MAAM,KAAG,OAAO;;;;;;;;;;;;;4EAG/C,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { SidebarPrimaryItem
|
|
2
|
+
import type { SidebarPrimaryItem } from '../../types';
|
|
3
3
|
/** Prevent adding the `group` property to bottom sidebar items. */
|
|
4
4
|
type BottomPrimaryItem = Omit<SidebarPrimaryItem, 'group'>;
|
|
5
|
-
declare var __VLS_8: {}, __VLS_10: {},
|
|
5
|
+
declare var __VLS_8: {}, __VLS_10: {}, __VLS_21: `sidebar-icon-${string}`, __VLS_22: {}, __VLS_33: `sidebar-icon-${string}`, __VLS_34: {}, __VLS_36: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
[K in NonNullable<typeof
|
|
7
|
+
[K in NonNullable<typeof __VLS_21>]?: (props: typeof __VLS_22) => any;
|
|
8
8
|
} & {
|
|
9
|
-
[K in NonNullable<typeof
|
|
9
|
+
[K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34) => any;
|
|
10
10
|
} & {
|
|
11
11
|
header?: (props: typeof __VLS_8) => any;
|
|
12
12
|
} & {
|
|
13
13
|
top?: (props: typeof __VLS_10) => any;
|
|
14
14
|
} & {
|
|
15
|
-
footer?: (props: typeof
|
|
15
|
+
footer?: (props: typeof __VLS_36) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
18
|
topItems: {
|
|
@@ -23,10 +23,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
23
23
|
type: PropType<BottomPrimaryItem[]>;
|
|
24
24
|
default: () => never[];
|
|
25
25
|
};
|
|
26
|
-
groupConfig: {
|
|
27
|
-
type: PropType<GroupConfigMap>;
|
|
28
|
-
default: () => {};
|
|
29
|
-
};
|
|
30
26
|
headerHeight: {
|
|
31
27
|
type: NumberConstructor;
|
|
32
28
|
default: number;
|
|
@@ -74,7 +70,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
74
70
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
75
71
|
click: (...args: any[]) => void;
|
|
76
72
|
toggle: (...args: any[]) => void;
|
|
77
|
-
"toggle-collapse": (...args: any[]) => void;
|
|
78
73
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
74
|
topItems: {
|
|
80
75
|
type: PropType<SidebarPrimaryItem[]>;
|
|
@@ -84,10 +79,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
84
79
|
type: PropType<BottomPrimaryItem[]>;
|
|
85
80
|
default: () => never[];
|
|
86
81
|
};
|
|
87
|
-
groupConfig: {
|
|
88
|
-
type: PropType<GroupConfigMap>;
|
|
89
|
-
default: () => {};
|
|
90
|
-
};
|
|
91
82
|
headerHeight: {
|
|
92
83
|
type: NumberConstructor;
|
|
93
84
|
default: number;
|
|
@@ -135,13 +126,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
135
126
|
}>> & Readonly<{
|
|
136
127
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
137
128
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
138
|
-
"onToggle-collapse"?: ((...args: any[]) => any) | undefined;
|
|
139
129
|
}>, {
|
|
140
130
|
topOffset: number;
|
|
141
131
|
zIndex: number;
|
|
142
132
|
topItems: SidebarPrimaryItem[];
|
|
143
133
|
bottomItems: BottomPrimaryItem[];
|
|
144
|
-
groupConfig: GroupConfigMap;
|
|
145
134
|
headerHeight: number;
|
|
146
135
|
open: boolean;
|
|
147
136
|
mobileEnabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/AppSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/AppSidebar.vue"],"names":[],"mappings":"AAwqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAQrD,mEAAmE;AACnE,KAAK,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAwhB1D,QAAA,IAAuB,OAAO,IAAU,EAAE,QAAQ,IAAU,EAAE,QAAQ,0BAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,0BAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACxK,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA2F/C,QAAA,MAAM,eAAe;;cAMF,QAAQ,CAAC,kBAAkB,EAAE,CAAC;;;;cAI9B,QAAQ,CAAC,iBAAiB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAJ7B,QAAQ,CAAC,kBAAkB,EAAE,CAAC;;;;cAI9B,QAAQ,CAAC,iBAAiB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAiD9C,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -28,12 +28,4 @@ export interface SidebarPrimaryItem extends Omit<SidebarSecondaryItem, 'parentKe
|
|
|
28
28
|
/** Nested sidebar items (children) without icons */
|
|
29
29
|
items?: SidebarSecondaryItem[];
|
|
30
30
|
}
|
|
31
|
-
export interface GroupConfig {
|
|
32
|
-
label: string;
|
|
33
|
-
collapsible?: boolean;
|
|
34
|
-
collapsed?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface GroupConfigMap {
|
|
37
|
-
[key: string]: GroupConfig;
|
|
38
|
-
}
|
|
39
31
|
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,iKAAiK;IACjK,EA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GAA0G;IAC1G,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,YAAY,CAAC;IAChG,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAA;IACX,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2LAA2L;IAC3L,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAC/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/app-layout",
|
|
3
|
-
"version": "4.7.1-pr.
|
|
3
|
+
"version": "4.7.1-pr.2480.ebca41c60.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/app-layout.umd.js",
|
|
6
6
|
"module": "./dist/app-layout.es.js",
|
|
@@ -27,14 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@kong/icons": "^1.36.0",
|
|
30
|
-
"@vueuse/core": "^13.5.0",
|
|
31
30
|
"focus-trap": "^7.6.5",
|
|
32
31
|
"focus-trap-vue": "^4.0.3",
|
|
33
32
|
"lodash.clonedeep": "^4.5.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@kong/design-tokens": "1.18.0",
|
|
37
|
-
"@kong/kongponents": "9.40.
|
|
36
|
+
"@kong/kongponents": "9.40.1",
|
|
38
37
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
39
38
|
"vue": "^3.5.13",
|
|
40
39
|
"vue-router": "^4.4.5"
|