@antcde/component-library 0.1.36-rc.1 → 0.1.36

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.
@@ -28,114 +28,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
28
28
  status?: "invited" | "active" | "inactive" | undefined;
29
29
  profile_picture: string;
30
30
  mfa_required?: boolean | undefined;
31
- is_device_account?: boolean | undefined;
32
- initialised?: boolean | undefined;
33
- rbac_roles?: {
34
- id: string;
35
- name: string;
36
- is_admin: boolean;
37
- permissions?: {
38
- id: string;
39
- name: string;
40
- description?: string | null | undefined;
41
- resource_type?: string | undefined;
42
- resource_id?: string | undefined;
43
- roles?: /*elided*/ any[] | undefined;
44
- created_at?: string | undefined;
45
- updated_at?: string | undefined;
46
- is_direct_permission?: boolean | undefined;
47
- }[] | undefined;
48
- users?: {
49
- id: string;
50
- email: string;
51
- name: string;
52
- firstname: string;
53
- lastname: string;
54
- language: string;
55
- company_name: string | null;
56
- licenses: {
57
- id: string;
58
- is_admin: boolean;
59
- name: string;
60
- type: string;
61
- company: string;
62
- theme: string;
63
- monogram?: string | undefined;
64
- logo_url?: string | null | undefined;
65
- logo_dark_url?: string | null | undefined;
66
- url: string;
67
- mfa_required: boolean;
68
- node_base_url?: string | undefined;
69
- node_api_url?: string | undefined;
70
- user_roles?: /*elided*/ any[] | undefined;
71
- user_permissions?: {
72
- [x: string]: boolean;
73
- "triggers.read"?: boolean | undefined;
74
- "triggers.configure"?: boolean | undefined;
75
- "apps.configure"?: boolean | undefined;
76
- "rbac.configure"?: boolean | undefined;
77
- "users.configure"?: boolean | undefined;
78
- "devices.configure"?: boolean | undefined;
79
- "tables.configure"?: boolean | undefined;
80
- "projects.create"?: boolean | undefined;
81
- "projects.update"?: boolean | undefined;
82
- "projects.delete"?: boolean | undefined;
83
- } | undefined;
84
- user_is_admin: boolean;
85
- labels: {
86
- id: string;
87
- name: string;
88
- color: string | null;
89
- icon: string | null;
90
- pivot: {
91
- resource_type: string;
92
- resource_id: string;
93
- label_os_id: string;
94
- created_at: string;
95
- updated_at: string;
96
- created_by: string;
97
- };
98
- }[];
99
- limits: import('@antcde/connect-ts').LicenseLimits;
100
- }[];
101
- is_admin: boolean;
102
- two_factor_enabled: number | boolean;
103
- mfa_verified?: number | boolean | undefined;
104
- photo: string | {
105
- extension: string;
106
- file: string;
107
- id: string;
108
- mimetype: string;
109
- name: string;
110
- size: number;
111
- } | null;
112
- profile_picture?: string | null | undefined;
113
- password_expires_in?: number | undefined;
114
- preferences?: {
115
- devMode: {
116
- enabled: boolean;
117
- ai: {
118
- enabled: boolean;
119
- baseUrl: string;
120
- model: string;
121
- headers: Record<string, string>;
122
- endpoint: string;
123
- };
124
- };
125
- } | null | undefined;
126
- }[] | undefined;
127
- description?: string | null | undefined;
128
- resource_type?: string | undefined;
129
- resource_id?: string | undefined;
130
- license_id: string;
131
- created_at: string;
132
- updated_at: string;
133
- expires_at?: string | null | undefined;
134
- }[] | undefined;
135
- is_admin?: boolean | undefined;
136
- last_tracked_login?: string | null | undefined;
137
- added_at?: string | null | undefined;
138
- created_at?: string | null | undefined;
139
31
  };
