bitboss-ui 2.0.87 → 2.0.88
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 +14 -7
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +17 -6
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +27 -224
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +14 -2
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +27 -18
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +155 -19
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +16 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -3
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +13 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -6
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +27 -224
- package/dist/components/BaseRating/BaseRating.vue.d.ts +13 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +315 -6
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +17 -3
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +13 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +28 -217
- package/dist/components/BaseTag/BaseTag.vue.d.ts +200 -4
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +14 -3
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +28 -20
- package/dist/components/BbAlert/BbAlert.vue.d.ts +23 -16
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +14 -7
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -44
- package/dist/components/BbButton/BbButton.vue.d.ts +13 -6
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +28 -19
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +32 -252
- package/dist/components/BbChip/BbChip.vue.d.ts +13 -6
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +21 -12
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +29 -22
- package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +169 -159
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -183
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +26 -17
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +24 -15
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -12
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +17 -3
- package/dist/components/BbPagination/BbPagination.vue.d.ts +33 -23
- package/dist/components/BbPopover/BbPopover.vue.d.ts +66 -54
- package/dist/components/BbRadio/BbRadio.vue.d.ts +28 -19
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +32 -252
- package/dist/components/BbRating/BbRating.vue.d.ts +21 -12
- package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -162
- package/dist/components/BbSlider/BbSlider.vue.d.ts +21 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +13 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +28 -19
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +32 -252
- package/dist/components/BbTab/BbTab.vue.d.ts +89 -78
- package/dist/components/BbTable/BbTable.vue.d.ts +95 -78
- package/dist/components/BbTable/types.d.ts +0 -4
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -2
- package/dist/components/BbTeleport.vue.d.ts +10 -3
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -12
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -12
- 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 +13 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +9 -2
- package/dist/components/ChipsBox.vue.d.ts +2 -2
- package/dist/components/CommaBox.vue.d.ts +2 -2
- package/dist/components/CommonFloating.vue.d.ts +14 -4
- package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -7
- package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
- package/dist/components/ListBox.vue.d.ts +25 -16
- package/dist/components/OptionsContainer.vue.d.ts +26 -88
- package/dist/components/Transitions/Slide.vue.d.ts +12 -5
- package/dist/components/Transitions/SlideBack.vue.d.ts +12 -5
- package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index110.js +143 -135
- package/dist/index120.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +6 -6
- package/dist/index133.js +2 -2
- package/dist/index15.js +1 -1
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +81 -2
- package/dist/index206.js +164 -2
- package/dist/index207.js +84 -4
- package/dist/index209.js +2 -2
- package/dist/index21.js +9 -9
- package/dist/index210.js +2 -2
- package/dist/index211.js +2 -2
- package/dist/index212.js +3 -3
- package/dist/index213.js +2 -2
- package/dist/index214.js +2 -2
- package/dist/index217.js +2 -2
- package/dist/index218.js +1 -1
- package/dist/index220.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +2 -2
- package/dist/index225.js +3 -3
- package/dist/index226.js +3 -4
- package/dist/index227.js +7 -164
- package/dist/index228.js +6 -82
- package/dist/index229.js +21 -0
- package/dist/index230.js +22 -14
- package/dist/index231.js +3 -27
- package/dist/index232.js +249 -3
- package/dist/index233.js +50 -6
- package/dist/index234.js +36 -241
- package/dist/index235.js +5 -52
- package/dist/index236.js +47 -31
- package/dist/index237.js +4 -5
- package/dist/index238.js +2 -60
- package/dist/index239.js +4 -3
- package/dist/index240.js +2 -7
- package/dist/index244.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index248.js +10 -2
- package/dist/index249.js +2 -9
- package/dist/index25.js +3 -3
- package/dist/index250.js +2 -3
- package/dist/index251.js +5 -5
- package/dist/index255.js +1 -1
- package/dist/index257.js +3 -9
- package/dist/index258.js +11 -3
- package/dist/index259.js +8 -280
- package/dist/index260.js +9 -6
- package/dist/index261.js +17 -2
- package/dist/index262.js +4 -2
- package/dist/index263.js +281 -2
- package/dist/index264.js +6 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -126
- package/dist/index267.js +2 -431
- package/dist/index268.js +2 -176
- package/dist/index269.js +2 -3
- package/dist/index270.js +128 -0
- package/dist/index271.js +429 -5
- package/dist/index272.js +176 -22
- package/dist/index273.js +5 -0
- package/dist/index275.js +7 -3
- package/dist/index276.js +22 -12
- package/dist/index278.js +2 -9
- package/dist/index279.js +87 -15
- package/dist/index280.js +2 -4
- package/dist/index281.js +2 -436
- package/dist/index282.js +2 -127
- package/dist/index283.js +2 -200
- package/dist/index284.js +2 -2
- package/dist/index285.js +2 -2
- package/dist/index286.js +28 -2
- package/dist/index287.js +21 -1
- package/dist/index289.js +9 -2
- package/dist/index29.js +1 -1
- package/dist/index290.js +197 -25
- package/dist/index291.js +435 -21
- package/dist/index292.js +129 -0
- package/dist/index293.js +3 -88
- package/dist/index294.js +1 -1
- package/dist/index297.js +1 -1
- package/dist/index298.js +5 -2
- package/dist/index299.js +2 -5
- package/dist/index301.js +5 -4
- package/dist/index302.js +8 -4
- package/dist/index303.js +3 -59
- package/dist/index304.js +3 -3
- package/dist/index305.js +57 -32
- package/dist/index306.js +3 -7
- package/dist/index307.js +32 -4
- package/dist/index308.js +3 -7
- package/dist/index309.js +10 -6
- package/dist/index31.js +2 -2
- package/dist/index310.js +6 -18
- package/dist/index311.js +18 -3
- package/dist/index312.js +6 -10
- package/dist/{index316.js → index315.js} +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index37.js +3 -3
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +1 -1
- package/dist/index86.js +1 -1
- package/dist/index88.js +1 -1
- package/dist/index90.js +1 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
- package/dist/utilities/functions/deburr.d.ts +1 -1
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/groupBy.d.ts +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/replace.d.ts +1 -1
- package/dist/utilities/functions/retry.d.ts +1 -1
- package/dist/utilities/functions/throttle.d.ts +2 -2
- package/package.json +3 -3
- package/dist/index208.js +0 -4
- package/dist/index274.js +0 -4
- package/dist/index277.js +0 -11
- package/dist/index288.js +0 -4
package/dist/index110.js
CHANGED
@@ -1,28 +1,29 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { add as
|
3
|
-
import { clamp as
|
4
|
-
import { isNil as
|
5
|
-
import { useId as
|
6
|
-
import { useItemValue as
|
7
|
-
import { when as
|
8
|
-
import
|
1
|
+
import { defineComponent as ue, mergeModels as P, ref as Q, computed as k, toRef as A, useModel as U, watch as W, reactive as pe, openBlock as n, createBlock as G, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as K, createTextVNode as he, mergeProps as ke } from "vue";
|
2
|
+
import { add as ve } from "./index299.js";
|
3
|
+
import { clamp as _e } from "./index204.js";
|
4
|
+
import { isNil as X } from "./index129.js";
|
5
|
+
import { useId as Ce } from "./index8.js";
|
6
|
+
import { useItemValue as ge } from "./index260.js";
|
7
|
+
import { when as we } from "./index239.js";
|
8
|
+
import Y from "./index17.js";
|
9
9
|
/* empty css */
|
10
|
-
import
|
10
|
+
import Te from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useOptions as
|
13
|
-
|
12
|
+
import { useOptions as Ve } from "./index206.js";
|
13
|
+
import { hash as Z } from "./index231.js";
|
14
|
+
const $e = {
|
14
15
|
key: 0,
|
15
16
|
class: "sr-only"
|
16
|
-
},
|
17
|
+
}, Be = { class: "bb-table-header-row" }, Ne = { class: "bb-table-header__content" }, Se = { class: "bb-table-check__label-text sr-only" }, Ae = {
|
17
18
|
key: 1,
|
18
19
|
class: "bb-table-radio__label-text sr-only"
|
19
|
-
},
|
20
|
+
}, De = { class: "bb-table-header__content" }, Le = { class: "bb-table-header__content sr-only" }, Ie = { class: "bb-table-loading__row" }, Re = ["colspan"], He = { class: "bb-table-loading__text sr-only" }, ze = {
|
20
21
|
class: "bb-table-skeleton__container",
|
21
22
|
role: "status"
|
22
|
-
},
|
23
|
+
}, Me = { class: "bb-table-no-data__row" }, xe = ["colspan"], Oe = { class: "bb-table-no-data__text" }, qe = ["onClick", "onContextmenu", "onDblclick"], Ee = { class: "bb-table-check__label-text sr-only" }, Fe = { class: "bb-table-radio__label-text sr-only" }, tl = /* @__PURE__ */ ue({
|
23
24
|
__name: "BbTable",
|
24
|
-
props: {
|
25
|
-
accessibleLabel: { type: Function, default: (
|
25
|
+
props: /* @__PURE__ */ P({
|
26
|
+
accessibleLabel: { type: Function, default: (g) => ["Seleziona"].concat(g.map((D) => D.content)).join(" ") },
|
26
27
|
actions: { type: Boolean },
|
27
28
|
actionsText: { default: "Azioni" },
|
28
29
|
align: { default: "left" },
|
@@ -49,18 +50,24 @@ const _e = {
|
|
49
50
|
noDataText: { default: "Non ci sono elementi da visualizzare" },
|
50
51
|
readonly: {},
|
51
52
|
selectable: { type: [Boolean, Function] },
|
52
|
-
selectAll: { type: Boolean },
|
53
53
|
selectAllLabel: { default: "Seleziona tutti gli elementi di questa pagina" },
|
54
54
|
selectText: { default: "Seleziona un elemento" },
|
55
55
|
tdClass: {},
|
56
56
|
thClass: {}
|
57
|
-
},
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
}, {
|
58
|
+
"select-all": { type: Boolean, default: !1 },
|
59
|
+
"select-allModifiers": {},
|
60
|
+
"unselected-items": {
|
61
|
+
default: () => []
|
62
|
+
},
|
63
|
+
"unselected-itemsModifiers": {}
|
64
|
+
}),
|
65
|
+
emits: /* @__PURE__ */ P(["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"], ["update:select-all", "update:unselected-items"]),
|
66
|
+
setup(g, { emit: D }) {
|
67
|
+
const { getItemValue: ee } = ge(), M = Ce().id.value, t = g, v = D, $ = Q(), le = t.accessibleLabel, te = t.loadingText, ae = t.noDataText, x = t.selectText, se = k(() => t.selectable ? "fieldset" : "div"), oe = Q(!1), O = k(() => t.loading || oe.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
|
61
68
|
(e, s) => e + +!!s,
|
62
69
|
t.columns.length
|
63
|
-
)),
|
70
|
+
)), E = k(
|
64
71
|
() => t.columns.reduce(
|
65
72
|
(e, s) => {
|
66
73
|
const l = s.key.split(/\W+/g).join("_");
|
@@ -68,69 +75,69 @@ const _e = {
|
|
68
75
|
},
|
69
76
|
{}
|
70
77
|
)
|
71
|
-
), { options:
|
72
|
-
emit:
|
78
|
+
), { options: B, selectOption: ne, unselectOption: de, internalItems: F } = Ve({
|
79
|
+
emit: v,
|
73
80
|
itemText: void 0,
|
74
81
|
itemValue: t.itemValue,
|
75
82
|
max: t.max,
|
76
|
-
modelValue:
|
83
|
+
modelValue: A(t, "modelValue"),
|
77
84
|
multiple: t.multiple,
|
78
85
|
resetQueryOnOptionSelected: !1,
|
79
86
|
stash: !1,
|
80
|
-
items:
|
81
|
-
enforceCoherence: !
|
87
|
+
items: A(t, "items"),
|
88
|
+
enforceCoherence: !1,
|
82
89
|
prefill: !0,
|
83
90
|
modelValueDebounceTime: 0,
|
84
|
-
dependencies:
|
91
|
+
dependencies: A(t, "dependencies"),
|
85
92
|
depsDebounceTime: t.depsDebounceTime,
|
86
93
|
queryDebounceTime: 0,
|
87
|
-
disabled:
|
88
|
-
}),
|
94
|
+
disabled: A(t, "disabled")
|
95
|
+
}), ce = k(
|
89
96
|
() => t.columns.map((e) => {
|
90
|
-
const s = e.align || "left", { label: l, key:
|
97
|
+
const s = e.align || "left", { label: l, key: f } = e, R = `header:${E.value[e.key]}`;
|
91
98
|
let a = [`bb-table-header--${s}`];
|
92
99
|
return t.thClass && (a = a.concat(t.thClass)), e.thClass && (a = a.concat(e.thClass)), {
|
93
100
|
align: s,
|
94
|
-
key:
|
101
|
+
key: f,
|
95
102
|
label: l,
|
96
|
-
slotName:
|
103
|
+
slotName: R,
|
97
104
|
classes: a
|
98
105
|
};
|
99
106
|
})
|
100
|
-
),
|
107
|
+
), L = k(() => B.value.map((e) => {
|
101
108
|
let s = !t.selectable;
|
102
109
|
typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
|
103
110
|
const l = t.columns.map((a) => {
|
104
|
-
const
|
105
|
-
let
|
111
|
+
const c = E.value[a.key], h = a.align || "left", { label: S, key: H } = a;
|
112
|
+
let m = ee(e.item, a.key);
|
106
113
|
a.formatter && // By default the formatter runs anyway
|
107
|
-
(!
|
114
|
+
(!X(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && X(m) && (m = a.placeholder);
|
108
115
|
let b = [`bb-table-data__cell--${h}`];
|
109
116
|
if (t.tdClass)
|
110
117
|
if (typeof t.tdClass == "function") {
|
111
|
-
let _ = t.tdClass(
|
118
|
+
let _ = t.tdClass(m, a.key, e.item);
|
112
119
|
_ && (b = b.concat(_));
|
113
120
|
} else b = b.concat(t.tdClass);
|
114
121
|
if (a.tdClass)
|
115
122
|
if (typeof a.tdClass == "function") {
|
116
|
-
let _ = a.tdClass(
|
123
|
+
let _ = a.tdClass(m, a.key, e.item);
|
117
124
|
_ && (b = b.concat(_));
|
118
125
|
} else b = b.concat(a.tdClass);
|
119
126
|
return {
|
120
127
|
align: h,
|
121
128
|
classes: b,
|
122
|
-
content:
|
123
|
-
key:
|
124
|
-
label:
|
125
|
-
slotName:
|
129
|
+
content: m,
|
130
|
+
key: H,
|
131
|
+
label: S,
|
132
|
+
slotName: c
|
126
133
|
};
|
127
134
|
});
|
128
135
|
return {
|
129
|
-
accessibleLabel:
|
136
|
+
accessibleLabel: le(l, e.item),
|
130
137
|
cols: l,
|
131
|
-
onRowClick: (a) =>
|
132
|
-
onRowContextMenu: (a) =>
|
133
|
-
onRowDblClick: (a) =>
|
138
|
+
onRowClick: (a) => v("click:row", a, e, !!e.selected),
|
139
|
+
onRowContextMenu: (a) => v("contextmenu:row", a, e, !!e.selected),
|
140
|
+
onRowDblClick: (a) => v("dblclick:row", a, e, !!e.selected),
|
134
141
|
item: e.item,
|
135
142
|
text: e.text,
|
136
143
|
valueHash: e.valueHash,
|
@@ -138,55 +145,55 @@ const _e = {
|
|
138
145
|
selected: e.selected,
|
139
146
|
disabled: s
|
140
147
|
};
|
141
|
-
}))
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
},
|
148
|
+
}));
|
149
|
+
let y = U(g, "select-all");
|
150
|
+
W(y, () => {
|
151
|
+
w.clear(), N.value = [], v("update:modelValue", []);
|
152
|
+
});
|
153
|
+
const j = k(() => {
|
154
|
+
var e;
|
155
|
+
return (e = t.modelValue) != null && e.length ? L.value.some((s) => !s.selected) : !!(y.value && w.size);
|
156
|
+
}), w = pe(/* @__PURE__ */ new Set()), N = U(g, "unselected-items"), J = (e) => {
|
157
|
+
I(e) ? (de(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.item)) : (y.value || ne(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
|
158
|
+
(s) => Z(s) !== Z(e.item)
|
159
|
+
));
|
160
|
+
}, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ie = we(
|
154
161
|
(e) => typeof e != "string",
|
155
162
|
JSON.stringify
|
156
|
-
),
|
157
|
-
const s =
|
163
|
+
), be = k(() => [].concat(t.modelValue).map((e) => {
|
164
|
+
const s = ie(e);
|
158
165
|
return {
|
159
166
|
disabled: t.disabled,
|
160
167
|
name: t.name,
|
161
168
|
type: "hidden",
|
162
169
|
value: s
|
163
170
|
};
|
164
|
-
})),
|
165
|
-
return
|
166
|
-
() =>
|
171
|
+
})), re = k(() => _e(B.value.length, 4, 10));
|
172
|
+
return W(
|
173
|
+
() => L.value,
|
167
174
|
() => {
|
168
175
|
var e;
|
169
|
-
if (t.fixedColumns.length && t.items &&
|
176
|
+
if (t.fixedColumns.length && t.items && $.value) {
|
170
177
|
const s = Array.from(
|
171
|
-
|
172
|
-
), l = t.fixedColumns.reduce((a,
|
173
|
-
const h = typeof
|
178
|
+
$.value.querySelectorAll("thead th")
|
179
|
+
), l = t.fixedColumns.reduce((a, c) => {
|
180
|
+
const h = typeof c == "number" ? c : c.index, S = typeof c == "number" ? "left" : c.position, H = s[h].getBoundingClientRect(), m = Math.floor(H.width), b = a.filter((z) => z.position === S).map((z) => z.width).reduce(ve, 0), _ = {
|
174
181
|
index: h,
|
175
|
-
position:
|
176
|
-
width:
|
182
|
+
position: S,
|
183
|
+
width: m,
|
177
184
|
offset: b
|
178
185
|
};
|
179
186
|
return a.push(_), a;
|
180
187
|
}, []);
|
181
|
-
Array.from((e =
|
188
|
+
Array.from((e = $.value) == null ? void 0 : e.querySelectorAll("tr")).map(
|
182
189
|
(a) => Array.from(
|
183
190
|
a.querySelectorAll(
|
184
|
-
l.map((
|
191
|
+
l.map((c) => `:scope > :nth-child(${c.index + 1})`).join(", ")
|
185
192
|
)
|
186
193
|
)
|
187
194
|
).forEach((a) => {
|
188
|
-
a.forEach((
|
189
|
-
|
195
|
+
a.forEach((c, h) => {
|
196
|
+
c.style.position = "sticky", l[h].position === "left" ? c.style.left = `${l[h].offset}px` : c.style.right = `${l[h].offset}px`;
|
190
197
|
});
|
191
198
|
});
|
192
199
|
}
|
@@ -194,9 +201,9 @@ const _e = {
|
|
194
201
|
{
|
195
202
|
flush: "post"
|
196
203
|
}
|
197
|
-
), (e, s) => (n(),
|
204
|
+
), (e, s) => (n(), G(fe(se.value), {
|
198
205
|
ref_key: "container",
|
199
|
-
ref:
|
206
|
+
ref: $,
|
200
207
|
class: r({
|
201
208
|
"bb-table": !0,
|
202
209
|
[`bb-table--align-${e.align}`]: !0,
|
@@ -204,12 +211,12 @@ const _e = {
|
|
204
211
|
"bb-table--fixed": e.fixed,
|
205
212
|
"bb-table--fixed-header": e.fixedHeaders,
|
206
213
|
"bb-table--loading": O.value,
|
207
|
-
"bb-table--empty": !
|
214
|
+
"bb-table--empty": !i(B).length,
|
208
215
|
"bb-table--selectable": e.selectable
|
209
216
|
})
|
210
217
|
}, {
|
211
|
-
default:
|
212
|
-
e.selectable ? (n(), d("legend",
|
218
|
+
default: me(() => [
|
219
|
+
e.selectable ? (n(), d("legend", $e, u(e.legend), 1)) : C("", !0),
|
213
220
|
o("table", null, [
|
214
221
|
e.caption ? (n(), d("caption", {
|
215
222
|
key: 0,
|
@@ -217,10 +224,10 @@ const _e = {
|
|
217
224
|
"bb-table-caption": !0,
|
218
225
|
"sr-only": !e.displayCaption
|
219
226
|
})
|
220
|
-
}, u(e.caption), 3)) :
|
227
|
+
}, u(e.caption), 3)) : C("", !0),
|
221
228
|
o("thead", null, [
|
222
229
|
p(e.$slots, "thead", {}, () => [
|
223
|
-
o("tr",
|
230
|
+
o("tr", Be, [
|
224
231
|
e.selectable ? (n(), d("th", {
|
225
232
|
key: 0,
|
226
233
|
class: r(["bb-table-header bb-table-header--select", e.thClass]),
|
@@ -228,31 +235,32 @@ const _e = {
|
|
228
235
|
}, [
|
229
236
|
p(e.$slots, "header:select", {
|
230
237
|
multiple: e.multiple,
|
231
|
-
selectAll: !!
|
232
|
-
text:
|
238
|
+
selectAll: !!i(y),
|
239
|
+
text: i(x)
|
233
240
|
}, () => [
|
234
|
-
o("span",
|
241
|
+
o("span", Ne, [
|
235
242
|
e.allowSelectAll && e.multiple ? (n(), d("label", {
|
236
243
|
key: 0,
|
237
244
|
class: r(["bb-table-check__label", {
|
238
245
|
"bb-table-check__label--disabled": e.disabled
|
239
246
|
}])
|
240
247
|
}, [
|
241
|
-
|
248
|
+
(n(), G(Y, {
|
249
|
+
key: j.value.toString(),
|
250
|
+
modelValue: i(y),
|
251
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => ye(y) ? y.value = l : y = l),
|
242
252
|
class: "bb-table-check",
|
243
253
|
disabled: e.disabled,
|
244
|
-
indeterminate:
|
245
|
-
"model-value": D.value,
|
254
|
+
indeterminate: j.value,
|
246
255
|
name: `select_all_${e.name || ""}`,
|
247
|
-
readonly: e.readonly
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
], 2)) : e.multiple ? v("", !0) : (n(), d("span", we, u(y(z)), 1))
|
256
|
+
readonly: e.readonly
|
257
|
+
}, null, 8, ["modelValue", "disabled", "indeterminate", "name", "readonly"])),
|
258
|
+
o("span", Se, u(e.selectAllLabel), 1)
|
259
|
+
], 2)) : e.multiple ? C("", !0) : (n(), d("span", Ae, u(i(x)), 1))
|
252
260
|
])
|
253
261
|
])
|
254
|
-
], 2)) :
|
255
|
-
(n(!0), d(
|
262
|
+
], 2)) : C("", !0),
|
263
|
+
(n(!0), d(T, null, V(ce.value, (l) => (n(), d("th", {
|
256
264
|
key: l.key,
|
257
265
|
class: r(["bb-table-header", l.classes]),
|
258
266
|
scope: "col"
|
@@ -260,10 +268,10 @@ const _e = {
|
|
260
268
|
p(e.$slots, l.slotName, {
|
261
269
|
classes: l.classes,
|
262
270
|
item: void 0,
|
263
|
-
items:
|
271
|
+
items: i(F),
|
264
272
|
label: l.label
|
265
273
|
}, () => [
|
266
|
-
o("span",
|
274
|
+
o("span", De, u(l.label), 1)
|
267
275
|
])
|
268
276
|
], 2))), 128)),
|
269
277
|
e.actions ? (n(), d("th", {
|
@@ -272,28 +280,28 @@ const _e = {
|
|
272
280
|
scope: "col"
|
273
281
|
}, [
|
274
282
|
p(e.$slots, "header:actions", { text: e.actionsText }, () => [
|
275
|
-
o("span",
|
283
|
+
o("span", Le, u(e.actionsText), 1)
|
276
284
|
])
|
277
|
-
], 2)) :
|
285
|
+
], 2)) : C("", !0)
|
278
286
|
])
|
279
287
|
])
|
280
288
|
]),
|
281
289
|
o("tbody", null, [
|
282
290
|
O.value ? p(e.$slots, "loading", {
|
283
291
|
key: 0,
|
284
|
-
items:
|
292
|
+
items: i(F)
|
285
293
|
}, () => [
|
286
|
-
o("tr",
|
294
|
+
o("tr", Ie, [
|
287
295
|
o("td", {
|
288
296
|
class: "bb-table-loading__cell",
|
289
|
-
colspan:
|
297
|
+
colspan: q.value
|
290
298
|
}, [
|
291
|
-
o("span",
|
292
|
-
o("div",
|
293
|
-
(n(!0), d(
|
299
|
+
o("span", He, u(i(te)), 1),
|
300
|
+
o("div", ze, [
|
301
|
+
(n(!0), d(T, null, V(re.value, (l) => (n(), d("div", {
|
294
302
|
key: l,
|
295
303
|
class: "bb-table-skeleton-item"
|
296
|
-
}, s[
|
304
|
+
}, s[1] || (s[1] = [
|
297
305
|
o("div", { class: "bb-table-skeleton-item__avatar-container" }, [
|
298
306
|
o("div", { class: "bb-table-skeleton-item__avatar" })
|
299
307
|
], -1),
|
@@ -303,10 +311,10 @@ const _e = {
|
|
303
311
|
], -1)
|
304
312
|
])))), 128))
|
305
313
|
])
|
306
|
-
], 8,
|
314
|
+
], 8, Re)
|
307
315
|
])
|
308
|
-
]) :
|
309
|
-
(n(!0), d(
|
316
|
+
]) : i(B).length ? p(e.$slots, "tbody", { key: 2 }, () => [
|
317
|
+
(n(!0), d(T, null, V(L.value, (l) => (n(), d("tr", {
|
310
318
|
key: l.valueHash,
|
311
319
|
class: "bb-table-data__row",
|
312
320
|
onClick: l.onRowClick,
|
@@ -318,9 +326,9 @@ const _e = {
|
|
318
326
|
class: r(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
|
319
327
|
}, [
|
320
328
|
p(e.$slots, "select", {
|
321
|
-
checked:
|
329
|
+
checked: I(l),
|
322
330
|
disabled: !!l.disabled,
|
323
|
-
inputName:
|
331
|
+
inputName: i(M),
|
324
332
|
item: l.item,
|
325
333
|
readonly: !!e.readonly,
|
326
334
|
value: l.value
|
@@ -331,44 +339,44 @@ const _e = {
|
|
331
339
|
"bb-table-check__label--disabled": l.disabled
|
332
340
|
}])
|
333
341
|
}, [
|
334
|
-
|
335
|
-
checked: l
|
342
|
+
K(Y, {
|
343
|
+
checked: I(l),
|
336
344
|
class: "bb-table-check",
|
337
345
|
disabled: l.disabled,
|
338
346
|
readonly: e.readonly,
|
339
|
-
onChange: () =>
|
347
|
+
onChange: () => J(l)
|
340
348
|
}, null, 8, ["checked", "disabled", "readonly", "onChange"]),
|
341
|
-
o("span",
|
349
|
+
o("span", Ee, u(l.accessibleLabel), 1)
|
342
350
|
], 2)) : (n(), d("label", {
|
343
351
|
key: 1,
|
344
352
|
class: r(["bb-table-radio__label", {
|
345
353
|
"bb-table-radio__label--disabled": l.disabled
|
346
354
|
}])
|
347
355
|
}, [
|
348
|
-
|
356
|
+
K(Te, {
|
349
357
|
checked: l.selected,
|
350
358
|
class: "bb-table-radio",
|
351
359
|
disabled: l.disabled,
|
352
|
-
name:
|
360
|
+
name: i(M),
|
353
361
|
readonly: e.readonly,
|
354
362
|
value: l.value,
|
355
|
-
onChange: () =>
|
363
|
+
onChange: () => J(l)
|
356
364
|
}, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
|
357
|
-
o("span",
|
365
|
+
o("span", Fe, u(l.accessibleLabel), 1)
|
358
366
|
], 2))
|
359
367
|
])
|
360
|
-
], 2)) :
|
361
|
-
(n(!0), d(
|
362
|
-
key:
|
363
|
-
class: r(["bb-table-data__cell",
|
368
|
+
], 2)) : C("", !0),
|
369
|
+
(n(!0), d(T, null, V(l.cols, (f) => (n(), d("td", {
|
370
|
+
key: f.key,
|
371
|
+
class: r(["bb-table-data__cell", f.classes])
|
364
372
|
}, [
|
365
|
-
p(e.$slots,
|
366
|
-
classes:
|
367
|
-
content:
|
373
|
+
p(e.$slots, f.slotName, {
|
374
|
+
classes: f.classes,
|
375
|
+
content: f.content,
|
368
376
|
item: l.item,
|
369
377
|
value: l.value
|
370
378
|
}, () => [
|
371
|
-
|
379
|
+
he(u(f.content), 1)
|
372
380
|
])
|
373
381
|
], 2))), 128)),
|
374
382
|
e.actions ? (n(), d("td", {
|
@@ -379,16 +387,16 @@ const _e = {
|
|
379
387
|
item: l.item,
|
380
388
|
value: l.value
|
381
389
|
})
|
382
|
-
], 2)) :
|
383
|
-
], 40,
|
390
|
+
], 2)) : C("", !0)
|
391
|
+
], 40, qe))), 128))
|
384
392
|
]) : p(e.$slots, "no-data", { key: 1 }, () => [
|
385
|
-
o("tr",
|
393
|
+
o("tr", Me, [
|
386
394
|
o("td", {
|
387
395
|
class: "bb-table-no-data__cell",
|
388
|
-
colspan:
|
396
|
+
colspan: q.value
|
389
397
|
}, [
|
390
|
-
o("span",
|
391
|
-
], 8,
|
398
|
+
o("span", Oe, u(i(ae)), 1)
|
399
|
+
], 8, xe)
|
392
400
|
])
|
393
401
|
])
|
394
402
|
]),
|
@@ -396,7 +404,7 @@ const _e = {
|
|
396
404
|
p(e.$slots, "tfoot")
|
397
405
|
])
|
398
406
|
]),
|
399
|
-
(n(!0), d(
|
407
|
+
(n(!0), d(T, null, V(be.value, (l) => (n(), d("input", ke({
|
400
408
|
key: l.value,
|
401
409
|
ref_for: !0
|
402
410
|
}, l), null, 16))), 128))
|
@@ -406,5 +414,5 @@ const _e = {
|
|
406
414
|
}
|
407
415
|
});
|
408
416
|
export {
|
409
|
-
|
417
|
+
tl as default
|
410
418
|
};
|
package/dist/index120.js
CHANGED
@@ -4,7 +4,7 @@ import { useId as G } from "./index8.js";
|
|
4
4
|
import { wait as _ } from "./index131.js";
|
5
5
|
import J from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
7
|
+
import { throttle as m } from "./index226.js";
|
8
8
|
import { waitFor as K } from "./index219.js";
|
9
9
|
import Q from "./index255.js";
|
10
10
|
/* empty css */
|
package/dist/index122.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index298.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index126.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index238.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index127.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index226.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index128.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index238.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
|
2
2
|
import { _config as n } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index228.js";
|
4
4
|
const _ = /* @__PURE__ */ k({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|
package/dist/index130.js
CHANGED
package/dist/index132.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X,
|
2
|
-
import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./
|
1
|
+
import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index205.js";
|
2
|
+
import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index205.js";
|
3
3
|
import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
|
4
4
|
function L(l) {
|
5
5
|
var o;
|
6
6
|
const n = O(l);
|
7
7
|
return (o = n == null ? void 0 : n.$el) != null ? o : n;
|
8
8
|
}
|
9
|
-
const W =
|
9
|
+
const W = K ? window : void 0;
|
10
10
|
function P(...l) {
|
11
11
|
let o, n, t, e;
|
12
12
|
if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([n, t, e] = l, o = W) : [o, n, t, e] = l, !o)
|
@@ -19,7 +19,7 @@ function P(...l) {
|
|
19
19
|
([i, u]) => {
|
20
20
|
if (a(), !i)
|
21
21
|
return;
|
22
|
-
const d =
|
22
|
+
const d = J(u) ? { ...u } : u;
|
23
23
|
f.push(
|
24
24
|
...n.flatMap((b) => t.map((m) => v(i, b, m, d)))
|
25
25
|
);
|
@@ -319,8 +319,8 @@ export {
|
|
319
319
|
de as debounceFilter,
|
320
320
|
W as defaultWindow,
|
321
321
|
pe as getLifeCycleTarget,
|
322
|
-
|
323
|
-
|
322
|
+
K as isClient,
|
323
|
+
J as isObject,
|
324
324
|
M as noop,
|
325
325
|
$ as notNullish,
|
326
326
|
me as throttleFilter,
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index301.js";
|
2
|
+
import { isPlainObject as c } from "./index302.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -3,7 +3,7 @@ import z from "./index220.js";
|
|
3
3
|
/* empty css */
|
4
4
|
import I from "./index222.js";
|
5
5
|
import { vMaska as M } from "./index218.js";
|
6
|
-
import { isHex as D } from "./
|
6
|
+
import { isHex as D } from "./index237.js";
|
7
7
|
const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
|
8
8
|
__name: "BaseColorInput",
|
9
9
|
props: {
|