bitboss-ui 2.0.93 → 2.0.95
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/BaseSelect/BaseSelect.vue.d.ts +1 -0
- 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} +33 -33
- 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/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 -5
- package/dist/index205.js +3 -16
- package/dist/index206.js +2 -16
- package/dist/index207.js +81 -19
- package/dist/index208.js +52 -18
- package/dist/index21.js +14 -14
- package/dist/index210.js +13 -3
- package/dist/index211.js +20 -2
- package/dist/index212.js +4 -8
- package/dist/index213.js +5 -249
- package/dist/index214.js +15 -51
- package/dist/index215.js +16 -44
- package/dist/index216.js +19 -5
- package/dist/index217.js +18 -59
- package/dist/index218.js +27 -2
- package/dist/index219.js +3 -4
- package/dist/index220.js +2 -2
- package/dist/index221.js +7 -125
- package/dist/index222.js +244 -120
- package/dist/index223.js +52 -2
- package/dist/index224.js +44 -41
- package/dist/index225.js +5 -20
- package/dist/index226.js +59 -5
- package/dist/index227.js +2 -53
- package/dist/index228.js +6 -0
- package/dist/index229.js +2 -13
- package/dist/index23.js +18 -18
- package/dist/index230.js +3 -5
- package/dist/index231.js +41 -12
- package/dist/index232.js +6 -369
- package/dist/index233.js +7 -2
- package/dist/index234.js +11 -80
- package/dist/index235.js +5 -5
- package/dist/index238.js +126 -3
- package/dist/index239.js +125 -3
- package/dist/index240.js +2 -7
- package/dist/index241.js +5 -4
- package/dist/index242.js +369 -2
- package/dist/index243.js +3 -18
- package/dist/index244.js +2 -106
- package/dist/index245.js +108 -0
- package/dist/{index246.js → index247.js} +2 -2
- package/dist/index249.js +2 -10
- package/dist/index25.js +7 -7
- package/dist/index250.js +17 -2
- package/dist/index251.js +9 -3
- package/dist/index252.js +3 -281
- package/dist/index253.js +9 -6
- package/dist/index254.js +23 -2
- package/dist/index255.js +89 -2
- package/dist/index257.js +9 -2
- package/dist/index258.js +6 -2
- package/dist/index259.js +16 -2
- package/dist/index260.js +3 -2
- package/dist/index262.js +7 -2
- package/dist/index263.js +176 -2
- package/dist/index264.js +280 -27
- package/dist/index265.js +6 -22
- package/dist/index266.js +4 -0
- package/dist/index267.js +2 -7
- package/dist/index268.js +2 -2
- package/dist/index269.js +2 -126
- package/dist/index27.js +4 -4
- package/dist/index270.js +2 -431
- package/dist/index271.js +2 -176
- package/dist/index272.js +2 -3
- package/dist/index273.js +4 -0
- package/dist/index274.js +1 -21
- package/dist/index275.js +4 -0
- package/dist/index276.js +28 -2
- package/dist/index277.js +21 -8
- package/dist/index279.js +4 -89
- package/dist/index280.js +433 -0
- package/dist/index281.js +1 -5
- package/dist/index282.js +89 -16
- package/dist/index286.js +1 -1
- package/dist/index287.js +1 -1
- package/dist/index289.js +200 -9
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -436
- package/dist/index291.js +120 -121
- package/dist/index292.js +21 -199
- package/dist/index294.js +8 -89
- package/dist/index295.js +224 -3
- package/dist/index296.js +436 -3
- package/dist/index297.js +126 -210
- package/dist/index298.js +3 -2
- package/dist/index299.js +2 -65
- package/dist/index300.js +211 -5
- package/dist/index301.js +3 -5
- package/dist/index302.js +32 -7
- package/dist/index303.js +4 -6
- package/dist/index304.js +8 -3
- package/dist/index305.js +3 -7
- package/dist/index306.js +3 -19
- package/dist/index307.js +57 -3
- package/dist/index308.js +2 -3
- package/dist/index309.js +7 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +64 -56
- package/dist/index311.js +5 -33
- package/dist/index312.js +6 -10
- package/dist/index313.js +17 -45
- package/dist/index314.js +11 -2
- package/dist/index315.js +4 -480
- package/dist/index316.js +49 -0
- package/dist/index317.js +470 -414
- package/dist/index319.js +2 -2
- package/dist/index320.js +426 -0
- 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/index45.js +7 -7
- 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/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 +4 -4
- 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/utilities/functions/indexBy.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index124.js +0 -42
- package/dist/index169.js +0 -5
- package/dist/index178.js +0 -4
- package/dist/index209.js +0 -29
- package/dist/index248.js +0 -4
- package/dist/index261.js +0 -4
- package/dist/index278.js +0 -25
- package/dist/index293.js +0 -226
- /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/{index318.js → index321.js} +0 -0
- /package/dist/{index256.js → index322.js} +0 -0
package/dist/index101.js
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
import { defineComponent as h, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as n, renderSlot as a, normalizeProps as i, guardReactiveProps as l, createVNode as $, mergeProps as T } from "vue";
|
2
|
+
import V from "./index27.js";
|
3
|
+
/* empty css */
|
4
|
+
import q from "./index37.js";
|
5
|
+
/* empty css */
|
6
|
+
const L = /* @__PURE__ */ h({
|
7
|
+
__name: "BbSelect",
|
8
|
+
props: {
|
9
|
+
addOptions: { type: Boolean },
|
10
|
+
allowWriting: { type: [Boolean, String], default: !0 },
|
11
|
+
"append:icon": {},
|
12
|
+
autocomplete: {},
|
13
|
+
autofocus: {},
|
14
|
+
comma: { type: Boolean },
|
15
|
+
dependencies: {},
|
16
|
+
depsDebounceTime: {},
|
17
|
+
direction: {},
|
18
|
+
disabled: { type: Boolean },
|
19
|
+
enforceCoherence: { type: Boolean },
|
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: {},
|
28
|
+
itemValue: {},
|
29
|
+
label: {},
|
30
|
+
labelPosition: {},
|
31
|
+
loading: { type: Boolean },
|
32
|
+
loadingText: {},
|
33
|
+
max: {},
|
34
|
+
maxSelectedLabels: {},
|
35
|
+
modelValue: {},
|
36
|
+
modelValueDebounceTime: {},
|
37
|
+
multiple: { type: Boolean },
|
38
|
+
name: {},
|
39
|
+
noDataText: {},
|
40
|
+
persistentHint: { type: Boolean },
|
41
|
+
placeholder: {},
|
42
|
+
prefill: { type: [Boolean, String], default: "focus" },
|
43
|
+
"prepend:icon": {},
|
44
|
+
required: { type: Boolean },
|
45
|
+
queryDebounceTime: {},
|
46
|
+
readonly: { type: Boolean },
|
47
|
+
resetQueryOnOptionSelected: { type: Boolean },
|
48
|
+
reverse: { type: Boolean },
|
49
|
+
stash: { type: Boolean },
|
50
|
+
transitionDuration: {},
|
51
|
+
updateOnAnimationFrame: { type: Boolean }
|
52
|
+
},
|
53
|
+
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
|
54
|
+
setup(d, { emit: u }) {
|
55
|
+
const r = d, t = u, s = y(!1), m = v(() => r.persistentHint || s.value), b = {
|
56
|
+
onBlur: (e) => t("blur", e),
|
57
|
+
onChange: (e) => t("change", e),
|
58
|
+
onClick: (e) => t("click", e),
|
59
|
+
onFocus: (e) => {
|
60
|
+
s.value = !0, t("focus", e);
|
61
|
+
},
|
62
|
+
onInactive: () => {
|
63
|
+
s.value = !1, t("inactive");
|
64
|
+
},
|
65
|
+
onInput: (e) => t("input", e),
|
66
|
+
"onUpdate:modelValue": (e) => t("update:modelValue", e)
|
67
|
+
};
|
68
|
+
return (e, w) => (B(), g(V, {
|
69
|
+
id: e.id,
|
70
|
+
class: "bb-select",
|
71
|
+
direction: e.direction,
|
72
|
+
errors: e.errors,
|
73
|
+
"has-errors": e.hasErrors,
|
74
|
+
"hide-label": e.hideLabel,
|
75
|
+
hint: e.hint,
|
76
|
+
label: e.label,
|
77
|
+
"label-position": e.labelPosition,
|
78
|
+
"model-value": e.modelValue,
|
79
|
+
name: e.name,
|
80
|
+
reverse: e.reverse,
|
81
|
+
"show-hint": m.value
|
82
|
+
}, {
|
83
|
+
label: n((p) => [
|
84
|
+
a(e.$slots, "label", i(l(p)))
|
85
|
+
]),
|
86
|
+
input: n(({ id: p, hasErrors: c, ariaDescribedby: f }) => [
|
87
|
+
$(q, T({
|
88
|
+
id: p,
|
89
|
+
"add-options": e.addOptions,
|
90
|
+
"allow-writing": e.allowWriting,
|
91
|
+
"append:icon": r["append:icon"],
|
92
|
+
"aria-describedby": f,
|
93
|
+
autocomplete: e.autocomplete,
|
94
|
+
autofocus: e.autofocus,
|
95
|
+
comma: e.comma,
|
96
|
+
dependencies: e.dependencies,
|
97
|
+
"deps-debounce-time": e.depsDebounceTime,
|
98
|
+
disabled: e.disabled,
|
99
|
+
"enforce-coherence": e.enforceCoherence,
|
100
|
+
"filter-by": e.filterBy,
|
101
|
+
"has-errors": c,
|
102
|
+
"item-text": e.itemText,
|
103
|
+
"item-value": e.itemValue,
|
104
|
+
items: e.items,
|
105
|
+
loading: e.loading,
|
106
|
+
"loading-text": e.loadingText,
|
107
|
+
max: e.max,
|
108
|
+
"max-selected-labels": e.maxSelectedLabels,
|
109
|
+
"model-value": e.modelValue,
|
110
|
+
"model-value-debounce-time": e.modelValueDebounceTime,
|
111
|
+
multiple: e.multiple,
|
112
|
+
name: e.name,
|
113
|
+
"no-data-text": e.noDataText,
|
114
|
+
placeholder: e.placeholder,
|
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"]));
|
175
|
+
}
|
176
|
+
});
|
177
|
+
export {
|
178
|
+
L as default
|
179
|
+
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as ee, ref as n, computed as $, getCurrentInstance as te, watch as b, nextTick as le, onMounted as ae, openBlock as f, createElementBlock as p, unref as ie, normalizeClass as T, createElementVNode as h, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as se, Fragment as K, renderList as O, createVNode as J, withCtx as I, toDisplayString as re, createBlock as ne, Transition as oe, createCommentVNode as ue } from "vue";
|
2
2
|
import { useId as de } from "./index8.js";
|
3
|
-
import { useRoute as ce } from "./
|
4
|
-
import { useRouter as be } from "./
|
5
|
-
import { wait as fe } from "./
|
6
|
-
import { useScroll as he, useResizeObserver as ye } from "./
|
3
|
+
import { useRoute as ce } from "./index137.js";
|
4
|
+
import { useRouter as be } from "./index138.js";
|
5
|
+
import { wait as fe } from "./index132.js";
|
6
|
+
import { useScroll as he, useResizeObserver as ye } from "./index133.js";
|
7
7
|
import me from "./index13.js";
|
8
8
|
/* empty css */
|
9
|
-
import ve from "./
|
9
|
+
import ve from "./index128.js";
|
10
10
|
/* empty css */
|
11
11
|
const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-tab__label" }, _e = { class: "bb-tab__panes-container" }, we = ["id", "aria-labelledby"], Re = /* @__PURE__ */ ee({
|
12
12
|
__name: "BbTab",
|
package/dist/index11.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { add as ve } from "./
|
3
|
-
import { clamp as _e } from "./
|
4
|
-
import { isNil as
|
1
|
+
import { defineComponent as re, mergeModels as P, ref as ue, computed as k, toRef as A, useModel as Q, watch as U, reactive as pe, openBlock as n, createBlock as W, 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 G, createTextVNode as he, mergeProps as ke } from "vue";
|
2
|
+
import { add as ve } from "./index308.js";
|
3
|
+
import { clamp as _e } from "./index206.js";
|
4
|
+
import { isNil as K } from "./index130.js";
|
5
5
|
import { useId as Ce } from "./index8.js";
|
6
6
|
import { useItemValue as ge } from "./index286.js";
|
7
|
-
import { when as we } from "./
|
8
|
-
import
|
7
|
+
import { when as we } from "./index228.js";
|
8
|
+
import X from "./index17.js";
|
9
9
|
/* empty css */
|
10
10
|
import Te from "./index31.js";
|
11
11
|
/* empty css */
|
12
12
|
import { useOptions as Ve } from "./index235.js";
|
13
|
-
import { hash as
|
13
|
+
import { hash as Y } from "./index219.js";
|
14
14
|
const $e = {
|
15
15
|
key: 0,
|
16
16
|
class: "sr-only"
|
@@ -20,7 +20,7 @@ const $e = {
|
|
20
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 = {
|
21
21
|
class: "bb-table-skeleton__container",
|
22
22
|
role: "status"
|
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__ */
|
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__ */ re({
|
24
24
|
__name: "BbTable",
|
25
25
|
props: /* @__PURE__ */ P({
|
26
26
|
accessibleLabel: { type: Function, default: (g) => ["Seleziona"].concat(g.map((D) => D.content)).join(" ") },
|
@@ -64,7 +64,7 @@ const $e = {
|
|
64
64
|
}),
|
65
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
66
|
setup(g, { emit: D }) {
|
67
|
-
const { getItemValue:
|
67
|
+
const { getItemValue: Z } = ge(), M = Ce().id.value, t = g, v = D, $ = ue(), ee = t.accessibleLabel, le = t.loadingText, te = t.noDataText, x = t.selectText, ae = k(() => t.selectable ? "fieldset" : "div"), O = k(() => t.loading || ne.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
|
68
68
|
(e, s) => e + +!!s,
|
69
69
|
t.columns.length
|
70
70
|
)), E = k(
|
@@ -75,7 +75,7 @@ const $e = {
|
|
75
75
|
},
|
76
76
|
{}
|
77
77
|
)
|
78
|
-
), { options: B, selectOption:
|
78
|
+
), { options: B, selectOption: se, unselectOption: oe, internalItems: F, innerLoading: ne } = Ve({
|
79
79
|
emit: v,
|
80
80
|
itemText: void 0,
|
81
81
|
itemValue: t.itemValue,
|
@@ -92,7 +92,7 @@ const $e = {
|
|
92
92
|
depsDebounceTime: t.depsDebounceTime,
|
93
93
|
queryDebounceTime: 0,
|
94
94
|
disabled: A(t, "disabled")
|
95
|
-
}),
|
95
|
+
}), de = k(
|
96
96
|
() => t.columns.map((e) => {
|
97
97
|
const s = e.align || "left", { label: l, key: f } = e, R = `header:${E.value[e.key]}`;
|
98
98
|
let a = [`bb-table-header--${s}`];
|
@@ -109,9 +109,9 @@ const $e = {
|
|
109
109
|
typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
|
110
110
|
const l = t.columns.map((a) => {
|
111
111
|
const c = E.value[a.key], h = a.align || "left", { label: S, key: H } = a;
|
112
|
-
let m =
|
112
|
+
let m = Z(e.item, a.key);
|
113
113
|
a.formatter && // By default the formatter runs anyway
|
114
|
-
(!
|
114
|
+
(!K(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && K(m) && (m = a.placeholder);
|
115
115
|
let b = [`bb-table-data__cell--${h}`];
|
116
116
|
if (t.tdClass)
|
117
117
|
if (typeof t.tdClass == "function") {
|
@@ -133,7 +133,7 @@ const $e = {
|
|
133
133
|
};
|
134
134
|
});
|
135
135
|
return {
|
136
|
-
accessibleLabel:
|
136
|
+
accessibleLabel: ee(l, e.item),
|
137
137
|
cols: l,
|
138
138
|
onRowClick: (a) => v("click:row", a, e, !!e.selected),
|
139
139
|
onRowContextMenu: (a) => v("contextmenu:row", a, e, !!e.selected),
|
@@ -146,30 +146,30 @@ const $e = {
|
|
146
146
|
disabled: s
|
147
147
|
};
|
148
148
|
}));
|
149
|
-
let y =
|
150
|
-
|
149
|
+
let y = Q(g, "select-all");
|
150
|
+
U(y, () => {
|
151
151
|
w.clear(), N.value = [], v("update:modelValue", []);
|
152
152
|
});
|
153
153
|
const j = k(() => {
|
154
154
|
var e;
|
155
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 =
|
157
|
-
I(e) ? (
|
158
|
-
(s) =>
|
156
|
+
}), w = pe(/* @__PURE__ */ new Set()), N = Q(g, "unselected-items"), J = (e) => {
|
157
|
+
I(e) ? (oe(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.item)) : (y.value || se(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
|
158
|
+
(s) => Y(s) !== Y(e.item)
|
159
159
|
));
|
160
|
-
}, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value,
|
160
|
+
}, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ce = we(
|
161
161
|
(e) => typeof e != "string",
|
162
162
|
JSON.stringify
|
163
|
-
),
|
164
|
-
const s =
|
163
|
+
), ie = k(() => [].concat(t.modelValue).map((e) => {
|
164
|
+
const s = ce(e);
|
165
165
|
return {
|
166
166
|
disabled: t.disabled,
|
167
167
|
name: t.name,
|
168
168
|
type: "hidden",
|
169
169
|
value: s
|
170
170
|
};
|
171
|
-
})),
|
172
|
-
return
|
171
|
+
})), be = k(() => _e(B.value.length, 4, 10));
|
172
|
+
return U(
|
173
173
|
() => L.value,
|
174
174
|
() => {
|
175
175
|
var e;
|
@@ -201,7 +201,7 @@ const $e = {
|
|
201
201
|
{
|
202
202
|
flush: "post"
|
203
203
|
}
|
204
|
-
), (e, s) => (n(),
|
204
|
+
), (e, s) => (n(), W(fe(ae.value), {
|
205
205
|
ref_key: "container",
|
206
206
|
ref: $,
|
207
207
|
class: r({
|
@@ -245,7 +245,7 @@ const $e = {
|
|
245
245
|
"bb-table-check__label--disabled": e.disabled
|
246
246
|
}])
|
247
247
|
}, [
|
248
|
-
(n(),
|
248
|
+
(n(), W(X, {
|
249
249
|
key: j.value.toString(),
|
250
250
|
modelValue: i(y),
|
251
251
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => ye(y) ? y.value = l : y = l),
|
@@ -260,7 +260,7 @@ const $e = {
|
|
260
260
|
])
|
261
261
|
])
|
262
262
|
], 2)) : C("", !0),
|
263
|
-
(n(!0), d(T, null, V(
|
263
|
+
(n(!0), d(T, null, V(de.value, (l) => (n(), d("th", {
|
264
264
|
key: l.key,
|
265
265
|
class: r(["bb-table-header", l.classes]),
|
266
266
|
scope: "col"
|
@@ -296,9 +296,9 @@ const $e = {
|
|
296
296
|
class: "bb-table-loading__cell",
|
297
297
|
colspan: q.value
|
298
298
|
}, [
|
299
|
-
o("span", He, u(i(
|
299
|
+
o("span", He, u(i(le)), 1),
|
300
300
|
o("div", ze, [
|
301
|
-
(n(!0), d(T, null, V(
|
301
|
+
(n(!0), d(T, null, V(be.value, (l) => (n(), d("div", {
|
302
302
|
key: l,
|
303
303
|
class: "bb-table-skeleton-item"
|
304
304
|
}, s[1] || (s[1] = [
|
@@ -339,7 +339,7 @@ const $e = {
|
|
339
339
|
"bb-table-check__label--disabled": l.disabled
|
340
340
|
}])
|
341
341
|
}, [
|
342
|
-
|
342
|
+
G(X, {
|
343
343
|
checked: I(l),
|
344
344
|
class: "bb-table-check",
|
345
345
|
disabled: l.disabled,
|
@@ -353,7 +353,7 @@ const $e = {
|
|
353
353
|
"bb-table-radio__label--disabled": l.disabled
|
354
354
|
}])
|
355
355
|
}, [
|
356
|
-
|
356
|
+
G(Te, {
|
357
357
|
checked: l.selected,
|
358
358
|
class: "bb-table-radio",
|
359
359
|
disabled: l.disabled,
|
@@ -395,7 +395,7 @@ const $e = {
|
|
395
395
|
class: "bb-table-no-data__cell",
|
396
396
|
colspan: q.value
|
397
397
|
}, [
|
398
|
-
o("span", Oe, u(i(
|
398
|
+
o("span", Oe, u(i(te)), 1)
|
399
399
|
], 8, xe)
|
400
400
|
])
|
401
401
|
])
|
@@ -404,7 +404,7 @@ const $e = {
|
|
404
404
|
p(e.$slots, "tfoot")
|
405
405
|
])
|
406
406
|
]),
|
407
|
-
(n(!0), d(T, null, V(
|
407
|
+
(n(!0), d(T, null, V(ie.value, (l) => (n(), d("input", ke({
|
408
408
|
key: l.value,
|
409
409
|
ref_for: !0
|
410
410
|
}, l), null, 16))), 128))
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
|
2
2
|
import { state as k, useToast as b } from "./index11.js";
|
3
|
-
import C from "./
|
4
|
-
import B from "./
|
3
|
+
import C from "./index234.js";
|
4
|
+
import B from "./index310.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|
package/dist/index12.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { copy as D } from "./
|
1
|
+
import { copy as D } from "./index134.js";
|
2
2
|
import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
|
3
|
-
import { isNotNil as a } from "./
|
4
|
-
import { mapValues as X } from "./
|
5
|
-
import { useRoute as Z } from "./
|
6
|
-
import { useRouter as _ } from "./
|
7
|
-
import { useStepper as ee } from "./
|
3
|
+
import { isNotNil as a } from "./index135.js";
|
4
|
+
import { mapValues as X } from "./index136.js";
|
5
|
+
import { useRoute as Z } from "./index137.js";
|
6
|
+
import { useRouter as _ } from "./index138.js";
|
7
|
+
import { useStepper as ee } from "./index133.js";
|
8
8
|
const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
|
9
9
|
var r, u;
|
10
10
|
const e = i.match(x);
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
|
2
|
-
import { useFloating as q, arrow as A } from "./
|
2
|
+
import { useFloating as q, arrow as A } from "./index238.js";
|
3
3
|
import { useId as G } from "./index8.js";
|
4
|
-
import { wait as _ } from "./
|
4
|
+
import { wait as _ } from "./index132.js";
|
5
5
|
import J from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as K } from "./
|
9
|
-
import Q from "./
|
7
|
+
import { throttle as m } from "./index230.js";
|
8
|
+
import { waitFor as K } from "./index232.js";
|
9
|
+
import Q from "./index255.js";
|
10
10
|
/* empty css */
|
11
|
-
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./
|
11
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index242.js";
|
12
12
|
const pe = /* @__PURE__ */ N({
|
13
13
|
__name: "BbTooltip",
|
14
14
|
props: {
|
@@ -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 "./index311.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/index125.js
CHANGED
@@ -1,46 +1,42 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
const
|
3
|
-
__name: "
|
1
|
+
import { defineComponent as c, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as i, createTextVNode as p, toDisplayString as b, withModifiers as d, createCommentVNode as m } from "vue";
|
2
|
+
const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-label"], k = /* @__PURE__ */ c({
|
3
|
+
__name: "BbChip",
|
4
4
|
props: {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
tag: { default: "div" }
|
5
|
+
text: {},
|
6
|
+
clearable: { type: Boolean, default: !0 },
|
7
|
+
clearableLabel: { default: "Elimina" }
|
9
8
|
},
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
"bb-collapsible": !0,
|
21
|
-
"bb-collapsible--open": l.modelValue,
|
22
|
-
"bb-collapsible--closed": !l.modelValue
|
23
|
-
},
|
24
|
-
style: {
|
25
|
-
transitionDuration: l.transitionDuration + "ms"
|
26
|
-
}
|
27
|
-
}));
|
28
|
-
return (e, V) => (n(), s(r(e.tag), b(f(a.value)), {
|
29
|
-
default: u(() => [
|
30
|
-
(n(), s(r(e.tag), {
|
31
|
-
class: "bb-collapsible__content",
|
32
|
-
style: v(a.value.style)
|
33
|
-
}, {
|
34
|
-
default: u(() => [
|
35
|
-
e.eager || t.value ? y(e.$slots, "default", { key: 0 }) : g("", !0)
|
36
|
-
]),
|
37
|
-
_: 3
|
38
|
-
}, 8, ["style"]))
|
9
|
+
emits: ["click:clear"],
|
10
|
+
setup(h, { emit: r }) {
|
11
|
+
const n = r, s = (e) => {
|
12
|
+
n("click:clear", e);
|
13
|
+
};
|
14
|
+
return (e, l) => (o(), a("span", u, [
|
15
|
+
t("span", _, [
|
16
|
+
i(e.$slots, "default", {}, () => [
|
17
|
+
p(b(e.text), 1)
|
18
|
+
])
|
39
19
|
]),
|
40
|
-
|
41
|
-
|
20
|
+
e.clearable ? (o(), a("button", {
|
21
|
+
key: 0,
|
22
|
+
"aria-label": e.clearableLabel,
|
23
|
+
class: "bb-chip__clear-button",
|
24
|
+
type: "button",
|
25
|
+
onClick: d(s, ["stop", "prevent"])
|
26
|
+
}, l[0] || (l[0] = [
|
27
|
+
t("svg", {
|
28
|
+
viewBox: "0 0 24 24",
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
30
|
+
}, [
|
31
|
+
t("path", {
|
32
|
+
d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z",
|
33
|
+
fill: "currentColor"
|
34
|
+
})
|
35
|
+
], -1)
|
36
|
+
]), 8, f)) : m("", !0)
|
37
|
+
]));
|
42
38
|
}
|
43
39
|
});
|
44
40
|
export {
|
45
|
-
|
41
|
+
k as default
|
46
42
|
};
|
package/dist/index126.js
CHANGED
@@ -1,53 +1,46 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
4
|
-
__name: "BbIcon",
|
1
|
+
import { defineComponent as p, ref as o, watch as d, computed as m, openBlock as n, createBlock as s, resolveDynamicComponent as r, normalizeProps as b, guardReactiveProps as f, withCtx as u, normalizeStyle as v, renderSlot as y, createCommentVNode as g } from "vue";
|
2
|
+
const B = /* @__PURE__ */ p({
|
3
|
+
__name: "BbCollapsible",
|
5
4
|
props: {
|
6
|
-
|
7
|
-
|
8
|
-
type:
|
5
|
+
eager: { type: Boolean },
|
6
|
+
transitionDuration: { default: 250 },
|
7
|
+
modelValue: { type: Boolean },
|
8
|
+
tag: { default: "div" }
|
9
9
|
},
|
10
|
-
setup(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
if (typeof t.value[e.type] > "u")
|
17
|
-
throw new Error(`Icon "${e.type}" does not exist.`);
|
18
|
-
r.value = await t.value[e.type]();
|
10
|
+
setup(i) {
|
11
|
+
const l = i, c = o(l.modelValue), t = o(c.value);
|
12
|
+
d(
|
13
|
+
() => l.modelValue,
|
14
|
+
(e) => {
|
15
|
+
e && !t.value && (t.value = !0);
|
19
16
|
}
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
style: u
|
46
|
-
};
|
47
|
-
});
|
48
|
-
return (o, n) => (h(), $("span", g(d.value, { innerHTML: r.value }), null, 16, B));
|
17
|
+
);
|
18
|
+
const a = m(() => ({
|
19
|
+
class: {
|
20
|
+
"bb-collapsible": !0,
|
21
|
+
"bb-collapsible--open": l.modelValue,
|
22
|
+
"bb-collapsible--closed": !l.modelValue
|
23
|
+
},
|
24
|
+
style: {
|
25
|
+
transitionDuration: l.transitionDuration + "ms"
|
26
|
+
}
|
27
|
+
}));
|
28
|
+
return (e, V) => (n(), s(r(e.tag), b(f(a.value)), {
|
29
|
+
default: u(() => [
|
30
|
+
(n(), s(r(e.tag), {
|
31
|
+
class: "bb-collapsible__content",
|
32
|
+
style: v(a.value.style)
|
33
|
+
}, {
|
34
|
+
default: u(() => [
|
35
|
+
e.eager || t.value ? y(e.$slots, "default", { key: 0 }) : g("", !0)
|
36
|
+
]),
|
37
|
+
_: 3
|
38
|
+
}, 8, ["style"]))
|
39
|
+
]),
|
40
|
+
_: 3
|
41
|
+
}, 16));
|
49
42
|
}
|
50
43
|
});
|
51
44
|
export {
|
52
|
-
|
45
|
+
B as default
|
53
46
|
};
|