bitboss-ui 2.1.80 → 2.1.82

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 (188) 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/index136.js +2 -2
  14. package/dist/index139.js +1 -1
  15. package/dist/index141.js +2 -2
  16. package/dist/index142.js +1 -1
  17. package/dist/index15.js +5 -5
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index21.js +14 -14
  21. package/dist/index214.js +138 -2
  22. package/dist/index215.js +2 -138
  23. package/dist/index216.js +2 -2
  24. package/dist/index217.js +1 -1
  25. package/dist/index218.js +1 -1
  26. package/dist/index219.js +86 -33
  27. package/dist/index221.js +31 -0
  28. package/dist/index222.js +17 -5
  29. package/dist/index223.js +51 -5
  30. package/dist/index224.js +15 -5
  31. package/dist/index225.js +3 -5
  32. package/dist/index226.js +12 -5
  33. package/dist/index227.js +16 -3
  34. package/dist/index228.js +4 -2
  35. package/dist/index229.js +13 -6
  36. package/dist/index23.js +11 -11
  37. package/dist/index230.js +19 -7
  38. package/dist/index231.js +190 -257
  39. package/dist/index233.js +131 -48
  40. package/dist/index235.js +2 -60
  41. package/dist/index236.js +2 -13
  42. package/dist/index237.js +3 -86
  43. package/dist/index238.js +4 -0
  44. package/dist/index239.js +2 -29
  45. package/dist/index240.js +6 -16
  46. package/dist/index241.js +2 -51
  47. package/dist/index242.js +7 -15
  48. package/dist/index243.js +5 -12
  49. package/dist/index244.js +5 -16
  50. package/dist/index245.js +5 -10
  51. package/dist/index246.js +5 -3
  52. package/dist/index247.js +5 -4
  53. package/dist/index248.js +5 -3
  54. package/dist/index249.js +2 -5
  55. package/dist/index25.js +3 -3
  56. package/dist/index250.js +3 -5
  57. package/dist/index251.js +13 -5
  58. package/dist/index252.js +13 -2
  59. package/dist/index253.js +10 -3
  60. package/dist/index254.js +2 -19
  61. package/dist/index255.js +4 -135
  62. package/dist/index256.js +36 -0
  63. package/dist/index257.js +8 -187
  64. package/dist/index258.js +33 -3
  65. package/dist/index259.js +27 -12
  66. package/dist/index261.js +3 -9
  67. package/dist/index262.js +7 -2
  68. package/dist/index263.js +4 -11
  69. package/dist/index264.js +5 -6
  70. package/dist/index265.js +187 -15
  71. package/dist/index266.js +3 -9
  72. package/dist/index267.js +9 -2
  73. package/dist/index268.js +66 -7
  74. package/dist/index269.js +6 -9
  75. package/dist/index27.js +1 -1
  76. package/dist/index270.js +16 -23
  77. package/dist/index271.js +10 -22
  78. package/dist/index272.js +8 -2
  79. package/dist/index273.js +106 -4
  80. package/dist/index275.js +102 -0
  81. package/dist/index277.js +5 -3
  82. package/dist/index278.js +6 -4
  83. package/dist/index279.js +267 -40
  84. package/dist/index280.js +52 -7
  85. package/dist/index281.js +51 -17
  86. package/dist/index282.js +32 -12
  87. package/dist/index283.js +54 -100
  88. package/dist/index284.js +25 -0
  89. package/dist/index285.js +8 -99
  90. package/dist/index286.js +25 -0
  91. package/dist/index287.js +7 -227
  92. package/dist/index288.js +40 -33
  93. package/dist/index289.js +17 -8
  94. package/dist/index29.js +3 -3
  95. package/dist/index290.js +12 -2
  96. package/dist/index291.js +229 -7
  97. package/dist/index292.js +3 -7
  98. package/dist/index293.js +7 -66
  99. package/dist/index295.js +1 -1
  100. package/dist/index296.js +3 -7
  101. package/dist/index297.js +17 -280
  102. package/dist/index298.js +28 -2
  103. package/dist/index299.js +3 -16
  104. package/dist/index300.js +3 -2
  105. package/dist/index301.js +7 -16
  106. package/dist/index302.js +5 -2
  107. package/dist/index303.js +4 -27
  108. package/dist/index304.js +2 -2
  109. package/dist/index305.js +280 -2
  110. package/dist/index306.js +2 -2
  111. package/dist/index307.js +125 -2
  112. package/dist/index308.js +2 -2
  113. package/dist/index309.js +14 -27
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +2 -2
  116. package/dist/index311.js +16 -3
  117. package/dist/index312.js +2 -17
  118. package/dist/index313.js +12 -121
  119. package/dist/index314.js +2 -2
  120. package/dist/index315.js +16 -12
  121. package/dist/index317.js +2 -19
  122. package/dist/index318.js +719 -2
  123. package/dist/index319.js +366 -3
  124. package/dist/index320.js +57 -3
  125. package/dist/index321.js +27 -719
  126. package/dist/index322.js +2 -366
  127. package/dist/index323.js +2 -57
  128. package/dist/index324.js +2 -4
  129. package/dist/index325.js +2 -5
  130. package/dist/index326.js +2 -5
  131. package/dist/index327.js +2 -3
  132. package/dist/index328.js +4 -3
  133. package/dist/index329.js +3 -2
  134. package/dist/index33.js +8 -8
  135. package/dist/index330.js +3 -2
  136. package/dist/index332.js +1 -1
  137. package/dist/index333.js +5 -5
  138. package/dist/index334.js +34 -6
  139. package/dist/index335.js +6 -19
  140. package/dist/index336.js +127 -7
  141. package/dist/index337.js +395 -12
  142. package/dist/index338.js +7 -6
  143. package/dist/index339.js +6 -58
  144. package/dist/index340.js +7 -57
  145. package/dist/index341.js +58 -4
  146. package/dist/index342.js +58 -35
  147. package/dist/index343.js +93 -6
  148. package/dist/index344.js +5 -129
  149. package/dist/index345.js +6 -397
  150. package/dist/index346.js +18 -7
  151. package/dist/index347.js +8 -5
  152. package/dist/index348.js +15 -8
  153. package/dist/index349.js +7 -22
  154. package/dist/index35.js +4 -4
  155. package/dist/index350.js +136 -0
  156. package/dist/index351.js +21 -133
  157. package/dist/index354.js +2 -2
  158. package/dist/index355.js +424 -503
  159. package/dist/index356.js +114 -427
  160. package/dist/index357.js +516 -124
  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/index80.js +6 -6
  173. package/dist/index82.js +1 -1
  174. package/dist/index84.js +2 -2
  175. package/dist/index86.js +3 -3
  176. package/dist/index88.js +1 -1
  177. package/dist/index91.js +3 -3
  178. package/dist/index93.js +2 -2
  179. package/dist/index95.js +5 -5
  180. package/dist/index97.js +1 -1
  181. package/package.json +1 -1
  182. package/dist/index220.js +0 -30
  183. package/dist/index232.js +0 -54
  184. package/dist/index234.js +0 -34
  185. package/dist/index260.js +0 -15
  186. package/dist/index274.js +0 -203
  187. package/dist/index276.js +0 -5
  188. package/dist/index352.js +0 -95
@@ -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
+ expandProps?: 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
+ expandProps?: 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
+ expandProps?: ExpandControllerProps;
326
+ toggleExpanded?: () => void;
306
327
  item: Item;
307
328
  value?: any;
308
329
  items?: Item[];