@peanut-admin/ui-vue 4.0.0-rc.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.
@@ -0,0 +1,384 @@
1
+ import type { PropType } from 'vue';
2
+ import type { ShellHostConfig } from './config.js';
3
+ export interface ShellIdentity {
4
+ accountLabel: string;
5
+ contextLabel: string;
6
+ actorLabel: string;
7
+ }
8
+ export interface ShellNavigationItem {
9
+ key: string;
10
+ label: string;
11
+ path: string | null;
12
+ children: readonly ShellNavigationItem[];
13
+ }
14
+ export interface ShellBreadcrumbItem {
15
+ label: string;
16
+ path: string | null;
17
+ }
18
+ export declare const AdminShell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
+ config: {
20
+ type: PropType<ShellHostConfig>;
21
+ default: null;
22
+ };
23
+ identity: {
24
+ type: PropType<ShellIdentity>;
25
+ default: null;
26
+ };
27
+ navigation: {
28
+ type: PropType<readonly ShellNavigationItem[]>;
29
+ default: () => never[];
30
+ };
31
+ breadcrumbs: {
32
+ type: PropType<readonly ShellBreadcrumbItem[]>;
33
+ default: () => never[];
34
+ };
35
+ activePath: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ collapsed: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ mobileOpen: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ openNavigationLabel: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ collapseNavigationLabel: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ expandNavigationLabel: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ primaryNavigationLabel: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ mobileNavigationLabel: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ breadcrumbLabel: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ identityLabel: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
76
+ [key: string]: any;
77
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
78
+ navigate: (path: string) => boolean;
79
+ 'update:collapsed': (collapsed: boolean) => boolean;
80
+ 'update:mobileOpen': (open: boolean) => boolean;
81
+ 'switch-tenant': () => boolean;
82
+ logout: () => boolean;
83
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
84
+ config: {
85
+ type: PropType<ShellHostConfig>;
86
+ default: null;
87
+ };
88
+ identity: {
89
+ type: PropType<ShellIdentity>;
90
+ default: null;
91
+ };
92
+ navigation: {
93
+ type: PropType<readonly ShellNavigationItem[]>;
94
+ default: () => never[];
95
+ };
96
+ breadcrumbs: {
97
+ type: PropType<readonly ShellBreadcrumbItem[]>;
98
+ default: () => never[];
99
+ };
100
+ activePath: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ collapsed: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ mobileOpen: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ openNavigationLabel: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ collapseNavigationLabel: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ expandNavigationLabel: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ primaryNavigationLabel: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ mobileNavigationLabel: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ breadcrumbLabel: {
133
+ type: StringConstructor;
134
+ default: string;
135
+ };
136
+ identityLabel: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ }>> & Readonly<{
141
+ onNavigate?: ((path: string) => any) | undefined;
142
+ "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
143
+ "onUpdate:mobileOpen"?: ((open: boolean) => any) | undefined;
144
+ "onSwitch-tenant"?: (() => any) | undefined;
145
+ onLogout?: (() => any) | undefined;
146
+ }>, {
147
+ config: ShellHostConfig;
148
+ identity: ShellIdentity;
149
+ navigation: readonly ShellNavigationItem[];
150
+ breadcrumbs: readonly ShellBreadcrumbItem[];
151
+ activePath: string;
152
+ collapsed: boolean;
153
+ mobileOpen: boolean;
154
+ openNavigationLabel: string;
155
+ collapseNavigationLabel: string;
156
+ expandNavigationLabel: string;
157
+ primaryNavigationLabel: string;
158
+ mobileNavigationLabel: string;
159
+ breadcrumbLabel: string;
160
+ identityLabel: string;
161
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
162
+ export declare const PlatformShell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
163
+ config: {
164
+ type: PropType<ShellHostConfig>;
165
+ default: null;
166
+ };
167
+ identity: {
168
+ type: PropType<ShellIdentity>;
169
+ default: null;
170
+ };
171
+ navigation: {
172
+ type: PropType<readonly ShellNavigationItem[]>;
173
+ default: () => never[];
174
+ };
175
+ breadcrumbs: {
176
+ type: PropType<readonly ShellBreadcrumbItem[]>;
177
+ default: () => never[];
178
+ };
179
+ activePath: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ collapsed: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ mobileOpen: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ openNavigationLabel: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ collapseNavigationLabel: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ expandNavigationLabel: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ };
203
+ primaryNavigationLabel: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ mobileNavigationLabel: {
208
+ type: StringConstructor;
209
+ default: string;
210
+ };
211
+ breadcrumbLabel: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ identityLabel: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
220
+ [key: string]: any;
221
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
222
+ navigate: (path: string) => boolean;
223
+ 'update:collapsed': (collapsed: boolean) => boolean;
224
+ 'update:mobileOpen': (open: boolean) => boolean;
225
+ 'switch-tenant': () => boolean;
226
+ logout: () => boolean;
227
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
228
+ config: {
229
+ type: PropType<ShellHostConfig>;
230
+ default: null;
231
+ };
232
+ identity: {
233
+ type: PropType<ShellIdentity>;
234
+ default: null;
235
+ };
236
+ navigation: {
237
+ type: PropType<readonly ShellNavigationItem[]>;
238
+ default: () => never[];
239
+ };
240
+ breadcrumbs: {
241
+ type: PropType<readonly ShellBreadcrumbItem[]>;
242
+ default: () => never[];
243
+ };
244
+ activePath: {
245
+ type: StringConstructor;
246
+ default: string;
247
+ };
248
+ collapsed: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ mobileOpen: {
253
+ type: BooleanConstructor;
254
+ default: boolean;
255
+ };
256
+ openNavigationLabel: {
257
+ type: StringConstructor;
258
+ default: string;
259
+ };
260
+ collapseNavigationLabel: {
261
+ type: StringConstructor;
262
+ default: string;
263
+ };
264
+ expandNavigationLabel: {
265
+ type: StringConstructor;
266
+ default: string;
267
+ };
268
+ primaryNavigationLabel: {
269
+ type: StringConstructor;
270
+ default: string;
271
+ };
272
+ mobileNavigationLabel: {
273
+ type: StringConstructor;
274
+ default: string;
275
+ };
276
+ breadcrumbLabel: {
277
+ type: StringConstructor;
278
+ default: string;
279
+ };
280
+ identityLabel: {
281
+ type: StringConstructor;
282
+ default: string;
283
+ };
284
+ }>> & Readonly<{
285
+ onNavigate?: ((path: string) => any) | undefined;
286
+ "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
287
+ "onUpdate:mobileOpen"?: ((open: boolean) => any) | undefined;
288
+ "onSwitch-tenant"?: (() => any) | undefined;
289
+ onLogout?: (() => any) | undefined;
290
+ }>, {
291
+ config: ShellHostConfig;
292
+ identity: ShellIdentity;
293
+ navigation: readonly ShellNavigationItem[];
294
+ breadcrumbs: readonly ShellBreadcrumbItem[];
295
+ activePath: string;
296
+ collapsed: boolean;
297
+ mobileOpen: boolean;
298
+ openNavigationLabel: string;
299
+ collapseNavigationLabel: string;
300
+ expandNavigationLabel: string;
301
+ primaryNavigationLabel: string;
302
+ mobileNavigationLabel: string;
303
+ breadcrumbLabel: string;
304
+ identityLabel: string;
305
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
306
+ export declare const ShellHeader: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
307
+ [key: string]: any;
308
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
309
+ export declare const ShellSidebar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
310
+ label: {
311
+ type: StringConstructor;
312
+ default: string;
313
+ };
314
+ collapsed: {
315
+ type: BooleanConstructor;
316
+ default: boolean;
317
+ };
318
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
319
+ [key: string]: any;
320
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
321
+ label: {
322
+ type: StringConstructor;
323
+ default: string;
324
+ };
325
+ collapsed: {
326
+ type: BooleanConstructor;
327
+ default: boolean;
328
+ };
329
+ }>> & Readonly<{}>, {
330
+ label: string;
331
+ collapsed: boolean;
332
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
333
+ export declare const ShellBreadcrumb: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
334
+ label: {
335
+ type: StringConstructor;
336
+ default: string;
337
+ };
338
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
339
+ [key: string]: any;
340
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
341
+ label: {
342
+ type: StringConstructor;
343
+ default: string;
344
+ };
345
+ }>> & Readonly<{}>, {
346
+ label: string;
347
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
348
+ export declare const ShellTabs: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
349
+ label: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
353
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
354
+ [key: string]: any;
355
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
356
+ label: {
357
+ type: StringConstructor;
358
+ default: string;
359
+ };
360
+ }>> & Readonly<{}>, {
361
+ label: string;
362
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
363
+ export declare const PageHeader: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
364
+ [key: string]: any;
365
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
366
+ export declare const PageToolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
367
+ label: {
368
+ type: StringConstructor;
369
+ default: string;
370
+ };
371
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
372
+ [key: string]: any;
373
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
374
+ label: {
375
+ type: StringConstructor;
376
+ default: string;
377
+ };
378
+ }>> & Readonly<{}>, {
379
+ label: string;
380
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
381
+ export declare const PageContent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
382
+ [key: string]: any;
383
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
384
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAa,QAAQ,EAAc,MAAM,KAAK,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAgXD,eAAO,MAAM,UAAU;;cA7WK,QAAQ,CAAC,eAAe,CAAC;;;;cACvB,QAAQ,CAAC,aAAa,CAAC;;;;cAElC,QAAQ,CAAC,SAAS,mBAAmB,EAAE,CAAC;;;;cAIxC,QAAQ,CAAC,SAAS,mBAAmB,EAAE,CAAC;;;;;;;;;;;;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