bitboss-ui 2.1.79 → 2.1.81

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 (189) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +7 -1
  2. package/dist/components/BbDialog/BbDialog.vue.d.ts +6 -2
  3. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +12 -1
  4. package/dist/components/BbTable/BbTable.vue.d.ts +41 -7
  5. package/dist/components/BbTable/types.d.ts +21 -0
  6. package/dist/index.css +1 -1
  7. package/dist/index107.js +9 -9
  8. package/dist/index112.js +1 -1
  9. package/dist/index114.js +1 -1
  10. package/dist/index120.js +1 -1
  11. package/dist/index122.js +346 -297
  12. package/dist/index13.js +2 -2
  13. package/dist/index130.js +1 -1
  14. package/dist/index132.js +5 -5
  15. package/dist/index134.js +1 -1
  16. package/dist/index139.js +1 -1
  17. package/dist/index141.js +2 -2
  18. package/dist/index15.js +5 -5
  19. package/dist/index17.js +3 -3
  20. package/dist/index19.js +8 -8
  21. package/dist/index21.js +14 -14
  22. package/dist/index214.js +138 -2
  23. package/dist/index215.js +2 -138
  24. package/dist/index220.js +1 -1
  25. package/dist/index222.js +3 -2
  26. package/dist/index223.js +34 -2
  27. package/dist/index224.js +9 -3
  28. package/dist/index225.js +86 -2
  29. package/dist/index227.js +28 -6
  30. package/dist/index228.js +16 -2
  31. package/dist/index229.js +17 -7
  32. package/dist/index23.js +11 -11
  33. package/dist/index230.js +49 -32
  34. package/dist/index231.js +12 -6
  35. package/dist/index232.js +3 -4
  36. package/dist/index233.js +12 -13
  37. package/dist/index234.js +2 -20
  38. package/dist/index235.js +4 -201
  39. package/dist/index236.js +11 -0
  40. package/dist/index237.js +2 -135
  41. package/dist/index238.js +10 -0
  42. package/dist/index239.js +6 -50
  43. package/dist/index240.js +2 -17
  44. package/dist/index241.js +3 -106
  45. package/dist/index242.js +15 -0
  46. package/dist/index243.js +4 -100
  47. package/dist/index244.js +22 -0
  48. package/dist/index245.js +201 -3
  49. package/dist/index247.js +137 -0
  50. package/dist/index249.js +187 -14
  51. package/dist/index25.js +41 -40
  52. package/dist/index250.js +3 -3
  53. package/dist/index251.js +3 -12
  54. package/dist/index252.js +8 -15
  55. package/dist/index253.js +13 -5
  56. package/dist/index254.js +23 -5
  57. package/dist/index255.js +4 -5
  58. package/dist/index256.js +23 -5
  59. package/dist/index257.js +13 -6
  60. package/dist/index258.js +5 -8
  61. package/dist/index259.js +5 -268
  62. package/dist/index260.js +5 -52
  63. package/dist/index261.js +5 -52
  64. package/dist/index262.js +2 -32
  65. package/dist/index263.js +6 -60
  66. package/dist/index264.js +7 -17
  67. package/dist/index265.js +268 -12
  68. package/dist/index266.js +52 -4
  69. package/dist/index267.js +46 -223
  70. package/dist/index268.js +32 -13
  71. package/dist/index269.js +58 -7
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +2 -8
  74. package/dist/index271.js +41 -3
  75. package/dist/index272.js +3 -13
  76. package/dist/index273.js +18 -4
  77. package/dist/index274.js +11 -22
  78. package/dist/index275.js +106 -3
  79. package/dist/index277.js +100 -5
  80. package/dist/index279.js +229 -5
  81. package/dist/index280.js +10 -6
  82. package/dist/index281.js +3 -16
  83. package/dist/index282.js +2 -9
  84. package/dist/index283.js +7 -67
  85. package/dist/index284.js +7 -7
  86. package/dist/index285.js +5 -9
  87. package/dist/index286.js +5 -23
  88. package/dist/index287.js +5 -41
  89. package/dist/index288.js +6 -11
  90. package/dist/index289.js +16 -5
  91. package/dist/index29.js +3 -3
  92. package/dist/index290.js +66 -187
  93. package/dist/index291.js +9 -3
  94. package/dist/index292.js +11 -10
  95. package/dist/index293.js +5 -3
  96. package/dist/index295.js +1 -1
  97. package/dist/index296.js +2 -3
  98. package/dist/index297.js +3 -7
  99. package/dist/index298.js +19 -0
  100. package/dist/index299.js +28 -3
  101. package/dist/index300.js +2 -2
  102. package/dist/index301.js +4 -280
  103. package/dist/index302.js +7 -2
  104. package/dist/index303.js +5 -16
  105. package/dist/index304.js +3 -2
  106. package/dist/index305.js +3 -16
  107. package/dist/index306.js +280 -2
  108. package/dist/index307.js +2 -27
  109. package/dist/index308.js +16 -2
  110. package/dist/index309.js +2 -2
  111. package/dist/index31.js +2 -2
  112. package/dist/index310.js +16 -2
  113. package/dist/index311.js +2 -2
  114. package/dist/index312.js +27 -2
  115. package/dist/index313.js +2 -28
  116. package/dist/index314.js +1 -1
  117. package/dist/index315.js +2 -3
  118. package/dist/index316.js +2 -3
  119. package/dist/index317.js +2 -17
  120. package/dist/index318.js +1 -1
  121. package/dist/index319.js +3 -4
  122. package/dist/index320.js +1 -1
  123. package/dist/index321.js +2 -5
  124. package/dist/index322.js +719 -125
  125. package/dist/index323.js +366 -2
  126. package/dist/index324.js +56 -14
  127. package/dist/index325.js +125 -2
  128. package/dist/index326.js +2 -19
  129. package/dist/index327.js +15 -2
  130. package/dist/index328.js +2 -719
  131. package/dist/index329.js +19 -366
  132. package/dist/index33.js +8 -8
  133. package/dist/index330.js +2 -57
  134. package/dist/index332.js +2 -6
  135. package/dist/index333.js +6 -2
  136. package/dist/index334.js +7 -46
  137. package/dist/index335.js +5 -7
  138. package/dist/index336.js +8 -6
  139. package/dist/index337.js +34 -7
  140. package/dist/index338.js +6 -7
  141. package/dist/index339.js +127 -17
  142. package/dist/index340.js +396 -7
  143. package/dist/index341.js +6 -14
  144. package/dist/index342.js +19 -5
  145. package/dist/index343.js +8 -6
  146. package/dist/index344.js +12 -225
  147. package/dist/index345.js +5 -35
  148. package/dist/index346.js +7 -6
  149. package/dist/index347.js +85 -121
  150. package/dist/index348.js +56 -396
  151. package/dist/index349.js +57 -92
  152. package/dist/index35.js +4 -4
  153. package/dist/index350.js +227 -57
  154. package/dist/index351.js +133 -57
  155. package/dist/index352.js +20 -518
  156. package/dist/index354.js +49 -0
  157. package/dist/index355.js +515 -129
  158. package/dist/index356.js +435 -44
  159. package/dist/index357.js +114 -427
  160. package/dist/index358.js +48 -126
  161. package/dist/index37.js +18 -18
  162. package/dist/index39.js +7 -7
  163. package/dist/index41.js +2 -2
  164. package/dist/index43.js +8 -8
  165. package/dist/index45.js +6 -6
  166. package/dist/index49.js +2 -2
  167. package/dist/index53.js +1 -1
  168. package/dist/index55.js +1 -1
  169. package/dist/index57.js +2 -2
  170. package/dist/index61.js +5 -5
  171. package/dist/index67.js +1 -1
  172. package/dist/index78.js +28 -25
  173. package/dist/index80.js +6 -6
  174. package/dist/index82.js +1 -1
  175. package/dist/index84.js +2 -2
  176. package/dist/index86.js +3 -3
  177. package/dist/index88.js +1 -1
  178. package/dist/index91.js +60 -60
  179. package/dist/index93.js +2 -2
  180. package/dist/index95.js +5 -5
  181. package/dist/index97.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/index226.js +0 -4
  184. package/dist/index246.js +0 -88
  185. package/dist/index248.js +0 -31
  186. package/dist/index276.js +0 -4
  187. package/dist/index278.js +0 -7
  188. package/dist/index294.js +0 -4
  189. package/dist/index353.js +0 -24
