@kong-ui-public/app-layout 0.11.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.
Files changed (46) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +105 -0
  3. package/dist/app-layout.es.js +1893 -0
  4. package/dist/app-layout.es.js.map +1 -0
  5. package/dist/app-layout.umd.js +12 -0
  6. package/dist/app-layout.umd.js.map +1 -0
  7. package/dist/style.css +1 -0
  8. package/dist/types/components/AppLayout.vue.d.ts +95 -0
  9. package/dist/types/components/AppLayout.vue.d.ts.map +1 -0
  10. package/dist/types/components/ExternalLink.vue.d.ts +32 -0
  11. package/dist/types/components/ExternalLink.vue.d.ts.map +1 -0
  12. package/dist/types/components/errors/AppError.vue.d.ts +10 -0
  13. package/dist/types/components/errors/AppError.vue.d.ts.map +1 -0
  14. package/dist/types/components/helpers/isValidUrl.d.ts +7 -0
  15. package/dist/types/components/helpers/isValidUrl.d.ts.map +1 -0
  16. package/dist/types/components/icons/BananaSplit.vue.d.ts +3 -0
  17. package/dist/types/components/icons/BananaSplit.vue.d.ts.map +1 -0
  18. package/dist/types/components/navbar/AppNavbar.vue.d.ts +42 -0
  19. package/dist/types/components/navbar/AppNavbar.vue.d.ts.map +1 -0
  20. package/dist/types/components/navbar/NavbarDropdownMenu.vue.d.ts +55 -0
  21. package/dist/types/components/navbar/NavbarDropdownMenu.vue.d.ts.map +1 -0
  22. package/dist/types/components/sidebar/AppSidebar.vue.d.ts +154 -0
  23. package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -0
  24. package/dist/types/components/sidebar/ItemBadge.vue.d.ts +17 -0
  25. package/dist/types/components/sidebar/ItemBadge.vue.d.ts.map +1 -0
  26. package/dist/types/components/sidebar/ProfileIcon.vue.d.ts +3 -0
  27. package/dist/types/components/sidebar/ProfileIcon.vue.d.ts.map +1 -0
  28. package/dist/types/components/sidebar/SidebarFooter.vue.d.ts +32 -0
  29. package/dist/types/components/sidebar/SidebarFooter.vue.d.ts.map +1 -0
  30. package/dist/types/components/sidebar/SidebarItem.vue.d.ts +27 -0
  31. package/dist/types/components/sidebar/SidebarItem.vue.d.ts.map +1 -0
  32. package/dist/types/components/sidebar/SidebarToggle.vue.d.ts +17 -0
  33. package/dist/types/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  34. package/dist/types/composables/index.d.ts +2 -0
  35. package/dist/types/composables/index.d.ts.map +1 -0
  36. package/dist/types/composables/useDebounce.d.ts +4 -0
  37. package/dist/types/composables/useDebounce.d.ts.map +1 -0
  38. package/dist/types/index.d.ts +18 -0
  39. package/dist/types/index.d.ts.map +1 -0
  40. package/dist/types/types/index.d.ts +3 -0
  41. package/dist/types/types/index.d.ts.map +1 -0
  42. package/dist/types/types/navbar.d.ts +6 -0
  43. package/dist/types/types/navbar.d.ts.map +1 -0
  44. package/dist/types/types/sidebar.d.ts +35 -0
  45. package/dist/types/types/sidebar.d.ts.map +1 -0
  46. package/package.json +65 -0
