@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2
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.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
- package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.D7E0-cUV.js +460 -0
- package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
- package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
- package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
- package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
- package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
- package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
- package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
- package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
- package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
- package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/folder-select.BT1drT8C.js +775 -0
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
- package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.BePZwMCQ.js +170 -0
- package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
- package/library/chunks/icon-button.rKe0N4VB.js +149 -0
- package/library/chunks/iframe.DznmlYpV.js +73 -0
- package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
- package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.COnEtd3X.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/pagination.DaD9Yul6.js +334 -0
- package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
- package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/string.BigZhczf.js +185 -0
- package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
- package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
- package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/toast.B2cJgW5u.js +71 -0
- package/library/chunks/transformation.CzBptarI.js +140 -0
- package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +11 -179
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +13 -101
- package/library/components/animation.js +3 -3
- package/library/components/array-line-clamp.js +8 -89
- package/library/components/asset-link-format.js +718 -1380
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +6 -95
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +5 -26
- package/library/components/breadcrumb-item.js +25 -156
- package/library/components/breadcrumb.js +4 -22
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +6 -6
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +13 -254
- package/library/components/color-picker.js +57 -728
- package/library/components/color-swatch-group.js +9 -9
- package/library/components/color-swatch.js +5 -5
- package/library/components/confirm-popover.js +6 -6
- package/library/components/copy-button.js +11 -256
- package/library/components/corner-position-input-group.js +5 -58
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +6 -6
- package/library/components/divider.js +6 -68
- package/library/components/dot-pagination.js +4 -4
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +11 -242
- package/library/components/dropdown.js +49 -151
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +8 -51
- package/library/components/element-clamp.js +7 -80
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +9 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +3 -7
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +4 -14
- package/library/components/grid-item.js +5 -172
- package/library/components/grid.js +5 -41
- package/library/components/header.js +4 -4
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +14 -679
- package/library/components/icon.js +9 -2449
- package/library/components/iframe.js +4 -4
- package/library/components/image-comparer.js +9 -129
- package/library/components/image.js +4 -4
- package/library/components/include.js +3 -7
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +358 -966
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +9 -9
- package/library/components/markdown.js +2 -4
- package/library/components/masonry.js +24 -223
- package/library/components/menu-item.js +155 -445
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +5 -113
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +3 -7
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +10 -8
- package/library/components/popup.js +385 -682
- package/library/components/position-picker.js +4 -94
- package/library/components/progress-bar.js +19 -136
- package/library/components/progress-ring.js +4 -95
- package/library/components/qr-code.js +5 -17
- package/library/components/radio-button.js +5 -25
- package/library/components/radio-card.js +8 -176
- package/library/components/radio-group.js +22 -153
- package/library/components/radio.js +14 -171
- package/library/components/range.js +123 -660
- package/library/components/rating.js +58 -238
- package/library/components/relative-time.js +3 -13
- package/library/components/resize-observer.js +4 -8
- package/library/components/select.js +305 -1012
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +21 -313
- package/library/components/sidebar.js +15 -221
- package/library/components/size-input-group.js +12 -77
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +7 -76
- package/library/components/split-panel.js +18 -125
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +17 -34
- package/library/components/switch.js +13 -276
- package/library/components/tab-group.js +7 -7
- package/library/components/tab-panel.js +5 -32
- package/library/components/tab.js +11 -257
- package/library/components/table.js +8 -8
- package/library/components/tag.js +15 -166
- package/library/components/textarea.js +183 -504
- package/library/components/timecode.js +6 -25
- package/library/components/tooltip.js +10 -94
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +24 -123
- package/library/components/types.js +37225 -47339
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3875 -6263
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
- package/library/packages/atoms/src/components/input/input.d.ts +10 -2
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/table.d.ts +49 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +11 -1
- package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
- package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
- package/library/packages/organisms/src/comment/comment.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +27 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/types/src/icon-button.d.ts +7 -0
- package/library/packages/types/src/menu-item.d.ts +33 -0
- package/library/packages/types/src/storybook.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +37 -1
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/types/src/video-format-picker.d.ts +11 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +33 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +293 -29
- package/library/utils.js +483 -178
- package/package.json +4 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/asset.CG_yXtWK.js +0 -288
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
- package/library/chunks/content-builder.D_phDrlo.js +0 -127
- package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
- package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
- package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.BduX6KJP.js +0 -777
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/iframe.BPKV2K7z.js +0 -160
- package/library/chunks/index.B3wJT3XS.js +0 -373
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/option.DnpkE8Xi.js +0 -296
- package/library/chunks/pagination.C30LoTya.js +0 -341
- package/library/chunks/string.B_rEG27K.js +0 -160
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/chunks/typography.oDzoLbZS.js +0 -149
- package/library/chunks/url.LjsR2sB5.js +0 -15
- package/library/chunks/watch.q1sEjPWL.js +0 -501
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
|
@@ -1,188 +1,40 @@
|
|
|
1
|
-
import { n, C as
|
|
2
|
-
import { c as S } from "./component.styles.
|
|
3
|
-
import { O, C as D, H
|
|
4
|
-
import { a as
|
|
5
|
-
import { c as
|
|
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 B, o as $ } from "./overlayscrollbars.BMav4RQ4.js";
|
|
4
|
+
import { a as c, s as p } from "./animate.El-MpOws.js";
|
|
5
|
+
import { c as A } from "./custom-element.L4WJXn1j.js";
|
|
6
6
|
import { w as x } from "./event.mFzZi4sr.js";
|
|
7
|
-
import { L
|
|
8
|
-
import { M as
|
|
7
|
+
import { L } from "./i18n.BFqTRDCA.js";
|
|
8
|
+
import { M as P } from "./modal.U1QltQKe.js";
|
|
9
9
|
import { l as w, u as _ } from "./scroll.xtO5yojm.js";
|
|
10
|
-
import { H as
|
|
11
|
-
import { w as
|
|
12
|
-
import { i as
|
|
10
|
+
import { H as E } from "./slot.j5oheLJC.js";
|
|
11
|
+
import { w as z } from "./watch.BCJD77bD.js";
|
|
12
|
+
import { i as R, x as y, E as W } from "./lit-element.jLBm65_O.js";
|
|
13
13
|
import { r as m } from "./state.CSDxrqLd.js";
|
|
14
|
-
import { e as
|
|
14
|
+
import { e as g } from "./query.BBf1UFkC.js";
|
|
15
15
|
import { e as v } from "./class-map.BiVq-cVR.js";
|
|
16
16
|
import { o as C } from "./if-defined.BRoBj_Rp.js";
|
|
17
|
-
import { o as
|
|
18
|
-
import { n as
|
|
19
|
-
import { s as
|
|
17
|
+
import { o as q } from "./style-map.llVFPd__.js";
|
|
18
|
+
import { n as b } from "./when.Dr1es41R.js";
|
|
19
|
+
import { s as u, g as h } from "./animation-registry.HmpwNuGH.js";
|
|
20
20
|
import F from "../components/divider.js";
|
|
21
|
-
import I from "
|
|
22
|
-
import
|
|
21
|
+
import { C as I } from "./icon-button.rKe0N4VB.js";
|
|
22
|
+
import U from "../components/popup.js";
|
|
23
23
|
var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
--divider-spacing: 0;
|
|
30
|
-
--footer-spacing: var(--cx-spacing-medium);
|
|
31
|
-
--max-width: 100%;
|
|
32
|
-
--max-height: 100%;
|
|
33
|
-
--overlay-background-color: var(--cx-overlay-background-color);
|
|
34
|
-
|
|
35
|
-
display: contents;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dialog {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dialog--absolute {
|
|
45
|
-
position: absolute;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.dialog__panel {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
width: var(--width);
|
|
52
|
-
height: var(--dialog-height, auto);
|
|
53
|
-
background-color: var(--cx-panel-background-color);
|
|
54
|
-
border-radius: var(--cx-border-radius-medium);
|
|
55
|
-
box-shadow: var(--cx-shadow-x-large);
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
max-width: calc(var(--max-width) - var(--cx-spacing-2x-large));
|
|
58
|
-
max-height: calc(var(--max-height) - var(--cx-spacing-2x-large));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dialog__panel:focus {
|
|
62
|
-
outline: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
|
|
66
|
-
@media screen and (max-width: 420px) {
|
|
67
|
-
.dialog__panel {
|
|
68
|
-
max-height: 80vh;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dialog--open .dialog__panel {
|
|
73
|
-
display: flex;
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dialog__header {
|
|
78
|
-
flex: 0 0 auto;
|
|
79
|
-
display: flex;
|
|
80
|
-
padding: var(--header-spacing);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.dialog__header-divider,
|
|
84
|
-
.dialog__footer-divider {
|
|
85
|
-
--spacing: 0;
|
|
86
|
-
padding: var(--divider-spacing);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dialog__title {
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
flex: 1 1 auto;
|
|
93
|
-
font: inherit;
|
|
94
|
-
font-family: var(--cx-font-sans);
|
|
95
|
-
font-size: var(--cx-font-size-large);
|
|
96
|
-
font-weight: var(--cx-font-weight-regular);
|
|
97
|
-
line-height: var(--cx-line-height-large);
|
|
98
|
-
margin: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.dialog__header-actions {
|
|
102
|
-
flex-shrink: 0;
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-wrap: wrap;
|
|
105
|
-
justify-content: end;
|
|
106
|
-
gap: var(--cx-spacing-2x-small);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.dialog__header-actions cx-icon-button,
|
|
110
|
-
.dialog__header-actions ::slotted(cx-icon-button) {
|
|
111
|
-
flex: 0 0 auto;
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
font-size: var(--cx-font-size-3x-large);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.dialog__body {
|
|
118
|
-
flex: 1 1 auto;
|
|
119
|
-
display: block;
|
|
120
|
-
padding: var(--body-spacing);
|
|
121
|
-
overflow: auto;
|
|
122
|
-
-webkit-overflow-scrolling: touch;
|
|
123
|
-
font-size: var(--cx-font-size-medium);
|
|
124
|
-
font-weight: var(--cx-font-weight-regular);
|
|
125
|
-
line-height: var(--cx-line-height-small);
|
|
126
|
-
position: relative;
|
|
127
|
-
/* https://link.orangelogic.com/Tasks/41SL03 */
|
|
128
|
-
z-index: 2;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.dialog--overlay-scrollbar .dialog__body {
|
|
132
|
-
display: flex;
|
|
133
|
-
flex-direction: column;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.dialog__footer {
|
|
137
|
-
flex: 0 0 auto;
|
|
138
|
-
text-align: right;
|
|
139
|
-
padding: var(--footer-spacing);
|
|
140
|
-
position: relative;
|
|
141
|
-
z-index: 1;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.dialog__footer ::slotted(cx-button:not(:first-of-type)) {
|
|
145
|
-
margin-inline-start: var(--cx-spacing-x-small);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.dialog:not(.dialog--has-footer) .dialog__footer {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@media (forced-colors: active) {
|
|
153
|
-
.dialog__panel {
|
|
154
|
-
border: solid 1px var(--cx-color-neutral-0);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.dialog__overlay {
|
|
159
|
-
display: flex;
|
|
160
|
-
align-items: center;
|
|
161
|
-
justify-content: center;
|
|
162
|
-
background-color: var(--overlay-background-color);
|
|
163
|
-
opacity: 0;
|
|
164
|
-
pointer-events: none;
|
|
165
|
-
z-index: 1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.dialog--open .dialog__overlay {
|
|
169
|
-
opacity: 1;
|
|
170
|
-
pointer-events: auto;
|
|
171
|
-
}
|
|
172
|
-
`;
|
|
173
|
-
var j = Object.defineProperty, M = Object.getOwnPropertyDescriptor, a = (e, o, i, r) => {
|
|
174
|
-
for (var s = r > 1 ? void 0 : r ? M(o, i) : o, d = e.length - 1, f; d >= 0; d--)
|
|
175
|
-
(f = e[d]) && (s = (r ? f(o, i, s) : f(s)) || s);
|
|
176
|
-
return r && s && j(o, i, s), s;
|
|
24
|
+
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}`;
|
|
25
|
+
var M = Object.defineProperty, T = Object.getOwnPropertyDescriptor, i = (e, o, a, n) => {
|
|
26
|
+
for (var s = n > 1 ? void 0 : n ? T(o, a) : o, d = e.length - 1, f; d >= 0; d--)
|
|
27
|
+
(f = e[d]) && (s = (n ? f(o, a, s) : f(s)) || s);
|
|
28
|
+
return n && s && M(o, a, s), s;
|
|
177
29
|
};
|
|
178
30
|
O.plugin({
|
|
179
|
-
ClickScroll:
|
|
180
|
-
ScrollbarsHiding:
|
|
31
|
+
ClickScroll: B,
|
|
32
|
+
ScrollbarsHiding: H,
|
|
181
33
|
SizeObserver: D
|
|
182
34
|
});
|
|
183
|
-
let t = class extends
|
|
35
|
+
let t = class extends k {
|
|
184
36
|
constructor() {
|
|
185
|
-
super(), this.hasSlotController = new
|
|
37
|
+
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 = {
|
|
186
38
|
height: 0,
|
|
187
39
|
width: 0
|
|
188
40
|
}, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
@@ -222,10 +74,10 @@ let t = class extends z {
|
|
|
222
74
|
height: e.clientHeight,
|
|
223
75
|
width: e.clientWidth
|
|
224
76
|
}, this.boundaryObserver = new ResizeObserver((o) => {
|
|
225
|
-
for (const
|
|
77
|
+
for (const a of o)
|
|
226
78
|
this.boundarySize = {
|
|
227
|
-
height:
|
|
228
|
-
width:
|
|
79
|
+
height: a.contentRect.height,
|
|
80
|
+
width: a.contentRect.width
|
|
229
81
|
};
|
|
230
82
|
}), this.boundaryObserver.observe(e));
|
|
231
83
|
}
|
|
@@ -243,10 +95,10 @@ let t = class extends z {
|
|
|
243
95
|
if (o.defaultPrevented || this.disableOverlayClick && e === "overlay") {
|
|
244
96
|
if (o.detail.preventedReason === "nested" || !this.disableOverlayClick && e === "overlay")
|
|
245
97
|
return !1;
|
|
246
|
-
const
|
|
98
|
+
const a = h(this, "dialog.denyClose", {
|
|
247
99
|
dir: this.localize.dir()
|
|
248
100
|
});
|
|
249
|
-
return
|
|
101
|
+
return c(this.panel, a.keyframes, a.options), !1;
|
|
250
102
|
}
|
|
251
103
|
return this.hide(), !0;
|
|
252
104
|
}
|
|
@@ -276,8 +128,8 @@ let t = class extends z {
|
|
|
276
128
|
);
|
|
277
129
|
}
|
|
278
130
|
handleDocumentMouseDown(e) {
|
|
279
|
-
const o = e.composedPath(),
|
|
280
|
-
|
|
131
|
+
const o = e.composedPath(), a = o[0], n = o.some((d) => d === this.panel), s = !this.contains(a) && !this.shadowRoot?.contains(a);
|
|
132
|
+
n || this.stayOpenOutsideClick && s || this.requestClose("overlay");
|
|
281
133
|
}
|
|
282
134
|
handleDocumentKeyDown(e) {
|
|
283
135
|
e.key === "Escape" && this.modal.isActive() && this.open && this.requestClose("keyboard") && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
@@ -289,15 +141,15 @@ let t = class extends z {
|
|
|
289
141
|
if (this.open) {
|
|
290
142
|
this.emit("cx-show"), this.originalTrigger = document.activeElement, this.modal.activate(), this.useOverlayScrollbar && (this.osInstance = O(this.body, {
|
|
291
143
|
scrollbars: {
|
|
292
|
-
autoHide:
|
|
293
|
-
autoHideDelay:
|
|
144
|
+
autoHide: this.overlayScrollbarAutoHide,
|
|
145
|
+
autoHideDelay: this.overlayScrollbarAutoHideDelay
|
|
294
146
|
}
|
|
295
147
|
})), (!this.boundary || this.boundary === document.body) && w(this);
|
|
296
148
|
const e = this.querySelector("[autofocus]");
|
|
297
149
|
e && e.removeAttribute("autofocus"), await Promise.all([
|
|
298
|
-
|
|
150
|
+
p(this.popup),
|
|
299
151
|
(() => {
|
|
300
|
-
this.overlay &&
|
|
152
|
+
this.overlay && p(this.overlay);
|
|
301
153
|
})()
|
|
302
154
|
]), this.popup.hidden = !1, (() => {
|
|
303
155
|
this.emit("cx-initial-focus", {
|
|
@@ -306,42 +158,42 @@ let t = class extends z {
|
|
|
306
158
|
preventScroll: !0
|
|
307
159
|
}) : this.panel.focus({ preventScroll: !0 })), e && e.setAttribute("autofocus", "");
|
|
308
160
|
})();
|
|
309
|
-
const
|
|
161
|
+
const a = h(this, "dialog.show", {
|
|
310
162
|
dir: this.localize.dir()
|
|
311
|
-
}),
|
|
163
|
+
}), n = h(this, "dialog.overlay.show", {
|
|
312
164
|
dir: this.localize.dir()
|
|
313
165
|
});
|
|
314
166
|
await Promise.all([
|
|
315
|
-
|
|
167
|
+
c(this.panel, a.keyframes, a.options),
|
|
316
168
|
(async () => {
|
|
317
|
-
this.overlay && await
|
|
169
|
+
this.overlay && await c(
|
|
318
170
|
this.overlay,
|
|
319
|
-
|
|
320
|
-
|
|
171
|
+
n.keyframes,
|
|
172
|
+
n.options
|
|
321
173
|
);
|
|
322
174
|
})()
|
|
323
175
|
]), this.emit("cx-after-show"), this.addOpenListeners();
|
|
324
176
|
} else {
|
|
325
177
|
this.emit("cx-hide"), this.removeOpenListeners(), this.modal.deactivate(), this.osInstance?.destroy(), await Promise.all([
|
|
326
|
-
|
|
178
|
+
p(this.popup),
|
|
327
179
|
(() => {
|
|
328
|
-
this.overlay &&
|
|
180
|
+
this.overlay && p(this.overlay);
|
|
329
181
|
})()
|
|
330
182
|
]);
|
|
331
|
-
const e =
|
|
183
|
+
const e = h(this, "dialog.hide", {
|
|
332
184
|
dir: this.localize.dir()
|
|
333
|
-
}), o =
|
|
185
|
+
}), o = h(this, "dialog.overlay.hide", {
|
|
334
186
|
dir: this.localize.dir()
|
|
335
187
|
});
|
|
336
188
|
await Promise.all([
|
|
337
189
|
(async () => {
|
|
338
|
-
this.overlay && (await
|
|
190
|
+
this.overlay && (await c(
|
|
339
191
|
this.overlay,
|
|
340
192
|
o.keyframes,
|
|
341
193
|
o.options
|
|
342
194
|
), this.overlay.hidden = !0);
|
|
343
195
|
})(),
|
|
344
|
-
|
|
196
|
+
c(
|
|
345
197
|
this.panel,
|
|
346
198
|
e.keyframes,
|
|
347
199
|
e.options
|
|
@@ -349,8 +201,8 @@ let t = class extends z {
|
|
|
349
201
|
this.panel.hidden = !0;
|
|
350
202
|
})
|
|
351
203
|
]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) && _(this);
|
|
352
|
-
const
|
|
353
|
-
typeof
|
|
204
|
+
const a = this.originalTrigger;
|
|
205
|
+
typeof a?.focus == "function" && setTimeout(() => a.focus()), this.emit("cx-after-hide");
|
|
354
206
|
}
|
|
355
207
|
}
|
|
356
208
|
/** Shows the dialog. */
|
|
@@ -364,203 +216,154 @@ let t = class extends z {
|
|
|
364
216
|
return this.open = !1, x(this, "cx-after-hide");
|
|
365
217
|
}
|
|
366
218
|
render() {
|
|
367
|
-
return y
|
|
368
|
-
<cx-popup
|
|
369
|
-
part="base"
|
|
370
|
-
?active=${this.open}
|
|
371
|
-
strategy=${this.strategy === "overlay" ? "overlay" : "fixed"}
|
|
372
|
-
class=${v({
|
|
219
|
+
return y`<cx-popup part="base" ?active=${this.open} strategy=${this.strategy === "overlay" ? "overlay" : "fixed"} class=${v({
|
|
373
220
|
popup: !0
|
|
374
|
-
})}
|
|
375
|
-
placement="center"
|
|
376
|
-
>
|
|
377
|
-
<div
|
|
378
|
-
class=${v({
|
|
221
|
+
})} placement="center"><div class=${v({
|
|
379
222
|
dialog: !0,
|
|
380
223
|
"dialog--has-footer": this.hasSlotController.test("footer"),
|
|
381
224
|
"dialog--open": this.open,
|
|
382
225
|
"dialog--overlay-scrollbar": this.useOverlayScrollbar
|
|
383
|
-
})}
|
|
384
|
-
>
|
|
385
|
-
<div
|
|
386
|
-
part="overlay"
|
|
387
|
-
class=${v({
|
|
226
|
+
})}><div part="overlay" class=${v({
|
|
388
227
|
dialog__overlay: !0
|
|
389
|
-
})}
|
|
390
|
-
tabindex="-1"
|
|
391
|
-
style=${A({
|
|
228
|
+
})} tabindex="-1" style=${q({
|
|
392
229
|
height: `${this.boundarySize.height}px`,
|
|
393
230
|
width: `${this.boundarySize.width}px`
|
|
394
|
-
})}
|
|
395
|
-
>
|
|
396
|
-
<div
|
|
397
|
-
part="panel"
|
|
398
|
-
class="dialog__panel"
|
|
399
|
-
role="dialog"
|
|
400
|
-
aria-modal="true"
|
|
401
|
-
aria-hidden=${this.open ? "false" : "true"}
|
|
402
|
-
aria-label=${C(this.noHeader ? this.label : void 0)}
|
|
403
|
-
aria-labelledby=${C(this.noHeader ? void 0 : "title")}
|
|
404
|
-
tabindex="-1"
|
|
405
|
-
>
|
|
406
|
-
${g(
|
|
231
|
+
})}><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(
|
|
407
232
|
this.noHeader,
|
|
408
|
-
() =>
|
|
409
|
-
() => y
|
|
410
|
-
<header part="header" class="dialog__header">
|
|
411
|
-
<h2 part="title" class="dialog__title" id="title">
|
|
412
|
-
<slot name="label">
|
|
413
|
-
${this.label.length > 0 ? this.label : "\uFEFF"}
|
|
414
|
-
</slot>
|
|
415
|
-
</h2>
|
|
416
|
-
<div part="header-actions" class="dialog__header-actions">
|
|
417
|
-
<slot name="header-actions"></slot>
|
|
418
|
-
<cx-icon-button
|
|
419
|
-
part="close-button"
|
|
420
|
-
exportparts="base:close-button__base"
|
|
421
|
-
class="dialog__close"
|
|
422
|
-
name="close"
|
|
423
|
-
label=${this.localize.term("close")}
|
|
424
|
-
@click=${this.handleCloseButtonClick}
|
|
425
|
-
></cx-icon-button>
|
|
426
|
-
</div>
|
|
427
|
-
</header>
|
|
428
|
-
${g(
|
|
233
|
+
() => W,
|
|
234
|
+
() => 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(
|
|
429
235
|
[
|
|
430
236
|
l.Header,
|
|
431
237
|
l.Both
|
|
432
238
|
].includes(this.dividerPosition),
|
|
433
|
-
() => y
|
|
434
|
-
<cx-divider class="dialog__header-divider"></cx-divider>
|
|
435
|
-
`
|
|
239
|
+
() => y`<cx-divider class="dialog__header-divider"></cx-divider>`
|
|
436
240
|
)}
|
|
437
241
|
`
|
|
438
|
-
)}
|
|
439
|
-
<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
|
|
242
|
+
)}<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
|
|
440
243
|
However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard.
|
|
441
244
|
Previously this was just a <slot>, but tabindex="-1" on the slot causes children to not be focusable.
|
|
442
|
-
https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277
|
|
443
|
-
<div part="body" class="dialog__body" tabindex="-1">
|
|
444
|
-
<slot></slot>
|
|
445
|
-
</div>
|
|
446
|
-
${g(
|
|
245
|
+
https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 --><div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>${b(
|
|
447
246
|
[
|
|
448
247
|
l.Footer,
|
|
449
248
|
l.Both
|
|
450
249
|
].includes(this.dividerPosition),
|
|
451
|
-
() => y
|
|
452
|
-
|
|
453
|
-
`
|
|
454
|
-
)}
|
|
455
|
-
<footer part="footer" class="dialog__footer">
|
|
456
|
-
<slot name="footer"></slot>
|
|
457
|
-
</footer>
|
|
458
|
-
</div>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</cx-popup>
|
|
462
|
-
`;
|
|
250
|
+
() => y`<cx-divider class="dialog__footer-divider"></cx-divider>`
|
|
251
|
+
)}<footer part="footer" class="dialog__footer"><slot name="footer"></slot></footer></div></div></div></cx-popup>`;
|
|
463
252
|
}
|
|
464
253
|
};
|
|
465
254
|
t.styles = [
|
|
466
255
|
S,
|
|
467
|
-
|
|
468
|
-
|
|
256
|
+
$,
|
|
257
|
+
j
|
|
469
258
|
];
|
|
470
259
|
t.dependencies = {
|
|
471
260
|
"cx-divider": F,
|
|
472
261
|
"cx-icon-button": I,
|
|
473
|
-
"cx-popup":
|
|
262
|
+
"cx-popup": U
|
|
474
263
|
};
|
|
475
|
-
|
|
476
|
-
|
|
264
|
+
i([
|
|
265
|
+
g(".popup")
|
|
477
266
|
], t.prototype, "popup", 2);
|
|
478
|
-
|
|
479
|
-
|
|
267
|
+
i([
|
|
268
|
+
g(".dialog__panel")
|
|
480
269
|
], t.prototype, "panel", 2);
|
|
481
|
-
|
|
482
|
-
|
|
270
|
+
i([
|
|
271
|
+
g(".dialog__body")
|
|
483
272
|
], t.prototype, "body", 2);
|
|
484
|
-
|
|
485
|
-
|
|
273
|
+
i([
|
|
274
|
+
r({ reflect: !0, type: Boolean })
|
|
486
275
|
], t.prototype, "open", 2);
|
|
487
|
-
|
|
488
|
-
|
|
276
|
+
i([
|
|
277
|
+
r({ reflect: !0 })
|
|
489
278
|
], t.prototype, "label", 2);
|
|
490
|
-
|
|
491
|
-
|
|
279
|
+
i([
|
|
280
|
+
r({ attribute: "no-header", reflect: !0, type: Boolean })
|
|
492
281
|
], t.prototype, "noHeader", 2);
|
|
493
|
-
|
|
494
|
-
|
|
282
|
+
i([
|
|
283
|
+
r({ type: Object })
|
|
495
284
|
], t.prototype, "boundary", 2);
|
|
496
|
-
|
|
497
|
-
|
|
285
|
+
i([
|
|
286
|
+
r({ attribute: "divider-position", reflect: !0, type: String })
|
|
498
287
|
], t.prototype, "dividerPosition", 2);
|
|
499
|
-
|
|
500
|
-
|
|
288
|
+
i([
|
|
289
|
+
r({
|
|
501
290
|
attribute: "use-overlay-scrollbar",
|
|
502
291
|
reflect: !0,
|
|
503
292
|
type: Boolean
|
|
504
293
|
})
|
|
505
294
|
], t.prototype, "useOverlayScrollbar", 2);
|
|
506
|
-
|
|
507
|
-
|
|
295
|
+
i([
|
|
296
|
+
r({
|
|
297
|
+
attribute: "overlay-scrollbar-auto-hide",
|
|
298
|
+
reflect: !0,
|
|
299
|
+
type: String
|
|
300
|
+
})
|
|
301
|
+
], t.prototype, "overlayScrollbarAutoHide", 2);
|
|
302
|
+
i([
|
|
303
|
+
r({
|
|
304
|
+
attribute: "overlay-scrollbar-auto-hide-delay",
|
|
305
|
+
reflect: !0,
|
|
306
|
+
type: Number
|
|
307
|
+
})
|
|
308
|
+
], t.prototype, "overlayScrollbarAutoHideDelay", 2);
|
|
309
|
+
i([
|
|
310
|
+
r({
|
|
508
311
|
attribute: "disable-overlay-click",
|
|
509
312
|
reflect: !0,
|
|
510
313
|
type: Boolean
|
|
511
314
|
})
|
|
512
315
|
], t.prototype, "disableOverlayClick", 2);
|
|
513
|
-
|
|
514
|
-
|
|
316
|
+
i([
|
|
317
|
+
r({
|
|
515
318
|
attribute: "stay-open-outside-click",
|
|
516
319
|
reflect: !0,
|
|
517
320
|
type: Boolean
|
|
518
321
|
})
|
|
519
322
|
], t.prototype, "stayOpenOutsideClick", 2);
|
|
520
|
-
|
|
521
|
-
|
|
323
|
+
i([
|
|
324
|
+
r({ reflect: !0 })
|
|
522
325
|
], t.prototype, "strategy", 2);
|
|
523
|
-
|
|
326
|
+
i([
|
|
524
327
|
m()
|
|
525
328
|
], t.prototype, "overlay", 2);
|
|
526
|
-
|
|
329
|
+
i([
|
|
527
330
|
m()
|
|
528
331
|
], t.prototype, "boundaryObserver", 2);
|
|
529
|
-
|
|
332
|
+
i([
|
|
530
333
|
m()
|
|
531
334
|
], t.prototype, "boundarySize", 2);
|
|
532
|
-
|
|
533
|
-
|
|
335
|
+
i([
|
|
336
|
+
z(["boundary"], { waitUntilFirstUpdate: !0 })
|
|
534
337
|
], t.prototype, "updatePopupAnchor", 1);
|
|
535
|
-
|
|
536
|
-
|
|
338
|
+
i([
|
|
339
|
+
z("open", { waitUntilFirstUpdate: !0 })
|
|
537
340
|
], t.prototype, "handleOpenChange", 1);
|
|
538
|
-
t =
|
|
539
|
-
|
|
341
|
+
t = i([
|
|
342
|
+
A("cx-dialog")
|
|
540
343
|
], t);
|
|
541
|
-
|
|
344
|
+
u("dialog.show", {
|
|
542
345
|
keyframes: [
|
|
543
346
|
{ opacity: 0 },
|
|
544
347
|
{ opacity: 1 }
|
|
545
348
|
],
|
|
546
349
|
options: { duration: 250, easing: "ease" }
|
|
547
350
|
});
|
|
548
|
-
|
|
351
|
+
u("dialog.hide", {
|
|
549
352
|
keyframes: [
|
|
550
353
|
{ opacity: 1 },
|
|
551
354
|
{ opacity: 0 }
|
|
552
355
|
],
|
|
553
356
|
options: { duration: 250, easing: "ease" }
|
|
554
357
|
});
|
|
555
|
-
|
|
358
|
+
u("dialog.denyClose", {
|
|
556
359
|
keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],
|
|
557
360
|
options: { duration: 250 }
|
|
558
361
|
});
|
|
559
|
-
|
|
362
|
+
u("dialog.overlay.show", {
|
|
560
363
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
561
364
|
options: { duration: 250 }
|
|
562
365
|
});
|
|
563
|
-
|
|
366
|
+
u("dialog.overlay.hide", {
|
|
564
367
|
keyframes: [{ opacity: 1 }, { opacity: 0 }],
|
|
565
368
|
options: { duration: 250 }
|
|
566
369
|
});
|