@@ -85,11 +85,13 @@ export type BaseDialogProps = {
85
85
  type __VLS_Props = BaseDialogProps;
86
86
  /**
87
87
  * Events emitted by `BaseDialog`.
88
+ * - `show`: fired as soon as the user triggers the open action (model becomes true).
89
+ * - `hide`: fired as soon as the user triggers the close action (model becomes false).
88
90
  * - `shown`: fired after the dialog is opened using `showModal`.
89
91
  * - `hidden`: fired after the close transition completes and the dialog is dismissed.
90
92
  */
91
93
  export type BaseDialogEvents = {
92
- (e: 'shown' | 'hidden'): void;
94
+ (e: 'show' | 'hide' | 'shown' | 'hidden'): void;
93
95
  };
94
96
  /**
95
97
  * Slots for customising the dialog chrome and layout.
@@ -140,9 +142,13 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
140
142
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
141
143
  "update:modelValue": (value: boolean) => any;
142
144
  } & {
145
+ show: () => any;
146
+ hide: () => any;
143
147
  shown: () => any;
144
148
  hidden: () => any;
145
149
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
150
+ onShow?: (() => any) | undefined;
151
+ onHide?: (() => any) | undefined;
146
152
  onShown?: (() => any) | undefined;
147
153
  onHidden?: (() => any) | undefined;
148
154
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -8,21 +8,25 @@ declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
9
  slots: Readonly<BaseDialogSlots> & BaseDialogSlots;
10
10
  refs: {};
11
- rootEl: any;
11
+ rootEl: HTMLDialogElement;
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
14
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: boolean) => any;
16
16
  } & {
17
+ show: () => any;
18
+ hide: () => any;
17
19
  shown: () => any;
18
20
  hidden: () => any;
19
21
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ onShow?: (() => any) | undefined;
23
+ onHide?: (() => any) | undefined;
20
24
  onShown?: (() => any) | undefined;
21
25
  onHidden?: (() => any) | undefined;
22
26
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
27
  }>, {
24
28
  showClose: boolean;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDialogElement>;
26
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
31
  export default _default;
28
32
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -35,8 +35,15 @@ export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'dis
35
35
  direction?: 'left' | 'top' | 'right' | 'bottom';
36
36
  };
37
37
  type __VLS_Props = BbOffCanvasProps;
38
+ /**
39
+ * Events emitted by `BbOffCanvas`.
40
+ * - `show`: fired as soon as the user triggers the open action (model becomes true).
41
+ * - `hide`: fired as soon as the user triggers the close action (model becomes false).
42
+ * - `shown`: fired after the offcanvas is opened using `showModal`.
43
+ * - `hidden`: fired after the close transition completes and the offcanvas is dismissed.
44
+ */
38
45
  export type BbOffCanvasEvents = {
39
- (e: 'shown' | 'hidden'): void;
46
+ (e: 'show' | 'hide' | 'shown' | 'hidden'): void;
40
47
  };
41
48
  export type BbOffCanvasSlots = {
42
49
  header?: (props: {
@@ -76,9 +83,13 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
76
83
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
84
  "update:modelValue": (value: boolean) => any;
78
85
  } & {
86
+ show: () => any;
87
+ hide: () => any;
79
88
  shown: () => any;
80
89
  hidden: () => any;
81
90
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
91
+ onShow?: (() => any) | undefined;
92
+ onHide?: (() => any) | undefined;
82
93
  onShown?: (() => any) | undefined;
83
94
  onHidden?: (() => any) | undefined;
84
95
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -1,6 +1,6 @@
1
1
  import { Classes } from '../../types/Classes';
2
2
  import { ColumnName } from '../../types/ColumnName';
3
- import { BbTableColumn, BbTableEvents, BbTableProps, ItemKey } from './types';
3
+ import { BbTableColumn, BbTableEvents, BbTableProps, ExpandControllerProps, ItemKey } from './types';
4
4
  declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__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<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -8,11 +8,13 @@ declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__VL
8
8
  readonly "onContextmenu:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
9
9
  readonly "onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
10
10
  readonly "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
11
+ readonly "onUpdate:expandedItems"?: ((value: any[]) => any) | undefined;
11
12
  readonly "onUpdate:unselectedItems"?: ((value: any[]) => any) | undefined;
12
13
  readonly "onItem:selected"?: ((value: any) => any) | undefined;
13
14
  readonly "onItem:unselected"?: ((value: any) => any) | undefined;
14
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:unselectedItems" | "onClick:row" | "onContextmenu:row" | "onDblclick:row" | "onUpdate:selectAll" | "onItem:selected" | "onItem:unselected"> & ({
15
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:unselectedItems" | "onClick:row" | "onContextmenu:row" | "onDblclick:row" | "onUpdate:selectAll" | "onUpdate:expandedItems" | "onItem:selected" | "onItem:unselected"> & ({
15
16
  selectAll?: boolean;
17
+ expandedItems?: any[];
16
18
  } & Omit<BbTableProps<Item>, "columns"> & {
17
19
  columns: (Omit<BbTableColumn<Item>, "key"> & {
18
20
  key: T;
@@ -37,6 +39,16 @@ declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__VL
37
39
  }) => any) | undefined;
38
40
  'no-data'?: (props: object) => any;
39
41
  actions?: ((props: {
42
+ expanded?: boolean;
43
+ expandProps?: ExpandControllerProps;
44
+ toggleExpanded?: () => void;
45
+ item: Item;
46
+ value: any;
47
+ }) => any) | undefined;
48
+ expand?: ((props: {
49
+ expanded: boolean;
50
+ expandProps?: ExpandControllerProps;
51
+ toggleExpanded: () => void;
40
52
  item: Item;
41
53
  value: any;
42
54
  }) => any) | undefined;
@@ -52,18 +64,24 @@ declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__VL
52
64
  [key: string]: (props: {
53
65
  classes?: Classes[];
54
66
  content?: any;
67
+ expanded?: boolean;
68
+ props?: ExpandControllerProps;
69
+ toggleExpanded?: () => void;
55
70
  item: Item;
56
71
  value?: any;
57
72
  items?: Item[] | undefined;
58
73
  label?: string;
59
74
  }) => any;
60
75
  } & { [K in ColumnName<T>]?: ((props: {
61
- classes?: Classes[];
76
+ classes?: Classes;
62
77
  content?: any;
78
+ expanded?: boolean;
79
+ expandProps?: ExpandControllerProps;
80
+ toggleExpanded?: () => void;
63
81
  item: Item;
64
82
  value?: any;
65
83
  }) => any) | undefined; } & { [K_1 in `header:${ColumnName<T>}`]?: ((props: {
66
- classes?: Classes[];
84
+ classes?: Classes;
67
85
  content?: any;
68
86
  items?: Item[];
69
87
  label?: string;
@@ -84,6 +102,16 @@ declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__VL
84
102
  }) => any) | undefined;
85
103
  'no-data'?: (props: object) => any;
86
104
  actions?: ((props: {
105
+ expanded?: boolean;
106
+ expandProps?: ExpandControllerProps;
107
+ toggleExpanded?: () => void;
108
+ item: Item;
109
+ value: any;
110
+ }) => any) | undefined;
111
+ expand?: ((props: {
112
+ expanded: boolean;
113
+ expandProps?: ExpandControllerProps;
114
+ toggleExpanded: () => void;
87
115
  item: Item;
88
116
  value: any;
89
117
  }) => any) | undefined;
@@ -99,23 +127,29 @@ declare const _default: <Item = any, T extends ItemKey<Item> = string & {}>(__VL
99
127
  [key: string]: (props: {
100
128
  classes?: Classes[];
101
129
  content?: any;
130
+ expanded?: boolean;
131
+ props?: ExpandControllerProps;
132
+ toggleExpanded?: () => void;
102
133
  item: Item;
103
134
  value?: any;
104
135
  items?: Item[] | undefined;
105
136
  label?: string;
106
137
  }) => any;
107
138
  } & { [K in ColumnName<T>]?: ((props: {
108
- classes?: Classes[];
139
+ classes?: Classes;
109
140
  content?: any;
141
+ expanded?: boolean;
142
+ expandProps?: ExpandControllerProps;
143
+ toggleExpanded?: () => void;
110
144
  item: Item;
111
145
  value?: any;
112
146
  }) => any) | undefined; } & { [K_1 in `header:${ColumnName<T>}`]?: ((props: {
113
- classes?: Classes[];
147
+ classes?: Classes;
114
148
  content?: any;
115
149
  items?: Item[];
116
150
  label?: string;
117
151
  }) => any) | undefined; };
118
- emit: BbTableEvents & ((evt: "update:selectAll", value: boolean) => void);
152
+ emit: BbTableEvents & (((evt: "update:selectAll", value: boolean) => void) & ((evt: "update:expandedItems", value: any[]) => void));
119
153
  }>) => import('vue').VNode & {
120
154
  __ctx?: Awaited<typeof __VLS_setup>;
121
155
  };
@@ -234,6 +234,7 @@ export type ColumnClasses<Item = any> = Classes | ((content: any, key: string, i
234
234
  export type MappedItem = Option & {
235
235
  accessibleLabel: string;
236
236
  cols: MappedCell[];
237
+ expanded: boolean;
237
238
  onRowClick: (event: MouseEvent) => void;
238
239
  onRowContextMenu: (event: MouseEvent) => void;
239
240
  onRowDblClick: (event: MouseEvent) => void;
@@ -261,12 +262,19 @@ export type MappedCell = {
261
262
  label: string;
262
263
  slotName: string;
263
264
  };
265
+ export type ExpandControllerProps = {
266
+ 'aria-controls'?: string;
267
+ 'aria-expanded': 'true' | 'false';
268
+ onClick: () => void;
269
+ onKeydown: (event: KeyboardEvent) => void;
270
+ };
264
271
  export type BbTableEvents = {
265
272
  (e: 'click:row', event: MouseEvent, item: any, selected: boolean): void;
266
273
  (e: 'contextmenu:row', event: MouseEvent, item: any, selected: boolean): void;
267
274
  (e: 'dblclick:row', event: MouseEvent, item: any, selected: boolean): void;
268
275
  (e: 'update:modelValue', value: any): void;
269
276
  (e: 'update:selectAll', value: boolean): void;
277
+ (e: 'update:expandedItems', value: any[]): void;
270
278
  (e: 'update:unselectedItems', value: any[]): void;
271
279
  (e: 'item:selected', value: any): void;
272
280
  (e: 'item:unselected', value: any): void;
@@ -288,6 +296,16 @@ export type BbTableSlots<Item = any> = {
288
296
  }) => any;
289
297
  'no-data'?: (props: object) => any;
290
298
  actions?: (props: {
299
+ expanded?: boolean;
300
+ expandProps?: ExpandControllerProps;
301
+ toggleExpanded?: () => void;
302
+ item: Item;
303
+ value: any;
304
+ }) => any;
305
+ expand?: (props: {
306
+ expanded: boolean;
307
+ expandProps?: ExpandControllerProps;
308
+ toggleExpanded: () => void;
291
309
  item: Item;
292
310
  value: any;
293
311
  }) => any;
@@ -303,6 +321,9 @@ export type BbTableSlots<Item = any> = {
303
321
  [key: string]: (props: {
304
322
  classes?: Classes[];
305
323
  content?: any;
324
+ expanded?: boolean;
325
+ props?: ExpandControllerProps;
326
+ toggleExpanded?: () => void;
306
327
  item: Item;
307
328
  value?: any;
308
329
  items?: Item[];