@brighterly/ui-kit 0.0.10 → 0.1.1
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/UI/Buttons/ButtonCheckbox.vue.d.ts +13 -0
- package/dist/components/UI/Buttons/ButtonClose.vue.d.ts +18 -0
- package/dist/components/UI/Buttons/ButtonIcon.vue.d.ts +23 -0
- package/dist/components/UI/Buttons/ButtonKebab.vue.d.ts +14 -0
- package/dist/components/{Buttons → UI/Buttons}/ButtonPrimary.vue.d.ts +5 -3
- package/dist/components/UI/Buttons/ButtonRadio.vue.d.ts +13 -0
- package/dist/components/UI/Buttons/ButtonSecondary.vue.d.ts +38 -0
- package/dist/components/UI/Buttons/ButtonSecondaryIcon.vue.d.ts +15 -0
- package/dist/components/UI/Buttons/ButtonSimple.vue.d.ts +28 -0
- package/dist/components/UI/Buttons/ButtonSwitcher.vue.d.ts +20 -0
- package/dist/components/UI/Buttons/ButtonText.vue.d.ts +35 -0
- package/dist/components/UI/Buttons/ButtonToggle.vue.d.ts +13 -0
- package/dist/components/UI/Buttons/ButtonTransparentIcon.vue.d.ts +19 -0
- package/dist/components/UI/Other/IconContainer.vue.d.ts +22 -0
- package/dist/components/UI/Tooltips/TooltipDefault.vue.d.ts +26 -0
- package/dist/components/UI/Typography/ButtonTextQuaternary.vue.d.ts +30 -0
- package/dist/components/UI/Typography/ButtonTextSecondary.vue.d.ts +26 -0
- package/dist/components/UI/Typography/ButtonTextTertiary.vue.d.ts +30 -0
- package/dist/components/UI/Typography/ButtonTextTertiaryMedium.vue.d.ts +30 -0
- package/dist/index.d.ts +19 -1
- package/dist/ui-kit.css +1 -1
- package/dist/ui-kit.es.js +567 -829
- package/package.json +21 -13
package/dist/ui-kit.es.js
CHANGED
|
@@ -1,861 +1,599 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
const He = /;(?![^(]*\))/g, Ue = /:([^]+)/, Be = /\/\*[^]*?\*\//g;
|
|
20
|
-
function Le(e) {
|
|
21
|
-
const t = {};
|
|
22
|
-
return e.replace(Be, "").split(He).forEach((n) => {
|
|
23
|
-
if (n) {
|
|
24
|
-
const o = n.split(Ue);
|
|
25
|
-
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
26
|
-
}
|
|
27
|
-
}), t;
|
|
28
|
-
}
|
|
29
|
-
function L(e) {
|
|
30
|
-
let t = "";
|
|
31
|
-
if (N(e))
|
|
32
|
-
t = e;
|
|
33
|
-
else if (m(e))
|
|
34
|
-
for (let n = 0; n < e.length; n++) {
|
|
35
|
-
const o = L(e[n]);
|
|
36
|
-
o && (t += o + " ");
|
|
37
|
-
}
|
|
38
|
-
else if (E(e))
|
|
39
|
-
for (const n in e)
|
|
40
|
-
e[n] && (t += n + " ");
|
|
41
|
-
return t.trim();
|
|
42
|
-
}
|
|
43
|
-
const fe = (e) => !!(e && e.__v_isRef === !0), de = (e) => N(e) ? e : e == null ? "" : m(e) || E(e) && (e.toString === ae || !S(e.toString)) ? fe(e) ? de(e.value) : JSON.stringify(e, pe, 2) : String(e), pe = (e, t) => fe(t) ? pe(e, t.value) : Me(t) ? {
|
|
44
|
-
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
45
|
-
(n, [o, s], r) => (n[J(o, r) + " =>"] = s, n),
|
|
46
|
-
{}
|
|
47
|
-
)
|
|
48
|
-
} : je(t) ? {
|
|
49
|
-
[`Set(${t.size})`]: [...t.values()].map((n) => J(n))
|
|
50
|
-
} : U(t) ? J(t) : E(t) && !m(t) && !ze(t) ? String(t) : t, J = (e, t = "") => {
|
|
51
|
-
var n;
|
|
52
|
-
return (
|
|
53
|
-
// Symbol.description in es2019+ so we need to cast here to pass
|
|
54
|
-
// the lib: es2016 check
|
|
55
|
-
U(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
process.env.NODE_ENV;
|
|
59
|
-
process.env.NODE_ENV;
|
|
60
|
-
process.env.NODE_ENV;
|
|
61
|
-
new Set(
|
|
62
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(U)
|
|
63
|
-
);
|
|
64
|
-
// @__NO_SIDE_EFFECTS__
|
|
65
|
-
function me(e) {
|
|
66
|
-
return /* @__PURE__ */ Q(e) ? /* @__PURE__ */ me(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
67
|
-
}
|
|
68
|
-
// @__NO_SIDE_EFFECTS__
|
|
69
|
-
function Q(e) {
|
|
70
|
-
return !!(e && e.__v_isReadonly);
|
|
71
|
-
}
|
|
72
|
-
// @__NO_SIDE_EFFECTS__
|
|
73
|
-
function W(e) {
|
|
74
|
-
return !!(e && e.__v_isShallow);
|
|
75
|
-
}
|
|
76
|
-
// @__NO_SIDE_EFFECTS__
|
|
77
|
-
function X(e) {
|
|
78
|
-
return e ? !!e.__v_raw : !1;
|
|
79
|
-
}
|
|
80
|
-
// @__NO_SIDE_EFFECTS__
|
|
81
|
-
function w(e) {
|
|
82
|
-
const t = e && e.__v_raw;
|
|
83
|
-
return t ? /* @__PURE__ */ w(t) : e;
|
|
84
|
-
}
|
|
85
|
-
// @__NO_SIDE_EFFECTS__
|
|
86
|
-
function te(e) {
|
|
87
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
88
|
-
}
|
|
89
|
-
const k = [];
|
|
90
|
-
function Je(e) {
|
|
91
|
-
k.push(e);
|
|
92
|
-
}
|
|
93
|
-
function We() {
|
|
94
|
-
k.pop();
|
|
95
|
-
}
|
|
96
|
-
let q = !1;
|
|
97
|
-
function V(e, ...t) {
|
|
98
|
-
if (q) return;
|
|
99
|
-
q = !0;
|
|
100
|
-
const n = k.length ? k[k.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = qe();
|
|
101
|
-
if (o)
|
|
102
|
-
ne(
|
|
103
|
-
o,
|
|
104
|
-
n,
|
|
105
|
-
11,
|
|
106
|
-
[
|
|
107
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
108
|
-
e + t.map((r) => {
|
|
109
|
-
var c, l;
|
|
110
|
-
return (l = (c = r.toString) == null ? void 0 : c.call(r)) != null ? l : JSON.stringify(r);
|
|
111
|
-
}).join(""),
|
|
112
|
-
n && n.proxy,
|
|
113
|
-
s.map(
|
|
114
|
-
({ vnode: r }) => `at <${Ie(n, r.type)}>`
|
|
115
|
-
).join(`
|
|
116
|
-
`),
|
|
117
|
-
s
|
|
118
|
-
]
|
|
119
|
-
);
|
|
120
|
-
else {
|
|
121
|
-
const r = [`[Vue warn]: ${e}`, ...t];
|
|
122
|
-
s.length && r.push(`
|
|
123
|
-
`, ...Ke(s)), console.warn(...r);
|
|
124
|
-
}
|
|
125
|
-
q = !1;
|
|
126
|
-
}
|
|
127
|
-
function qe() {
|
|
128
|
-
let e = k[k.length - 1];
|
|
129
|
-
if (!e)
|
|
130
|
-
return [];
|
|
131
|
-
const t = [];
|
|
132
|
-
for (; e; ) {
|
|
133
|
-
const n = t[0];
|
|
134
|
-
n && n.vnode === e ? n.recurseCount++ : t.push({
|
|
135
|
-
vnode: e,
|
|
136
|
-
recurseCount: 0
|
|
137
|
-
});
|
|
138
|
-
const o = e.component && e.component.parent;
|
|
139
|
-
e = o && o.vnode;
|
|
140
|
-
}
|
|
141
|
-
return t;
|
|
142
|
-
}
|
|
143
|
-
function Ke(e) {
|
|
144
|
-
const t = [];
|
|
145
|
-
return e.forEach((n, o) => {
|
|
146
|
-
t.push(...o === 0 ? [] : [`
|
|
147
|
-
`], ...Ye(n));
|
|
148
|
-
}), t;
|
|
149
|
-
}
|
|
150
|
-
function Ye({ vnode: e, recurseCount: t }) {
|
|
151
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Ie(
|
|
152
|
-
e.component,
|
|
153
|
-
e.type,
|
|
154
|
-
o
|
|
155
|
-
)}`, r = ">" + n;
|
|
156
|
-
return e.props ? [s, ...Ge(e.props), r] : [s + r];
|
|
157
|
-
}
|
|
158
|
-
function Ge(e) {
|
|
159
|
-
const t = [], n = Object.keys(e);
|
|
160
|
-
return n.slice(0, 3).forEach((o) => {
|
|
161
|
-
t.push(...he(o, e[o]));
|
|
162
|
-
}), n.length > 3 && t.push(" ..."), t;
|
|
163
|
-
}
|
|
164
|
-
function he(e, t, n) {
|
|
165
|
-
return N(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ te(t) ? (t = he(e, /* @__PURE__ */ w(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : S(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ w(t), n ? t : [`${e}=`, t]);
|
|
166
|
-
}
|
|
167
|
-
const _e = {
|
|
168
|
-
sp: "serverPrefetch hook",
|
|
169
|
-
bc: "beforeCreate hook",
|
|
170
|
-
c: "created hook",
|
|
171
|
-
bm: "beforeMount hook",
|
|
172
|
-
m: "mounted hook",
|
|
173
|
-
bu: "beforeUpdate hook",
|
|
174
|
-
u: "updated",
|
|
175
|
-
bum: "beforeUnmount hook",
|
|
176
|
-
um: "unmounted hook",
|
|
177
|
-
a: "activated hook",
|
|
178
|
-
da: "deactivated hook",
|
|
179
|
-
ec: "errorCaptured hook",
|
|
180
|
-
rtc: "renderTracked hook",
|
|
181
|
-
rtg: "renderTriggered hook",
|
|
182
|
-
0: "setup function",
|
|
183
|
-
1: "render function",
|
|
184
|
-
2: "watcher getter",
|
|
185
|
-
3: "watcher callback",
|
|
186
|
-
4: "watcher cleanup function",
|
|
187
|
-
5: "native event handler",
|
|
188
|
-
6: "component event handler",
|
|
189
|
-
7: "vnode hook",
|
|
190
|
-
8: "directive hook",
|
|
191
|
-
9: "transition hook",
|
|
192
|
-
10: "app errorHandler",
|
|
193
|
-
11: "app warnHandler",
|
|
194
|
-
12: "ref function",
|
|
195
|
-
13: "async component loader",
|
|
196
|
-
14: "scheduler flush",
|
|
197
|
-
15: "component update",
|
|
198
|
-
16: "app unmount cleanup function"
|
|
199
|
-
};
|
|
200
|
-
function ne(e, t, n, o) {
|
|
201
|
-
try {
|
|
202
|
-
return o ? e(...o) : e();
|
|
203
|
-
} catch (s) {
|
|
204
|
-
ge(s, t, n);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
function ge(e, t, n, o = !0) {
|
|
208
|
-
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: c } = t && t.appContext.config || G;
|
|
209
|
-
if (t) {
|
|
210
|
-
let l = t.parent;
|
|
211
|
-
const u = t.proxy, f = process.env.NODE_ENV !== "production" ? _e[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
212
|
-
for (; l; ) {
|
|
213
|
-
const g = l.ec;
|
|
214
|
-
if (g) {
|
|
215
|
-
for (let i = 0; i < g.length; i++)
|
|
216
|
-
if (g[i](e, u, f) === !1)
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
l = l.parent;
|
|
220
|
-
}
|
|
221
|
-
if (r) {
|
|
222
|
-
ne(r, null, 10, [
|
|
223
|
-
e,
|
|
224
|
-
u,
|
|
225
|
-
f
|
|
226
|
-
]);
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
Qe(e, n, s, o, c);
|
|
231
|
-
}
|
|
232
|
-
function Qe(e, t, n, o = !0, s = !1) {
|
|
233
|
-
if (process.env.NODE_ENV !== "production") {
|
|
234
|
-
const r = _e[t];
|
|
235
|
-
if (n && Je(n), V(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && We(), o)
|
|
236
|
-
throw e;
|
|
237
|
-
console.error(e);
|
|
238
|
-
} else {
|
|
239
|
-
if (s)
|
|
240
|
-
throw e;
|
|
241
|
-
console.error(e);
|
|
1
|
+
import { defineComponent as d, openBlock as c, createBlock as h, resolveDynamicComponent as T, withCtx as m, renderSlot as r, computed as p, createElementBlock as s, normalizeClass as o, createVNode as b, unref as y, createElementVNode as C, withModifiers as v, createCommentVNode as f, withDirectives as g, toDisplayString as $, createTextVNode as z } from "vue";
|
|
2
|
+
import { faSquare as S, faCircle as w } from "@fortawesome/pro-regular-svg-icons";
|
|
3
|
+
import { faSquareCheck as q, faXmark as Q, faEllipsisVertical as R, faScrubber as L } from "@fortawesome/pro-solid-svg-icons";
|
|
4
|
+
import { FontAwesomeIcon as _ } from "@fortawesome/vue-fontawesome";
|
|
5
|
+
import { vOnClickOutside as D } from "@vueuse/components";
|
|
6
|
+
const W = /* @__PURE__ */ d({
|
|
7
|
+
name: "IconContainer",
|
|
8
|
+
__name: "IconContainer",
|
|
9
|
+
props: {
|
|
10
|
+
is: { default: "span" }
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
return (l, n) => (c(), h(T(t.is), { class: "icon-container" }, {
|
|
14
|
+
default: m(() => [
|
|
15
|
+
r(l.$slots, "default", {}, void 0, !0)
|
|
16
|
+
]),
|
|
17
|
+
_: 3
|
|
18
|
+
}));
|
|
242
19
|
}
|
|
243
|
-
}
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
20
|
+
}), u = (t, l) => {
|
|
21
|
+
const n = t.__vccOpts || t;
|
|
22
|
+
for (const [a, e] of l)
|
|
23
|
+
n[a] = e;
|
|
24
|
+
return n;
|
|
25
|
+
}, k = /* @__PURE__ */ u(W, [["__scopeId", "data-v-41c12e6f"]]), M = ["disabled"], V = /* @__PURE__ */ d({
|
|
26
|
+
name: "BtnCheckbox",
|
|
27
|
+
__name: "ButtonCheckbox",
|
|
28
|
+
props: {
|
|
29
|
+
checked: { type: Boolean, default: !1 },
|
|
30
|
+
disabled: { type: Boolean, default: !1 }
|
|
31
|
+
},
|
|
32
|
+
emits: ["click"],
|
|
33
|
+
setup(t, { emit: l }) {
|
|
34
|
+
const n = t, a = l, e = () => {
|
|
35
|
+
n.disabled || a("click");
|
|
36
|
+
}, i = p(() => n.checked ? q : S);
|
|
37
|
+
return (B, I) => (c(), s("button", {
|
|
38
|
+
class: o(["btn-checkbox", { checked: t.checked, disabled: t.disabled }]),
|
|
39
|
+
disabled: t.disabled,
|
|
40
|
+
onClick: e
|
|
41
|
+
}, [
|
|
42
|
+
b(k, { class: "medium" }, {
|
|
43
|
+
default: m(() => [
|
|
44
|
+
b(y(_), { icon: i.value }, null, 8, ["icon"])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
], 10, M));
|
|
256
49
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
50
|
+
}), Qt = /* @__PURE__ */ u(V, [["__scopeId", "data-v-df7a5c10"]]), j = ["disabled"], N = /* @__PURE__ */ d({
|
|
51
|
+
name: "BtnClose",
|
|
52
|
+
__name: "ButtonClose",
|
|
53
|
+
props: {
|
|
54
|
+
icon: { default: () => Q },
|
|
55
|
+
disabled: { type: Boolean, default: !1 },
|
|
56
|
+
color: { default: "gray" },
|
|
57
|
+
size: { default: "medium" }
|
|
58
|
+
},
|
|
59
|
+
emits: ["click"],
|
|
60
|
+
setup(t, { emit: l }) {
|
|
61
|
+
const n = l, a = () => {
|
|
62
|
+
n("click");
|
|
63
|
+
};
|
|
64
|
+
return (e, i) => (c(), s("button", {
|
|
65
|
+
type: "button",
|
|
66
|
+
class: o(["ui-btn-close", t.color, t.size]),
|
|
67
|
+
disabled: t.disabled,
|
|
68
|
+
onClick: a
|
|
69
|
+
}, [
|
|
70
|
+
b(k, {
|
|
71
|
+
class: o([`ui-btn-close__container container-${t.size}`])
|
|
72
|
+
}, {
|
|
73
|
+
default: m(() => [
|
|
74
|
+
b(y(_), { icon: t.icon }, null, 8, ["icon"])
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["class"])
|
|
78
|
+
], 10, j));
|
|
264
79
|
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
b = null, C = 0;
|
|
80
|
+
}), Rt = /* @__PURE__ */ u(N, [["__scopeId", "data-v-e98c30ca"]]), O = { class: "tooltip__box" }, E = ["innerHTML"], K = /* @__PURE__ */ d({
|
|
81
|
+
name: "TooltipDefault",
|
|
82
|
+
__name: "TooltipDefault",
|
|
83
|
+
props: {
|
|
84
|
+
text: { default: "" },
|
|
85
|
+
size: { default: "default" },
|
|
86
|
+
placement: { default: "left" }
|
|
87
|
+
},
|
|
88
|
+
setup(t) {
|
|
89
|
+
return (l, n) => (c(), s("div", {
|
|
90
|
+
class: o(["tooltip", t.size, t.placement])
|
|
91
|
+
}, [
|
|
92
|
+
C("div", O, [
|
|
93
|
+
t.text ? (c(), s("span", {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "tooltip__text",
|
|
96
|
+
innerHTML: t.text
|
|
97
|
+
}, null, 8, E)) : r(l.$slots, "default", { key: 1 }, void 0, !0)
|
|
98
|
+
])
|
|
99
|
+
], 2));
|
|
286
100
|
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
101
|
+
}), x = /* @__PURE__ */ u(K, [["__scopeId", "data-v-ca5d60f0"]]), P = ["data-qa", "disabled"], H = /* @__PURE__ */ d({
|
|
102
|
+
name: "BtnIcon",
|
|
103
|
+
__name: "ButtonIcon",
|
|
104
|
+
props: {
|
|
105
|
+
icon: {},
|
|
106
|
+
disabled: { type: Boolean, default: !1 },
|
|
107
|
+
color: { default: "blue" },
|
|
108
|
+
size: { default: "big" },
|
|
109
|
+
tooltip: { default: null },
|
|
110
|
+
dataQa: { default: null }
|
|
111
|
+
},
|
|
112
|
+
emits: ["click", "click:close"],
|
|
113
|
+
setup(t, { emit: l }) {
|
|
114
|
+
const n = l, a = () => {
|
|
115
|
+
n("click");
|
|
116
|
+
}, e = (i) => {
|
|
117
|
+
n("click:close", i);
|
|
118
|
+
};
|
|
119
|
+
return (i, B) => (c(), s("button", {
|
|
120
|
+
type: "button",
|
|
121
|
+
class: o(["ui-btn-icon", t.color, t.size, { tooltip: t.tooltip }]),
|
|
122
|
+
"data-qa": t.dataQa,
|
|
123
|
+
disabled: t.disabled,
|
|
124
|
+
onClick: [
|
|
125
|
+
a,
|
|
126
|
+
v(e, ["stop"])
|
|
127
|
+
]
|
|
128
|
+
}, [
|
|
129
|
+
b(k, { is: "span" }, {
|
|
130
|
+
default: m(() => [
|
|
131
|
+
b(y(_), { icon: t.icon }, null, 8, ["icon"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
t.tooltip ? (c(), h(x, {
|
|
136
|
+
key: 0,
|
|
137
|
+
text: t.tooltip
|
|
138
|
+
}, null, 8, ["text"])) : f("", !0)
|
|
139
|
+
], 10, P));
|
|
311
140
|
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
141
|
+
}), Lt = /* @__PURE__ */ u(H, [["__scopeId", "data-v-11788724"]]), A = ["disabled"], F = /* @__PURE__ */ d({
|
|
142
|
+
name: "BtnKebab",
|
|
143
|
+
__name: "ButtonKebab",
|
|
144
|
+
props: {
|
|
145
|
+
size: { default: "medium" },
|
|
146
|
+
disabled: { type: Boolean }
|
|
147
|
+
},
|
|
148
|
+
emits: ["click", "click:outside"],
|
|
149
|
+
setup(t, { emit: l }) {
|
|
150
|
+
const n = l, a = () => {
|
|
151
|
+
n("click");
|
|
152
|
+
}, e = () => {
|
|
153
|
+
n("click:outside");
|
|
154
|
+
};
|
|
155
|
+
return (i, B) => g((c(), s("button", {
|
|
156
|
+
class: o(["btn-kebab", t.size]),
|
|
157
|
+
type: "button",
|
|
158
|
+
disabled: t.disabled,
|
|
159
|
+
onClick: a
|
|
160
|
+
}, [
|
|
161
|
+
b(k, null, {
|
|
162
|
+
default: m(() => [
|
|
163
|
+
b(y(_), { icon: y(R) }, null, 8, ["icon"])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})
|
|
167
|
+
], 10, A)), [
|
|
168
|
+
[y(D), e]
|
|
169
|
+
]);
|
|
322
170
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
|
|
171
|
+
}), Dt = /* @__PURE__ */ u(F, [["__scopeId", "data-v-d98b1fcd"]]), X = ["data-qa", "disabled"], G = {
|
|
172
|
+
key: 2,
|
|
173
|
+
class: "ui-btn-primary__text"
|
|
174
|
+
}, J = /* @__PURE__ */ d({
|
|
175
|
+
name: "BtnPrimary",
|
|
176
|
+
__name: "ButtonPrimary",
|
|
177
|
+
props: {
|
|
178
|
+
text: { default: "" },
|
|
179
|
+
disabled: { type: Boolean, default: !1 },
|
|
180
|
+
color: { default: "blue" },
|
|
181
|
+
size: { default: "medium" },
|
|
182
|
+
elementWidth: { default: "auto" },
|
|
183
|
+
tooltip: { default: null },
|
|
184
|
+
dataQa: { default: null }
|
|
185
|
+
},
|
|
186
|
+
emits: ["click"],
|
|
187
|
+
setup(t, { emit: l }) {
|
|
188
|
+
const n = l, a = () => {
|
|
189
|
+
n("click");
|
|
190
|
+
};
|
|
191
|
+
return (e, i) => (c(), s("button", {
|
|
192
|
+
type: "button",
|
|
193
|
+
class: o(["ui-btn-primary", t.color, t.size, t.elementWidth, { tooltip: t.tooltip }]),
|
|
194
|
+
"data-qa": t.dataQa,
|
|
195
|
+
disabled: t.disabled,
|
|
196
|
+
onClick: a
|
|
197
|
+
}, [
|
|
198
|
+
e.$slots.iconLeft ? (c(), h(k, {
|
|
199
|
+
key: 0,
|
|
200
|
+
class: o([t.size])
|
|
201
|
+
}, {
|
|
202
|
+
default: m(() => [
|
|
203
|
+
r(e.$slots, "iconLeft", {}, void 0, !0)
|
|
204
|
+
]),
|
|
205
|
+
_: 3
|
|
206
|
+
}, 8, ["class"])) : f("", !0),
|
|
207
|
+
e.$slots.content ? r(e.$slots, "content", { key: 1 }, void 0, !0) : (c(), s("span", G, $(t.text), 1)),
|
|
208
|
+
e.$slots.iconRight ? (c(), h(k, {
|
|
209
|
+
key: 3,
|
|
210
|
+
class: o([`container-${t.size}`])
|
|
211
|
+
}, {
|
|
212
|
+
default: m(() => [
|
|
213
|
+
r(e.$slots, "iconRight", {}, void 0, !0)
|
|
214
|
+
]),
|
|
215
|
+
_: 3
|
|
216
|
+
}, 8, ["class"])) : f("", !0),
|
|
217
|
+
t.tooltip ? (c(), h(x, {
|
|
218
|
+
key: 4,
|
|
219
|
+
class: "tooltip-default",
|
|
220
|
+
text: t.tooltip,
|
|
221
|
+
size: "small"
|
|
222
|
+
}, null, 8, ["text"])) : f("", !0)
|
|
223
|
+
], 10, X));
|
|
360
224
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
window.HTMLElement && // also exclude jsdom
|
|
386
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
387
|
-
!((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
|
|
388
|
-
Se(r, t);
|
|
389
|
-
}), setTimeout(() => {
|
|
390
|
-
R || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, $ = []);
|
|
391
|
-
}, 3e3)) : $ = [];
|
|
392
|
-
}
|
|
393
|
-
let O = null, it = null;
|
|
394
|
-
const ct = (e) => e.__isTeleport;
|
|
395
|
-
function be(e, t) {
|
|
396
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t, be(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
397
|
-
}
|
|
398
|
-
// @__NO_SIDE_EFFECTS__
|
|
399
|
-
function lt(e, t) {
|
|
400
|
-
return S(e) ? (
|
|
401
|
-
// #8236: extend call and options.name access are considered side-effects
|
|
402
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
403
|
-
I({ name: e.name }, t, { setup: e })
|
|
404
|
-
) : e;
|
|
405
|
-
}
|
|
406
|
-
B().requestIdleCallback;
|
|
407
|
-
B().cancelIdleCallback;
|
|
408
|
-
const ut = (e) => !!e.type.__asyncLoader, at = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
409
|
-
function ft(e, t, n = {}, o, s) {
|
|
410
|
-
if (O.ce || O.parent && ut(O.parent) && O.parent.ce) {
|
|
411
|
-
const f = Object.keys(n).length > 0;
|
|
412
|
-
return n.name = t, z(), le(
|
|
413
|
-
F,
|
|
414
|
-
null,
|
|
415
|
-
[oe("slot", n, o)],
|
|
416
|
-
f ? -2 : 64
|
|
417
|
-
);
|
|
225
|
+
}), Wt = /* @__PURE__ */ u(J, [["__scopeId", "data-v-706d9910"]]), U = ["disabled"], Y = /* @__PURE__ */ d({
|
|
226
|
+
name: "BtnRadio",
|
|
227
|
+
__name: "ButtonRadio",
|
|
228
|
+
props: {
|
|
229
|
+
checked: { type: Boolean, default: !1 },
|
|
230
|
+
disabled: { type: Boolean, default: !1 }
|
|
231
|
+
},
|
|
232
|
+
emits: ["click"],
|
|
233
|
+
setup(t, { emit: l }) {
|
|
234
|
+
const n = t, a = l, e = () => {
|
|
235
|
+
n.disabled || a("click");
|
|
236
|
+
}, i = p(() => n.checked ? L : w);
|
|
237
|
+
return (B, I) => (c(), s("button", {
|
|
238
|
+
class: o(["btn-radio", { checked: t.checked, disabled: t.disabled }]),
|
|
239
|
+
disabled: t.disabled,
|
|
240
|
+
onClick: e
|
|
241
|
+
}, [
|
|
242
|
+
b(k, { class: "medium" }, {
|
|
243
|
+
default: m(() => [
|
|
244
|
+
b(y(_), { icon: i.value }, null, 8, ["icon"])
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
})
|
|
248
|
+
], 10, U));
|
|
418
249
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
r,
|
|
463
|
-
!0
|
|
464
|
-
)
|
|
465
|
-
);
|
|
466
|
-
}
|
|
467
|
-
function le(e, t, n, o, s) {
|
|
468
|
-
return Ve(
|
|
469
|
-
oe(
|
|
470
|
-
e,
|
|
471
|
-
t,
|
|
472
|
-
n,
|
|
473
|
-
o,
|
|
474
|
-
s,
|
|
475
|
-
!0
|
|
476
|
-
)
|
|
477
|
-
);
|
|
478
|
-
}
|
|
479
|
-
function Ce(e) {
|
|
480
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
481
|
-
}
|
|
482
|
-
const gt = (...e) => xe(
|
|
483
|
-
...e
|
|
484
|
-
), Re = ({ key: e }) => e ?? null, A = ({
|
|
485
|
-
ref: e,
|
|
486
|
-
ref_key: t,
|
|
487
|
-
ref_for: n
|
|
488
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? N(e) || /* @__PURE__ */ te(e) || S(e) ? { i: O, r: e, k: t, f: !!n } : e : null);
|
|
489
|
-
function De(e, t = null, n = null, o = 0, s = null, r = e === F ? 0 : 1, c = !1, l = !1) {
|
|
490
|
-
const u = {
|
|
491
|
-
__v_isVNode: !0,
|
|
492
|
-
__v_skip: !0,
|
|
493
|
-
type: e,
|
|
494
|
-
props: t,
|
|
495
|
-
key: t && Re(t),
|
|
496
|
-
ref: t && A(t),
|
|
497
|
-
scopeId: it,
|
|
498
|
-
slotScopeIds: null,
|
|
499
|
-
children: n,
|
|
500
|
-
component: null,
|
|
501
|
-
suspense: null,
|
|
502
|
-
ssContent: null,
|
|
503
|
-
ssFallback: null,
|
|
504
|
-
dirs: null,
|
|
505
|
-
transition: null,
|
|
506
|
-
el: null,
|
|
507
|
-
anchor: null,
|
|
508
|
-
target: null,
|
|
509
|
-
targetStart: null,
|
|
510
|
-
targetAnchor: null,
|
|
511
|
-
staticCount: 0,
|
|
512
|
-
shapeFlag: r,
|
|
513
|
-
patchFlag: o,
|
|
514
|
-
dynamicProps: s,
|
|
515
|
-
dynamicChildren: null,
|
|
516
|
-
appContext: null,
|
|
517
|
-
ctx: O
|
|
518
|
-
};
|
|
519
|
-
return l ? (re(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && V("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
|
|
520
|
-
!c && // has current parent block
|
|
521
|
-
h && // presence of a patch flag indicates this node needs patching on updates.
|
|
522
|
-
// component nodes also should always be patched, because even if the
|
|
523
|
-
// component doesn't need to update, it needs to persist the instance on to
|
|
524
|
-
// the next vnode so that it can be properly unmounted later.
|
|
525
|
-
(u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
526
|
-
// vnode should not be considered dynamic due to handler caching.
|
|
527
|
-
u.patchFlag !== 32 && h.push(u), u;
|
|
528
|
-
}
|
|
529
|
-
const oe = process.env.NODE_ENV !== "production" ? gt : xe;
|
|
530
|
-
function xe(e, t = null, n = null, o = 0, s = null, r = !1) {
|
|
531
|
-
if ((!e || e === at) && (process.env.NODE_ENV !== "production" && !e && V(`Invalid vnode type when creating vnode: ${e}.`), e = ke), Ce(e)) {
|
|
532
|
-
const l = H(
|
|
533
|
-
e,
|
|
534
|
-
t,
|
|
535
|
-
!0
|
|
536
|
-
/* mergeRef: true */
|
|
537
|
-
);
|
|
538
|
-
return n && re(l, n), !r && h && (l.shapeFlag & 6 ? h[h.indexOf(e)] = l : h.push(l)), l.patchFlag = -2, l;
|
|
250
|
+
}), Mt = /* @__PURE__ */ u(Y, [["__scopeId", "data-v-23c610f4"]]), Z = ["disabled"], tt = { class: "ui-btn-secondary__text" }, et = /* @__PURE__ */ d({
|
|
251
|
+
name: "BtnSecondary",
|
|
252
|
+
__name: "ButtonSecondary",
|
|
253
|
+
props: {
|
|
254
|
+
text: { default: "" },
|
|
255
|
+
disabled: { type: Boolean, default: !1 },
|
|
256
|
+
size: { default: "medium" },
|
|
257
|
+
elementWidth: { default: "auto" },
|
|
258
|
+
selected: { type: Boolean, default: !1 },
|
|
259
|
+
color: { default: "blue" }
|
|
260
|
+
},
|
|
261
|
+
emits: ["click"],
|
|
262
|
+
setup(t, { emit: l }) {
|
|
263
|
+
const n = l, a = () => {
|
|
264
|
+
n("click");
|
|
265
|
+
};
|
|
266
|
+
return (e, i) => (c(), s("button", {
|
|
267
|
+
type: "button",
|
|
268
|
+
class: o(["ui-btn-secondary", t.size, t.elementWidth, t.color, { disabled: t.disabled }, { selected: t.selected }]),
|
|
269
|
+
disabled: t.disabled,
|
|
270
|
+
onClick: a
|
|
271
|
+
}, [
|
|
272
|
+
e.$slots.iconLeft ? (c(), h(k, {
|
|
273
|
+
key: 0,
|
|
274
|
+
class: o([`container-${t.size}`])
|
|
275
|
+
}, {
|
|
276
|
+
default: m(() => [
|
|
277
|
+
r(e.$slots, "iconLeft", {}, void 0, !0)
|
|
278
|
+
]),
|
|
279
|
+
_: 3
|
|
280
|
+
}, 8, ["class"])) : f("", !0),
|
|
281
|
+
C("span", tt, $(t.text), 1),
|
|
282
|
+
e.$slots.iconRight ? (c(), h(k, {
|
|
283
|
+
key: 1,
|
|
284
|
+
class: o([`container-${t.size}`])
|
|
285
|
+
}, {
|
|
286
|
+
default: m(() => [
|
|
287
|
+
r(e.$slots, "iconRight", {}, void 0, !0)
|
|
288
|
+
]),
|
|
289
|
+
_: 3
|
|
290
|
+
}, 8, ["class"])) : f("", !0),
|
|
291
|
+
r(e.$slots, "tooltip", {}, void 0, !0)
|
|
292
|
+
], 10, Z));
|
|
539
293
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
294
|
+
}), Vt = /* @__PURE__ */ u(et, [["__scopeId", "data-v-5945e6cf"]]), nt = ["disabled"], lt = /* @__PURE__ */ d({
|
|
295
|
+
name: "BtnSecondaryIcon",
|
|
296
|
+
__name: "ButtonSecondaryIcon",
|
|
297
|
+
props: {
|
|
298
|
+
icon: {},
|
|
299
|
+
disabled: { type: Boolean, default: !1 },
|
|
300
|
+
color: { default: "gray" }
|
|
301
|
+
},
|
|
302
|
+
emits: ["click"],
|
|
303
|
+
setup(t, { emit: l }) {
|
|
304
|
+
const n = l, a = () => {
|
|
305
|
+
n("click");
|
|
306
|
+
};
|
|
307
|
+
return (e, i) => (c(), s("button", {
|
|
308
|
+
type: "button",
|
|
309
|
+
class: o(["ui-btn-secondary-icon", t.color]),
|
|
310
|
+
disabled: t.disabled,
|
|
311
|
+
onClick: a
|
|
312
|
+
}, [
|
|
313
|
+
b(k, { is: "span" }, {
|
|
314
|
+
default: m(() => [
|
|
315
|
+
b(y(_), { icon: t.icon }, null, 8, ["icon"])
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
], 10, nt));
|
|
544
320
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
n,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
c,
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
__v_isVNode: !0,
|
|
568
|
-
__v_skip: !0,
|
|
569
|
-
type: e.type,
|
|
570
|
-
props: f,
|
|
571
|
-
key: f && Re(f),
|
|
572
|
-
ref: t && t.ref ? (
|
|
573
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
574
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
575
|
-
// the refs so the single vnode can be set on multiple refs
|
|
576
|
-
n && r ? m(r) ? r.concat(A(t)) : [r, A(t)] : A(t)
|
|
577
|
-
) : r,
|
|
578
|
-
scopeId: e.scopeId,
|
|
579
|
-
slotScopeIds: e.slotScopeIds,
|
|
580
|
-
children: process.env.NODE_ENV !== "production" && c === -1 && m(l) ? l.map(Te) : l,
|
|
581
|
-
target: e.target,
|
|
582
|
-
targetStart: e.targetStart,
|
|
583
|
-
targetAnchor: e.targetAnchor,
|
|
584
|
-
staticCount: e.staticCount,
|
|
585
|
-
shapeFlag: e.shapeFlag,
|
|
586
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
587
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
588
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
589
|
-
// fast paths only.
|
|
590
|
-
patchFlag: t && e.type !== F ? c === -1 ? 16 : c | 16 : c,
|
|
591
|
-
dynamicProps: e.dynamicProps,
|
|
592
|
-
dynamicChildren: e.dynamicChildren,
|
|
593
|
-
appContext: e.appContext,
|
|
594
|
-
dirs: e.dirs,
|
|
595
|
-
transition: u,
|
|
596
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
597
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
598
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
599
|
-
// they will simply be overwritten.
|
|
600
|
-
component: e.component,
|
|
601
|
-
suspense: e.suspense,
|
|
602
|
-
ssContent: e.ssContent && H(e.ssContent),
|
|
603
|
-
ssFallback: e.ssFallback && H(e.ssFallback),
|
|
604
|
-
placeholder: e.placeholder,
|
|
605
|
-
el: e.el,
|
|
606
|
-
anchor: e.anchor,
|
|
607
|
-
ctx: e.ctx,
|
|
608
|
-
ce: e.ce
|
|
609
|
-
};
|
|
610
|
-
return u && o && be(
|
|
611
|
-
g,
|
|
612
|
-
u.clone(g)
|
|
613
|
-
), g;
|
|
614
|
-
}
|
|
615
|
-
function Te(e) {
|
|
616
|
-
const t = H(e);
|
|
617
|
-
return m(e.children) && (t.children = e.children.map(Te)), t;
|
|
618
|
-
}
|
|
619
|
-
function Et(e = " ", t = 0) {
|
|
620
|
-
return oe(ht, null, e, t);
|
|
621
|
-
}
|
|
622
|
-
function re(e, t) {
|
|
623
|
-
let n = 0;
|
|
624
|
-
const { shapeFlag: o } = e;
|
|
625
|
-
if (t == null)
|
|
626
|
-
t = null;
|
|
627
|
-
else if (m(t))
|
|
628
|
-
n = 16;
|
|
629
|
-
else if (typeof t == "object")
|
|
630
|
-
if (o & 65) {
|
|
631
|
-
const s = t.default;
|
|
632
|
-
s && (s._c && (s._d = !1), re(e, s()), s._c && (s._d = !0));
|
|
633
|
-
return;
|
|
634
|
-
} else
|
|
635
|
-
n = 32, !t._ && !we(t) && (t._ctx = O);
|
|
636
|
-
else S(t) ? (t = { default: t, _ctx: O }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Et(t)]) : n = 8);
|
|
637
|
-
e.children = t, e.shapeFlag |= n;
|
|
638
|
-
}
|
|
639
|
-
function Nt(...e) {
|
|
640
|
-
const t = {};
|
|
641
|
-
for (let n = 0; n < e.length; n++) {
|
|
642
|
-
const o = e[n];
|
|
643
|
-
for (const s in o)
|
|
644
|
-
if (s === "class")
|
|
645
|
-
t.class !== o.class && (t.class = L([t.class, o.class]));
|
|
646
|
-
else if (s === "style")
|
|
647
|
-
t.style = ee([t.style, o.style]);
|
|
648
|
-
else if (Ae(s)) {
|
|
649
|
-
const r = t[s], c = o[s];
|
|
650
|
-
c && r !== c && !(m(r) && r.includes(c)) && (t[s] = r ? [].concat(r, c) : c);
|
|
651
|
-
} else s !== "" && (t[s] = o[s]);
|
|
321
|
+
}), jt = /* @__PURE__ */ u(lt, [["__scopeId", "data-v-5daf6b95"]]), at = ["disabled"], ct = { class: "btn-simple__text" }, ot = /* @__PURE__ */ d({
|
|
322
|
+
name: "BtnSimple",
|
|
323
|
+
__name: "ButtonSimple",
|
|
324
|
+
props: {
|
|
325
|
+
text: {},
|
|
326
|
+
disabled: { type: Boolean, default: !1 }
|
|
327
|
+
},
|
|
328
|
+
emits: ["click"],
|
|
329
|
+
setup(t, { emit: l }) {
|
|
330
|
+
const n = l, a = () => {
|
|
331
|
+
n("click");
|
|
332
|
+
};
|
|
333
|
+
return (e, i) => (c(), s("button", {
|
|
334
|
+
type: "button",
|
|
335
|
+
class: o(["btn-simple"]),
|
|
336
|
+
disabled: t.disabled,
|
|
337
|
+
onClick: a
|
|
338
|
+
}, [
|
|
339
|
+
e.$slots.leftIcon ? r(e.$slots, "leftIcon", { key: 0 }, void 0, !0) : f("", !0),
|
|
340
|
+
C("span", ct, $(t.text), 1),
|
|
341
|
+
e.$slots.rightIcon ? r(e.$slots, "rightIcon", { key: 1 }, void 0, !0) : f("", !0)
|
|
342
|
+
], 8, at));
|
|
652
343
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
344
|
+
}), Nt = /* @__PURE__ */ u(ot, [["__scopeId", "data-v-0429e610"]]), st = ["disabled"], it = {
|
|
345
|
+
key: 0,
|
|
346
|
+
class: "btn-switcher__emoji"
|
|
347
|
+
}, dt = {
|
|
348
|
+
key: 1,
|
|
349
|
+
class: "btn-switcher__label"
|
|
350
|
+
}, ut = /* @__PURE__ */ d({
|
|
351
|
+
name: "BtnSwitcher",
|
|
352
|
+
__name: "ButtonSwitcher",
|
|
353
|
+
props: {
|
|
354
|
+
text: {},
|
|
355
|
+
emoji: { default: null },
|
|
356
|
+
label: { default: null },
|
|
357
|
+
tooltip: { default: null },
|
|
358
|
+
selected: { type: Boolean, default: !1 },
|
|
359
|
+
disabled: { type: Boolean, default: !1 }
|
|
360
|
+
},
|
|
361
|
+
emits: ["click"],
|
|
362
|
+
setup(t, { emit: l }) {
|
|
363
|
+
const n = l, a = () => {
|
|
364
|
+
n("click");
|
|
660
365
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
366
|
+
return (e, i) => (c(), s("div", {
|
|
367
|
+
class: o(["content-switcher", { selected: t.selected, disabled: t.disabled }])
|
|
368
|
+
}, [
|
|
369
|
+
C("button", {
|
|
370
|
+
type: "button",
|
|
371
|
+
class: o(["btn-switcher", { selected: t.selected }]),
|
|
372
|
+
disabled: t.disabled,
|
|
373
|
+
onClick: a
|
|
374
|
+
}, [
|
|
375
|
+
t.emoji ? (c(), s("span", it, $(t.emoji), 1)) : f("", !0),
|
|
376
|
+
z(" " + $(t.text) + " ", 1),
|
|
377
|
+
t.label ? (c(), s("span", dt, $(t.label), 1)) : f("", !0)
|
|
378
|
+
], 10, st),
|
|
379
|
+
t.tooltip ? (c(), h(x, {
|
|
380
|
+
key: 0,
|
|
381
|
+
text: t.tooltip,
|
|
382
|
+
placement: "center",
|
|
383
|
+
size: "small"
|
|
384
|
+
}, null, 8, ["text"])) : f("", !0)
|
|
385
|
+
], 2));
|
|
680
386
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
387
|
+
}), Ot = /* @__PURE__ */ u(ut, [["__scopeId", "data-v-b59270a4"]]), rt = ["disabled"], ft = {
|
|
388
|
+
key: 1,
|
|
389
|
+
class: "ui-btn-text__text"
|
|
390
|
+
}, mt = /* @__PURE__ */ d({
|
|
391
|
+
name: "BtnText",
|
|
392
|
+
__name: "ButtonText",
|
|
393
|
+
props: {
|
|
394
|
+
text: { default: "" },
|
|
395
|
+
disabled: { type: Boolean, default: !1 },
|
|
396
|
+
color: { default: "blue" },
|
|
397
|
+
size: { default: "medium" },
|
|
398
|
+
elementWidth: { default: "auto" }
|
|
399
|
+
},
|
|
400
|
+
emits: ["click"],
|
|
401
|
+
setup(t, { emit: l }) {
|
|
402
|
+
const n = l, a = () => {
|
|
403
|
+
n("click");
|
|
686
404
|
};
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
405
|
+
return (e, i) => (c(), s("button", {
|
|
406
|
+
type: "button",
|
|
407
|
+
class: o(["ui-btn-text", t.color, t.size, t.elementWidth]),
|
|
408
|
+
disabled: t.disabled,
|
|
409
|
+
onClick: a
|
|
410
|
+
}, [
|
|
411
|
+
e.$slots.iconLeft ? (c(), h(k, {
|
|
412
|
+
key: 0,
|
|
413
|
+
class: o([`container-${t.size}`])
|
|
414
|
+
}, {
|
|
415
|
+
default: m(() => [
|
|
416
|
+
r(e.$slots, "iconLeft", {}, void 0, !0)
|
|
417
|
+
]),
|
|
418
|
+
_: 3
|
|
419
|
+
}, 8, ["class"])) : f("", !0),
|
|
420
|
+
t.text ? (c(), s("span", ft, $(t.text), 1)) : f("", !0),
|
|
421
|
+
e.$slots.iconRight ? (c(), h(k, {
|
|
422
|
+
key: 2,
|
|
423
|
+
class: o([`container-${t.size}`])
|
|
424
|
+
}, {
|
|
425
|
+
default: m(() => [
|
|
426
|
+
r(e.$slots, "iconRight", {}, void 0, !0)
|
|
427
|
+
]),
|
|
428
|
+
_: 3
|
|
429
|
+
}, 8, ["class"])) : f("", !0)
|
|
430
|
+
], 10, rt));
|
|
690
431
|
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
{},
|
|
711
|
-
["span", e, g(i)],
|
|
712
|
-
"<",
|
|
713
|
-
l(a),
|
|
714
|
-
">"
|
|
715
|
-
];
|
|
716
|
-
} else {
|
|
717
|
-
if (/* @__PURE__ */ me(i))
|
|
718
|
-
return [
|
|
719
|
-
"div",
|
|
720
|
-
{},
|
|
721
|
-
["span", e, /* @__PURE__ */ W(i) ? "ShallowReactive" : "Reactive"],
|
|
722
|
-
"<",
|
|
723
|
-
l(i),
|
|
724
|
-
`>${/* @__PURE__ */ Q(i) ? " (readonly)" : ""}`
|
|
725
|
-
];
|
|
726
|
-
if (/* @__PURE__ */ Q(i))
|
|
727
|
-
return [
|
|
728
|
-
"div",
|
|
729
|
-
{},
|
|
730
|
-
["span", e, /* @__PURE__ */ W(i) ? "ShallowReadonly" : "Readonly"],
|
|
731
|
-
"<",
|
|
732
|
-
l(i),
|
|
733
|
-
">"
|
|
734
|
-
];
|
|
735
|
-
}
|
|
736
|
-
return null;
|
|
737
|
-
},
|
|
738
|
-
hasBody(i) {
|
|
739
|
-
return i && i.__isVue;
|
|
740
|
-
},
|
|
741
|
-
body(i) {
|
|
742
|
-
if (i && i.__isVue)
|
|
743
|
-
return [
|
|
744
|
-
"div",
|
|
745
|
-
{},
|
|
746
|
-
...r(i.$)
|
|
747
|
-
];
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
function r(i) {
|
|
751
|
-
const a = [];
|
|
752
|
-
i.type.props && i.props && a.push(c("props", /* @__PURE__ */ w(i.props))), i.setupState !== G && a.push(c("setup", i.setupState)), i.data !== G && a.push(c("data", /* @__PURE__ */ w(i.data)));
|
|
753
|
-
const d = u(i, "computed");
|
|
754
|
-
d && a.push(c("computed", d));
|
|
755
|
-
const _ = u(i, "inject");
|
|
756
|
-
return _ && a.push(c("injected", _)), a.push([
|
|
757
|
-
"div",
|
|
758
|
-
{},
|
|
759
|
-
[
|
|
760
|
-
"span",
|
|
761
|
-
{
|
|
762
|
-
style: o.style + ";opacity:0.66"
|
|
763
|
-
},
|
|
764
|
-
"$ (internal): "
|
|
765
|
-
],
|
|
766
|
-
["object", { object: i }]
|
|
767
|
-
]), a;
|
|
432
|
+
}), Et = /* @__PURE__ */ u(mt, [["__scopeId", "data-v-8f62a933"]]), bt = ["disabled"], kt = /* @__PURE__ */ d({
|
|
433
|
+
name: "BtnToggle",
|
|
434
|
+
__name: "ButtonToggle",
|
|
435
|
+
props: {
|
|
436
|
+
checked: { type: Boolean, default: !1 },
|
|
437
|
+
disabled: { type: Boolean, default: !1 }
|
|
438
|
+
},
|
|
439
|
+
emits: ["click"],
|
|
440
|
+
setup(t, { emit: l }) {
|
|
441
|
+
const n = t, a = l, e = () => {
|
|
442
|
+
n.disabled || a("click");
|
|
443
|
+
};
|
|
444
|
+
return (i, B) => (c(), s("button", {
|
|
445
|
+
class: o(["btn-toggle", { checked: t.checked, disabled: t.disabled }]),
|
|
446
|
+
disabled: t.disabled,
|
|
447
|
+
onClick: e
|
|
448
|
+
}, [...B[0] || (B[0] = [
|
|
449
|
+
C("span", { class: "btn-toggle__circle" }, null, -1)
|
|
450
|
+
])], 10, bt));
|
|
768
451
|
}
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
452
|
+
}), Kt = /* @__PURE__ */ u(kt, [["__scopeId", "data-v-ee7f505b"]]), ht = ["data-qa", "disabled"], yt = { class: "ui-btn-transparent-icon__wrap" }, Bt = /* @__PURE__ */ d({
|
|
453
|
+
name: "BtnTransparentIcon",
|
|
454
|
+
__name: "ButtonTransparentIcon",
|
|
455
|
+
props: {
|
|
456
|
+
icon: {},
|
|
457
|
+
disabled: { type: Boolean, default: !1 },
|
|
458
|
+
tooltip: { default: null },
|
|
459
|
+
dataQa: { default: null }
|
|
460
|
+
},
|
|
461
|
+
emits: ["click", "click:close"],
|
|
462
|
+
setup(t, { emit: l }) {
|
|
463
|
+
const n = l, a = () => {
|
|
464
|
+
n("click");
|
|
465
|
+
}, e = (i) => {
|
|
466
|
+
n("click:close", i);
|
|
467
|
+
};
|
|
468
|
+
return (i, B) => (c(), s("button", {
|
|
469
|
+
type: "button",
|
|
470
|
+
class: o(["ui-btn-transparent-icon", { tooltip: t.tooltip }]),
|
|
471
|
+
"data-qa": t.dataQa,
|
|
472
|
+
disabled: t.disabled,
|
|
473
|
+
onClick: [
|
|
474
|
+
a,
|
|
475
|
+
v(e, ["stop"])
|
|
791
476
|
]
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
477
|
+
}, [
|
|
478
|
+
C("span", yt, [
|
|
479
|
+
b(k, { is: "span" }, {
|
|
480
|
+
default: m(() => [
|
|
481
|
+
b(y(_), { icon: t.icon }, null, 8, ["icon"])
|
|
482
|
+
]),
|
|
483
|
+
_: 1
|
|
484
|
+
})
|
|
485
|
+
]),
|
|
486
|
+
t.tooltip ? (c(), h(x, {
|
|
487
|
+
key: 0,
|
|
488
|
+
text: t.tooltip
|
|
489
|
+
}, null, 8, ["text"])) : f("", !0)
|
|
490
|
+
], 10, ht));
|
|
796
491
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
492
|
+
}), Pt = /* @__PURE__ */ u(Bt, [["__scopeId", "data-v-19c5f518"]]), $t = ["disabled"], _t = /* @__PURE__ */ d({
|
|
493
|
+
name: "BtnTextQuaternary",
|
|
494
|
+
__name: "ButtonTextQuaternary",
|
|
495
|
+
props: {
|
|
496
|
+
disabled: { type: Boolean, default: !1 },
|
|
497
|
+
underline: { type: Boolean, default: !1 },
|
|
498
|
+
color: { default: "default" }
|
|
499
|
+
},
|
|
500
|
+
emits: ["click"],
|
|
501
|
+
setup(t, { emit: l }) {
|
|
502
|
+
const n = l, a = () => {
|
|
503
|
+
n("click");
|
|
504
|
+
};
|
|
505
|
+
return (e, i) => (c(), s("button", {
|
|
506
|
+
type: "button",
|
|
507
|
+
class: o(["p-text-quaternary", { underline: t.underline }, t.color]),
|
|
508
|
+
disabled: t.disabled,
|
|
509
|
+
onClick: a
|
|
510
|
+
}, [
|
|
511
|
+
r(e.$slots, "default", {}, void 0, !0)
|
|
512
|
+
], 10, $t));
|
|
805
513
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
514
|
+
}), Ht = /* @__PURE__ */ u(_t, [["__scopeId", "data-v-789ddcd5"]]), Ct = ["disabled"], xt = /* @__PURE__ */ d({
|
|
515
|
+
name: "BtnTextSecondary",
|
|
516
|
+
__name: "ButtonTextSecondary",
|
|
517
|
+
props: {
|
|
518
|
+
disabled: { type: Boolean, default: !1 }
|
|
519
|
+
},
|
|
520
|
+
emits: ["click"],
|
|
521
|
+
setup(t, { emit: l }) {
|
|
522
|
+
const n = l, a = () => {
|
|
523
|
+
n("click");
|
|
524
|
+
};
|
|
525
|
+
return (e, i) => (c(), s("button", {
|
|
526
|
+
type: "button",
|
|
527
|
+
class: "p-text-secondary",
|
|
528
|
+
disabled: t.disabled,
|
|
529
|
+
onClick: a
|
|
530
|
+
}, [
|
|
531
|
+
r(e.$slots, "default", {}, void 0, !0)
|
|
532
|
+
], 8, Ct));
|
|
810
533
|
}
|
|
811
|
-
|
|
812
|
-
|
|
534
|
+
}), At = /* @__PURE__ */ u(xt, [["__scopeId", "data-v-fbbc4516"]]), pt = ["disabled"], vt = /* @__PURE__ */ d({
|
|
535
|
+
name: "BtnTextTertiary",
|
|
536
|
+
__name: "ButtonTextTertiary",
|
|
537
|
+
props: {
|
|
538
|
+
disabled: { type: Boolean, default: !1 },
|
|
539
|
+
underline: { type: Boolean, default: !1 },
|
|
540
|
+
color: { default: "default" }
|
|
541
|
+
},
|
|
542
|
+
emits: ["click"],
|
|
543
|
+
setup(t, { emit: l }) {
|
|
544
|
+
const n = l, a = () => {
|
|
545
|
+
n("click");
|
|
546
|
+
};
|
|
547
|
+
return (e, i) => (c(), s("button", {
|
|
548
|
+
type: "button",
|
|
549
|
+
class: o(["p-text-tertiary", { underline: t.underline }, t.color]),
|
|
550
|
+
disabled: t.disabled,
|
|
551
|
+
onClick: a
|
|
552
|
+
}, [
|
|
553
|
+
r(e.$slots, "default", {}, void 0, !0)
|
|
554
|
+
], 10, pt));
|
|
813
555
|
}
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
process.env.NODE_ENV;
|
|
818
|
-
process.env.NODE_ENV;
|
|
819
|
-
function wt() {
|
|
820
|
-
Ot();
|
|
821
|
-
}
|
|
822
|
-
process.env.NODE_ENV !== "production" && wt();
|
|
823
|
-
const kt = ["data-qa", "disabled"], Vt = {
|
|
824
|
-
key: 1,
|
|
825
|
-
class: "ui-btn-primary__text"
|
|
826
|
-
}, Ct = /* @__PURE__ */ lt({
|
|
827
|
-
name: "BtnPrimary",
|
|
828
|
-
__name: "ButtonPrimary",
|
|
556
|
+
}), Ft = /* @__PURE__ */ u(vt, [["__scopeId", "data-v-377f6ccc"]]), It = ["disabled"], Tt = /* @__PURE__ */ d({
|
|
557
|
+
name: "BtnTextTertiary",
|
|
558
|
+
__name: "ButtonTextTertiaryMedium",
|
|
829
559
|
props: {
|
|
830
|
-
text: { default: "" },
|
|
831
560
|
disabled: { type: Boolean, default: !1 },
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
elementWidth: { default: "auto" },
|
|
835
|
-
tooltip: { default: null },
|
|
836
|
-
dataQa: { default: null }
|
|
561
|
+
underline: { type: Boolean, default: !1 },
|
|
562
|
+
color: { default: "default" }
|
|
837
563
|
},
|
|
838
564
|
emits: ["click"],
|
|
839
|
-
setup(
|
|
840
|
-
const n =
|
|
565
|
+
setup(t, { emit: l }) {
|
|
566
|
+
const n = l, a = () => {
|
|
841
567
|
n("click");
|
|
842
568
|
};
|
|
843
|
-
return (
|
|
569
|
+
return (e, i) => (c(), s("button", {
|
|
844
570
|
type: "button",
|
|
845
|
-
class:
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
onClick: o
|
|
571
|
+
class: o(["p-text-tertiary-medium", { underline: t.underline }, t.color]),
|
|
572
|
+
disabled: t.disabled,
|
|
573
|
+
onClick: a
|
|
849
574
|
}, [
|
|
850
|
-
|
|
851
|
-
], 10,
|
|
575
|
+
r(e.$slots, "default", {}, void 0, !0)
|
|
576
|
+
], 10, It));
|
|
852
577
|
}
|
|
853
|
-
}),
|
|
854
|
-
const n = e.__vccOpts || e;
|
|
855
|
-
for (const [o, s] of t)
|
|
856
|
-
n[o] = s;
|
|
857
|
-
return n;
|
|
858
|
-
}, Dt = /* @__PURE__ */ Rt(Ct, [["__scopeId", "data-v-fc505a5f"]]);
|
|
578
|
+
}), Xt = /* @__PURE__ */ u(Tt, [["__scopeId", "data-v-19ac5089"]]);
|
|
859
579
|
export {
|
|
860
|
-
|
|
580
|
+
Qt as ButtonCheckbox,
|
|
581
|
+
Rt as ButtonClose,
|
|
582
|
+
Lt as ButtonIcon,
|
|
583
|
+
Dt as ButtonKebab,
|
|
584
|
+
Wt as ButtonPrimary,
|
|
585
|
+
Mt as ButtonRadio,
|
|
586
|
+
Vt as ButtonSecondary,
|
|
587
|
+
jt as ButtonSecondaryIcon,
|
|
588
|
+
Nt as ButtonSimple,
|
|
589
|
+
Ot as ButtonSwitcher,
|
|
590
|
+
Et as ButtonText,
|
|
591
|
+
Ht as ButtonTextQuaternary,
|
|
592
|
+
At as ButtonTextSecondary,
|
|
593
|
+
Ft as ButtonTextTertiary,
|
|
594
|
+
Xt as ButtonTextTertiaryMedium,
|
|
595
|
+
Kt as ButtonToggle,
|
|
596
|
+
Pt as ButtonTransparentIcon,
|
|
597
|
+
k as IconContainer,
|
|
598
|
+
x as TooltipDefault
|
|
861
599
|
};
|