@orangelogic/design-system 4.59.0 → 4.61.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.zO0t0oA3.js → asset-link-format.BUZqXO4D.js} +2 -2
- package/library/chunks/{bicolor-picker.DZY5PP24.js → bicolor-picker.DUEEcruV.js} +1 -1
- package/library/chunks/{block-width.Dbc3rT3Y.js → block-width.QzHkjabg.js} +21 -21
- package/library/chunks/{border-input-group.BymzNWba.js → border-input-group.XgNVfmul.js} +2 -2
- package/library/chunks/{color-picker.Ch5-Ylm8.js → color-picker.BkXV3vIK.js} +4 -4
- package/library/chunks/{color-swatch-group.Bcw5aIqG.js → color-swatch-group.G_07BvHg.js} +7 -7
- package/library/chunks/{config-manager.BfkCA0F3.js → config-manager.Brd2mbsf.js} +18 -18
- package/library/chunks/{configs-controller.uTcM4iX4.js → configs-controller.BPhkqQBv.js} +4 -4
- package/library/chunks/{confirm-popover.DUrgLQjC.js → confirm-popover.nSZeBx2K.js} +2 -2
- package/library/chunks/{corner-position-input-group.mrOiz-0k.js → corner-position-input-group.abmx6hmy.js} +2 -2
- package/library/chunks/{dialog.BcCTa8Bd.js → dialog.D0oTJWFf.js} +484 -468
- package/library/chunks/{document-viewer.Ch5h5Wte.js → document-viewer.B2RwLRXO.js} +5 -5
- package/library/chunks/{drawer.CLSdjLR9.js → drawer.BsKzYqKe.js} +37 -26
- package/library/chunks/{dropdown.DDQXJMth.js → dropdown.Cc32yInQ.js} +2 -2
- package/library/chunks/{dynamic-select.Dwcz7UjN.js → dynamic-select.ItukXjZg.js} +1 -1
- package/library/chunks/{file-on-demand.BmRBmyyq.js → file-on-demand.C9kzOZ1N.js} +5 -5
- package/library/chunks/{folder-select.Buoz3ioX.js → folder-select.BBJWsH8o.js} +2 -2
- package/library/chunks/{input.kTjqEyC8.js → input.DZRed6yo.js} +1 -0
- package/library/chunks/{menu-item.CtFgeM0H.js → menu-item.SGtyl6pY.js} +24 -5
- package/library/chunks/{menu.BEVPnl3Y.js → menu.69SdPYy6.js} +2 -2
- package/library/chunks/{padding-input-group.B-hbA7P2.js → padding-input-group.D2Qx15Yj.js} +1 -1
- package/library/chunks/{pagination.DULLxssA.js → pagination.Bz2Q9ov3.js} +2 -2
- package/library/chunks/{select.S9rnkI_b.js → select.BMGK3xy9.js} +50 -38
- package/library/chunks/{shadow-input-group.B_W5gJ4u.js → shadow-input-group.jGS4SWwT.js} +2 -2
- package/library/chunks/{size-input-group.DUyTc5na.js → size-input-group.Db5PQVLF.js} +2 -2
- package/library/chunks/{src.D0Zj6Eo1.js → src.BG3K1VCp.js} +14 -14
- package/library/chunks/step.B_mpg1je.js +96 -0
- package/library/chunks/{stepper-wizard.DgrCTDtq.js → stepper-wizard.D5CSyMa0.js} +8 -5
- package/library/chunks/{stepper.BhpFjenM.js → stepper.DDMxj1Ts.js} +1 -1
- package/library/chunks/{tab-group.kyiPblS9.js → tab-group.97YGxRGu.js} +3 -3
- package/library/chunks/{video.B0vHXehv.js → video.DWmHPbXO.js} +116 -93
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +15 -15
- 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/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/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/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +10 -10
- 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/select.js +1 -1
- package/library/components/shadow-input-group.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/tab-group.js +1 -1
- package/library/components/types.js +31 -31
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +24 -4
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +9 -0
- package/library/packages/atoms/src/components/input/input.d.ts +4 -1
- package/library/packages/atoms/src/components/menu/menu.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -1
- package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +9 -0
- package/library/packages/atoms/src/components/select/select.d.ts +12 -1
- package/library/packages/atoms/src/components/step/step.d.ts +5 -0
- package/library/packages/molecules/src/stepper-wizard/stepper-wizard.d.ts +4 -0
- package/library/packages/types/src/dialog.d.ts +9 -0
- package/library/react-web-component.d.ts +14 -2
- package/package.json +1 -1
- package/library/chunks/step.DoO31jfk.js +0 -93
|
@@ -26,9 +26,9 @@ import { n as P } from "./scroll.CEH_a4pm.js";
|
|
|
26
26
|
import { t as F } from "./user-agent.D2bRhUeS.js";
|
|
27
27
|
import { t as I } from "./unsafe-html.Cb838aX7.js";
|
|
28
28
|
//#region ../../packages/atoms/src/utilities/type-check.ts
|
|
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
|
+
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}.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: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}`, z = class extends s {
|
|
30
30
|
constructor(...t) {
|
|
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
|
+
super(...t), this.formControlController = new E(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
32
|
let n = this.hasSlotController.test("label"), r = this.label || n ? this.size === "large" ? "medium" : "small" : this.size;
|
|
33
33
|
return e`<cx-tag part="tag" exportparts="
|
|
34
34
|
base:tag__base,
|
|
@@ -59,7 +59,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
59
59
|
this.show();
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !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.#d(), this.inputBehavior === "select" && this.selectOptionByInput()) : this.setSelectedOptions(this.currentOption), this.updateComplete.then(() => {
|
|
63
63
|
this.emit("cx-input"), this.emit("cx-change");
|
|
64
64
|
})), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
65
65
|
return;
|
|
@@ -71,14 +71,14 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
71
71
|
"End"
|
|
72
72
|
].includes(e.key)) {
|
|
73
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);
|
|
74
|
-
if (e.preventDefault(), !this.open && (!this.#
|
|
74
|
+
if (e.preventDefault(), !this.open && (!this.#o() || (this.show(), this.currentOption))) return;
|
|
75
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]);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}, this.handleDocumentMouseDown = (e) => {
|
|
79
79
|
let t = e.composedPath();
|
|
80
80
|
this && !t.includes(this) && !this.stayOpenOnSelect && this.hide();
|
|
81
|
-
}, this.#
|
|
81
|
+
}, this.#s = {
|
|
82
82
|
folded: "",
|
|
83
83
|
raw: ""
|
|
84
84
|
};
|
|
@@ -136,7 +136,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
filterCallback(e, t) {
|
|
139
|
-
return this.filterIgnoreAccents ? T(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#
|
|
139
|
+
return this.filterIgnoreAccents ? T(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#c(t)) : this.getOptionLabel(e).toLowerCase().includes(t);
|
|
140
140
|
}
|
|
141
141
|
connectedCallback() {
|
|
142
142
|
super.connectedCallback(), this.stayOpenOnSelect || (this.open = !1);
|
|
@@ -191,7 +191,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
191
191
|
break;
|
|
192
192
|
case "select": this.selectOptionByInput();
|
|
193
193
|
}
|
|
194
|
-
this.#
|
|
194
|
+
this.#l();
|
|
195
195
|
}
|
|
196
196
|
handleComboboxMouseDown(e) {
|
|
197
197
|
let t = e.composedPath(), n = !1, r = !1;
|
|
@@ -203,13 +203,13 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
203
203
|
e instanceof HTMLElement && e.tagName.toLowerCase() === "cx-icon-button" && (n = !0);
|
|
204
204
|
}), !(this.disabled || n) && (r || this.inputBehavior !== "filter" || !this.open || !this.multiple && !this.useTag ? (this.allowDefaultMouseDown || this.allowFreetext ? requestAnimationFrame(() => {
|
|
205
205
|
this.displayInput.focus({ preventScroll: !0 });
|
|
206
|
-
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#
|
|
206
|
+
}) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#o()) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
|
|
207
207
|
}
|
|
208
208
|
handleComboboxKeyDown(e) {
|
|
209
209
|
e.key !== "Tab" && ((e.key !== "Escape" || this.open && (this.shouldShowNoOptionsMessage || this.getVisibleOptions().length > 0)) && e.stopPropagation(), this.handleDocumentKeyDown(e));
|
|
210
210
|
}
|
|
211
211
|
handleClearClick(e) {
|
|
212
|
-
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.#d(), this.updateComplete.then(() => {
|
|
213
213
|
this.emit("cx-clear"), this.emit("cx-input"), this.emit("cx-change");
|
|
214
214
|
}));
|
|
215
215
|
}
|
|
@@ -218,7 +218,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
218
218
|
}
|
|
219
219
|
handleOptionClick(e) {
|
|
220
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"));
|
|
221
|
-
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.#d()) : this.setSelectedOptions(t), this.updateComplete.then(() => this.displayInput.focus({ preventScroll: !0 })), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
|
|
222
222
|
this.emit("cx-input"), this.emit("cx-change");
|
|
223
223
|
}), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
|
|
224
224
|
}
|
|
@@ -239,18 +239,27 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
239
239
|
this.setSelectedOptions(r, i ? this.value : void 0), this.hasFocus && !this.open && !this.disabled && e.length > 0 && this.show();
|
|
240
240
|
}
|
|
241
241
|
handleTagRemove(e, t) {
|
|
242
|
-
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#
|
|
242
|
+
e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#d(), this.updateComplete.then(() => {
|
|
243
243
|
this.emit("cx-input"), this.emit("cx-change");
|
|
244
244
|
}));
|
|
245
245
|
}
|
|
246
246
|
getAllOptions() {
|
|
247
|
-
return [...this.querySelectorAll("[role=\"option\"], cx-option")];
|
|
247
|
+
return this.#i([...this.querySelectorAll("[role=\"option\"], cx-option")]);
|
|
248
248
|
}
|
|
249
249
|
getFirstOption() {
|
|
250
250
|
return this.querySelector("cx-option");
|
|
251
251
|
}
|
|
252
252
|
#n() {
|
|
253
|
-
return [...this.querySelectorAll("cx-option")].find((e) => !e.hidden) ?? null;
|
|
253
|
+
return this.#i([...this.querySelectorAll("cx-option")]).find((e) => !e.hidden) ?? null;
|
|
254
|
+
}
|
|
255
|
+
#r(e) {
|
|
256
|
+
return e.slot === "footer" && e.parentElement === this;
|
|
257
|
+
}
|
|
258
|
+
#i(e) {
|
|
259
|
+
return e.some((e) => this.#r(e)) ? [...e.filter((e) => !this.#r(e)), ...e.filter((e) => this.#r(e))] : e;
|
|
260
|
+
}
|
|
261
|
+
#a() {
|
|
262
|
+
return this.hasSlotController.test("footer") ? this.optionsContainer : this.listbox;
|
|
254
263
|
}
|
|
255
264
|
getVisibleOptions() {
|
|
256
265
|
return this.getAllOptions().filter((e) => !e.hidden);
|
|
@@ -320,7 +329,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
320
329
|
this.currentOption && this.setCurrentOption(this.currentOption);
|
|
321
330
|
});
|
|
322
331
|
let { keyframes: e, options: t } = b(this, "select.show", { dir: this.localize.dir() });
|
|
323
|
-
await d(this.popup.popup, e, t), this.currentOption && P(this.currentOption, this
|
|
332
|
+
await d(this.popup.popup, e, t), this.currentOption && !this.#r(this.currentOption) && P(this.currentOption, this.#a(), "vertical", "auto"), this.emit("cx-after-show");
|
|
324
333
|
} else {
|
|
325
334
|
this.emit("cx-hide"), this.removeOpenListeners(), await f(this);
|
|
326
335
|
let { keyframes: e, options: t } = b(this, "select.hide", { dir: this.localize.dir() });
|
|
@@ -334,31 +343,31 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
334
343
|
break;
|
|
335
344
|
}
|
|
336
345
|
}
|
|
337
|
-
#
|
|
346
|
+
#o() {
|
|
338
347
|
return this.typeToSelectString.length >= Math.max(0, this.minQueryLength || 0);
|
|
339
348
|
}
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
return this.#
|
|
349
|
+
#s;
|
|
350
|
+
#c(e) {
|
|
351
|
+
return this.#s.raw !== e && (this.#s = {
|
|
343
352
|
folded: T(e, { ignoreAccents: !0 }),
|
|
344
353
|
raw: e
|
|
345
|
-
}), this.#
|
|
354
|
+
}), this.#s.folded;
|
|
346
355
|
}
|
|
347
|
-
#
|
|
348
|
-
this.open && !this.#
|
|
356
|
+
#l() {
|
|
357
|
+
this.open && !this.#o() && this.hide();
|
|
349
358
|
}
|
|
350
|
-
#
|
|
359
|
+
#u(e) {
|
|
351
360
|
return !this.highlightMatches || e.hidden ? [] : w(e.getTextLabel(), this.typeToSelectString, { ignoreAccents: this.filterIgnoreAccents });
|
|
352
361
|
}
|
|
353
362
|
filterOptionsByInput() {
|
|
354
363
|
let e = this.getAllOptions();
|
|
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.#
|
|
356
|
-
this.#
|
|
364
|
+
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.#u(t));
|
|
365
|
+
this.#f(), this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
|
|
357
366
|
}
|
|
358
|
-
#
|
|
359
|
-
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#
|
|
367
|
+
#d() {
|
|
368
|
+
this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#l();
|
|
360
369
|
}
|
|
361
|
-
#
|
|
370
|
+
#f() {
|
|
362
371
|
let { currentOption: e } = this;
|
|
363
372
|
if (!e || !e.hidden && e.isConnected) return;
|
|
364
373
|
let t = this.getVisibleOptions()[0];
|
|
@@ -369,7 +378,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
369
378
|
this.open = !1;
|
|
370
379
|
return;
|
|
371
380
|
}
|
|
372
|
-
if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#
|
|
381
|
+
if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#o()) return this.open = !0, p(this, "cx-after-show");
|
|
373
382
|
}
|
|
374
383
|
async hide() {
|
|
375
384
|
if (!this.open || this.disabled) {
|
|
@@ -385,11 +394,11 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
385
394
|
this.displayInput.blur();
|
|
386
395
|
}
|
|
387
396
|
render() {
|
|
388
|
-
let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.label ? !0 : !!t,
|
|
397
|
+
let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.hasSlotController.test("footer"), a = this.label ? !0 : !!t, o = this.helpText ? !0 : !!r, s = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), c = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, l = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, u = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
|
|
389
398
|
return e`<div part="form-control" class=${v({
|
|
390
399
|
"form-control": !0,
|
|
391
|
-
"form-control--has-help-text":
|
|
392
|
-
"form-control--has-label":
|
|
400
|
+
"form-control--has-help-text": o,
|
|
401
|
+
"form-control--has-label": a,
|
|
393
402
|
"form-control--large": this.size === "large",
|
|
394
403
|
"form-control--medium": this.size === "medium",
|
|
395
404
|
"form-control--small": this.size === "small"
|
|
@@ -397,7 +406,7 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
397
406
|
select: !0,
|
|
398
407
|
"select--bottom": this.placement.startsWith("bottom"),
|
|
399
408
|
"select--disabled": this.disabled,
|
|
400
|
-
"select--empty":
|
|
409
|
+
"select--empty": l,
|
|
401
410
|
"select--filled": this.filled,
|
|
402
411
|
"select--focused": this.hasFocus || this.open,
|
|
403
412
|
"select--large": this.size === "large",
|
|
@@ -405,21 +414,24 @@ var L = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
405
414
|
"select--multiple": this.multiple || this.useTag,
|
|
406
415
|
"select--open": this.open,
|
|
407
416
|
"select--pill": this.pill,
|
|
408
|
-
"select--placeholder-visible":
|
|
417
|
+
"select--placeholder-visible": c,
|
|
409
418
|
"select--small": this.size === "small",
|
|
410
419
|
"select--standard": !0,
|
|
411
420
|
"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=${
|
|
421
|
+
})} 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=${a ? "false" : "true"}><slot name="label">${this.label}</slot></label>${x(u, () => e`<div part="tags" class="select__tags" @cx-remove=${this.handleTagRemove}>${this.tags}</div>`)}<input part="display-input" class=${v({
|
|
413
422
|
"select__display-input": !0,
|
|
414
|
-
"select__display-input--hidden": (this.multiple || this.useTag) && !this.hasFocus && !
|
|
423
|
+
"select__display-input--hidden": (this.multiple || this.useTag) && !this.hasFocus && !l && !(this.open && this.inputBehavior === "filter"),
|
|
415
424
|
"select__display-input--large": this.size === "large",
|
|
416
425
|
"select__display-input--medium": this.size === "medium",
|
|
417
426
|
"select__display-input--small": this.size === "small"
|
|
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=${
|
|
419
|
-
${x(
|
|
427
|
+
})} type="text" placeholder=${u ? "" : 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=${a ? 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>`)}
|
|
428
|
+
${x(s, () => 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=${v({
|
|
429
|
+
select__listbox: !0,
|
|
430
|
+
"select__listbox--has-footer": i
|
|
431
|
+
})} tabindex="-1" @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><div class="select__options"><slot></slot>${x(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div><div part="listbox-footer" class="select__footer"><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=${o ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
420
432
|
}
|
|
421
433
|
};
|
|
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: {
|
|
434
|
+
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([c(".select__options"), o("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], z.prototype, "optionsContainer", 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: {
|
|
423
435
|
fromAttribute: (e) => e.split(" "),
|
|
424
436
|
toAttribute: (e) => Array.isArray(e) ? e.join(" ") : e
|
|
425
437
|
} }), o("design:type", Object)], z.prototype, "value", void 0), a([r({
|
|
@@ -3,10 +3,10 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
|
3
3
|
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 "./repeat.CKv9FPlC.js";
|
|
6
|
-
import { t as l } from "./input.
|
|
6
|
+
import { t as l } from "./input.DZRed6yo.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.DUEEcruV.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) {
|
|
@@ -9,9 +9,9 @@ import { t as f } from "./icon-button.qJd_az6T.js";
|
|
|
9
9
|
import { t as p } from "./when.BUskJLtZ.js";
|
|
10
10
|
import { t as m } from "./tooltip.Cc02vm6M.js";
|
|
11
11
|
import { t as h } from "./default-value.opqQgoRT.js";
|
|
12
|
-
import { t as g } from "./input.
|
|
12
|
+
import { t as g } from "./input.DZRed6yo.js";
|
|
13
13
|
import { t as _ } from "./space.Dd8jezXK.js";
|
|
14
|
-
import { t as v } from "./select.
|
|
14
|
+
import { t as v } from "./select.BMGK3xy9.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;
|
|
@@ -23,28 +23,28 @@ import "./breadcrumb-item.nHAFmgtO.js";
|
|
|
23
23
|
import "./button-group.CPfXrqyq.js";
|
|
24
24
|
import "./card.3c-X4hqR.js";
|
|
25
25
|
import "./checkbox.BdSpQlwf.js";
|
|
26
|
-
import "./dropdown.
|
|
27
|
-
import "./input.
|
|
28
|
-
import "./menu.
|
|
29
|
-
import "./menu-item.
|
|
26
|
+
import "./dropdown.Cc32yInQ.js";
|
|
27
|
+
import "./input.DZRed6yo.js";
|
|
28
|
+
import "./menu.69SdPYy6.js";
|
|
29
|
+
import "./menu-item.SGtyl6pY.js";
|
|
30
30
|
import "./textarea.CHSZI8vt.js";
|
|
31
31
|
import "./option.DWE0tark.js";
|
|
32
32
|
import "./space.Dd8jezXK.js";
|
|
33
|
-
import "./select.
|
|
33
|
+
import "./select.BMGK3xy9.js";
|
|
34
34
|
import "./tab.Cv-UuYM5.js";
|
|
35
|
-
import "./tab-group.
|
|
35
|
+
import "./tab-group.97YGxRGu.js";
|
|
36
36
|
import "./tab-panel.BxeoKuSv.js";
|
|
37
37
|
import "./visually-hidden.Bv3SInZp.js";
|
|
38
|
-
import "./color-picker.
|
|
38
|
+
import "./color-picker.BkXV3vIK.js";
|
|
39
39
|
import "./copy-button.CqqKJEh3.js";
|
|
40
40
|
import "./date-calendar.B7e6WBzh.js";
|
|
41
41
|
import "./details.DSgp6VAD.js";
|
|
42
|
-
import "./dialog.
|
|
42
|
+
import "./dialog.D0oTJWFf.js";
|
|
43
43
|
import "./divider.CqSNZCU8.js";
|
|
44
44
|
import "./diff.Bmdpmpvo.js";
|
|
45
|
-
import "./drawer.
|
|
45
|
+
import "./drawer.BsKzYqKe.js";
|
|
46
46
|
import "./progress-bar.CynVLLnY.js";
|
|
47
|
-
import "./document-viewer.
|
|
47
|
+
import "./document-viewer.B2RwLRXO.js";
|
|
48
48
|
import "./image.-lgb634-.js";
|
|
49
49
|
import "./skeleton.BtwugOTG.js";
|
|
50
50
|
import "./dot-pagination.C1C6NG8d.js";
|
|
@@ -67,7 +67,7 @@ import "./markdown.BzDRvv-f.js";
|
|
|
67
67
|
import "./menu-label.B-FOyfAX.js";
|
|
68
68
|
import "./menu-section.BzzA6L5E.js";
|
|
69
69
|
import "./mutation-observer.CD5prBIP.js";
|
|
70
|
-
import "./pagination.
|
|
70
|
+
import "./pagination.Bz2Q9ov3.js";
|
|
71
71
|
import "./progress-ring.Bfdj3-uB.js";
|
|
72
72
|
import "./qr-code.SwjFPrvB.js";
|
|
73
73
|
import "./radio.DhPbmKbQ.js";
|
|
@@ -78,12 +78,12 @@ import "./range.ObEMbygm.js";
|
|
|
78
78
|
import "./rating.CNeNn996.js";
|
|
79
79
|
import "./relative-time.BfE3UOhF.js";
|
|
80
80
|
import "./split-panel.Cag0lAvv.js";
|
|
81
|
-
import "./step.
|
|
82
|
-
import "./stepper.
|
|
81
|
+
import "./step.B_mpg1je.js";
|
|
82
|
+
import "./stepper.DDMxj1Ts.js";
|
|
83
83
|
import "./switch.BM9msK5T.js";
|
|
84
84
|
import "./timecode.DjI1OTXD.js";
|
|
85
85
|
import "./tree.XYIP-Ujw.js";
|
|
86
|
-
import "./video.
|
|
86
|
+
import "./video.DWmHPbXO.js";
|
|
87
87
|
//#region ../../packages/atoms/src/components/animation/animations.ts
|
|
88
88
|
function r() {
|
|
89
89
|
return Object.entries(t).filter(([e]) => e !== "easings").map(([e]) => e);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { c as e, d as t } from "./lit.CyJqR2kf.js";
|
|
2
|
+
import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
3
|
+
import { t as o } from "./query.B1yi7t71.js";
|
|
4
|
+
import { t as s } from "./component.styles.0xM1ZmBs.js";
|
|
5
|
+
import { t as c } from "./custom-element.BEMYNDK1.js";
|
|
6
|
+
import { t as l } from "./class-map.D8nsNOVJ.js";
|
|
7
|
+
import { t as u } from "./when.BUskJLtZ.js";
|
|
8
|
+
import { t as d } from "./icon.CeQpEaQz.js";
|
|
9
|
+
import { t as f } from "./style-map.DPGQIxip.js";
|
|
10
|
+
import { t as p } from "./tooltip.Cc02vm6M.js";
|
|
11
|
+
import { t as m } from "./line-clamp.SD3U021K.js";
|
|
12
|
+
import { t as h } from "./progress-bar.CynVLLnY.js";
|
|
13
|
+
//#region ../../packages/atoms/src/components/step/step.styles.ts
|
|
14
|
+
var g = t`:host{--color:var(--color);flex:calc(100% / var(--columns) + var(--cx-spacing-small));margin-left:calc(-1 * var(--cx-spacing-small))}:host([round]){max-width:100%;margin-left:0}:host(:not([round])){flex-direction:column;display:flex}:host(:not([round])) .step-wrapper{flex-direction:column;flex:1;display:flex}:host(:not([round])) .step{flex:1}.step{font-family:var(--cx-font-sans);gap:var(--cx-spacing-x-small);width:100%;display:flex}.step__arrow{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small);padding-left:var(--cx-spacing-x-large);padding-right:var(--cx-spacing-medium);background-color:var(--cx-color-neutral-100);cursor:pointer;clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);align-items:center;width:100%;display:inline-flex;position:relative}.step--first .step__arrow{clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, 0 50%, 0% 0%);border-top-left-radius:var(--cx-border-radius-large);border-bottom-left-radius:var(--cx-border-radius-large);padding-left:var(--cx-spacing-small)}.step--last .step__arrow{clip-path:polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);border-top-right-radius:var(--cx-border-radius-large);border-bottom-right-radius:var(--cx-border-radius-large)}.step--first.step--last .step__arrow{clip-path:polygon(100% 0%,100% 50%,100% 100%,0% 100%,0 50%,0% 0%)}.step--active .step__arrow{background-color:light-dark(color-mix(in srgb, var(--color) 15%, white),color-mix(in srgb, var(--color) 30%, var(--cx-color-neutral-0)));cursor:default}.step--completed .step__arrow{background-color:var(--cx-color-neutral-50)}.step--disabled .step__arrow,.step--readonly .step__arrow{cursor:default}.step--disabled.step--has-description .step__arrow,.step--readonly.step--has-description .step__arrow,.step--active.step--has-description .step__arrow{cursor:help}.step__circle{background-color:color-mix(in srgb, var(--color) 15%, white);border:2px solid var(--color);border-radius:var(--cx-border-radius-circle);color:var(--color);font-weight:var(--cx-font-weight-semibold);flex:0 0 32px;justify-content:center;align-items:center;height:32px;display:flex;& cx-icon{font-size:var(--cx-font-size-medium)}}.step--round.step--active .step__circle,.step--round.step--completed .step__circle{background-color:var(--color);color:var(--cx-color-neutral-0)}.step--round.step--disabled .step__circle{background-color:var(--cx-color-neutral-0);border-color:var(--cx-color-neutral-400);color:var(--cx-color-neutral-400)}.step--round.step--error .step__circle{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.step__content{align-items:center;gap:var(--cx-spacing-x-small);max-width:100%;display:flex;position:relative}.step--round .step__content{flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.step__content__prefix::slotted(cx-icon),.step__content__label{color:var(--cx-color-neutral-700);font-size:var(--cx-font-size-medium)}.step--active .step__content__label,.step--active .step__content__help-text,.step--active .step__content__prefix::slotted(cx-icon),.step--round.step--completed .step__content__label,.step--round.step--completed .step__content__help-text{color:var(--text-color,var(--color))}.step--disabled .step__content__label,.step--disabled .step__content__help-text,.step--disabled .step__content__prefix::slotted(cx-icon){color:var(--cx-color-neutral-400)}.step--error .step__content__label,.step--error .step__content__help-text{color:var(--cx-color-danger)}.step--round .step__content__progress{justify-content:center;align-items:center;gap:var(--cx-spacing-small);min-width:120px;line-height:1;display:flex}.step--round .step__content__progress__text{color:var(--color)}.step--round.step__content__help-text{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small);line-height:1}.step__line{background-color:var(--color);height:2rem;margin:var(--cx-spacing-medium) calc(32px / 2) 0;flex:1;width:2px}.step--last~.step__line{display:none}cx-progress-bar{--height:8px;flex:1}`, _ = class extends a {
|
|
15
|
+
static #e = this.styles = [s, g];
|
|
16
|
+
static #t = this.dependencies = {
|
|
17
|
+
"cx-icon": d,
|
|
18
|
+
"cx-line-clamp": m,
|
|
19
|
+
"cx-progress-bar": h,
|
|
20
|
+
"cx-tooltip": p
|
|
21
|
+
};
|
|
22
|
+
constructor() {
|
|
23
|
+
super(), this.active = !1, this.completed = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.index = 0, this.last = !1, this.helpText = "", this.progress = 0, this.color = "var(--cx-color-primary)", this.textColor = "", this.round = !1, this.description = "", this.labelLines = 2, this.renderDefaultStep = this.renderDefaultStep.bind(this), this.renderRoundStep = this.renderRoundStep.bind(this);
|
|
24
|
+
}
|
|
25
|
+
handleClick() {
|
|
26
|
+
this.disabled || this.active || this.readonly || this.emit("cx-step-select", { detail: { id: this.dataset.id } });
|
|
27
|
+
}
|
|
28
|
+
renderDefaultStep() {
|
|
29
|
+
return e`<div class="step__arrow"><div class="step__content"><slot name="prefix" class="step__content__prefix"></slot><cx-line-clamp .lines=${this.labelLines}><slot class="step__content__label"></slot></cx-line-clamp></div></div>`;
|
|
30
|
+
}
|
|
31
|
+
renderRoundStep() {
|
|
32
|
+
return e`<div class="step__circle">${this.completed ? e`<cx-icon name="check"></cx-icon>` : e`<div class="step__circle__number">${this.index + 1}</div>`}</div><div class="step__content"><slot class="step__content__label"></slot>${u(this.progress && this.progress > 0, () => e`<div class="step__content__progress"><cx-progress-bar value=${this.progress}></cx-progress-bar><div class="step__content__progress__text">${this.progress}%</div></div>`, () => e`
|
|
33
|
+
${u(this.helpText, () => e`<div class="step__content__help-text">${this.helpText}</div>`)}
|
|
34
|
+
`)}</div>`;
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return e`<cx-tooltip ?disabled=${!this.description.trim()} .content=${this.description} hoist><div class="step-wrapper" style=${f({
|
|
38
|
+
"--color": this.color,
|
|
39
|
+
"--text-color": this.textColor || this.color
|
|
40
|
+
})}><div part="base" aria-label="step" role="button" class=${l({
|
|
41
|
+
step: !0,
|
|
42
|
+
"step--active": this.active,
|
|
43
|
+
"step--completed": this.completed,
|
|
44
|
+
"step--disabled": this.disabled,
|
|
45
|
+
"step--error": this.error,
|
|
46
|
+
"step--first": this.index === 0,
|
|
47
|
+
"step--has-description": !!this.description.trim(),
|
|
48
|
+
"step--last": this.last,
|
|
49
|
+
"step--readonly": this.readonly,
|
|
50
|
+
"step--round": this.round
|
|
51
|
+
})} @click=${this.handleClick}>${u(this.round, this.renderRoundStep, this.renderDefaultStep)}</div>${u(this.round, () => e`<div class="step__line"></div>`)}</div></cx-tooltip>`;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
r([o("div[part=\"base\"]"), i("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], _.prototype, "step", void 0), r([n({
|
|
55
|
+
reflect: !0,
|
|
56
|
+
type: Boolean
|
|
57
|
+
}), i("design:type", Boolean)], _.prototype, "active", void 0), r([n({
|
|
58
|
+
reflect: !0,
|
|
59
|
+
type: Boolean
|
|
60
|
+
}), i("design:type", Boolean)], _.prototype, "completed", void 0), r([n({
|
|
61
|
+
reflect: !0,
|
|
62
|
+
type: Boolean
|
|
63
|
+
}), i("design:type", Boolean)], _.prototype, "disabled", void 0), r([n({
|
|
64
|
+
reflect: !0,
|
|
65
|
+
type: Boolean
|
|
66
|
+
}), i("design:type", Boolean)], _.prototype, "readonly", void 0), r([n({
|
|
67
|
+
reflect: !0,
|
|
68
|
+
type: Boolean
|
|
69
|
+
}), i("design:type", Boolean)], _.prototype, "error", void 0), r([n({ type: Number }), i("design:type", Number)], _.prototype, "index", void 0), r([n({ type: Boolean }), i("design:type", Boolean)], _.prototype, "last", void 0), r([n({
|
|
70
|
+
attribute: "help-text",
|
|
71
|
+
reflect: !0,
|
|
72
|
+
type: String
|
|
73
|
+
}), i("design:type", String)], _.prototype, "helpText", void 0), r([n({
|
|
74
|
+
reflect: !0,
|
|
75
|
+
type: Number
|
|
76
|
+
}), i("design:type", Number)], _.prototype, "progress", void 0), r([n({
|
|
77
|
+
reflect: !0,
|
|
78
|
+
type: String
|
|
79
|
+
}), i("design:type", String)], _.prototype, "color", void 0), r([n({
|
|
80
|
+
attribute: "text-color",
|
|
81
|
+
reflect: !0,
|
|
82
|
+
type: String
|
|
83
|
+
}), i("design:type", String)], _.prototype, "textColor", void 0), r([n({
|
|
84
|
+
reflect: !0,
|
|
85
|
+
type: Boolean
|
|
86
|
+
}), i("design:type", Boolean)], _.prototype, "round", void 0), r([n({
|
|
87
|
+
attribute: "description",
|
|
88
|
+
reflect: !0,
|
|
89
|
+
type: String
|
|
90
|
+
}), i("design:type", String)], _.prototype, "description", void 0), r([n({
|
|
91
|
+
attribute: "label-lines",
|
|
92
|
+
type: Number
|
|
93
|
+
}), i("design:type", Number)], _.prototype, "labelLines", void 0), _ = r([c("cx-step"), i("design:paramtypes", [])], _);
|
|
94
|
+
var v = _;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { v as t };
|
|
@@ -7,12 +7,12 @@ import { t as l } from "./icon.CeQpEaQz.js";
|
|
|
7
7
|
import { t as u } from "./style-map.DPGQIxip.js";
|
|
8
8
|
import { t as d } from "./resize-observer.D9EHlnZI.js";
|
|
9
9
|
import { t as f } from "./repeat.CKv9FPlC.js";
|
|
10
|
-
import { t as p } from "./step.
|
|
11
|
-
import { t as m } from "./stepper.
|
|
10
|
+
import { t as p } from "./step.B_mpg1je.js";
|
|
11
|
+
import { t as m } from "./stepper.DDMxj1Ts.js";
|
|
12
12
|
//#region ../../packages/molecules/src/stepper-wizard/stepper-wizard.styles.ts
|
|
13
13
|
var h = t`:host{display:block}`, g = class extends a {
|
|
14
14
|
constructor(...e) {
|
|
15
|
-
super(...e), this.data = [], this.maxWidth = 280, this.minWidth = 178, this.disabled = !1;
|
|
15
|
+
super(...e), this.data = [], this.maxWidth = 280, this.minWidth = 178, this.disabled = !1, this.labelLines = 2;
|
|
16
16
|
}
|
|
17
17
|
static #e = this.styles = [o, h];
|
|
18
18
|
static #t = this.dependencies = {
|
|
@@ -33,7 +33,7 @@ var h = t`:host{display:block}`, g = class extends a {
|
|
|
33
33
|
this.requestUpdate("columnCount");
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return e`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${f(this.data, (e) => e.id, (t) => e`<cx-step slot="step" data-id=${t.id} .completed=${t.state === "Done"} .disabled=${this.disabled || t.state === "Disabled"} .readonly=${t.readonly} .active=${t.state === "Active"} .color=${t.color} .textColor=${t.textColor ?? ""} .description=${t.description ?? ""} style=${u({
|
|
36
|
+
return e`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${f(this.data, (e) => e.id, (t) => e`<cx-step slot="step" data-id=${t.id} .completed=${t.state === "Done"} .disabled=${this.disabled || t.state === "Disabled"} .readonly=${t.readonly} .active=${t.state === "Active"} .color=${t.color} .textColor=${t.textColor ?? ""} .description=${t.description ?? ""} .labelLines=${this.labelLines} style=${u({
|
|
37
37
|
maxWidth: `${this.maxWidth}px`,
|
|
38
38
|
minWidth: `${this.minWidth}px`
|
|
39
39
|
})}>${c(t.state === "Done", () => e`<cx-icon slot="prefix" variant="filled" name="check_circle"></cx-icon>`, () => e`${c(t.icon, () => e`<cx-icon slot="prefix" variant=${t.iconVariant || "outlined"} name=${t.icon}></cx-icon>`)}`)}
|
|
@@ -51,7 +51,10 @@ r([n({ type: Array }), i("design:type", Array)], g.prototype, "data", void 0), r
|
|
|
51
51
|
}), i("design:type", Number)], g.prototype, "minWidth", void 0), r([n({
|
|
52
52
|
reflect: !0,
|
|
53
53
|
type: Boolean
|
|
54
|
-
}), i("design:type", Boolean)], g.prototype, "disabled", void 0),
|
|
54
|
+
}), i("design:type", Boolean)], g.prototype, "disabled", void 0), r([n({
|
|
55
|
+
attribute: "label-lines",
|
|
56
|
+
type: Number
|
|
57
|
+
}), i("design:type", Number)], g.prototype, "labelLines", void 0), g = r([s("cx-stepper-wizard")], g);
|
|
55
58
|
var _ = g;
|
|
56
59
|
//#endregion
|
|
57
60
|
export { _ as t };
|
|
@@ -6,7 +6,7 @@ import { t as c } from "./custom-element.BEMYNDK1.js";
|
|
|
6
6
|
import { t as l } from "./watch.Ub5r8btz.js";
|
|
7
7
|
import { t as u } from "./class-map.D8nsNOVJ.js";
|
|
8
8
|
import { t as d } from "./style-map.DPGQIxip.js";
|
|
9
|
-
import { t as f } from "./step.
|
|
9
|
+
import { t as f } from "./step.B_mpg1je.js";
|
|
10
10
|
//#region ../../packages/atoms/src/components/stepper/stepper.styles.ts
|
|
11
11
|
var p = t`.stepper{row-gap:var(--cx-spacing-2x-small);flex-wrap:wrap;max-width:100%;display:flex}.stepper--vertical{flex-direction:column}`, m = class extends a {
|
|
12
12
|
constructor(...e) {
|
|
@@ -14,9 +14,9 @@ import { t as _ } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as v } from "./button.BjijpxeK.js";
|
|
15
15
|
import { d as y } from "./dom.BLHsooDR.js";
|
|
16
16
|
import { t as b } from "./resize-observer.D9EHlnZI.js";
|
|
17
|
-
import { t as x } from "./dropdown.
|
|
18
|
-
import { t as S } from "./menu.
|
|
19
|
-
import { t as C } from "./menu-item.
|
|
17
|
+
import { t as x } from "./dropdown.Cc32yInQ.js";
|
|
18
|
+
import { t as S } from "./menu.69SdPYy6.js";
|
|
19
|
+
import { t as C } from "./menu-item.SGtyl6pY.js";
|
|
20
20
|
import { n as w } from "./scroll.CEH_a4pm.js";
|
|
21
21
|
import { t as T } from "./tab.Cv-UuYM5.js";
|
|
22
22
|
import { t as E } from "./parse.CDrJ-NY7.js";
|