140
32
  labels: {
141
33
  id: string;
@@ -183,114 +75,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
183
75
  status?: "invited" | "active" | "inactive" | undefined;
184
76
  profile_picture: string;
185
77
  mfa_required?: boolean | undefined;
186
- is_device_account?: boolean | undefined;
187
- initialised?: boolean | undefined;
188
- rbac_roles?: {
189
- id: string;
190
- name: string;
191
- is_admin: boolean;
192
- permissions?: {
193
- id: string;
194
- name: string;
195
- description?: string | null | undefined;
196
- resource_type?: string | undefined;
197
- resource_id?: string | undefined;
198
- roles?: /*elided*/ any[] | undefined;
199
- created_at?: string | undefined;
200
- updated_at?: string | undefined;
201
- is_direct_permission?: boolean | undefined;
202
- }[] | undefined;
203
- users?: {
204
- id: string;
205
- email: string;
206
- name: string;
207
- firstname: string;
208
- lastname: string;
209
- language: string;
210
- company_name: string | null;
211
- licenses: {
212
- id: string;
213
- is_admin: boolean;
214
- name: string;
215
- type: string;
216
- company: string;
217
- theme: string;
218
- monogram?: string | undefined;
219
- logo_url?: string | null | undefined;
220
- logo_dark_url?: string | null | undefined;
221
- url: string;
222
- mfa_required: boolean;
223
- node_base_url?: string | undefined;
224
- node_api_url?: string | undefined;
225
- user_roles?: /*elided*/ any[] | undefined;
226
- user_permissions?: {
227
- [x: string]: boolean;
228
- "triggers.read"?: boolean | undefined;
229
- "triggers.configure"?: boolean | undefined;
230
- "apps.configure"?: boolean | undefined;
231
- "rbac.configure"?: boolean | undefined;
232
- "users.configure"?: boolean | undefined;
233
- "devices.configure"?: boolean | undefined;
234
- "tables.configure"?: boolean | undefined;
235
- "projects.create"?: boolean | undefined;
236
- "projects.update"?: boolean | undefined;
237
- "projects.delete"?: boolean | undefined;
238
- } | undefined;
239
- user_is_admin: boolean;
240
- labels: {
241
- id: string;
242
- name: string;
243
- color: string | null;
244
- icon: string | null;
245
- pivot: {
246
- resource_type: string;
247
- resource_id: string;
248
- label_os_id: string;
249
- created_at: string;
250
- updated_at: string;
251
- created_by: string;
252
- };
253
- }[];
254
- limits: import('@antcde/connect-ts').LicenseLimits;
255
- }[];
256
- is_admin: boolean;
257
- two_factor_enabled: number | boolean;
258
- mfa_verified?: number | boolean | undefined;
259
- photo: string | {
260
- extension: string;
261
- file: string;
262
- id: string;
263
- mimetype: string;
264
- name: string;
265
- size: number;
266
- } | null;
267
- profile_picture?: string | null | undefined;
268
- password_expires_in?: number | undefined;
269
- preferences?: {
270
- devMode: {
271
- enabled: boolean;
272
- ai: {
273
- enabled: boolean;
274
- baseUrl: string;
275
- model: string;
276
- headers: Record<string, string>;
277
- endpoint: string;
278
- };
279
- };
280
- } | null | undefined;
281
- }[] | undefined;
282
- description?: string | null | undefined;
283
- resource_type?: string | undefined;
284
- resource_id?: string | undefined;
285
- license_id: string;
286
- created_at: string;
287
- updated_at: string;
288
- expires_at?: string | null | undefined;
289
- }[] | undefined;
290
- is_admin?: boolean | undefined;
291
- last_tracked_login?: string | null | undefined;
292
- added_at?: string | null | undefined;
293
- created_at?: string | null | undefined;
294
78
  };
