@salesql/sql_components_vue3 1.0.0 → 2.0.0
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +558 -500
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsButton/DsButton.types.d.ts +4 -1
- package/dist/ui/DsButton/DsButton.vue.d.ts +8 -5
- package/dist/ui/DsModal/DsModal.vue.d.ts +3 -3
- package/dist/ui/DsNotification/DsNotification.types.d.ts +1 -0
- package/dist/ui/DsNotification/DsNotification.vue.d.ts +9 -0
- package/dist/ui/DsTable/DsTable.vue.d.ts +9 -0
- package/dist/ui/DsTag/DsTag.types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as $, openBlock as t, createElementBlock as a, normalizeStyle as L, normalizeClass as m, computed as h, createBlock as D, unref as S, createCommentVNode as u, renderSlot as I, createElementVNode as d, toDisplayString as v, Fragment as A, renderList as V, createTextVNode as O, useModel as Q, useSlots as oe, ref as R, withDirectives as Z, vModelDynamic as ye, mergeModels as U, vModelText as ve, onMounted as se, watch as de, vModelCheckbox as be, onBeforeUnmount as j, Teleport as re, createVNode as p, Transition as ce, withCtx as J, nextTick as me, withModifiers as ue } from "vue";
|
|
2
|
+
const W = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
5
5
|
LIGHT: "light",
|
|
6
6
|
// white ring — for dark surfaces / solid buttons
|
|
7
7
|
ACCENT: "accent"
|
|
8
8
|
// accent ring
|
|
9
|
-
},
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "ds-spinner__sr-only"
|
|
12
|
-
}, he = /* @__PURE__ */ k({
|
|
9
|
+
}, ge = ["aria-label"], he = /* @__PURE__ */ $({
|
|
13
10
|
__name: "DsSpinner",
|
|
14
11
|
props: {
|
|
15
12
|
size: { type: Number, default: 24 },
|
|
16
13
|
tone: {
|
|
17
14
|
type: String,
|
|
18
|
-
default:
|
|
15
|
+
default: W.DARK
|
|
19
16
|
},
|
|
20
|
-
//
|
|
21
|
-
label
|
|
17
|
+
// Accessible name (DS default "Loading"); the consuming app can override for
|
|
18
|
+
// i18n. role="status" + aria-label are always present, never opt-in.
|
|
19
|
+
label: { type: String, default: "Loading" }
|
|
22
20
|
},
|
|
23
21
|
setup(e) {
|
|
24
|
-
return (
|
|
25
|
-
class:
|
|
22
|
+
return (i, l) => (t(), a("span", {
|
|
23
|
+
class: m(["ds-spinner", `ds-spinner--${e.tone}`]),
|
|
26
24
|
role: "status",
|
|
27
|
-
style:
|
|
28
|
-
"aria-label": e.label || void 0
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
e.label ? (t(), a("span", ge, y(e.label), 1)) : r("", !0)
|
|
32
|
-
], 14, me));
|
|
25
|
+
style: L({ width: `${e.size}px`, height: `${e.size}px` }),
|
|
26
|
+
"aria-label": e.label || void 0
|
|
27
|
+
}, null, 14, ge));
|
|
33
28
|
}
|
|
34
|
-
}),
|
|
35
|
-
const
|
|
36
|
-
for (const [
|
|
37
|
-
|
|
38
|
-
return
|
|
39
|
-
}, Se = /* @__PURE__ */
|
|
29
|
+
}), T = (e, i) => {
|
|
30
|
+
const l = e.__vccOpts || e;
|
|
31
|
+
for (const [r, s] of i)
|
|
32
|
+
l[r] = s;
|
|
33
|
+
return l;
|
|
34
|
+
}, Se = /* @__PURE__ */ T(he, [["__scopeId", "data-v-4d32b0a5"]]), ee = "click", C = "close", F = "focus", z = "blur", G = "copy", _ = "correct", P = "incorrect", te = "sort", ae = "edit", H = {
|
|
35
|
+
DEFAULT: "default",
|
|
36
|
+
// white surface, dark text (the default value; == tertiary)
|
|
40
37
|
PRIMARY: "primary",
|
|
41
|
-
// solid accent fill, white text
|
|
38
|
+
// solid accent fill, white text — the main CTA
|
|
42
39
|
SECONDARY: "secondary",
|
|
43
40
|
// slate surface fill, dark text
|
|
44
41
|
TERTIARY: "tertiary",
|
|
45
|
-
//
|
|
42
|
+
// white surface, dark text (low-emphasis row action)
|
|
46
43
|
QUATERNARY: "quaternary",
|
|
47
|
-
// accent
|
|
48
|
-
|
|
49
|
-
// accent text
|
|
50
|
-
|
|
44
|
+
// accent text + accent-mid border on white
|
|
45
|
+
QUINARY: "quinary",
|
|
46
|
+
// accent text on white, no border (link-style)
|
|
47
|
+
WARNING: "warning",
|
|
48
|
+
// solid red fill, white text — destructive / delete
|
|
49
|
+
DOTTED: "dotted"
|
|
50
|
+
// transparent, dashed border, 24px radius — "add" affordance
|
|
51
|
+
}, ie = {
|
|
51
52
|
SMALL: "small",
|
|
52
53
|
// 24px
|
|
53
54
|
MEDIUM: "medium",
|
|
@@ -60,7 +61,7 @@ const Y = {
|
|
|
60
61
|
BUTTON: "button",
|
|
61
62
|
SUBMIT: "submit",
|
|
62
63
|
RESET: "reset"
|
|
63
|
-
}, $e = ["type", "disabled", "autofocus", "aria-busy", "aria-disabled", "aria-label"], Te = {
|
|
64
|
+
}, $e = ["type", "disabled", "autofocus", "aria-busy", "aria-disabled", "aria-pressed", "aria-label"], Te = {
|
|
64
65
|
key: 1,
|
|
65
66
|
class: "ds-button__icon ds-button__icon--leading"
|
|
66
67
|
}, Ie = {
|
|
@@ -72,46 +73,52 @@ const Y = {
|
|
|
72
73
|
}, Ee = {
|
|
73
74
|
key: 3,
|
|
74
75
|
class: "ds-button__icon ds-button__icon--trailing"
|
|
75
|
-
},
|
|
76
|
+
}, we = {
|
|
76
77
|
class: "material-icons",
|
|
77
78
|
"aria-hidden": "true"
|
|
78
|
-
},
|
|
79
|
+
}, Le = /* @__PURE__ */ $({
|
|
79
80
|
__name: "DsButton",
|
|
80
81
|
props: {
|
|
81
|
-
variant: { type: String, default:
|
|
82
|
-
size: { type: String, default:
|
|
82
|
+
variant: { type: String, default: H.DEFAULT },
|
|
83
|
+
size: { type: String, default: ie.MEDIUM },
|
|
83
84
|
nativeType: {
|
|
84
85
|
type: String,
|
|
85
86
|
default: ke.BUTTON
|
|
86
87
|
},
|
|
87
88
|
// Material Icon names (rendered via <i class="material-icons">); a leading/
|
|
88
|
-
// trailing slot overrides. Icon-only buttons need ariaLabel.
|
|
89
|
+
// trailing slot overrides. Icon-only buttons (circle/square) need ariaLabel.
|
|
89
90
|
leftIcon: { type: String, default: "" },
|
|
90
91
|
rightIcon: { type: String, default: "" },
|
|
91
92
|
ariaLabel: { type: String, default: "" },
|
|
92
93
|
disabled: Boolean,
|
|
93
94
|
loading: Boolean,
|
|
95
|
+
// Round icon-only button (width === height, fully circular).
|
|
94
96
|
circle: Boolean,
|
|
95
|
-
|
|
97
|
+
// Flat 4px-radius icon-only button (the DS `*-square` sizes): symmetric padding
|
|
98
|
+
// per size, height === width.
|
|
99
|
+
square: Boolean,
|
|
100
|
+
// Toggle state: accent outline + fill; sets aria-pressed (DS `selected`).
|
|
101
|
+
selected: Boolean,
|
|
96
102
|
autofocus: Boolean
|
|
97
103
|
},
|
|
98
|
-
emits: [
|
|
99
|
-
setup(e, { emit:
|
|
100
|
-
const
|
|
101
|
-
() =>
|
|
104
|
+
emits: [ee],
|
|
105
|
+
setup(e, { emit: i }) {
|
|
106
|
+
const l = e, r = i, s = h(() => l.size === ie.SMALL ? 14 : 20), n = h(
|
|
107
|
+
() => l.variant === H.PRIMARY || l.variant === H.WARNING ? W.LIGHT : W.DARK
|
|
102
108
|
);
|
|
103
|
-
function c
|
|
104
|
-
|
|
109
|
+
function o(c) {
|
|
110
|
+
l.disabled || l.loading || r(ee, c);
|
|
105
111
|
}
|
|
106
|
-
return (
|
|
107
|
-
class:
|
|
112
|
+
return (c, b) => (t(), a("button", {
|
|
113
|
+
class: m(["ds-button", [
|
|
108
114
|
`ds-button--${e.variant}`,
|
|
109
115
|
`ds-button--${e.size}`,
|
|
110
116
|
{
|
|
111
117
|
"is-disabled": e.disabled || e.loading,
|
|
112
118
|
"is-loading": e.loading,
|
|
113
119
|
"is-circle": e.circle,
|
|
114
|
-
"is-
|
|
120
|
+
"is-square": e.square,
|
|
121
|
+
"is-selected": e.selected
|
|
115
122
|
}
|
|
116
123
|
]]),
|
|
117
124
|
type: e.nativeType,
|
|
@@ -119,33 +126,36 @@ const Y = {
|
|
|
119
126
|
autofocus: e.autofocus,
|
|
120
127
|
"aria-busy": e.loading || void 0,
|
|
121
128
|
"aria-disabled": e.disabled || e.loading || void 0,
|
|
129
|
+
"aria-pressed": e.selected || void 0,
|
|
122
130
|
"aria-label": e.ariaLabel || void 0,
|
|
123
|
-
onClick:
|
|
131
|
+
onClick: o
|
|
124
132
|
}, [
|
|
125
|
-
e.loading ? (t(), D(
|
|
133
|
+
e.loading ? (t(), D(S(Se), {
|
|
126
134
|
key: 0,
|
|
127
135
|
class: "ds-button__spinner",
|
|
128
|
-
size:
|
|
129
|
-
tone:
|
|
130
|
-
}, null, 8, ["size", "tone"])) :
|
|
131
|
-
!e.loading && (e.leftIcon ||
|
|
132
|
-
I(
|
|
133
|
-
|
|
136
|
+
size: s.value,
|
|
137
|
+
tone: n.value
|
|
138
|
+
}, null, 8, ["size", "tone"])) : u("", !0),
|
|
139
|
+
!e.loading && (e.leftIcon || c.$slots.leading) ? (t(), a("span", Te, [
|
|
140
|
+
I(c.$slots, "leading", {}, () => [
|
|
141
|
+
d("i", Ie, v(e.leftIcon), 1)
|
|
134
142
|
], !0)
|
|
135
|
-
])) :
|
|
136
|
-
!e.loading &&
|
|
137
|
-
I(
|
|
138
|
-
])) :
|
|
139
|
-
!e.loading && (e.rightIcon ||
|
|
140
|
-
I(
|
|
141
|
-
|
|
143
|
+
])) : u("", !0),
|
|
144
|
+
!e.loading && c.$slots.default ? (t(), a("span", Ce, [
|
|
145
|
+
I(c.$slots, "default", {}, void 0, !0)
|
|
146
|
+
])) : u("", !0),
|
|
147
|
+
!e.loading && (e.rightIcon || c.$slots.trailing) ? (t(), a("span", Ee, [
|
|
148
|
+
I(c.$slots, "trailing", {}, () => [
|
|
149
|
+
d("i", we, v(e.rightIcon), 1)
|
|
142
150
|
], !0)
|
|
143
|
-
])) :
|
|
151
|
+
])) : u("", !0)
|
|
144
152
|
], 10, $e));
|
|
145
153
|
}
|
|
146
|
-
}), K = /* @__PURE__ */
|
|
154
|
+
}), K = /* @__PURE__ */ T(Le, [["__scopeId", "data-v-2d17382d"]]), De = {
|
|
147
155
|
DEFAULT: "default",
|
|
148
156
|
// white bg, slate-tint border, muted text
|
|
157
|
+
GREY: "grey",
|
|
158
|
+
// alias of `default` — the DS app passes tone="grey" (ApiApp.jsx)
|
|
149
159
|
SUCCESS: "success",
|
|
150
160
|
// e.g. Verified
|
|
151
161
|
INFO: "info",
|
|
@@ -154,12 +164,12 @@ const Y = {
|
|
|
154
164
|
// e.g. Pending
|
|
155
165
|
ERROR: "error"
|
|
156
166
|
// e.g. Bounced
|
|
157
|
-
}, Ne = ["aria-label"], Re = /* @__PURE__ */
|
|
167
|
+
}, Ne = ["aria-label"], Re = /* @__PURE__ */ $({
|
|
158
168
|
__name: "DsTag",
|
|
159
169
|
props: {
|
|
160
170
|
tone: {
|
|
161
171
|
type: String,
|
|
162
|
-
default:
|
|
172
|
+
default: De.DEFAULT
|
|
163
173
|
},
|
|
164
174
|
// Semicircular sides (DS `rounded`): radius-round vs the default radius-control.
|
|
165
175
|
rounded: Boolean,
|
|
@@ -171,27 +181,27 @@ const Y = {
|
|
|
171
181
|
default: ""
|
|
172
182
|
}
|
|
173
183
|
},
|
|
174
|
-
setup(e, { emit:
|
|
175
|
-
const
|
|
176
|
-
return (
|
|
177
|
-
class:
|
|
184
|
+
setup(e, { emit: i }) {
|
|
185
|
+
const l = i;
|
|
186
|
+
return (r, s) => (t(), a("span", {
|
|
187
|
+
class: m(["ds-tag", [`ds-tag--${e.tone}`, { "is-rounded": e.rounded }]])
|
|
178
188
|
}, [
|
|
179
|
-
I(
|
|
189
|
+
I(r.$slots, "default", {}, void 0, !0),
|
|
180
190
|
e.closable ? (t(), a("button", {
|
|
181
191
|
key: 0,
|
|
182
192
|
type: "button",
|
|
183
193
|
class: "ds-tag__close",
|
|
184
194
|
"aria-label": e.closeLabel || void 0,
|
|
185
|
-
onClick:
|
|
186
|
-
}, [...
|
|
187
|
-
|
|
195
|
+
onClick: s[0] || (s[0] = (n) => l(S(C)))
|
|
196
|
+
}, [...s[1] || (s[1] = [
|
|
197
|
+
d("i", {
|
|
188
198
|
class: "material-icons",
|
|
189
199
|
"aria-hidden": "true"
|
|
190
200
|
}, "close", -1)
|
|
191
|
-
])], 8, Ne)) :
|
|
201
|
+
])], 8, Ne)) : u("", !0)
|
|
192
202
|
], 2));
|
|
193
203
|
}
|
|
194
|
-
}),
|
|
204
|
+
}), ea = /* @__PURE__ */ T(Re, [["__scopeId", "data-v-fc383bb9"]]), X = {
|
|
195
205
|
ACCENT: "accent",
|
|
196
206
|
// e.g. Work (purple)
|
|
197
207
|
GREY: "grey",
|
|
@@ -204,22 +214,22 @@ const Y = {
|
|
|
204
214
|
// coral
|
|
205
215
|
WARNING: "warning"
|
|
206
216
|
// orange
|
|
207
|
-
}, Be = /* @__PURE__ */
|
|
217
|
+
}, Be = /* @__PURE__ */ $({
|
|
208
218
|
__name: "DsBadge",
|
|
209
219
|
props: {
|
|
210
220
|
tone: {
|
|
211
221
|
type: String,
|
|
212
|
-
default:
|
|
222
|
+
default: X.ACCENT
|
|
213
223
|
}
|
|
214
224
|
},
|
|
215
225
|
setup(e) {
|
|
216
|
-
return (
|
|
217
|
-
class:
|
|
226
|
+
return (i, l) => (t(), a("span", {
|
|
227
|
+
class: m(["ds-badge", `ds-badge--${e.tone}`])
|
|
218
228
|
}, [
|
|
219
|
-
I(
|
|
229
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
220
230
|
], 2));
|
|
221
231
|
}
|
|
222
|
-
}), Ae = /* @__PURE__ */
|
|
232
|
+
}), Ae = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-f10a17a0"]]), Oe = ["src", "alt"], xe = ["aria-label"], Me = /* @__PURE__ */ $({
|
|
223
233
|
__name: "DsAvatar",
|
|
224
234
|
props: {
|
|
225
235
|
image: { type: String, default: "" },
|
|
@@ -232,45 +242,45 @@ const Y = {
|
|
|
232
242
|
alt: { type: String, default: "" }
|
|
233
243
|
},
|
|
234
244
|
setup(e) {
|
|
235
|
-
const
|
|
236
|
-
() =>
|
|
237
|
-
),
|
|
238
|
-
const
|
|
239
|
-
let
|
|
240
|
-
for (let f = 0; f <
|
|
241
|
-
|
|
245
|
+
const i = e, l = h(
|
|
246
|
+
() => i.firstName && i.lastName ? (i.firstName.charAt(0) + i.lastName.charAt(0)).toUpperCase() : ""
|
|
247
|
+
), r = h(() => i.alt || `${i.firstName} ${i.lastName}`.trim()), s = h(() => ({ width: `${i.size}px`, height: `${i.size}px` })), n = h(() => {
|
|
248
|
+
const o = i.uid || i.firstName + i.lastName;
|
|
249
|
+
let c = 0;
|
|
250
|
+
for (let f = 0; f < o.length; f++)
|
|
251
|
+
c = o.charCodeAt(f) + ((c << 5) - c), c = c & c;
|
|
242
252
|
const b = [0, 0, 0];
|
|
243
|
-
for (let f = 0; f < 3; f++) b[f] =
|
|
244
|
-
const
|
|
245
|
-
return { bg: `rgb(${b[0]}, ${b[1]}, ${b[2]})`, fg:
|
|
253
|
+
for (let f = 0; f < 3; f++) b[f] = c >> f * 8 & 255;
|
|
254
|
+
const y = b[0] >= 200 && b[1] >= 200 && b[2] >= 200;
|
|
255
|
+
return { bg: `rgb(${b[0]}, ${b[1]}, ${b[2]})`, fg: y ? "#323f4b" : "#fff" };
|
|
246
256
|
});
|
|
247
|
-
return (
|
|
257
|
+
return (o, c) => e.image ? (t(), a("img", {
|
|
248
258
|
key: 0,
|
|
249
|
-
class:
|
|
259
|
+
class: m(["ds-avatar", { "is-circular": e.circular }]),
|
|
250
260
|
src: e.image,
|
|
251
261
|
alt: e.alt,
|
|
252
|
-
style:
|
|
253
|
-
}, null, 14, Oe)) :
|
|
262
|
+
style: L(s.value)
|
|
263
|
+
}, null, 14, Oe)) : l.value ? (t(), a("div", {
|
|
254
264
|
key: 1,
|
|
255
|
-
class:
|
|
265
|
+
class: m(["ds-avatar ds-avatar--initials", { "is-circular": e.circular }]),
|
|
256
266
|
role: "img",
|
|
257
|
-
"aria-label":
|
|
258
|
-
style:
|
|
259
|
-
|
|
260
|
-
{ background:
|
|
267
|
+
"aria-label": r.value || void 0,
|
|
268
|
+
style: L([
|
|
269
|
+
s.value,
|
|
270
|
+
{ background: n.value.bg, color: n.value.fg, fontSize: `${Math.round(e.size * 0.4)}px` }
|
|
261
271
|
])
|
|
262
|
-
},
|
|
272
|
+
}, v(l.value), 15, xe)) : (t(), a("div", {
|
|
263
273
|
key: 2,
|
|
264
|
-
class:
|
|
265
|
-
style:
|
|
274
|
+
class: m(["ds-avatar ds-avatar--placeholder", { "is-circular": e.circular }]),
|
|
275
|
+
style: L(s.value),
|
|
266
276
|
"aria-hidden": "true"
|
|
267
277
|
}, null, 6));
|
|
268
278
|
}
|
|
269
|
-
}),
|
|
279
|
+
}), ta = /* @__PURE__ */ T(Me, [["__scopeId", "data-v-e965ed47"]]), le = {
|
|
270
280
|
LEFT: "left",
|
|
271
281
|
CENTER: "center",
|
|
272
282
|
RIGHT: "right"
|
|
273
|
-
},
|
|
283
|
+
}, Ue = { class: "ds-table" }, Ve = { class: "ds-table__wrapper" }, Fe = { key: 0 }, ze = ["colspan"], Ge = /* @__PURE__ */ $({
|
|
274
284
|
__name: "DsTable",
|
|
275
285
|
props: {
|
|
276
286
|
columns: {
|
|
@@ -289,59 +299,74 @@ const Y = {
|
|
|
289
299
|
highlightRowId: {
|
|
290
300
|
type: [String, Number],
|
|
291
301
|
default: null
|
|
302
|
+
},
|
|
303
|
+
// Optional fixed row height (number → px, or any CSS length). Rows are
|
|
304
|
+
// content-driven by default; when set, this pins the height AND truncates
|
|
305
|
+
// overflowing cell text with an ellipsis.
|
|
306
|
+
rowHeight: {
|
|
307
|
+
type: [String, Number],
|
|
308
|
+
default: null
|
|
292
309
|
}
|
|
293
310
|
},
|
|
294
311
|
setup(e) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
312
|
+
const i = e, l = h(
|
|
313
|
+
() => i.rowHeight == null ? void 0 : {
|
|
314
|
+
"--ds-table-row-height": typeof i.rowHeight == "number" ? `${i.rowHeight}px` : i.rowHeight
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
return (r, s) => (t(), a("div", Ue, [
|
|
318
|
+
d("div", Ve, [
|
|
319
|
+
d("table", {
|
|
320
|
+
class: m(["ds-table__table", { "has-row-height": e.rowHeight != null }]),
|
|
321
|
+
style: L(l.value)
|
|
322
|
+
}, [
|
|
323
|
+
d("thead", null, [
|
|
324
|
+
d("tr", null, [
|
|
325
|
+
(t(!0), a(A, null, V(e.columns, (n) => {
|
|
326
|
+
var o;
|
|
302
327
|
return t(), a("th", {
|
|
303
|
-
key:
|
|
304
|
-
class:
|
|
305
|
-
style:
|
|
306
|
-
},
|
|
328
|
+
key: n.key,
|
|
329
|
+
class: m(`ds-table__th--${(o = n.align) != null ? o : S(le).LEFT}`),
|
|
330
|
+
style: L(n.width ? { width: n.width } : void 0)
|
|
331
|
+
}, v(n.label), 7);
|
|
307
332
|
}), 128))
|
|
308
333
|
])
|
|
309
334
|
]),
|
|
310
|
-
|
|
311
|
-
e.rows.length === 0 ? (t(), a("tr",
|
|
312
|
-
|
|
335
|
+
d("tbody", null, [
|
|
336
|
+
e.rows.length === 0 ? (t(), a("tr", Fe, [
|
|
337
|
+
d("td", {
|
|
313
338
|
class: "ds-table__empty",
|
|
314
339
|
colspan: e.columns.length,
|
|
315
340
|
"data-testid": "ds-table-empty"
|
|
316
341
|
}, [
|
|
317
|
-
I(
|
|
318
|
-
|
|
342
|
+
I(r.$slots, "empty", {}, () => [
|
|
343
|
+
O(v(e.emptyMessage), 1)
|
|
319
344
|
], !0)
|
|
320
|
-
], 8,
|
|
321
|
-
])) :
|
|
322
|
-
(t(!0), a(
|
|
323
|
-
key:
|
|
324
|
-
class:
|
|
345
|
+
], 8, ze)
|
|
346
|
+
])) : u("", !0),
|
|
347
|
+
(t(!0), a(A, null, V(e.rows, (n) => (t(), a("tr", {
|
|
348
|
+
key: n.id,
|
|
349
|
+
class: m({ "is-highlighted": n.id === e.highlightRowId }),
|
|
325
350
|
"data-testid": "ds-table-row"
|
|
326
351
|
}, [
|
|
327
|
-
(t(!0), a(
|
|
328
|
-
var
|
|
352
|
+
(t(!0), a(A, null, V(e.columns, (o) => {
|
|
353
|
+
var c;
|
|
329
354
|
return t(), a("td", {
|
|
330
|
-
key:
|
|
331
|
-
class:
|
|
355
|
+
key: o.key,
|
|
356
|
+
class: m(`ds-table__td--${(c = o.align) != null ? c : S(le).LEFT}`)
|
|
332
357
|
}, [
|
|
333
|
-
I(
|
|
334
|
-
|
|
358
|
+
I(r.$slots, `cell-${o.key}`, { row: n }, () => [
|
|
359
|
+
O(v(n[o.key]), 1)
|
|
335
360
|
], !0)
|
|
336
361
|
], 2);
|
|
337
362
|
}), 128))
|
|
338
363
|
], 2))), 128))
|
|
339
364
|
])
|
|
340
|
-
])
|
|
365
|
+
], 6)
|
|
341
366
|
])
|
|
342
367
|
]));
|
|
343
368
|
}
|
|
344
|
-
}),
|
|
369
|
+
}), aa = /* @__PURE__ */ T(Ge, [["__scopeId", "data-v-45342363"]]), Y = {
|
|
345
370
|
TEXT: "text",
|
|
346
371
|
EMAIL: "email",
|
|
347
372
|
PASSWORD: "password",
|
|
@@ -349,26 +374,26 @@ const Y = {
|
|
|
349
374
|
NUMBER: "number",
|
|
350
375
|
SEARCH: "search",
|
|
351
376
|
URL: "url"
|
|
352
|
-
},
|
|
377
|
+
}, _e = {
|
|
353
378
|
SM: "sm",
|
|
354
379
|
// 36px
|
|
355
380
|
MD: "md"
|
|
356
381
|
// 48px
|
|
357
|
-
},
|
|
382
|
+
}, Pe = { class: "ds-input__wrap" }, pe = ["id", "type", "placeholder", "disabled", "name", "autocomplete", "aria-invalid", "aria-describedby"], He = {
|
|
358
383
|
key: 0,
|
|
359
384
|
class: "ds-input__suffix"
|
|
360
|
-
},
|
|
385
|
+
}, Ye = {
|
|
361
386
|
key: 0,
|
|
362
387
|
class: "material-icons ds-input__error-icon",
|
|
363
388
|
"aria-hidden": "true"
|
|
364
|
-
}, qe = ["aria-label", "aria-pressed"],
|
|
389
|
+
}, qe = ["aria-label", "aria-pressed"], We = {
|
|
365
390
|
class: "material-icons",
|
|
366
391
|
"aria-hidden": "true"
|
|
367
|
-
},
|
|
392
|
+
}, Ke = ["id"], Xe = /* @__PURE__ */ $({
|
|
368
393
|
__name: "DsInput",
|
|
369
|
-
props: /* @__PURE__ */
|
|
370
|
-
type: { type: String, default:
|
|
371
|
-
size: { type: String, default:
|
|
394
|
+
props: /* @__PURE__ */ U({
|
|
395
|
+
type: { type: String, default: Y.TEXT },
|
|
396
|
+
size: { type: String, default: _e.SM },
|
|
372
397
|
placeholder: { type: String, default: "" },
|
|
373
398
|
disabled: Boolean,
|
|
374
399
|
error: Boolean,
|
|
@@ -383,21 +408,21 @@ const Y = {
|
|
|
383
408
|
modelValue: { default: "" },
|
|
384
409
|
modelModifiers: {}
|
|
385
410
|
}),
|
|
386
|
-
emits: /* @__PURE__ */
|
|
387
|
-
setup(e, { emit:
|
|
388
|
-
const
|
|
389
|
-
() =>
|
|
390
|
-
),
|
|
391
|
-
() => !!
|
|
411
|
+
emits: /* @__PURE__ */ U([F, z], ["update:modelValue"]),
|
|
412
|
+
setup(e, { emit: i }) {
|
|
413
|
+
const l = Q(e, "modelValue"), r = e, s = i, n = oe(), o = R(!1), c = h(() => r.type === Y.PASSWORD), b = h(
|
|
414
|
+
() => c.value && o.value ? Y.TEXT : r.type
|
|
415
|
+
), y = h(
|
|
416
|
+
() => !!n.suffix || r.error && r.showErrorIcon || c.value
|
|
392
417
|
);
|
|
393
|
-
return (f,
|
|
394
|
-
class:
|
|
418
|
+
return (f, g) => (t(), a("div", {
|
|
419
|
+
class: m(["ds-input", [`ds-input--${e.size}`, { "is-error": e.error, "is-disabled": e.disabled }]])
|
|
395
420
|
}, [
|
|
396
|
-
|
|
397
|
-
|
|
421
|
+
d("div", Pe, [
|
|
422
|
+
Z(d("input", {
|
|
398
423
|
id: e.id || void 0,
|
|
399
|
-
"onUpdate:modelValue":
|
|
400
|
-
class:
|
|
424
|
+
"onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
|
|
425
|
+
class: m(["ds-input__control", { "has-suffix": y.value }]),
|
|
401
426
|
type: b.value,
|
|
402
427
|
placeholder: e.placeholder,
|
|
403
428
|
disabled: e.disabled,
|
|
@@ -405,35 +430,35 @@ const Y = {
|
|
|
405
430
|
autocomplete: e.autocomplete || void 0,
|
|
406
431
|
"aria-invalid": e.error || void 0,
|
|
407
432
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
408
|
-
onFocus:
|
|
409
|
-
onBlur:
|
|
410
|
-
}, null, 42,
|
|
411
|
-
[
|
|
433
|
+
onFocus: g[1] || (g[1] = (k) => s(S(F), k)),
|
|
434
|
+
onBlur: g[2] || (g[2] = (k) => s(S(z), k))
|
|
435
|
+
}, null, 42, pe), [
|
|
436
|
+
[ye, l.value]
|
|
412
437
|
]),
|
|
413
|
-
|
|
438
|
+
y.value ? (t(), a("div", He, [
|
|
414
439
|
I(f.$slots, "suffix", {}, void 0, !0),
|
|
415
|
-
e.error && e.showErrorIcon ? (t(), a("i",
|
|
440
|
+
e.error && e.showErrorIcon ? (t(), a("i", Ye, "warning")) : c.value ? (t(), a("button", {
|
|
416
441
|
key: 1,
|
|
417
442
|
type: "button",
|
|
418
443
|
class: "ds-input__toggle",
|
|
419
444
|
"aria-label": e.toggleLabel || void 0,
|
|
420
|
-
"aria-pressed":
|
|
421
|
-
onClick:
|
|
445
|
+
"aria-pressed": o.value,
|
|
446
|
+
onClick: g[3] || (g[3] = (k) => o.value = !o.value)
|
|
422
447
|
}, [
|
|
423
|
-
|
|
424
|
-
], 8, qe)) :
|
|
425
|
-
])) :
|
|
448
|
+
d("i", We, v(o.value ? "visibility" : "visibility_off"), 1)
|
|
449
|
+
], 8, qe)) : u("", !0)
|
|
450
|
+
])) : u("", !0)
|
|
426
451
|
]),
|
|
427
452
|
e.error && e.errorMessage ? (t(), a("p", {
|
|
428
453
|
key: 0,
|
|
429
454
|
id: e.id ? `${e.id}-error` : void 0,
|
|
430
455
|
class: "ds-input__error"
|
|
431
|
-
},
|
|
456
|
+
}, v(e.errorMessage), 9, Ke)) : u("", !0)
|
|
432
457
|
], 2));
|
|
433
458
|
}
|
|
434
|
-
}), ia = /* @__PURE__ */
|
|
459
|
+
}), ia = /* @__PURE__ */ T(Xe, [["__scopeId", "data-v-fb36e573"]]), Qe = ["id", "placeholder", "rows", "disabled", "name", "aria-invalid", "aria-describedby"], Ze = ["id"], je = /* @__PURE__ */ $({
|
|
435
460
|
__name: "DsTextarea",
|
|
436
|
-
props: /* @__PURE__ */
|
|
461
|
+
props: /* @__PURE__ */ U({
|
|
437
462
|
placeholder: { type: String, default: "" },
|
|
438
463
|
rows: { type: Number, default: 4 },
|
|
439
464
|
disabled: Boolean,
|
|
@@ -445,15 +470,15 @@ const Y = {
|
|
|
445
470
|
modelValue: { default: "" },
|
|
446
471
|
modelModifiers: {}
|
|
447
472
|
}),
|
|
448
|
-
emits: /* @__PURE__ */
|
|
449
|
-
setup(e, { emit:
|
|
450
|
-
const
|
|
451
|
-
return (
|
|
452
|
-
class:
|
|
473
|
+
emits: /* @__PURE__ */ U([F, z], ["update:modelValue"]),
|
|
474
|
+
setup(e, { emit: i }) {
|
|
475
|
+
const l = Q(e, "modelValue"), r = i;
|
|
476
|
+
return (s, n) => (t(), a("div", {
|
|
477
|
+
class: m(["ds-textarea", { "is-error": e.error, "is-disabled": e.disabled }])
|
|
453
478
|
}, [
|
|
454
|
-
|
|
479
|
+
Z(d("textarea", {
|
|
455
480
|
id: e.id || void 0,
|
|
456
|
-
"onUpdate:modelValue":
|
|
481
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o),
|
|
457
482
|
class: "ds-textarea__control",
|
|
458
483
|
placeholder: e.placeholder,
|
|
459
484
|
rows: e.rows,
|
|
@@ -461,38 +486,38 @@ const Y = {
|
|
|
461
486
|
name: e.name || void 0,
|
|
462
487
|
"aria-invalid": e.error || void 0,
|
|
463
488
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
464
|
-
onFocus:
|
|
465
|
-
onBlur:
|
|
466
|
-
}, null, 40,
|
|
467
|
-
[
|
|
489
|
+
onFocus: n[1] || (n[1] = (o) => r(S(F), o)),
|
|
490
|
+
onBlur: n[2] || (n[2] = (o) => r(S(z), o))
|
|
491
|
+
}, null, 40, Qe), [
|
|
492
|
+
[ve, l.value]
|
|
468
493
|
]),
|
|
469
494
|
e.error && e.errorMessage ? (t(), a("p", {
|
|
470
495
|
key: 0,
|
|
471
496
|
id: e.id ? `${e.id}-error` : void 0,
|
|
472
497
|
class: "ds-textarea__error"
|
|
473
|
-
},
|
|
498
|
+
}, v(e.errorMessage), 9, Ze)) : u("", !0)
|
|
474
499
|
], 2));
|
|
475
500
|
}
|
|
476
|
-
}),
|
|
501
|
+
}), la = /* @__PURE__ */ T(je, [["__scopeId", "data-v-54fc312a"]]), Je = ["disabled", "name"], et = {
|
|
477
502
|
key: 0,
|
|
478
503
|
class: "ds-checkbox__mark",
|
|
479
504
|
viewBox: "0 0 16 16",
|
|
480
505
|
fill: "none",
|
|
481
506
|
stroke: "currentColor",
|
|
482
507
|
"stroke-width": "2.5"
|
|
483
|
-
},
|
|
508
|
+
}, tt = {
|
|
484
509
|
key: 1,
|
|
485
510
|
class: "ds-checkbox__mark",
|
|
486
511
|
viewBox: "0 0 16 16",
|
|
487
512
|
fill: "none",
|
|
488
513
|
stroke: "currentColor",
|
|
489
514
|
"stroke-width": "2.5"
|
|
490
|
-
},
|
|
515
|
+
}, at = {
|
|
491
516
|
key: 0,
|
|
492
517
|
class: "ds-checkbox__label"
|
|
493
|
-
}, it = /* @__PURE__ */
|
|
518
|
+
}, it = /* @__PURE__ */ $({
|
|
494
519
|
__name: "DsCheckbox",
|
|
495
|
-
props: /* @__PURE__ */
|
|
520
|
+
props: /* @__PURE__ */ U({
|
|
496
521
|
indeterminate: Boolean,
|
|
497
522
|
disabled: Boolean,
|
|
498
523
|
name: { type: String, default: "" },
|
|
@@ -504,73 +529,73 @@ const Y = {
|
|
|
504
529
|
}),
|
|
505
530
|
emits: ["update:modelValue"],
|
|
506
531
|
setup(e) {
|
|
507
|
-
const
|
|
508
|
-
function
|
|
509
|
-
|
|
532
|
+
const i = Q(e, "modelValue"), l = e, r = R(null);
|
|
533
|
+
function s() {
|
|
534
|
+
r.value && (r.value.indeterminate = l.indeterminate);
|
|
510
535
|
}
|
|
511
|
-
return
|
|
512
|
-
class:
|
|
536
|
+
return se(s), de(() => l.indeterminate, s), (n, o) => (t(), a("label", {
|
|
537
|
+
class: m(["ds-checkbox", { "is-disabled": e.disabled }])
|
|
513
538
|
}, [
|
|
514
|
-
|
|
539
|
+
Z(d("input", {
|
|
515
540
|
ref_key: "inputRef",
|
|
516
|
-
ref:
|
|
517
|
-
"onUpdate:modelValue":
|
|
541
|
+
ref: r,
|
|
542
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => i.value = c),
|
|
518
543
|
type: "checkbox",
|
|
519
544
|
class: "ds-checkbox__native",
|
|
520
545
|
disabled: e.disabled,
|
|
521
546
|
name: e.name || void 0
|
|
522
|
-
}, null, 8,
|
|
523
|
-
[
|
|
547
|
+
}, null, 8, Je), [
|
|
548
|
+
[be, i.value]
|
|
524
549
|
]),
|
|
525
|
-
|
|
526
|
-
class:
|
|
550
|
+
d("span", {
|
|
551
|
+
class: m(["ds-checkbox__box", { "is-active": i.value || e.indeterminate }]),
|
|
527
552
|
"aria-hidden": "true"
|
|
528
553
|
}, [
|
|
529
|
-
e.indeterminate ? (t(), a("svg",
|
|
530
|
-
|
|
554
|
+
e.indeterminate ? (t(), a("svg", et, [...o[1] || (o[1] = [
|
|
555
|
+
d("line", {
|
|
531
556
|
x1: "4",
|
|
532
557
|
y1: "8",
|
|
533
558
|
x2: "12",
|
|
534
559
|
y2: "8"
|
|
535
560
|
}, null, -1)
|
|
536
|
-
])])) :
|
|
537
|
-
|
|
538
|
-
])])) :
|
|
561
|
+
])])) : i.value ? (t(), a("svg", tt, [...o[2] || (o[2] = [
|
|
562
|
+
d("path", { d: "M3.5 8.5l3 3 6-6" }, null, -1)
|
|
563
|
+
])])) : u("", !0)
|
|
539
564
|
], 2),
|
|
540
|
-
|
|
541
|
-
I(
|
|
542
|
-
|
|
565
|
+
n.$slots.default || e.label ? (t(), a("span", at, [
|
|
566
|
+
I(n.$slots, "default", {}, () => [
|
|
567
|
+
O(v(e.label), 1)
|
|
543
568
|
], !0)
|
|
544
|
-
])) :
|
|
569
|
+
])) : u("", !0)
|
|
545
570
|
], 2));
|
|
546
571
|
}
|
|
547
|
-
}),
|
|
572
|
+
}), na = /* @__PURE__ */ T(it, [["__scopeId", "data-v-8ccdf847"]]), lt = {
|
|
548
573
|
SUCCESS: "success",
|
|
549
574
|
INFO: "info",
|
|
550
575
|
WARNING: "warning",
|
|
551
576
|
ERROR: "error"
|
|
552
|
-
},
|
|
577
|
+
}, nt = {
|
|
553
578
|
LIGHT: "light",
|
|
554
579
|
// tinted: family tint bg + mid border + shadow text
|
|
555
580
|
DARK: "dark"
|
|
556
581
|
// solid: family shadow bg + white text
|
|
557
|
-
},
|
|
582
|
+
}, ot = {
|
|
558
583
|
success: "check_circle",
|
|
559
584
|
info: "info",
|
|
560
585
|
warning: "warning",
|
|
561
586
|
error: "error"
|
|
562
|
-
},
|
|
587
|
+
}, st = {
|
|
563
588
|
key: 0,
|
|
564
589
|
class: "material-icons ds-alert__icon",
|
|
565
590
|
"aria-hidden": "true"
|
|
566
|
-
},
|
|
591
|
+
}, dt = { class: "ds-alert__content" }, rt = {
|
|
567
592
|
key: 1,
|
|
568
593
|
class: "ds-alert__body"
|
|
569
|
-
},
|
|
594
|
+
}, ct = ["aria-label"], ut = /* @__PURE__ */ $({
|
|
570
595
|
__name: "DsAlert",
|
|
571
596
|
props: {
|
|
572
|
-
type: { type: String, default:
|
|
573
|
-
effect: { type: String, default:
|
|
597
|
+
type: { type: String, default: lt.INFO },
|
|
598
|
+
effect: { type: String, default: nt.LIGHT },
|
|
574
599
|
title: { type: String, default: "" },
|
|
575
600
|
description: { type: String, default: "" },
|
|
576
601
|
showIcon: Boolean,
|
|
@@ -579,27 +604,27 @@ const Y = {
|
|
|
579
604
|
closeLabel: { type: String, default: "" }
|
|
580
605
|
},
|
|
581
606
|
emits: [C],
|
|
582
|
-
setup(e, { emit:
|
|
583
|
-
const
|
|
607
|
+
setup(e, { emit: i }) {
|
|
608
|
+
const l = e, r = i, s = oe(), n = R(!0), o = h(() => ot[l.type]), c = h(() => !!s.default || l.description.length > 0);
|
|
584
609
|
function b() {
|
|
585
|
-
|
|
610
|
+
n.value = !1, r(C);
|
|
586
611
|
}
|
|
587
|
-
return (
|
|
612
|
+
return (y, f) => n.value ? (t(), a("div", {
|
|
588
613
|
key: 0,
|
|
589
|
-
class:
|
|
614
|
+
class: m(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
590
615
|
role: "alert"
|
|
591
616
|
}, [
|
|
592
|
-
e.showIcon ? (t(), a("i",
|
|
593
|
-
|
|
617
|
+
e.showIcon ? (t(), a("i", st, v(o.value), 1)) : u("", !0),
|
|
618
|
+
d("div", dt, [
|
|
594
619
|
e.title ? (t(), a("div", {
|
|
595
620
|
key: 0,
|
|
596
|
-
class:
|
|
597
|
-
},
|
|
598
|
-
|
|
599
|
-
I(
|
|
600
|
-
|
|
621
|
+
class: m(["ds-alert__title", { "has-body": c.value }])
|
|
622
|
+
}, v(e.title), 3)) : u("", !0),
|
|
623
|
+
c.value ? (t(), a("div", rt, [
|
|
624
|
+
I(y.$slots, "default", {}, () => [
|
|
625
|
+
O(v(e.description), 1)
|
|
601
626
|
], !0)
|
|
602
|
-
])) :
|
|
627
|
+
])) : u("", !0)
|
|
603
628
|
]),
|
|
604
629
|
e.closable ? (t(), a("button", {
|
|
605
630
|
key: 1,
|
|
@@ -608,100 +633,128 @@ const Y = {
|
|
|
608
633
|
"aria-label": e.closeLabel || void 0,
|
|
609
634
|
onClick: b
|
|
610
635
|
}, [...f[0] || (f[0] = [
|
|
611
|
-
|
|
636
|
+
d("i", {
|
|
612
637
|
class: "material-icons",
|
|
613
638
|
"aria-hidden": "true"
|
|
614
639
|
}, "close", -1)
|
|
615
|
-
])], 8,
|
|
616
|
-
], 2)) :
|
|
640
|
+
])], 8, ct)) : u("", !0)
|
|
641
|
+
], 2)) : u("", !0);
|
|
617
642
|
}
|
|
618
|
-
}),
|
|
643
|
+
}), oa = /* @__PURE__ */ T(ut, [["__scopeId", "data-v-03bbe700"]]), ft = {
|
|
644
|
+
SUCCESS: "success",
|
|
619
645
|
INFO: "info",
|
|
620
646
|
WARNING: "warning",
|
|
621
647
|
ERROR: "error"
|
|
622
|
-
},
|
|
648
|
+
}, yt = {
|
|
623
649
|
TOP_LEFT: "top-left",
|
|
624
650
|
TOP_RIGHT: "top-right",
|
|
625
651
|
BOTTOM_LEFT: "bottom-left",
|
|
626
652
|
BOTTOM_RIGHT: "bottom-right"
|
|
627
|
-
},
|
|
653
|
+
}, vt = {
|
|
654
|
+
success: "check_circle",
|
|
628
655
|
info: "mode_edit",
|
|
629
656
|
warning: "warning",
|
|
630
|
-
error: "
|
|
631
|
-
},
|
|
657
|
+
error: "error"
|
|
658
|
+
}, bt = {
|
|
632
659
|
class: "material-icons ds-notification__icon",
|
|
633
660
|
"aria-hidden": "true"
|
|
634
|
-
},
|
|
661
|
+
}, mt = { class: "ds-notification__content" }, gt = {
|
|
635
662
|
key: 0,
|
|
636
663
|
class: "ds-notification__title"
|
|
637
|
-
},
|
|
664
|
+
}, ht = {
|
|
638
665
|
key: 1,
|
|
639
666
|
class: "ds-notification__desc"
|
|
640
|
-
},
|
|
667
|
+
}, St = ["href"], kt = ["aria-label"], $t = /* @__PURE__ */ $({
|
|
641
668
|
__name: "DsNotification",
|
|
642
669
|
props: {
|
|
643
|
-
type: { type: String, default:
|
|
670
|
+
type: { type: String, default: ft.INFO },
|
|
644
671
|
position: {
|
|
645
672
|
type: String,
|
|
646
|
-
default:
|
|
673
|
+
default: yt.BOTTOM_LEFT
|
|
647
674
|
},
|
|
648
675
|
title: { type: String, default: "" },
|
|
649
676
|
description: { type: String, default: "" },
|
|
650
677
|
linkTitle: { type: String, default: "" },
|
|
651
678
|
link: { type: String, default: "" },
|
|
652
679
|
showClose: { type: Boolean, default: !0 },
|
|
653
|
-
closeLabel: { type: String, default: "" }
|
|
680
|
+
closeLabel: { type: String, default: "" },
|
|
681
|
+
// Auto-dismiss delay in ms (DS default 3500). 0 disables it. The timer pauses
|
|
682
|
+
// while the pointer is over the card and resumes with the remaining time.
|
|
683
|
+
duration: { type: Number, default: 3500 }
|
|
654
684
|
},
|
|
655
685
|
emits: [C],
|
|
656
|
-
setup(e, { emit:
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
|
|
686
|
+
setup(e, { emit: i }) {
|
|
687
|
+
const l = e, r = i, s = R(!0), n = h(() => vt[l.type]);
|
|
688
|
+
let o, c = 0, b = l.duration;
|
|
689
|
+
function y() {
|
|
690
|
+
o && (clearTimeout(o), o = void 0);
|
|
660
691
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}, y(e.linkTitle), 9, kt)) : r("", !0)
|
|
681
|
-
]),
|
|
682
|
-
e.showClose ? (t(), a("button", {
|
|
692
|
+
function f(x) {
|
|
693
|
+
y(), !(l.duration <= 0 || !s.value) && (c = Date.now(), o = setTimeout(N, x));
|
|
694
|
+
}
|
|
695
|
+
function g() {
|
|
696
|
+
o && (b -= Date.now() - c, y());
|
|
697
|
+
}
|
|
698
|
+
function k() {
|
|
699
|
+
f(b > 0 ? b : l.duration);
|
|
700
|
+
}
|
|
701
|
+
function N() {
|
|
702
|
+
y(), s.value = !1, r(C);
|
|
703
|
+
}
|
|
704
|
+
return se(() => f(l.duration)), j(y), (x, M) => (t(), D(re, { to: "body" }, [
|
|
705
|
+
p(ce, {
|
|
706
|
+
name: "ds-notification",
|
|
707
|
+
appear: ""
|
|
708
|
+
}, {
|
|
709
|
+
default: J(() => [
|
|
710
|
+
s.value ? (t(), a("div", {
|
|
683
711
|
key: 0,
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
"
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
712
|
+
class: m(["ds-notification", `ds-notification--${e.position}`])
|
|
713
|
+
}, [
|
|
714
|
+
d("div", {
|
|
715
|
+
class: m(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
716
|
+
role: "alert",
|
|
717
|
+
onMouseenter: g,
|
|
718
|
+
onMouseleave: k
|
|
719
|
+
}, [
|
|
720
|
+
d("i", bt, v(n.value), 1),
|
|
721
|
+
d("div", mt, [
|
|
722
|
+
e.title ? (t(), a("span", gt, v(e.title), 1)) : u("", !0),
|
|
723
|
+
e.description ? (t(), a("p", ht, v(e.description), 1)) : u("", !0),
|
|
724
|
+
e.linkTitle ? (t(), a("a", {
|
|
725
|
+
key: 2,
|
|
726
|
+
class: "ds-notification__link",
|
|
727
|
+
href: e.link || void 0,
|
|
728
|
+
target: "_blank",
|
|
729
|
+
rel: "noreferrer"
|
|
730
|
+
}, v(e.linkTitle), 9, St)) : u("", !0)
|
|
731
|
+
]),
|
|
732
|
+
e.showClose ? (t(), a("button", {
|
|
733
|
+
key: 0,
|
|
734
|
+
type: "button",
|
|
735
|
+
class: "ds-notification__close",
|
|
736
|
+
"aria-label": e.closeLabel || void 0,
|
|
737
|
+
onClick: N
|
|
738
|
+
}, [...M[0] || (M[0] = [
|
|
739
|
+
d("i", {
|
|
740
|
+
class: "material-icons",
|
|
741
|
+
"aria-hidden": "true"
|
|
742
|
+
}, "close", -1)
|
|
743
|
+
])], 8, kt)) : u("", !0)
|
|
744
|
+
], 34)
|
|
745
|
+
], 2)) : u("", !0)
|
|
746
|
+
]),
|
|
747
|
+
_: 1
|
|
748
|
+
})
|
|
696
749
|
]));
|
|
697
750
|
}
|
|
698
|
-
}),
|
|
751
|
+
}), sa = /* @__PURE__ */ T($t, [["__scopeId", "data-v-dff620c6"]]), Tt = ["aria-label"], It = {
|
|
699
752
|
key: 0,
|
|
700
753
|
class: "ds-modal__header"
|
|
701
|
-
},
|
|
754
|
+
}, Ct = { class: "ds-modal__title" }, Et = { class: "ds-modal__body" }, wt = {
|
|
702
755
|
key: 1,
|
|
703
756
|
class: "ds-modal__footer"
|
|
704
|
-
},
|
|
757
|
+
}, Lt = /* @__PURE__ */ $({
|
|
705
758
|
__name: "DsModal",
|
|
706
759
|
props: {
|
|
707
760
|
open: Boolean,
|
|
@@ -712,88 +765,93 @@ const Y = {
|
|
|
712
765
|
closeLabel: { type: String, default: "" }
|
|
713
766
|
},
|
|
714
767
|
emits: [C],
|
|
715
|
-
setup(e, { emit:
|
|
716
|
-
const
|
|
717
|
-
let
|
|
718
|
-
function
|
|
719
|
-
|
|
768
|
+
setup(e, { emit: i }) {
|
|
769
|
+
const l = e, r = i, s = R(null);
|
|
770
|
+
let n = null;
|
|
771
|
+
function o() {
|
|
772
|
+
l.closeOnBackdrop && r(C);
|
|
720
773
|
}
|
|
721
|
-
function
|
|
722
|
-
return
|
|
774
|
+
function c() {
|
|
775
|
+
return s.value ? Array.from(s.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
723
776
|
(f) => f.offsetParent !== null
|
|
724
777
|
) : [];
|
|
725
778
|
}
|
|
726
|
-
function b(
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
729
|
-
|
|
779
|
+
function b(y) {
|
|
780
|
+
var N;
|
|
781
|
+
if (y.key === "Escape") {
|
|
782
|
+
r(C);
|
|
730
783
|
return;
|
|
731
784
|
}
|
|
732
|
-
if (
|
|
733
|
-
const f =
|
|
785
|
+
if (y.key !== "Tab") return;
|
|
786
|
+
const f = c();
|
|
734
787
|
if (f.length === 0) {
|
|
735
|
-
|
|
788
|
+
y.preventDefault(), (N = s.value) == null || N.focus();
|
|
736
789
|
return;
|
|
737
790
|
}
|
|
738
|
-
const
|
|
739
|
-
|
|
791
|
+
const g = f[0], k = f[f.length - 1];
|
|
792
|
+
y.shiftKey && document.activeElement === g ? (y.preventDefault(), k.focus()) : !y.shiftKey && document.activeElement === k && (y.preventDefault(), g.focus());
|
|
740
793
|
}
|
|
741
|
-
return
|
|
742
|
-
() =>
|
|
743
|
-
(
|
|
794
|
+
return de(
|
|
795
|
+
() => l.open,
|
|
796
|
+
(y) => {
|
|
744
797
|
var f;
|
|
745
|
-
typeof document != "undefined" && (
|
|
746
|
-
var
|
|
747
|
-
return (
|
|
748
|
-
})) : (document.removeEventListener("keydown", b), document.body.style.overflow = "", (f =
|
|
798
|
+
typeof document != "undefined" && (y ? (n = document.activeElement, document.addEventListener("keydown", b), document.body.style.overflow = "hidden", me(() => {
|
|
799
|
+
var g, k;
|
|
800
|
+
return (k = (g = c()[0]) != null ? g : s.value) == null ? void 0 : k.focus();
|
|
801
|
+
})) : (document.removeEventListener("keydown", b), document.body.style.overflow = "", (f = n == null ? void 0 : n.focus) == null || f.call(n)));
|
|
749
802
|
},
|
|
750
803
|
{ immediate: !0 }
|
|
751
|
-
),
|
|
804
|
+
), j(() => {
|
|
752
805
|
typeof document != "undefined" && (document.removeEventListener("keydown", b), document.body.style.overflow = "");
|
|
753
|
-
}), (
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
806
|
+
}), (y, f) => (t(), D(re, { to: "body" }, [
|
|
807
|
+
p(ce, { name: "ds-modal" }, {
|
|
808
|
+
default: J(() => [
|
|
809
|
+
e.open ? (t(), a("div", {
|
|
810
|
+
key: 0,
|
|
811
|
+
class: "ds-modal",
|
|
812
|
+
onClick: o
|
|
813
|
+
}, [
|
|
814
|
+
d("div", {
|
|
815
|
+
ref_key: "dialogRef",
|
|
816
|
+
ref: s,
|
|
817
|
+
class: "ds-modal__dialog",
|
|
818
|
+
role: "dialog",
|
|
819
|
+
"aria-modal": "true",
|
|
820
|
+
"aria-label": e.title || "dialog",
|
|
821
|
+
tabindex: "-1",
|
|
822
|
+
style: L({ width: e.width }),
|
|
823
|
+
onClick: f[1] || (f[1] = ue(() => {
|
|
824
|
+
}, ["stop"]))
|
|
825
|
+
}, [
|
|
826
|
+
e.title || e.showClose ? (t(), a("div", It, [
|
|
827
|
+
d("span", Ct, v(e.title), 1),
|
|
828
|
+
e.showClose ? (t(), D(S(K), {
|
|
829
|
+
key: 0,
|
|
830
|
+
variant: "tertiary",
|
|
831
|
+
circle: "",
|
|
832
|
+
"left-icon": "close",
|
|
833
|
+
"aria-label": e.closeLabel || void 0,
|
|
834
|
+
onClick: f[0] || (f[0] = (g) => r(S(C)))
|
|
835
|
+
}, null, 8, ["aria-label"])) : u("", !0)
|
|
836
|
+
])) : u("", !0),
|
|
837
|
+
d("div", Et, [
|
|
838
|
+
I(y.$slots, "default", {}, void 0, !0)
|
|
839
|
+
]),
|
|
840
|
+
y.$slots.footer ? (t(), a("div", wt, [
|
|
841
|
+
I(y.$slots, "footer", {}, void 0, !0)
|
|
842
|
+
])) : u("", !0)
|
|
843
|
+
], 12, Tt)
|
|
844
|
+
])) : u("", !0)
|
|
845
|
+
]),
|
|
846
|
+
_: 3
|
|
847
|
+
})
|
|
790
848
|
]));
|
|
791
849
|
}
|
|
792
|
-
}),
|
|
850
|
+
}), da = /* @__PURE__ */ T(Lt, [["__scopeId", "data-v-19866588"]]), q = {
|
|
793
851
|
VERIFIED: "verified",
|
|
794
852
|
UNVERIFIED: "unverified",
|
|
795
853
|
NEW: "new"
|
|
796
|
-
},
|
|
854
|
+
}, Dt = ["aria-label", "title"], Nt = /* @__PURE__ */ $({
|
|
797
855
|
__name: "DsVerificationIcon",
|
|
798
856
|
props: {
|
|
799
857
|
// true = verified · false = not verified · null/undefined = newly found.
|
|
@@ -818,38 +876,38 @@ const Y = {
|
|
|
818
876
|
}
|
|
819
877
|
},
|
|
820
878
|
setup(e) {
|
|
821
|
-
const
|
|
822
|
-
state:
|
|
879
|
+
const i = e, l = h(() => i.verified === null || i.verified === void 0 ? {
|
|
880
|
+
state: q.NEW,
|
|
823
881
|
icon: "new_releases",
|
|
824
882
|
label: "Newly found"
|
|
825
|
-
} :
|
|
826
|
-
state:
|
|
883
|
+
} : i.verified ? {
|
|
884
|
+
state: q.VERIFIED,
|
|
827
885
|
icon: "verified",
|
|
828
886
|
label: "Verified"
|
|
829
887
|
} : {
|
|
830
|
-
state:
|
|
831
|
-
icon:
|
|
888
|
+
state: q.UNVERIFIED,
|
|
889
|
+
icon: i.isContactData ? "dangerous" : "error",
|
|
832
890
|
label: "Not verified"
|
|
833
891
|
});
|
|
834
|
-
return (
|
|
835
|
-
class:
|
|
836
|
-
`ds-verification-icon--${
|
|
892
|
+
return (r, s) => (t(), a("i", {
|
|
893
|
+
class: m(["material-icons ds-verification-icon", [
|
|
894
|
+
`ds-verification-icon--${l.value.state}`,
|
|
837
895
|
{ "ds-verification-icon--email": e.isContactData }
|
|
838
896
|
]]),
|
|
839
|
-
style:
|
|
897
|
+
style: L({ fontSize: `${e.size}px` }),
|
|
840
898
|
role: "img",
|
|
841
|
-
"aria-label": e.label ||
|
|
842
|
-
title: e.label ||
|
|
899
|
+
"aria-label": e.label || l.value.label,
|
|
900
|
+
title: e.label || l.value.label
|
|
843
901
|
}, [
|
|
844
|
-
I(
|
|
845
|
-
|
|
902
|
+
I(r.$slots, "default", {}, () => [
|
|
903
|
+
O(v(l.value.icon), 1)
|
|
846
904
|
], !0)
|
|
847
|
-
], 14,
|
|
905
|
+
], 14, Dt));
|
|
848
906
|
}
|
|
849
|
-
}),
|
|
907
|
+
}), Rt = /* @__PURE__ */ T(Nt, [["__scopeId", "data-v-0fd84040"]]), Bt = ["title"], At = { class: "ds-contact-value__marquee" }, Ot = { class: "ds-contact-value__actions" }, xt = ["aria-label", "title"], Mt = {
|
|
850
908
|
class: "material-icons",
|
|
851
909
|
"aria-hidden": "true"
|
|
852
|
-
}, Ut = ["aria-label", "aria-pressed", "title"],
|
|
910
|
+
}, Ut = ["aria-label", "aria-pressed", "title"], Vt = ["aria-label", "aria-pressed", "title"], Ft = /* @__PURE__ */ $({
|
|
853
911
|
__name: "DsContactValue",
|
|
854
912
|
props: {
|
|
855
913
|
value: { type: String, required: !0 },
|
|
@@ -865,106 +923,106 @@ const Y = {
|
|
|
865
923
|
correctLabel: { type: String, default: "Correct" },
|
|
866
924
|
incorrectLabel: { type: String, default: "Incorrect" }
|
|
867
925
|
},
|
|
868
|
-
emits: [
|
|
869
|
-
setup(e, { emit:
|
|
870
|
-
const
|
|
871
|
-
let
|
|
872
|
-
function
|
|
873
|
-
typeof navigator != "undefined" && navigator.clipboard && navigator.clipboard.writeText(
|
|
874
|
-
}),
|
|
875
|
-
|
|
876
|
-
}, 1200),
|
|
926
|
+
emits: [G, _, P],
|
|
927
|
+
setup(e, { emit: i }) {
|
|
928
|
+
const l = e, r = i, s = R(!1);
|
|
929
|
+
let n;
|
|
930
|
+
function o() {
|
|
931
|
+
typeof navigator != "undefined" && navigator.clipboard && navigator.clipboard.writeText(l.value).catch(() => {
|
|
932
|
+
}), s.value = !0, clearTimeout(n), n = setTimeout(() => {
|
|
933
|
+
s.value = !1;
|
|
934
|
+
}, 1200), r(G, l.value);
|
|
877
935
|
}
|
|
878
|
-
function
|
|
879
|
-
|
|
936
|
+
function c() {
|
|
937
|
+
r(_);
|
|
880
938
|
}
|
|
881
939
|
function b() {
|
|
882
|
-
|
|
940
|
+
r(P);
|
|
883
941
|
}
|
|
884
|
-
return
|
|
885
|
-
class:
|
|
942
|
+
return j(() => clearTimeout(n)), (y, f) => (t(), a("div", {
|
|
943
|
+
class: m(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
886
944
|
}, [
|
|
887
|
-
|
|
945
|
+
p(S(Rt), {
|
|
888
946
|
verified: e.verified,
|
|
889
947
|
"is-contact-data": e.isContactData
|
|
890
948
|
}, null, 8, ["verified", "is-contact-data"]),
|
|
891
|
-
|
|
949
|
+
d("span", {
|
|
892
950
|
class: "ds-contact-value__value",
|
|
893
951
|
title: e.value
|
|
894
|
-
},
|
|
895
|
-
|
|
896
|
-
e.valueType ? (t(), D(
|
|
952
|
+
}, v(e.value), 9, Bt),
|
|
953
|
+
d("span", At, [
|
|
954
|
+
e.valueType ? (t(), D(S(Ae), {
|
|
897
955
|
key: 0,
|
|
898
956
|
class: "ds-contact-value__badge",
|
|
899
|
-
tone: e.main ?
|
|
957
|
+
tone: e.main ? S(X).ACCENT : S(X).GREY,
|
|
900
958
|
"aria-hidden": "true"
|
|
901
959
|
}, {
|
|
902
|
-
default:
|
|
903
|
-
|
|
960
|
+
default: J(() => [
|
|
961
|
+
O(v(e.valueType), 1)
|
|
904
962
|
]),
|
|
905
963
|
_: 1
|
|
906
|
-
}, 8, ["tone"])) :
|
|
907
|
-
|
|
908
|
-
|
|
964
|
+
}, 8, ["tone"])) : u("", !0),
|
|
965
|
+
d("span", Ot, [
|
|
966
|
+
d("button", {
|
|
909
967
|
type: "button",
|
|
910
|
-
class:
|
|
911
|
-
"aria-label":
|
|
912
|
-
title:
|
|
913
|
-
onClick:
|
|
968
|
+
class: m(["ds-contact-value__action", { "is-copied": s.value }]),
|
|
969
|
+
"aria-label": s.value ? e.copiedLabel : e.copyLabel,
|
|
970
|
+
title: s.value ? e.copiedLabel : e.copyLabel,
|
|
971
|
+
onClick: o
|
|
914
972
|
}, [
|
|
915
|
-
|
|
916
|
-
], 10,
|
|
917
|
-
e.showRate ? (t(), a(
|
|
918
|
-
|
|
973
|
+
d("i", Mt, v(s.value ? "check" : "content_copy"), 1)
|
|
974
|
+
], 10, xt),
|
|
975
|
+
e.showRate ? (t(), a(A, { key: 0 }, [
|
|
976
|
+
d("button", {
|
|
919
977
|
type: "button",
|
|
920
|
-
class:
|
|
978
|
+
class: "ds-contact-value__action",
|
|
921
979
|
"aria-label": e.correctLabel,
|
|
922
980
|
"aria-pressed": e.correct === !0,
|
|
923
981
|
title: e.correctLabel,
|
|
924
|
-
onClick:
|
|
982
|
+
onClick: c
|
|
925
983
|
}, [
|
|
926
|
-
|
|
927
|
-
class:
|
|
984
|
+
d("i", {
|
|
985
|
+
class: m(e.correct === !0 ? "material-icons" : "material-icons-outlined"),
|
|
928
986
|
"aria-hidden": "true"
|
|
929
987
|
}, "thumb_up", 2)
|
|
930
|
-
],
|
|
931
|
-
|
|
988
|
+
], 8, Ut),
|
|
989
|
+
d("button", {
|
|
932
990
|
type: "button",
|
|
933
|
-
class:
|
|
991
|
+
class: "ds-contact-value__action",
|
|
934
992
|
"aria-label": e.incorrectLabel,
|
|
935
993
|
"aria-pressed": e.correct === !1,
|
|
936
994
|
title: e.incorrectLabel,
|
|
937
995
|
onClick: b
|
|
938
996
|
}, [
|
|
939
|
-
|
|
940
|
-
class:
|
|
997
|
+
d("i", {
|
|
998
|
+
class: m(e.correct === !1 ? "material-icons" : "material-icons-outlined"),
|
|
941
999
|
"aria-hidden": "true"
|
|
942
1000
|
}, "thumb_down", 2)
|
|
943
|
-
],
|
|
944
|
-
], 64)) :
|
|
1001
|
+
], 8, Vt)
|
|
1002
|
+
], 64)) : u("", !0)
|
|
945
1003
|
])
|
|
946
1004
|
])
|
|
947
1005
|
], 2));
|
|
948
1006
|
}
|
|
949
|
-
}),
|
|
1007
|
+
}), ne = /* @__PURE__ */ T(Ft, [["__scopeId", "data-v-75a78ae2"]]), zt = ["aria-label"], Gt = { class: "ds-data-card__heading" }, _t = {
|
|
950
1008
|
class: "material-icons ds-data-card__icon",
|
|
951
1009
|
"aria-hidden": "true"
|
|
952
|
-
},
|
|
1010
|
+
}, Pt = { class: "ds-data-card__title" }, pt = ["aria-label"], Ht = {
|
|
953
1011
|
key: 0,
|
|
954
1012
|
class: "ds-data-card__body"
|
|
955
|
-
},
|
|
1013
|
+
}, Yt = {
|
|
956
1014
|
key: 0,
|
|
957
1015
|
class: "ds-data-card__empty"
|
|
958
1016
|
}, qt = {
|
|
959
1017
|
class: "material-icons-outlined ds-data-card__empty-icon",
|
|
960
1018
|
"aria-hidden": "true"
|
|
961
|
-
},
|
|
1019
|
+
}, Wt = { key: 0 }, Kt = {
|
|
962
1020
|
key: 0,
|
|
963
1021
|
class: "ds-data-card__section"
|
|
964
|
-
},
|
|
1022
|
+
}, Xt = { key: 1 }, Qt = {
|
|
965
1023
|
key: 0,
|
|
966
1024
|
class: "ds-data-card__section"
|
|
967
|
-
},
|
|
1025
|
+
}, Zt = { class: "ds-data-card__more" }, jt = /* @__PURE__ */ $({
|
|
968
1026
|
__name: "DsDataCard",
|
|
969
1027
|
props: {
|
|
970
1028
|
title: { type: String, required: !0 },
|
|
@@ -987,93 +1045,93 @@ const Y = {
|
|
|
987
1045
|
toggleLabel: { type: String, default: "Toggle" },
|
|
988
1046
|
closeLabel: { type: String, default: "Close" }
|
|
989
1047
|
},
|
|
990
|
-
emits: [
|
|
991
|
-
setup(e, { emit:
|
|
992
|
-
const
|
|
993
|
-
function
|
|
994
|
-
|
|
1048
|
+
emits: [G, te, ae, C, _, P],
|
|
1049
|
+
setup(e, { emit: i }) {
|
|
1050
|
+
const l = e, r = i, s = R(!1), n = h(() => l.more.length + (l.mostLikely ? 1 : 0)), o = h(() => n.value > 3), c = h(() => n.value === 0), b = h(() => l.collapsible && s.value);
|
|
1051
|
+
function y() {
|
|
1052
|
+
s.value = !s.value;
|
|
995
1053
|
}
|
|
996
|
-
function f(
|
|
997
|
-
|
|
1054
|
+
function f(B) {
|
|
1055
|
+
r(G, B);
|
|
998
1056
|
}
|
|
999
|
-
function
|
|
1000
|
-
|
|
1057
|
+
function g() {
|
|
1058
|
+
r(te);
|
|
1001
1059
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1060
|
+
function k() {
|
|
1061
|
+
r(ae);
|
|
1004
1062
|
}
|
|
1005
|
-
function
|
|
1006
|
-
|
|
1063
|
+
function N() {
|
|
1064
|
+
r(C);
|
|
1007
1065
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1066
|
+
function x(B) {
|
|
1067
|
+
r(_, B);
|
|
1010
1068
|
}
|
|
1011
|
-
function
|
|
1012
|
-
|
|
1069
|
+
function M(B) {
|
|
1070
|
+
r(P, B);
|
|
1013
1071
|
}
|
|
1014
|
-
return (
|
|
1072
|
+
return (B, E) => (t(), a("section", {
|
|
1015
1073
|
class: "ds-data-card",
|
|
1016
1074
|
"aria-label": e.title
|
|
1017
1075
|
}, [
|
|
1018
|
-
|
|
1019
|
-
class:
|
|
1020
|
-
onClick: E[1] || (E[1] = (
|
|
1076
|
+
d("div", {
|
|
1077
|
+
class: m(["ds-data-card__header", { "is-collapsed": b.value, "is-collapsible": e.collapsible }]),
|
|
1078
|
+
onClick: E[1] || (E[1] = (w) => e.collapsible && y())
|
|
1021
1079
|
}, [
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1080
|
+
d("div", Gt, [
|
|
1081
|
+
d("i", _t, v(e.icon), 1),
|
|
1082
|
+
d("span", Pt, v(e.title), 1)
|
|
1025
1083
|
]),
|
|
1026
|
-
|
|
1084
|
+
d("div", {
|
|
1027
1085
|
class: "ds-data-card__actions",
|
|
1028
|
-
onClick: E[0] || (E[0] =
|
|
1086
|
+
onClick: E[0] || (E[0] = ue(() => {
|
|
1029
1087
|
}, ["stop"]))
|
|
1030
1088
|
}, [
|
|
1031
1089
|
!b.value && e.showEdit ? (t(), a("button", {
|
|
1032
1090
|
key: 0,
|
|
1033
1091
|
type: "button",
|
|
1034
1092
|
class: "ds-data-card__edit",
|
|
1035
|
-
onClick:
|
|
1036
|
-
},
|
|
1037
|
-
!b.value && e.showSort ? (t(), D(
|
|
1093
|
+
onClick: k
|
|
1094
|
+
}, v(e.editLabel), 1)) : u("", !0),
|
|
1095
|
+
!b.value && e.showSort ? (t(), D(S(K), {
|
|
1038
1096
|
key: 1,
|
|
1039
1097
|
variant: "tertiary",
|
|
1040
1098
|
size: "medium",
|
|
1041
1099
|
circle: "",
|
|
1042
1100
|
"left-icon": "swap_vert",
|
|
1043
1101
|
"aria-label": e.sortLabel,
|
|
1044
|
-
onClick:
|
|
1045
|
-
}, null, 8, ["aria-label"])) :
|
|
1046
|
-
e.collapsible ? (t(), D(
|
|
1102
|
+
onClick: g
|
|
1103
|
+
}, null, 8, ["aria-label"])) : u("", !0),
|
|
1104
|
+
e.collapsible ? (t(), D(S(K), {
|
|
1047
1105
|
key: 2,
|
|
1048
1106
|
variant: "tertiary",
|
|
1049
1107
|
size: "medium",
|
|
1050
1108
|
circle: "",
|
|
1051
|
-
"left-icon":
|
|
1109
|
+
"left-icon": s.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1052
1110
|
"aria-label": e.toggleLabel,
|
|
1053
|
-
onClick:
|
|
1054
|
-
}, null, 8, ["left-icon", "aria-label"])) :
|
|
1111
|
+
onClick: y
|
|
1112
|
+
}, null, 8, ["left-icon", "aria-label"])) : u("", !0),
|
|
1055
1113
|
e.showClose ? (t(), a("button", {
|
|
1056
1114
|
key: 3,
|
|
1057
1115
|
type: "button",
|
|
1058
1116
|
class: "ds-data-card__close",
|
|
1059
1117
|
"aria-label": e.closeLabel,
|
|
1060
|
-
onClick:
|
|
1118
|
+
onClick: N
|
|
1061
1119
|
}, [...E[4] || (E[4] = [
|
|
1062
|
-
|
|
1120
|
+
d("i", {
|
|
1063
1121
|
class: "material-icons",
|
|
1064
1122
|
"aria-hidden": "true"
|
|
1065
1123
|
}, "close", -1)
|
|
1066
|
-
])], 8,
|
|
1124
|
+
])], 8, pt)) : u("", !0)
|
|
1067
1125
|
])
|
|
1068
1126
|
], 2),
|
|
1069
|
-
b.value ?
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
])) : (t(), a(
|
|
1074
|
-
e.mostLikely ? (t(), a("div",
|
|
1075
|
-
|
|
1076
|
-
|
|
1127
|
+
b.value ? u("", !0) : (t(), a("div", Ht, [
|
|
1128
|
+
c.value ? (t(), a("div", Yt, [
|
|
1129
|
+
d("i", qt, v(e.icon), 1),
|
|
1130
|
+
d("span", null, v(e.emptyLabel), 1)
|
|
1131
|
+
])) : (t(), a(A, { key: 1 }, [
|
|
1132
|
+
e.mostLikely ? (t(), a("div", Wt, [
|
|
1133
|
+
o.value ? (t(), a("div", Kt, v(e.mostLikelyLabel), 1)) : u("", !0),
|
|
1134
|
+
p(S(ne), {
|
|
1077
1135
|
value: e.mostLikely.value,
|
|
1078
1136
|
"value-type": e.mostLikely.type,
|
|
1079
1137
|
verified: e.mostLikely.verified,
|
|
@@ -1082,63 +1140,63 @@ const Y = {
|
|
|
1082
1140
|
"is-contact-data": e.isContactData,
|
|
1083
1141
|
"show-rate": e.showRate,
|
|
1084
1142
|
onCopy: f,
|
|
1085
|
-
onCorrect: E[2] || (E[2] = (
|
|
1086
|
-
onIncorrect: E[3] || (E[3] = (
|
|
1143
|
+
onCorrect: E[2] || (E[2] = (w) => x(e.mostLikely)),
|
|
1144
|
+
onIncorrect: E[3] || (E[3] = (w) => M(e.mostLikely))
|
|
1087
1145
|
}, null, 8, ["value", "value-type", "verified", "correct", "is-contact-data", "show-rate"])
|
|
1088
|
-
])) :
|
|
1089
|
-
e.more.length > 0 ? (t(), a("div",
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
(t(!0), a(
|
|
1093
|
-
key:
|
|
1094
|
-
value:
|
|
1095
|
-
"value-type":
|
|
1096
|
-
verified:
|
|
1097
|
-
correct:
|
|
1146
|
+
])) : u("", !0),
|
|
1147
|
+
e.more.length > 0 ? (t(), a("div", Xt, [
|
|
1148
|
+
o.value ? (t(), a("div", Qt, v(e.moreLabel), 1)) : u("", !0),
|
|
1149
|
+
d("div", Zt, [
|
|
1150
|
+
(t(!0), a(A, null, V(e.more, (w) => (t(), D(S(ne), {
|
|
1151
|
+
key: w.value,
|
|
1152
|
+
value: w.value,
|
|
1153
|
+
"value-type": w.type,
|
|
1154
|
+
verified: w.verified,
|
|
1155
|
+
correct: w.correct,
|
|
1098
1156
|
"is-contact-data": e.isContactData,
|
|
1099
1157
|
"show-rate": e.showRate,
|
|
1100
1158
|
onCopy: f,
|
|
1101
|
-
onCorrect: (
|
|
1102
|
-
onIncorrect: (
|
|
1159
|
+
onCorrect: (fe) => x(w),
|
|
1160
|
+
onIncorrect: (fe) => M(w)
|
|
1103
1161
|
}, null, 8, ["value", "value-type", "verified", "correct", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
1104
1162
|
])
|
|
1105
|
-
])) :
|
|
1163
|
+
])) : u("", !0)
|
|
1106
1164
|
], 64))
|
|
1107
1165
|
]))
|
|
1108
|
-
], 8,
|
|
1166
|
+
], 8, zt));
|
|
1109
1167
|
}
|
|
1110
|
-
}),
|
|
1168
|
+
}), ra = /* @__PURE__ */ T(jt, [["__scopeId", "data-v-86467226"]]);
|
|
1111
1169
|
export {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1170
|
+
nt as DS_ALERT_EFFECTS,
|
|
1171
|
+
ot as DS_ALERT_ICONS,
|
|
1172
|
+
lt as DS_ALERT_TYPES,
|
|
1173
|
+
X as DS_BADGE_TONES,
|
|
1116
1174
|
ke as DS_BUTTON_NATIVE_TYPES,
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1175
|
+
ie as DS_BUTTON_SIZES,
|
|
1176
|
+
H as DS_BUTTON_VARIANTS,
|
|
1177
|
+
_e as DS_INPUT_SIZES,
|
|
1178
|
+
Y as DS_INPUT_TYPES,
|
|
1179
|
+
vt as DS_NOTIFICATION_ICONS,
|
|
1180
|
+
yt as DS_NOTIFICATION_POSITIONS,
|
|
1181
|
+
ft as DS_NOTIFICATION_TYPES,
|
|
1182
|
+
W as DS_SPINNER_TONES,
|
|
1183
|
+
le as DS_TABLE_ALIGN,
|
|
1184
|
+
De as DS_TAG_TONES,
|
|
1185
|
+
q as DS_VERIFICATION_STATES,
|
|
1186
|
+
oa as DsAlert,
|
|
1187
|
+
ta as DsAvatar,
|
|
1130
1188
|
Ae as DsBadge,
|
|
1131
1189
|
K as DsButton,
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1190
|
+
na as DsCheckbox,
|
|
1191
|
+
ne as DsContactValue,
|
|
1192
|
+
ra as DsDataCard,
|
|
1135
1193
|
ia as DsInput,
|
|
1136
|
-
|
|
1137
|
-
|
|
1194
|
+
da as DsModal,
|
|
1195
|
+
sa as DsNotification,
|
|
1138
1196
|
Se as DsSpinner,
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1197
|
+
aa as DsTable,
|
|
1198
|
+
ea as DsTag,
|
|
1199
|
+
la as DsTextarea,
|
|
1200
|
+
Rt as DsVerificationIcon
|
|
1143
1201
|
};
|
|
1144
1202
|
//# sourceMappingURL=index.es.js.map
|