@central-design-system/components 3.0.0-alpha.2 → 3.0.0-alpha.3
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/cds.css +1 -1
- package/dist/cds.es.js +101 -101
- package/dist/cds.umd.js +1 -1
- package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +20 -4
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +125 -64
- package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +35 -5
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +20 -4
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +133 -116
- package/dist/components/CdsForm/CdsForm.vue.d.ts +13 -3
- package/dist/components/CdsInput/CdsInput.vue.d.ts +8 -2
- package/dist/components/CdsLink/CdsLink.vue.d.ts +9 -2
- package/dist/components/CdsList/CdsList.vue.d.ts +46 -13
- package/dist/components/CdsList/CdsListItem.vue.d.ts +8 -2
- package/dist/components/CdsMenu/CdsMenu.vue.d.ts +16 -6
- package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +20 -10
- package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +9 -3
- package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +9 -3
- package/dist/components/CdsSelect/CdsSelect.vue.d.ts +57 -36
- package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +14 -4
- package/dist/components/CdsTag/CdsTag.vue.d.ts +9 -2
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +63 -21
- package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +91 -26
- package/package.json +1 -1
- package/src/scss/themes/index.ts +1 -1
package/dist/cds.es.js
CHANGED
|
@@ -2615,9 +2615,9 @@ const ul = /* @__PURE__ */ de(ll, [["render", rl]]), il = "CdsLink", cl = h({
|
|
|
2615
2615
|
...tn(),
|
|
2616
2616
|
...sn()
|
|
2617
2617
|
},
|
|
2618
|
-
emits:
|
|
2619
|
-
|
|
2620
|
-
|
|
2618
|
+
emits: {
|
|
2619
|
+
click: (e) => !0
|
|
2620
|
+
},
|
|
2621
2621
|
setup(e, { emit: t }) {
|
|
2622
2622
|
const { href: n, to: a, tag: s, handleClick: o } = nn(e, t), { disabledClasses: l } = on(e);
|
|
2623
2623
|
return {
|
|
@@ -3053,9 +3053,9 @@ const Ps = /* @__PURE__ */ de(Tl, [["render", Nl]]), mn = "CdsInput", Hl = h({
|
|
|
3053
3053
|
"onClick:prepend": Function,
|
|
3054
3054
|
"onClick:append": Function
|
|
3055
3055
|
},
|
|
3056
|
-
emits:
|
|
3057
|
-
"update:modelValue"
|
|
3058
|
-
|
|
3056
|
+
emits: {
|
|
3057
|
+
"update:modelValue": (e) => !0
|
|
3058
|
+
},
|
|
3059
3059
|
setup(e, { slots: t }) {
|
|
3060
3060
|
const { id: n } = Ze(e, t), a = m(() => `${n.value}-messages`), {
|
|
3061
3061
|
errorMessages: s,
|
|
@@ -3301,11 +3301,11 @@ const tr = /* @__PURE__ */ de(Jl, [["render", er]]), Ba = "CdsCheckbox", nr = h(
|
|
|
3301
3301
|
...qe(),
|
|
3302
3302
|
...ft()
|
|
3303
3303
|
},
|
|
3304
|
-
emits:
|
|
3305
|
-
"update:focused",
|
|
3306
|
-
"update:modelValue",
|
|
3307
|
-
"update:indeterminate"
|
|
3308
|
-
|
|
3304
|
+
emits: {
|
|
3305
|
+
"update:focused": (e) => !0,
|
|
3306
|
+
"update:modelValue": (e) => !0,
|
|
3307
|
+
"update:indeterminate": (e) => !0
|
|
3308
|
+
},
|
|
3309
3309
|
setup(e, { attrs: t, slots: n }) {
|
|
3310
3310
|
const a = Se(e, "modelValue"), s = Se(e, "indeterminate"), { id: o, hasDescription: l } = Ze(e, n, "checkbox"), { isFocused: r, focus: u, blur: i } = mt(e, Ba), { inputProps: c } = St(e, [
|
|
3311
3311
|
"indeterminate",
|
|
@@ -3416,17 +3416,17 @@ const la = /* @__PURE__ */ de(nr, [["render", sr]]), Tt = "CdsTextInput", or = h
|
|
|
3416
3416
|
...ft(),
|
|
3417
3417
|
...Pt()
|
|
3418
3418
|
},
|
|
3419
|
-
emits:
|
|
3420
|
-
"update:focused",
|
|
3421
|
-
"update:modelValue",
|
|
3422
|
-
"click:clear",
|
|
3423
|
-
"click:prepend",
|
|
3424
|
-
"click:append",
|
|
3425
|
-
"click:prependInner",
|
|
3426
|
-
"click:appendInner",
|
|
3427
|
-
"click:control",
|
|
3428
|
-
"mousedown:control"
|
|
3429
|
-
|
|
3419
|
+
emits: {
|
|
3420
|
+
"update:focused": (e) => !0,
|
|
3421
|
+
"update:modelValue": (e) => !0,
|
|
3422
|
+
"click:clear": (e) => !0,
|
|
3423
|
+
"click:prepend": (e) => !0,
|
|
3424
|
+
"click:append": (e) => !0,
|
|
3425
|
+
"click:prependInner": (e) => !0,
|
|
3426
|
+
"click:appendInner": (e) => !0,
|
|
3427
|
+
"click:control": (e) => !0,
|
|
3428
|
+
"mousedown:control": (e) => !0
|
|
3429
|
+
},
|
|
3430
3430
|
setup(e, { attrs: t, emit: n, slots: a }) {
|
|
3431
3431
|
const s = Se(e, "modelValue"), { id: o, hasLabel: l, hasDescription: r } = Ze(e, a, Tt), { hasPrepend: u, hasAppend: i, iconClasses: c } = dt(e, a, Tt), { hasLoading: d, loadingClasses: v } = $n(e), { isFocused: f, focus: C, blur: y } = mt(e, Tt), {
|
|
3432
3432
|
hasPrependInnerIcon: $,
|
|
@@ -4285,11 +4285,11 @@ const Wn = {
|
|
|
4285
4285
|
...In(),
|
|
4286
4286
|
...un()
|
|
4287
4287
|
},
|
|
4288
|
-
emits:
|
|
4289
|
-
"update:modelValue",
|
|
4290
|
-
"click:outside",
|
|
4291
|
-
|
|
4292
|
-
|
|
4288
|
+
emits: {
|
|
4289
|
+
"update:modelValue": (e) => !0,
|
|
4290
|
+
"click:outside": (e) => !0,
|
|
4291
|
+
afterLeave: () => !0
|
|
4292
|
+
},
|
|
4293
4293
|
setup(e, { attrs: t, emit: n, slots: a }) {
|
|
4294
4294
|
const s = Se(e, "modelValue"), o = m({
|
|
4295
4295
|
get: () => s.value,
|
|
@@ -4458,9 +4458,9 @@ const Fr = "CdsMenu", ra = h({
|
|
|
4458
4458
|
...bs(),
|
|
4459
4459
|
...un()
|
|
4460
4460
|
},
|
|
4461
|
-
emits:
|
|
4462
|
-
"update:modelValue"
|
|
4463
|
-
|
|
4461
|
+
emits: {
|
|
4462
|
+
"update:modelValue": (e) => !0
|
|
4463
|
+
},
|
|
4464
4464
|
setup(e, { slots: t, emit: n }) {
|
|
4465
4465
|
const a = Se(e, "modelValue"), { scopeId: s } = Cs(), o = en(), l = m(() => e.id || `cds-menu-${o}`), r = _(), u = Ye(jn, null), i = _(0);
|
|
4466
4466
|
nt(jn, {
|
|
@@ -4647,12 +4647,12 @@ const Ln = "CdsList", ua = h({
|
|
|
4647
4647
|
openStrategy: "list"
|
|
4648
4648
|
})
|
|
4649
4649
|
},
|
|
4650
|
-
emits:
|
|
4651
|
-
"update:selected",
|
|
4652
|
-
"update:opened",
|
|
4653
|
-
"click:open",
|
|
4654
|
-
"click:select"
|
|
4655
|
-
|
|
4650
|
+
emits: {
|
|
4651
|
+
"update:selected": (e) => !0,
|
|
4652
|
+
"update:opened": (e) => !0,
|
|
4653
|
+
"click:open": (e) => !0,
|
|
4654
|
+
"click:select": (e) => !0
|
|
4655
|
+
},
|
|
4656
4656
|
setup(e, t) {
|
|
4657
4657
|
const { items: n } = Et(e), { disabledClasses: a } = on(e), { sizeClasses: s } = Bt(e, Ln), { darkClasses: o } = Sn(e, Ln), { open: l, select: r } = Ho(e, t), { contentRef: u, onFocus: i, onFocusin: c, onFocusout: d, onKeydown: v, focus: f } = Pr(), C = m(() => e.lines ? `cds-list--lines-${e.lines}` : void 0), y = Ys({ ...e, items: n.value }, t)();
|
|
4658
4658
|
return Hs(), _n(
|
|
@@ -4705,9 +4705,9 @@ const Ha = "CdsListItem", Or = h({
|
|
|
4705
4705
|
...at(),
|
|
4706
4706
|
...sn()
|
|
4707
4707
|
},
|
|
4708
|
-
emits:
|
|
4709
|
-
|
|
4710
|
-
|
|
4708
|
+
emits: {
|
|
4709
|
+
click: (e) => !0
|
|
4710
|
+
},
|
|
4711
4711
|
setup(e, { slots: t, emit: n }) {
|
|
4712
4712
|
const a = zs(), { href: s, to: o, ...l } = nn(e, n), r = m(() => {
|
|
4713
4713
|
var O;
|
|
@@ -4946,9 +4946,9 @@ const js = /* @__PURE__ */ de(Yr, [["render", Ur]]), pn = "CdsTag", Wr = h({
|
|
|
4946
4946
|
...Fo(),
|
|
4947
4947
|
...$t()
|
|
4948
4948
|
},
|
|
4949
|
-
emits:
|
|
4950
|
-
|
|
4951
|
-
|
|
4949
|
+
emits: {
|
|
4950
|
+
remove: (e) => !0
|
|
4951
|
+
},
|
|
4952
4952
|
setup(e, { slots: t, emit: n }) {
|
|
4953
4953
|
const { sizeClasses: a } = Bt(e, pn), { disabledClasses: s } = on(e), { colorClasses: o } = Po(e, pn), { isLink: l, tag: r, href: u, to: i } = nn(e, n);
|
|
4954
4954
|
!e.text && !t.default && Jt(`'text' is a required prop for ${pn}`);
|
|
@@ -5046,13 +5046,13 @@ const Ht = "CdsCombobox", Qr = h({
|
|
|
5046
5046
|
}),
|
|
5047
5047
|
...un()
|
|
5048
5048
|
},
|
|
5049
|
-
emits:
|
|
5050
|
-
"update:focused",
|
|
5051
|
-
"update:modelValue",
|
|
5052
|
-
"update:menu",
|
|
5053
|
-
"update:search",
|
|
5054
|
-
"update:selectedAll"
|
|
5055
|
-
|
|
5049
|
+
emits: {
|
|
5050
|
+
"update:focused": (e) => !0,
|
|
5051
|
+
"update:modelValue": (e) => !0,
|
|
5052
|
+
"update:menu": (e) => !0,
|
|
5053
|
+
"update:search": (e) => !0,
|
|
5054
|
+
"update:selectedAll": (e) => !0
|
|
5055
|
+
},
|
|
5056
5056
|
setup(e, { emit: t, slots: n }) {
|
|
5057
5057
|
var Ne, Ee;
|
|
5058
5058
|
const { hasLabel: a, hasDescription: s } = Ze(e, n, Ht), { hasPrependInnerIcon: o } = rn(e, n, Ht), { hasAppend: l, hasPrepend: r } = dt(e, n, Ht), { isFocused: u, focus: i } = mt(e, Ht), { items: c, transformIn: d, transformOut: v } = Et(e), { internalMenu: f, menuRef: C } = Is(e), { model: y, selections: $, selected: B, selectStrategy: b, selectedAll: R, selectedIndeterminate: j } = ws(
|
|
@@ -5887,12 +5887,12 @@ const su = "CdsDatePicker", ou = h({
|
|
|
5887
5887
|
...nu(),
|
|
5888
5888
|
...sl()
|
|
5889
5889
|
},
|
|
5890
|
-
emits:
|
|
5891
|
-
"update:modelValue",
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5890
|
+
emits: {
|
|
5891
|
+
"update:modelValue": (...e) => !0,
|
|
5892
|
+
navigation: ({ year: e, month: t }) => !0,
|
|
5893
|
+
rangeStart: (e) => !0,
|
|
5894
|
+
rangeEnd: ({ from: e, to: t }) => !0
|
|
5895
|
+
},
|
|
5896
5896
|
setup(e, { slots: t, emit: n }) {
|
|
5897
5897
|
const a = Se(e, "modelValue", [], (M) => kt(M)), { tabindex: s, getCurrentDate: o, getShortDate: l, getLocale: r, getMask: u, decodeString: i } = ol(e), c = _(r()), d = _(u()), {
|
|
5898
5898
|
today: v,
|
|
@@ -6446,11 +6446,11 @@ const Ya = "CdsDrawer", lu = h({
|
|
|
6446
6446
|
tag: "nav"
|
|
6447
6447
|
})
|
|
6448
6448
|
},
|
|
6449
|
-
emits:
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
"update:modelValue"
|
|
6453
|
-
|
|
6449
|
+
emits: {
|
|
6450
|
+
opened: (e) => !0,
|
|
6451
|
+
closed: (e) => !0,
|
|
6452
|
+
"update:modelValue": (e) => !0
|
|
6453
|
+
},
|
|
6454
6454
|
setup(e, { emit: t, slots: n, attrs: a }) {
|
|
6455
6455
|
const s = _(), o = Se(e, "modelValue", null, (B) => !!B), l = m(() => !e.permanent && e.temporary), r = _(!1), { darkClasses: u } = Sn(e, Ya), i = m(() => ({
|
|
6456
6456
|
"cds-drawer--active": o.value,
|
|
@@ -6469,7 +6469,7 @@ const Ya = "CdsDrawer", lu = h({
|
|
|
6469
6469
|
() => o.value,
|
|
6470
6470
|
(B) => {
|
|
6471
6471
|
var b;
|
|
6472
|
-
B ? (f = document.activeElement, (b = s.value) == null || b.focus(), t("opened")) : (f && f.focus(), t("closed"));
|
|
6472
|
+
B ? (f = document.activeElement, (b = s.value) == null || b.focus(), t("opened", B)) : (f && f.focus(), t("closed", B));
|
|
6473
6473
|
}
|
|
6474
6474
|
), {
|
|
6475
6475
|
attrs: a,
|
|
@@ -6546,12 +6546,12 @@ const du = /* @__PURE__ */ de(lu, [["render", cu]]), Yt = "CdsDropdown", fu = h(
|
|
|
6546
6546
|
...wt(),
|
|
6547
6547
|
...un()
|
|
6548
6548
|
},
|
|
6549
|
-
emits:
|
|
6550
|
-
"update:focused",
|
|
6551
|
-
"update:modelValue",
|
|
6552
|
-
"update:menu",
|
|
6553
|
-
"update:selectedAll"
|
|
6554
|
-
|
|
6549
|
+
emits: {
|
|
6550
|
+
"update:focused": (e) => !0,
|
|
6551
|
+
"update:modelValue": (e) => !0,
|
|
6552
|
+
"update:menu": (e) => !0,
|
|
6553
|
+
"update:selectedAll": (e) => !0
|
|
6554
|
+
},
|
|
6555
6555
|
setup(e, { slots: t, emit: n }) {
|
|
6556
6556
|
const { hasLabel: a, hasDescription: s } = Ze(e, t, Yt), { hasPrependInnerIcon: o } = rn(e, t, Yt), { hasAppend: l, hasPrepend: r } = dt(e, t, Yt), { isFocused: u, focus: i } = mt(e, Yt), { items: c, transformIn: d, transformOut: v } = Et(e), { internalMenu: f, menuRef: C } = Is(e), { model: y, selections: $, selected: B, selectedAll: b, selectedIndeterminate: R, selectStrategy: j, displayItems: V } = ws(
|
|
6557
6557
|
e,
|
|
@@ -7218,10 +7218,10 @@ const Du = /* @__PURE__ */ de(ku, [["render", Iu]]), Mu = "CdsForm", Au = h({
|
|
|
7218
7218
|
props: {
|
|
7219
7219
|
...Go()
|
|
7220
7220
|
},
|
|
7221
|
-
emits:
|
|
7222
|
-
"update:modelValue",
|
|
7223
|
-
|
|
7224
|
-
|
|
7221
|
+
emits: {
|
|
7222
|
+
"update:modelValue": (e) => !0,
|
|
7223
|
+
submit: (e) => !0
|
|
7224
|
+
},
|
|
7225
7225
|
setup(e, { emit: t, slots: n }) {
|
|
7226
7226
|
const a = Uo(e), s = _(), o = m(() => !!e.label || !!n.label), l = m(() => !!e.description || !!n.description);
|
|
7227
7227
|
function r(i) {
|
|
@@ -7494,9 +7494,9 @@ const Gu = "CdsGrid", Uu = h({
|
|
|
7494
7494
|
direction: "vertical"
|
|
7495
7495
|
})
|
|
7496
7496
|
},
|
|
7497
|
-
emits:
|
|
7498
|
-
"update:modelValue"
|
|
7499
|
-
|
|
7497
|
+
emits: {
|
|
7498
|
+
"update:modelValue": (e) => !0
|
|
7499
|
+
},
|
|
7500
7500
|
setup(e, { slots: t }) {
|
|
7501
7501
|
const n = Se(e, "modelValue", () => []), { hasLabel: a, hasDescription: s } = Ze(e, t, Rn), { directionClasses: o } = hs(e, Rn), { inputProps: l } = St(e, ["direction"]), r = (u) => {
|
|
7502
7502
|
n.value = u;
|
|
@@ -7560,9 +7560,9 @@ const Ju = /* @__PURE__ */ de(qu, [["render", Qu]]), za = "CdsRadio", xu = h({
|
|
|
7560
7560
|
hideMessages: !0
|
|
7561
7561
|
})
|
|
7562
7562
|
},
|
|
7563
|
-
emits:
|
|
7564
|
-
"update:focused"
|
|
7565
|
-
|
|
7563
|
+
emits: {
|
|
7564
|
+
"update:focused": (e) => !0
|
|
7565
|
+
},
|
|
7566
7566
|
setup(e, { attrs: t, slots: n }) {
|
|
7567
7567
|
const { id: a, hasLabel: s, hasDescription: o } = Ze(e, n, "radio"), { isFocused: l, focus: r, blur: u } = mt(e, za), { rootAttrs: i, inputAttrs: c } = ln(t), { inputProps: d } = St(e, ["hideMessages"]), { isGroup: v, model: f, disabledGroup: C, readonlyGroup: y, errorGroup: $, handleChangeRadio: B } = Ye(
|
|
7568
7568
|
Us,
|
|
@@ -7654,15 +7654,15 @@ const ni = /* @__PURE__ */ de(xu, [["render", ti]]), zt = "CdsSelect", ai = h({
|
|
|
7654
7654
|
...Pt(),
|
|
7655
7655
|
...wt()
|
|
7656
7656
|
},
|
|
7657
|
-
emits:
|
|
7658
|
-
"update:focused",
|
|
7659
|
-
"update:modelValue",
|
|
7660
|
-
"click:clear",
|
|
7661
|
-
"click:prepend",
|
|
7662
|
-
"click:append",
|
|
7663
|
-
"click:prependInner",
|
|
7664
|
-
"click:appendInner"
|
|
7665
|
-
|
|
7657
|
+
emits: {
|
|
7658
|
+
"update:focused": (e) => !0,
|
|
7659
|
+
"update:modelValue": (e) => !0,
|
|
7660
|
+
"click:clear": (e) => !0,
|
|
7661
|
+
"click:prepend": (e) => !0,
|
|
7662
|
+
"click:append": (e) => !0,
|
|
7663
|
+
"click:prependInner": (e) => !0,
|
|
7664
|
+
"click:appendInner": (e) => !0
|
|
7665
|
+
},
|
|
7666
7666
|
setup(e, { slots: t, attrs: n, emit: a }) {
|
|
7667
7667
|
const s = Se(e, "modelValue"), { id: o, hasLabel: l, hasDescription: r } = Ze(e, t, zt), { hasPrepend: u, hasAppend: i, iconClasses: c } = dt(e, t, zt), { hasLoading: d, loadingClasses: v } = $n(e), { isFocused: f, focus: C, blur: y } = mt(e, zt), {
|
|
7668
7668
|
hasPrependInnerIcon: $,
|
|
@@ -7901,17 +7901,17 @@ const fi = /* @__PURE__ */ de(ai, [["render", di]]), ja = "CdsSidebar", mi = h({
|
|
|
7901
7901
|
...Ot(),
|
|
7902
7902
|
...rs()
|
|
7903
7903
|
},
|
|
7904
|
-
emits:
|
|
7905
|
-
"update:modelValue",
|
|
7906
|
-
"click:outside"
|
|
7907
|
-
|
|
7904
|
+
emits: {
|
|
7905
|
+
"update:modelValue": (e) => !0,
|
|
7906
|
+
"click:outside": (e) => !0
|
|
7907
|
+
},
|
|
7908
7908
|
setup(e, { attrs: t, slots: n, emit: a }) {
|
|
7909
7909
|
const { sizeClasses: s } = Bt(e, ja), o = () => {
|
|
7910
7910
|
a("update:modelValue", !1);
|
|
7911
7911
|
}, l = () => {
|
|
7912
7912
|
a("update:modelValue", !0);
|
|
7913
|
-
}, r = () => {
|
|
7914
|
-
a("click:outside");
|
|
7913
|
+
}, r = (u) => {
|
|
7914
|
+
a("click:outside", u);
|
|
7915
7915
|
};
|
|
7916
7916
|
return J(
|
|
7917
7917
|
() => e.modelValue,
|
|
@@ -8112,15 +8112,15 @@ const Ei = /* @__PURE__ */ de(Pi, [["render", Bi]]), jt = "CdsTextArea", Li = h(
|
|
|
8112
8112
|
default: !1
|
|
8113
8113
|
}
|
|
8114
8114
|
},
|
|
8115
|
-
emits:
|
|
8116
|
-
"update:focused",
|
|
8117
|
-
"update:modelValue",
|
|
8118
|
-
"click:clear",
|
|
8119
|
-
"click:prepend",
|
|
8120
|
-
"click:append",
|
|
8121
|
-
"click:prependInner",
|
|
8122
|
-
"click:appendInner"
|
|
8123
|
-
|
|
8115
|
+
emits: {
|
|
8116
|
+
"update:focused": (e) => !0,
|
|
8117
|
+
"update:modelValue": (e) => !0,
|
|
8118
|
+
"click:clear": (e) => !0,
|
|
8119
|
+
"click:prepend": (e) => !0,
|
|
8120
|
+
"click:append": (e) => !0,
|
|
8121
|
+
"click:prependInner": (e) => !0,
|
|
8122
|
+
"click:appendInner": (e) => !0
|
|
8123
|
+
},
|
|
8124
8124
|
setup(e, { slots: t, attrs: n, emit: a }) {
|
|
8125
8125
|
const s = Se(e, "modelValue"), { id: o, hasLabel: l, hasDescription: r } = Ze(e, t, jt), { hasPrepend: u, hasAppend: i, iconClasses: c } = dt(e, t, jt), { hasLoading: d, loadingClasses: v } = $n(e), { isFocused: f, focus: C, blur: y } = mt(e, jt), {
|
|
8126
8126
|
hasPrependInnerIcon: $,
|