295
79
  labels: {
296
80
  id: string;
@@ -339,114 +123,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
339
123
  status?: "invited" | "active" | "inactive" | undefined;
340
124
  profile_picture: string;
341
125
  mfa_required?: boolean | undefined;
342
- is_device_account?: boolean | undefined;
343
- initialised?: boolean | undefined;
344
- rbac_roles?: {
345
- id: string;
346
- name: string;
347
- is_admin: boolean;
348
- permissions?: {
349
- id: string;
350
- name: string;
351
- description?: string | null | undefined;
352
- resource_type?: string | undefined;
353
- resource_id?: string | undefined;
354
- roles?: /*elided*/ any[] | undefined;
355
- created_at?: string | undefined;
356
- updated_at?: string | undefined;
357
- is_direct_permission?: boolean | undefined;
358
- }[] | undefined;
359
- users?: {
360
- id: string;
361
- email: string;
362
- name: string;
363
- firstname: string;
364
- lastname: string;
365
- language: string;
366
- company_name: string | null;
367
- licenses: {
368
- id: string;
369
- is_admin: boolean;
370
- name: string;
371
- type: string;
372
- company: string;
373
- theme: string;
374
- monogram?: string | undefined;
375
- logo_url?: string | null | undefined;
376
- logo_dark_url?: string | null | undefined;
377
- url: string;
378
- mfa_required: boolean;
379
- node_base_url?: string | undefined;
380
- node_api_url?: string | undefined;
381
- user_roles?: /*elided*/ any[] | undefined;
382
- user_permissions?: {
383
- [x: string]: boolean;
384
- "triggers.read"?: boolean | undefined;
385
- "triggers.configure"?: boolean | undefined;
386
- "apps.configure"?: boolean | undefined;
387
- "rbac.configure"?: boolean | undefined;
388
- "users.configure"?: boolean | undefined;
389
- "devices.configure"?: boolean | undefined;
390
- "tables.configure"?: boolean | undefined;
391
- "projects.create"?: boolean | undefined;
392
- "projects.update"?: boolean | undefined;
393
- "projects.delete"?: boolean | undefined;
394
- } | undefined;
395
- user_is_admin: boolean;
396
- labels: {
397
- id: string;
398
- name: string;
399
- color: string | null;
400
- icon: string | null;
401
- pivot: {
402
- resource_type: string;
403
- resource_id: string;
404
- label_os_id: string;
405
- created_at: string;
406
- updated_at: string;
407
- created_by: string;
408
- };
409
- }[];
410
- limits: import('@antcde/connect-ts').LicenseLimits;
411
- }[];
412
- is_admin: boolean;
413
- two_factor_enabled: number | boolean;
414
- mfa_verified?: number | boolean | undefined;
415
- photo: string | {
416
- extension: string;
417
- file: string;
418
- id: string;
419
- mimetype: string;
420
- name: string;
421
- size: number;
422
- } | null;
423
- profile_picture?: string | null | undefined;
424
- password_expires_in?: number | undefined;
425
- preferences?: {
426
- devMode: {
427
- enabled: boolean;
428
- ai: {
429
- enabled: boolean;
430
- baseUrl: string;
431
- model: string;
432
- headers: Record<string, string>;
433
- endpoint: string;
434
- };
435
- };
436
- } | null | undefined;
437
- }[] | undefined;
438
- description?: string | null | undefined;
439
- resource_type?: string | undefined;
440
- resource_id?: string | undefined;
441
- license_id: string;
442
- created_at: string;
443
- updated_at: string;
444
- expires_at?: string | null | undefined;
445
- }[] | undefined;
446
- is_admin?: boolean | undefined;
447
- last_tracked_login?: string | null | undefined;
448
- added_at?: string | null | undefined;
449
- created_at?: string | null | undefined;
450
126
  };
