bitboss-ui 2.1.80 → 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 (179) hide show
  1. package/dist/components/BbTable/BbTable.vue.d.ts +41 -7
  2. package/dist/components/BbTable/types.d.ts +21 -0
  3. package/dist/index.css +1 -1
  4. package/dist/index107.js +9 -9
  5. package/dist/index112.js +1 -1
  6. package/dist/index114.js +1 -1
  7. package/dist/index120.js +1 -1
  8. package/dist/index122.js +346 -297
  9. package/dist/index13.js +2 -2
  10. package/dist/index130.js +1 -1
  11. package/dist/index132.js +5 -5
  12. package/dist/index134.js +1 -1
  13. package/dist/index139.js +1 -1
  14. package/dist/index141.js +2 -2
  15. package/dist/index15.js +5 -5
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +8 -8
  18. package/dist/index21.js +14 -14
  19. package/dist/index214.js +138 -2
  20. package/dist/index215.js +2 -138
  21. package/dist/index217.js +1 -1
  22. package/dist/index218.js +1 -1
  23. package/dist/index220.js +1 -1
  24. package/dist/index222.js +3 -5
  25. package/dist/index223.js +34 -5
  26. package/dist/index224.js +9 -5
  27. package/dist/index225.js +86 -5
  28. package/dist/index227.js +29 -3
  29. package/dist/index228.js +16 -2
  30. package/dist/index229.js +17 -6
  31. package/dist/index23.js +11 -11
  32. package/dist/index230.js +51 -8
  33. package/dist/index231.js +15 -268
  34. package/dist/index232.js +3 -52
  35. package/dist/index233.js +12 -52
  36. package/dist/index234.js +2 -32
  37. package/dist/index235.js +4 -60
  38. package/dist/index236.js +8 -12
  39. package/dist/index237.js +2 -86
  40. package/dist/index238.js +10 -0
  41. package/dist/index239.js +6 -28
  42. package/dist/index240.js +2 -17
  43. package/dist/index241.js +3 -51
  44. package/dist/index242.js +13 -15
  45. package/dist/index243.js +4 -12
  46. package/dist/index244.js +19 -15
  47. package/dist/index245.js +200 -9
  48. package/dist/index247.js +135 -4
  49. package/dist/index249.js +188 -5
  50. package/dist/index25.js +3 -3
  51. package/dist/index250.js +3 -5
  52. package/dist/index251.js +3 -5
  53. package/dist/index252.js +9 -2
  54. package/dist/index253.js +13 -3
  55. package/dist/index254.js +23 -20
  56. package/dist/index255.js +4 -135
  57. package/dist/index256.js +25 -0
  58. package/dist/index257.js +12 -187
  59. package/dist/index258.js +5 -3
  60. package/dist/index259.js +5 -13
  61. package/dist/index260.js +5 -13
  62. package/dist/index261.js +5 -9
  63. package/dist/index262.js +2 -2
  64. package/dist/index263.js +5 -10
  65. package/dist/index264.js +8 -6
  66. package/dist/index265.js +266 -14
  67. package/dist/index266.js +50 -7
  68. package/dist/index267.js +52 -2
  69. package/dist/index268.js +31 -7
  70. package/dist/index269.js +59 -8
  71. package/dist/index27.js +1 -1
  72. package/dist/index270.js +2 -23
  73. package/dist/index271.js +40 -22
  74. package/dist/index272.js +3 -2
  75. package/dist/index273.js +18 -4
  76. package/dist/index274.js +12 -201
  77. package/dist/index275.js +108 -0
  78. package/dist/index277.js +100 -3
  79. package/dist/index279.js +228 -40
  80. package/dist/index280.js +9 -6
  81. package/dist/index281.js +2 -17
  82. package/dist/index282.js +2 -12
  83. package/dist/index283.js +7 -106
  84. package/dist/index284.js +9 -0
  85. package/dist/index285.js +5 -100
  86. package/dist/index286.js +7 -0
  87. package/dist/index287.js +5 -229
  88. package/dist/index288.js +6 -34
  89. package/dist/index289.js +16 -9
  90. package/dist/index29.js +3 -3
  91. package/dist/index290.js +67 -2
  92. package/dist/index291.js +9 -7
  93. package/dist/index292.js +10 -6
  94. package/dist/index293.js +5 -67
  95. package/dist/index296.js +2 -7
  96. package/dist/index297.js +3 -280
  97. package/dist/index298.js +17 -2
  98. package/dist/index299.js +27 -15
  99. package/dist/index300.js +5 -2
  100. package/dist/index301.js +4 -16
  101. package/dist/index302.js +7 -2
  102. package/dist/index303.js +5 -27
  103. package/dist/index304.js +3 -2
  104. package/dist/index305.js +3 -2
  105. package/dist/index306.js +280 -2
  106. package/dist/index307.js +2 -2
  107. package/dist/index308.js +16 -2
  108. package/dist/index309.js +2 -28
  109. package/dist/index31.js +2 -2
  110. package/dist/index310.js +16 -2
  111. package/dist/index311.js +2 -3
  112. package/dist/index312.js +27 -17
  113. package/dist/index313.js +2 -125
  114. package/dist/index314.js +2 -2
  115. package/dist/index315.js +2 -15
  116. package/dist/index316.js +2 -2
  117. package/dist/index317.js +2 -19
  118. package/dist/index318.js +2 -2
  119. package/dist/index319.js +1 -1
  120. package/dist/index320.js +1 -1
  121. package/dist/index321.js +2 -719
  122. package/dist/index322.js +716 -363
  123. package/dist/index323.js +366 -57
  124. package/dist/index324.js +57 -4
  125. package/dist/index325.js +125 -5
  126. package/dist/index326.js +2 -5
  127. package/dist/index327.js +15 -3
  128. package/dist/index328.js +2 -3
  129. package/dist/index329.js +19 -2
  130. package/dist/index33.js +8 -8
  131. package/dist/index330.js +2 -2
  132. package/dist/index331.js +3 -5
  133. package/dist/index332.js +1 -1
  134. package/dist/index333.js +6 -5
  135. package/dist/index334.js +7 -6
  136. package/dist/index335.js +5 -18
  137. package/dist/index336.js +8 -9
  138. package/dist/index337.js +34 -14
  139. package/dist/index338.js +6 -7
  140. package/dist/index339.js +128 -57
  141. package/dist/index340.js +396 -56
  142. package/dist/index341.js +6 -3
  143. package/dist/index342.js +18 -34
  144. package/dist/index343.js +9 -6
  145. package/dist/index344.js +12 -126
  146. package/dist/index345.js +5 -398
  147. package/dist/index346.js +6 -7
  148. package/dist/index347.js +92 -5
  149. package/dist/index348.js +57 -7
  150. package/dist/index349.js +57 -21
  151. package/dist/index35.js +4 -4
  152. package/dist/{index353.js → index350.js} +1 -1
  153. package/dist/index352.js +21 -92
  154. package/dist/index37.js +18 -18
  155. package/dist/index39.js +7 -7
  156. package/dist/index41.js +2 -2
  157. package/dist/index43.js +8 -8
  158. package/dist/index45.js +6 -6
  159. package/dist/index49.js +2 -2
  160. package/dist/index53.js +1 -1
  161. package/dist/index55.js +1 -1
  162. package/dist/index57.js +2 -2
  163. package/dist/index61.js +5 -5
  164. package/dist/index67.js +1 -1
  165. package/dist/index80.js +6 -6
  166. package/dist/index82.js +1 -1
  167. package/dist/index84.js +2 -2
  168. package/dist/index86.js +3 -3
  169. package/dist/index88.js +1 -1
  170. package/dist/index91.js +3 -3
  171. package/dist/index93.js +2 -2
  172. package/dist/index95.js +5 -5
  173. package/dist/index97.js +1 -1
  174. package/package.json +1 -1
  175. package/dist/index226.js +0 -7
  176. package/dist/index246.js +0 -5
  177. package/dist/index248.js +0 -5
  178. package/dist/index276.js +0 -5
  179. package/dist/index278.js +0 -6
@@ -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[];