@@ -0,0 +1,95 @@
1
+ import { PropType } from 'vue';
2
+ import type { SidebarPrimaryItem, SidebarProfileItem } from '../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ hideDefaultSlot: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ navbarHidden: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ sidebarHidden: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ sidebarOpen: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ sidebarTopItems: {
21
+ type: PropType<SidebarPrimaryItem[]>;
22
+ default: () => never[];
23
+ };
24
+ sidebarBottomItems: {
25
+ type: PropType<SidebarPrimaryItem[]>;
26
+ default: () => never[];
27
+ };
28
+ sidebarProfileItems: {
29
+ type: PropType<SidebarProfileItem[]>;
30
+ default: () => never[];
31
+ };
32
+ sidebarProfileName: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "sidebar-click"[], "sidebar-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ hideDefaultSlot: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ navbarHidden: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ sidebarHidden: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ sidebarOpen: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ sidebarTopItems: {
54
+ type: PropType<SidebarPrimaryItem[]>;
55
+ default: () => never[];
56
+ };
57
+ sidebarBottomItems: {
58
+ type: PropType<SidebarPrimaryItem[]>;
59
+ default: () => never[];
60
+ };
61
+ sidebarProfileItems: {
62
+ type: PropType<SidebarProfileItem[]>;
63
+ default: () => never[];
64
+ };
65
+ sidebarProfileName: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ }>> & {
70
+ "onSidebar-click"?: ((...args: any[]) => any) | undefined;
71
+ }, {
72
+ hideDefaultSlot: boolean;
73
+ navbarHidden: boolean;
74
+ sidebarHidden: boolean;
75
+ sidebarOpen: boolean;
76
+ sidebarTopItems: SidebarPrimaryItem[];
77
+ sidebarBottomItems: SidebarPrimaryItem[];
78
+ sidebarProfileItems: SidebarProfileItem[];
79
+ sidebarProfileName: string;
80
+ }>, {
81
+ notification: (_: {}) => any;
82
+ 'navbar-mobile-logo': (_: {}) => any;
83
+ navbar: (_: {}) => any;
84
+ 'sidebar-header': (_: {}) => any;
85
+ 'sidebar-top': (_: {}) => any;
86
+ 'app-error': (_: {}) => any;
87
+ default: (_: {}) => any;
88
+ }>;
89
+ export default _default;
90
+ type __VLS_WithTemplateSlots<T, S> = T & {
91
+ new (): {
92
+ $slots: S;
93
+ };
94
+ };
95
+ //# sourceMappingURL=AppLayout.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AppLayout.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAoE,QAAQ,EAAmB,MAAM,KAAK,CAAA;AAIjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA+ZvD,GAAG;qCACM,GAAG;uBACjB,GAAG;iCACO,GAAG;8BACN,GAAG;4BACL,GAAG;wBACP,GAAG;;AAlapC,wBA6bc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ href: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ validator: (value: string) => boolean;
6
+ };
7
+ hideIcon: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ href: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ validator: (value: string) => boolean;
16
+ };
17
+ hideIcon: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>>, {
22
+ hideIcon: boolean;
23
+ }>, {
24
+ default: (_: {}) => any;
25
+ }>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
32
+ //# sourceMappingURL=ExternalLink.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ExternalLink.vue.ts"],"names":[],"mappings":";;;;2BAuB8B,MAAM;;;;;;;;;;2BAAN,MAAM;;;;;;;;;wBAmEJ,GAAG;;AAvFnC,wBAoGc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
2
+ default: (_: {}) => any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
10
+ //# sourceMappingURL=AppError.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppError.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/errors/AppError.vue.ts"],"names":[],"mappings":";wBAmFgC,GAAG;;AAjFnC,wBA+Fc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Test if a string is a valid URL format
3
+ * @param {String} str - the string to test
4
+ * @returns {Boolean}
5
+ */
6
+ export declare function isValidUrl(str: string): boolean;
7
+ //# sourceMappingURL=isValidUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/helpers/isValidUrl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,WASrC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
3
+ //# sourceMappingURL=BananaSplit.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BananaSplit.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/BananaSplit.vue.ts"],"names":[],"mappings":";AAAA,wBA2Gc"}
@@ -0,0 +1,42 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ topOffset: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ leftOffset: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ zIndex: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ topOffset: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ leftOffset: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ zIndex: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ }>>, {
28
+ zIndex: number;
29
+ topOffset: number;
30
+ leftOffset: number;
31
+ }>, {
32
+ 'mobile-sidebar-toggle': (_: {}) => any;
33
+ 'mobile-logo': (_: {}) => any;
34
+ default: (_: {}) => any;
35
+ }>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
42
+ //# sourceMappingURL=AppNavbar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppNavbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/navbar/AppNavbar.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiHgD,GAAG;8BACZ,GAAG;wBACT,GAAG;;AAhHpC,wBA8Hc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { PropType } from 'vue';
2
+ import type { NavbarDropdownMenuItem } from '../../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ options: {
5
+ type: PropType<NavbarDropdownMenuItem[]>;
6
+ default: () => never[];
7
+ };
8
+ tooltip: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ width: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ disabled: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ options: {
22
+ type: PropType<NavbarDropdownMenuItem[]>;
23
+ default: () => never[];
24
+ };
25
+ tooltip: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ width: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ }>> & {
38
+ onChange?: ((...args: any[]) => any) | undefined;
39
+ }, {
40
+ width: string;
41
+ disabled: boolean;
42
+ options: NavbarDropdownMenuItem[];
43
+ tooltip: string;
44
+ }>, {
45
+ default: (_: {
46
+ option: NavbarDropdownMenuItem;
47
+ }) => any;
48
+ }>;
49
+ export default _default;
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ //# sourceMappingURL=NavbarDropdownMenu.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavbarDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/navbar/NavbarDropdownMenu.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,QAAQ,EAAE,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA8IxB,GAAG;;AA5IpC,wBA2Jc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,154 @@
1
+ import { PropType } from 'vue';
2
+ import type { SidebarPrimaryItem, SidebarProfileItem } from '../../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ topItems: {
5
+ type: PropType<SidebarPrimaryItem[]>;
6
+ default: () => never[];
7
+ };
8
+ bottomItems: {
9
+ type: PropType<SidebarPrimaryItem[]>;
10
+ default: () => never[];
11
+ };
12
+ profileItems: {
13
+ type: PropType<SidebarProfileItem[]>;
14
+ default: () => never[];
15
+ };
16
+ profileName: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ headerHeight: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ topOffset: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ zIndex: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ open: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ mobileEnabled: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ mobileTopOffset: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ mobileHeaderVisible: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ mobileCloseDelay: {
49
+ type: NumberConstructor;
50
+ default: number;
51
+ };
52
+ mobileOverlay: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ mobileOverlayZIndex: {
57
+ type: NumberConstructor;
58
+ default: null;
59
+ };
60
+ mobileOverlayCloseOnClick: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggle" | "click")[], "toggle" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
+ topItems: {
66
+ type: PropType<SidebarPrimaryItem[]>;
67
+ default: () => never[];
68
+ };
69
+ bottomItems: {
70
+ type: PropType<SidebarPrimaryItem[]>;
71
+ default: () => never[];
72
+ };
73
+ profileItems: {
74
+ type: PropType<SidebarProfileItem[]>;
75
+ default: () => never[];
76
+ };
77
+ profileName: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ headerHeight: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ topOffset: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ zIndex: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ open: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ mobileEnabled: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ mobileTopOffset: {
102
+ type: NumberConstructor;
103
+ default: number;
104
+ };
105
+ mobileHeaderVisible: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ mobileCloseDelay: {
110
+ type: NumberConstructor;
111
+ default: number;
112
+ };
113
+ mobileOverlay: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ mobileOverlayZIndex: {
118
+ type: NumberConstructor;
119
+ default: null;
120
+ };
121
+ mobileOverlayCloseOnClick: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ }>> & {
126
+ onClick?: ((...args: any[]) => any) | undefined;
127
+ onToggle?: ((...args: any[]) => any) | undefined;
128
+ }, {
129
+ open: boolean;
130
+ zIndex: number;
131
+ topOffset: number;
132
+ topItems: SidebarPrimaryItem[];
133
+ bottomItems: SidebarPrimaryItem[];
134
+ profileItems: SidebarProfileItem[];
135
+ profileName: string;
136
+ headerHeight: number;
137
+ mobileEnabled: boolean;
138
+ mobileTopOffset: number;
139
+ mobileHeaderVisible: boolean;
140
+ mobileCloseDelay: number;
141
+ mobileOverlay: boolean;
142
+ mobileOverlayZIndex: number;
143
+ mobileOverlayCloseOnClick: boolean;
144
+ }>, {
145
+ header: (_: {}) => any;
146
+ top: (_: {}) => any;
147
+ }>;
148
+ export default _default;
149
+ type __VLS_WithTemplateSlots<T, S> = T & {
150
+ new (): {
151
+ $slots: S;
152
+ };
153
+ };
154
+ //# sourceMappingURL=AppSidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/AppSidebar.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAkC,QAAQ,EAAwC,MAAM,KAAK,CAAA;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAuiB1C,GAAG;oBACL,GAAG;;AAhiBhC,wBA+jBc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ count: {
3
+ type: NumberConstructor;
4
+ required: true;
5
+ default: undefined;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ count: {
9
+ type: NumberConstructor;
10
+ required: true;
11
+ default: undefined;
12
+ };
13
+ }>>, {
14
+ count: number;
15
+ }>;
16
+ export default _default;
17
+ //# sourceMappingURL=ItemBadge.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/ItemBadge.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,wBAkFc"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
3
+ //# sourceMappingURL=ProfileIcon.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/ProfileIcon.vue.ts"],"names":[],"mappings":";AAAA,wBAwDc"}
@@ -0,0 +1,32 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ name: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ itemCount: {
7
+ type: NumberConstructor;
8
+ required: true;
9
+ default: number;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ name: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ itemCount: {
17
+ type: NumberConstructor;
18
+ required: true;
19
+ default: number;
20
+ };
21
+ }>>, {
22
+ itemCount: number;
23
+ }>, {
24
+ default: (_: {}) => any;
25
+ }>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
32
+ //# sourceMappingURL=SidebarFooter.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarFooter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarFooter.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;wBAgKiC,GAAG;;AA3JpC,wBA2Kc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { PropType } from 'vue';
2
+ import type { SidebarPrimaryItem, SidebarSecondaryItem } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ item: {
5
+ type: PropType<SidebarSecondaryItem | SidebarPrimaryItem>;
6
+ required: true;
7
+ };
8
+ subnavItem: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ item: {
14
+ type: PropType<SidebarSecondaryItem | SidebarPrimaryItem>;
15
+ required: true;
16
+ };
17
+ subnavItem: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>> & {
22
+ onClick?: ((...args: any[]) => any) | undefined;
23
+ }, {
24
+ subnavItem: boolean;
25
+ }>;
26
+ export default _default;
27
+ //# sourceMappingURL=SidebarItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarItem.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAY,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAI3E,wBA2Rc"}
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ active: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggle"[], "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ active: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>> & {
12
+ onToggle?: ((...args: any[]) => any) | undefined;
13
+ }, {
14
+ active: boolean;
15
+ }>;
16
+ export default _default;
17
+ //# sourceMappingURL=SidebarToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/SidebarToggle.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,wBAoGc"}
@@ -0,0 +1,2 @@
1
+ export { default as useDebounce } from './useDebounce';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,4 @@
1
+ export default function useDebounce(): {
2
+ debounce: (initialFunction: (...args: any) => any, delay: number) => (...args: any) => void;
3
+ };
4
+ //# sourceMappingURL=useDebounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../../src/composables/useDebounce.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,WAAW;0CAQY,GAAG,KAAK,GAAG,SAAS,MAAM,eAAa,GAAG,KAAK,IAAI;EAkBjG"}
@@ -0,0 +1,18 @@
1
+ import type { App } from 'vue';
2
+ import AppLayout from './components/AppLayout.vue';
3
+ import AppNavbar from './components/navbar/AppNavbar.vue';
4
+ import NavbarDropdownMenu from './components/navbar/NavbarDropdownMenu.vue';
5
+ import AppSidebar from './components/sidebar/AppSidebar.vue';
6
+ import SidebarToggle from './components/sidebar/SidebarToggle.vue';
7
+ import AppError from './components/errors/AppError.vue';
8
+ import ExternalLink from './components/ExternalLink.vue';
9
+ declare const _default: {
10
+ install: (app: App, options?: {
11
+ [key: string]: any;
12
+ name?: string | undefined;
13
+ }) => void;
14
+ };
15
+ export default _default;
16
+ export { AppLayout, AppNavbar, AppSidebar, SidebarToggle, AppError, ExternalLink, NavbarDropdownMenu, };
17
+ export * from './types';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAClD,OAAO,SAAS,MAAM,mCAAmC,CAAA;AACzD,OAAO,kBAAkB,MAAM,4CAA4C,CAAA;AAE3E,OAAO,UAAU,MAAM,qCAAqC,CAAA;AAC5D,OAAO,aAAa,MAAM,wCAAwC,CAAA;AAClE,OAAO,QAAQ,MAAM,kCAAkC,CAAA;AACvD,OAAO,YAAY,MAAM,+BAA+B,CAAA;;mBAOvC,GAAG;;;UAAwD,IAAI;;AAJhF,wBAOC;AAED,OAAO,EAEL,SAAS,EACT,SAAS,EACT,UAAU,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,kBAAkB,GACnB,CAAA;AAED,cAAc,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './navbar';
2
+ export * from './sidebar';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface NavbarDropdownMenuItem {
2
+ label: string;
3
+ value: string;
4
+ selected?: boolean;
5
+ }
6
+ //# sourceMappingURL=navbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/types/navbar.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -0,0 +1,35 @@
1
+ export interface SidebarSecondaryItem {
2
+ /** The display text of the sidebar item */
3
+ name: string;
4
+ /** The [Vue Router `to` object](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#to) or a URL path (relative or absolute) to navigate to on click */
5
+ to: string | Record<string, any>;
6
+ /** Set external to true if you want to navigate via anchor tag instead of a router-link. The `to` property must be set to a string. */
7
+ external?: boolean;
8
+ /** Set newWindow to true if you want to open the link in a new window or tab. If the `to` property is set to a string that starts with `http*` it will open in a new window automatically. Setting newWindow to true essentially forces external to true as well. */
9
+ newWindow?: boolean;
10
+ /** Is the sidebar item active */
11
+ active?: boolean;
12
+ /** Number to display in a badge to the right of the L2 item name */
13
+ badgeCount?: number;
14
+ /** The data-testid attribute to apply to the sidebar item. Auto-generated if not provided. */
15
+ testId?: string;
16
+ /** Auto-generated (do not provide) unique key of the secondary item's top-level navigation parent item */
17
+ parentKey?: string;
18
+ }
19
+ export interface SidebarPrimaryItem extends Omit<SidebarSecondaryItem, 'parentKey' | 'badgeCount'> {
20
+ /** Unique key of top-level navigation item. Auto-generated if not provided. */
21
+ key: string;
22
+ /** Label to show under the name when the item is expanded */
23
+ label?: string;
24
+ /** Is the top-level sidebar item expanded */
25
+ expanded?: boolean;
26
+ /** The name of the [Kongponent KIcon](https://beta.kongponents.konghq.com/components/icon.html#icon-1) to display next to the top-level item name */
27
+ icon?: string;
28
+ /** Nested sidebar items (children) without icons */
29
+ items?: SidebarSecondaryItem[];
30
+ }
31
+ export interface SidebarProfileItem extends Omit<SidebarPrimaryItem, 'key' | 'label' | 'expanded' | 'active' | 'icon' | 'items'> {
32
+ /** Should a divider display above this profile item */
33
+ hasDivider?: boolean;
34
+ }
35
+ //# sourceMappingURL=sidebar.d.ts.map