@orangelogic/design-system 2.141.0 → 2.143.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/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
- package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
- package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
- package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
- package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
- package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
- package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
- package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
- package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
- package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
- package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
- package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
- package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
- package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
- package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
- package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
- package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
- package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
- package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
- package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
- package/library/chunks/_baseXor.DY_sP7af.js +116 -0
- package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
- package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
- package/library/chunks/{asset-link-format.BDuHqEN5.js → asset-link-format.BVoE-GrD.js} +246 -222
- package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
- package/library/chunks/button.styles.CATjjP1T.js +5 -0
- package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
- package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
- package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
- package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
- package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
- package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
- package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
- package/library/chunks/dialog.0TzzxNXE.js +1820 -0
- package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.Bb1M9uJ-.js} +9 -9
- package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
- package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.Bn_YviaU.js} +89 -88
- package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
- package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
- package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.5f4e8jqB.js} +7 -7
- package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
- package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
- package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
- package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
- package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
- package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
- package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
- package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
- package/library/chunks/{image.u2nQNoZ8.js → image.C2acLx6g.js} +4 -4
- package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
- package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
- package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
- package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
- package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
- package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
- package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
- package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
- package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
- package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
- package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
- package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
- package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
- package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
- package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
- package/library/chunks/typography.IqHbnd3C.js +52 -0
- package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
- package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
- package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
- package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
- package/library/components/alert.js +3 -3
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +5 -5
- package/library/components/atoms.js +21 -21
- package/library/components/audio.js +4 -4
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +2 -2
- package/library/components/button.js +5 -5
- package/library/components/checkbox.js +3 -3
- package/library/components/color-picker.js +79 -72
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +4 -4
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +3 -3
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +32 -32
- package/library/components/dialog.js +5 -6
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +5 -5
- package/library/components/dot-pagination.js +3 -3
- package/library/components/drawer.js +4 -4
- package/library/components/dropdown.js +3 -3
- package/library/components/dynamic-select.js +7 -7
- package/library/components/e-chart.js +2 -2
- package/library/components/element-clamp.js +3 -3
- package/library/components/file-on-demand.js +1872 -36
- package/library/components/folder-select.js +7 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +3 -3
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +3 -3
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +3 -3
- package/library/components/image-comparer.js +3 -3
- package/library/components/image.js +4 -4
- package/library/components/include.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +3 -3
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +6 -6
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +8 -8
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +2 -2
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +2 -2
- package/library/components/rating.js +3 -3
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +4 -4
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +4 -4
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- 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 +5 -5
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +6 -6
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +5 -5
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +4 -4
- package/library/components/types.js +27465 -27792
- package/library/components/typography.js +1 -1
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/header/header.d.ts +1 -1
- package/library/packages/events/src/cx-board-change.d.ts +12 -0
- package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
- package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
- package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
- package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
- package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
- package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
- package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
- package/library/packages/events/src/events.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
- package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
- package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
- package/library/packages/services/src/api/asset/asset.d.ts +2 -1
- package/library/packages/services/src/api/endpoints.d.ts +4 -0
- package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +14 -1
- package/library/packages/types/src/font-picker.d.ts +21 -0
- package/library/packages/types/src/table-column-editor.d.ts +12 -0
- package/library/packages/types/src/table.d.ts +5 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
- package/library/packages/utils/src/font/font.d.ts +16 -0
- package/library/react-web-component.d.ts +71 -5
- package/library/utils.js +258 -242
- package/package.json +1 -1
- package/library/chunks/button.styles.Cz4EELcL.js +0 -5
- package/library/chunks/dialog.C79Kd2S4.js +0 -379
- package/library/chunks/file-on-demand.Bxq3-Dk1.js +0 -1985
- package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
- package/library/chunks/typography.DJC_UXgs.js +0 -52
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { i as t } from "./lit-element.jLBm65_O.js";
|
|
2
|
-
const r = t`:host{--background-color:var(--cx-color-primary);--color:light-dark(var(--cx-color-neutral-0),var(--cx-color-neutral-1000));--font-size:var(--cx-font-size-medium);--font-weight:var(--cx-font-weight-regular);--height:var(--cx-input-height-medium);--justify-content:center;--gap:0;--min-height:auto;--padding:0;--button-custom-height:32px;--button-custom-padding:4px 8px 4px 8px;--button-custom-font-size:var(--cx-font-size-medium);cursor:pointer;width:auto;max-width:100%;line-height:normal;display:inline-block;position:relative}:host([width-type=fill]),:host([width-type=adaptive][device-type=tablet]),:host([width-type=adaptive][device-type=mobile]){width:100%}.button{align-items:center;justify-content:var(--justify-content,center);gap:var(--gap,0);border-style:solid;border-width:var(--cx-input-border-width);width:100%;font-family:var(--cx-input-font-family);font-weight:var(--font-weight,var(--cx-font-weight-regular));font-size:var(--font-size,var(--cx-font-size-medium));height:var(--height,var(--cx-input-height-medium));min-height:var(--min-height,auto);padding:var(--padding,0);text-transform:var(--cx-button-text-transform,none);-webkit-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;transition:var(--cx-transition-x-fast) background-color, var(--cx-transition-x-fast) color, var(--cx-transition-x-fast) border, var(--cx-transition-x-fast) box-shadow;cursor:inherit;text-decoration:none;display:inline-flex}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.button--disabled{opacity:.5;cursor:default}.button--disabled *{pointer-events:none}.button__prefix,.button__suffix{pointer-events:none;flex:none;align-items:center;display:flex}.button__label{white-space:nowrap;text-overflow:ellipsis;line-height:1.15;display:inline-block;overflow:hidden}.button__label::slotted(cx-icon){vertical-align:-2px}.button--standard.button--default{background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--standard.button--default:hover:not(.button--disabled),.button--standard.button--default.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--standard.button--default:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);border-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral)}.button--standard.button--primary{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.button--standard.button--primary:hover:not(.button--disabled),.button--standard.button--primary.button--focused:not(.button--disabled){background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--standard.button--primary:active:not(.button--disabled){background-color:var(--cx-color-primary-700);border-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--standard.button--success{background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--standard.button--success:hover:not(.button--disabled),.button--standard.button--success.button--focused:not(.button--disabled){background-color:var(--cx-color-success-500);border-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--standard.button--success:active:not(.button--disabled){background-color:var(--cx-color-success-700);border-color:var(--cx-color-success-700);color:var(--cx-color-neutral-0)}.button--standard.button--warning{background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.button--standard.button--warning:hover:not(.button--disabled),.button--standard.button--warning.button--focused:not(.button--disabled){background-color:var(--cx-color-warning-500);border-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--standard.button--warning:active:not(.button--disabled){background-color:var(--cx-color-warning-700);border-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--standard.button--danger{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.button--standard.button--danger:hover:not(.button--disabled),.button--standard.button--danger.button--focused:not(.button--disabled){background-color:var(--cx-color-danger-500);border-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--standard.button--danger:active:not(.button--disabled){background-color:var(--cx-color-danger-700);border-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}.button--standard.button--custom{background-color:var(--background-color);border-color:var(--background-color);color:var(--color)}.button--standard.button--custom:hover:not(.button--disabled),.button--standard.button--custom.button--focused:not(.button--disabled){background-color:var(--background-color-focus,var(--background-color));border-color:var(--background-color-focus,var(--background-color));color:var(--color-focus,var(--color))}.button--standard.button--custom:active:not(.button--disabled){background-color:var(--background-color-active,var(--background-color));border-color:var(--background-color-active,var(--background-color));color:var(--color-active,var(--color))}.button--outline{border:solid var(--cx-input-border-width);background:0 0}.button--outline.button--default{border-color:var(--cx-input-border-color);color:var(--cx-color-neutral)}.button--outline.button--default:hover:not(.button--disabled),.button--outline.button--default.button--focused:not(.button--disabled),.button--outline.button--default.button--checked:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--outline.button--default:active:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--outline.button--primary{border-color:var(--cx-color-primary);color:var(--cx-color-primary)}.button--outline.button--primary:hover:not(.button--disabled),.button--outline.button--primary.button--focused:not(.button--disabled),.button--outline.button--primary.button--checked:not(.button--disabled){background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--outline.button--primary:active:not(.button--disabled){border-color:var(--cx-color-primary-700);background-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--outline.button--success{border-color:var(--cx-color-success);color:var(--cx-color-success)}.button--outline.button--success:hover:not(.button--disabled),.button--outline.button--success.button--focused:not(.button--disabled),.button--outline.button--success.button--checked:not(.button--disabled){background-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--outline.button--success:active:not(.button--disabled){border-color:var(--cx-color-success);background-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--outline.button--warning{border-color:var(--cx-color-warning);color:var(--cx-color-warning)}.button--outline.button--warning:hover:not(.button--disabled),.button--outline.button--warning.button--focused:not(.button--disabled),.button--outline.button--warning.button--checked:not(.button--disabled){background-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--outline.button--warning:active:not(.button--disabled){border-color:var(--cx-color-warning-700);background-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--outline.button--danger{border-color:var(--cx-color-danger);color:var(--cx-color-danger)}.button--outline.button--danger:hover:not(.button--disabled),.button--outline.button--danger.button--focused:not(.button--disabled),.button--outline.button--danger.button--checked:not(.button--disabled){background-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--outline.button--danger:active:not(.button--disabled){border-color:var(--cx-color-danger-700);background-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}@media (forced-colors:active){.button.button--outline.button--checked:not(.button--disabled){outline:2px solid #0000}}.button--text{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--text:hover:not(.button--disabled),.button--text.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--text:focus-visible:not(.button--disabled){color:var(--cx-color-neutral-800);background-color:#0000;border-color:#0000}.button--text:active:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--tertiary{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--tertiary:hover:not(.button--disabled),.button--tertiary.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral);border-color:#0000}.button--tertiary:focus-visible:not(.button--disabled){background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral);border-color:#0000}.button--tertiary:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral);border-color:#0000}.button--small{height:auto;min-height:var(--cx-input-height-small);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-small)}.button--small ::slotted(cx-icon){--font-size:var(--cx-font-size-medium)}.button--medium{height:auto;min-height:var(--cx-input-height-medium);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-medium)}.button--large{height:auto;min-height:var(--cx-input-height-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--x-large{height:auto;min-height:var(--cx-input-height-x-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--custom-size{--height:var(--button-custom-height);--padding:var(--button-custom-padding);--font-size:var(--button-custom-font-size);border-radius:var(--cx-button-border-radius-medium)}.button--pill.button--small{border-radius:var(--cx-input-height-small)}.button--pill.button--medium{border-radius:var(--cx-input-height-medium)}.button--pill.button--large{border-radius:var(--cx-input-height-large)}.button--pill.button--x-large{border-radius:var(--cx-input-height-x-large)}.button--circle{padding-left:0;padding-right:0}.button--circle.button--small{width:var(--cx-input-height-small);border-radius:50%}.button--circle.button--medium{width:var(--cx-input-height-medium);border-radius:50%}.button--circle.button--large{width:var(--cx-input-height-large);border-radius:50%}.button--circle.button--x-large{width:var(--cx-input-height-x-large);border-radius:50%}.button--circle .button__prefix,.button--circle .button__suffix,.button--circle .button__caret{display:none}.button--circle .button__label{justify-content:center;align-items:center;line-height:1;display:inline-flex}.button--caret .button__caret{--font-size:var(--cx-font-size-large);margin-block:auto}.button--caret.button--small .button__caret{--font-size:var(--cx-font-size-medium)}.button--caret .button__suffix{display:none}.button--loading{cursor:wait;position:relative}.button--loading .button__prefix,.button--loading .button__label,.button--loading .button__suffix,.button--loading .button__caret{visibility:hidden}.button--loading cx-spinner{--indicator-color:currentColor;width:1em;height:1em;font-size:1em;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}.button ::slotted(cx-badge){pointer-events:none;position:absolute;top:0;right:0;translate:50% -50%}.button--rtl ::slotted(cx-badge){left:0;right:auto;translate:-50% -50%}.button--has-label.button--small .button__label{padding:0 var(--cx-spacing-x-small)}.button--has-label.button--medium .button__label{padding:0 var(--cx-spacing-small)}.button--has-label.button--large .button__label{padding:0 var(--cx-spacing-medium)}.button--has-label.button--x-large .button__label{padding:0 var(--cx-spacing-large)}.button--has-prefix.button--small,.button--has-prefix.button--small .button__label,.button--has-prefix.button--medium,.button--has-prefix.button--medium .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--large{padding-inline-start:var(--cx-spacing-small)}.button--has-prefix.button--large .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--x-large,.button--has-prefix.button--x-large .button__label{padding-inline-start:var(--cx-spacing-medium)}.button--has-suffix.button--small,.button--caret.button--small,.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label,.button--has-suffix.button--medium,.button--caret.button--medium,.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--large,.button--caret.button--large{padding-inline-end:var(--cx-spacing-small)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--x-large,.button--caret.button--x-large,.button--has-suffix.button--x-large .button__label,.button--caret.button--x-large .button__label{padding-inline-end:var(--cx-spacing-medium)}.button--caret cx-icon::part(span){height:auto}:host([data-cx-button-group__button--first]:not([data-cx-button-group__button--last])) .button{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-button-group__button--inner]) .button{border-radius:0}:host([data-cx-button-group__button--last]:not([data-cx-button-group__button--first])) .button{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first],[data-cx-button-group__button--radio],[variant=default]):not(:hover)) .button:after{content:"";top:0;inset-inline-start:0;mix-blend-mode:multiply;border-left:1px solid #80808054;position:absolute;bottom:0}:host([data-cx-button-group__button--hover]){z-index:1}:host([data-cx-button-group__button--focus]),:host([data-cx-button-group__button][checked]){z-index:2}`;
|
|
3
|
-
export {
|
|
4
|
-
r as b
|
|
5
|
-
};
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import { n as r, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as S } from "./component.styles.CRO4Odto.js";
|
|
3
|
-
import { O, C as D, H, z as A, o as B } from "./overlayscrollbars.BMav4RQ4.js";
|
|
4
|
-
import { a as c, s as p, w as x } from "./event.BeKOsirN.js";
|
|
5
|
-
import { c as $ } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L } from "./i18n.DeUAP8n2.js";
|
|
7
|
-
import { M as P } from "./modal.U1QltQKe.js";
|
|
8
|
-
import { l as w, u as _ } from "./scroll.xtO5yojm.js";
|
|
9
|
-
import { H as E } from "./slot.j5oheLJC.js";
|
|
10
|
-
import { w as z } from "./watch.CThbualB.js";
|
|
11
|
-
import { i as R, x as y, E as W } from "./lit-element.jLBm65_O.js";
|
|
12
|
-
import { r as g } from "./state.CSDxrqLd.js";
|
|
13
|
-
import { e as m } from "./query.BBf1UFkC.js";
|
|
14
|
-
import { e as v } from "./class-map.BiVq-cVR.js";
|
|
15
|
-
import { o as C } from "./if-defined.BRoBj_Rp.js";
|
|
16
|
-
import { o as q } from "./style-map.llVFPd__.js";
|
|
17
|
-
import { n as b } from "./when.Dr1es41R.js";
|
|
18
|
-
import { s as u, g as h } from "./animation-registry.HmpwNuGH.js";
|
|
19
|
-
import F from "../components/divider.js";
|
|
20
|
-
import { C as I } from "./icon-button.LhIEmHNF.js";
|
|
21
|
-
import U from "../components/popup.js";
|
|
22
|
-
var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
|
|
23
|
-
const j = R`:host{--width:31rem;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large);--body-spacing:var(--cx-spacing-medium) var(--cx-spacing-large);--divider-spacing:0;--footer-spacing:var(--cx-spacing-medium);--max-width:100%;--max-height:100%;--overlay-background-color:var(--cx-overlay-background-color);display:contents}.dialog{justify-content:center;align-items:center;display:flex}.dialog--absolute{position:absolute}.dialog__panel{width:var(--width);height:var(--dialog-height,auto);background-color:var(--cx-panel-background-color);border-radius:var(--cx-border-radius-medium);box-shadow:var(--cx-shadow-x-large);max-width:calc(var(--max-width) - var(--cx-spacing-2x-large));max-height:calc(var(--max-height) - var(--cx-spacing-2x-large));flex-direction:column;display:flex;overflow:hidden}.dialog__panel:focus{outline:none}@media screen and (width<=420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{opacity:1;display:flex}.dialog__header{padding:var(--header-spacing);flex:none;display:flex}.dialog__header-divider,.dialog__footer-divider{--spacing:0;padding:var(--divider-spacing)}.dialog__title{font:inherit;font-family:var(--cx-font-sans);font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-large);flex:auto;align-items:center;margin:0;display:flex}.dialog__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.dialog__header-actions cx-icon-button,.dialog__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-3x-large);flex:none;align-items:center;display:flex}.dialog__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-small);z-index:2;flex:auto;display:block;position:relative;overflow:auto}.dialog--overlay-scrollbar .dialog__body{flex-direction:column;display:flex}.dialog__footer{text-align:right;padding:var(--footer-spacing);z-index:1;flex:none;position:relative}.dialog__footer ::slotted(cx-button:not(:first-of-type)){margin-inline-start:var(--cx-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}@media (forced-colors:active){.dialog__panel{border:solid 1px var(--cx-color-neutral-0)}}.dialog__overlay{background-color:var(--overlay-background-color);opacity:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex}.dialog--open .dialog__overlay{opacity:1;pointer-events:auto}`;
|
|
24
|
-
var M = Object.defineProperty, T = Object.getOwnPropertyDescriptor, i = (e, o, a, n) => {
|
|
25
|
-
for (var s = n > 1 ? void 0 : n ? T(o, a) : o, d = e.length - 1, f; d >= 0; d--)
|
|
26
|
-
(f = e[d]) && (s = (n ? f(o, a, s) : f(s)) || s);
|
|
27
|
-
return n && s && M(o, a, s), s;
|
|
28
|
-
};
|
|
29
|
-
O.plugin({
|
|
30
|
-
ClickScroll: A,
|
|
31
|
-
ScrollbarsHiding: H,
|
|
32
|
-
SizeObserver: D
|
|
33
|
-
});
|
|
34
|
-
let t = class extends k {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(), this.hasSlotController = new E(this, "footer"), this.localize = new L(this), this.modal = new P(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.overlayScrollbarAutoHide = "scroll", this.overlayScrollbarAutoHideDelay = 1e3, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
|
|
37
|
-
height: 0,
|
|
38
|
-
width: 0
|
|
39
|
-
}, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
40
|
-
}
|
|
41
|
-
runFirstUpdated() {
|
|
42
|
-
this.overlay = this.shadowRoot?.querySelector(
|
|
43
|
-
".dialog__overlay"
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
connectedUpdatedCallback() {
|
|
47
|
-
this.popup.hidden = !this.open, this.open && (this.addOpenListeners(), this.modal.activate(), (!this.boundary || this.boundary === document.body) && w(this)), this.updatePopupAnchor();
|
|
48
|
-
}
|
|
49
|
-
disconnectedCallback() {
|
|
50
|
-
super.disconnectedCallback(), this.modal.deactivate(), (!this.boundary || this.boundary === document.body) && _(this), this.removeOpenListeners(), window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null;
|
|
51
|
-
}
|
|
52
|
-
shouldUpdate(e) {
|
|
53
|
-
if (e.has("boundary")) {
|
|
54
|
-
const o = e.get("boundary");
|
|
55
|
-
o instanceof t && o.removeEventListener(
|
|
56
|
-
"cx-request-close",
|
|
57
|
-
this.preventBoundaryDialogClose
|
|
58
|
-
), o === document.body && window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null, this.open && this.boundary instanceof t && this.boundary.addEventListener(
|
|
59
|
-
"cx-request-close",
|
|
60
|
-
this.preventBoundaryDialogClose
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
return !0;
|
|
64
|
-
}
|
|
65
|
-
async updatePopupAnchor() {
|
|
66
|
-
if (!this.boundary || !this.popup || (this.popup.anchor = this.boundary, !this.overlay))
|
|
67
|
-
return;
|
|
68
|
-
let e = this.boundary;
|
|
69
|
-
this.boundary instanceof t && (this.boundary.hasUpdated || await this.boundary.updateComplete, e = this.boundary.panel), this.boundary === document.body ? (this.boundarySize = {
|
|
70
|
-
height: window.innerHeight,
|
|
71
|
-
width: window.innerWidth
|
|
72
|
-
}, this.boundaryObserver = null, window.addEventListener("resize", this.handleWindowResize)) : (this.boundarySize = {
|
|
73
|
-
height: e.clientHeight,
|
|
74
|
-
width: e.clientWidth
|
|
75
|
-
}, this.boundaryObserver = new ResizeObserver((o) => {
|
|
76
|
-
for (const a of o)
|
|
77
|
-
this.boundarySize = {
|
|
78
|
-
height: a.contentRect.height,
|
|
79
|
-
width: a.contentRect.width
|
|
80
|
-
};
|
|
81
|
-
}), this.boundaryObserver.observe(e));
|
|
82
|
-
}
|
|
83
|
-
handleWindowResize() {
|
|
84
|
-
this.boundary === document.body && (this.boundarySize = {
|
|
85
|
-
height: window.innerHeight,
|
|
86
|
-
width: window.innerWidth
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
requestClose(e) {
|
|
90
|
-
const o = this.emit("cx-request-close", {
|
|
91
|
-
cancelable: !0,
|
|
92
|
-
detail: { source: e }
|
|
93
|
-
});
|
|
94
|
-
if (o.defaultPrevented || this.disableOverlayClick && e === "overlay") {
|
|
95
|
-
if (o.detail.preventedReason === "nested" || !this.disableOverlayClick && e === "overlay")
|
|
96
|
-
return !1;
|
|
97
|
-
const a = h(this, "dialog.denyClose", {
|
|
98
|
-
dir: this.localize.dir()
|
|
99
|
-
});
|
|
100
|
-
return c(this.panel, a.keyframes, a.options), !1;
|
|
101
|
-
}
|
|
102
|
-
return this.hide(), !0;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* If there are multiple dialogs open, should only close the top-most dialog when clicking outside dialog panel.
|
|
106
|
-
* @param event - The event object.
|
|
107
|
-
*/
|
|
108
|
-
preventBoundaryDialogClose(e) {
|
|
109
|
-
e.target === this.boundary && (e.detail.preventedReason = "nested", e.preventDefault());
|
|
110
|
-
}
|
|
111
|
-
addOpenListeners() {
|
|
112
|
-
"CloseWatcher" in window && (this.closeWatcher?.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
|
|
113
|
-
this.requestClose("keyboard");
|
|
114
|
-
}), document.addEventListener("keydown", this.handleDocumentKeyDown, !0), document.addEventListener("mousedown", this.handleDocumentMouseDown, !0), this.boundary instanceof t && this.boundary.addEventListener(
|
|
115
|
-
"cx-request-close",
|
|
116
|
-
this.preventBoundaryDialogClose
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
removeOpenListeners() {
|
|
120
|
-
this.closeWatcher?.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown, !0), document.removeEventListener(
|
|
121
|
-
"mousedown",
|
|
122
|
-
this.handleDocumentMouseDown,
|
|
123
|
-
!0
|
|
124
|
-
), this.boundary instanceof t && this.boundary.removeEventListener(
|
|
125
|
-
"cx-request-close",
|
|
126
|
-
this.preventBoundaryDialogClose
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
handleDocumentMouseDown(e) {
|
|
130
|
-
const o = e.composedPath(), a = o[0], n = o.some((d) => d === this.panel), s = !this.contains(a) && !this.shadowRoot?.contains(a);
|
|
131
|
-
n || this.stayOpenOutsideClick && s || this.requestClose("overlay");
|
|
132
|
-
}
|
|
133
|
-
handleDocumentKeyDown(e) {
|
|
134
|
-
e.key === "Escape" && this.modal.isActive() && this.open && this.requestClose("keyboard") && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
135
|
-
}
|
|
136
|
-
handleCloseButtonClick() {
|
|
137
|
-
this.requestClose("close-button");
|
|
138
|
-
}
|
|
139
|
-
async handleOpenChange() {
|
|
140
|
-
if (this.open) {
|
|
141
|
-
this.emit("cx-show"), this.originalTrigger = document.activeElement, this.modal.activate(), this.useOverlayScrollbar && (this.osInstance = O(this.body, {
|
|
142
|
-
scrollbars: {
|
|
143
|
-
autoHide: this.overlayScrollbarAutoHide,
|
|
144
|
-
autoHideDelay: this.overlayScrollbarAutoHideDelay
|
|
145
|
-
}
|
|
146
|
-
})), (!this.boundary || this.boundary === document.body) && w(this);
|
|
147
|
-
const e = this.querySelector("[autofocus]");
|
|
148
|
-
if (e && e.removeAttribute("autofocus"), await Promise.all([
|
|
149
|
-
p(this.popup),
|
|
150
|
-
(() => {
|
|
151
|
-
this.overlay && p(this.overlay);
|
|
152
|
-
})()
|
|
153
|
-
]), this.popup.hidden = !1, await this.popup.updateComplete, !this.open) {
|
|
154
|
-
e && e.setAttribute("autofocus", "");
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const o = () => {
|
|
158
|
-
this.emit("cx-initial-focus", {
|
|
159
|
-
cancelable: !0
|
|
160
|
-
}).defaultPrevented || (e ? e.focus({
|
|
161
|
-
preventScroll: !0
|
|
162
|
-
}) : this.panel.focus({ preventScroll: !0 })), e && e.setAttribute("autofocus", "");
|
|
163
|
-
}, a = h(this, "dialog.show", {
|
|
164
|
-
dir: this.localize.dir()
|
|
165
|
-
}), n = h(this, "dialog.overlay.show", {
|
|
166
|
-
dir: this.localize.dir()
|
|
167
|
-
});
|
|
168
|
-
if (await Promise.all([
|
|
169
|
-
c(this.panel, a.keyframes, a.options),
|
|
170
|
-
(async () => {
|
|
171
|
-
this.overlay && await c(
|
|
172
|
-
this.overlay,
|
|
173
|
-
n.keyframes,
|
|
174
|
-
n.options
|
|
175
|
-
);
|
|
176
|
-
})()
|
|
177
|
-
]), !this.open) {
|
|
178
|
-
e && e.setAttribute("autofocus", "");
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
o(), this.emit("cx-after-show"), this.addOpenListeners();
|
|
182
|
-
} else {
|
|
183
|
-
this.emit("cx-hide"), this.removeOpenListeners(), this.modal.deactivate(), this.osInstance?.destroy(), await Promise.all([
|
|
184
|
-
p(this.popup),
|
|
185
|
-
(() => {
|
|
186
|
-
this.overlay && p(this.overlay);
|
|
187
|
-
})()
|
|
188
|
-
]);
|
|
189
|
-
const e = h(this, "dialog.hide", {
|
|
190
|
-
dir: this.localize.dir()
|
|
191
|
-
}), o = h(this, "dialog.overlay.hide", {
|
|
192
|
-
dir: this.localize.dir()
|
|
193
|
-
});
|
|
194
|
-
await Promise.all([
|
|
195
|
-
(async () => {
|
|
196
|
-
this.overlay && (await c(
|
|
197
|
-
this.overlay,
|
|
198
|
-
o.keyframes,
|
|
199
|
-
o.options
|
|
200
|
-
), this.overlay.hidden = !0);
|
|
201
|
-
})(),
|
|
202
|
-
c(
|
|
203
|
-
this.panel,
|
|
204
|
-
e.keyframes,
|
|
205
|
-
e.options
|
|
206
|
-
).then(() => {
|
|
207
|
-
this.panel.hidden = !0;
|
|
208
|
-
})
|
|
209
|
-
]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) && _(this);
|
|
210
|
-
const a = this.originalTrigger;
|
|
211
|
-
typeof a?.focus == "function" && setTimeout(() => a.focus()), this.emit("cx-after-hide");
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/** Shows the dialog. */
|
|
215
|
-
async show() {
|
|
216
|
-
if (!this.open)
|
|
217
|
-
return this.open = !0, x(this, "cx-after-show");
|
|
218
|
-
}
|
|
219
|
-
/** Hides the dialog */
|
|
220
|
-
async hide() {
|
|
221
|
-
if (this.open)
|
|
222
|
-
return this.open = !1, x(this, "cx-after-hide");
|
|
223
|
-
}
|
|
224
|
-
render() {
|
|
225
|
-
return y`<cx-popup part="base" ?active=${this.open} strategy=${this.strategy === "overlay" ? "overlay" : "fixed"} class=${v({
|
|
226
|
-
popup: !0
|
|
227
|
-
})} placement="center"><div class=${v({
|
|
228
|
-
dialog: !0,
|
|
229
|
-
"dialog--has-footer": this.hasSlotController.test("footer"),
|
|
230
|
-
"dialog--open": this.open,
|
|
231
|
-
"dialog--overlay-scrollbar": this.useOverlayScrollbar
|
|
232
|
-
})}><div part="overlay" class=${v({
|
|
233
|
-
dialog__overlay: !0
|
|
234
|
-
})} tabindex="-1" style=${q({
|
|
235
|
-
height: `${this.boundarySize.height}px`,
|
|
236
|
-
width: `${this.boundarySize.width}px`
|
|
237
|
-
})}><div part="panel" class="dialog__panel" role="dialog" aria-modal="true" aria-hidden=${this.open ? "false" : "true"} aria-label=${C(this.noHeader ? this.label : void 0)} aria-labelledby=${C(this.noHeader ? void 0 : "title")} tabindex="-1">${b(
|
|
238
|
-
this.noHeader,
|
|
239
|
-
() => W,
|
|
240
|
-
() => y`<header part="header" class="dialog__header"><h2 part="title" class="dialog__title" id="title"><slot name="label">${this.label.length > 0 ? this.label : "\uFEFF"}</slot></h2><div part="header-actions" class="dialog__header-actions"><slot name="header-actions"></slot><cx-icon-button part="close-button" exportparts="base:close-button__base" class="dialog__close" name="close" label=${this.localize.term("close")} @click=${this.handleCloseButtonClick}></cx-icon-button></div></header>${b(
|
|
241
|
-
[
|
|
242
|
-
l.Header,
|
|
243
|
-
l.Both
|
|
244
|
-
].includes(this.dividerPosition),
|
|
245
|
-
() => y`<cx-divider class="dialog__header-divider"></cx-divider>`
|
|
246
|
-
)}
|
|
247
|
-
`
|
|
248
|
-
)}<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
|
|
249
|
-
However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard.
|
|
250
|
-
Previously this was just a <slot>, but tabindex="-1" on the slot causes children to not be focusable.
|
|
251
|
-
https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 --><div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>${b(
|
|
252
|
-
[
|
|
253
|
-
l.Footer,
|
|
254
|
-
l.Both
|
|
255
|
-
].includes(this.dividerPosition),
|
|
256
|
-
() => y`<cx-divider class="dialog__footer-divider"></cx-divider>`
|
|
257
|
-
)}<footer part="footer" class="dialog__footer"><slot name="footer"></slot></footer></div></div></div></cx-popup>`;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
t.styles = [
|
|
261
|
-
S,
|
|
262
|
-
B,
|
|
263
|
-
j
|
|
264
|
-
];
|
|
265
|
-
t.dependencies = {
|
|
266
|
-
"cx-divider": F,
|
|
267
|
-
"cx-icon-button": I,
|
|
268
|
-
"cx-popup": U
|
|
269
|
-
};
|
|
270
|
-
i([
|
|
271
|
-
m(".popup")
|
|
272
|
-
], t.prototype, "popup", 2);
|
|
273
|
-
i([
|
|
274
|
-
m(".dialog__panel")
|
|
275
|
-
], t.prototype, "panel", 2);
|
|
276
|
-
i([
|
|
277
|
-
m(".dialog__body")
|
|
278
|
-
], t.prototype, "body", 2);
|
|
279
|
-
i([
|
|
280
|
-
r({ reflect: !0, type: Boolean })
|
|
281
|
-
], t.prototype, "open", 2);
|
|
282
|
-
i([
|
|
283
|
-
r({ reflect: !0 })
|
|
284
|
-
], t.prototype, "label", 2);
|
|
285
|
-
i([
|
|
286
|
-
r({ attribute: "no-header", reflect: !0, type: Boolean })
|
|
287
|
-
], t.prototype, "noHeader", 2);
|
|
288
|
-
i([
|
|
289
|
-
r({ type: Object })
|
|
290
|
-
], t.prototype, "boundary", 2);
|
|
291
|
-
i([
|
|
292
|
-
r({ attribute: "divider-position", reflect: !0, type: String })
|
|
293
|
-
], t.prototype, "dividerPosition", 2);
|
|
294
|
-
i([
|
|
295
|
-
r({
|
|
296
|
-
attribute: "use-overlay-scrollbar",
|
|
297
|
-
reflect: !0,
|
|
298
|
-
type: Boolean
|
|
299
|
-
})
|
|
300
|
-
], t.prototype, "useOverlayScrollbar", 2);
|
|
301
|
-
i([
|
|
302
|
-
r({
|
|
303
|
-
attribute: "overlay-scrollbar-auto-hide",
|
|
304
|
-
reflect: !0,
|
|
305
|
-
type: String
|
|
306
|
-
})
|
|
307
|
-
], t.prototype, "overlayScrollbarAutoHide", 2);
|
|
308
|
-
i([
|
|
309
|
-
r({
|
|
310
|
-
attribute: "overlay-scrollbar-auto-hide-delay",
|
|
311
|
-
reflect: !0,
|
|
312
|
-
type: Number
|
|
313
|
-
})
|
|
314
|
-
], t.prototype, "overlayScrollbarAutoHideDelay", 2);
|
|
315
|
-
i([
|
|
316
|
-
r({
|
|
317
|
-
attribute: "disable-overlay-click",
|
|
318
|
-
reflect: !0,
|
|
319
|
-
type: Boolean
|
|
320
|
-
})
|
|
321
|
-
], t.prototype, "disableOverlayClick", 2);
|
|
322
|
-
i([
|
|
323
|
-
r({
|
|
324
|
-
attribute: "stay-open-outside-click",
|
|
325
|
-
reflect: !0,
|
|
326
|
-
type: Boolean
|
|
327
|
-
})
|
|
328
|
-
], t.prototype, "stayOpenOutsideClick", 2);
|
|
329
|
-
i([
|
|
330
|
-
r({ reflect: !0 })
|
|
331
|
-
], t.prototype, "strategy", 2);
|
|
332
|
-
i([
|
|
333
|
-
g()
|
|
334
|
-
], t.prototype, "overlay", 2);
|
|
335
|
-
i([
|
|
336
|
-
g()
|
|
337
|
-
], t.prototype, "boundaryObserver", 2);
|
|
338
|
-
i([
|
|
339
|
-
g()
|
|
340
|
-
], t.prototype, "boundarySize", 2);
|
|
341
|
-
i([
|
|
342
|
-
z(["boundary"], { waitUntilFirstUpdate: !0 })
|
|
343
|
-
], t.prototype, "updatePopupAnchor", 1);
|
|
344
|
-
i([
|
|
345
|
-
z("open", { waitUntilFirstUpdate: !0 })
|
|
346
|
-
], t.prototype, "handleOpenChange", 1);
|
|
347
|
-
t = i([
|
|
348
|
-
$("cx-dialog")
|
|
349
|
-
], t);
|
|
350
|
-
u("dialog.show", {
|
|
351
|
-
keyframes: [
|
|
352
|
-
{ opacity: 0 },
|
|
353
|
-
{ opacity: 1 }
|
|
354
|
-
],
|
|
355
|
-
options: { duration: 250, easing: "ease" }
|
|
356
|
-
});
|
|
357
|
-
u("dialog.hide", {
|
|
358
|
-
keyframes: [
|
|
359
|
-
{ opacity: 1 },
|
|
360
|
-
{ opacity: 0 }
|
|
361
|
-
],
|
|
362
|
-
options: { duration: 250, easing: "ease" }
|
|
363
|
-
});
|
|
364
|
-
u("dialog.denyClose", {
|
|
365
|
-
keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],
|
|
366
|
-
options: { duration: 250 }
|
|
367
|
-
});
|
|
368
|
-
u("dialog.overlay.show", {
|
|
369
|
-
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
370
|
-
options: { duration: 250 }
|
|
371
|
-
});
|
|
372
|
-
u("dialog.overlay.hide", {
|
|
373
|
-
keyframes: [{ opacity: 1 }, { opacity: 0 }],
|
|
374
|
-
options: { duration: 250 }
|
|
375
|
-
});
|
|
376
|
-
export {
|
|
377
|
-
t as C,
|
|
378
|
-
l as D
|
|
379
|
-
};
|