@nilloq/ouds-web 0.1.7 → 0.1.9
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/{alert-B4w3fDHo.js → alert-CVmA-CsB.js} +3 -4
- package/dist/{alert-Chns046l.js → alert-w0YLr9TU.js} +2 -3
- package/dist/alert.js +1 -2
- package/dist/{badge-yaFEZnEW.js → badge-Cr0QauxC.js} +1 -2
- package/dist/{badge-CDpWg-AO.js → badge-f7b-dlib.js} +2 -3
- package/dist/badge.js +1 -2
- package/dist/{button-nN1Pcwm6.js → button-DzXQE-cm.js} +4 -4
- package/dist/{button-rgIJZsYq.js → button-T8UblfB9.js} +5 -5
- package/dist/button.js +1 -2
- package/dist/{checkbox-DfYlHYR2.js → checkbox-BQibsn2k.js} +3 -4
- package/dist/{checkbox-D7TFFuw3.js → checkbox-CQ0KpdQ5.js} +2 -3
- package/dist/checkbox.js +2 -3
- package/dist/{chip-DGfqitrQ.js → chip-BtqaPWn4.js} +3 -4
- package/dist/{chip-B3v4pWZD.js → chip-C2vFB6-6.js} +4 -5
- package/dist/chip.js +1 -2
- package/dist/{control-item-slots-Ddp7c8w8.js → control-item-slots-CHwxixcQ.js} +1 -2
- package/dist/{control-item-slots-BDoeNuk4.js → control-item-slots-D9zNP9C4.js} +2 -3
- package/dist/elements-alert.js +1 -2
- package/dist/elements-badge.js +1 -2
- package/dist/elements-button.js +1 -2
- package/dist/elements-checkbox.js +1 -2
- package/dist/elements-chip.js +1 -2
- package/dist/elements-modal.js +1 -2
- package/dist/elements-radio.js +1 -2
- package/dist/elements-select.js +1 -2
- package/dist/elements-switch.js +1 -2
- package/dist/elements-tag.js +1 -2
- package/dist/elements-text-area.js +1 -2
- package/dist/elements-text-input.js +1 -2
- package/dist/elements.js +12 -13
- package/dist/index.js +12 -12
- package/dist/{modal-BnT5Kxjg.js → modal-B9UEm1Wl.js} +2 -3
- package/dist/{modal-BAvMVUIE.js → modal-BP4RDx-K.js} +3 -4
- package/dist/modal.js +1 -2
- package/dist/{radio-CDq4r1_L.js → radio-DPtenOOF.js} +3 -4
- package/dist/{radio-TaYThYkI.js → radio-bLSAOzFR.js} +2 -3
- package/dist/radio.js +2 -3
- package/dist/{runtime-dom.esm-bundler-DLryEdgJ.js → runtime-dom.esm-bundler-C18ibGEA.js} +741 -762
- package/dist/{select--O3jL-En.js → select-DJkX2Edj.js} +30 -29
- package/dist/{select-NiIx8bVD.js → select-NcBlPsCM.js} +29 -26
- package/dist/select.js +2 -3
- package/dist/{switch-D5N-j5F7.js → switch-Buxjn_6r.js} +3 -4
- package/dist/{switch-BmxLKPbL.js → switch-QJsTarkg.js} +2 -3
- package/dist/switch.js +2 -3
- package/dist/tag-Cwi1a5Yr.js +84 -0
- package/dist/{tag-Un7w0uDf.js → tag-e-DnolY2.js} +18 -18
- package/dist/tag.js +1 -2
- package/dist/{text-area-BgYNtAMx.js → text-area-4Qs0wp9J.js} +24 -24
- package/dist/{text-area-BdmAyh3N.js → text-area-Eb6R9C9E.js} +22 -21
- package/dist/text-area.js +2 -3
- package/dist/{text-input-DgFIuIOA.js → text-input-IJAkzZIL.js} +1 -2
- package/dist/{text-input-i559HVOP.js → text-input-YwrYlaIH.js} +2 -3
- package/dist/text-input.js +2 -3
- package/dist/types/components/button/Button.vue.d.ts +2 -0
- package/dist/types/components/button/button.types.d.ts +1 -0
- package/dist/types/components/select/select.types.d.ts +6 -0
- package/dist/types/components/tag/Tag.vue.d.ts +2 -0
- package/dist/types/components/tag/tag.types.d.ts +1 -0
- package/dist/types/components/text-area/text-area.types.d.ts +3 -0
- package/dist/vue-alert.js +1 -2
- package/dist/vue-badge.js +1 -2
- package/dist/vue-button.js +1 -2
- package/dist/vue-checkbox.js +1 -2
- package/dist/vue-chip.js +1 -2
- package/dist/vue-modal.js +1 -2
- package/dist/vue-radio.js +1 -2
- package/dist/vue-select.js +1 -2
- package/dist/vue-switch.js +1 -2
- package/dist/vue-tag.js +1 -2
- package/dist/vue-text-area.js +1 -2
- package/dist/vue-text-input.js +1 -2
- package/dist/vue.js +12 -12
- package/package.json +4 -4
- package/dist/tag-BvOt0v-c.js +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, M as t, N as n, S as r, _ as i, a, b as o, c as s, d as c, g as l, i as u, j as d, k as f, l as p, o as m, p as h, t as g, u as _, v, x as y } from "./runtime-dom.esm-bundler-
|
|
2
|
-
|
|
1
|
+
import { A as e, M as t, N as n, S as r, _ as i, a, b as o, c as s, d as c, g as l, i as u, j as d, k as f, l as p, o as m, p as h, t as g, u as _, v, x as y } from "./runtime-dom.esm-bundler-C18ibGEA.js";
|
|
2
|
+
// src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var b = ["id", "for"], x = [
|
|
4
4
|
"id",
|
|
5
5
|
"aria-describedby",
|
|
@@ -11,7 +11,7 @@ var b = ["id", "for"], x = [
|
|
|
11
11
|
"id",
|
|
12
12
|
"href",
|
|
13
13
|
"aria-labelledby"
|
|
14
|
-
], O = g(/* @__PURE__ */ c({
|
|
14
|
+
], O = { class: "visually-hidden" }, k = g(/* @__PURE__ */ c({
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
__name: "Select",
|
|
17
17
|
props: {
|
|
@@ -21,6 +21,7 @@ var b = ["id", "for"], x = [
|
|
|
21
21
|
errorText: { default: "" },
|
|
22
22
|
helperLink: { default: "" },
|
|
23
23
|
helperLinkHref: { default: "" },
|
|
24
|
+
helperLinkAria: { default: "on" },
|
|
24
25
|
value: { default: "" },
|
|
25
26
|
outlined: {
|
|
26
27
|
type: Boolean,
|
|
@@ -45,36 +46,37 @@ var b = ["id", "for"], x = [
|
|
|
45
46
|
loading: {
|
|
46
47
|
type: Boolean,
|
|
47
48
|
default: !1
|
|
48
|
-
}
|
|
49
|
+
},
|
|
50
|
+
loadingText: { default: "Loading" }
|
|
49
51
|
},
|
|
50
52
|
setup(c) {
|
|
51
53
|
let g = o();
|
|
52
|
-
function
|
|
54
|
+
function k() {
|
|
53
55
|
let { class: e, style: t, ...n } = g;
|
|
54
56
|
return n;
|
|
55
57
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
+
let A = f(() => g.id), j = r(), M = y(), N = f(() => A.value || `ouds-select-${M}`), P = f(() => `${N.value}-label`), F = f(() => `${N.value}-helper`), I = f(() => `${N.value}-error`), L = f(() => `${N.value}-helper-link`), R = f(() => `${N.value}-loading`);
|
|
59
|
+
function z() {
|
|
58
60
|
let e = [g["aria-describedby"]];
|
|
59
|
-
return (c.helperText ||
|
|
61
|
+
return (c.helperText || j["helper-text"]) && !c.invalid && e.push(F.value), c.invalid && (c.errorText || j["error-text"]) && e.push(I.value), c.helperLinkHref && (c.helperLink || j["helper-link"]) && e.push(L.value), c.loading && e.push(R.value), e.filter(Boolean).join(" ") || void 0;
|
|
60
62
|
}
|
|
61
|
-
let
|
|
63
|
+
let B = a(() => ["select-input-container", { "select-input-container-outlined": c.outlined }]), V = a(() => ["select-input", { "component-max-width": c.maxWidth }]), H = a(() => ["select-input-field", { "loading-indeterminate": c.loading }]);
|
|
62
64
|
return (r, a) => (l(), p("div", {
|
|
63
|
-
class: d([
|
|
65
|
+
class: d([V.value, e(g).class]),
|
|
64
66
|
style: t(e(g).style)
|
|
65
67
|
}, [
|
|
66
|
-
m("div", { class: d(
|
|
68
|
+
m("div", { class: d(B.value) }, [
|
|
67
69
|
v(r.$slots, "leading-icon"),
|
|
68
70
|
m("label", {
|
|
69
|
-
id:
|
|
70
|
-
for:
|
|
71
|
+
id: P.value,
|
|
72
|
+
for: N.value,
|
|
71
73
|
class: d({ "is-required": c.required })
|
|
72
74
|
}, [v(r.$slots, "label", {}, () => [_(n(c.label), 1)])], 10, b),
|
|
73
|
-
m("select", h(
|
|
74
|
-
id:
|
|
75
|
-
"aria-describedby":
|
|
75
|
+
m("select", h(k(), {
|
|
76
|
+
id: N.value,
|
|
77
|
+
"aria-describedby": z(),
|
|
76
78
|
"aria-invalid": c.invalid || e(g)["aria-invalid"],
|
|
77
|
-
class:
|
|
79
|
+
class: H.value,
|
|
78
80
|
value: c.value,
|
|
79
81
|
disabled: c.disabled,
|
|
80
82
|
required: c.required
|
|
@@ -97,38 +99,37 @@ var b = ["id", "for"], x = [
|
|
|
97
99
|
cy: "20",
|
|
98
100
|
r: "17"
|
|
99
101
|
})], -1), m("span", {
|
|
100
|
-
id:
|
|
102
|
+
id: R.value,
|
|
101
103
|
role: "status",
|
|
102
104
|
class: "visually-hidden"
|
|
103
|
-
},
|
|
105
|
+
}, n(c.loadingText), 9, w)], 64)) : s("", !0)
|
|
104
106
|
], 2),
|
|
105
107
|
(c.helperText || r.$slots["helper-text"]) && !c.invalid ? (l(), p("p", {
|
|
106
108
|
key: 0,
|
|
107
|
-
id:
|
|
109
|
+
id: F.value,
|
|
108
110
|
class: "helper-text"
|
|
109
111
|
}, [v(r.$slots, "helper-text", {}, () => [_(n(c.helperText), 1)])], 8, T)) : s("", !0),
|
|
110
112
|
c.invalid && (c.errorText || r.$slots["error-text"]) ? (l(), p("p", {
|
|
111
113
|
key: 1,
|
|
112
|
-
id:
|
|
114
|
+
id: I.value,
|
|
113
115
|
class: "error-text"
|
|
114
116
|
}, [v(r.$slots, "error-text", {}, () => [_(n(c.errorText), 1)])], 8, E)) : s("", !0),
|
|
115
117
|
c.helperLinkHref && (c.helperLink || r.$slots["helper-link"]) ? (l(), p("a", {
|
|
116
118
|
key: 2,
|
|
117
|
-
id:
|
|
119
|
+
id: L.value,
|
|
118
120
|
href: c.helperLinkHref,
|
|
119
|
-
"aria-labelledby": `${
|
|
121
|
+
"aria-labelledby": `${L.value} ${P.value}`,
|
|
120
122
|
class: "link link-small"
|
|
121
|
-
}, [v(r.$slots, "helper-link", {}, () => [_(n(c.helperLink), 1)]),
|
|
123
|
+
}, [v(r.$slots, "helper-link", {}, () => [_(n(c.helperLink), 1)]), m("span", O, n(c.helperLinkAria), 1)], 8, D)) : s("", !0)
|
|
122
124
|
], 6));
|
|
123
125
|
}
|
|
124
|
-
}), { shadowRoot: !1 }),
|
|
126
|
+
}), { shadowRoot: !1 }), A = class extends k {
|
|
125
127
|
connectedCallback() {
|
|
126
128
|
for (let e of Array.from(this.childNodes)) (e.nodeType === 8 || e.nodeType === 3 && !e.textContent?.trim()) && e.remove();
|
|
127
129
|
super.connectedCallback();
|
|
128
130
|
}
|
|
129
131
|
};
|
|
130
|
-
function
|
|
131
|
-
typeof customElements < "u" && (customElements.get("ouds-select") || customElements.define("ouds-select",
|
|
132
|
+
function j() {
|
|
133
|
+
typeof customElements < "u" && (customElements.get("ouds-select") || customElements.define("ouds-select", A));
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
export { A as n, k as t };
|
|
135
|
+
export { j as n, A as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, toRef as _, unref as v, useAttrs as y, useId as b, useModel as x, useSlots as S, withCtx as C } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var w = ["id", "for"], T = [
|
|
4
4
|
"id",
|
|
5
5
|
"aria-describedby",
|
|
@@ -11,7 +11,7 @@ var w = ["id", "for"], T = [
|
|
|
11
11
|
"id",
|
|
12
12
|
"href",
|
|
13
13
|
"aria-labelledby"
|
|
14
|
-
], M = /* @__PURE__ */ c({
|
|
14
|
+
], M = { class: "visually-hidden" }, N = /* @__PURE__ */ c({
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
__name: "Select",
|
|
17
17
|
props: {
|
|
@@ -21,6 +21,7 @@ var w = ["id", "for"], T = [
|
|
|
21
21
|
errorText: { default: "" },
|
|
22
22
|
helperLink: { default: "" },
|
|
23
23
|
helperLinkHref: { default: "" },
|
|
24
|
+
helperLinkAria: { default: "on" },
|
|
24
25
|
value: { default: "" },
|
|
25
26
|
outlined: {
|
|
26
27
|
type: Boolean,
|
|
@@ -45,7 +46,8 @@ var w = ["id", "for"], T = [
|
|
|
45
46
|
loading: {
|
|
46
47
|
type: Boolean,
|
|
47
48
|
default: !1
|
|
48
|
-
}
|
|
49
|
+
},
|
|
50
|
+
loadingText: { default: "Loading" }
|
|
49
51
|
},
|
|
50
52
|
setup(n) {
|
|
51
53
|
let o = y();
|
|
@@ -53,28 +55,28 @@ var w = ["id", "for"], T = [
|
|
|
53
55
|
let { class: e, style: t, ...n } = o;
|
|
54
56
|
return n;
|
|
55
57
|
}
|
|
56
|
-
let l = _(() => o.id), x = S(), C = b(),
|
|
57
|
-
function
|
|
58
|
+
let l = _(() => o.id), x = S(), C = b(), N = _(() => l.value || `ouds-select-${C}`), P = _(() => `${N.value}-label`), F = _(() => `${N.value}-helper`), I = _(() => `${N.value}-error`), L = _(() => `${N.value}-helper-link`), R = _(() => `${N.value}-loading`);
|
|
59
|
+
function z() {
|
|
58
60
|
let e = [o["aria-describedby"]];
|
|
59
|
-
return (n.helperText || x["helper-text"]) && !n.invalid && e.push(
|
|
61
|
+
return (n.helperText || x["helper-text"]) && !n.invalid && e.push(F.value), n.invalid && (n.errorText || x["error-text"]) && e.push(I.value), n.helperLinkHref && (n.helperLink || x["helper-link"]) && e.push(L.value), n.loading && e.push(R.value), e.filter(Boolean).join(" ") || void 0;
|
|
60
62
|
}
|
|
61
|
-
let
|
|
63
|
+
let B = t(() => ["select-input-container", { "select-input-container-outlined": n.outlined }]), V = t(() => ["select-input", { "component-max-width": n.maxWidth }]), H = t(() => ["select-input-field", { "loading-indeterminate": n.loading }]);
|
|
62
64
|
return (t, l) => (p(), i("div", {
|
|
63
|
-
class: d([
|
|
65
|
+
class: d([V.value, v(o).class]),
|
|
64
66
|
style: f(v(o).style)
|
|
65
67
|
}, [
|
|
66
|
-
a("div", { class: d(
|
|
68
|
+
a("div", { class: d(B.value) }, [
|
|
67
69
|
h(t.$slots, "leading-icon"),
|
|
68
70
|
a("label", {
|
|
69
|
-
id:
|
|
70
|
-
for:
|
|
71
|
+
id: P.value,
|
|
72
|
+
for: N.value,
|
|
71
73
|
class: d({ "is-required": n.required })
|
|
72
74
|
}, [h(t.$slots, "label", {}, () => [s(g(n.label), 1)])], 10, w),
|
|
73
75
|
a("select", u(c(), {
|
|
74
|
-
id:
|
|
75
|
-
"aria-describedby":
|
|
76
|
+
id: N.value,
|
|
77
|
+
"aria-describedby": z(),
|
|
76
78
|
"aria-invalid": n.invalid || v(o)["aria-invalid"],
|
|
77
|
-
class:
|
|
79
|
+
class: H.value,
|
|
78
80
|
value: n.value,
|
|
79
81
|
disabled: n.disabled,
|
|
80
82
|
required: n.required
|
|
@@ -97,31 +99,31 @@ var w = ["id", "for"], T = [
|
|
|
97
99
|
cy: "20",
|
|
98
100
|
r: "17"
|
|
99
101
|
})], -1), a("span", {
|
|
100
|
-
id:
|
|
102
|
+
id: R.value,
|
|
101
103
|
role: "status",
|
|
102
104
|
class: "visually-hidden"
|
|
103
|
-
},
|
|
105
|
+
}, g(n.loadingText), 9, O)], 64)) : r("", !0)
|
|
104
106
|
], 2),
|
|
105
107
|
(n.helperText || t.$slots["helper-text"]) && !n.invalid ? (p(), i("p", {
|
|
106
108
|
key: 0,
|
|
107
|
-
id:
|
|
109
|
+
id: F.value,
|
|
108
110
|
class: "helper-text"
|
|
109
111
|
}, [h(t.$slots, "helper-text", {}, () => [s(g(n.helperText), 1)])], 8, k)) : r("", !0),
|
|
110
112
|
n.invalid && (n.errorText || t.$slots["error-text"]) ? (p(), i("p", {
|
|
111
113
|
key: 1,
|
|
112
|
-
id:
|
|
114
|
+
id: I.value,
|
|
113
115
|
class: "error-text"
|
|
114
116
|
}, [h(t.$slots, "error-text", {}, () => [s(g(n.errorText), 1)])], 8, A)) : r("", !0),
|
|
115
117
|
n.helperLinkHref && (n.helperLink || t.$slots["helper-link"]) ? (p(), i("a", {
|
|
116
118
|
key: 2,
|
|
117
|
-
id:
|
|
119
|
+
id: L.value,
|
|
118
120
|
href: n.helperLinkHref,
|
|
119
|
-
"aria-labelledby": `${
|
|
121
|
+
"aria-labelledby": `${L.value} ${P.value}`,
|
|
120
122
|
class: "link link-small"
|
|
121
|
-
}, [h(t.$slots, "helper-link", {}, () => [s(g(n.helperLink), 1)]),
|
|
123
|
+
}, [h(t.$slots, "helper-link", {}, () => [s(g(n.helperLink), 1)]), a("span", M, g(n.helperLinkAria), 1)], 8, j)) : r("", !0)
|
|
122
124
|
], 6));
|
|
123
125
|
}
|
|
124
|
-
}),
|
|
126
|
+
}), P = /* @__PURE__ */ c({
|
|
125
127
|
inheritAttrs: !1,
|
|
126
128
|
__name: "VueSelect",
|
|
127
129
|
props: /*@__PURE__*/ l({
|
|
@@ -131,12 +133,14 @@ var w = ["id", "for"], T = [
|
|
|
131
133
|
errorText: {},
|
|
132
134
|
helperLink: {},
|
|
133
135
|
helperLinkHref: {},
|
|
136
|
+
helperLinkAria: {},
|
|
134
137
|
outlined: { type: Boolean },
|
|
135
138
|
disabled: { type: Boolean },
|
|
136
139
|
required: { type: Boolean },
|
|
137
140
|
invalid: { type: Boolean },
|
|
138
141
|
maxWidth: { type: Boolean },
|
|
139
|
-
loading: { type: Boolean }
|
|
142
|
+
loading: { type: Boolean },
|
|
143
|
+
loadingText: {}
|
|
140
144
|
}, {
|
|
141
145
|
modelValue: { default: "" },
|
|
142
146
|
modelModifiers: {}
|
|
@@ -147,7 +151,7 @@ var w = ["id", "for"], T = [
|
|
|
147
151
|
function s(e) {
|
|
148
152
|
i.value = e.target.value, a("change", e);
|
|
149
153
|
}
|
|
150
|
-
return (e, t) => (p(), n(
|
|
154
|
+
return (e, t) => (p(), n(N, u({
|
|
151
155
|
...e.$attrs,
|
|
152
156
|
...r
|
|
153
157
|
}, {
|
|
@@ -187,5 +191,4 @@ var w = ["id", "for"], T = [
|
|
|
187
191
|
]), 1040, ["value"]));
|
|
188
192
|
}
|
|
189
193
|
});
|
|
190
|
-
|
|
191
|
-
export { N as t };
|
|
194
|
+
export { P as t };
|
package/dist/select.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, M as t, N as n, T as r, a as i, b as a, c as o, d as s, f as c, g as l, j as u, k as d, l as f, o as p, p as m, s as h, t as g, u as _, v, x as y, y as b } from "./runtime-dom.esm-bundler-
|
|
2
|
-
import { r as x, t as S } from "./control-item-slots-
|
|
3
|
-
|
|
1
|
+
import { A as e, M as t, N as n, T as r, a as i, b as a, c as o, d as s, f as c, g as l, j as u, k as d, l as f, o as p, p as m, s as h, t as g, u as _, v, x as y, y as b } from "./runtime-dom.esm-bundler-C18ibGEA.js";
|
|
2
|
+
import { r as x, t as S } from "./control-item-slots-D9zNP9C4.js";
|
|
3
|
+
// src/components/switch/switch.context.ts
|
|
4
4
|
var C = Symbol("ouds-switch-element-id"), w = { class: "control-item-assets-container" }, T = [
|
|
5
5
|
"id",
|
|
6
6
|
"value",
|
|
@@ -136,5 +136,4 @@ var C = Symbol("ouds-switch-element-id"), w = { class: "control-item-assets-cont
|
|
|
136
136
|
function P() {
|
|
137
137
|
typeof customElements < "u" && (customElements.get("ouds-switch") || customElements.define("ouds-switch", N));
|
|
138
138
|
}
|
|
139
|
-
//#endregion
|
|
140
139
|
export { P as n, N as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./control-item-slots-
|
|
1
|
+
import { n as e } from "./control-item-slots-CHwxixcQ.js";
|
|
2
2
|
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, defineComponent as c, inject as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, toRef as v, unref as y, useAttrs as b, useId as x, useModel as S, withCtx as C } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/switch/switch.context.ts
|
|
4
4
|
var w = Symbol("ouds-switch-element-id"), T = { class: "control-item-assets-container" }, E = [
|
|
5
5
|
"id",
|
|
6
6
|
"value",
|
|
@@ -175,5 +175,4 @@ var w = Symbol("ouds-switch-element-id"), T = { class: "control-item-assets-cont
|
|
|
175
175
|
]), 1040, ["checked"]));
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
-
//#endregion
|
|
179
178
|
export { M as t };
|
package/dist/switch.js
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { N as e, a as t, c as n, d as r, g as i, i as a, j as o, l as s, o as c, t as l, u, v as d } from "./runtime-dom.esm-bundler-C18ibGEA.js";
|
|
2
|
+
// src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = {
|
|
4
|
+
role: "status",
|
|
5
|
+
class: "visually-hidden"
|
|
6
|
+
}, p = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "tag-status-icon",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}, m = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "tag-bullet",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, h = /* @__PURE__ */ r({
|
|
15
|
+
__name: "Tag",
|
|
16
|
+
props: {
|
|
17
|
+
variant: { default: "neutral" },
|
|
18
|
+
statusIcon: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
size: { default: "medium" },
|
|
23
|
+
muted: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
bullet: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
},
|
|
35
|
+
loading: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
loadingText: { default: "Loading" }
|
|
40
|
+
},
|
|
41
|
+
setup(r) {
|
|
42
|
+
let l = t(() => r.variant.startsWith("categorical-")), h = t(() => [
|
|
43
|
+
"positive",
|
|
44
|
+
"info",
|
|
45
|
+
"warning",
|
|
46
|
+
"negative"
|
|
47
|
+
].includes(r.variant)), g = t(() => [
|
|
48
|
+
"tag",
|
|
49
|
+
r.variant !== "neutral" && `tag-${r.variant}`,
|
|
50
|
+
{
|
|
51
|
+
"tag-muted": r.muted && !l.value,
|
|
52
|
+
"tag-small": r.size === "small",
|
|
53
|
+
disabled: r.disabled,
|
|
54
|
+
loading: r.loading
|
|
55
|
+
}
|
|
56
|
+
]);
|
|
57
|
+
return (t, l) => (i(), s("span", { class: o(g.value) }, [r.loading ? (i(), s(a, { key: 0 }, [l[0] ||= c("svg", {
|
|
58
|
+
viewBox: "0 0 40 40",
|
|
59
|
+
class: "tag-loader",
|
|
60
|
+
"aria-hidden": "true"
|
|
61
|
+
}, [c("circle", {
|
|
62
|
+
class: "tag-loader-inner",
|
|
63
|
+
cx: "20",
|
|
64
|
+
cy: "20",
|
|
65
|
+
r: "15"
|
|
66
|
+
})], -1), c("span", f, e(r.loadingText), 1)], 64)) : r.statusIcon && h.value ? (i(), s("span", p)) : r.bullet ? (i(), s("span", m)) : n("", !0), d(t.$slots, "default", {}, () => [l[1] ||= u("Tag", -1)])], 2));
|
|
67
|
+
}
|
|
68
|
+
}), g = [
|
|
69
|
+
"neutral",
|
|
70
|
+
"accent",
|
|
71
|
+
"positive",
|
|
72
|
+
"info",
|
|
73
|
+
"warning",
|
|
74
|
+
"negative",
|
|
75
|
+
"categorical-1",
|
|
76
|
+
"categorical-2",
|
|
77
|
+
"categorical-3",
|
|
78
|
+
"categorical-4",
|
|
79
|
+
"categorical-5"
|
|
80
|
+
], _ = ["medium", "small"], v = l(h, { shadowRoot: !1 });
|
|
81
|
+
function y() {
|
|
82
|
+
typeof customElements < "u" && (customElements.get("ouds-tag") || customElements.define("ouds-tag", v));
|
|
83
|
+
}
|
|
84
|
+
export { g as i, y as n, _ as r, v as t };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l } from "vue";
|
|
2
|
-
|
|
3
|
-
var
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, toDisplayString as u } from "vue";
|
|
2
|
+
// src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var d = {
|
|
4
|
+
role: "status",
|
|
5
|
+
class: "visually-hidden"
|
|
6
|
+
}, f = {
|
|
4
7
|
key: 1,
|
|
5
8
|
class: "tag-status-icon",
|
|
6
9
|
"aria-hidden": "true"
|
|
7
|
-
},
|
|
10
|
+
}, p = {
|
|
8
11
|
key: 2,
|
|
9
12
|
class: "tag-bullet",
|
|
10
13
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
14
|
+
}, m = /* @__PURE__ */ o({
|
|
12
15
|
__name: "Tag",
|
|
13
16
|
props: {
|
|
14
17
|
variant: { default: "neutral" },
|
|
@@ -32,25 +35,26 @@ var u = {
|
|
|
32
35
|
loading: {
|
|
33
36
|
type: Boolean,
|
|
34
37
|
default: !1
|
|
35
|
-
}
|
|
38
|
+
},
|
|
39
|
+
loadingText: { default: "Loading" }
|
|
36
40
|
},
|
|
37
41
|
setup(o) {
|
|
38
|
-
let
|
|
42
|
+
let m = t(() => o.variant.startsWith("categorical-")), h = t(() => [
|
|
39
43
|
"positive",
|
|
40
44
|
"info",
|
|
41
45
|
"warning",
|
|
42
46
|
"negative"
|
|
43
|
-
].includes(o.variant)),
|
|
47
|
+
].includes(o.variant)), g = t(() => [
|
|
44
48
|
"tag",
|
|
45
49
|
o.variant !== "neutral" && `tag-${o.variant}`,
|
|
46
50
|
{
|
|
47
|
-
"tag-muted": o.muted && !
|
|
51
|
+
"tag-muted": o.muted && !m.value,
|
|
48
52
|
"tag-small": o.size === "small",
|
|
49
53
|
disabled: o.disabled,
|
|
50
54
|
loading: o.loading
|
|
51
55
|
}
|
|
52
56
|
]);
|
|
53
|
-
return (t,
|
|
57
|
+
return (t, m) => (c(), r("span", { class: s(g.value) }, [o.loading ? (c(), r(e, { key: 0 }, [m[0] ||= i("svg", {
|
|
54
58
|
viewBox: "0 0 40 40",
|
|
55
59
|
class: "tag-loader",
|
|
56
60
|
"aria-hidden": "true"
|
|
@@ -59,12 +63,9 @@ var u = {
|
|
|
59
63
|
cx: "20",
|
|
60
64
|
cy: "20",
|
|
61
65
|
r: "15"
|
|
62
|
-
})], -1), f[1] ||=
|
|
63
|
-
role: "status",
|
|
64
|
-
class: "visually-hidden"
|
|
65
|
-
}, "Loading", -1)], 64)) : o.statusIcon && p.value ? (c(), r("span", u)) : o.bullet ? (c(), r("span", d)) : n("", !0), l(t.$slots, "default", {}, () => [f[2] ||= a("Tag", -1)])], 2));
|
|
66
|
+
})], -1), i("span", d, u(o.loadingText), 1)], 64)) : o.statusIcon && h.value ? (c(), r("span", f)) : o.bullet ? (c(), r("span", p)) : n("", !0), l(t.$slots, "default", {}, () => [m[1] ||= a("Tag", -1)])], 2));
|
|
66
67
|
}
|
|
67
|
-
}),
|
|
68
|
+
}), h = [
|
|
68
69
|
"neutral",
|
|
69
70
|
"accent",
|
|
70
71
|
"positive",
|
|
@@ -76,6 +77,5 @@ var u = {
|
|
|
76
77
|
"categorical-3",
|
|
77
78
|
"categorical-4",
|
|
78
79
|
"categorical-5"
|
|
79
|
-
],
|
|
80
|
-
|
|
81
|
-
export { p as n, f as r, m as t };
|
|
80
|
+
], g = ["medium", "small"];
|
|
81
|
+
export { h as n, m as r, g as t };
|
package/dist/tag.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { r as OudsTag, t as defineOudsTag, n as tagSizes, e as tagVariants };
|
|
1
|
+
export { t as OudsTag, n as defineOudsTag, r as tagSizes, i as tagVariants } from "./tag-Cwi1a5Yr.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, M as t, N as n, S as r, a as i, b as a, c as o, d as s, g as c, j as l, k as u, l as d, o as f, p, t as m, u as h, v as g, x as _ } from "./runtime-dom.esm-bundler-
|
|
2
|
-
|
|
1
|
+
import { A as e, M as t, N as n, S as r, a as i, b as a, c as o, d as s, g as c, j as l, k as u, l as d, o as f, p, t as m, u as h, v as g, x as _ } from "./runtime-dom.esm-bundler-C18ibGEA.js";
|
|
2
|
+
// src/components/text-area/TextArea.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var v = ["id", "for"], y = [
|
|
4
4
|
"id",
|
|
5
5
|
"placeholder",
|
|
@@ -13,7 +13,7 @@ var v = ["id", "for"], y = [
|
|
|
13
13
|
"id",
|
|
14
14
|
"href",
|
|
15
15
|
"aria-labelledby"
|
|
16
|
-
], C = m(/* @__PURE__ */ s({
|
|
16
|
+
], C = { class: "visually-hidden" }, w = m(/* @__PURE__ */ s({
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "TextArea",
|
|
19
19
|
props: {
|
|
@@ -23,6 +23,7 @@ var v = ["id", "for"], y = [
|
|
|
23
23
|
errorText: { default: "" },
|
|
24
24
|
helperLink: { default: "" },
|
|
25
25
|
helperLinkHref: { default: "" },
|
|
26
|
+
helperLinkAria: { default: "on" },
|
|
26
27
|
value: { default: "" },
|
|
27
28
|
outlined: {
|
|
28
29
|
type: Boolean,
|
|
@@ -51,57 +52,56 @@ var v = ["id", "for"], y = [
|
|
|
51
52
|
},
|
|
52
53
|
setup(s) {
|
|
53
54
|
let m = a();
|
|
54
|
-
function
|
|
55
|
+
function w() {
|
|
55
56
|
let { class: e, style: t, ...n } = m;
|
|
56
57
|
return n;
|
|
57
58
|
}
|
|
58
|
-
let
|
|
59
|
-
function
|
|
59
|
+
let T = u(() => m.id), E = r(), D = _(), O = u(() => T.value || `ouds-text-area-${D}`), k = u(() => `${O.value}-helper`), A = u(() => `${O.value}-error`), j = u(() => `${O.value}-label`), M = u(() => `${O.value}-helper-link`);
|
|
60
|
+
function N() {
|
|
60
61
|
let e = [m["aria-describedby"]];
|
|
61
|
-
return (s.helperText ||
|
|
62
|
+
return (s.helperText || E["helper-text"]) && !s.invalid && e.push(k.value), s.invalid && (s.errorText || E["error-text"]) && e.push(A.value), s.helperLinkHref && (s.helperLink || E["helper-link"]) && e.push(M.value), e.filter(Boolean).join(" ") || void 0;
|
|
62
63
|
}
|
|
63
|
-
let
|
|
64
|
+
let P = i(() => ["text-area", { "component-max-width": s.maxWidth }]), F = i(() => ["text-area-container", { "text-area-container-outlined": s.outlined }]);
|
|
64
65
|
return (r, i) => (c(), d("div", {
|
|
65
|
-
class: l([
|
|
66
|
+
class: l([P.value, e(m).class]),
|
|
66
67
|
style: t(e(m).style)
|
|
67
68
|
}, [
|
|
68
|
-
f("div", { class: l(
|
|
69
|
-
id:
|
|
70
|
-
for:
|
|
69
|
+
f("div", { class: l(F.value) }, [f("label", {
|
|
70
|
+
id: j.value,
|
|
71
|
+
for: O.value,
|
|
71
72
|
class: l({ "is-required": s.required })
|
|
72
|
-
}, [g(r.$slots, "label", {}, () => [h(n(s.label), 1)])], 10, v), f("textarea", p(
|
|
73
|
-
id:
|
|
73
|
+
}, [g(r.$slots, "label", {}, () => [h(n(s.label), 1)])], 10, v), f("textarea", p(w(), {
|
|
74
|
+
id: O.value,
|
|
74
75
|
class: "text-area-field",
|
|
75
76
|
placeholder: s.placeholder || " ",
|
|
76
77
|
value: s.value,
|
|
77
78
|
disabled: s.disabled,
|
|
78
79
|
readonly: s.readonly,
|
|
79
80
|
required: s.required,
|
|
80
|
-
"aria-describedby":
|
|
81
|
+
"aria-describedby": N(),
|
|
81
82
|
"aria-invalid": s.invalid
|
|
82
83
|
}), null, 16, y)], 2),
|
|
83
84
|
(s.helperText || r.$slots["helper-text"]) && !s.invalid ? (c(), d("p", {
|
|
84
85
|
key: 0,
|
|
85
|
-
id:
|
|
86
|
+
id: k.value,
|
|
86
87
|
class: "helper-text"
|
|
87
88
|
}, [g(r.$slots, "helper-text", {}, () => [h(n(s.helperText), 1)])], 8, b)) : o("", !0),
|
|
88
89
|
s.invalid && (s.errorText || r.$slots["error-text"]) ? (c(), d("p", {
|
|
89
90
|
key: 1,
|
|
90
|
-
id:
|
|
91
|
+
id: A.value,
|
|
91
92
|
class: "error-text"
|
|
92
93
|
}, [g(r.$slots, "error-text", {}, () => [h(n(s.errorText), 1)])], 8, x)) : o("", !0),
|
|
93
94
|
s.helperLinkHref && (s.helperLink || r.$slots["helper-link"]) ? (c(), d("a", {
|
|
94
95
|
key: 2,
|
|
95
|
-
id:
|
|
96
|
+
id: M.value,
|
|
96
97
|
href: s.helperLinkHref,
|
|
97
|
-
"aria-labelledby": `${
|
|
98
|
+
"aria-labelledby": `${M.value} ${j.value}`,
|
|
98
99
|
class: "link link-small"
|
|
99
|
-
}, [g(r.$slots, "helper-link", {}, () => [h(n(s.helperLink), 1)]),
|
|
100
|
+
}, [g(r.$slots, "helper-link", {}, () => [h(n(s.helperLink), 1)]), f("span", C, n(s.helperLinkAria), 1)], 8, S)) : o("", !0)
|
|
100
101
|
], 6));
|
|
101
102
|
}
|
|
102
103
|
}), { shadowRoot: !1 });
|
|
103
|
-
function
|
|
104
|
-
typeof customElements < "u" && (customElements.get("ouds-text-area") || customElements.define("ouds-text-area",
|
|
104
|
+
function T() {
|
|
105
|
+
typeof customElements < "u" && (customElements.get("ouds-text-area") || customElements.define("ouds-text-area", w));
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
-
export { w as n, C as t };
|
|
107
|
+
export { T as n, w as t };
|