451
127
  labels: {
452
128
  id: string;
@@ -494,114 +170,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
494
170
  status?: "invited" | "active" | "inactive" | undefined;
495
171
  profile_picture: string;
496
172
  mfa_required?: boolean | undefined;
497
- is_device_account?: boolean | undefined;
498
- initialised?: boolean | undefined;
499
- rbac_roles?: {
500
- id: string;
501
- name: string;
502
- is_admin: boolean;
503
- permissions?: {
504
- id: string;
505
- name: string;
506
- description?: string | null | undefined;
507
- resource_type?: string | undefined;
508
- resource_id?: string | undefined;
509
- roles?: /*elided*/ any[] | undefined;
510
- created_at?: string | undefined;
511
- updated_at?: string | undefined;
512
- is_direct_permission?: boolean | undefined;
513
- }[] | undefined;
514
- users?: {
515
- id: string;
516
- email: string;
517
- name: string;
518
- firstname: string;
519
- lastname: string;
520
- language: string;
521
- company_name: string | null;
522
- licenses: {
523
- id: string;
524
- is_admin: boolean;
525
- name: string;
526
- type: string;
527
- company: string;
528
- theme: string;
529
- monogram?: string | undefined;
530
- logo_url?: string | null | undefined;
531
- logo_dark_url?: string | null | undefined;
532
- url: string;
533
- mfa_required: boolean;
534
- node_base_url?: string | undefined;
535
- node_api_url?: string | undefined;
536
- user_roles?: /*elided*/ any[] | undefined;
537
- user_permissions?: {
538
- [x: string]: boolean;
539
- "triggers.read"?: boolean | undefined;
540
- "triggers.configure"?: boolean | undefined;
541
- "apps.configure"?: boolean | undefined;
542
- "rbac.configure"?: boolean | undefined;
543
- "users.configure"?: boolean | undefined;
544
- "devices.configure"?: boolean | undefined;
545
- "tables.configure"?: boolean | undefined;
546
- "projects.create"?: boolean | undefined;
547
- "projects.update"?: boolean | undefined;
548
- "projects.delete"?: boolean | undefined;
549
- } | undefined;
550
- user_is_admin: boolean;
551
- labels: {
552
- id: string;
553
- name: string;
554
- color: string | null;
555
- icon: string | null;
556
- pivot: {
557
- resource_type: string;
558
- resource_id: string;
559
- label_os_id: string;
560
- created_at: string;
561
- updated_at: string;
562
- created_by: string;
563
- };
564
- }[];
565
- limits: import('@antcde/connect-ts').LicenseLimits;
566
- }[];
567
- is_admin: boolean;
568
- two_factor_enabled: number | boolean;
569
- mfa_verified?: number | boolean | undefined;
570
- photo: string | {
571
- extension: string;
572
- file: string;
573
- id: string;
574
- mimetype: string;
575
- name: string;
576
- size: number;
577
- } | null;
578
- profile_picture?: string | null | undefined;
579
- password_expires_in?: number | undefined;
580
- preferences?: {
581
- devMode: {
582
- enabled: boolean;
583
- ai: {
584
- enabled: boolean;
585
- baseUrl: string;
586
- model: string;
587
- headers: Record<string, string>;
588
- endpoint: string;
589
- };
590
- };
591
- } | null | undefined;
592
- }[] | undefined;
593
- description?: string | null | undefined;
594
- resource_type?: string | undefined;
595
- resource_id?: string | undefined;
596
- license_id: string;
597
- created_at: string;
598
- updated_at: string;
599
- expires_at?: string | null | undefined;
600
- }[] | undefined;
601
- is_admin?: boolean | undefined;
602
- last_tracked_login?: string | null | undefined;
603
- added_at?: string | null | undefined;
604
- created_at?: string | null | undefined;
605
173
  };
