@orangelogic/design-system 4.52.0 → 4.54.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/{abnfDiagram-N423BO3Z.BdDkSL0S.js → abnfDiagram-N423BO3Z.H1zwr_k6.js} +3 -3
- package/library/chunks/{architectureDiagram-T3A2C74G.BPW98p0m.js → architectureDiagram-T3A2C74G.AxjW1Pvo.js} +5 -5
- package/library/chunks/{array-line-clamp.DKxxZlon.js → array-line-clamp.B0CgDqAd.js} +2 -2
- package/library/chunks/{asset-link-format.B_gS4nTL.js → asset-link-format.B0bxKsRR.js} +9 -9
- package/library/chunks/{bicolor-picker.YUjpxOEl.js → bicolor-picker.DB9EVS8f.js} +1 -1
- package/library/chunks/{block-width.BDpJyD-F.js → block-width.DPq3qimI.js} +35 -35
- package/library/chunks/{blockDiagram-VBNYF7ZC.2el4_mfU.js → blockDiagram-VBNYF7ZC.BA5YJ5tg.js} +6 -6
- package/library/chunks/{border-input-group.D5V40_dV.js → border-input-group.fjG64WIi.js} +2 -2
- package/library/chunks/{button.DnOMjl_G.js → button.BnTohvSe.js} +1 -1
- package/library/chunks/{c4Diagram-5PPSVZJV.CB1meuC0.js → c4Diagram-5PPSVZJV.B1weqOqz.js} +3 -3
- package/library/chunks/{channel.Df7qi9B0.js → channel.Bqlqmufs.js} +1 -1
- package/library/chunks/{checkbox.aFoOxk2j.js → checkbox.BdSpQlwf.js} +1 -1
- package/library/chunks/{chunk-2GRJ4B5K.gGaxW0lA.js → chunk-2GRJ4B5K.BOBf1_FX.js} +1 -1
- package/library/chunks/{chunk-4I5QYGJK.BfgT5lel.js → chunk-4I5QYGJK.DfO_P7bO.js} +1 -1
- package/library/chunks/{chunk-5RXB4S5H.CF2ZeQiS.js → chunk-5RXB4S5H.oisV3Q1b.js} +5 -5
- package/library/chunks/{chunk-6Q2QTUOP.BKuPYCzj.js → chunk-6Q2QTUOP.ByglL7sM.js} +2 -2
- package/library/chunks/{chunk-7Z6QIM7H.ChD5saA-.js → chunk-7Z6QIM7H.BXSFN_6B.js} +6 -6
- package/library/chunks/{chunk-GF5L2VYU.D7Kyf8tv.js → chunk-GF5L2VYU.BBRVN_Sz.js} +5 -5
- package/library/chunks/{chunk-I66GZJ75.H0-SV6eJ.js → chunk-I66GZJ75.lUTR0Zxp.js} +1 -1
- package/library/chunks/{chunk-JQJVKLGR.vSmZrVfn.js → chunk-JQJVKLGR.dOAJ_eec.js} +7 -7
- package/library/chunks/{chunk-KBJHAD2P.BFtv98WB.js → chunk-KBJHAD2P.Bfz5cQAa.js} +1 -1
- package/library/chunks/{chunk-NSK5VX7P.CigvU-YZ.js → chunk-NSK5VX7P.BkWzMz1o.js} +1 -1
- package/library/chunks/{chunk-QR6OTTB3.DXgKvg29.js → chunk-QR6OTTB3.DyBl4spZ.js} +6 -6
- package/library/chunks/{chunk-UBXNYLIW.Cwnmh6rE.js → chunk-UBXNYLIW.BjkOeuJd.js} +2 -2
- package/library/chunks/{chunk-W5SLKNZC.BGc7e7pD.js → chunk-W5SLKNZC.DzlXmWcA.js} +1 -1
- package/library/chunks/{chunk-WRU74C26.DI6bT2w6.js → chunk-WRU74C26.BDl8PZFV.js} +3 -3
- package/library/chunks/{classDiagram-JCYQIIEL.64BYmngb.js → classDiagram-JCYQIIEL.P36yteOv.js} +12 -12
- package/library/chunks/{classDiagram-v2-OCEON4UE.BZauU1et.js → classDiagram-v2-OCEON4UE.C05djrx3.js} +12 -12
- package/library/chunks/{color-picker.B6zsp9q3.js → color-picker.DkbU0_4f.js} +8 -8
- package/library/chunks/{color-swatch-group.C-4jpi7T.js → color-swatch-group.D99_BsTs.js} +28 -28
- package/library/chunks/{color-swatch.Biz89VJr.js → color-swatch.CvynJPeG.js} +1 -1
- package/library/chunks/{config-manager.D4XcNU1d.js → config-manager.C-RYOYzN.js} +27 -27
- package/library/chunks/{configs-controller.C8z7oMRd.js → configs-controller.kn8RjF1m.js} +19 -19
- package/library/chunks/{confirm-popover.UUhlXSDu.js → confirm-popover.buH5MWGz.js} +3 -3
- package/library/chunks/{corner-position-input-group.vhSOueRn.js → corner-position-input-group.C76I7S9W.js} +3 -3
- package/library/chunks/{cynefinDiagram-MW4NZA55.DcUv6X--.js → cynefinDiagram-MW4NZA55.CN3dX-zy.js} +3 -3
- package/library/chunks/{dagre-VZM6K2ZE.REv4K_Qj.js → dagre-VZM6K2ZE.DpSsP2YW.js} +8 -8
- package/library/chunks/{diagram-7IWD3JNH.C6XfUay-.js → diagram-7IWD3JNH.C3K0gCHG.js} +4 -4
- package/library/chunks/{diagram-B4RE2ZJO.Bp-nT294.js → diagram-B4RE2ZJO.BULgC23C.js} +2 -2
- package/library/chunks/{diagram-LBJQPF4R.DM8MEbI5.js → diagram-LBJQPF4R.BmYYTkym.js} +3 -3
- package/library/chunks/{diagram-Q27KOJAE.DYhFE9pI.js → diagram-Q27KOJAE.Bj5ayV3p.js} +5 -5
- package/library/chunks/{diagram-UB23O5K3.BONLndDU.js → diagram-UB23O5K3.Bu_lTx_A.js} +3 -3
- package/library/chunks/{dialog.BKSCSk0r.js → dialog.DprCsbFG.js} +1 -1
- package/library/chunks/{diff.DZjfy2VU.js → diff.Bmdpmpvo.js} +1 -1
- package/library/chunks/{document-viewer.DVV4HsLS.js → document-viewer.B82zT0Zq.js} +5 -5
- package/library/chunks/{dom.BsVeSE01.js → dom.BLHsooDR.js} +1 -1
- package/library/chunks/{drawer.BEXLFfil.js → drawer.Ba0CKg86.js} +1 -1
- package/library/chunks/{dropdown.CcjP36wF.js → dropdown.EJbgwPgi.js} +3 -3
- package/library/chunks/{dynamic-select.DmTXLyzH.js → dynamic-select.3VAXf0Tb.js} +3 -3
- package/library/chunks/{ebnfDiagram-BXEA7PRR.vgCVWkh_.js → ebnfDiagram-BXEA7PRR.Cg96HHIs.js} +3 -3
- package/library/chunks/{element-clamp.CwFlUOET.js → element-clamp.M1QI20RB.js} +1 -1
- package/library/chunks/{erDiagram-JOGREHBK.l02-sIjI.js → erDiagram-JOGREHBK.CrJ962th.js} +11 -11
- package/library/chunks/{file-on-demand.CLwTe72F.js → file-on-demand.CftwNAbV.js} +11 -11
- package/library/chunks/flowDiagram-UKHOOZJN.Bj_loY7-.js +16 -0
- package/library/chunks/{folder-select.BF1l6Zah.js → folder-select.D8VOcyyD.js} +15 -15
- package/library/chunks/{form.JYXtmwQ2.js → form.D_eBa3AQ.js} +1 -1
- package/library/chunks/{ganttDiagram-PKOTCBZU.CD-H_noy.js → ganttDiagram-PKOTCBZU.D216_p5R.js} +2 -2
- package/library/chunks/{gitGraphDiagram-DS77QQ5N.eu4pijfq.js → gitGraphDiagram-DS77QQ5N.BGTaYiUE.js} +2 -2
- package/library/chunks/{infoDiagram-6WML65LV.Xm33NlcD.js → infoDiagram-6WML65LV.BHVojFJh.js} +2 -2
- package/library/chunks/{input.D1UkXp3F.js → input.Cqg_VUUU.js} +1 -1
- package/library/chunks/{ishikawaDiagram-WSZJBQD7.B-DjIT2K.js → ishikawaDiagram-WSZJBQD7.nZsYnPcQ.js} +3 -3
- package/library/chunks/{journeyDiagram-NVQOT4AX.ByuFaAO4.js → journeyDiagram-NVQOT4AX.BXUxAk98.js} +2 -2
- package/library/chunks/{kanban-definition-27J2QSJJ.BEAgE6i7.js → kanban-definition-27J2QSJJ.Bg8-oEtc.js} +8 -8
- package/library/chunks/{katex.DaGFosgJ.js → katex.BqirFtOb.js} +1 -1
- package/library/chunks/katex.KcI9vfm6.js +21947 -0
- package/library/chunks/{line-clamp.COXyDBRB.js → line-clamp.DfbWHPf2.js} +1 -1
- package/library/chunks/{markdown.Evcme-Lw.js → markdown.DX6E6sHb.js} +187 -100
- package/library/chunks/{mermaid.core.CUTdrxBG.js → mermaid.core.m1JI7kDY.js} +48 -48
- package/library/chunks/{mindmap-definition-FAOFIHXS.rbw_pav-.js → mindmap-definition-FAOFIHXS.DwjOzYq5.js} +10 -10
- package/library/chunks/{modal.775mgCbW.js → modal.eB-mqL-y.js} +1 -1
- package/library/chunks/option.g339be2v.js +136 -0
- package/library/chunks/{padding-input-group.CGDq3Cct.js → padding-input-group.B0hKvaQw.js} +1 -1
- package/library/chunks/{pagination.Mr-XiQBd.js → pagination.C1a6I0Np.js} +4 -4
- package/library/chunks/{pegDiagram-VL7TDLO6.BAxarQjC.js → pegDiagram-VL7TDLO6.BaVddVr3.js} +3 -3
- package/library/chunks/{pieDiagram-7S7Q4E2Y.Du6akIPM.js → pieDiagram-7S7Q4E2Y.lZiCqBKs.js} +3 -3
- package/library/chunks/{position-picker.DzRyAx7a.js → position-picker.ZNQJCQeD.js} +1 -1
- package/library/chunks/{quadrantDiagram-CIZ2JOQS.0LTMJXU8.js → quadrantDiagram-CIZ2JOQS.DswnHa_z.js} +1 -1
- package/library/chunks/{radio-card.jROctGtI.js → radio-card.DIbQQQHJ.js} +1 -1
- package/library/chunks/{radio-group.DSnDDjKe.js → radio-group.CHlxPcrs.js} +1 -1
- package/library/chunks/{railroadDiagram-AXF67PYL.BU5cQCmX.js → railroadDiagram-AXF67PYL.RYtWvnP4.js} +3 -3
- package/library/chunks/{range.CQzHuhd9.js → range.BbymfcRB.js} +1 -1
- package/library/chunks/{requirementDiagram-LRYGKXZP.BM4tLaE8.js → requirementDiagram-LRYGKXZP.BhxZAEJL.js} +10 -10
- package/library/chunks/{sankeyDiagram-W5VNT64P.r2kIOMLC.js → sankeyDiagram-W5VNT64P.Dk8npZSg.js} +1 -1
- package/library/chunks/{select.CEgt2ciT.js → select.jh554mmg.js} +151 -99
- package/library/chunks/{sequenceDiagram-SI44F4Z6.CJ50A-EW.js → sequenceDiagram-SI44F4Z6.BNjBc769.js} +4 -4
- package/library/chunks/{shadow-input-group.DTEIzl1s.js → shadow-input-group.CVVmDUWM.js} +2 -2
- package/library/chunks/{share-option-list.CdQeYk-I.js → share-option-list.DJhjvLt5.js} +1 -1
- package/library/chunks/sidebar.DvMb2Ug6.js +120 -0
- package/library/chunks/{size-input-group.DtldCuqS.js → size-input-group.CS5sCYFS.js} +2 -2
- package/library/chunks/{src.BjEmxalH.js → src.CcXIUp6p.js} +29 -29
- package/library/chunks/{src.BJpSLSUr.js → src.DY4Vfem2.js} +3 -3
- package/library/chunks/{stateDiagram-OKZ733FA.DZ7h0fa_.js → stateDiagram-OKZ733FA.DkiIgxjd.js} +12 -12
- package/library/chunks/{stateDiagram-v2-UEYNNEHI.BhaYePWf.js → stateDiagram-v2-UEYNNEHI.oVj_Ex1_.js} +12 -12
- package/library/chunks/{step.BlnWLzqI.js → step.QBmFqnA4.js} +1 -1
- package/library/chunks/{stepper-wizard.t7enm9Uz.js → stepper-wizard.D0zrSaVI.js} +2 -2
- package/library/chunks/{stepper.DzhUPTLW.js → stepper.BBZ3Sunl.js} +1 -1
- package/library/chunks/{string.DAuTpyw8.js → string.9yahdkB8.js} +39 -1
- package/library/chunks/{swimlanes-SLNWSIFB.B31m3AJi.js → swimlanes-SLNWSIFB.DKU7qXJ7.js} +8 -8
- package/library/chunks/{swimlanesDiagram-ULZ7WXOC.DkcvdPqC.js → swimlanesDiagram-ULZ7WXOC.DYwYMO_K.js} +12 -12
- package/library/chunks/{switch.CBho2RVW.js → switch.BM9msK5T.js} +1 -1
- package/library/chunks/{tab-group.DIVmzKse.js → tab-group.DkF7nLim.js} +4 -4
- package/library/chunks/{tab.C0oUx7MY.js → tab.ACKD6jJ8.js} +1 -1
- package/library/chunks/{tabbable.Bflg1dha.js → tabbable.BSwpOHdm.js} +1 -1
- package/library/chunks/{tag.B2S21_nF.js → tag.uwkILLDo.js} +1 -1
- package/library/chunks/{textarea.BgWdR_7D.js → textarea.CHSZI8vt.js} +1 -1
- package/library/chunks/{timecode.DME2imtx.js → timecode.DjI1OTXD.js} +1 -1
- package/library/chunks/{timeline-definition-Z64GVDOM.CNKRW4xi.js → timeline-definition-Z64GVDOM.agRZ87Zs.js} +3 -3
- package/library/chunks/{tree.Bq4vAQ6w.js → tree.Dc1p0HOj.js} +11 -5
- package/library/chunks/{typeface.Dr9m4SZE.js → typeface.DacggLTX.js} +1 -1
- package/library/chunks/{vennDiagram-T6HMQDX7.CObwvEEr.js → vennDiagram-T6HMQDX7.Cd9lVObe.js} +3 -3
- package/library/chunks/{wardleyDiagram-T6FBY63Y.BTL3nwWJ.js → wardleyDiagram-T6FBY63Y.yCklp5Oa.js} +3 -3
- package/library/chunks/{xychartDiagram-ELKLHX3M.DMDlz8tK.js → xychartDiagram-ELKLHX3M.CLuRN0XK.js} +5 -5
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +33 -33
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/molecules.js +15 -15
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +12630 -12630
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +12 -3
- package/library/packages/atoms/src/components/markdown/parser.d.ts +7 -2
- package/library/packages/atoms/src/components/option/option.d.ts +15 -2
- package/library/packages/atoms/src/components/select/select.d.ts +23 -2
- package/library/packages/molecules/src/sidebar/sidebar.d.ts +16 -2
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
- package/library/packages/types/src/markdown.d.ts +5 -0
- package/library/packages/types/src/sidebar.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +20 -0
- package/library/react-web-component.d.ts +26 -2
- package/library/utils.js +26 -26
- package/package.json +1 -1
- package/library/chunks/flowDiagram-UKHOOZJN.BoFivhJR.js +0 -16
- package/library/chunks/option.Da60zYvc.js +0 -100
- package/library/chunks/sidebar.CwAW3KaC.js +0 -100
|
@@ -13,21 +13,22 @@ import { r as y, t as b } from "./animation-registry.DKd2AOcC.js";
|
|
|
13
13
|
import { t as x } from "./when.BUskJLtZ.js";
|
|
14
14
|
import { t as S } from "./icon.CeQpEaQz.js";
|
|
15
15
|
import { t as C } from "./spinner.DsWszid8.js";
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
16
|
+
import { a as w, o as T } from "./string.9yahdkB8.js";
|
|
17
|
+
import { t as E } from "./form.D_eBa3AQ.js";
|
|
18
|
+
import { t as D } from "./line-clamp.DfbWHPf2.js";
|
|
19
|
+
import { t as O } from "./tag.uwkILLDo.js";
|
|
20
|
+
import { t as k } from "./typography.B0mkhqTB.js";
|
|
21
|
+
import { t as A } from "./form-control.styles.Cec6lJbi.js";
|
|
22
|
+
import { t as j } from "./default-value.opqQgoRT.js";
|
|
23
|
+
import { n as M } from "./active-elements.Tk45XSNQ.js";
|
|
24
|
+
import { t as N } from "./option.g339be2v.js";
|
|
25
|
+
import { n as P } from "./scroll.CEH_a4pm.js";
|
|
26
|
+
import { t as F } from "./user-agent.D2bRhUeS.js";
|
|
27
|
+
import { t as I } from "./unsafe-html.Cb838aX7.js";
|
|
27
28
|
//#region ../../packages/atoms/src/utilities/type-check.ts
|
|
28
|
-
var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement || customElements.get(e.tagName.toLowerCase())), I = 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}.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}`, L = class extends s {
|
|
29
|
+
var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement || customElements.get(e.tagName.toLowerCase())), R = 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}.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}`, z = class extends s {
|
|
29
30
|
constructor(...t) {
|
|
30
|
-
super(...t), this.formControlController = new
|
|
31
|
+
super(...t), this.formControlController = new E(this, { assumeInteractionOn: ["cx-input"] }), this.hasSlotController = new g(this, "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) => {
|
|
31
32
|
let n = this.hasSlotController.test("label"), r = this.label || n ? this.size === "large" ? "medium" : "small" : this.size;
|
|
32
33
|
return e`<cx-tag part="tag" exportparts="
|
|
33
34
|
base:tag__base,
|
|
@@ -37,13 +38,13 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
37
38
|
" ?pill=${this.pill} size=${r} ?removable=${this.multiple} @cx-remove=${(e) => {
|
|
38
39
|
this.handleTagRemove(e, t);
|
|
39
40
|
}}><cx-line-clamp lines="1">${this.getOptionLabel(t)}</cx-line-clamp></cx-tag>`;
|
|
40
|
-
}, this.inputBehavior = "filter", this.getOptionValue = (e) => !e || !(e instanceof
|
|
41
|
-
if (e && e instanceof
|
|
41
|
+
}, this.inputBehavior = "filter", this.filterIgnoreAccents = !1, this.highlightMatches = !1, this.minQueryLength = 0, this.getOptionValue = (e) => !e || !(e instanceof N) ? "" : e.value, this.getOptionLabel = (e) => !e || !(e instanceof N) ? "" : e.getTextLabel(), this.getOptionSelected = (e) => {
|
|
42
|
+
if (e && e instanceof N) return e.selected;
|
|
42
43
|
}, this.getOptionDisabled = (e) => {
|
|
43
|
-
if (e && e instanceof
|
|
44
|
+
if (e && e instanceof N) return e.disabled;
|
|
44
45
|
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (e) => {
|
|
45
46
|
!e.composedPath().includes(this) && !this.stayOpenOnSelect && requestAnimationFrame(() => {
|
|
46
|
-
let e =
|
|
47
|
+
let e = M();
|
|
47
48
|
!(this.contains(e ?? null) || this.shadowRoot?.contains(e ?? null)) && this.open && this.hide();
|
|
48
49
|
});
|
|
49
50
|
}, this.handleDocumentKeyDown = (e) => {
|
|
@@ -58,7 +59,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
58
59
|
this.show();
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
|
-
this.currentOption && !this.currentOption.hidden && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#
|
|
62
|
+
this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#c(), this.inputBehavior === "select" && this.selectOptionByInput()) : this.setSelectedOptions(this.currentOption), this.updateComplete.then(() => {
|
|
62
63
|
this.emit("cx-input"), this.emit("cx-change");
|
|
63
64
|
})), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
64
65
|
return;
|
|
@@ -70,27 +71,30 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
70
71
|
"End"
|
|
71
72
|
].includes(e.key)) {
|
|
72
73
|
let t = this.getAllOptions().filter((e) => this.inputBehavior !== "filter" || !e.hidden), n = this.currentOption ? t.indexOf(this.currentOption) : -1, r = Math.max(0, n);
|
|
73
|
-
if (e.preventDefault(), !this.open && (this.show(), this.currentOption)) return;
|
|
74
|
+
if (e.preventDefault(), !this.open && (!this.#r() || (this.show(), this.currentOption))) return;
|
|
74
75
|
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]);
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}, this.handleDocumentMouseDown = (e) => {
|
|
78
79
|
let t = e.composedPath();
|
|
79
80
|
this && !t.includes(this) && !this.stayOpenOnSelect && this.hide();
|
|
81
|
+
}, this.#i = {
|
|
82
|
+
folded: "",
|
|
83
|
+
raw: ""
|
|
80
84
|
};
|
|
81
85
|
}
|
|
82
86
|
static #e = this.styles = [
|
|
83
87
|
u,
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
A,
|
|
89
|
+
R
|
|
86
90
|
];
|
|
87
91
|
static #t = this.dependencies = {
|
|
88
92
|
"cx-icon": S,
|
|
89
|
-
"cx-line-clamp":
|
|
93
|
+
"cx-line-clamp": D,
|
|
90
94
|
"cx-popup": l,
|
|
91
95
|
"cx-spinner": C,
|
|
92
|
-
"cx-tag":
|
|
93
|
-
"cx-typography":
|
|
96
|
+
"cx-tag": O,
|
|
97
|
+
"cx-typography": k
|
|
94
98
|
};
|
|
95
99
|
get shouldShowNoOptionsMessage() {
|
|
96
100
|
return !!this.noOptionText && this.getVisibleOptions().length === 0;
|
|
@@ -114,7 +118,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
114
118
|
this.valueInput && (this.valueInput.setCustomValidity(e), this.formControlController.updateValidity());
|
|
115
119
|
}
|
|
116
120
|
setOptionSelected(e, t) {
|
|
117
|
-
if (e instanceof
|
|
121
|
+
if (e instanceof N && e.getAttribute("role") === "option") {
|
|
118
122
|
if (t === void 0) {
|
|
119
123
|
e.selected = !e.selected;
|
|
120
124
|
return;
|
|
@@ -123,7 +127,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
123
127
|
}
|
|
124
128
|
}
|
|
125
129
|
setOptionCurrent(e, t) {
|
|
126
|
-
if (e instanceof
|
|
130
|
+
if (e instanceof N) {
|
|
127
131
|
if (t === void 0) {
|
|
128
132
|
e.current = !e.current;
|
|
129
133
|
return;
|
|
@@ -132,7 +136,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
132
136
|
}
|
|
133
137
|
}
|
|
134
138
|
filterCallback(e, t) {
|
|
135
|
-
return this.getOptionLabel(e).toLowerCase().includes(t);
|
|
139
|
+
return this.filterIgnoreAccents ? T(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#a(t)) : this.getOptionLabel(e).toLowerCase().includes(t);
|
|
136
140
|
}
|
|
137
141
|
connectedCallback() {
|
|
138
142
|
super.connectedCallback(), this.stayOpenOnSelect || (this.open = !1);
|
|
@@ -141,10 +145,10 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
141
145
|
super.disconnectedCallback(), this.removeOpenListeners();
|
|
142
146
|
}
|
|
143
147
|
runFirstUpdated() {
|
|
144
|
-
|
|
148
|
+
F() && (this.contentEditable = "true");
|
|
145
149
|
}
|
|
146
150
|
willUpdate(e) {
|
|
147
|
-
super.willUpdate(e), this.hasUpdated && e.has("open") && e.get("open") !== this.open && this.handleOpenChange();
|
|
151
|
+
super.willUpdate(e), this.hasUpdated && e.has("open") && e.get("open") !== this.open && this.handleOpenChange(), this.hasUpdated && this.inputBehavior === "filter" && (e.has("filterIgnoreAccents") || e.has("highlightMatches")) && this.filterOptionsByInput();
|
|
148
152
|
}
|
|
149
153
|
addOpenListeners() {
|
|
150
154
|
document.addEventListener("focusin", this.handleDocumentFocusIn), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -164,9 +168,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
164
168
|
t && this.contains(t) || (this.hasFocus = !1, this.allowFreetext || (this.displayInput.value = this.displayLabel, this.typeToSelectString = ""), this.emit("cx-blur"));
|
|
165
169
|
}
|
|
166
170
|
handleInput(e) {
|
|
167
|
-
|
|
168
|
-
let t = e.target;
|
|
169
|
-
if (!(e.data && [
|
|
171
|
+
let t = e.target, n = [
|
|
170
172
|
"ArrowUp",
|
|
171
173
|
"ArrowDown",
|
|
172
174
|
"Enter",
|
|
@@ -174,12 +176,22 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
174
176
|
"Tab",
|
|
175
177
|
"Home",
|
|
176
178
|
"End"
|
|
177
|
-
]
|
|
179
|
+
];
|
|
180
|
+
if (!this.open && e.data === " ") {
|
|
181
|
+
this.show();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (e.data && n.includes(e.data)) {
|
|
185
|
+
this.open || this.show();
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
switch (this.typeToSelectString = t.value.toLowerCase(), this.displayLabel = t.value, this.open || this.show(), this.emit("cx-input"), this.inputBehavior) {
|
|
178
189
|
case "filter":
|
|
179
|
-
this.filterOptionsByInput()
|
|
190
|
+
this.filterOptionsByInput();
|
|
180
191
|
break;
|
|
181
192
|
case "select": this.selectOptionByInput();
|
|
182
193
|
}
|
|
194
|
+
this.#o();
|
|
183
195
|
}
|
|
184
196
|
handleComboboxMouseDown(e) {
|
|
185
197
|
let t = e.composedPath(), n = !1, r = !1;
|
|
@@ -191,13 +203,13 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
191
203
|
e instanceof HTMLElement && e.tagName.toLowerCase() === "cx-icon-button" && (n = !0);
|
|
192
204
|
}), !(this.disabled || n) && (r || this.inputBehavior !== "filter" || !this.open || !this.multiple && !this.useTag ? (this.allowDefaultMouseDown || this.allowFreetext ? requestAnimationFrame(() => {
|
|
193
205
|
this.displayInput.focus({ preventScroll: !0 });
|
|
194
|
-
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText)) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
|
|
206
|
+
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#r()) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
|
|
195
207
|
}
|
|
196
208
|
handleComboboxKeyDown(e) {
|
|
197
209
|
e.key !== "Tab" && ((e.key !== "Escape" || this.open && (this.shouldShowNoOptionsMessage || this.getVisibleOptions().length > 0)) && e.stopPropagation(), this.handleDocumentKeyDown(e));
|
|
198
210
|
}
|
|
199
211
|
handleClearClick(e) {
|
|
200
|
-
e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#
|
|
212
|
+
e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#c(), this.updateComplete.then(() => {
|
|
201
213
|
this.emit("cx-clear"), this.emit("cx-input"), this.emit("cx-change");
|
|
202
214
|
}));
|
|
203
215
|
}
|
|
@@ -206,7 +218,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
206
218
|
}
|
|
207
219
|
handleOptionClick(e) {
|
|
208
220
|
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"));
|
|
209
|
-
t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#
|
|
221
|
+
t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#c()) : this.setSelectedOptions(t), this.updateComplete.then(() => this.displayInput.focus({ preventScroll: !0 })), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
|
|
210
222
|
this.emit("cx-input"), this.emit("cx-change");
|
|
211
223
|
}), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
212
224
|
}
|
|
@@ -214,10 +226,10 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
214
226
|
let e = this.getAllOptions(), t = Array.isArray(this.value) ? this.value : [this.value], n = [];
|
|
215
227
|
for (let t of e) {
|
|
216
228
|
let e = this.getOptionValue(t);
|
|
217
|
-
if (!e && !(t instanceof
|
|
229
|
+
if (!e && !(t instanceof N)) return;
|
|
218
230
|
n.push(e);
|
|
219
231
|
let r = t.tagName.toLowerCase();
|
|
220
|
-
if (!
|
|
232
|
+
if (!L(t) && !customElements.get(r)) {
|
|
221
233
|
customElements.whenDefined(r).then(() => this.handleDefaultSlotChange());
|
|
222
234
|
return;
|
|
223
235
|
}
|
|
@@ -227,7 +239,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
227
239
|
this.setSelectedOptions(r, i ? this.value : void 0), this.hasFocus && !this.open && !this.disabled && e.length > 0 && this.show();
|
|
228
240
|
}
|
|
229
241
|
handleTagRemove(e, t) {
|
|
230
|
-
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#
|
|
242
|
+
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#c(), this.updateComplete.then(() => {
|
|
231
243
|
this.emit("cx-input"), this.emit("cx-change");
|
|
232
244
|
}));
|
|
233
245
|
}
|
|
@@ -237,6 +249,9 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
237
249
|
getFirstOption() {
|
|
238
250
|
return this.querySelector("cx-option");
|
|
239
251
|
}
|
|
252
|
+
#n() {
|
|
253
|
+
return [...this.querySelectorAll("cx-option")].find((e) => !e.hidden) ?? null;
|
|
254
|
+
}
|
|
240
255
|
getVisibleOptions() {
|
|
241
256
|
return this.getAllOptions().filter((e) => !e.hidden);
|
|
242
257
|
}
|
|
@@ -275,7 +290,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
275
290
|
return this.selectedOptions.map((t, i) => {
|
|
276
291
|
if (i < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
|
|
277
292
|
let n = this.getTag(t, i);
|
|
278
|
-
return e`${typeof n == "string" ?
|
|
293
|
+
return e`${typeof n == "string" ? I(n) : n}`;
|
|
279
294
|
}
|
|
280
295
|
return i === this.maxOptionsVisible ? e`<cx-tag ?pill=${this.pill} size=${r}>
|
|
281
296
|
+${this.selectedOptions.length - i}</cx-tag>` : n;
|
|
@@ -297,11 +312,15 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
297
312
|
async handleOpenChange() {
|
|
298
313
|
if (this.open && !this.disabled) {
|
|
299
314
|
if (this.noDropdown) return;
|
|
300
|
-
this.inputBehavior === "filter" && this.filterOptionsByInput(), this.noResetCurrent
|
|
315
|
+
if (this.inputBehavior === "filter" && this.filterOptionsByInput(), !this.noResetCurrent) {
|
|
316
|
+
let [e] = this.selectedOptions;
|
|
317
|
+
this.setCurrentOption(e && !e.hidden ? e : this.#n() ?? this.getFirstOption());
|
|
318
|
+
}
|
|
319
|
+
this.emit("cx-show"), this.addOpenListeners(), await f(this), this.listbox.hidden = !1, this.popup.active = !0, requestAnimationFrame(() => {
|
|
301
320
|
this.currentOption && this.setCurrentOption(this.currentOption);
|
|
302
321
|
});
|
|
303
322
|
let { keyframes: e, options: t } = b(this, "select.show", { dir: this.localize.dir() });
|
|
304
|
-
await d(this.popup.popup, e, t), this.currentOption &&
|
|
323
|
+
await d(this.popup.popup, e, t), this.currentOption && P(this.currentOption, this.listbox, "vertical", "auto"), this.emit("cx-after-show");
|
|
305
324
|
} else {
|
|
306
325
|
this.emit("cx-hide"), this.removeOpenListeners(), await f(this);
|
|
307
326
|
let { keyframes: e, options: t } = b(this, "select.hide", { dir: this.localize.dir() });
|
|
@@ -315,25 +334,42 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
315
334
|
break;
|
|
316
335
|
}
|
|
317
336
|
}
|
|
337
|
+
#r() {
|
|
338
|
+
return this.typeToSelectString.length >= Math.max(0, this.minQueryLength || 0);
|
|
339
|
+
}
|
|
340
|
+
#i;
|
|
341
|
+
#a(e) {
|
|
342
|
+
return this.#i.raw !== e && (this.#i = {
|
|
343
|
+
folded: T(e, { ignoreAccents: !0 }),
|
|
344
|
+
raw: e
|
|
345
|
+
}), this.#i.folded;
|
|
346
|
+
}
|
|
347
|
+
#o() {
|
|
348
|
+
this.open && !this.#r() && this.hide();
|
|
349
|
+
}
|
|
350
|
+
#s(e) {
|
|
351
|
+
return !this.highlightMatches || e.hidden ? [] : w(e.getTextLabel(), this.typeToSelectString, { ignoreAccents: this.filterIgnoreAccents });
|
|
352
|
+
}
|
|
318
353
|
filterOptionsByInput() {
|
|
319
354
|
let e = this.getAllOptions();
|
|
320
|
-
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"));
|
|
321
|
-
this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
|
|
355
|
+
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 N && (t.matchRanges = this.#s(t));
|
|
356
|
+
this.#l(), this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
|
|
322
357
|
}
|
|
323
|
-
#
|
|
324
|
-
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput();
|
|
358
|
+
#c() {
|
|
359
|
+
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#o();
|
|
325
360
|
}
|
|
326
|
-
#
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
361
|
+
#l() {
|
|
362
|
+
let { currentOption: e } = this;
|
|
363
|
+
if (!e || !e.hidden && e.isConnected) return;
|
|
364
|
+
let t = this.getVisibleOptions()[0];
|
|
365
|
+
t && this.setCurrentOption(t);
|
|
330
366
|
}
|
|
331
367
|
async show() {
|
|
332
368
|
if (this.open || this.disabled) {
|
|
333
369
|
this.open = !1;
|
|
334
370
|
return;
|
|
335
371
|
}
|
|
336
|
-
if (this.getAllOptions().length !== 0 || this.noOptionText) return this.open = !0, p(this, "cx-after-show");
|
|
372
|
+
if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#r()) return this.open = !0, p(this, "cx-after-show");
|
|
337
373
|
}
|
|
338
374
|
async hide() {
|
|
339
375
|
if (!this.open || this.disabled) {
|
|
@@ -349,19 +385,19 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
349
385
|
this.displayInput.blur();
|
|
350
386
|
}
|
|
351
387
|
render() {
|
|
352
|
-
let t = this.hasSlotController.test("label"),
|
|
388
|
+
let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.label ? !0 : !!t, a = this.helpText ? !0 : !!r, o = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), s = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, c = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, l = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
|
|
353
389
|
return e`<div part="form-control" class=${v({
|
|
354
390
|
"form-control": !0,
|
|
355
|
-
"form-control--has-help-text":
|
|
356
|
-
"form-control--has-label":
|
|
391
|
+
"form-control--has-help-text": a,
|
|
392
|
+
"form-control--has-label": i,
|
|
357
393
|
"form-control--large": this.size === "large",
|
|
358
394
|
"form-control--medium": this.size === "medium",
|
|
359
395
|
"form-control--small": this.size === "small"
|
|
360
396
|
})}><div part="form-control-input" class="form-control-input"><cx-popup .active=${this.open && this.stayOpenOnSelect} .syncElement=${this.syncElement} class=${v({
|
|
361
397
|
select: !0,
|
|
362
|
-
"select--bottom": this.placement
|
|
398
|
+
"select--bottom": this.placement.startsWith("bottom"),
|
|
363
399
|
"select--disabled": this.disabled,
|
|
364
|
-
"select--empty":
|
|
400
|
+
"select--empty": c,
|
|
365
401
|
"select--filled": this.filled,
|
|
366
402
|
"select--focused": this.hasFocus || this.open,
|
|
367
403
|
"select--large": this.size === "large",
|
|
@@ -369,116 +405,132 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
369
405
|
"select--multiple": this.multiple || this.useTag,
|
|
370
406
|
"select--open": this.open,
|
|
371
407
|
"select--pill": this.pill,
|
|
372
|
-
"select--placeholder-visible":
|
|
408
|
+
"select--placeholder-visible": s,
|
|
373
409
|
"select--small": this.size === "small",
|
|
374
410
|
"select--standard": !0,
|
|
375
|
-
"select--top": this.placement
|
|
376
|
-
})} placement=${this.placement} strategy=${this.hoist ? "overlay" : "absolute"} ?flip=${!this.noFlip} shift sync=${this.freeWidth ? void 0 : "width"} auto-size="both" auto-size-padding=${this.autosizePadding} flip-padding="10"><div part="combobox" class="select__combobox" slot="anchor" @keydown=${this.handleComboboxKeyDown} @mousedown=${this.handleComboboxMouseDown}><slot part="prefix" name="prefix" class="select__prefix"></slot><span class="input-container" @click=${this.handleFocus}><label id="label" part="form-control-label" class="form-control__label" aria-hidden=${
|
|
411
|
+
"select--top": this.placement.startsWith("top")
|
|
412
|
+
})} placement=${this.placement} strategy=${this.hoist ? "overlay" : "absolute"} ?flip=${!this.noFlip} shift sync=${this.freeWidth ? void 0 : "width"} auto-size="both" auto-size-padding=${this.autosizePadding} flip-padding="10"><div part="combobox" class="select__combobox" slot="anchor" @keydown=${this.handleComboboxKeyDown} @mousedown=${this.handleComboboxMouseDown}><slot part="prefix" name="prefix" class="select__prefix"></slot><span class="input-container" @click=${this.handleFocus}><label id="label" part="form-control-label" class="form-control__label" aria-hidden=${i ? "false" : "true"}><slot name="label">${this.label}</slot></label>${x(l, () => e`<div part="tags" class="select__tags" @cx-remove=${this.handleTagRemove}>${this.tags}</div>`)}<input part="display-input" class=${v({
|
|
377
413
|
"select__display-input": !0,
|
|
378
|
-
"select__display-input--hidden": (this.multiple || this.useTag) && !this.hasFocus && !
|
|
414
|
+
"select__display-input--hidden": (this.multiple || this.useTag) && !this.hasFocus && !c && !(this.open && this.inputBehavior === "filter"),
|
|
379
415
|
"select__display-input--large": this.size === "large",
|
|
380
416
|
"select__display-input--medium": this.size === "medium",
|
|
381
417
|
"select__display-input--small": this.size === "small"
|
|
382
|
-
})} type="text" placeholder=${this.placeholder} .disabled=${this.disabled} ?readonly=${this.inputBehavior === "none" && !this.allowFreetext} .value=${this.displayLabel} autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded=${this.open ? "true" : "false"} aria-haspopup="listbox" aria-label=${
|
|
383
|
-
${x(
|
|
418
|
+
})} type="text" placeholder=${this.placeholder} .disabled=${this.disabled} ?readonly=${this.inputBehavior === "none" && !this.allowFreetext} .value=${this.displayLabel} autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded=${this.open ? "true" : "false"} aria-haspopup="listbox" aria-label=${i ? void 0 : this.dataset.label} aria-labelledby="label" aria-disabled=${this.disabled ? "true" : "false"} aria-describedby="help-text" role="combobox" tabindex="0" @focus=${this.handleFocus} @input=${this.handleInput} @blur=${this.handleBlur}></span><input class="select__value-input" type="text" ?disabled=${this.disabled} ?required=${this.required} .value=${Array.isArray(this.value) ? this.value.join(", ") : this.value} tabindex="-1" aria-hidden="true" @focus=${this.focus} @invalid=${this.handleInvalid}>${x(this.loading, () => e`<cx-spinner part="spinner" role="status" aria-live="polite"></cx-spinner>`)}
|
|
419
|
+
${x(o, () => 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-labelledby="label" part="listbox" class="select__listbox" tabindex="-1" @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><slot></slot>${x(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div></cx-popup></div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${a ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
384
420
|
}
|
|
385
421
|
};
|
|
386
|
-
a([c(".select"), o("design:type", l === void 0 ? Object : l)],
|
|
422
|
+
a([c(".select"), o("design:type", l === void 0 ? Object : l)], z.prototype, "popup", void 0), a([c(".select__combobox"), o("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], z.prototype, "combobox", void 0), a([c(".select__display-input"), o("design:type", typeof HTMLInputElement > "u" ? Object : HTMLInputElement)], z.prototype, "displayInput", void 0), a([c(".select__value-input"), o("design:type", Object)], z.prototype, "valueInput", void 0), a([c(".select__listbox"), o("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], z.prototype, "listbox", void 0), a([i(), o("design:type", Object)], z.prototype, "hasFocus", void 0), a([i(), o("design:type", Object)], z.prototype, "displayLabel", void 0), a([i(), o("design:type", Object)], z.prototype, "currentOption", void 0), a([i(), o("design:type", Array)], z.prototype, "selectedOptions", void 0), a([r(), o("design:type", Object)], z.prototype, "name", void 0), a([r({ converter: {
|
|
387
423
|
fromAttribute: (e) => e.split(" "),
|
|
388
424
|
toAttribute: (e) => Array.isArray(e) ? e.join(" ") : e
|
|
389
|
-
} }), o("design:type", Object)],
|
|
425
|
+
} }), o("design:type", Object)], z.prototype, "value", void 0), a([r({
|
|
390
426
|
attribute: "fallback-option-value",
|
|
391
427
|
type: String
|
|
392
|
-
}), o("design:type", Object)],
|
|
428
|
+
}), o("design:type", Object)], z.prototype, "fallbackOptionValue", void 0), a([r({
|
|
393
429
|
attribute: "match-empty-value",
|
|
394
430
|
type: Boolean
|
|
395
|
-
}), o("design:type", Object)],
|
|
431
|
+
}), o("design:type", Object)], z.prototype, "matchEmptyValue", void 0), a([j(), o("design:type", Object)], z.prototype, "defaultValue", void 0), a([r({ reflect: !0 }), o("design:type", String)], z.prototype, "size", void 0), a([r(), o("design:type", Object)], z.prototype, "placeholder", void 0), a([r({
|
|
396
432
|
attribute: "allow-freetext",
|
|
397
433
|
reflect: !0,
|
|
398
434
|
type: Boolean
|
|
399
|
-
}), o("design:type", Object)],
|
|
435
|
+
}), o("design:type", Object)], z.prototype, "allowFreetext", void 0), a([r({
|
|
400
436
|
reflect: !0,
|
|
401
437
|
type: Boolean
|
|
402
|
-
}), o("design:type", Object)],
|
|
438
|
+
}), o("design:type", Object)], z.prototype, "multiple", void 0), a([r({
|
|
403
439
|
attribute: "max-options-visible",
|
|
404
440
|
type: Number
|
|
405
|
-
}), o("design:type", Object)],
|
|
441
|
+
}), o("design:type", Object)], z.prototype, "maxOptionsVisible", void 0), a([r({
|
|
406
442
|
reflect: !0,
|
|
407
443
|
type: Boolean
|
|
408
|
-
}), o("design:type", Object)],
|
|
444
|
+
}), o("design:type", Object)], z.prototype, "disabled", void 0), a([r({ type: Boolean }), o("design:type", Object)], z.prototype, "clearable", void 0), a([r({
|
|
409
445
|
reflect: !0,
|
|
410
446
|
type: Boolean
|
|
411
|
-
}), o("design:type", Object)],
|
|
447
|
+
}), o("design:type", Object)], z.prototype, "open", void 0), a([r({ type: Boolean }), o("design:type", Object)], z.prototype, "hoist", void 0), a([r({
|
|
412
448
|
attribute: "no-flip",
|
|
413
449
|
reflect: !0,
|
|
414
450
|
type: Boolean
|
|
415
|
-
}), o("design:type", Object)],
|
|
451
|
+
}), o("design:type", Object)], z.prototype, "noFlip", void 0), a([r({ attribute: "sync-element" }), o("design:type", Object)], z.prototype, "syncElement", void 0), a([r({
|
|
416
452
|
attribute: "free-width",
|
|
417
453
|
reflect: !0,
|
|
418
454
|
type: Boolean
|
|
419
|
-
}), o("design:type", Object)],
|
|
455
|
+
}), o("design:type", Object)], z.prototype, "freeWidth", void 0), a([r({
|
|
420
456
|
attribute: "auto-size-padding",
|
|
421
457
|
type: Number
|
|
422
|
-
}), o("design:type", Object)],
|
|
458
|
+
}), o("design:type", Object)], z.prototype, "autosizePadding", void 0), a([r({
|
|
423
459
|
reflect: !0,
|
|
424
460
|
type: Boolean
|
|
425
|
-
}), o("design:type", Object)],
|
|
461
|
+
}), o("design:type", Object)], z.prototype, "filled", void 0), a([r({
|
|
426
462
|
reflect: !0,
|
|
427
463
|
type: Boolean
|
|
428
|
-
}), o("design:type", Object)],
|
|
464
|
+
}), o("design:type", Object)], z.prototype, "pill", void 0), a([r(), o("design:type", Object)], z.prototype, "label", void 0), a([r({ reflect: !0 }), o("design:type", String)], z.prototype, "placement", void 0), a([r({ attribute: "help-text" }), o("design:type", Object)], z.prototype, "helpText", void 0), a([r({ reflect: !1 }), o("design:type", Object)], z.prototype, "form", void 0), a([r({
|
|
429
465
|
reflect: !0,
|
|
430
466
|
type: Boolean
|
|
431
|
-
}), o("design:type", Object)],
|
|
467
|
+
}), o("design:type", Object)], z.prototype, "required", void 0), a([r({
|
|
432
468
|
attribute: "use-tag",
|
|
433
469
|
reflect: !0,
|
|
434
470
|
type: Boolean
|
|
435
|
-
}), o("design:type", Object)],
|
|
471
|
+
}), o("design:type", Object)], z.prototype, "useTag", void 0), a([r({
|
|
436
472
|
attribute: "no-select-on-enter",
|
|
437
473
|
reflect: !0,
|
|
438
474
|
type: Boolean
|
|
439
|
-
}), o("design:type", Object)],
|
|
475
|
+
}), o("design:type", Object)], z.prototype, "noSelectOnEnter", void 0), a([r({
|
|
440
476
|
attribute: "no-reset-current",
|
|
441
477
|
reflect: !0,
|
|
442
478
|
type: Boolean
|
|
443
|
-
}), o("design:type", Object)],
|
|
479
|
+
}), o("design:type", Object)], z.prototype, "noResetCurrent", void 0), a([r({
|
|
444
480
|
attribute: "no-dropdown",
|
|
445
481
|
reflect: !0,
|
|
446
482
|
type: Boolean
|
|
447
|
-
}), o("design:type", Object)],
|
|
483
|
+
}), o("design:type", Object)], z.prototype, "noDropdown", void 0), a([r({
|
|
484
|
+
attribute: "no-expand-icon",
|
|
485
|
+
reflect: !0,
|
|
486
|
+
type: Boolean
|
|
487
|
+
}), o("design:type", Object)], z.prototype, "noExpandIcon", void 0), a([r({
|
|
448
488
|
attribute: "loading",
|
|
449
489
|
reflect: !0,
|
|
450
490
|
type: Boolean
|
|
451
|
-
}), o("design:type", Object)],
|
|
491
|
+
}), o("design:type", Object)], z.prototype, "loading", void 0), a([r({
|
|
452
492
|
attribute: "get-tag",
|
|
453
493
|
type: Function
|
|
454
|
-
}), o("design:type", Function)],
|
|
494
|
+
}), o("design:type", Function)], z.prototype, "getTag", void 0), a([r({ attribute: "input-behavior" }), o("design:type", String)], z.prototype, "inputBehavior", void 0), a([r({
|
|
495
|
+
attribute: "filter-ignore-accents",
|
|
496
|
+
reflect: !0,
|
|
497
|
+
type: Boolean
|
|
498
|
+
}), o("design:type", Object)], z.prototype, "filterIgnoreAccents", void 0), a([r({
|
|
499
|
+
attribute: "highlight-matches",
|
|
500
|
+
reflect: !0,
|
|
501
|
+
type: Boolean
|
|
502
|
+
}), o("design:type", Object)], z.prototype, "highlightMatches", void 0), a([r({
|
|
503
|
+
attribute: "min-query-length",
|
|
504
|
+
reflect: !0,
|
|
505
|
+
type: Number
|
|
506
|
+
}), o("design:type", Object)], z.prototype, "minQueryLength", void 0), a([r({
|
|
455
507
|
attribute: "get-option-value",
|
|
456
508
|
type: Function
|
|
457
|
-
}), o("design:type", Function)],
|
|
509
|
+
}), o("design:type", Function)], z.prototype, "getOptionValue", void 0), a([r({
|
|
458
510
|
attribute: "get-option-label",
|
|
459
511
|
type: Function
|
|
460
|
-
}), o("design:type", Function)],
|
|
512
|
+
}), o("design:type", Function)], z.prototype, "getOptionLabel", void 0), a([r({
|
|
461
513
|
attribute: "get-option-selected",
|
|
462
514
|
type: Function
|
|
463
|
-
}), o("design:type", Function)],
|
|
515
|
+
}), o("design:type", Function)], z.prototype, "getOptionSelected", void 0), a([r({
|
|
464
516
|
attribute: "get-option-disabled",
|
|
465
517
|
type: Function
|
|
466
|
-
}), o("design:type", Function)],
|
|
518
|
+
}), o("design:type", Function)], z.prototype, "getOptionDisabled", void 0), a([r({
|
|
467
519
|
attribute: "stay-open-on-select",
|
|
468
520
|
type: Boolean
|
|
469
|
-
}), o("design:type", Object)],
|
|
521
|
+
}), o("design:type", Object)], z.prototype, "stayOpenOnSelect", void 0), a([r({
|
|
470
522
|
attribute: "close-on-select",
|
|
471
523
|
type: Boolean
|
|
472
|
-
}), o("design:type", Object)],
|
|
524
|
+
}), o("design:type", Object)], z.prototype, "closeOnSelect", void 0), a([r({
|
|
473
525
|
attribute: "force-on-change",
|
|
474
526
|
type: Boolean
|
|
475
|
-
}), o("design:type", Object)],
|
|
527
|
+
}), o("design:type", Object)], z.prototype, "forceOnChange", void 0), a([r({
|
|
476
528
|
attribute: "allow-default-mouse-down",
|
|
477
529
|
type: Boolean
|
|
478
|
-
}), o("design:type", Object)],
|
|
530
|
+
}), o("design:type", Object)], z.prototype, "allowDefaultMouseDown", void 0), a([r({
|
|
479
531
|
attribute: "no-option-text",
|
|
480
532
|
type: String
|
|
481
|
-
}), o("design:type", Object)],
|
|
533
|
+
}), o("design:type", Object)], z.prototype, "noOptionText", void 0), a([
|
|
482
534
|
_("getOptionValue", { waitUntilFirstUpdate: !0 }),
|
|
483
535
|
_("getOptionLabel", { waitUntilFirstUpdate: !0 }),
|
|
484
536
|
_("getOptionSelected", { waitUntilFirstUpdate: !0 }),
|
|
@@ -488,23 +540,23 @@ a([c(".select"), o("design:type", l === void 0 ? Object : l)], L.prototype, "pop
|
|
|
488
540
|
o("design:type", Function),
|
|
489
541
|
o("design:paramtypes", []),
|
|
490
542
|
o("design:returntype", void 0)
|
|
491
|
-
],
|
|
543
|
+
], z.prototype, "handleDefaultSlotChange", null), a([
|
|
492
544
|
_("disabled", { waitUntilFirstUpdate: !0 }),
|
|
493
545
|
o("design:type", Function),
|
|
494
546
|
o("design:paramtypes", []),
|
|
495
547
|
o("design:returntype", void 0)
|
|
496
|
-
],
|
|
548
|
+
], z.prototype, "handleDisabledChange", null), a([
|
|
497
549
|
_("value", { waitUntilFirstUpdate: !0 }),
|
|
498
550
|
o("design:type", Function),
|
|
499
551
|
o("design:paramtypes", []),
|
|
500
552
|
o("design:returntype", void 0)
|
|
501
|
-
],
|
|
553
|
+
], z.prototype, "handleValueChange", null), a([
|
|
502
554
|
_("noDropdown", { waitUntilFirstUpdate: !0 }),
|
|
503
555
|
o("design:type", Function),
|
|
504
556
|
o("design:paramtypes", []),
|
|
505
557
|
o("design:returntype", Promise)
|
|
506
|
-
],
|
|
507
|
-
var
|
|
558
|
+
], z.prototype, "handleNoDropdownChange", null), z = a([m("cx-select")], z);
|
|
559
|
+
var B = z;
|
|
508
560
|
y("select.show", {
|
|
509
561
|
keyframes: [{
|
|
510
562
|
opacity: 0,
|
|
@@ -531,4 +583,4 @@ y("select.show", {
|
|
|
531
583
|
}
|
|
532
584
|
});
|
|
533
585
|
//#endregion
|
|
534
|
-
export {
|
|
586
|
+
export { B as t };
|