bitboss-ui 0.2.31 → 0.2.32
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/BaseButton/BaseButton.vue.d.ts +6 -6
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
- package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
- package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
- package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
- package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
- package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +11 -11
- package/dist/components/BbTable/types.d.ts +107 -107
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/composables/useConfirm.d.ts +10 -10
- package/dist/composables/useOptions.d.ts +2 -2
- package/dist/composables/useRoute.d.ts +2 -2
- package/dist/composables/useRouter.d.ts +1 -1
- package/dist/composables/useToast.d.ts +5 -5
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index.d.ts +126 -126
- package/dist/index101.js +32 -37
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +19 -19
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +16 -16
- package/dist/index105.js.map +1 -1
- package/dist/index107.js +15 -15
- package/dist/index107.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +7 -7
- package/dist/index11.js.map +1 -1
- package/dist/index111.js +16 -16
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +3 -3
- package/dist/index113.js.map +1 -1
- package/dist/index115.js +6 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +4 -4
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +5 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +4 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +11 -11
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +226 -224
- package/dist/index15.js.map +1 -1
- package/dist/index17.js +61 -62
- package/dist/index17.js.map +1 -1
- package/dist/index19.js +22 -22
- package/dist/index19.js.map +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +293 -14
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +23 -23
- package/dist/index2.js.map +1 -1
- package/dist/index200.js +15 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -17
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -28
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -378
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -134
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +235 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +3 -174
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +35 -23
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +4 -4
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -373
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +10 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +378 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +134 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +172 -8
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -3
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -31
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -6
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +26 -233
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -8
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -121
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -27
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +120 -12
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -295
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -2
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +14 -16
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +428 -110
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +88 -105
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +199 -3
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +1 -1
- package/dist/index240.js +1 -1
- package/dist/index241.js +2 -435
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +115 -87
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +104 -198
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +160 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -162
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +37 -14
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +4 -4
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -38
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +15 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index27.js +7 -7
- package/dist/index27.js.map +1 -1
- package/dist/index29.js +15 -15
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -1
- package/dist/index3.js.map +1 -1
- package/dist/index31.js +28 -28
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +10 -11
- package/dist/index33.js.map +1 -1
- package/dist/index35.js +2 -2
- package/dist/index35.js.map +1 -1
- package/dist/index37.js +12 -12
- package/dist/index37.js.map +1 -1
- package/dist/index39.js +5 -7
- package/dist/index39.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index43.js +19 -16
- package/dist/index43.js.map +1 -1
- package/dist/index45.js +9 -9
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +7 -6
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index55.js +20 -20
- package/dist/index55.js.map +1 -1
- package/dist/index57.js +35 -35
- package/dist/index57.js.map +1 -1
- package/dist/index59.js +8 -8
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +38 -38
- package/dist/index6.js.map +1 -1
- package/dist/index61.js +27 -27
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +4 -4
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +20 -20
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +26 -26
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +21 -19
- package/dist/index69.js.map +1 -1
- package/dist/index7.js.map +1 -1
- package/dist/index71.js +2 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +3 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +14 -14
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +18 -18
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +11 -11
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +15 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +10 -7
- package/dist/index8.js.map +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +20 -20
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +34 -34
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +18 -18
- package/dist/index87.js.map +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index91.js +53 -53
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +16 -16
- package/dist/index93.js.map +1 -1
- package/dist/index95.js +21 -21
- package/dist/index95.js.map +1 -1
- package/dist/index97.js +37 -37
- package/dist/index97.js.map +1 -1
- package/dist/index99.js +18 -18
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +18 -18
- package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
- package/dist/types/ExtractGenericFromRef.d.ts +1 -1
- package/dist/types/VoidHtmlElements.d.ts +1 -1
- package/dist/utilities/functions/cloneDeep.d.ts +1 -1
- package/dist/utilities/functions/debounce.d.ts +1 -1
- package/dist/utilities/functions/flow.d.ts +1 -1
- package/dist/utilities/functions/get.d.ts +1 -1
- package/dist/utilities/functions/isNotNil.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/merge.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/overEvery.d.ts +1 -1
- package/dist/utilities/functions/percentage.d.ts +4 -4
- package/dist/utilities/functions/pick.d.ts +1 -1
- package/dist/utilities/functions/pickBy.d.ts +1 -1
- package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
- package/package.json +93 -77
- package/dist/index256.js +0 -5
- package/dist/index256.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BbTableProps, MappedCell, TableColumn } from
|
|
1
|
+
import type { BbTableProps, MappedCell, TableColumn } from './types';
|
|
2
2
|
import type { Classes } from '../../types/Classes';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTableProps>, {
|
|
4
4
|
align: string;
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
"contextmenu:row": (event: MouseEvent, item: any, selected: boolean) => void;
|
|
22
22
|
"dblclick:row": (event: MouseEvent, item: any, selected: boolean) => void;
|
|
23
23
|
"update:modelValue": (value: any) => void;
|
|
24
|
-
"update:selectAll": (value:
|
|
24
|
+
"update:selectAll": (value: boolean) => void;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTableProps>, {
|
|
26
26
|
align: string;
|
|
27
27
|
accessibleLabel: (columns: MappedCell[]) => string;
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
43
|
"onClick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
44
44
|
"onContextmenu:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
45
45
|
"onDblclick:row"?: ((event: MouseEvent, item: any, selected: boolean) => any) | undefined;
|
|
46
|
-
"onUpdate:selectAll"?: ((value:
|
|
46
|
+
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
47
47
|
}, {
|
|
48
48
|
dependencies: any[];
|
|
49
49
|
depsDebounceTime: number;
|
|
@@ -64,9 +64,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
selectAllText: string;
|
|
65
65
|
selectText: string;
|
|
66
66
|
}, {}>, Readonly<{
|
|
67
|
-
thead?: ((props:
|
|
68
|
-
tbody?: ((props:
|
|
69
|
-
tfoot?: ((props:
|
|
67
|
+
thead?: ((props: object) => any) | undefined;
|
|
68
|
+
tbody?: ((props: object) => any) | undefined;
|
|
69
|
+
tfoot?: ((props: object) => any) | undefined;
|
|
70
70
|
header_select?: ((props: {
|
|
71
71
|
multiple: boolean;
|
|
72
72
|
selectAll: boolean;
|
|
@@ -77,7 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
77
|
loading?: ((props: {
|
|
78
78
|
items: any[];
|
|
79
79
|
}) => any) | undefined;
|
|
80
|
-
|
|
80
|
+
'no-data'?: ((props: object) => any) | undefined;
|
|
81
81
|
actions?: ((props: {
|
|
82
82
|
item: any;
|
|
83
83
|
value: any;
|
|
@@ -100,9 +100,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
100
|
value?: any;
|
|
101
101
|
}) => any;
|
|
102
102
|
}> & {
|
|
103
|
-
thead?: ((props:
|
|
104
|
-
tbody?: ((props:
|
|
105
|
-
tfoot?: ((props:
|
|
103
|
+
thead?: ((props: object) => any) | undefined;
|
|
104
|
+
tbody?: ((props: object) => any) | undefined;
|
|
105
|
+
tfoot?: ((props: object) => any) | undefined;
|
|
106
106
|
header_select?: ((props: {
|
|
107
107
|
multiple: boolean;
|
|
108
108
|
selectAll: boolean;
|
|
@@ -113,7 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
113
113
|
loading?: ((props: {
|
|
114
114
|
items: any[];
|
|
115
115
|
}) => any) | undefined;
|
|
116
|
-
|
|
116
|
+
'no-data'?: ((props: object) => any) | undefined;
|
|
117
117
|
actions?: ((props: {
|
|
118
118
|
item: any;
|
|
119
119
|
value: any;
|
|
@@ -1,182 +1,182 @@
|
|
|
1
1
|
import type { Classes } from '../../types/Classes';
|
|
2
|
-
import type { InputHTMLAttributes } from
|
|
2
|
+
import type { InputHTMLAttributes } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Column as defined from outside
|
|
5
5
|
*/
|
|
6
6
|
export type TableColumn = {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
align?:
|
|
8
|
+
* Text alignment of the column.
|
|
9
|
+
*/
|
|
10
|
+
align?: 'left' | 'right' | 'center';
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
* When set to false the formatter will not run on nullish values.
|
|
13
|
+
* By default is true so you can create virtual columns with keys that do not
|
|
14
|
+
* reference a prop in the `item` and still extract data from the other
|
|
15
|
+
* arguments in the formatting function.
|
|
16
|
+
*/
|
|
17
17
|
formatOnNull?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
* Formatting function used to generate enhanced content.
|
|
20
|
+
* @param content The content generated by the extraction of `Item[key]`
|
|
21
|
+
* @param key Key of the column taken from the column definition.
|
|
22
|
+
* @param item Item of the row.
|
|
23
|
+
*/
|
|
24
24
|
formatter?: (content: any, key: string, item: any) => any;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* Key identifying the column.
|
|
27
|
+
*/
|
|
28
28
|
key: string;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Text used in the header for this column.
|
|
31
|
+
*/
|
|
32
32
|
label: string;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Placeholder used when the pipeline returns null content.
|
|
35
|
+
*/
|
|
36
36
|
placeholder?: string;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
* Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
|
|
39
|
+
*/
|
|
40
40
|
tdClass?: ColumnClasses;
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
* Defines the classes to be passed to the `<th>`.
|
|
43
|
+
*/
|
|
44
44
|
thClass?: Classes;
|
|
45
45
|
};
|
|
46
46
|
export type BbTableProps = {
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
* Function that accepts the columns and the current item as
|
|
49
|
+
* arguments and returns a label to be used for accessibility purposes.
|
|
50
|
+
*/
|
|
51
51
|
accessibleLabel?: (columns: MappedCell[], item: any) => string;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
* Displays the actions column.
|
|
54
|
+
*/
|
|
55
55
|
actions?: boolean;
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
* Label used in the header of the actions column.
|
|
58
|
+
*/
|
|
59
59
|
actionsText?: string;
|
|
60
60
|
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
align?:
|
|
61
|
+
* Text alignment of the columns.
|
|
62
|
+
*/
|
|
63
|
+
align?: 'left' | 'center' | 'right';
|
|
64
64
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
* Boolean that defines whether to display a "Select all" checkbox.
|
|
66
|
+
*/
|
|
67
67
|
allowSelectAll?: boolean;
|
|
68
68
|
/**
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
* Caption that describes the content of the table. Used for accessibility purposes.
|
|
70
|
+
*/
|
|
71
71
|
caption?: string;
|
|
72
72
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
* Array of definitions of how the columns should be rendered.
|
|
74
|
+
*/
|
|
75
75
|
columns: TableColumn[];
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
* Adds a CSS class that applies a compact style to the component.
|
|
78
|
+
*/
|
|
79
79
|
compact?: boolean;
|
|
80
80
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
* Defines an array of dependencies that will trigger actions in the component upon change.
|
|
82
|
+
*/
|
|
83
83
|
dependencies?: any[];
|
|
84
84
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
* Timeout used to debounce response to changes to dependencies.
|
|
86
|
+
*/
|
|
87
87
|
depsDebounceTime?: number;
|
|
88
88
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
* Disables the component
|
|
90
|
+
*/
|
|
91
91
|
disabled?: boolean;
|
|
92
92
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
* Boolean that defines whether to display or hide the caption.
|
|
94
|
+
* By default is true and the caption is hidden.
|
|
95
|
+
*/
|
|
96
96
|
displayCaption?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
* Defines the table layout as fixed
|
|
99
|
+
* making each column take up the same amount of space.
|
|
100
|
+
*/
|
|
101
101
|
fixed?: boolean;
|
|
102
102
|
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
* Definition for which column should be fixed.
|
|
104
|
+
* It can be an array of index of the column to fix on the left side of the table or
|
|
105
|
+
* an array of objects indicating the index and the position `left` or `right` where to affix the columns.
|
|
106
|
+
*/
|
|
107
107
|
fixedColumns?: (number | {
|
|
108
108
|
index: number;
|
|
109
|
-
position:
|
|
109
|
+
position: 'left' | 'right';
|
|
110
110
|
})[];
|
|
111
111
|
/**
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
* Boolean that sets the headers as sticky top the top of the table.
|
|
113
|
+
*/
|
|
114
114
|
fixedHeader?: boolean;
|
|
115
115
|
items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
|
|
116
116
|
itemValue?: string | ((item: any) => any);
|
|
117
117
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
* Text content of the legend.
|
|
119
|
+
*/
|
|
120
120
|
legend?: string;
|
|
121
121
|
/**
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
* Sets the component in a loading state, usually triggering some visual styles.
|
|
123
|
+
*/
|
|
124
124
|
loading?: boolean;
|
|
125
125
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
* String displayed while items are being loaded.
|
|
127
|
+
*/
|
|
128
128
|
loadingText?: string;
|
|
129
129
|
/**
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
matchStrategy?:
|
|
130
|
+
* Defines the strategy used to understand whether an option has been selected.
|
|
131
|
+
* `string` is 40% faster but relies on property order.
|
|
132
|
+
* `equality` is more reliable but is slower.
|
|
133
|
+
*/
|
|
134
|
+
matchStrategy?: 'string' | 'equality';
|
|
135
135
|
/**
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
* Used by v-model. Can be any serializable type.
|
|
137
|
+
*/
|
|
138
138
|
modelValue?: any;
|
|
139
139
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
* Allows the selection of multiple items.
|
|
141
|
+
*/
|
|
142
142
|
multiple?: boolean;
|
|
143
143
|
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name?: InputHTMLAttributes[
|
|
144
|
+
* Defines the name of the input.
|
|
145
|
+
*/
|
|
146
|
+
name?: InputHTMLAttributes['name'];
|
|
147
147
|
/**
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
* String displayed when there are no items to display.
|
|
149
|
+
*/
|
|
150
150
|
noDataText?: string;
|
|
151
151
|
/**
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
readonly?: InputHTMLAttributes[
|
|
152
|
+
* Sets the input in a readonly state.
|
|
153
|
+
*/
|
|
154
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
155
155
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
* Defines whether the table is selectable.
|
|
157
|
+
* Can be a global boolean that affects all rows or a function
|
|
158
|
+
* that accepts an otem and returns a boolean that only affects that item.
|
|
159
|
+
*/
|
|
160
160
|
selectable?: boolean | ((item: any) => boolean);
|
|
161
161
|
/**
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
* Used by v-model:selectAll. Indicates whether the "Select all" checkbox is checked or not.
|
|
163
|
+
*/
|
|
164
164
|
selectAll?: boolean;
|
|
165
165
|
/**
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
* Text of the label used by the "Select all" boolean.
|
|
167
|
+
*/
|
|
168
168
|
selectAllText?: string;
|
|
169
169
|
/**
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
* Text of the header used for the radio inputs when the table is not `multiple`.
|
|
171
|
+
*/
|
|
172
172
|
selectText?: string;
|
|
173
173
|
/**
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
* Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
|
|
175
|
+
*/
|
|
176
176
|
tdClass?: ColumnClasses;
|
|
177
177
|
/**
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
* Defines the classes to be passed to the `<th>`.
|
|
179
|
+
*/
|
|
180
180
|
thClass?: Classes;
|
|
181
181
|
};
|
|
182
182
|
/**
|
|
@@ -226,16 +226,16 @@ export type MappedCell = {
|
|
|
226
226
|
slotName: string;
|
|
227
227
|
};
|
|
228
228
|
export type BbTableEvents = {
|
|
229
|
-
(e:
|
|
230
|
-
(e:
|
|
231
|
-
(e:
|
|
232
|
-
(e:
|
|
233
|
-
(e:
|
|
229
|
+
(e: 'click:row', event: MouseEvent, item: any, selected: boolean): void;
|
|
230
|
+
(e: 'contextmenu:row', event: MouseEvent, item: any, selected: boolean): void;
|
|
231
|
+
(e: 'dblclick:row', event: MouseEvent, item: any, selected: boolean): void;
|
|
232
|
+
(e: 'update:modelValue', value: any): void;
|
|
233
|
+
(e: 'update:selectAll', value: boolean): void;
|
|
234
234
|
};
|
|
235
235
|
export type BbTableSlots = {
|
|
236
|
-
thead?: (props:
|
|
237
|
-
tbody?: (props:
|
|
238
|
-
tfoot?: (props:
|
|
236
|
+
thead?: (props: object) => any;
|
|
237
|
+
tbody?: (props: object) => any;
|
|
238
|
+
tfoot?: (props: object) => any;
|
|
239
239
|
header_select?: (props: {
|
|
240
240
|
multiple: boolean;
|
|
241
241
|
selectAll: boolean;
|
|
@@ -246,7 +246,7 @@ export type BbTableSlots = {
|
|
|
246
246
|
loading?: (props: {
|
|
247
247
|
items: any[];
|
|
248
248
|
}) => any;
|
|
249
|
-
|
|
249
|
+
'no-data'?: (props: object) => any;
|
|
250
250
|
actions?: (props: {
|
|
251
251
|
item: any;
|
|
252
252
|
value: any;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseTagEvents } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseTagEvents } from '../BaseTag/BaseTag.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
export type BbTagProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Guides to the browser as to the type of information expected in the field.
|
|
6
6
|
*/
|
|
7
|
-
autocomplete?: InputHTMLAttributes[
|
|
7
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
8
8
|
/**
|
|
9
9
|
* Sets autofocus on page load.
|
|
10
10
|
*/
|
|
11
|
-
autofocus?: InputHTMLAttributes[
|
|
11
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
12
12
|
/**
|
|
13
13
|
* Sets the display model for selected values to a list
|
|
14
14
|
* of comma separated string. In this mode the user
|
|
@@ -18,7 +18,7 @@ export type BbTagProps = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
20
20
|
*/
|
|
21
|
-
direction?:
|
|
21
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
22
22
|
/**
|
|
23
23
|
* Disables the component
|
|
24
24
|
*/
|
|
@@ -26,7 +26,7 @@ export type BbTagProps = {
|
|
|
26
26
|
/**
|
|
27
27
|
* The divider key used to separate values from one another. By default it is "Enter"
|
|
28
28
|
*/
|
|
29
|
-
divider?: KeyboardEvent[
|
|
29
|
+
divider?: KeyboardEvent['key'];
|
|
30
30
|
/**
|
|
31
31
|
* Can be a string or an array of string containing the messages to display.
|
|
32
32
|
*/
|
|
@@ -43,7 +43,7 @@ export type BbTagProps = {
|
|
|
43
43
|
/**
|
|
44
44
|
* The identifier of the component.
|
|
45
45
|
*/
|
|
46
|
-
id?: HTMLAttributes[
|
|
46
|
+
id?: HTMLAttributes['id'];
|
|
47
47
|
/**
|
|
48
48
|
* Text content of the label of the element.
|
|
49
49
|
*/
|
|
@@ -51,7 +51,7 @@ export type BbTagProps = {
|
|
|
51
51
|
/**
|
|
52
52
|
* Sets the text alignment of the label.
|
|
53
53
|
*/
|
|
54
|
-
labelPosition?:
|
|
54
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
55
55
|
/**
|
|
56
56
|
* Used by v-model. Can be any serializable type.
|
|
57
57
|
*/
|
|
@@ -63,15 +63,15 @@ export type BbTagProps = {
|
|
|
63
63
|
/**
|
|
64
64
|
* Defines the name of the input.
|
|
65
65
|
*/
|
|
66
|
-
name?: InputHTMLAttributes[
|
|
66
|
+
name?: InputHTMLAttributes['name'];
|
|
67
67
|
/**
|
|
68
68
|
* String displayed when there's no data.
|
|
69
69
|
*/
|
|
70
|
-
placeholder?: InputHTMLAttributes[
|
|
70
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
71
71
|
/**
|
|
72
72
|
* Sets the input in a readonly state.
|
|
73
73
|
*/
|
|
74
|
-
readonly?: InputHTMLAttributes[
|
|
74
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
75
75
|
/**
|
|
76
76
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
77
77
|
*/
|
|
@@ -80,9 +80,9 @@ export type BbTagProps = {
|
|
|
80
80
|
export type BbTagEvents = BaseTagEvents;
|
|
81
81
|
export type BbTagSlots = {
|
|
82
82
|
append?: (props: {}) => any;
|
|
83
|
-
|
|
83
|
+
'append-outer'?: (props: {}) => any;
|
|
84
84
|
prepend?: (props: {}) => any;
|
|
85
|
-
|
|
85
|
+
'prepend-outer'?: (props: {}) => any;
|
|
86
86
|
label?: (props: {
|
|
87
87
|
text: string;
|
|
88
88
|
hasErrors: boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
2
|
-
import type { BaseTextInputEvents, BaseTextInputSlots } from
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
+
import type { BaseTextInputEvents, BaseTextInputSlots } from '../BaseTextInput/BaseTextInput.vue';
|
|
3
3
|
export type BbTextInputProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Guides to the browser as to the type of information expected in the field.
|
|
6
6
|
*/
|
|
7
|
-
autocomplete?: InputHTMLAttributes[
|
|
7
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
8
8
|
/**
|
|
9
9
|
* Sets autofocus on page load.
|
|
10
10
|
*/
|
|
11
|
-
autofocus?: InputHTMLAttributes[
|
|
11
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
12
12
|
/**
|
|
13
13
|
* Disables the component
|
|
14
14
|
*/
|
|
@@ -21,19 +21,19 @@ export type BbTextInputProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The identifier of the component.
|
|
23
23
|
*/
|
|
24
|
-
id?: HTMLAttributes[
|
|
24
|
+
id?: HTMLAttributes['id'];
|
|
25
25
|
/**
|
|
26
26
|
* Defines the name of the input.
|
|
27
27
|
*/
|
|
28
|
-
name?: InputHTMLAttributes[
|
|
28
|
+
name?: InputHTMLAttributes['name'];
|
|
29
29
|
/**
|
|
30
30
|
* String displayed when there's no data.
|
|
31
31
|
*/
|
|
32
|
-
placeholder?: InputHTMLAttributes[
|
|
32
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
33
33
|
/**
|
|
34
34
|
* Sets the input in a readonly state.
|
|
35
35
|
*/
|
|
36
|
-
readonly?: InputHTMLAttributes[
|
|
36
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
37
37
|
/**
|
|
38
38
|
* Used my v-model
|
|
39
39
|
*/
|
|
@@ -41,11 +41,11 @@ export type BbTextInputProps = {
|
|
|
41
41
|
/**
|
|
42
42
|
* Type of the input. Returns the content type of the object.
|
|
43
43
|
*/
|
|
44
|
-
type?: HTMLInputElement[
|
|
44
|
+
type?: HTMLInputElement['type'];
|
|
45
45
|
/**
|
|
46
46
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
47
47
|
*/
|
|
48
|
-
direction?:
|
|
48
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
49
49
|
/**
|
|
50
50
|
* Can be a string or an array of string containing the messages to display.
|
|
51
51
|
*/
|
|
@@ -61,7 +61,7 @@ export type BbTextInputProps = {
|
|
|
61
61
|
/**
|
|
62
62
|
* Sets the text alignment of the label.
|
|
63
63
|
*/
|
|
64
|
-
labelPosition?:
|
|
64
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
65
65
|
/**
|
|
66
66
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
67
67
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseTextareaEvents, BaseTextareaSlots } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseTextareaEvents, BaseTextareaSlots } from '../BaseTextarea/BaseTextarea.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
export type BbTextareaProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Guides to the browser as to the type of information expected in the field.
|
|
6
6
|
*/
|
|
7
|
-
autocomplete?: InputHTMLAttributes[
|
|
7
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
8
8
|
/**
|
|
9
9
|
* Sets autofocus on page load.
|
|
10
10
|
*/
|
|
11
|
-
autofocus?: InputHTMLAttributes[
|
|
11
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
12
12
|
/**
|
|
13
13
|
* Expands the textarea to match its content
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export type BbTextareaProps = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
18
18
|
*/
|
|
19
|
-
direction?:
|
|
19
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
20
20
|
/**
|
|
21
21
|
* Disables the component
|
|
22
22
|
*/
|
|
@@ -37,7 +37,7 @@ export type BbTextareaProps = {
|
|
|
37
37
|
/**
|
|
38
38
|
* The identifier of the component.
|
|
39
39
|
*/
|
|
40
|
-
id?: HTMLAttributes[
|
|
40
|
+
id?: HTMLAttributes['id'];
|
|
41
41
|
/**
|
|
42
42
|
* Text content of the label of the element.
|
|
43
43
|
*/
|
|
@@ -45,7 +45,7 @@ export type BbTextareaProps = {
|
|
|
45
45
|
/**
|
|
46
46
|
* Sets the text alignment of the label.
|
|
47
47
|
*/
|
|
48
|
-
labelPosition?:
|
|
48
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
49
49
|
/**
|
|
50
50
|
* Used by v-model
|
|
51
51
|
*/
|
|
@@ -53,15 +53,15 @@ export type BbTextareaProps = {
|
|
|
53
53
|
/**
|
|
54
54
|
* Defines the name of the input.
|
|
55
55
|
*/
|
|
56
|
-
name?: InputHTMLAttributes[
|
|
56
|
+
name?: InputHTMLAttributes['name'];
|
|
57
57
|
/**
|
|
58
58
|
* String displayed when there's no data.
|
|
59
59
|
*/
|
|
60
|
-
placeholder?: InputHTMLAttributes[
|
|
60
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
61
61
|
/**
|
|
62
62
|
* Sets the input in a readonly state.
|
|
63
63
|
*/
|
|
64
|
-
readonly?: InputHTMLAttributes[
|
|
64
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
65
65
|
/**
|
|
66
66
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
67
67
|
*/
|
|
@@ -2,7 +2,7 @@ export type BbToastProps = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Placement of the messages on the screen.
|
|
4
4
|
*/
|
|
5
|
-
placement?:
|
|
5
|
+
placement?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbToastProps>, {
|
|
8
8
|
placement: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message } from
|
|
1
|
+
import type { Message } from '../../composables/useToast';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Message>, {
|
|
3
3
|
theme: string;
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
-
import type { Placement } from
|
|
3
|
-
export type BbTooltipProps = Pick<CommonProps,
|
|
2
|
+
import type { Placement } from '@floating-ui/vue';
|
|
3
|
+
export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'>;
|
|
4
4
|
type BbTooltipSlots = {
|
|
5
5
|
activator?: (props: {
|
|
6
6
|
props: {
|
|
7
|
-
|
|
7
|
+
'aria-describedby': string;
|
|
8
8
|
onMouseenter: typeof onMouseenter;
|
|
9
9
|
onFocus: typeof onFocus;
|
|
10
10
|
onBlur: typeof closeTooltip;
|