606
174
  labels: {
607
175
  id: string;
@@ -4,7 +4,6 @@ import { default as BaseClickableIcon } from './components/BaseClickableIcon.vue
4
4
  import { default as BaseDeleteDialog } from './components/BaseDeleteDialog.vue';
5
5
  import { default as RichTextEditor } from './components/RichTextEditor/index.vue';
6
6
  import { default as AntTourZone } from './components/AntTourZone/index.vue';
7
- import { default as AntBottomSheet } from './components/AntBottomSheet/index.vue';
8
7
  import { default as AntNoticeAlert } from './components/AntNoticeAlert.vue';
9
8
  import { default as AntActionMenu } from './components/form/AntActionMenu.vue';
10
9
  import { default as AntCheckboxCards } from './components/form/AntCheckboxCards.vue';
@@ -26,8 +25,6 @@ import { default as AntSectionCard } from './components/form/AntSectionCard.vue'
26
25
  import { default as AntSelect } from './components/form/AntSelect.vue';
27
26
  import { default as AntStatusPill } from './components/form/AntStatusPill.vue';
28
27
  import { default as AntToggle } from './components/form/AntToggle.vue';
29
- export type { SheetDetent } from './components/AntBottomSheet/sheet.types';
30
- export { useSheetHistory, whenSheetHistorySettled } from './components/AntBottomSheet/useSheetHistory';
31
28
  export type { ActionMenuItem } from './components/form/AntActionMenu.vue';
32
29
  export type { CheckboxCardOption } from './components/form/AntCheckboxCards.vue';
33
30
  export type { FilterChipOption } from './components/form/AntFilterChips.types';
@@ -318,7 +315,7 @@ export declare const BaseResizePanel: {
318
315
  default?: (props: {}) => any;
319
316
  };
320
317
  });
321
- export { AntActionMenu, AntBottomSheet, AntCheckboxCards, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntRadioCards, AntSaveBar, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, BaseAntInput, BaseClickableIcon, BaseDeleteDialog, RichTextEditor, };
318
+ export { AntActionMenu, AntCheckboxCards, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntRadioCards, AntSaveBar, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, BaseAntInput, BaseClickableIcon, BaseDeleteDialog, RichTextEditor, };
322
319
  /**
323
320
  * ⚠️ `BaseAntInput` and `BaseAntDatePicker` are the SUPERSEDED field idiom: Vuetify-field
324
321
  * wrappers whose border weight and floating notched label make forms read as "raw Vuetify".
@@ -4,7 +4,7 @@
4
4
  * Every utility class this library's own components use, so a consuming app emits
5
5
  * them even though UnoCSS never scans `dist/index.js`. See the generator for why.
6
6
  *
7
- * 355 classes, from 1707 candidates, filtered by asking Uno
7
+ * 355 classes, from 1676 candidates, filtered by asking Uno
8
8
  * which ones actually resolve.
9
9
  */
10
10
  export const libraryClassSafelist: string[] = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antcde/component-library",
3
3
  "type": "module",
4
- "version": "0.1.36-rc.1",
4
+ "version": "0.1.36",
5
5
  "description": "Helper to use ant components in Vue 3",
6
6
  "author": "CollaborAll",
7
7
  "exports": {
@@ -197,8 +197,8 @@
197
197
  "vue-i18n": "^11.4.14"
198
198
  },
