bitboss-ui 2.0.92 → 2.0.94
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.
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbRows/BbRows.vue.d.ts +105 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -2
- package/dist/components/BbTable/types.d.ts +10 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -33
- package/dist/index100.js +97 -172
- package/dist/index101.js +179 -0
- package/dist/{index108.js → index109.js} +5 -5
- package/dist/index11.js +1 -1
- package/dist/{index110.js → index111.js} +35 -35
- package/dist/{index118.js → index119.js} +2 -2
- package/dist/index12.js +6 -6
- package/dist/{index120.js → index121.js} +6 -6
- package/dist/{index122.js → index123.js} +1 -1
- package/dist/index125.js +35 -39
- package/dist/index126.js +39 -46
- package/dist/index127.js +46 -42
- package/dist/index128.js +43 -31
- package/dist/index129.js +35 -2
- package/dist/index13.js +1 -1
- package/dist/index130.js +2 -21
- package/dist/index131.js +21 -2
- package/dist/index132.js +2 -340
- package/dist/index133.js +337 -22
- package/dist/index134.js +25 -2
- package/dist/index135.js +2 -5
- package/dist/index136.js +5 -9
- package/dist/index137.js +8 -5
- package/dist/index138.js +6 -3
- package/dist/index139.js +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index15.js +4 -4
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +2 -2
- package/dist/{index195.js → index168.js} +1 -1
- package/dist/index17.js +3 -3
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +2 -2
- package/dist/index177.js +5 -0
- package/dist/index179.js +2 -3
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index188.js +2 -2
- package/dist/index189.js +2 -3
- package/dist/index19.js +2 -2
- package/dist/index190.js +1 -1
- package/dist/index191.js +5 -0
- package/dist/index194.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +3 -81
- package/dist/index205.js +3 -2
- package/dist/index206.js +80 -52
- package/dist/index207.js +4 -0
- package/dist/index208.js +126 -13
- package/dist/index209.js +5 -20
- package/dist/index21.js +14 -14
- package/dist/index210.js +125 -4
- package/dist/index211.js +17 -124
- package/dist/index212.js +16 -5
- package/dist/index213.js +13 -122
- package/dist/index214.js +2 -19
- package/dist/index215.js +2 -16
- package/dist/index216.js +40 -15
- package/dist/index217.js +20 -2
- package/dist/index218.js +6 -2
- package/dist/index219.js +53 -41
- package/dist/index221.js +12 -4
- package/dist/index222.js +5 -12
- package/dist/index223.js +12 -369
- package/dist/index224.js +367 -17
- package/dist/index225.js +3 -27
- package/dist/index226.js +4 -3
- package/dist/index227.js +19 -8
- package/dist/index228.js +25 -247
- package/dist/index229.js +3 -52
- package/dist/index23.js +18 -18
- package/dist/index230.js +6 -42
- package/dist/index231.js +249 -5
- package/dist/index232.js +43 -51
- package/dist/index233.js +43 -163
- package/dist/index234.js +5 -84
- package/dist/index235.js +62 -0
- package/dist/index236.js +164 -3
- package/dist/index237.js +84 -7
- package/dist/index239.js +2 -4
- package/dist/index240.js +4 -2
- package/dist/index241.js +2 -3
- package/dist/index242.js +3 -2
- package/dist/index243.js +7 -2
- package/dist/index244.js +2 -18
- package/dist/index245.js +17 -105
- package/dist/index246.js +108 -0
- package/dist/{index247.js → index248.js} +2 -2
- package/dist/index25.js +109 -106
- package/dist/index250.js +2 -3
- package/dist/index251.js +10 -6
- package/dist/index252.js +3 -16
- package/dist/index253.js +224 -9
- package/dist/index254.js +281 -23
- package/dist/index255.js +6 -89
- package/dist/index256.js +4 -0
- package/dist/index257.js +2 -3
- package/dist/index259.js +2 -7
- package/dist/index260.js +2 -176
- package/dist/index261.js +125 -280
- package/dist/index262.js +430 -5
- package/dist/index263.js +176 -2
- package/dist/index264.js +3 -2
- package/dist/index266.js +7 -2
- package/dist/index267.js +22 -2
- package/dist/index269.js +1 -1
- package/dist/index27.js +4 -4
- package/dist/index270.js +5 -1
- package/dist/index271.js +16 -2
- package/dist/index272.js +9 -2
- package/dist/index273.js +23 -28
- package/dist/index274.js +83 -16
- package/dist/index276.js +9 -2
- package/dist/index277.js +2 -126
- package/dist/index278.js +2 -431
- package/dist/index279.js +1 -21
- package/dist/index280.js +4 -0
- package/dist/index281.js +1 -1
- package/dist/index282.js +2 -9
- package/dist/index283.js +28 -3
- package/dist/index284.js +22 -12
- package/dist/index286.js +436 -9
- package/dist/index287.js +126 -16
- package/dist/index288.js +200 -4
- package/dist/index289.js +3 -200
- package/dist/index29.js +3 -3
- package/dist/index290.js +11 -435
- package/dist/index291.js +7 -125
- package/dist/index292.js +9 -4
- package/dist/index293.js +17 -224
- package/dist/index294.js +3 -88
- package/dist/index295.js +8 -3
- package/dist/index296.js +4 -3
- package/dist/index297.js +88 -210
- package/dist/index298.js +3 -2
- package/dist/index299.js +3 -3
- package/dist/index300.js +211 -3
- package/dist/index301.js +64 -56
- package/dist/index302.js +2 -3
- package/dist/index303.js +5 -7
- package/dist/index304.js +4 -18
- package/dist/index305.js +7 -6
- package/dist/index306.js +3 -66
- package/dist/index307.js +3 -5
- package/dist/index308.js +57 -32
- package/dist/index309.js +3 -4
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -8
- package/dist/index311.js +6 -3
- package/dist/index312.js +18 -10
- package/dist/index313.js +32 -46
- package/dist/index314.js +7 -2
- package/dist/index315.js +13 -0
- package/dist/index316.js +47 -480
- package/dist/index317.js +2 -424
- package/dist/index319.js +480 -2
- package/dist/index320.js +426 -0
- package/dist/index33.js +2 -2
- package/dist/index35.js +4 -4
- package/dist/index37.js +18 -18
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +8 -8
- package/dist/index47.js +3 -3
- package/dist/index49.js +2 -2
- package/dist/index51.js +1 -1
- package/dist/index53.js +2 -2
- package/dist/index55.js +2 -2
- package/dist/index57.js +2 -2
- package/dist/index6.js +1 -1
- package/dist/index61.js +4 -4
- package/dist/index69.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index73.js +3 -3
- package/dist/index75.js +6 -6
- package/dist/index77.js +2 -2
- package/dist/index79.js +3 -3
- package/dist/index81.js +1 -1
- package/dist/index84.js +75 -72
- package/dist/index86.js +1 -1
- package/dist/index88.js +5 -5
- package/dist/index9.js +1 -1
- package/dist/index90.js +2 -2
- package/dist/style.css +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index124.js +0 -42
- package/dist/index169.js +0 -5
- package/dist/index178.js +0 -4
- package/dist/index220.js +0 -8
- package/dist/index238.js +0 -4
- package/dist/index249.js +0 -12
- package/dist/index285.js +0 -11
- /package/dist/{index102.js → index103.js} +0 -0
- /package/dist/{index104.js → index105.js} +0 -0
- /package/dist/{index106.js → index107.js} +0 -0
- /package/dist/{index112.js → index113.js} +0 -0
- /package/dist/{index114.js → index115.js} +0 -0
- /package/dist/{index116.js → index117.js} +0 -0
- /package/dist/{index167.js → index166.js} +0 -0
- /package/dist/{index265.js → index258.js} +0 -0
- /package/dist/{index318.js → index321.js} +0 -0
- /package/dist/{index268.js → index322.js} +0 -0
@@ -254,8 +254,8 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
|
|
254
254
|
onActive?: (() => any) | undefined;
|
255
255
|
}>, {
|
256
256
|
autocomplete: string;
|
257
|
-
allowWriting: boolean | "not-mobile";
|
258
257
|
width: number | string;
|
258
|
+
allowWriting: boolean | "not-mobile";
|
259
259
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
260
260
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
261
261
|
export default _default;
|
@@ -15,9 +15,9 @@ export type BaseDialogProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'disa
|
|
15
15
|
*/
|
16
16
|
focusTarget?: string;
|
17
17
|
/**
|
18
|
-
* Displays the
|
18
|
+
* Displays the modal as fullscreen with no margin to the page
|
19
19
|
*/
|
20
|
-
fullscreen?: boolean;
|
20
|
+
fullscreen?: boolean | 'mobile';
|
21
21
|
/**
|
22
22
|
* Defines the state open / closed of the modal.
|
23
23
|
*/
|
@@ -207,13 +207,13 @@ declare function __VLS_template(): {
|
|
207
207
|
};
|
208
208
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
209
209
|
declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbDropdownProps> & Readonly<{}>, {
|
210
|
+
width: number;
|
210
211
|
transitionDuration: number;
|
211
212
|
arrowPadding: number;
|
212
213
|
offset: number;
|
213
214
|
padding: number;
|
214
215
|
placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
215
216
|
theme: string;
|
216
|
-
width: number;
|
217
217
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
218
218
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
219
219
|
export default _default;
|
@@ -15,9 +15,9 @@ export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'dis
|
|
15
15
|
*/
|
16
16
|
focusTarget?: string;
|
17
17
|
/**
|
18
|
-
* Displays the
|
18
|
+
* Displays the offcanvas as fullscreen with no margin to the page
|
19
19
|
*/
|
20
|
-
fullscreen?: boolean;
|
20
|
+
fullscreen?: boolean | 'mobile';
|
21
21
|
/**
|
22
22
|
* Defines the state open / closed of the modal.
|
23
23
|
*/
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import { BaseColumn } from '../BbTable/types';
|
2
|
+
import { Option as BaseOption } from '../../types/Option';
|
3
|
+
export type BbRowsColumn = BaseColumn;
|
4
|
+
type Props = {
|
5
|
+
columns: BbRowsColumn[];
|
6
|
+
/**
|
7
|
+
* Defines an array of dependencies that will trigger actions in the component upon change.
|
8
|
+
*/
|
9
|
+
dependencies?: any[];
|
10
|
+
/**
|
11
|
+
* Timeout used to debounce response to changes to dependencies.
|
12
|
+
*/
|
13
|
+
depsDebounceTime?: number;
|
14
|
+
/**
|
15
|
+
* Disables the component
|
16
|
+
*/
|
17
|
+
disabled?: boolean;
|
18
|
+
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
19
|
+
itemValue?: string | ((item: any) => any);
|
20
|
+
/**
|
21
|
+
* Sets the component in a loading state, usually triggering some visual styles.
|
22
|
+
*/
|
23
|
+
loading?: boolean;
|
24
|
+
/**
|
25
|
+
* Maximum number of items that can be selected.
|
26
|
+
*/
|
27
|
+
max?: number;
|
28
|
+
/**
|
29
|
+
* Used by v-model. Can be any serializable type.
|
30
|
+
*/
|
31
|
+
modelValue?: any;
|
32
|
+
/**
|
33
|
+
* Allows the selection of multiple items.
|
34
|
+
*/
|
35
|
+
multiple?: boolean;
|
36
|
+
/**
|
37
|
+
* Defines whether the table is selectable.
|
38
|
+
* Can be a global boolean that affects all rows or a function
|
39
|
+
* that accepts an item and returns a boolean that only affects that item.
|
40
|
+
*/
|
41
|
+
selectable?: boolean | ((item: any) => boolean);
|
42
|
+
};
|
43
|
+
declare let __VLS_typeProps: Props;
|
44
|
+
/**
|
45
|
+
* Projection that represents a row of cells with flags
|
46
|
+
* linked to the state of the item
|
47
|
+
*/
|
48
|
+
export type MappedItem = BaseOption & {
|
49
|
+
columns: Record<string, ItemColumn>;
|
50
|
+
};
|
51
|
+
type ItemColumn = {
|
52
|
+
key: string;
|
53
|
+
label: string;
|
54
|
+
value: any;
|
55
|
+
};
|
56
|
+
type __VLS_PublicProps = {
|
57
|
+
'unselected-items'?: any[];
|
58
|
+
'select-all'?: boolean;
|
59
|
+
} & typeof __VLS_typeProps;
|
60
|
+
declare function __VLS_template(): {
|
61
|
+
slots: {
|
62
|
+
loading?(_: {
|
63
|
+
items: any[];
|
64
|
+
}): any;
|
65
|
+
"no-data"?(_: {
|
66
|
+
loading: boolean;
|
67
|
+
}): any;
|
68
|
+
default?(_: {
|
69
|
+
key: string;
|
70
|
+
columns: Record<string, ItemColumn>;
|
71
|
+
disabled: boolean | undefined;
|
72
|
+
item: any;
|
73
|
+
select: () => void;
|
74
|
+
selected: boolean | undefined;
|
75
|
+
unselect: () => void;
|
76
|
+
value: any;
|
77
|
+
}): any;
|
78
|
+
};
|
79
|
+
refs: {};
|
80
|
+
attrs: Partial<{}>;
|
81
|
+
};
|
82
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
83
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
84
|
+
"update:unselected-items": (args_0: unselected) => any;
|
85
|
+
} & {
|
86
|
+
"update:modelValue": (value: any) => any;
|
87
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
88
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
89
|
+
"onUpdate:unselected-items"?: ((args_0: unselected) => any) | undefined;
|
90
|
+
}>, {
|
91
|
+
dependencies: any[];
|
92
|
+
depsDebounceTime: number;
|
93
|
+
multiple: boolean;
|
94
|
+
modelValue: any;
|
95
|
+
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
96
|
+
max: number;
|
97
|
+
columns: BbRowsColumn[];
|
98
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
99
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
100
|
+
export default _default;
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
102
|
+
new (): {
|
103
|
+
$slots: S;
|
104
|
+
};
|
105
|
+
};
|
@@ -116,16 +116,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
116
116
|
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
117
117
|
max: number;
|
118
118
|
align: "left" | "center" | "right";
|
119
|
-
|
119
|
+
columns: BbTableColumn[];
|
120
120
|
actionsText: string;
|
121
121
|
allowSelectAll: boolean;
|
122
|
-
columns: BbTableColumn[];
|
123
122
|
fixedColumns: (number | {
|
124
123
|
index: number;
|
125
124
|
position: "left" | "right";
|
126
125
|
})[];
|
127
126
|
selectAllLabel: string;
|
128
127
|
selectText: string;
|
128
|
+
accessibleLabel: (columns: MappedCell[], item: any) => string;
|
129
129
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
130
130
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
131
131
|
export default _default;
|
@@ -1,14 +1,7 @@
|
|
1
1
|
import { Classes } from '../../types/Classes';
|
2
2
|
import { Option } from '../../types/Option';
|
3
3
|
import { InputHTMLAttributes } from 'vue';
|
4
|
-
|
5
|
-
* Type used to infer the bahaviour of a single column. You can either extract data or provide elements useful for styling.
|
6
|
-
*/
|
7
|
-
export type BbTableColumn = {
|
8
|
-
/**
|
9
|
-
* Text alignment of the column.
|
10
|
-
*/
|
11
|
-
align?: 'left' | 'right' | 'center';
|
4
|
+
export type BaseColumn = {
|
12
5
|
/**
|
13
6
|
* When set to false the formatter will not run on nullish values.
|
14
7
|
* By default is true so you can create virtual columns with keys that do not
|
@@ -35,6 +28,15 @@ export type BbTableColumn = {
|
|
35
28
|
* Placeholder used when the pipeline returns null content.
|
36
29
|
*/
|
37
30
|
placeholder?: string;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* Type used to infer the bahaviour of a single column. You can either extract data or provide elements useful for styling.
|
34
|
+
*/
|
35
|
+
export type BbTableColumn = BaseColumn & {
|
36
|
+
/**
|
37
|
+
* Text alignment of the column.
|
38
|
+
*/
|
39
|
+
align?: 'left' | 'right' | 'center';
|
38
40
|
/**
|
39
41
|
* Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
|
40
42
|
*/
|
package/dist/index.d.ts
CHANGED
@@ -55,6 +55,7 @@ export { default as BbRadio } from './components/BbRadio/BbRadio.vue';
|
|
55
55
|
export { default as BbRadioGroup } from './components/BbRadioGroup/BbRadioGroup.vue';
|
56
56
|
export { default as BbRating } from './components/BbRating/BbRating.vue';
|
57
57
|
export { default as BbRatio } from './components/BbRatio/BbRatio.vue';
|
58
|
+
export { default as BbRows } from './components/BbRows/BbRows.vue';
|
58
59
|
export { default as BbSelect } from './components/BbSelect/BbSelect.vue';
|
59
60
|
export { default as BbSlider } from './components/BbSlider/BbSlider.vue';
|
60
61
|
export { default as BbSmoothHeight } from './components/BbSmoothHeight/BbSmoothHeight.vue';
|
package/dist/index.js
CHANGED
@@ -11,7 +11,7 @@ import { useToast as ho } from "./index11.js";
|
|
11
11
|
import { useWizard as go, wizardInjectionKey as So } from "./index12.js";
|
12
12
|
import { default as Do } from "./index13.js";
|
13
13
|
/* empty css */
|
14
|
-
import { default as
|
14
|
+
import { default as ko } from "./index15.js";
|
15
15
|
/* empty css */
|
16
16
|
import { default as Po } from "./index17.js";
|
17
17
|
/* empty css */
|
@@ -65,7 +65,7 @@ import { default as Sr } from "./index65.js";
|
|
65
65
|
/* empty css */
|
66
66
|
import { default as Dr } from "./index67.js";
|
67
67
|
/* empty css */
|
68
|
-
import { default as
|
68
|
+
import { default as kr } from "./index69.js";
|
69
69
|
/* empty css */
|
70
70
|
import { default as Pr } from "./index71.js";
|
71
71
|
/* empty css */
|
@@ -97,39 +97,40 @@ import { default as rt } from "./index96.js";
|
|
97
97
|
import { default as et } from "./index98.js";
|
98
98
|
/* empty css */
|
99
99
|
import { default as pt } from "./index100.js";
|
100
|
+
import { default as mt } from "./index101.js";
|
100
101
|
/* empty css */
|
101
|
-
import { default as
|
102
|
+
import { default as ut } from "./index103.js";
|
102
103
|
/* empty css */
|
103
|
-
import { default as
|
104
|
+
import { default as xt } from "./index105.js";
|
104
105
|
/* empty css */
|
105
|
-
import { default as
|
106
|
+
import { default as lt } from "./index107.js";
|
106
107
|
/* empty css */
|
107
|
-
import { default as
|
108
|
+
import { default as bt } from "./index109.js";
|
108
109
|
/* empty css */
|
109
|
-
import { default as
|
110
|
+
import { default as ct } from "./index111.js";
|
110
111
|
/* empty css */
|
111
|
-
import { default as
|
112
|
+
import { default as It } from "./index113.js";
|
112
113
|
/* empty css */
|
113
|
-
import { default as
|
114
|
+
import { default as Tt } from "./index115.js";
|
114
115
|
/* empty css */
|
115
|
-
import { default as
|
116
|
+
import { default as St } from "./index117.js";
|
116
117
|
/* empty css */
|
117
|
-
import { default as
|
118
|
+
import { default as Dt } from "./index119.js";
|
118
119
|
/* empty css */
|
119
|
-
import { default as
|
120
|
+
import { default as kt } from "./index121.js";
|
120
121
|
/* empty css */
|
121
|
-
import { default as
|
122
|
+
import { default as Pt } from "./index123.js";
|
122
123
|
/* empty css */
|
123
|
-
import { default as Pt } from "./index124.js";
|
124
124
|
import { default as zt } from "./index125.js";
|
125
125
|
import { default as Nt } from "./index126.js";
|
126
126
|
import { default as yt } from "./index127.js";
|
127
127
|
import { default as Kt } from "./index128.js";
|
128
|
+
import { default as Ot } from "./index129.js";
|
128
129
|
export {
|
129
130
|
Do as BaseButton,
|
130
131
|
Po as BaseCheckbox,
|
131
132
|
zo as BaseCheckboxGroup,
|
132
|
-
|
133
|
+
ko as BaseColorInput,
|
133
134
|
No as BaseDatePicker,
|
134
135
|
yo as BaseDatePickerInput,
|
135
136
|
Ko as BaseDialog,
|
@@ -153,16 +154,16 @@ export {
|
|
153
154
|
Ir as BbButton,
|
154
155
|
Tr as BbCheckbox,
|
155
156
|
Sr as BbCheckboxGroup,
|
156
|
-
|
157
|
-
|
157
|
+
zt as BbChip,
|
158
|
+
Nt as BbCollapsible,
|
158
159
|
Dr as BbColorInput,
|
159
|
-
|
160
|
+
kr as BbConfirm,
|
160
161
|
Pr as BbDatePickerInput,
|
161
162
|
zr as BbDialog,
|
162
163
|
Nr as BbDropdown,
|
163
164
|
yr as BbDropdownButton,
|
164
165
|
Kr as BbDropzone,
|
165
|
-
|
166
|
+
yt as BbIcon,
|
166
167
|
Or as BbIntersection,
|
167
168
|
Wr as BbNumberInput,
|
168
169
|
Er as BbOffCanvas,
|
@@ -173,20 +174,21 @@ export {
|
|
173
174
|
$r as BbRadioGroup,
|
174
175
|
rt as BbRating,
|
175
176
|
et as BbRatio,
|
176
|
-
pt as
|
177
|
-
mt as
|
178
|
-
|
179
|
-
Kt as
|
180
|
-
|
181
|
-
xt as
|
182
|
-
lt as
|
183
|
-
bt as
|
184
|
-
ct as
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
Dt as
|
189
|
-
|
177
|
+
pt as BbRows,
|
178
|
+
mt as BbSelect,
|
179
|
+
ut as BbSlider,
|
180
|
+
Kt as BbSmoothHeight,
|
181
|
+
Ot as BbSpinner,
|
182
|
+
xt as BbSwitch,
|
183
|
+
lt as BbSwitchGroup,
|
184
|
+
bt as BbTab,
|
185
|
+
ct as BbTable,
|
186
|
+
It as BbTag,
|
187
|
+
St as BbTextInput,
|
188
|
+
Tt as BbTextarea,
|
189
|
+
Dt as BbToast,
|
190
|
+
kt as BbTooltip,
|
191
|
+
Pt as BbTree,
|
190
192
|
po as useBbConfig,
|
191
193
|
mo as useBroadcastChannelInstance,
|
192
194
|
uo as useConfirm,
|
package/dist/index100.js
CHANGED
@@ -1,179 +1,104 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
autofocus: {},
|
14
|
-
comma: { type: Boolean },
|
15
|
-
dependencies: {},
|
16
|
-
depsDebounceTime: {},
|
17
|
-
direction: {},
|
1
|
+
import { defineComponent as S, mergeModels as v, computed as y, toRef as u, reactive as $, useModel as b, watch as A, openBlock as h, createElementBlock as V, Fragment as g, renderSlot as r, unref as L, createCommentVNode as R, renderList as q } from "vue";
|
2
|
+
import { useOptions as E } from "./index236.js";
|
3
|
+
import { useItemValue as Q } from "./index292.js";
|
4
|
+
import { isNil as k } from "./index130.js";
|
5
|
+
import { indexBy as j } from "./index295.js";
|
6
|
+
import { hash as B } from "./index229.js";
|
7
|
+
const X = /* @__PURE__ */ S({
|
8
|
+
__name: "BbRows",
|
9
|
+
props: /* @__PURE__ */ v({
|
10
|
+
columns: { default: () => [] },
|
11
|
+
dependencies: { default: () => [] },
|
12
|
+
depsDebounceTime: { default: 0 },
|
18
13
|
disabled: { type: Boolean },
|
19
|
-
|
20
|
-
errors: {},
|
21
|
-
filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
|
22
|
-
hasErrors: { type: Boolean },
|
23
|
-
hideLabel: { type: Boolean },
|
24
|
-
hint: {},
|
25
|
-
id: {},
|
26
|
-
items: {},
|
27
|
-
itemText: {},
|
14
|
+
items: { type: [Array, Function], default: () => [] },
|
28
15
|
itemValue: {},
|
29
|
-
label: {},
|
30
|
-
labelPosition: {},
|
31
16
|
loading: { type: Boolean },
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
prefill: e.prefill,
|
116
|
-
"prepend:icon": r["prepend:icon"],
|
117
|
-
"query-debounce-time": e.queryDebounceTime,
|
118
|
-
readonly: e.readonly,
|
119
|
-
required: e.required,
|
120
|
-
"reset-query-on-option-selected": e.resetQueryOnOptionSelected,
|
121
|
-
stash: e.stash,
|
122
|
-
"transition-duration": e.transitionDuration,
|
123
|
-
"update-on-animation-frame": e.updateOnAnimationFrame
|
124
|
-
}, b), {
|
125
|
-
"append-outer": n((o) => [
|
126
|
-
a(e.$slots, "append-outer", i(l(o)))
|
127
|
-
]),
|
128
|
-
append: n((o) => [
|
129
|
-
a(e.$slots, "append", i(l(o)))
|
130
|
-
]),
|
131
|
-
prefix: n((o) => [
|
132
|
-
a(e.$slots, "prefix", i(l(o)))
|
133
|
-
]),
|
134
|
-
chevron: n((o) => [
|
135
|
-
a(e.$slots, "chevron", i(l(o)))
|
136
|
-
]),
|
137
|
-
loading: n((o) => [
|
138
|
-
a(e.$slots, "loading", i(l(o)))
|
139
|
-
]),
|
140
|
-
"no-data": n((o) => [
|
141
|
-
a(e.$slots, "no-data", i(l(o)))
|
142
|
-
]),
|
143
|
-
"option:append": n((o) => [
|
144
|
-
a(e.$slots, "option:append", i(l(o)))
|
145
|
-
]),
|
146
|
-
"option:prepend": n((o) => [
|
147
|
-
a(e.$slots, "option:prepend", i(l(o)))
|
148
|
-
]),
|
149
|
-
option: n((o) => [
|
150
|
-
a(e.$slots, "option", i(l(o)))
|
151
|
-
]),
|
152
|
-
"options:append": n((o) => [
|
153
|
-
a(e.$slots, "options:append", i(l(o)))
|
154
|
-
]),
|
155
|
-
"options:prepend": n((o) => [
|
156
|
-
a(e.$slots, "options:prepend", i(l(o)))
|
157
|
-
]),
|
158
|
-
"prepend-outer": n((o) => [
|
159
|
-
a(e.$slots, "prepend-outer", i(l(o)))
|
160
|
-
]),
|
161
|
-
prepend: n((o) => [
|
162
|
-
a(e.$slots, "prepend", i(l(o)))
|
163
|
-
]),
|
164
|
-
suffix: n((o) => [
|
165
|
-
a(e.$slots, "suffix", i(l(o)))
|
166
|
-
]),
|
167
|
-
spinner: n((o) => [
|
168
|
-
a(e.$slots, "spinner", i(l(o)))
|
169
|
-
]),
|
170
|
-
_: 2
|
171
|
-
}, 1040, ["id", "add-options", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
|
172
|
-
]),
|
173
|
-
_: 3
|
174
|
-
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
17
|
+
max: { default: 1 / 0 },
|
18
|
+
modelValue: { default: () => [] },
|
19
|
+
multiple: { type: Boolean, default: !0 },
|
20
|
+
selectable: { type: [Boolean, Function] }
|
21
|
+
}, {
|
22
|
+
"unselected-items": {
|
23
|
+
default: () => []
|
24
|
+
},
|
25
|
+
"unselected-itemsModifiers": {},
|
26
|
+
"select-all": { type: Boolean, default: !1 },
|
27
|
+
"select-allModifiers": {}
|
28
|
+
}),
|
29
|
+
emits: /* @__PURE__ */ v(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
|
30
|
+
setup(d, { emit: I }) {
|
31
|
+
const l = d, m = I, { getItemValue: x } = Q(), p = y(() => !!(l.loading || M.value)), { options: O, selectOption: T, unselectOption: D, internalItems: H, innerLoading: M } = E({
|
32
|
+
emit: m,
|
33
|
+
itemText: void 0,
|
34
|
+
itemValue: l.itemValue,
|
35
|
+
max: l.max,
|
36
|
+
modelValue: u(l, "modelValue"),
|
37
|
+
multiple: l.multiple,
|
38
|
+
resetQueryOnOptionSelected: !1,
|
39
|
+
stash: !1,
|
40
|
+
items: u(l, "items"),
|
41
|
+
enforceCoherence: !1,
|
42
|
+
prefill: !0,
|
43
|
+
modelValueDebounceTime: 0,
|
44
|
+
dependencies: u(l, "dependencies"),
|
45
|
+
depsDebounceTime: l.depsDebounceTime,
|
46
|
+
queryDebounceTime: 0,
|
47
|
+
disabled: u(l, "disabled")
|
48
|
+
}), f = y(() => O.value.map((e) => {
|
49
|
+
let s = !l.selectable;
|
50
|
+
return typeof l.selectable == "function" && (s = !l.selectable(e.item)), s = s || !!e.disabled, {
|
51
|
+
columns: j(
|
52
|
+
l.columns.map((t) => {
|
53
|
+
const { label: F, key: N } = t;
|
54
|
+
let o = x(e.item, t.key);
|
55
|
+
return t.formatter && // By default the formatter runs anyway
|
56
|
+
(!k(o) || t.formatOnNull !== !1) && (o = t.formatter(o, t.key, e.item)), t.placeholder && k(o) && (o = t.placeholder), {
|
57
|
+
value: o,
|
58
|
+
key: N,
|
59
|
+
label: F
|
60
|
+
};
|
61
|
+
}),
|
62
|
+
(t) => t.key
|
63
|
+
),
|
64
|
+
item: e.item,
|
65
|
+
text: e.text,
|
66
|
+
valueHash: e.valueHash,
|
67
|
+
value: e.value,
|
68
|
+
selected: !!(e.selected || c.value),
|
69
|
+
disabled: s
|
70
|
+
};
|
71
|
+
})), w = (e) => {
|
72
|
+
c.value || T(e), i.delete(e.valueHash), n.value = n.value.filter(
|
73
|
+
(s) => B(s) !== B(e.item)
|
74
|
+
);
|
75
|
+
}, C = (e) => {
|
76
|
+
i.add(e.valueHash), n.value.push(e.item), D(e);
|
77
|
+
}, i = $(/* @__PURE__ */ new Set()), n = b(d, "unselected-items");
|
78
|
+
let c = b(d, "select-all");
|
79
|
+
return A(c, () => {
|
80
|
+
i.clear(), n.value = [], m("update:modelValue", []);
|
81
|
+
}), (e, s) => (h(), V(g, null, [
|
82
|
+
p.value ? r(e.$slots, "loading", {
|
83
|
+
key: 0,
|
84
|
+
items: L(H)
|
85
|
+
}) : R("", !0),
|
86
|
+
f.value.length ? (h(!0), V(g, { key: 2 }, q(f.value, (a) => r(e.$slots, "default", {
|
87
|
+
key: a.valueHash,
|
88
|
+
columns: a.columns,
|
89
|
+
disabled: a.disabled,
|
90
|
+
item: a.item,
|
91
|
+
select: () => w(a),
|
92
|
+
selected: a.selected,
|
93
|
+
unselect: () => C(a),
|
94
|
+
value: a.value
|
95
|
+
})), 128)) : r(e.$slots, "no-data", {
|
96
|
+
key: 1,
|
97
|
+
loading: p.value
|
98
|
+
})
|
99
|
+
], 64));
|
175
100
|
}
|
176
101
|
});
|
177
102
|
export {
|
178
|
-
|
103
|
+
X as default
|
179
104
|
};
|