@orangelogic/design-system 5.3.0 → 5.4.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/library/chunks/{asset-link-format.BbDrlRL5.js → asset-link-format.DivrkCU8.js} +1 -1
- package/library/chunks/{bicolor-picker.DoLf8yCy.js → bicolor-picker.iaHGgdLF.js} +1 -1
- package/library/chunks/{block-width.nVsYTBw6.js → block-width.POTMFTjI.js} +14 -14
- package/library/chunks/{border-input-group.CQ-BZvjI.js → border-input-group.DeyMS8em.js} +1 -1
- package/library/chunks/{color-picker.C1CCN1nS.js → color-picker.m4YGTuTT.js} +2 -2
- package/library/chunks/{color-swatch-group.BAIZMur5.js → color-swatch-group.D0Zb-aLS.js} +2 -2
- package/library/chunks/{config-manager.DijEOQly.js → config-manager.BolW1o78.js} +11 -11
- package/library/chunks/{configs-controller.B91MEy-4.js → configs-controller.C9zE4EFe.js} +3 -3
- package/library/chunks/{corner-position-input-group.zh-KziJB.js → corner-position-input-group.BozgblBy.js} +1 -1
- package/library/chunks/{dynamic-select.hfD2F6e4.js → dynamic-select.DlUih_fV.js} +1 -1
- package/library/chunks/{file-on-demand.DoiRhsJ7.js → file-on-demand.BZon-Acv.js} +2 -2
- package/library/chunks/{folder-select.DrM6sqAw.js → folder-select.B9QiAYOm.js} +1 -1
- package/library/chunks/{pagination.CVVtlgOf.js → pagination.mLyq4VbG.js} +1 -1
- package/library/chunks/{select.D-QQK2rH.js → select.Ci6S727F.js} +56 -41
- package/library/chunks/{shadow-input-group.Ch6vHKZp.js → shadow-input-group.DDH3aojj.js} +1 -1
- package/library/chunks/{sidebar.BftNiyQt.js → sidebar.Cyk-Ba6F.js} +1 -1
- package/library/chunks/{size-input-group.CbsKvFaO.js → size-input-group.C0nT1ueP.js} +1 -1
- package/library/chunks/{src.DEO8lR91.js → src.DtBTQppT.js} +5 -5
- package/library/chunks/{tab-group.B6O3pBw0.js → tab-group.VlKoqQXw.js} +838 -837
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +8 -8
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +8 -8
- package/library/components/organisms.js +3 -3
- package/library/components/pagination.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +22 -22
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +6 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +5 -0
- package/library/react-web-component.d.ts +8 -0
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import { t as x } from "./repeat.CKv9FPlC.js";
|
|
|
24
24
|
import { t as le } from "./input.1CW0nLBL.js";
|
|
25
25
|
import { t as S } from "./option.DXo-QZhI.js";
|
|
26
26
|
import { t as C } from "./space.Dd8jezXK.js";
|
|
27
|
-
import { t as w } from "./select.
|
|
27
|
+
import { t as w } from "./select.Ci6S727F.js";
|
|
28
28
|
import { t as ue } from "./visually-hidden.Bv3SInZp.js";
|
|
29
29
|
import { D as de, E as fe, T as pe, b as me, f as he, g as ge, m as _e, x as ve } from "./src.D0_s2pWf.js";
|
|
30
30
|
import { t as T } from "./details.BXMJk9oy.js";
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
5
|
import { t as c } from "./style-map.DPGQIxip.js";
|
|
6
6
|
import { t as l } from "./space.Dd8jezXK.js";
|
|
7
|
-
import { t as u } from "./color-picker.
|
|
7
|
+
import { t as u } from "./color-picker.m4YGTuTT.js";
|
|
8
8
|
//#region ../../packages/molecules/src/bicolor-picker/bicolor-picker.styles.ts
|
|
9
9
|
var d = t``, f = class extends a {
|
|
10
10
|
constructor(...e) {
|
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.CCSVc6Z6.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.DtBTQppT.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as le } from "./debounce.Ci-xdsHE.js";
|
|
21
21
|
import { t as b } from "./button.VUFrOP0u.js";
|
|
@@ -42,13 +42,13 @@ import { n as De, r as Oe, t as ke } from "./ref.CU1NC5AM.js";
|
|
|
42
42
|
import { t as Ae } from "./textarea.BQV58bk8.js";
|
|
43
43
|
import { n as je, t as T } from "./option.DXo-QZhI.js";
|
|
44
44
|
import { t as E } from "./space.Dd8jezXK.js";
|
|
45
|
-
import { t as D } from "./select.
|
|
45
|
+
import { t as D } from "./select.Ci6S727F.js";
|
|
46
46
|
import { t as Me } from "./tab.DHblc3F_.js";
|
|
47
|
-
import { t as Ne } from "./tab-group.
|
|
47
|
+
import { t as Ne } from "./tab-group.VlKoqQXw.js";
|
|
48
48
|
import { t as Pe } from "./map.ByDuLduF.js";
|
|
49
49
|
import { t as Fe } from "./tab-panel.BxeoKuSv.js";
|
|
50
50
|
import { t as Ie } from "./visually-hidden.Bv3SInZp.js";
|
|
51
|
-
import { t as Le } from "./color-picker.
|
|
51
|
+
import { t as Le } from "./color-picker.m4YGTuTT.js";
|
|
52
52
|
import { C as Re, D as ze, E as Be, H as Ve, K as He, S as Ue, T as We, W as Ge, b as Ke, k as qe, z as Je } from "./src.D0_s2pWf.js";
|
|
53
53
|
import { a as Ye, i as Xe, n as Ze, o as Qe, r as $e, s as et, t as O } from "./dialog.C21jNK4r.js";
|
|
54
54
|
import { t as tt } from "./divider.CqSNZCU8.js";
|
|
@@ -65,23 +65,23 @@ import { t as gt } from "./radio-card.C_GVggMn.js";
|
|
|
65
65
|
import { t as _t } from "./radio-group.DfR13lVB.js";
|
|
66
66
|
import { t as vt } from "./switch.BuleQplE.js";
|
|
67
67
|
import { t as yt } from "./v4.JyXW8GUB.js";
|
|
68
|
-
import { t as bt } from "./bicolor-picker.
|
|
69
|
-
import { t as xt } from "./border-input-group.
|
|
68
|
+
import { t as bt } from "./bicolor-picker.iaHGgdLF.js";
|
|
69
|
+
import { t as xt } from "./border-input-group.DeyMS8em.js";
|
|
70
70
|
import { n as St, t as Ct } from "./confirm-popover.BRYw_62p.js";
|
|
71
|
-
import { t as wt } from "./corner-position-input-group.
|
|
71
|
+
import { t as wt } from "./corner-position-input-group.BozgblBy.js";
|
|
72
72
|
import { t as Tt } from "./cropper.D8Uu43xy.js";
|
|
73
|
-
import { t as Et } from "./dynamic-select.
|
|
73
|
+
import { t as Et } from "./dynamic-select.DlUih_fV.js";
|
|
74
74
|
import { t as Dt } from "./string-array.F2GuxHp0.js";
|
|
75
|
-
import { n as M, r as Ot, t as N } from "./folder-select.
|
|
75
|
+
import { n as M, r as Ot, t as N } from "./folder-select.B9QiAYOm.js";
|
|
76
76
|
import { t as kt } from "./choose.C2vpqhLc.js";
|
|
77
77
|
import { t as At } from "./masonry.BrOEearB.js";
|
|
78
78
|
import { t as jt } from "./padding-input-group.tjIBMptQ.js";
|
|
79
79
|
import { t as Mt } from "./position-picker.DW9YTney.js";
|
|
80
|
-
import { t as Nt } from "./shadow-input-group.
|
|
81
|
-
import { t as Pt } from "./size-input-group.
|
|
82
|
-
import { C as Ft, S as It, T as Lt, _ as Rt, b as zt, c as Bt, f as Vt, g as Ht, h as Ut, i as Wt, l as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as P, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./asset-link-format.
|
|
83
|
-
import { c as nn, d as rn, f as an, n as on, u as sn } from "./color-swatch-group.
|
|
84
|
-
import { $ as cn, B as F, G as ln, O as un, P as dn, Q as fn, T as pn, X as mn, Y as hn, Z as gn, _ as _n, at as vn, ct as I, et as yn, lt as bn, ot as L, st as xn, v as Sn, w as Cn, x as wn } from "./configs-controller.
|
|
80
|
+
import { t as Nt } from "./shadow-input-group.DDH3aojj.js";
|
|
81
|
+
import { t as Pt } from "./size-input-group.C0nT1ueP.js";
|
|
82
|
+
import { C as Ft, S as It, T as Lt, _ as Rt, b as zt, c as Bt, f as Vt, g as Ht, h as Ut, i as Wt, l as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as P, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./asset-link-format.DivrkCU8.js";
|
|
83
|
+
import { c as nn, d as rn, f as an, n as on, u as sn } from "./color-swatch-group.D0Zb-aLS.js";
|
|
84
|
+
import { $ as cn, B as F, G as ln, O as un, P as dn, Q as fn, T as pn, X as mn, Y as hn, Z as gn, _ as _n, at as vn, ct as I, et as yn, lt as bn, ot as L, st as xn, v as Sn, w as Cn, x as wn } from "./configs-controller.C9zE4EFe.js";
|
|
85
85
|
import { a as Tn } from "./cloneDeep.C6x5LNv3.js";
|
|
86
86
|
//#region ../../packages/types/src/icon-picker.ts
|
|
87
87
|
var En = /* @__PURE__ */ function(e) {
|
|
@@ -5,7 +5,7 @@ import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
|
5
5
|
import { t as c } from "./i18n.qIMzqW-F.js";
|
|
6
6
|
import { t as l } from "./input.1CW0nLBL.js";
|
|
7
7
|
import { t as u } from "./space.Dd8jezXK.js";
|
|
8
|
-
import { t as d } from "./bicolor-picker.
|
|
8
|
+
import { t as d } from "./bicolor-picker.iaHGgdLF.js";
|
|
9
9
|
//#region ../../packages/molecules/src/border-input-group/border-input-group.styles.ts
|
|
10
10
|
var f = t`.border-width{width:72px}`, p = class extends a {
|
|
11
11
|
constructor(...e) {
|
|
@@ -26,9 +26,9 @@ import { t as P } from "./repeat.CKv9FPlC.js";
|
|
|
26
26
|
import { t as F } from "./dropdown.DG5U64BM.js";
|
|
27
27
|
import { t as I } from "./input.1CW0nLBL.js";
|
|
28
28
|
import { t as L } from "./option.DXo-QZhI.js";
|
|
29
|
-
import { t as R } from "./select.
|
|
29
|
+
import { t as R } from "./select.Ci6S727F.js";
|
|
30
30
|
import { t as z } from "./tab.DHblc3F_.js";
|
|
31
|
-
import { t as B } from "./tab-group.
|
|
31
|
+
import { t as B } from "./tab-group.VlKoqQXw.js";
|
|
32
32
|
import { t as V } from "./tab-panel.BxeoKuSv.js";
|
|
33
33
|
import { t as H } from "./visually-hidden.Bv3SInZp.js";
|
|
34
34
|
//#region ../../packages/atoms/src/components/color-picker/color-picker.styles.ts
|
|
@@ -34,7 +34,7 @@ import { t as _e } from "./menu.DgRAUDo_.js";
|
|
|
34
34
|
import { t as ve } from "./menu-item.B6Lww_R9.js";
|
|
35
35
|
import { t as ye } from "./space.Dd8jezXK.js";
|
|
36
36
|
import { t as be } from "./unsafe-html.Cb838aX7.js";
|
|
37
|
-
import { t as xe } from "./select.
|
|
37
|
+
import { t as xe } from "./select.Ci6S727F.js";
|
|
38
38
|
import { t as Se } from "./guard.Cf17k6Vx.js";
|
|
39
39
|
import { a as Ce, l as we, p as Te, r as Ee } from "./date.kywrEgxd.js";
|
|
40
40
|
import { at as De, it as Oe, k as ke, lt as Ae, nt as je, st as Me, tt as Ne } from "./src.D0_s2pWf.js";
|
|
@@ -47,7 +47,7 @@ import { _ as Ve, c as He, g as Ue, l as We, v as Ge, y as Ke } from "./color.CI
|
|
|
47
47
|
import { f as qe, n as Je, r as Ye, t as Xe } from "./responsive.L9Csz2w2.js";
|
|
48
48
|
import Ze from "../components/format-number.js";
|
|
49
49
|
import { t as Qe } from "./menu-section.BzzA6L5E.js";
|
|
50
|
-
import { n as $e, t as et } from "./pagination.
|
|
50
|
+
import { n as $e, t as et } from "./pagination.mLyq4VbG.js";
|
|
51
51
|
import { t as tt } from "./sortable.esm.BVU0_hc5.js";
|
|
52
52
|
import { t as nt } from "./color-swatch.93BgkncM.js";
|
|
53
53
|
import { t as rt } from "./debounce.DrhImrNP.js";
|
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.VUFrOP0u.js";
|
|
15
15
|
import { t as ee } from "./tooltip.C11omEOs.js";
|
|
16
16
|
import { t as te } from "./line-clamp.BDFNqZZ8.js";
|
|
17
|
-
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.
|
|
17
|
+
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.POTMFTjI.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -29,9 +29,9 @@ import { n as xe, t as Se } from "./ref.CU1NC5AM.js";
|
|
|
29
29
|
import { t as Ce } from "./textarea.BQV58bk8.js";
|
|
30
30
|
import { t as we } from "./option.DXo-QZhI.js";
|
|
31
31
|
import { t as Te } from "./space.Dd8jezXK.js";
|
|
32
|
-
import { t as Ee } from "./select.
|
|
32
|
+
import { t as Ee } from "./select.Ci6S727F.js";
|
|
33
33
|
import { t as De } from "./tab.DHblc3F_.js";
|
|
34
|
-
import { t as z } from "./tab-group.
|
|
34
|
+
import { t as z } from "./tab-group.VlKoqQXw.js";
|
|
35
35
|
import { t as Oe } from "./map.ByDuLduF.js";
|
|
36
36
|
import { t as ke } from "./tab-panel.BxeoKuSv.js";
|
|
37
37
|
import { t as Ae } from "./visually-hidden.Bv3SInZp.js";
|
|
@@ -47,23 +47,23 @@ import { t as Re } from "./radio.BmN7pFIX.js";
|
|
|
47
47
|
import { t as ze } from "./radio-card.C_GVggMn.js";
|
|
48
48
|
import { t as Be } from "./radio-group.DfR13lVB.js";
|
|
49
49
|
import { t as Ve } from "./switch.BuleQplE.js";
|
|
50
|
-
import { t as He } from "./bicolor-picker.
|
|
51
|
-
import { t as Ue } from "./border-input-group.
|
|
50
|
+
import { t as He } from "./bicolor-picker.iaHGgdLF.js";
|
|
51
|
+
import { t as Ue } from "./border-input-group.DeyMS8em.js";
|
|
52
52
|
import { n as We, t as U } from "./confirm-popover.BRYw_62p.js";
|
|
53
|
-
import { t as Ge } from "./corner-position-input-group.
|
|
53
|
+
import { t as Ge } from "./corner-position-input-group.BozgblBy.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
|
-
import { t as Ke } from "./dynamic-select.
|
|
55
|
+
import { t as Ke } from "./dynamic-select.DlUih_fV.js";
|
|
56
56
|
import { t as G } from "./string-array.F2GuxHp0.js";
|
|
57
57
|
import { t as qe } from "./choose.C2vpqhLc.js";
|
|
58
58
|
import { t as Je } from "./padding-input-group.tjIBMptQ.js";
|
|
59
59
|
import { t as Ye } from "./position-picker.DW9YTney.js";
|
|
60
|
-
import { t as Xe } from "./shadow-input-group.
|
|
61
|
-
import { t as Ze } from "./size-input-group.
|
|
62
|
-
import { T as K } from "./asset-link-format.
|
|
60
|
+
import { t as Xe } from "./shadow-input-group.DDH3aojj.js";
|
|
61
|
+
import { t as Ze } from "./size-input-group.C0nT1ueP.js";
|
|
62
|
+
import { T as K } from "./asset-link-format.DivrkCU8.js";
|
|
63
63
|
import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
|
|
64
64
|
import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
|
|
65
65
|
import { i as tt } from "./_baseClone.CnI5Vpqn.js";
|
|
66
|
-
import { P as nt, l as J, s as rt, t as it } from "./configs-controller.
|
|
66
|
+
import { P as nt, l as J, s as rt, t as it } from "./configs-controller.C9zE4EFe.js";
|
|
67
67
|
import { t as at } from "./isEmpty.D3QQduJ5.js";
|
|
68
68
|
import { i as ot } from "./cloneDeep.C6x5LNv3.js";
|
|
69
69
|
//#region ../../node_modules/lodash-es/difference.js
|
|
@@ -5,7 +5,7 @@ import { a as o, c as s, i as c, l, o as u, s as d } from "./resizable-component
|
|
|
5
5
|
import { A as f, O as p, f as m, k as h } from "./string.TY0RTPc8.js";
|
|
6
6
|
import { n as g } from "./position-picker.dY_vgF_H.js";
|
|
7
7
|
import { a as _, n as v, o as ee, s as y } from "./src.BJhIYoMP.js";
|
|
8
|
-
import { a as te, i as ne, r as re } from "./tab-group.
|
|
8
|
+
import { a as te, i as ne, r as re } from "./tab-group.VlKoqQXw.js";
|
|
9
9
|
import { t as ie } from "./parse.CDrJ-NY7.js";
|
|
10
10
|
import { H as ae, K as oe, W as se, Y as ce } from "./src.D0_s2pWf.js";
|
|
11
11
|
import { t as le } from "./toString.r2ImdBrm.js";
|
|
@@ -17,8 +17,8 @@ import { _ as xe, g as Se, h as Ce, m as we, p as Te, s as b } from "./responsiv
|
|
|
17
17
|
import { r as x } from "./asset-link-format.D6L-qc3X.js";
|
|
18
18
|
import { n as Ee, r as De } from "./header.aHKslWaJ.js";
|
|
19
19
|
import { c as Oe, f as ke, p as S, s as C, u as w } from "./string-array.F2GuxHp0.js";
|
|
20
|
-
import { n as Ae } from "./folder-select.
|
|
21
|
-
import { a as T, i as E, o as D, r as O, s as je } from "./color-swatch-group.
|
|
20
|
+
import { n as Ae } from "./folder-select.B9QiAYOm.js";
|
|
21
|
+
import { a as T, i as E, o as D, r as O, s as je } from "./color-swatch-group.D0Zb-aLS.js";
|
|
22
22
|
import { n as Me } from "./isEmpty.D3QQduJ5.js";
|
|
23
23
|
import { a as k } from "./cloneDeep.C6x5LNv3.js";
|
|
24
24
|
//#region ../../packages/services/src/api/dashboard/dashboard.ts
|
|
@@ -7,7 +7,7 @@ import { t as l } from "./src.BJhIYoMP.js";
|
|
|
7
7
|
import { t as u } from "./input.1CW0nLBL.js";
|
|
8
8
|
import { t as d } from "./option.DXo-QZhI.js";
|
|
9
9
|
import { t as f } from "./space.Dd8jezXK.js";
|
|
10
|
-
import { t as p } from "./select.
|
|
10
|
+
import { t as p } from "./select.Ci6S727F.js";
|
|
11
11
|
//#region ../../packages/molecules/src/corner-position-input-group/corner-position-input-group.styles.ts
|
|
12
12
|
var m = t`:host{width:100%;display:block}.corner-position-input-group__inputs{width:100%}.corner-position-input-group__input{flex:1}`, h = {
|
|
13
13
|
mask: "numpx",
|
|
@@ -13,7 +13,7 @@ import { t as h } from "./debounce.Ci-xdsHE.js";
|
|
|
13
13
|
import { t as g } from "./button.VUFrOP0u.js";
|
|
14
14
|
import { t as _ } from "./repeat.CKv9FPlC.js";
|
|
15
15
|
import { n as v, t as y } from "./option.DXo-QZhI.js";
|
|
16
|
-
import { t as b } from "./select.
|
|
16
|
+
import { t as b } from "./select.Ci6S727F.js";
|
|
17
17
|
import { t as x } from "./map.ByDuLduF.js";
|
|
18
18
|
import { t as S } from "./keyed.zYwdaCfO.js";
|
|
19
19
|
import { t as C } from "./_baseIteratee.DWc2-Bvm.js";
|
|
@@ -23,9 +23,9 @@ import { t as w } from "./repeat.CKv9FPlC.js";
|
|
|
23
23
|
import { t as ae } from "./input.1CW0nLBL.js";
|
|
24
24
|
import { t as oe } from "./option.DXo-QZhI.js";
|
|
25
25
|
import { t as se } from "./space.Dd8jezXK.js";
|
|
26
|
-
import { t as ce } from "./select.
|
|
26
|
+
import { t as ce } from "./select.Ci6S727F.js";
|
|
27
27
|
import { t as le } from "./tab.DHblc3F_.js";
|
|
28
|
-
import { t as T } from "./tab-group.
|
|
28
|
+
import { t as T } from "./tab-group.VlKoqQXw.js";
|
|
29
29
|
import { t as ue } from "./tab-panel.BxeoKuSv.js";
|
|
30
30
|
import { t as E } from "./dialog.C21jNK4r.js";
|
|
31
31
|
import { t as de } from "./divider.CqSNZCU8.js";
|
|
@@ -18,7 +18,7 @@ import { t as C } from "./tag.Bp7R2CeG.js";
|
|
|
18
18
|
import { t as w } from "./repeat.CKv9FPlC.js";
|
|
19
19
|
import { t as T } from "./input.1CW0nLBL.js";
|
|
20
20
|
import { t as E } from "./space.Dd8jezXK.js";
|
|
21
|
-
import { t as D } from "./select.
|
|
21
|
+
import { t as D } from "./select.Ci6S727F.js";
|
|
22
22
|
import { t as O } from "./template.Cyvih0XQ.js";
|
|
23
23
|
import { c as k } from "./asset-link-format.D6L-qc3X.js";
|
|
24
24
|
import { a as A, i as j } from "./tree.CpN2Va5s.js";
|
|
@@ -15,7 +15,7 @@ import { t as y } from "./repeat.CKv9FPlC.js";
|
|
|
15
15
|
import { t as b } from "./input.1CW0nLBL.js";
|
|
16
16
|
import { t as x } from "./option.DXo-QZhI.js";
|
|
17
17
|
import { t as S } from "./space.Dd8jezXK.js";
|
|
18
|
-
import { t as C } from "./select.
|
|
18
|
+
import { t as C } from "./select.Ci6S727F.js";
|
|
19
19
|
//#region ../../packages/types/src/pagination.ts
|
|
20
20
|
var w = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Both = "both", e.Pages = "pages", e.Rows = "rows", e;
|
|
@@ -29,7 +29,7 @@ import { t as L } from "./unsafe-html.Cb838aX7.js";
|
|
|
29
29
|
//#region ../../packages/atoms/src/utilities/type-check.ts
|
|
30
30
|
var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement || customElements.get(e.tagName.toLowerCase())), z = t`:host{display:block}:host([data-user-invalid])::part(combobox){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid]:focus-within)::part(combobox){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.select{vertical-align:middle;flex:auto;width:100%;display:inline-flex;position:relative}.select::part(popup){z-index:var(--cx-z-index-dropdown)}.select[data-current-placement^=top]::part(popup){transform-origin:bottom}.select[data-current-placement^=bottom]::part(popup){transform-origin:top}.select__combobox{font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);vertical-align:middle;cursor:pointer;transition:var(--cx-transition-fast) color, var(--cx-transition-fast) border, var(--cx-transition-fast) box-shadow, var(--cx-transition-fast) background-color;flex:1;justify-content:start;align-items:center;width:20ch;min-width:0;display:flex;position:relative;overflow:hidden}.select__display-input{width:100%;font:inherit;color:var(--cx-input-color);cursor:inherit;-webkit-appearance:none;text-overflow:ellipsis;background:0 0;border:none;margin:0;padding:0;transition:padding-top .2s ease-in-out;position:relative;overflow:hidden}:host([allow-freetext]) .input-container,:host([allow-freetext]) .select__display-input{cursor:text}:host([allow-freetext]) .select--disabled .input-container,:host([allow-freetext]) .select--disabled .select__display-input{cursor:default}.select__tags+.select__display-input{padding-top:var(--cx-spacing-2x-small)}.select__display-input--small{line-height:var(--cx-line-height-small)}.select__display-input--medium{line-height:var(--cx-line-height-medium)}.select__display-input--large{line-height:var(--cx-line-height-large)}.select__display-input--hidden{visibility:hidden;height:0;padding-top:0!important}.form-control--has-label .select__display-input{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-2x-small)}.select__display-input::placeholder{color:var(--cx-input-placeholder-color)}.select:not(.select--disabled):hover .select__display-input{color:var(--cx-input-color-hover)}.select:not(.select--disabled):hover .select__combobox{border-color:var(--cx-input-border-color-hover)}.select__display-input:focus{outline:none}.select__value-input{opacity:0;z-index:-1;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;left:0}.select__tags{flex-wrap:wrap;align-items:center;max-width:100%;display:flex}.form-control--has-label .select__tags{margin-top:var(--cx-spacing-x-small)}.select--small:not(.select--placeholder-visible) .select__tags,.select--medium:not(.select--placeholder-visible) .select__tags,.select--large:not(.select--placeholder-visible) .select__tags{min-height:var(--cx-line-height-medium)}.select__tags::slotted(cx-tag){cursor:pointer!important}.select--disabled .select__tags,.select--disabled .select__tags::slotted(cx-tag){cursor:default!important}.select__tag-wrapper{line-height:1}.select--standard .select__combobox{background-color:var(--cx-input-background-color);border:solid var(--cx-input-border-width) var(--cx-input-border-color)}.select--standard.select--disabled .select__combobox{background-color:var(--cx-input-background-color-disabled);border-color:var(--cx-input-border-color-disabled);color:var(--cx-input-color-disabled);opacity:.5;cursor:default;outline:none}.select--standard:not(.select--disabled).select--open .select__combobox,.select--standard:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-background-color-focus);border-color:var(--cx-input-border-color-focus)}.select--filled .select__combobox{background-color:var(--cx-input-filled-background-color);color:var(--cx-input-color);border:none}.select--filled:hover:not(.select--disabled) .select__combobox{background-color:var(--cx-input-filled-background-color-hover)}.select--filled.select--disabled .select__combobox{background-color:var(--cx-input-filled-background-color-disabled);opacity:.5;cursor:default}.select--filled:not(.select--disabled).select--open .select__combobox,.select--filled:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-filled-background-color-focus);outline:var(--cx-focus-ring)}.select--small .select__combobox{border-radius:var(--cx-input-border-radius-small);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-small);padding-block:0;padding-inline:var(--cx-input-spacing-small)}.form-control:not(.form-control--has-label) .select--small.select--multiple .select__combobox{padding-block:2px}.form-control:not(.form-control--has-label) .select--multiple .select__display-input{margin-top:0}.form-control:not(.form-control--has-label) .input-container{justify-content:center}.form-control:not(.form-control--has-label) .input-container .select__display-input{margin-top:0}.select--small .select__clear{margin-inline-start:var(--cx-input-spacing-small)}.select--small .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-small)}.select--small .select__tags{gap:2px}.select--medium .select__combobox{border-radius:var(--cx-input-border-radius-medium);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-medium);padding-block:0;padding-inline:var(--cx-input-spacing-medium)}.form-control:not(.form-control--has-label) .select--medium.select--multiple .select__combobox{padding-block:3px}.select--medium .select__clear{margin-inline-start:var(--cx-input-spacing-medium)}.select--medium .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-medium)}.select--medium .select__tags{gap:3px}.select--large .select__combobox{border-radius:var(--cx-input-border-radius-large);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-large);padding-block:0;padding-inline:var(--cx-input-spacing-large)}.form-control:not(.form-control--has-label) .select--large.select--multiple .select__combobox{padding-block:4px}.select--large .select__clear{margin-inline-start:var(--cx-input-spacing-large)}.select--large .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-large)}.select--large .select__tags{gap:4px}.select--pill.select--small .select__combobox{border-radius:var(--cx-input-height-small)}.select--pill.select--medium .select__combobox{border-radius:var(--cx-input-height-medium)}.select--pill.select--large .select__combobox{border-radius:var(--cx-input-height-large)}.select__prefix,.select__suffix{color:var(--cx-input-placeholder-color);flex:0;align-items:center;display:inline-flex}.select__clear{font-size:inherit;color:var(--cx-input-icon-color);transition:var(--cx-transition-fast) color;cursor:pointer;z-index:1;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.select__clear:hover{color:var(--cx-input-icon-color-hover)}.select__clear:focus{outline:none}.select__expand-icon{transition:var(--cx-transition-medium) rotate ease;rotate:0;font-size:var(--cx-font-size-large);flex:none;align-items:center;margin-inline-start:var(--cx-spacing-small);display:flex}.select--open .select__expand-icon{rotate:var(--cx-select-expand-icon-rotate-open,-180deg)}.select__listbox{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-border-radius-large);padding-block:var(--cx-spacing-x-small);overscroll-behavior:none;max-width:var(--auto-size-available-width);max-height:var(--select-max-height,var(--auto-size-available-height));padding-inline:0;display:block;position:relative;overflow:auto}.select__listbox ::slotted(cx-divider){--spacing:var(--cx-spacing-x-small);width:calc(100% - (var(--cx-spacing-x-small) * 2));margin-inline:auto}.select__listbox ::slotted(small){font-size:var(--cx-font-size-x-small);font-weight:var(--cx-font-weight-medium);line-height:var(--cx-line-height-x-small);color:var(--cx-color-neutral-600);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);display:block}.select__no-options{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:left;cursor:default;user-select:none;display:block}.select__options{display:contents}.select__footer{display:none}.select__listbox--has-footer{flex-direction:column;display:flex}.select__listbox--has-footer .select__options{overscroll-behavior:none;flex:0 auto;min-height:0;display:block;overflow:auto}.select__listbox--has-footer .select__footer{flex:none;display:block}.select__listbox--has-footer .select__footer--separated:before{content:"";margin:0 var(--cx-spacing-x-small);border-top:solid var(--cx-panel-border-width) var(--cx-panel-border-color);display:block}.input-container{flex-direction:column;flex:1;align-self:stretch;width:0;display:inline-flex;position:relative}.input-container__display-value{column-gap:var(--cx-spacing-small);row-gap:var(--cx-spacing-3x-small);flex-flow:wrap;width:100%;height:100%;display:flex}.form-control__label{pointer-events:none;width:fit-content;line-height:1;-webkit-transition:transform .2s ease-in-out;-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;position:relative}.select--small .form-control__label{transform:translateY(calc(( var(--cx-input-height-small) + 1.25rem - var(--cx-input-font-size-small) ) / 2));margin:0}.select--medium .form-control__label{transform:translateY(calc(( var(--cx-input-height-medium) / 2 + 1rem - var(--cx-input-font-size-medium) )));margin:0}.select--large .form-control__label{transform:translateY(calc(( var(--cx-input-height-large) + 1rem - var(--cx-input-font-size-large) ) / 2));margin:0}.form-control--has-label .select--small{min-height:calc(var(--cx-input-height-small) + 1rem)}.form-control--has-label .select--medium{min-height:calc(var(--cx-input-height-medium) + 1rem)}.form-control--has-label .select--large{min-height:calc(var(--cx-input-height-large) + 1rem)}.form-control--has-label .select--focused .form-control__label,.form-control--has-label .select--placeholder-visible .form-control__label,.form-control--has-label .select:not(.select--empty) .form-control__label{transform:translateY(calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small)))}.select__listbox slot{flex-direction:column;display:flex}:host([data-cx-input-group__input--first]:not([data-cx-input-group__input--last])) .select__combobox{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-input-group__input--inner]) .select__combobox{border-radius:0}:host([data-cx-input-group__input--last]:not([data-cx-input-group__input--first])) .select__combobox{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-input-group__input--hover]){z-index:1}:host([data-cx-input-group__input--focus]),:host([data-cx-input-group__input][checked]){z-index:2}`, B = class extends s {
|
|
31
31
|
constructor(...t) {
|
|
32
|
-
super(...t), this.formControlController = new D(this, { assumeInteractionOn: ["cx-input"] }), this.hasSlotController = new g(this, "footer", "help-text", "label"), this.localize = new h(this), this.typeToSelectString = "", this.openListenersRoot = null, this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.matchEmptyValue = !1, this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.noExpandIcon = !1, this.loading = !1, this.getTag = (t) => {
|
|
32
|
+
super(...t), this.formControlController = new D(this, { assumeInteractionOn: ["cx-input"] }), this.hasSlotController = new g(this, "footer", "help-text", "label"), this.localize = new h(this), this.typeToSelectString = "", this.#n = !1, this.openListenersRoot = null, this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.matchEmptyValue = !1, this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.noExpandIcon = !1, this.loading = !1, this.getTag = (t) => {
|
|
33
33
|
let n = this.hasSlotController.test("label"), r = this.label || n ? this.size === "large" ? "medium" : "small" : this.size;
|
|
34
34
|
return e`<cx-tag part="tag" exportparts="
|
|
35
35
|
base:tag__base,
|
|
@@ -43,7 +43,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
43
43
|
if (e && e instanceof P) return e.selected;
|
|
44
44
|
}, this.getOptionDisabled = (e) => {
|
|
45
45
|
if (e && e instanceof P) return e.disabled;
|
|
46
|
-
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (e) => {
|
|
46
|
+
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.clearQueryPostSelection = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (e) => {
|
|
47
47
|
!e.composedPath().includes(this) && !this.stayOpenOnSelect && requestAnimationFrame(() => {
|
|
48
48
|
let e = N();
|
|
49
49
|
!(this.contains(e ?? null) || this.shadowRoot?.contains(e ?? null)) && this.open && this.hide();
|
|
@@ -60,7 +60,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
60
60
|
this.show();
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#
|
|
63
|
+
this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#h(), this.inputBehavior === "select" && this.selectOptionByInput()) : (this.setSelectedOptions(this.currentOption), this.#g()), this.updateComplete.then(() => {
|
|
64
64
|
this.emit("cx-input"), this.emit("cx-change");
|
|
65
65
|
})), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
66
66
|
return;
|
|
@@ -72,14 +72,14 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
72
72
|
"End"
|
|
73
73
|
].includes(e.key)) {
|
|
74
74
|
let t = this.getAllOptions().filter((e) => this.inputBehavior !== "filter" || !e.hidden), n = this.currentOption ? t.indexOf(this.currentOption) : -1, r = Math.max(0, n);
|
|
75
|
-
if (e.preventDefault(), !this.open && (!this.#
|
|
75
|
+
if (e.preventDefault(), !this.open && (!this.#u() || (this.show(), this.currentOption))) return;
|
|
76
76
|
e.key === "ArrowDown" ? (r = n + 1, r > t.length - 1 && (r = 0)) : e.key === "ArrowUp" ? (r = n - 1, r < 0 && (r = t.length - 1)) : e.key === "Home" ? r = 0 : e.key === "End" && (r = t.length - 1), this.setCurrentOption(t[r]);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}, this.handleDocumentMouseDown = (e) => {
|
|
80
80
|
let t = e.composedPath();
|
|
81
81
|
this && !t.includes(this) && !this.stayOpenOnSelect && this.hide();
|
|
82
|
-
}, this.#
|
|
82
|
+
}, this.#d = {
|
|
83
83
|
folded: "",
|
|
84
84
|
raw: ""
|
|
85
85
|
};
|
|
@@ -97,12 +97,13 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
97
97
|
"cx-tag": k,
|
|
98
98
|
"cx-typography": A
|
|
99
99
|
};
|
|
100
|
+
#n;
|
|
100
101
|
get shouldShowNoOptionsMessage() {
|
|
101
102
|
return !!this.noOptionText && this.getVisibleOptions().length === 0;
|
|
102
103
|
}
|
|
103
|
-
get #
|
|
104
|
+
get #r() {
|
|
104
105
|
let e = this.getVisibleOptions();
|
|
105
|
-
return e.length > 0 && !this.#
|
|
106
|
+
return e.length > 0 && !this.#o(e[0]) && this.#o(e[e.length - 1]);
|
|
106
107
|
}
|
|
107
108
|
get validity() {
|
|
108
109
|
return this.valueInput ? this.valueInput.validity : { valid: !0 };
|
|
@@ -141,7 +142,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
filterCallback(e, t) {
|
|
144
|
-
return this.filterIgnoreAccents ? E(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#
|
|
145
|
+
return this.filterIgnoreAccents ? E(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#f(t)) : this.getOptionLabel(e).toLowerCase().includes(t);
|
|
145
146
|
}
|
|
146
147
|
connectedCallback() {
|
|
147
148
|
super.connectedCallback(), this.stayOpenOnSelect || (this.open = !1);
|
|
@@ -170,7 +171,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
170
171
|
}
|
|
171
172
|
handleBlur(e) {
|
|
172
173
|
let t = e.relatedTarget;
|
|
173
|
-
t && this.contains(t) || (this.hasFocus = !1, this.allowFreetext || (this.displayLabel = this.#
|
|
174
|
+
t && this.contains(t) || (this.hasFocus = !1, this.allowFreetext || (this.displayLabel = this.#l(), this.displayInput.value = this.displayLabel, this.typeToSelectString = ""), this.emit("cx-blur"));
|
|
174
175
|
}
|
|
175
176
|
handleInput(e) {
|
|
176
177
|
let t = e.target, n = [
|
|
@@ -196,9 +197,10 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
196
197
|
break;
|
|
197
198
|
case "select": this.selectOptionByInput();
|
|
198
199
|
}
|
|
199
|
-
this.#
|
|
200
|
+
this.#p();
|
|
200
201
|
}
|
|
201
202
|
handleComboboxMouseDown(e) {
|
|
203
|
+
if (this.#n = !this.disabled && this.inputBehavior === "filter" && this.open && e.target === this.displayInput, this.#n) return;
|
|
202
204
|
let t = e.composedPath(), n = !1, r = !1;
|
|
203
205
|
t.forEach((e) => {
|
|
204
206
|
if (e instanceof HTMLElement && e.classList.contains("select__expand-icon")) {
|
|
@@ -208,22 +210,29 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
208
210
|
e instanceof HTMLElement && e.tagName.toLowerCase() === "cx-icon-button" && (n = !0);
|
|
209
211
|
}), !(this.disabled || n) && (r || this.inputBehavior !== "filter" || !this.open || !this.multiple && !this.useTag ? (this.allowDefaultMouseDown || this.allowFreetext ? requestAnimationFrame(() => {
|
|
210
212
|
this.displayInput.focus({ preventScroll: !0 });
|
|
211
|
-
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#
|
|
213
|
+
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#u()) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
|
|
212
214
|
}
|
|
213
215
|
handleComboboxKeyDown(e) {
|
|
214
216
|
e.key !== "Tab" && ((e.key !== "Escape" || this.open && (this.shouldShowNoOptionsMessage || this.getVisibleOptions().length > 0)) && e.stopPropagation(), this.handleDocumentKeyDown(e));
|
|
215
217
|
}
|
|
216
218
|
handleClearClick(e) {
|
|
217
|
-
e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#
|
|
219
|
+
e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#h(), this.updateComplete.then(() => {
|
|
218
220
|
this.emit("cx-clear"), this.emit("cx-input"), this.emit("cx-change");
|
|
219
221
|
}));
|
|
220
222
|
}
|
|
221
223
|
handleClearMouseDown(e) {
|
|
222
224
|
e.stopPropagation(), e.preventDefault();
|
|
223
225
|
}
|
|
226
|
+
#i() {
|
|
227
|
+
this.#n = !1;
|
|
228
|
+
}
|
|
224
229
|
handleOptionClick(e) {
|
|
230
|
+
if (this.#n) {
|
|
231
|
+
this.#n = !1;
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
225
234
|
let t = e.target.closest("[role=\"option\"], cx-option"), n = this.value, r = e.composedPath().some((e) => e?.classList?.contains("tree-item__expand-button")), i = e.composedPath().some((e) => e?.classList?.contains("tree-item__actions"));
|
|
226
|
-
t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#
|
|
235
|
+
t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#h()) : (this.setSelectedOptions(t), this.#g()), this.updateComplete.then(() => this.displayInput.focus({ preventScroll: !0 })), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
|
|
227
236
|
this.emit("cx-input"), this.emit("cx-change");
|
|
228
237
|
}), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
229
238
|
}
|
|
@@ -244,26 +253,26 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
244
253
|
this.setSelectedOptions(r, i ? this.value : void 0), this.hasFocus && !this.open && !this.disabled && e.length > 0 && this.show();
|
|
245
254
|
}
|
|
246
255
|
handleTagRemove(e, t) {
|
|
247
|
-
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#
|
|
256
|
+
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#h(), this.updateComplete.then(() => {
|
|
248
257
|
this.emit("cx-input"), this.emit("cx-change");
|
|
249
258
|
}));
|
|
250
259
|
}
|
|
251
260
|
getAllOptions() {
|
|
252
|
-
return this.#
|
|
261
|
+
return this.#s([...this.querySelectorAll("[role=\"option\"], cx-option")]);
|
|
253
262
|
}
|
|
254
263
|
getFirstOption() {
|
|
255
264
|
return this.querySelector("cx-option");
|
|
256
265
|
}
|
|
257
|
-
#
|
|
258
|
-
return this.#
|
|
266
|
+
#a() {
|
|
267
|
+
return this.#s([...this.querySelectorAll("cx-option")]).find((e) => !e.hidden) ?? null;
|
|
259
268
|
}
|
|
260
|
-
#
|
|
269
|
+
#o(e) {
|
|
261
270
|
return e.slot === "footer" && e.parentElement === this;
|
|
262
271
|
}
|
|
263
|
-
#
|
|
264
|
-
return e.some((e) => this.#
|
|
272
|
+
#s(e) {
|
|
273
|
+
return e.some((e) => this.#o(e)) ? [...e.filter((e) => !this.#o(e)), ...e.filter((e) => this.#o(e))] : e;
|
|
265
274
|
}
|
|
266
|
-
#
|
|
275
|
+
#c() {
|
|
267
276
|
return this.hasSlotController.test("footer") ? this.optionsContainer : this.listbox;
|
|
268
277
|
}
|
|
269
278
|
getVisibleOptions() {
|
|
@@ -294,11 +303,11 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
294
303
|
let n = this.getOptionSelected(e), r = new Set(this.selectedOptions);
|
|
295
304
|
n ? r.add(e) : r.delete(e), this.selectionChanged(void 0, [...r]);
|
|
296
305
|
}
|
|
297
|
-
#
|
|
306
|
+
#l() {
|
|
298
307
|
return this.multiple ? "" : this.getOptionLabel(this.selectedOptions[0]) ?? "";
|
|
299
308
|
}
|
|
300
309
|
selectionChanged(e, t) {
|
|
301
|
-
this.selectedOptions = t ?? this.getAllOptions().filter((e) => this.getOptionSelected(e)), this.value = this.multiple ? e ?? this.selectedOptions.map((e) => this.getOptionValue(e)) : e ?? this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.#
|
|
310
|
+
this.selectedOptions = t ?? this.getAllOptions().filter((e) => this.getOptionSelected(e)), this.value = this.multiple ? e ?? this.selectedOptions.map((e) => this.getOptionValue(e)) : e ?? this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.#l(), this.updateComplete.then(() => {
|
|
302
311
|
this.formControlController.updateValidity();
|
|
303
312
|
});
|
|
304
313
|
}
|
|
@@ -331,13 +340,13 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
331
340
|
if (this.noDropdown) return;
|
|
332
341
|
if (this.inputBehavior === "filter" && this.filterOptionsByInput(), !this.noResetCurrent) {
|
|
333
342
|
let [e] = this.selectedOptions;
|
|
334
|
-
this.setCurrentOption(e && !e.hidden ? e : this.#
|
|
343
|
+
this.setCurrentOption(e && !e.hidden ? e : this.#a() ?? this.getFirstOption());
|
|
335
344
|
}
|
|
336
345
|
this.emit("cx-show"), this.addOpenListeners(), await f(this), this.listbox.hidden = !1, this.popup.active = !0, requestAnimationFrame(() => {
|
|
337
346
|
this.currentOption && this.setCurrentOption(this.currentOption);
|
|
338
347
|
});
|
|
339
348
|
let { keyframes: e, options: t } = b(this, "select.show", { dir: this.localize.dir() });
|
|
340
|
-
await d(this.popup.popup, e, t), this.currentOption && !this.#
|
|
349
|
+
await d(this.popup.popup, e, t), this.currentOption && !this.#o(this.currentOption) && F(this.currentOption, this.#c(), "vertical", "auto"), this.emit("cx-after-show");
|
|
341
350
|
} else {
|
|
342
351
|
this.emit("cx-hide"), this.removeOpenListeners(), await f(this);
|
|
343
352
|
let { keyframes: e, options: t } = b(this, "select.hide", { dir: this.localize.dir() });
|
|
@@ -351,31 +360,34 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
351
360
|
break;
|
|
352
361
|
}
|
|
353
362
|
}
|
|
354
|
-
#
|
|
363
|
+
#u() {
|
|
355
364
|
return this.typeToSelectString.length >= Math.max(0, this.minQueryLength || 0);
|
|
356
365
|
}
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
return this.#
|
|
366
|
+
#d;
|
|
367
|
+
#f(e) {
|
|
368
|
+
return this.#d.raw !== e && (this.#d = {
|
|
360
369
|
folded: E(e, { ignoreAccents: !0 }),
|
|
361
370
|
raw: e
|
|
362
|
-
}), this.#
|
|
371
|
+
}), this.#d.folded;
|
|
363
372
|
}
|
|
364
|
-
#
|
|
365
|
-
this.open && !this.#
|
|
373
|
+
#p() {
|
|
374
|
+
this.open && !this.#u() && this.hide();
|
|
366
375
|
}
|
|
367
|
-
#
|
|
376
|
+
#m(e) {
|
|
368
377
|
return !this.highlightMatches || e.hidden ? [] : T(e.getTextLabel(), this.typeToSelectString, { ignoreAccents: this.filterIgnoreAccents });
|
|
369
378
|
}
|
|
370
379
|
filterOptionsByInput() {
|
|
371
380
|
let e = this.getAllOptions();
|
|
372
|
-
for (let t of e) this.filterCallback(t, this.typeToSelectString) ? (t.hidden = !1, t.style.removeProperty("display")) : (t.hidden = !0, t.style.setProperty("display", "none")), t instanceof P && (t.matchRanges = this.#
|
|
373
|
-
this.#
|
|
381
|
+
for (let t of e) this.filterCallback(t, this.typeToSelectString) ? (t.hidden = !1, t.style.removeProperty("display")) : (t.hidden = !0, t.style.setProperty("display", "none")), t instanceof P && (t.matchRanges = this.#m(t));
|
|
382
|
+
this.#_(), this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
|
|
374
383
|
}
|
|
375
|
-
#
|
|
376
|
-
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#
|
|
384
|
+
#h() {
|
|
385
|
+
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#p();
|
|
377
386
|
}
|
|
378
|
-
#
|
|
387
|
+
#g() {
|
|
388
|
+
this.clearQueryPostSelection && (this.typeToSelectString = "");
|
|
389
|
+
}
|
|
390
|
+
#_() {
|
|
379
391
|
let { currentOption: e } = this;
|
|
380
392
|
if (!e || !e.hidden && e.isConnected) return;
|
|
381
393
|
let t = this.getVisibleOptions()[0];
|
|
@@ -386,7 +398,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
386
398
|
this.open = !1;
|
|
387
399
|
return;
|
|
388
400
|
}
|
|
389
|
-
if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#
|
|
401
|
+
if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#u()) return this.open = !0, p(this, "cx-after-show");
|
|
390
402
|
}
|
|
391
403
|
async hide() {
|
|
392
404
|
if (!this.open || this.disabled) {
|
|
@@ -402,7 +414,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
402
414
|
this.displayInput.blur();
|
|
403
415
|
}
|
|
404
416
|
render() {
|
|
405
|
-
let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.hasSlotController.test("footer"), a = i && this.#
|
|
417
|
+
let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.hasSlotController.test("footer"), a = i && this.#r, o = this.label ? !0 : !!t, s = this.helpText ? !0 : !!r, c = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), l = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, u = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, d = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
|
|
406
418
|
return e`<div part="form-control" class=${v({
|
|
407
419
|
"form-control": !0,
|
|
408
420
|
"form-control--has-help-text": s,
|
|
@@ -436,7 +448,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
436
448
|
${S(c, () => e`<button part="clear-button" class="select__clear" type="button" aria-label=${this.localize.term("clearEntry")} @mousedown=${this.handleClearMouseDown} @click=${this.handleClearClick} tabindex="-1"><slot name="clear-icon"><cx-icon name="cancel"></cx-icon></slot></button>`)}<slot name="suffix" part="suffix" class="select__suffix"></slot>${this.noExpandIcon ? n : e`<slot name="expand-icon" part="expand-icon" class="select__expand-icon"><cx-icon name="arrow_drop_down"></cx-icon></slot>`}</div><div id="listbox" role="listbox" aria-expanded=${this.open ? "true" : "false"} ?hidden=${!this.open || this.disabled} aria-multiselectable=${this.multiple ? "true" : "false"} aria-label=${x(o ? void 0 : this.dataset.label)} aria-labelledby=${x(o ? "label" : void 0)} part="listbox" class=${v({
|
|
437
449
|
select__listbox: !0,
|
|
438
450
|
"select__listbox--has-footer": i
|
|
439
|
-
})} tabindex="-1" @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><div class="select__options"><slot></slot>${S(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div><div part="listbox-footer" class=${v({
|
|
451
|
+
})} tabindex="-1" @mousedown=${this.#i} @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><div class="select__options"><slot></slot>${S(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div><div part="listbox-footer" class=${v({
|
|
440
452
|
select__footer: !0,
|
|
441
453
|
"select__footer--separated": a
|
|
442
454
|
})}><slot name="footer"></slot></div></div></cx-popup></div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${s ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
@@ -545,6 +557,9 @@ a([c(".select"), o("design:type", l === void 0 ? Object : l)], B.prototype, "pop
|
|
|
545
557
|
attribute: "close-on-select",
|
|
546
558
|
type: Boolean
|
|
547
559
|
}), o("design:type", Object)], B.prototype, "closeOnSelect", void 0), a([r({
|
|
560
|
+
attribute: "clear-query-post-selection",
|
|
561
|
+
type: Boolean
|
|
562
|
+
}), o("design:type", Object)], B.prototype, "clearQueryPostSelection", void 0), a([r({
|
|
548
563
|
attribute: "force-on-change",
|
|
549
564
|
type: Boolean
|
|
550
565
|
}), o("design:type", Object)], B.prototype, "forceOnChange", void 0), a([r({
|
|
@@ -6,7 +6,7 @@ import { t as c } from "./repeat.CKv9FPlC.js";
|
|
|
6
6
|
import { t as l } from "./input.1CW0nLBL.js";
|
|
7
7
|
import { t as u } from "./space.Dd8jezXK.js";
|
|
8
8
|
import { t as d } from "./input-group.Dmd8XcxL.js";
|
|
9
|
-
import { t as f } from "./bicolor-picker.
|
|
9
|
+
import { t as f } from "./bicolor-picker.iaHGgdLF.js";
|
|
10
10
|
//#region ../../packages/molecules/src/shadow-input-group/shadow-input-group.styles.ts
|
|
11
11
|
var p = t``, m = class extends a {
|
|
12
12
|
constructor(...e) {
|
|
@@ -14,7 +14,7 @@ import { t as v } from "./drag.s0AcVpKh.js";
|
|
|
14
14
|
import { n as y } from "./tabbable.BSwpOHdm.js";
|
|
15
15
|
import { t as b } from "./divider.CqSNZCU8.js";
|
|
16
16
|
//#region ../../packages/molecules/src/sidebar/sidebar.styles.ts
|
|
17
|
-
var x = t`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--_open-trigger-padding:var(--open-trigger-padding,var(--cx-spacing-medium));--closed-width:0px;display:block}.sidebar{grid-template-rows:100%;grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--close-trigger-center .close_trigger{top:50%}.sidebar--close-trigger-end .close_trigger{top:auto;bottom:var(--cx-spacing-medium)}.sidebar--left.sidebar--close-trigger-end .close_trigger{transform:translate(50%)}.sidebar--right.sidebar--close-trigger-end .close_trigger{transform:translate(-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--_open-trigger-padding);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger:focus-visible,.group--main .group_content:focus-visible{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow:clip auto}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--main .group_content{width:
|
|
17
|
+
var x = t`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--_open-trigger-padding:var(--open-trigger-padding,var(--cx-spacing-medium));--closed-width:0px;display:block}.sidebar{grid-template-rows:100%;grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--close-trigger-center .close_trigger{top:50%}.sidebar--close-trigger-end .close_trigger{top:auto;bottom:var(--cx-spacing-medium)}.sidebar--left.sidebar--close-trigger-end .close_trigger{transform:translate(50%)}.sidebar--right.sidebar--close-trigger-end .close_trigger{transform:translate(-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--_open-trigger-padding);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger:focus-visible,.group--main .group_content:focus-visible{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow:clip auto}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--main{overflow:clip}.sidebar:not(.sidebar--opened) .group--main .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width);visibility:hidden}`, S = class extends s {
|
|
18
18
|
static #e = this.styles = [l, x];
|
|
19
19
|
static #t = this.dependencies = {
|
|
20
20
|
"cx-divider": b,
|
|
@@ -11,7 +11,7 @@ import { t as m } from "./tooltip.C11omEOs.js";
|
|
|
11
11
|
import { t as h } from "./default-value.opqQgoRT.js";
|
|
12
12
|
import { t as g } from "./input.1CW0nLBL.js";
|
|
13
13
|
import { t as _ } from "./space.Dd8jezXK.js";
|
|
14
|
-
import { t as v } from "./select.
|
|
14
|
+
import { t as v } from "./select.Ci6S727F.js";
|
|
15
15
|
//#region ../../packages/types/src/size-input-group.ts
|
|
16
16
|
var y = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Percentage = "percentage", e.Pixel = "pixel", e;
|