@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,12 +1,12 @@
|
|
|
1
1
|
import { n as s, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as b } from "../chunks/component.styles.
|
|
2
|
+
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as c, a as u } from "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { w as m } from "../chunks/event.mFzZi4sr.js";
|
|
6
|
-
import { L as v } from "../chunks/i18n.
|
|
6
|
+
import { L as v } from "../chunks/i18n.BFqTRDCA.js";
|
|
7
7
|
import { H as k } from "../chunks/slot.j5oheLJC.js";
|
|
8
8
|
import { g as f } from "../chunks/tabbable.CcMz3mIL.js";
|
|
9
|
-
import { w as E } from "../chunks/watch.
|
|
9
|
+
import { w as E } from "../chunks/watch.BCJD77bD.js";
|
|
10
10
|
import { i as C, x as D } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as T } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -15,80 +15,14 @@ import { s as y, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
|
15
15
|
import _ from "./input.js";
|
|
16
16
|
import d from "./menu.js";
|
|
17
17
|
import L from "./popup.js";
|
|
18
|
-
import
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dropdown::part(popup) {
|
|
27
|
-
z-index: var(--cx-z-index-dropdown);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dropdown[data-current-placement^='top']::part(popup) {
|
|
31
|
-
transform-origin: bottom;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.dropdown[data-current-placement^='bottom']::part(popup) {
|
|
35
|
-
transform-origin: top;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dropdown[data-current-placement^='left']::part(popup) {
|
|
39
|
-
transform-origin: right;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.dropdown[data-current-placement^='right']::part(popup) {
|
|
43
|
-
transform-origin: left;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.dropdown__trigger {
|
|
47
|
-
display: block;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dropdown__panel {
|
|
51
|
-
display: block;
|
|
52
|
-
padding: var(--panel-padding);
|
|
53
|
-
background-color: var(--cx-panel-background-color);
|
|
54
|
-
border: var(--cx-panel-border-width) solid var(--cx-panel-border-color);
|
|
55
|
-
font-family: var(--cx-font-sans);
|
|
56
|
-
font-size: var(--cx-font-size-medium);
|
|
57
|
-
font-weight: var(--cx-font-weight-regular);
|
|
58
|
-
box-shadow: var(--cx-shadow-large);
|
|
59
|
-
border-radius: var(--cx-border-radius-large);
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
max-height: min(
|
|
62
|
-
var(--auto-size-available-height),
|
|
63
|
-
var(--max-height, var(--auto-size-available-height))
|
|
64
|
-
);
|
|
65
|
-
overflow: var(--panel-overflow, auto);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.dropdown--open .dropdown__panel {
|
|
69
|
-
pointer-events: all;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* When users slot a menu, make sure it conforms to the popup's auto-size */
|
|
73
|
-
::slotted(cx-menu) {
|
|
74
|
-
max-width: min(100%, var(--auto-size-available-width)) !important;
|
|
75
|
-
border: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Fix for tooltip of a dropdown trigger.
|
|
80
|
-
* See https://github.com/shoelace-style/shoelace/discussions/1961
|
|
81
|
-
*/
|
|
82
|
-
.dropdown__trigger::slotted(cx-tooltip) {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
}
|
|
85
|
-
`;
|
|
86
|
-
var K = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (e, t, o, a) => {
|
|
87
|
-
for (var r = a > 1 ? void 0 : a ? P(t, o) : t, p = e.length - 1, l; p >= 0; p--)
|
|
88
|
-
(l = e[p]) && (r = (a ? l(t, o, r) : l(r)) || r);
|
|
89
|
-
return a && r && K(t, o, r), r;
|
|
18
|
+
import A from "./textarea.js";
|
|
19
|
+
const S = C`:host{--panel-padding:0px;--panel-overflow:auto;display:inline-block}.dropdown::part(popup){z-index:var(--cx-z-index-dropdown)}.dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}.dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}.dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}.dropdown[data-current-placement^=right]::part(popup){transform-origin:0}.dropdown__trigger{display:block}.dropdown__panel{padding:var(--panel-padding);background-color:var(--cx-panel-background-color);border:var(--cx-panel-border-width) solid var(--cx-panel-border-color);font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);border-radius:var(--cx-border-radius-large);pointer-events:none;max-height:min(var(--auto-size-available-height), var(--max-height,var(--auto-size-available-height)));overflow:var(--panel-overflow,auto);display:block}.dropdown--open .dropdown__panel{pointer-events:all}::slotted(cx-menu){border:none;max-width:min(100%, var(--auto-size-available-width))!important}.dropdown__trigger::slotted(cx-tooltip){display:inline-block}`;
|
|
20
|
+
var K = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (e, t, i, a) => {
|
|
21
|
+
for (var r = a > 1 ? void 0 : a ? P(t, i) : t, p = e.length - 1, l; p >= 0; p--)
|
|
22
|
+
(l = e[p]) && (r = (a ? l(t, i, r) : l(r)) || r);
|
|
23
|
+
return a && r && K(t, i, r), r;
|
|
90
24
|
};
|
|
91
|
-
let
|
|
25
|
+
let o = class extends w {
|
|
92
26
|
constructor() {
|
|
93
27
|
super(), this.localize = new v(this), this.hasSlotController = new k(this, "[default]"), this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
|
|
94
28
|
}
|
|
@@ -125,14 +59,14 @@ let i = class extends w {
|
|
|
125
59
|
})) : (this.show(), this.focusOnTrigger());
|
|
126
60
|
}
|
|
127
61
|
async handleTriggerKeyDown(e) {
|
|
128
|
-
if (this.ignoredKeys.includes(e.key) || [" ", "Enter"].includes(e.key) && e.key === " " && (e.target instanceof _ || e.target instanceof
|
|
62
|
+
if (this.ignoredKeys.includes(e.key) || [" ", "Enter"].includes(e.key) && e.key === " " && (e.target instanceof _ || e.target instanceof A || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement))
|
|
129
63
|
return;
|
|
130
64
|
const t = this.getMenu();
|
|
131
65
|
if (t) {
|
|
132
|
-
const
|
|
66
|
+
const i = t.getAllItems(), a = i[0], r = i.at(-1);
|
|
133
67
|
["ArrowDown", "ArrowUp", "Home", "End", "Enter", " "].includes(
|
|
134
68
|
e.key
|
|
135
|
-
) && (e.preventDefault(), this.open || (this.show(), await this.updateComplete),
|
|
69
|
+
) && (e.preventDefault(), this.open || (this.show(), await this.updateComplete), i.length > 0 && (typeof t.checkVisibility == "function" && !t?.checkVisibility() && await new Promise((p) => {
|
|
136
70
|
this.popup.addEventListener("cx-opened", p);
|
|
137
71
|
}), this.updateComplete.then(() => {
|
|
138
72
|
(e.key === "ArrowDown" || e.key === "Home" || e.key === "Enter" || e.key === " ") && (t.setCurrentItem(a), a.focus()), r && (e.key === "ArrowUp" || e.key === "End") && (t.setCurrentItem(r), r.focus());
|
|
@@ -161,18 +95,18 @@ let i = class extends w {
|
|
|
161
95
|
}).find(
|
|
162
96
|
(a) => f(a).start
|
|
163
97
|
);
|
|
164
|
-
let
|
|
98
|
+
let i;
|
|
165
99
|
if (t) {
|
|
166
100
|
switch (t.tagName.toLowerCase()) {
|
|
167
101
|
// Shoelace buttons have to update the internal button so it's announced correctly by screen readers
|
|
168
102
|
case "cx-button":
|
|
169
103
|
case "cx-icon-button":
|
|
170
|
-
|
|
104
|
+
i = t.button;
|
|
171
105
|
break;
|
|
172
106
|
default:
|
|
173
|
-
|
|
107
|
+
i = t;
|
|
174
108
|
}
|
|
175
|
-
|
|
109
|
+
i.setAttribute("aria-haspopup", "true"), i.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
176
110
|
}
|
|
177
111
|
}
|
|
178
112
|
blurTrigger() {
|
|
@@ -181,18 +115,18 @@ let i = class extends w {
|
|
|
181
115
|
}).find(
|
|
182
116
|
(a) => f(a).start
|
|
183
117
|
);
|
|
184
|
-
let
|
|
118
|
+
let i;
|
|
185
119
|
if (t) {
|
|
186
120
|
switch (t.tagName.toLowerCase()) {
|
|
187
121
|
// Shoelace buttons have to update the internal button so it's announced correctly by screen readers
|
|
188
122
|
case "cx-button":
|
|
189
123
|
case "cx-icon-button":
|
|
190
|
-
|
|
124
|
+
i = t.button;
|
|
191
125
|
break;
|
|
192
126
|
default:
|
|
193
|
-
|
|
127
|
+
i = t;
|
|
194
128
|
}
|
|
195
|
-
|
|
129
|
+
i.blur();
|
|
196
130
|
}
|
|
197
131
|
}
|
|
198
132
|
/** Shows the dropdown panel. */
|
|
@@ -230,103 +164,67 @@ let i = class extends w {
|
|
|
230
164
|
const { keyframes: e, options: t } = g(this, "dropdown.show", {
|
|
231
165
|
dir: this.localize.dir()
|
|
232
166
|
});
|
|
233
|
-
await u(this.popup.popup, e, t), this.emit("cx-after-show"), this.panel.assignedElements().forEach(async (
|
|
234
|
-
|
|
167
|
+
await u(this.popup.popup, e, t), this.emit("cx-after-show"), this.panel.assignedElements().forEach(async (i) => {
|
|
168
|
+
i instanceof d && i.variant === "multiple" && (await i.updateComplete, i.adjustMenuSize(0));
|
|
235
169
|
});
|
|
236
170
|
} else {
|
|
237
171
|
this.emit("cx-hide"), this.removeOpenListeners(), await c(this);
|
|
238
172
|
const { keyframes: e, options: t } = g(this, "dropdown.hide", {
|
|
239
173
|
dir: this.localize.dir()
|
|
240
174
|
});
|
|
241
|
-
await u(this.popup.popup, e, t), this.panel.hidden = !0, this.popup.active = !1, this.emit("cx-after-hide"), this.panel.assignedElements().forEach(async (
|
|
242
|
-
|
|
175
|
+
await u(this.popup.popup, e, t), this.panel.hidden = !0, this.popup.active = !1, this.emit("cx-after-hide"), this.panel.assignedElements().forEach(async (i) => {
|
|
176
|
+
i instanceof d && i.variant === "multiple" && i.resetActiveMenu();
|
|
243
177
|
});
|
|
244
178
|
}
|
|
245
179
|
}
|
|
246
180
|
render() {
|
|
247
|
-
return D
|
|
248
|
-
<cx-popup
|
|
249
|
-
part="base"
|
|
250
|
-
exportparts="popup:base__popup"
|
|
251
|
-
id="dropdown"
|
|
252
|
-
placement=${this.placement}
|
|
253
|
-
distance=${this.distance}
|
|
254
|
-
skidding=${this.skidding}
|
|
255
|
-
strategy=${this.hoist ? "overlay" : "absolute"}
|
|
256
|
-
?flip=${!this.noFlip}
|
|
257
|
-
shift
|
|
258
|
-
auto-size="both"
|
|
259
|
-
auto-size-padding="10"
|
|
260
|
-
flip-padding=${this.flipPadding}
|
|
261
|
-
sync=${O(this.sync ? this.sync : void 0)}
|
|
262
|
-
class=${T({
|
|
181
|
+
return D`<cx-popup part="base" exportparts="popup:base__popup" id="dropdown" placement=${this.placement} distance=${this.distance} skidding=${this.skidding} strategy=${this.hoist ? "overlay" : "absolute"} ?flip=${!this.noFlip} shift auto-size="both" auto-size-padding="10" flip-padding=${this.flipPadding} sync=${O(this.sync ? this.sync : void 0)} class=${T({
|
|
263
182
|
dropdown: !0,
|
|
264
183
|
"dropdown--open": this.open
|
|
265
|
-
})}
|
|
266
|
-
auto-width-factor=${this.autoWidthFactor}
|
|
267
|
-
>
|
|
268
|
-
<slot
|
|
269
|
-
name="trigger"
|
|
270
|
-
slot="anchor"
|
|
271
|
-
part="trigger"
|
|
272
|
-
class="dropdown__trigger"
|
|
273
|
-
@click=${this.handleTriggerClick}
|
|
274
|
-
@keydown=${this.handleTriggerKeyDown}
|
|
275
|
-
@keyup=${this.handleTriggerKeyUp}
|
|
276
|
-
@slotchange=${this.handleTriggerSlotChange}
|
|
277
|
-
></slot>
|
|
278
|
-
|
|
279
|
-
<div
|
|
280
|
-
aria-hidden=${this.open && this.hasSlotController.test("[default]") ? "false" : "true"}
|
|
281
|
-
aria-labelledby="dropdown"
|
|
282
|
-
>
|
|
283
|
-
<slot part="panel" class="dropdown__panel"></slot>
|
|
284
|
-
</div>
|
|
285
|
-
</cx-popup>
|
|
286
|
-
`;
|
|
184
|
+
})} auto-width-factor=${this.autoWidthFactor}><slot name="trigger" slot="anchor" part="trigger" class="dropdown__trigger" @click=${this.handleTriggerClick} @keydown=${this.handleTriggerKeyDown} @keyup=${this.handleTriggerKeyUp} @slotchange=${this.handleTriggerSlotChange}></slot><div aria-hidden=${this.open && this.hasSlotController.test("[default]") ? "false" : "true"} aria-labelledby="dropdown"><slot part="panel" class="dropdown__panel"></slot></div></cx-popup>`;
|
|
287
185
|
}
|
|
288
186
|
};
|
|
289
|
-
|
|
290
|
-
|
|
187
|
+
o.styles = [b, S];
|
|
188
|
+
o.dependencies = { "cx-popup": L };
|
|
291
189
|
n([
|
|
292
190
|
h(".dropdown")
|
|
293
|
-
],
|
|
191
|
+
], o.prototype, "popup", 2);
|
|
294
192
|
n([
|
|
295
193
|
h(".dropdown__trigger")
|
|
296
|
-
],
|
|
194
|
+
], o.prototype, "trigger", 2);
|
|
297
195
|
n([
|
|
298
196
|
h(".dropdown__panel")
|
|
299
|
-
],
|
|
197
|
+
], o.prototype, "panel", 2);
|
|
300
198
|
n([
|
|
301
199
|
s({ reflect: !0, type: Boolean })
|
|
302
|
-
],
|
|
200
|
+
], o.prototype, "open", 2);
|
|
303
201
|
n([
|
|
304
202
|
s({ reflect: !0 })
|
|
305
|
-
],
|
|
203
|
+
], o.prototype, "placement", 2);
|
|
306
204
|
n([
|
|
307
205
|
s({ reflect: !0, type: Boolean })
|
|
308
|
-
],
|
|
206
|
+
], o.prototype, "disabled", 2);
|
|
309
207
|
n([
|
|
310
208
|
s({ attribute: "stay-open-on-select", reflect: !0, type: Boolean })
|
|
311
|
-
],
|
|
209
|
+
], o.prototype, "stayOpenOnSelect", 2);
|
|
312
210
|
n([
|
|
313
211
|
s({ attribute: "containing-element" })
|
|
314
|
-
],
|
|
212
|
+
], o.prototype, "containingElement", 2);
|
|
315
213
|
n([
|
|
316
214
|
s({ type: Number })
|
|
317
|
-
],
|
|
215
|
+
], o.prototype, "distance", 2);
|
|
318
216
|
n([
|
|
319
217
|
s({ type: Number })
|
|
320
|
-
],
|
|
218
|
+
], o.prototype, "skidding", 2);
|
|
321
219
|
n([
|
|
322
220
|
s({ type: Boolean })
|
|
323
|
-
],
|
|
221
|
+
], o.prototype, "hoist", 2);
|
|
324
222
|
n([
|
|
325
223
|
s({ reflect: !0 })
|
|
326
|
-
],
|
|
224
|
+
], o.prototype, "sync", 2);
|
|
327
225
|
n([
|
|
328
226
|
s({ attribute: "auto-width-factor" })
|
|
329
|
-
],
|
|
227
|
+
], o.prototype, "autoWidthFactor", 2);
|
|
330
228
|
n([
|
|
331
229
|
s({
|
|
332
230
|
attribute: "ignored-keys",
|
|
@@ -336,19 +234,19 @@ n([
|
|
|
336
234
|
},
|
|
337
235
|
type: String
|
|
338
236
|
})
|
|
339
|
-
],
|
|
237
|
+
], o.prototype, "ignoredKeys", 2);
|
|
340
238
|
n([
|
|
341
239
|
s({ attribute: "no-flip", reflect: !0, type: Boolean })
|
|
342
|
-
],
|
|
240
|
+
], o.prototype, "noFlip", 2);
|
|
343
241
|
n([
|
|
344
242
|
s({ attribute: "flip-padding", type: Number })
|
|
345
|
-
],
|
|
243
|
+
], o.prototype, "flipPadding", 2);
|
|
346
244
|
n([
|
|
347
245
|
E("open", { waitUntilFirstUpdate: !0 })
|
|
348
|
-
],
|
|
349
|
-
|
|
246
|
+
], o.prototype, "handleOpenChange", 1);
|
|
247
|
+
o = n([
|
|
350
248
|
x("cx-dropdown")
|
|
351
|
-
],
|
|
249
|
+
], o);
|
|
352
250
|
y("dropdown.show", {
|
|
353
251
|
keyframes: [
|
|
354
252
|
{ opacity: 0, scale: 0.9 },
|
|
@@ -364,5 +262,5 @@ y("dropdown.hide", {
|
|
|
364
262
|
options: { duration: 100, easing: "ease" }
|
|
365
263
|
});
|
|
366
264
|
export {
|
|
367
|
-
|
|
265
|
+
o as default
|
|
368
266
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { C as y } from "../chunks/button.
|
|
2
|
-
import b from "
|
|
3
|
-
import { C as l, a as g } from "../chunks/option.
|
|
1
|
+
import { C as y } from "../chunks/button.CauAHfdl.js";
|
|
2
|
+
import { C as b } from "../chunks/icon-button.rKe0N4VB.js";
|
|
3
|
+
import { C as l, a as g } from "../chunks/option.COnEtd3X.js";
|
|
4
4
|
import $ from "./select.js";
|
|
5
5
|
import { n as o, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { d as O } from "../chunks/debounce.DaHuiSGU.js";
|
|
8
|
-
import { L as w } from "../chunks/i18n.
|
|
9
|
-
import { w as f } from "../chunks/watch.
|
|
8
|
+
import { L as w } from "../chunks/i18n.BFqTRDCA.js";
|
|
9
|
+
import { w as f } from "../chunks/watch.BCJD77bD.js";
|
|
10
10
|
import { x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as p } from "../chunks/state.CSDxrqLd.js";
|
|
12
12
|
import { e as C } from "../chunks/query.BBf1UFkC.js";
|
|
13
13
|
import { o as d } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
14
|
import { c as B } from "../chunks/repeat.DbF2p5ae.js";
|
|
15
15
|
import { n as m } from "../chunks/when.Dr1es41R.js";
|
|
16
|
-
import { b as S, a as E } from "../chunks/_baseUniq.
|
|
16
|
+
import { b as S, a as E } from "../chunks/_baseUniq.BUihBa8c.js";
|
|
17
17
|
function T(i, r) {
|
|
18
18
|
return i && i.length ? S(i, E(r)) : [];
|
|
19
19
|
}
|
|
@@ -88,81 +88,16 @@ let t = class extends v {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
const i = this.noDropdown || this.noDropdownOnEmpty && !this.options.length;
|
|
91
|
-
return h
|
|
92
|
-
<cx-select
|
|
93
|
-
?allow-freetext=${this.allowFreetext}
|
|
94
|
-
auto-size-padding=${this.autosizePadding}
|
|
95
|
-
?clearable=${this.clearable}
|
|
96
|
-
data-id=${d(this.dataset.id || void 0)}
|
|
97
|
-
data-label=${d(this.dataset.label || void 0)}
|
|
98
|
-
?disabled=${this.disabled}
|
|
99
|
-
?filled=${this.filled}
|
|
100
|
-
?force-on-change=${this.forceOnChange}
|
|
101
|
-
form=${this.form}
|
|
102
|
-
.syncElement=${this.syncElement}
|
|
103
|
-
?free-width=${this.freeWidth}
|
|
104
|
-
.getOptionValue=${this.getOptionValue}
|
|
105
|
-
.setOptionCurrent=${this.setOptionCurrent}
|
|
106
|
-
.setOptionSelected=${this.setOptionSelected}
|
|
107
|
-
help-text=${this.helpText}
|
|
108
|
-
?hoist=${this.hoist}
|
|
109
|
-
input-behavior=${this.inputBehavior}
|
|
110
|
-
label=${this.label}
|
|
111
|
-
max-options-visible=${this.maxOptionsVisible}
|
|
112
|
-
name=${this.name}
|
|
113
|
-
?multiple=${this.multiple}
|
|
114
|
-
?open=${this.open}
|
|
115
|
-
?pill=${this.pill}
|
|
116
|
-
placeholder=${this.placeholder}
|
|
117
|
-
?required=${this.required}
|
|
118
|
-
size=${this.size}
|
|
119
|
-
?stay-open-on-select=${this.stayOpenOnSelect}
|
|
120
|
-
?no-flip=${this.noFlip}
|
|
121
|
-
?use-tag=${this.useTag}
|
|
122
|
-
value=${this.value}
|
|
123
|
-
@input=${this.useSearchTerm ? this.handleInputChange : void 0}
|
|
124
|
-
?no-reset-current=${this.noResetCurrent}
|
|
125
|
-
?no-select-on-enter=${this.noSelectOnEnter}
|
|
126
|
-
?no-dropdown=${i}
|
|
127
|
-
?loading=${this.loading}
|
|
128
|
-
?allow-default-mouse-down=${this.allowDefaultMouseDown}
|
|
129
|
-
@cx-change=${this.customChangeEvent ? this.handleCustomChange : void 0}
|
|
130
|
-
>
|
|
131
|
-
${m(this.iconName, () => h`<cx-icon-button
|
|
132
|
-
class="icon-button"
|
|
133
|
-
tabindex="-1"
|
|
134
|
-
label=${this.localize.term("search")}
|
|
135
|
-
name=${this.iconName}
|
|
136
|
-
slot="prefix"
|
|
137
|
-
></cx-icon-button>`)}
|
|
91
|
+
return h`<cx-select ?allow-freetext=${this.allowFreetext} auto-size-padding=${this.autosizePadding} ?clearable=${this.clearable} data-id=${d(this.dataset.id || void 0)} data-label=${d(this.dataset.label || void 0)} ?disabled=${this.disabled} ?filled=${this.filled} ?force-on-change=${this.forceOnChange} form=${this.form} .syncElement=${this.syncElement} ?free-width=${this.freeWidth} .getOptionValue=${this.getOptionValue} .setOptionCurrent=${this.setOptionCurrent} .setOptionSelected=${this.setOptionSelected} help-text=${this.helpText} ?hoist=${this.hoist} input-behavior=${this.inputBehavior} label=${this.label} max-options-visible=${this.maxOptionsVisible} name=${this.name} ?multiple=${this.multiple} ?open=${this.open} ?pill=${this.pill} placeholder=${this.placeholder} ?required=${this.required} size=${this.size} ?stay-open-on-select=${this.stayOpenOnSelect} ?no-flip=${this.noFlip} ?use-tag=${this.useTag} value=${this.value} @input=${this.useSearchTerm ? this.handleInputChange : void 0} ?no-reset-current=${this.noResetCurrent} ?no-select-on-enter=${this.noSelectOnEnter} ?no-dropdown=${i} ?loading=${this.loading} ?allow-default-mouse-down=${this.allowDefaultMouseDown} @cx-change=${this.customChangeEvent ? this.handleCustomChange : void 0}>${m(this.iconName, () => h`<cx-icon-button class="icon-button" tabindex="-1" label=${this.localize.term("search")} name=${this.iconName} slot="prefix"></cx-icon-button>`)}
|
|
138
92
|
${B(
|
|
139
93
|
this.options,
|
|
140
94
|
(r) => r.value ?? "",
|
|
141
|
-
(r) => h
|
|
142
|
-
<cx-option
|
|
143
|
-
value=${r.value ?? ""}
|
|
144
|
-
?disabled=${r.disabled}
|
|
145
|
-
show-check
|
|
146
|
-
check-placement=${g.Right}
|
|
147
|
-
>
|
|
148
|
-
${r.label ?? r.value ?? ""}
|
|
149
|
-
</cx-option>
|
|
150
|
-
`
|
|
95
|
+
(r) => h`<cx-option value=${r.value ?? ""} ?disabled=${r.disabled} show-check check-placement=${g.Right}>${r.label ?? r.value ?? ""}</cx-option>`
|
|
151
96
|
)}
|
|
152
97
|
${m(
|
|
153
98
|
this.hasMore,
|
|
154
|
-
() => h`<cx-option value="load-more" class="tree-item__actions"
|
|
155
|
-
|
|
156
|
-
variant="text"
|
|
157
|
-
?loading=${this.loading}
|
|
158
|
-
@click=${this.handleLoadMore}
|
|
159
|
-
>
|
|
160
|
-
${this.localize.term("more")}
|
|
161
|
-
</cx-button>
|
|
162
|
-
</cx-option>`
|
|
163
|
-
)}
|
|
164
|
-
</cx-select>
|
|
165
|
-
`;
|
|
99
|
+
() => h`<cx-option value="load-more" class="tree-item__actions"><cx-button variant="text" ?loading=${this.loading} @click=${this.handleLoadMore}>${this.localize.term("more")}</cx-button></cx-option>`
|
|
100
|
+
)}</cx-select>`;
|
|
166
101
|
}
|
|
167
102
|
};
|
|
168
103
|
t.dependencies = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import IP from "./resize-observer.js";
|
|
2
2
|
import EP from "./spinner.js";
|
|
3
3
|
import { n as lm, C as PP } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
|
-
import { c as NP } from "../chunks/component.styles.
|
|
4
|
+
import { c as NP } from "../chunks/component.styles.CRO4Odto.js";
|
|
5
5
|
import { c as RP } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as kP } from "../chunks/i18n.
|
|
7
|
-
import { w as OP } from "../chunks/watch.
|
|
6
|
+
import { L as kP } from "../chunks/i18n.BFqTRDCA.js";
|
|
7
|
+
import { w as OP } from "../chunks/watch.BCJD77bD.js";
|
|
8
8
|
import { i as VP, x as A_ } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { e as BP } from "../chunks/query.BBf1UFkC.js";
|
|
10
10
|
import { e as zP } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -47589,38 +47589,7 @@ _t(PG);
|
|
|
47589
47589
|
_t(Tq);
|
|
47590
47590
|
_t(Cq);
|
|
47591
47591
|
_t(hH);
|
|
47592
|
-
const Mq = VP
|
|
47593
|
-
:host {
|
|
47594
|
-
display: block;
|
|
47595
|
-
height: 100%;
|
|
47596
|
-
width: 100%;
|
|
47597
|
-
}
|
|
47598
|
-
|
|
47599
|
-
.e-chart {
|
|
47600
|
-
height: 100%;
|
|
47601
|
-
}
|
|
47602
|
-
|
|
47603
|
-
.e-chart--loading {
|
|
47604
|
-
opacity: 0;
|
|
47605
|
-
visibility: hidden;
|
|
47606
|
-
}
|
|
47607
|
-
|
|
47608
|
-
.e-chart-loading {
|
|
47609
|
-
display: flex;
|
|
47610
|
-
align-items: center;
|
|
47611
|
-
justify-content: center;
|
|
47612
|
-
position: absolute;
|
|
47613
|
-
top: 0;
|
|
47614
|
-
left: 0;
|
|
47615
|
-
width: 100%;
|
|
47616
|
-
height: 100%;
|
|
47617
|
-
z-index: 1;
|
|
47618
|
-
}
|
|
47619
|
-
|
|
47620
|
-
.e-chart__spinner {
|
|
47621
|
-
font-size: var(--cx-font-size-2x-large);
|
|
47622
|
-
}
|
|
47623
|
-
`;
|
|
47592
|
+
const Mq = VP`:host{width:100%;height:100%;display:block}.e-chart{height:100%}.e-chart--loading{opacity:0;visibility:hidden}.e-chart-loading{z-index:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.e-chart__spinner{font-size:var(--cx-font-size-2x-large)}`;
|
|
47624
47593
|
function dl(r) {
|
|
47625
47594
|
if (typeof r == "number" && !Number.isNaN(r))
|
|
47626
47595
|
return r;
|
|
@@ -47858,25 +47827,13 @@ let Ja = class extends PP {
|
|
|
47858
47827
|
});
|
|
47859
47828
|
}
|
|
47860
47829
|
render() {
|
|
47861
|
-
return A_
|
|
47862
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
47863
|
-
${GP(
|
|
47830
|
+
return A_`<cx-resize-observer @cx-resize=${this.handleResize}>${GP(
|
|
47864
47831
|
this.loading,
|
|
47865
|
-
() => A_
|
|
47866
|
-
|
|
47867
|
-
<cx-spinner class="e-chart__spinner"></cx-spinner>
|
|
47868
|
-
</div>
|
|
47869
|
-
`
|
|
47870
|
-
)}
|
|
47871
|
-
<div
|
|
47872
|
-
class=${zP({
|
|
47832
|
+
() => A_`<div class="e-chart-loading"><cx-spinner class="e-chart__spinner"></cx-spinner></div>`
|
|
47833
|
+
)}<div class=${zP({
|
|
47873
47834
|
"e-chart": !0,
|
|
47874
47835
|
"e-chart--loading": this.loading ?? !1
|
|
47875
|
-
})}
|
|
47876
|
-
part="base"
|
|
47877
|
-
></div>
|
|
47878
|
-
</cx-resize-observer>
|
|
47879
|
-
`;
|
|
47836
|
+
})} part="base"></div></cx-resize-observer>`;
|
|
47880
47837
|
}
|
|
47881
47838
|
};
|
|
47882
47839
|
_r = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,72 +1,17 @@
|
|
|
1
1
|
import { n as a, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as w } from "../chunks/component.styles.
|
|
2
|
+
import { c as w } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as d, a as c, b as m } from "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { w as u } from "../chunks/event.mFzZi4sr.js";
|
|
6
|
-
import { L as v } from "../chunks/i18n.
|
|
7
|
-
import { w as y } from "../chunks/watch.
|
|
6
|
+
import { L as v } from "../chunks/i18n.BFqTRDCA.js";
|
|
7
|
+
import { w as y } from "../chunks/watch.BCJD77bD.js";
|
|
8
8
|
import { i as C, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { r as k } from "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import { e as E } from "../chunks/query.BBf1UFkC.js";
|
|
11
11
|
import { e as H } from "../chunks/class-map.BiVq-cVR.js";
|
|
12
12
|
import { a as p, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
13
|
-
import { C as B } from "../chunks/button.
|
|
14
|
-
const T = C
|
|
15
|
-
:host {
|
|
16
|
-
display: block;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
--toggler-color: var(--cx-color-primary);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.element-clamp {
|
|
22
|
-
overflow-anchor: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.element-clamp--disabled {
|
|
26
|
-
opacity: 0.5;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.element-clamp-icon {
|
|
30
|
-
flex: 0 0 auto;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
transition: var(--cx-transition-medium) rotate ease;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.details--open .element-clamp-icon {
|
|
37
|
-
rotate: 90deg;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.details--open.details--rtl .element-clamp-icon {
|
|
41
|
-
rotate: -90deg;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.element-clamp--open slot[name='expand-icon'],
|
|
45
|
-
.element-clamp:not(.element-clamp--open) slot[name='collapse-icon'] {
|
|
46
|
-
display: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.element-clamp__content {
|
|
50
|
-
display: block;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.toggler {
|
|
55
|
-
display: block;
|
|
56
|
-
margin-top: var(--cx-spacing-2x-small);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.toggler::part(base) {
|
|
60
|
-
color: var(--toggler-color);
|
|
61
|
-
font-weight: var(--cx-font-weight-medium);
|
|
62
|
-
text-transform: none;
|
|
63
|
-
width: auto;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.toggler::part(label) {
|
|
67
|
-
padding-left: 0;
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
13
|
+
import { C as B } from "../chunks/button.CauAHfdl.js";
|
|
14
|
+
const T = C`:host{--toggler-color:var(--cx-color-primary);display:block;overflow:hidden}.element-clamp{overflow-anchor:none}.element-clamp--disabled{opacity:.5}.element-clamp-icon{transition:var(--cx-transition-medium) rotate ease;flex:none;align-items:center;display:flex}.details--open .element-clamp-icon{rotate:90deg}.details--open.details--rtl .element-clamp-icon{rotate:-90deg}.element-clamp--open slot[name=expand-icon],.element-clamp:not(.element-clamp--open) slot[name=collapse-icon]{display:none}.element-clamp__content{display:block;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`;
|
|
70
15
|
var z = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (e, t, i, r) => {
|
|
71
16
|
for (var s = r > 1 ? void 0 : r ? O(t, i) : t, h = e.length - 1, l; h >= 0; h--)
|
|
72
17
|
(l = e[h]) && (s = (r ? l(t, i, s) : l(s)) || s);
|
|
@@ -186,30 +131,12 @@ let o = class extends b {
|
|
|
186
131
|
}
|
|
187
132
|
render() {
|
|
188
133
|
const e = this.localize.dir() === "rtl", t = this.open ? this.showLessText : this.showMoreText;
|
|
189
|
-
return f
|
|
190
|
-
<div
|
|
191
|
-
part="base"
|
|
192
|
-
class=${H({
|
|
134
|
+
return f`<div part="base" class=${H({
|
|
193
135
|
"element-clamp": !0,
|
|
194
136
|
"element-clamp--disabled": this.disabled,
|
|
195
137
|
"element-clamp--open": this.open,
|
|
196
138
|
"element-clamp--rtl": e
|
|
197
|
-
})}
|
|
198
|
-
@click=${this.showMore ? void 0 : this.handleClick}
|
|
199
|
-
>
|
|
200
|
-
<slot part="content" id="content" class="element-clamp__content"></slot>
|
|
201
|
-
${this.showButton ? f`<cx-button
|
|
202
|
-
part="toggler"
|
|
203
|
-
size="small"
|
|
204
|
-
variant="text"
|
|
205
|
-
class="toggler"
|
|
206
|
-
title=""
|
|
207
|
-
@click=${this.handleClick}
|
|
208
|
-
>
|
|
209
|
-
${t}
|
|
210
|
-
</cx-button>` : ""}
|
|
211
|
-
</div>
|
|
212
|
-
`;
|
|
139
|
+
})} @click=${this.showMore ? void 0 : this.handleClick}><slot part="content" id="content" class="element-clamp__content"></slot>${this.showButton ? f`<cx-button part="toggler" size="small" variant="text" class="toggler" @click=${this.handleClick}>${t}</cx-button>` : ""}</div>`;
|
|
213
140
|
}
|
|
214
141
|
};
|
|
215
142
|
o.styles = [w, T];
|