199
199
  "devDependencies": {
200
- "@antcde/connect-ts": "0.4.38-rc.1",
201
- "@antcde/vue-utils": "0.2.33-rc.1",
200
+ "@antcde/connect-ts": "0.4.38",
201
+ "@antcde/vue-utils": "0.2.33",
202
202
  "@iconify-json/mdi": "^1.2.3",
203
203
  "@iconify/vue": "^5.0.3",
204
204
  "@intlify/unplugin-vue-i18n": "^11.2.5",
@@ -1,51 +0,0 @@
1
- import { SheetDetent } from './sheet.types';
2
- /**
3
- * Bottom sheet with detents, drag-to-resize, an automatic scrim and back-gesture
4
- * support. UnoCSS-first idiom: plain markup, no Vuetify overlay. Owns no copy —
5
- * labels arrive as props. Optionally morphs out of another element (`morphFrom`).
6
- */
7
- type __VLS_Props = {
8
- detents?: SheetDetent[];
9
- peekHeight?: number;
10
- /** `auto` shows the scrim only above the peek height, so a peeking sheet leaves the page usable. */
11
- scrim?: boolean | 'auto';
12
- persistent?: boolean;
13
- /** Floating card with side margins (default) or edge-to-edge. */
14
- inset?: boolean;
15
- zIndex?: number;
16
- closeOnBack?: boolean;
17
- morphFrom?: HTMLElement | null;
18
- label?: string;
19
- dragLabel?: string;
20
- closeLabel?: string;
21
- };
22
- type __VLS_ModelProps = {
23
- modelValue: boolean;
24
- 'detent'?: SheetDetent | undefined;
25
- };
26
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
27
- declare var __VLS_13: {}, __VLS_15: {}, __VLS_17: {};
28
- type __VLS_Slots = {} & {
29
- header?: (props: typeof __VLS_13) => any;
30
- } & {
31
- default?: (props: typeof __VLS_15) => any;
32
- } & {
33
- footer?: (props: typeof __VLS_17) => any;
34
- };
35
- declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
36
- snapTo: (d: SheetDetent) => void;
37
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
- "update:modelValue": (value: boolean) => any;
39
- "update:detent": (value: SheetDetent | undefined) => any;
40
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
41
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
42
- "onUpdate:detent"?: ((value: SheetDetent | undefined) => any) | undefined;
43
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
- declare const _default: typeof __VLS_export;
46
- export default _default;
47
- type __VLS_WithSlots<T, S> = T & {
48
- new (): {
49
- $slots: S;
50
- };
51
- };
@@ -1,2 +0,0 @@
1
- /** A resting height: named fractions of the available height, or a pixel value. */
2
- export type SheetDetent = 'peek' | 'half' | 'full' | number;
@@ -1,31 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { SheetDetent } from './sheet.types';
3
- export interface BottomSheetOptions {
4
- open: Ref<boolean>;
5
- detent: Ref<SheetDetent | undefined>;
6
- detents: () => SheetDetent[];
7
- peekHeight: () => number;
8
- persistent: () => boolean;
9
- /** Pixels kept free above a full sheet and below an inset one. */
10
- topInset: () => number;
11
- bottomInset: () => number;
12
- bodyEl: Ref<HTMLElement | null>;
13
- }
14
- export type DragSource = 'handle' | 'header' | 'body';
15
- export declare function useBottomSheet(o: BottomSheetOptions): {
16
- rendered: Ref<boolean, boolean>;
17
- visible: Ref<number, number>;
18
- dragging: Ref<boolean, boolean>;
19
- fullPx: import('vue').ComputedRef<number>;
20
- isFull: import('vue').ComputedRef<boolean>;
21
- currentDetent: Ref<SheetDetent, SheetDetent>;
22
- heightOf: (d: SheetDetent) => number;
23
- snapTo: (d: SheetDetent) => void;
24
- cycleDetent: () => void;
25
- onPointerDown: (e: PointerEvent, source: DragSource) => void;
26
- onPointerMove: (e: PointerEvent) => void;
27
- onPointerUp: (e: PointerEvent) => void;
28
- onPointerCancel: (e: PointerEvent) => void;
29
- onTouchMove: (e: TouchEvent) => void;
30
- consumeDrag: () => boolean;
31
- };
@@ -1,3 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare function whenSheetHistorySettled(): Promise<void>;
3
- export declare function useSheetHistory(open: Ref<boolean>, enabled?: () => boolean): void;
@@ -1,12 +0,0 @@
1
- import { Ref } from 'vue';
2
- export interface SheetMorphOptions {
3
- rendered: Ref<boolean>;
4
- sheetEl: Ref<HTMLElement | null>;
5
- morphFrom: () => HTMLElement | null;
6
- targetHeight: () => number;
7
- bottomInset: () => number;
8
- }
9
- export declare function useSheetMorph(o: SheetMorphOptions): {
10
- morphing: Ref<boolean, boolean>;
11
- surfaceStyle: Ref<Record<string, string>, Record<string, string>>;
12
- };