@nilloq/ouds-web 0.1.5 → 0.1.6
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/LICENSE +21 -0
- package/README.md +49 -6
- package/dist/alert-By364Om4.js +77 -0
- package/dist/alert-bsnEmrzb.js +89 -0
- package/dist/alert.js +2 -0
- package/dist/badge-fffoaFuZ.js +57 -0
- package/dist/badge-yaFEZnEW.js +54 -0
- package/dist/badge.js +2 -0
- package/dist/button-BUziAVbu.js +94 -0
- package/dist/{button-LlRiSiGS.js → button-nN1Pcwm6.js} +36 -21
- package/dist/button.js +1 -1
- package/dist/checkbox-PAgQqiIw.js +145 -0
- package/dist/checkbox-g6cqR6wz.js +170 -0
- package/dist/checkbox.js +1 -1
- package/dist/control-item-slots-BNXNsI1e.js +12 -0
- package/dist/control-item-slots-XV8Gjvf1.js +9 -0
- package/dist/elements-alert.js +2 -0
- package/dist/elements-badge.js +2 -0
- package/dist/elements-button.js +1 -1
- package/dist/elements-checkbox.js +1 -1
- package/dist/elements-modal.js +2 -0
- package/dist/elements-radio.js +2 -0
- package/dist/elements-select.js +1 -1
- package/dist/elements-switch.js +2 -0
- package/dist/elements-tag.js +1 -1
- package/dist/elements-text-area.js +2 -0
- package/dist/elements-text-input.js +1 -1
- package/dist/elements.js +13 -7
- package/dist/index.js +12 -6
- package/dist/modal-CHjaB_yR.js +181 -0
- package/dist/modal-IEXNB8St.js +193 -0
- package/dist/modal.js +2 -0
- package/dist/radio-Cmrtred_.js +147 -0
- package/dist/radio-CqVqsZ7n.js +175 -0
- package/dist/radio.js +5 -0
- package/dist/{runtime-dom.esm-bundler-BzNNnH8h.js → runtime-dom.esm-bundler-BeOO_l6v.js} +987 -839
- package/dist/select-Bpou1HIY.js +167 -0
- package/dist/select-CWjTpHGb.js +126 -0
- package/dist/select.js +1 -1
- package/dist/switch-CFv0JUeq.js +132 -0
- package/dist/switch-DEYsTCw5.js +157 -0
- package/dist/switch.js +5 -0
- package/dist/tag-BdB0YDBJ.js +84 -0
- package/dist/tag-Un7w0uDf.js +81 -0
- package/dist/tag.js +1 -1
- package/dist/text-area-DkjEGpHg.js +99 -0
- package/dist/text-area-DqBoz2_d.js +139 -0
- package/dist/text-area.js +5 -0
- package/dist/text-input-DnWjB1vE.js +207 -0
- package/dist/text-input-DxzwRS2R.js +157 -0
- package/dist/text-input.js +1 -1
- package/dist/types/alert.d.ts +1 -0
- package/dist/types/badge.d.ts +1 -0
- package/dist/types/components/alert/Alert.vue.d.ts +37 -0
- package/dist/types/components/alert/alert.context.d.ts +2 -0
- package/dist/types/components/alert/alert.options.d.ts +2 -0
- package/dist/types/components/alert/alert.types.d.ts +14 -0
- package/dist/types/components/badge/Badge.vue.d.ts +26 -0
- package/dist/types/components/badge/badge.options.d.ts +4 -0
- package/dist/types/components/badge/badge.types.d.ts +13 -0
- package/dist/types/components/button/Button.vue.d.ts +7 -4
- package/dist/types/components/button/button.options.d.ts +1 -1
- package/dist/types/components/button/button.types.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.vue.d.ts +13 -6
- package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +9 -5
- package/dist/types/components/checkbox/checkbox.context.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.types.d.ts +4 -0
- package/dist/types/components/modal/Modal.vue.d.ts +86 -0
- package/dist/types/components/modal/modal.context.d.ts +2 -0
- package/dist/types/components/modal/modal.options.d.ts +7 -0
- package/dist/types/components/modal/modal.types.d.ts +28 -0
- package/dist/types/components/radio/Radio.vue.d.ts +37 -0
- package/dist/types/components/radio/VueRadio.vue.d.ts +34 -0
- package/dist/types/components/radio/radio.context.d.ts +2 -0
- package/dist/types/components/radio/radio.types.d.ts +20 -0
- package/dist/types/components/select/Select.vue.d.ts +21 -4
- package/dist/types/components/select/VueSelect.vue.d.ts +15 -5
- package/dist/types/components/select/select.types.d.ts +10 -0
- package/dist/types/components/shared/control-item-slots.d.ts +2 -0
- package/dist/types/components/switch/Switch.vue.d.ts +32 -0
- package/dist/types/components/switch/VueSwitch.vue.d.ts +28 -0
- package/dist/types/components/switch/switch.context.d.ts +2 -0
- package/dist/types/components/switch/switch.types.d.ts +17 -0
- package/dist/types/components/tag/Tag.vue.d.ts +8 -3
- package/dist/types/components/tag/tag.options.d.ts +1 -1
- package/dist/types/components/tag/tag.types.d.ts +4 -0
- package/dist/types/components/text-area/TextArea.vue.d.ts +36 -0
- package/dist/types/components/text-area/VueTextArea.vue.d.ts +32 -0
- package/dist/types/components/text-area/text-area.types.d.ts +19 -0
- package/dist/types/components/text-input/TextInput.vue.d.ts +17 -15
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +17 -13
- package/dist/types/components/text-input/text-input.types.d.ts +1 -0
- package/dist/types/elements/alert.d.ts +5 -0
- package/dist/types/elements/badge.d.ts +5 -0
- package/dist/types/elements/index.d.ts +13 -0
- package/dist/types/elements/modal.d.ts +5 -0
- package/dist/types/elements/radio.d.ts +4 -0
- package/dist/types/elements/switch.d.ts +4 -0
- package/dist/types/elements/text-area.d.ts +4 -0
- package/dist/types/modal.d.ts +1 -0
- package/dist/types/radio.d.ts +2 -0
- package/dist/types/switch.d.ts +2 -0
- package/dist/types/text-area.d.ts +2 -0
- package/dist/types/vue/alert.d.ts +3 -0
- package/dist/types/vue/badge.d.ts +3 -0
- package/dist/types/vue/index.d.ts +11 -0
- package/dist/types/vue/modal.d.ts +3 -0
- package/dist/types/vue/radio.d.ts +2 -0
- package/dist/types/vue/switch.d.ts +2 -0
- package/dist/types/vue/text-area.d.ts +2 -0
- package/dist/vue-alert.js +2 -0
- package/dist/vue-badge.js +2 -0
- package/dist/vue-button.js +1 -1
- package/dist/vue-checkbox.js +1 -1
- package/dist/vue-modal.js +2 -0
- package/dist/vue-radio.js +2 -0
- package/dist/vue-select.js +1 -1
- package/dist/vue-switch.js +2 -0
- package/dist/vue-tag.js +1 -1
- package/dist/vue-text-area.js +2 -0
- package/dist/vue-text-input.js +1 -1
- package/dist/vue.js +12 -6
- package/package.json +82 -10
- package/dist/button-BPOKh6G4.js +0 -79
- package/dist/checkbox-BYrgMhwO.js +0 -105
- package/dist/checkbox-D-A_bSBK.js +0 -79
- package/dist/select-CA6TVlpX.js +0 -58
- package/dist/select-CKHEHpJL.js +0 -80
- package/dist/tag-B2qhuHjk.js +0 -41
- package/dist/tag-BY32Hj5n.js +0 -44
- package/dist/text-input-CtTr5yfe.js +0 -151
- package/dist/text-input-l1F2arKl.js +0 -201
|
@@ -1,201 +0,0 @@
|
|
|
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, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useId as _, useModel as v, useSlots as y, withCtx as b } from "vue";
|
|
2
|
-
//#region src/components/text-input/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var x = ["id", "for"], S = ["data-bs-prefix", "data-bs-suffix"], C = [
|
|
4
|
-
"id",
|
|
5
|
-
"type",
|
|
6
|
-
"placeholder",
|
|
7
|
-
"value",
|
|
8
|
-
"disabled",
|
|
9
|
-
"readonly",
|
|
10
|
-
"required",
|
|
11
|
-
"aria-describedby",
|
|
12
|
-
"aria-invalid"
|
|
13
|
-
], w = [
|
|
14
|
-
"id",
|
|
15
|
-
"type",
|
|
16
|
-
"placeholder",
|
|
17
|
-
"value",
|
|
18
|
-
"disabled",
|
|
19
|
-
"readonly",
|
|
20
|
-
"required",
|
|
21
|
-
"aria-describedby",
|
|
22
|
-
"aria-invalid"
|
|
23
|
-
], T = ["id"], E = ["id"], D = [
|
|
24
|
-
"id",
|
|
25
|
-
"href",
|
|
26
|
-
"aria-labelledby"
|
|
27
|
-
], O = /* @__PURE__ */ c({
|
|
28
|
-
inheritAttrs: !1,
|
|
29
|
-
__name: "TextInput",
|
|
30
|
-
props: {
|
|
31
|
-
id: {},
|
|
32
|
-
label: { default: "Text input" },
|
|
33
|
-
placeholder: { default: " " },
|
|
34
|
-
helperText: { default: "" },
|
|
35
|
-
errorText: { default: "" },
|
|
36
|
-
helperLink: { default: "" },
|
|
37
|
-
helperLinkHref: { default: "" },
|
|
38
|
-
prefix: { default: "" },
|
|
39
|
-
suffix: { default: "" },
|
|
40
|
-
value: { default: "" },
|
|
41
|
-
type: { default: "text" },
|
|
42
|
-
outlined: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
readonly: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
required: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !1
|
|
57
|
-
},
|
|
58
|
-
invalid: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
62
|
-
maxWidth: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
loading: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
setup(n) {
|
|
72
|
-
let o = g(), c = y(), l = _(), v = t(() => n.id || `ouds-text-input-${l}`), b = t(() => `${v.value}-helper`), O = t(() => `${v.value}-error`), k = t(() => `${v.value}-label`), A = t(() => `${v.value}-helper-link`), j = t(() => {
|
|
73
|
-
let e = [o["aria-describedby"]];
|
|
74
|
-
return n.helperText && !n.invalid && e.push(b.value), n.invalid && (n.errorText || c["error-text"]) && e.push(O.value), n.helperLinkHref && (n.helperLink || c["helper-link"]) && e.push(A.value), e.filter(Boolean).join(" ") || void 0;
|
|
75
|
-
}), M = t(() => ["text-input", { "component-max-width": n.maxWidth }]), N = t(() => ["text-input-container", { "text-input-container-outlined": n.outlined }]), P = t(() => ["text-input-field", { "loading-indeterminate": n.loading }]);
|
|
76
|
-
return (t, c) => (f(), i("div", { class: d(M.value) }, [
|
|
77
|
-
a("div", { class: d(N.value) }, [
|
|
78
|
-
p(t.$slots, "leading-icon"),
|
|
79
|
-
a("label", {
|
|
80
|
-
id: k.value,
|
|
81
|
-
for: v.value,
|
|
82
|
-
class: d({ "is-required": n.required })
|
|
83
|
-
}, [p(t.$slots, "label", {}, () => [s(m(n.label), 1)])], 10, x),
|
|
84
|
-
n.prefix || n.suffix ? (f(), i("div", {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "input-container",
|
|
87
|
-
"data-bs-prefix": n.prefix || void 0,
|
|
88
|
-
"data-bs-suffix": n.suffix || void 0
|
|
89
|
-
}, [a("input", u(h(o), {
|
|
90
|
-
id: v.value,
|
|
91
|
-
type: n.type,
|
|
92
|
-
class: P.value,
|
|
93
|
-
placeholder: n.placeholder,
|
|
94
|
-
value: n.value,
|
|
95
|
-
disabled: n.disabled,
|
|
96
|
-
readonly: n.readonly,
|
|
97
|
-
required: n.required,
|
|
98
|
-
"aria-describedby": j.value,
|
|
99
|
-
"aria-invalid": n.invalid
|
|
100
|
-
}), null, 16, C)], 8, S)) : (f(), i("input", u({ key: 1 }, h(o), {
|
|
101
|
-
id: v.value,
|
|
102
|
-
type: n.type,
|
|
103
|
-
class: P.value,
|
|
104
|
-
placeholder: n.placeholder,
|
|
105
|
-
value: n.value,
|
|
106
|
-
disabled: n.disabled,
|
|
107
|
-
readonly: n.readonly,
|
|
108
|
-
required: n.required,
|
|
109
|
-
"aria-describedby": j.value,
|
|
110
|
-
"aria-invalid": n.invalid
|
|
111
|
-
}), null, 16, w)),
|
|
112
|
-
n.loading ? (f(), i(e, { key: 2 }, [c[0] ||= a("svg", {
|
|
113
|
-
viewBox: "0 0 40 40",
|
|
114
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
-
class: "loader",
|
|
116
|
-
"aria-hidden": "true"
|
|
117
|
-
}, [a("circle", {
|
|
118
|
-
class: "loader-inner",
|
|
119
|
-
cx: "20",
|
|
120
|
-
cy: "20",
|
|
121
|
-
r: "17"
|
|
122
|
-
})], -1), c[1] ||= a("span", {
|
|
123
|
-
role: "status",
|
|
124
|
-
class: "visually-hidden"
|
|
125
|
-
}, "Loading", -1)], 64)) : p(t.$slots, "trailing-action", {}, void 0, void 0, 3)
|
|
126
|
-
], 2),
|
|
127
|
-
(n.helperText || t.$slots["helper-text"]) && !n.invalid ? (f(), i("p", {
|
|
128
|
-
key: 0,
|
|
129
|
-
id: b.value,
|
|
130
|
-
class: "helper-text"
|
|
131
|
-
}, [p(t.$slots, "helper-text", {}, () => [s(m(n.helperText), 1)])], 8, T)) : r("", !0),
|
|
132
|
-
n.invalid && (n.errorText || t.$slots["error-text"]) ? (f(), i("p", {
|
|
133
|
-
key: 1,
|
|
134
|
-
id: O.value,
|
|
135
|
-
class: "error-text"
|
|
136
|
-
}, [p(t.$slots, "error-text", {}, () => [s(m(n.errorText), 1)])], 8, E)) : r("", !0),
|
|
137
|
-
n.helperLinkHref && (n.helperLink || t.$slots["helper-link"]) ? (f(), i("a", {
|
|
138
|
-
key: 2,
|
|
139
|
-
id: A.value,
|
|
140
|
-
href: n.helperLinkHref,
|
|
141
|
-
"aria-labelledby": `${A.value} ${k.value}`,
|
|
142
|
-
class: "link link-small"
|
|
143
|
-
}, [p(t.$slots, "helper-link", {}, () => [s(m(n.helperLink), 1)]), c[2] ||= a("span", { class: "visually-hidden" }, "on", -1)], 8, D)) : r("", !0)
|
|
144
|
-
], 2));
|
|
145
|
-
}
|
|
146
|
-
}), k = /* @__PURE__ */ c({
|
|
147
|
-
inheritAttrs: !1,
|
|
148
|
-
__name: "VueTextInput",
|
|
149
|
-
props: {
|
|
150
|
-
modelValue: { default: "" },
|
|
151
|
-
modelModifiers: {}
|
|
152
|
-
},
|
|
153
|
-
emits: /*@__PURE__*/ l(["input", "change"], ["update:modelValue"]),
|
|
154
|
-
setup(e, { emit: t }) {
|
|
155
|
-
let r = v(e, "modelValue"), i = t;
|
|
156
|
-
function a(e) {
|
|
157
|
-
r.value = e.target.value, i("input", e);
|
|
158
|
-
}
|
|
159
|
-
function s(e) {
|
|
160
|
-
r.value = e.target.value, i("change", e);
|
|
161
|
-
}
|
|
162
|
-
return (e, t) => (f(), n(O, u(e.$attrs, {
|
|
163
|
-
value: r.value,
|
|
164
|
-
onInput: a,
|
|
165
|
-
onChange: s
|
|
166
|
-
}), o({ _: 2 }, [
|
|
167
|
-
e.$slots.label ? {
|
|
168
|
-
name: "label",
|
|
169
|
-
fn: b(() => [p(e.$slots, "label")]),
|
|
170
|
-
key: "0"
|
|
171
|
-
} : void 0,
|
|
172
|
-
e.$slots["leading-icon"] ? {
|
|
173
|
-
name: "leading-icon",
|
|
174
|
-
fn: b(() => [p(e.$slots, "leading-icon")]),
|
|
175
|
-
key: "1"
|
|
176
|
-
} : void 0,
|
|
177
|
-
e.$slots["trailing-action"] ? {
|
|
178
|
-
name: "trailing-action",
|
|
179
|
-
fn: b(() => [p(e.$slots, "trailing-action")]),
|
|
180
|
-
key: "2"
|
|
181
|
-
} : void 0,
|
|
182
|
-
e.$slots["helper-text"] ? {
|
|
183
|
-
name: "helper-text",
|
|
184
|
-
fn: b(() => [p(e.$slots, "helper-text")]),
|
|
185
|
-
key: "3"
|
|
186
|
-
} : void 0,
|
|
187
|
-
e.$slots["error-text"] ? {
|
|
188
|
-
name: "error-text",
|
|
189
|
-
fn: b(() => [p(e.$slots, "error-text")]),
|
|
190
|
-
key: "4"
|
|
191
|
-
} : void 0,
|
|
192
|
-
e.$slots["helper-link"] ? {
|
|
193
|
-
name: "helper-link",
|
|
194
|
-
fn: b(() => [p(e.$slots, "helper-link")]),
|
|
195
|
-
key: "5"
|
|
196
|
-
} : void 0
|
|
197
|
-
]), 1040, ["value"]));
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
//#endregion
|
|
201
|
-
export { k as t };
|