@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,187 +1,21 @@
|
|
|
1
1
|
import b from "./divider.js";
|
|
2
2
|
import v from "./icon.js";
|
|
3
|
-
import u from "
|
|
3
|
+
import { C as u } from "../chunks/icon-button.rKe0N4VB.js";
|
|
4
4
|
import _ from "./resize-observer.js";
|
|
5
|
-
import { n, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { c as f } from "../chunks/component.styles.
|
|
5
|
+
import { n as d, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
+
import { c as f } from "../chunks/component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
8
|
import { d as y } from "../chunks/drag.DXEXVXPv.js";
|
|
9
9
|
import { H as C } from "../chunks/slot.j5oheLJC.js";
|
|
10
|
-
import { w as g } from "../chunks/watch.
|
|
10
|
+
import { w as g } from "../chunks/watch.BCJD77bD.js";
|
|
11
11
|
import { i as z, E as h, x as l } from "../chunks/lit-element.jLBm65_O.js";
|
|
12
12
|
import { r as w } from "../chunks/state.CSDxrqLd.js";
|
|
13
13
|
import { e as $ } from "../chunks/query.BBf1UFkC.js";
|
|
14
14
|
import { e as p } from "../chunks/class-map.BiVq-cVR.js";
|
|
15
|
-
const k = z
|
|
16
|
-
|
|
17
|
-
:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
--_background-color: var(--background-color, var(--cx-color-neutral-0));
|
|
21
|
-
--_hint-color: var(--hint-color, var(--cx-color-primary-300));
|
|
22
|
-
--closed-width: 0px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Layout containers */
|
|
26
|
-
.sidebar {
|
|
27
|
-
display: grid;
|
|
28
|
-
grid-template-areas: 'main';
|
|
29
|
-
position: relative;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.sidebar,
|
|
33
|
-
.group--opened,
|
|
34
|
-
.group--closed,
|
|
35
|
-
.group_content,
|
|
36
|
-
.open_trigger {
|
|
37
|
-
height: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.group--opened,
|
|
41
|
-
.group--closed {
|
|
42
|
-
grid-area: main;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Content sections */
|
|
46
|
-
.sidebar__header {
|
|
47
|
-
padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
|
|
48
|
-
position: relative;
|
|
49
|
-
}
|
|
50
|
-
.sidebar--no-header .sidebar__header {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.content {
|
|
55
|
-
padding: var(--cx-spacing-small);
|
|
56
|
-
padding-bottom: var(--cx-spacing-small);
|
|
57
|
-
flex-grow: 1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Dividers */
|
|
61
|
-
.sidebar__divider {
|
|
62
|
-
--spacing: 6px;
|
|
63
|
-
position: absolute;
|
|
64
|
-
top: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.sidebar__divider:hover {
|
|
68
|
-
--color: var(--_hint-color);
|
|
69
|
-
cursor: col-resize;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Disable resize interaction when not resizable */
|
|
73
|
-
.sidebar--not-resizable .sidebar__divider {
|
|
74
|
-
cursor: default;
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.sidebar--not-resizable .sidebar__divider:hover {
|
|
79
|
-
--color: inherit;
|
|
80
|
-
cursor: default;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.sidebar--left .sidebar__divider {
|
|
84
|
-
right: calc(0px - var(--spacing));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.sidebar--right .sidebar__divider {
|
|
88
|
-
left: calc(0px - var(--spacing));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* Trigger elements */
|
|
92
|
-
.close_trigger {
|
|
93
|
-
visibility: hidden;
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: max(calc(var(--header-height) / 2), 32px);
|
|
96
|
-
transform: translateY(-50%);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.close_trigger > cx-icon-button::part(base) {
|
|
100
|
-
background-color: var(--cx-color-neutral-0);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.sidebar--left .close_trigger {
|
|
104
|
-
right: 0;
|
|
105
|
-
transform: translate(50%, -50%);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.sidebar--right .close_trigger {
|
|
109
|
-
left: 0;
|
|
110
|
-
transform: translate(-50%, -50%);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.sidebar--opened:hover .close_trigger {
|
|
114
|
-
visibility: visible;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.open_trigger {
|
|
118
|
-
padding: var(--cx-spacing-medium);
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
background-color: var(--_background-color);
|
|
121
|
-
position: relative;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.open_trigger_hint {
|
|
125
|
-
--spacing: 0;
|
|
126
|
-
position: absolute;
|
|
127
|
-
top: 0;
|
|
128
|
-
right: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.open_trigger:hover .open_trigger_hint {
|
|
132
|
-
--color: var(--_hint-color);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/* Group containers */
|
|
136
|
-
.group_container {
|
|
137
|
-
overflow-x: clip;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.group--opened,
|
|
141
|
-
.group--closed {
|
|
142
|
-
display: flex;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.group--closed {
|
|
147
|
-
width: var(--closed-width);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.group_content {
|
|
151
|
-
background-color: var(--_background-color);
|
|
152
|
-
contain: inline-size;
|
|
153
|
-
overflow-x: clip;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.group--opened .group_content {
|
|
157
|
-
width: var(--size);
|
|
158
|
-
min-width: var(--min-width);
|
|
159
|
-
max-width: var(--max-width);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* State-based visibility */
|
|
163
|
-
.sidebar--opened .group--opened {
|
|
164
|
-
visibility: visible;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.sidebar--opened .group--closed {
|
|
168
|
-
visibility: hidden;
|
|
169
|
-
width: 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.sidebar:not(.sidebar--opened) .group--closed {
|
|
173
|
-
visibility: visible;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.sidebar:not(.sidebar--opened) .group--opened {
|
|
177
|
-
contain: inline-size;
|
|
178
|
-
visibility: hidden;
|
|
179
|
-
width: 0;
|
|
180
|
-
}
|
|
181
|
-
`;
|
|
182
|
-
var S = Object.defineProperty, D = Object.getOwnPropertyDescriptor, r = (e, o, t, a) => {
|
|
183
|
-
for (var s = a > 1 ? void 0 : a ? D(o, t) : o, d = e.length - 1, c; d >= 0; d--)
|
|
184
|
-
(c = e[d]) && (s = (a ? c(o, t, s) : c(s)) || s);
|
|
15
|
+
const k = z`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--closed-width:0px;display:block}.sidebar{grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--cx-spacing-medium);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow-x:clip}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}`;
|
|
16
|
+
var S = Object.defineProperty, B = Object.getOwnPropertyDescriptor, r = (e, o, t, a) => {
|
|
17
|
+
for (var s = a > 1 ? void 0 : a ? B(o, t) : o, n = e.length - 1, c; n >= 0; n--)
|
|
18
|
+
(c = e[n]) && (s = (a ? c(o, t, s) : c(s)) || s);
|
|
185
19
|
return a && s && S(o, t, s), s;
|
|
186
20
|
};
|
|
187
21
|
let i = class extends m {
|
|
@@ -232,57 +66,17 @@ let i = class extends m {
|
|
|
232
66
|
}
|
|
233
67
|
render() {
|
|
234
68
|
const e = this.hasSlotController.test("header");
|
|
235
|
-
return l`<div
|
|
236
|
-
part="base"
|
|
237
|
-
class=${p({
|
|
69
|
+
return l`<div part="base" class=${p({
|
|
238
70
|
sidebar: !0,
|
|
239
71
|
"sidebar--left": this.side === "left",
|
|
240
72
|
"sidebar--no-header": !e,
|
|
241
73
|
"sidebar--not-resizable": !this.resizable,
|
|
242
74
|
"sidebar--opened": this.open,
|
|
243
75
|
"sidebar--right": this.side === "right"
|
|
244
|
-
})}
|
|
245
|
-
>
|
|
246
|
-
<div class=${p({
|
|
76
|
+
})}><div class=${p({
|
|
247
77
|
"group--closed": !this.open,
|
|
248
78
|
"group--opened": this.open
|
|
249
|
-
})}
|
|
250
|
-
<div class="group_content">
|
|
251
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
252
|
-
<div part="header" class="sidebar__header">
|
|
253
|
-
<slot name="header"></slot>
|
|
254
|
-
</div>
|
|
255
|
-
</cx-resize-observer>
|
|
256
|
-
${e ? l`<cx-divider style="--spacing:0"></cx-divider>` : h}
|
|
257
|
-
<div part="content" class="content"><slot></slot></div>
|
|
258
|
-
</div>
|
|
259
|
-
<cx-divider
|
|
260
|
-
class="sidebar__divider"
|
|
261
|
-
vertical
|
|
262
|
-
@mousedown=${this.handleDrag}
|
|
263
|
-
@touchstart=${this.handleDrag}
|
|
264
|
-
></cx-divider>
|
|
265
|
-
${this.collapsible ? l`<div class="close_trigger" @click=${this.handleCloseTriggerClick}>
|
|
266
|
-
<cx-icon-button
|
|
267
|
-
outline
|
|
268
|
-
size="small"
|
|
269
|
-
name=${this.side === "right" ? "keyboard_double_arrow_right" : "keyboard_double_arrow_left"}
|
|
270
|
-
></cx-icon-button>
|
|
271
|
-
</div>` : h}
|
|
272
|
-
</div>
|
|
273
|
-
${this.collapsible ? l`<div class="group--closed">
|
|
274
|
-
<div class="group_content">
|
|
275
|
-
<div class="open_trigger" @click=${this.handleOpenTriggerClick}>
|
|
276
|
-
<slot name="open_trigger">
|
|
277
|
-
<cx-icon
|
|
278
|
-
name=${this.side === "right" ? "keyboard_double_arrow_left" : "keyboard_double_arrow_right"}
|
|
279
|
-
></cx-icon>
|
|
280
|
-
</slot>
|
|
281
|
-
<cx-divider class="open_trigger_hint" vertical></cx-divider>
|
|
282
|
-
</div>
|
|
283
|
-
</div>
|
|
284
|
-
</div>` : h}
|
|
285
|
-
</div>`;
|
|
79
|
+
})}><div class="group_content"><cx-resize-observer @cx-resize=${this.handleResize}><div part="header" class="sidebar__header"><slot name="header"></slot></div></cx-resize-observer>${e ? l`<cx-divider style="--spacing:0"></cx-divider>` : h}<div part="content" class="content"><slot></slot></div></div><cx-divider class="sidebar__divider" vertical @mousedown=${this.handleDrag} @touchstart=${this.handleDrag}></cx-divider>${this.collapsible ? l`<div class="close_trigger" @click=${this.handleCloseTriggerClick}><cx-icon-button outline size="small" name=${this.side === "right" ? "keyboard_double_arrow_right" : "keyboard_double_arrow_left"}></cx-icon-button></div>` : h}</div>${this.collapsible ? l`<div class="group--closed"><div class="group_content"><div class="open_trigger" @click=${this.handleOpenTriggerClick}><slot name="open_trigger"><cx-icon name=${this.side === "right" ? "keyboard_double_arrow_left" : "keyboard_double_arrow_right"}></cx-icon></slot><cx-divider class="open_trigger_hint" vertical></cx-divider></div></div></div>` : h}</div>`;
|
|
286
80
|
}
|
|
287
81
|
};
|
|
288
82
|
i.styles = [f, k];
|
|
@@ -296,16 +90,16 @@ r([
|
|
|
296
90
|
$(".sidebar__header")
|
|
297
91
|
], i.prototype, "header", 2);
|
|
298
92
|
r([
|
|
299
|
-
|
|
93
|
+
d({ reflect: !0 })
|
|
300
94
|
], i.prototype, "side", 2);
|
|
301
95
|
r([
|
|
302
|
-
|
|
96
|
+
d({ reflect: !0, type: Boolean })
|
|
303
97
|
], i.prototype, "open", 2);
|
|
304
98
|
r([
|
|
305
|
-
|
|
99
|
+
d({ reflect: !0, type: Boolean })
|
|
306
100
|
], i.prototype, "collapsible", 2);
|
|
307
101
|
r([
|
|
308
|
-
|
|
102
|
+
d({ reflect: !0, type: Boolean })
|
|
309
103
|
], i.prototype, "resizable", 2);
|
|
310
104
|
r([
|
|
311
105
|
w()
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import x from "
|
|
1
|
+
import { C as x } from "../chunks/icon-button.rKe0N4VB.js";
|
|
2
2
|
import d from "./input.js";
|
|
3
3
|
import g from "./select.js";
|
|
4
4
|
import v from "./space.js";
|
|
5
5
|
import k from "./tooltip.js";
|
|
6
6
|
import { n as u, C as P } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
7
|
-
import { c as $ } from "../chunks/component.styles.
|
|
7
|
+
import { c as $ } from "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import { d as _ } from "../chunks/default-value.COZopaet.js";
|
|
10
|
-
import { L as y } from "../chunks/i18n.
|
|
11
|
-
import { w as V } from "../chunks/watch.
|
|
10
|
+
import { L as y } from "../chunks/i18n.BFqTRDCA.js";
|
|
11
|
+
import { w as V } from "../chunks/watch.BCJD77bD.js";
|
|
12
12
|
import { i as w, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
13
13
|
import { r as c } from "../chunks/state.CSDxrqLd.js";
|
|
14
14
|
import { e as m } from "../chunks/query.BBf1UFkC.js";
|
|
15
15
|
import { n as f } from "../chunks/when.Dr1es41R.js";
|
|
16
16
|
var i = /* @__PURE__ */ ((t) => (t.Percentage = "percentage", t.Pixel = "pixel", t))(i || {});
|
|
17
|
-
const z = w
|
|
18
|
-
:host {
|
|
19
|
-
display: block;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.size-input-group__width,
|
|
24
|
-
.size-input-group__height {
|
|
25
|
-
flex: 1;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
17
|
+
const z = w`:host{width:100%;display:block}.size-input-group__width,.size-input-group__height{flex:1}`;
|
|
28
18
|
var C = Object.defineProperty, R = Object.getOwnPropertyDescriptor, s = (t, e, r, n) => {
|
|
29
19
|
for (var l = n > 1 ? void 0 : n ? R(e, r) : e, o = t.length - 1, p; o >= 0; o--)
|
|
30
20
|
(p = t[o]) && (l = (n ? p(e, r, l) : p(l)) || l);
|
|
@@ -70,19 +60,7 @@ let a = class extends P {
|
|
|
70
60
|
}
|
|
71
61
|
render() {
|
|
72
62
|
let t = this.value[0], e = this.value[1];
|
|
73
|
-
return this.useMask || (t = Number.isNaN(parseFloat(this.value[0])) ? "" : String(parseFloat(this.value[0])), e = Number.isNaN(parseFloat(this.value[1])) ? "" : String(parseFloat(this.value[1]))), h`<cx-space
|
|
74
|
-
spacing="x-small"
|
|
75
|
-
align-items="center"
|
|
76
|
-
wrap="nowrap"
|
|
77
|
-
class="size-input-group"
|
|
78
|
-
>
|
|
79
|
-
<cx-input
|
|
80
|
-
part="width"
|
|
81
|
-
class="size-input-group__width"
|
|
82
|
-
value=${t}
|
|
83
|
-
label=${this.localize.term("width")}
|
|
84
|
-
mask=${this.mask}
|
|
85
|
-
.maskBlocks=${{
|
|
63
|
+
return this.useMask || (t = Number.isNaN(parseFloat(this.value[0])) ? "" : String(parseFloat(this.value[0])), e = Number.isNaN(parseFloat(this.value[1])) ? "" : String(parseFloat(this.value[1]))), h`<cx-space spacing="x-small" align-items="center" wrap="nowrap" class="size-input-group"><cx-input part="width" class="size-input-group__width" value=${t} label=${this.localize.term("width")} mask=${this.mask} .maskBlocks=${{
|
|
86
64
|
num: {
|
|
87
65
|
mask: Number,
|
|
88
66
|
max: this.unit === i.Percentage ? 100 : void 0,
|
|
@@ -90,35 +68,10 @@ let a = class extends P {
|
|
|
90
68
|
scale: 0,
|
|
91
69
|
thousandsSeparator: ""
|
|
92
70
|
}
|
|
93
|
-
}}
|
|
94
|
-
.form=${this.closest("form")}
|
|
95
|
-
@cx-change=${this.handleInputChange}
|
|
96
|
-
@cx-input=${this.handleWidthInput}
|
|
97
|
-
></cx-input>
|
|
98
|
-
${f(
|
|
71
|
+
}} .form=${this.closest("form")} @cx-change=${this.handleInputChange} @cx-input=${this.handleWidthInput}></cx-input>${f(
|
|
99
72
|
this.unit === i.Pixel && this.canSetAspectRatio,
|
|
100
|
-
() => h
|
|
101
|
-
|
|
102
|
-
part="keep-aspect-ratio"
|
|
103
|
-
class="size-input-group__keep-aspect-ratio"
|
|
104
|
-
name=${this.keepRatio ? "insert_link" : "link_off"}
|
|
105
|
-
title=${this.localize.term("keepAspectRatio")}
|
|
106
|
-
@click=${this.handleKeepRatioClick}
|
|
107
|
-
></cx-icon-button>
|
|
108
|
-
`
|
|
109
|
-
)}
|
|
110
|
-
<cx-tooltip
|
|
111
|
-
content=${this.localize.term("disabledHeightInputHelpText")}
|
|
112
|
-
?disabled=${this.unit === i.Pixel}
|
|
113
|
-
>
|
|
114
|
-
<cx-input
|
|
115
|
-
part="height"
|
|
116
|
-
class="size-input-group__height"
|
|
117
|
-
value=${e}
|
|
118
|
-
label=${this.localize.term("height")}
|
|
119
|
-
?disabled=${this.unit === i.Percentage}
|
|
120
|
-
mask=${this.mask}
|
|
121
|
-
.maskBlocks=${{
|
|
73
|
+
() => h`<cx-icon-button part="keep-aspect-ratio" class="size-input-group__keep-aspect-ratio" name=${this.keepRatio ? "insert_link" : "link_off"} title=${this.localize.term("keepAspectRatio")} @click=${this.handleKeepRatioClick}></cx-icon-button>`
|
|
74
|
+
)}<cx-tooltip content=${this.localize.term("disabledHeightInputHelpText")} ?disabled=${this.unit === i.Pixel}><cx-input part="height" class="size-input-group__height" value=${e} label=${this.localize.term("height")} ?disabled=${this.unit === i.Percentage} mask=${this.mask} .maskBlocks=${{
|
|
122
75
|
num: {
|
|
123
76
|
mask: Number,
|
|
124
77
|
max: this.unit === i.Percentage ? 100 : void 0,
|
|
@@ -126,28 +79,10 @@ let a = class extends P {
|
|
|
126
79
|
scale: 0,
|
|
127
80
|
thousandsSeparator: ""
|
|
128
81
|
}
|
|
129
|
-
}}
|
|
130
|
-
.form=${this.closest("form")}
|
|
131
|
-
@cx-input=${this.handleHeightInput}
|
|
132
|
-
></cx-input>
|
|
133
|
-
</cx-tooltip>
|
|
134
|
-
${f(
|
|
82
|
+
}} .form=${this.closest("form")} @cx-input=${this.handleHeightInput}></cx-input></cx-tooltip>${f(
|
|
135
83
|
this.canSetUnit,
|
|
136
|
-
() => h
|
|
137
|
-
|
|
138
|
-
part="unit"
|
|
139
|
-
class="size-input-group__unit"
|
|
140
|
-
label=${this.localize.term("unit")}
|
|
141
|
-
value=${this.unit}
|
|
142
|
-
.form=${this.closest("form")}
|
|
143
|
-
@cx-change=${this.handleUnitChange}
|
|
144
|
-
>
|
|
145
|
-
<cx-option value=${i.Pixel}>px</cx-option>
|
|
146
|
-
<cx-option value=${i.Percentage}>%</cx-option>
|
|
147
|
-
</cx-select>
|
|
148
|
-
`
|
|
149
|
-
)}
|
|
150
|
-
</cx-space>`;
|
|
84
|
+
() => h`<cx-select part="unit" class="size-input-group__unit" label=${this.localize.term("unit")} value=${this.unit} .form=${this.closest("form")} @cx-change=${this.handleUnitChange}><cx-option value=${i.Pixel}>px</cx-option><cx-option value=${i.Percentage}>%</cx-option></cx-select>`
|
|
85
|
+
)}</cx-space>`;
|
|
151
86
|
}
|
|
152
87
|
};
|
|
153
88
|
a.styles = [$, z];
|
|
@@ -1,100 +1,27 @@
|
|
|
1
|
-
import { n as c, C as
|
|
2
|
-
import { c as
|
|
1
|
+
import { n as c, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as d } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as f, x as m } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
5
|
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
6
|
-
const h = f
|
|
7
|
-
:host {
|
|
8
|
-
--border-radius: var(--cx-border-radius-pill);
|
|
9
|
-
--color: var(--cx-color-neutral-200);
|
|
10
|
-
--sheen-color: var(--cx-color-neutral-300);
|
|
11
|
-
|
|
12
|
-
display: block;
|
|
13
|
-
position: relative;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.skeleton {
|
|
17
|
-
display: flex;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
min-height: 1rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.skeleton__indicator {
|
|
24
|
-
flex: 1 1 auto;
|
|
25
|
-
background: var(--color);
|
|
26
|
-
border-radius: var(--border-radius);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.skeleton--sheen .skeleton__indicator {
|
|
30
|
-
background: linear-gradient(
|
|
31
|
-
270deg,
|
|
32
|
-
var(--sheen-color),
|
|
33
|
-
var(--color),
|
|
34
|
-
var(--color),
|
|
35
|
-
var(--sheen-color)
|
|
36
|
-
);
|
|
37
|
-
background-size: 400% 100%;
|
|
38
|
-
animation: sheen 8s ease-in-out infinite;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.skeleton--pulse .skeleton__indicator {
|
|
42
|
-
animation: pulse 2s ease-in-out 0.5s infinite;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Forced colors mode */
|
|
46
|
-
@media (forced-colors: active) {
|
|
47
|
-
:host {
|
|
48
|
-
--color: GrayText;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes sheen {
|
|
53
|
-
0% {
|
|
54
|
-
background-position: 200% 0;
|
|
55
|
-
}
|
|
56
|
-
to {
|
|
57
|
-
background-position: -200% 0;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@keyframes pulse {
|
|
62
|
-
0% {
|
|
63
|
-
opacity: 1;
|
|
64
|
-
}
|
|
65
|
-
50% {
|
|
66
|
-
opacity: 0.4;
|
|
67
|
-
}
|
|
68
|
-
100% {
|
|
69
|
-
opacity: 1;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
6
|
+
const h = f`:host{--border-radius:var(--cx-border-radius-pill);--color:var(--cx-color-neutral-200);--sheen-color:var(--cx-color-neutral-300);display:block;position:relative}.skeleton{width:100%;height:100%;min-height:1rem;display:flex}.skeleton__indicator{background:var(--color);border-radius:var(--border-radius);flex:auto}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;animation:8s ease-in-out infinite sheen}.skeleton--pulse .skeleton__indicator{animation:2s ease-in-out .5s infinite pulse}@media (forced-colors:active){:host{--color:GrayText}}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}`;
|
|
73
7
|
var k = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, l = (a, o, s, r) => {
|
|
74
8
|
for (var e = r > 1 ? void 0 : r ? _(o, s) : o, n = a.length - 1, i; n >= 0; n--)
|
|
75
9
|
(i = a[n]) && (e = (r ? i(o, s, e) : i(e)) || e);
|
|
76
10
|
return r && e && k(o, s, e), e;
|
|
77
11
|
};
|
|
78
|
-
let t = class extends
|
|
12
|
+
let t = class extends p {
|
|
79
13
|
constructor() {
|
|
80
14
|
super(...arguments), this.effect = "none";
|
|
81
15
|
}
|
|
82
16
|
render() {
|
|
83
|
-
return m
|
|
84
|
-
<div
|
|
85
|
-
part="base"
|
|
86
|
-
class=${v({
|
|
17
|
+
return m`<div part="base" class=${v({
|
|
87
18
|
skeleton: !0,
|
|
88
19
|
"skeleton--pulse": this.effect === "pulse",
|
|
89
20
|
"skeleton--sheen": this.effect === "sheen"
|
|
90
|
-
})}
|
|
91
|
-
>
|
|
92
|
-
<div part="indicator" class="skeleton__indicator"></div>
|
|
93
|
-
</div>
|
|
94
|
-
`;
|
|
21
|
+
})}><div part="indicator" class="skeleton__indicator"></div></div>`;
|
|
95
22
|
}
|
|
96
23
|
};
|
|
97
|
-
t.styles = [
|
|
24
|
+
t.styles = [d, h];
|
|
98
25
|
l([
|
|
99
26
|
c()
|
|
100
27
|
], t.prototype, "effect", 2);
|
|
@@ -1,149 +1,12 @@
|
|
|
1
1
|
import { n as a, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as l } from "../chunks/component.styles.
|
|
2
|
+
import { c as l } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as f, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
-
const u = f
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
align-items: var(--spacing-container-align-items, normal);
|
|
11
|
-
flex-wrap: var(--spacing-container-wrap, nowrap);
|
|
12
|
-
justify-content: var(--spacing-container-justify-content, normal);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host([direction='vertical']) {
|
|
16
|
-
--spacing-container-direction: column;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host([direction='horizontal']) {
|
|
20
|
-
--spacing-container-direction: row;
|
|
21
|
-
--spacing-container-align-items: center;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* #region Spacing */
|
|
25
|
-
:host([spacing='3x-small']) {
|
|
26
|
-
--spacing-container-gap: var(--cx-spacing-3x-small);
|
|
27
|
-
}
|
|
28
|
-
:host([spacing='2x-small']) {
|
|
29
|
-
--spacing-container-gap: var(--cx-spacing-2x-small);
|
|
30
|
-
}
|
|
31
|
-
:host([spacing='x-small']) {
|
|
32
|
-
--spacing-container-gap: var(--cx-spacing-x-small);
|
|
33
|
-
}
|
|
34
|
-
:host([spacing='small']) {
|
|
35
|
-
--spacing-container-gap: var(--cx-spacing-small);
|
|
36
|
-
}
|
|
37
|
-
:host([spacing='medium']) {
|
|
38
|
-
--spacing-container-gap: var(--cx-spacing-medium);
|
|
39
|
-
}
|
|
40
|
-
:host([spacing='large']) {
|
|
41
|
-
--spacing-container-gap: var(--cx-spacing-large);
|
|
42
|
-
}
|
|
43
|
-
:host([spacing='x-large']) {
|
|
44
|
-
--spacing-container-gap: var(--cx-spacing-x-large);
|
|
45
|
-
}
|
|
46
|
-
:host([spacing='2x-large']) {
|
|
47
|
-
--spacing-container-gap: var(--cx-spacing-2x-large);
|
|
48
|
-
}
|
|
49
|
-
:host([spacing='3x-large']) {
|
|
50
|
-
--spacing-container-gap: var(--cx-spacing-3x-large);
|
|
51
|
-
}
|
|
52
|
-
:host([spacing='4x-large']) {
|
|
53
|
-
--spacing-container-gap: var(--cx-spacing-4x-large);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* #endregion */
|
|
57
|
-
|
|
58
|
-
/* #region Wrap */
|
|
59
|
-
:host([wrap='wrap']) {
|
|
60
|
-
--spacing-container-wrap: wrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([wrap='nowrap']) {
|
|
64
|
-
--spacing-container-wrap: nowrap;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([wrap='wrap-reverse']) {
|
|
68
|
-
--spacing-container-wrap: wrap-reverse;
|
|
69
|
-
}
|
|
70
|
-
/* #endregion */
|
|
71
|
-
|
|
72
|
-
/* #region Justify content */
|
|
73
|
-
:host([justify-content='start']) {
|
|
74
|
-
--spacing-container-justify-content: start;
|
|
75
|
-
}
|
|
76
|
-
:host([justify-content='end']) {
|
|
77
|
-
--spacing-container-justify-content: end;
|
|
78
|
-
}
|
|
79
|
-
:host([justify-content='flex-start']) {
|
|
80
|
-
--spacing-container-justify-content: flex-start;
|
|
81
|
-
}
|
|
82
|
-
:host([justify-content='flex-end']) {
|
|
83
|
-
--spacing-container-justify-content: flex-end;
|
|
84
|
-
}
|
|
85
|
-
:host([justify-content='center']) {
|
|
86
|
-
--spacing-container-justify-content: center;
|
|
87
|
-
}
|
|
88
|
-
:host([justify-content='left']) {
|
|
89
|
-
--spacing-container-justify-content: left;
|
|
90
|
-
}
|
|
91
|
-
:host([justify-content='right']) {
|
|
92
|
-
--spacing-container-justify-content: right;
|
|
93
|
-
}
|
|
94
|
-
:host([justify-content='normal']) {
|
|
95
|
-
--spacing-container-justify-content: normal;
|
|
96
|
-
}
|
|
97
|
-
:host([justify-content='space-between']) {
|
|
98
|
-
--spacing-container-justify-content: space-between;
|
|
99
|
-
}
|
|
100
|
-
:host([justify-content='space-around']) {
|
|
101
|
-
--spacing-container-justify-content: space-around;
|
|
102
|
-
}
|
|
103
|
-
:host([justify-content='space-evenly']) {
|
|
104
|
-
--spacing-container-justify-content: space-evenly;
|
|
105
|
-
}
|
|
106
|
-
:host([justify-content='stretch']) {
|
|
107
|
-
--spacing-container-justify-content: stretch;
|
|
108
|
-
}
|
|
109
|
-
/* #endregion */
|
|
110
|
-
|
|
111
|
-
/* #region Align items */
|
|
112
|
-
:host([align-items='normal']) {
|
|
113
|
-
--spacing-container-align-items: normal;
|
|
114
|
-
}
|
|
115
|
-
:host([align-items='center']) {
|
|
116
|
-
--spacing-container-align-items: center;
|
|
117
|
-
}
|
|
118
|
-
:host([align-items='start']) {
|
|
119
|
-
--spacing-container-align-items: start;
|
|
120
|
-
}
|
|
121
|
-
:host([align-items='end']) {
|
|
122
|
-
--spacing-container-align-items: end;
|
|
123
|
-
}
|
|
124
|
-
:host([align-items='baseline']) {
|
|
125
|
-
--spacing-container-align-items: baseline;
|
|
126
|
-
}
|
|
127
|
-
:host([align-items='stretch']) {
|
|
128
|
-
--spacing-container-align-items: stretch;
|
|
129
|
-
}
|
|
130
|
-
:host([align-items='flex-start']) {
|
|
131
|
-
--spacing-container-align-items: flex-start;
|
|
132
|
-
}
|
|
133
|
-
:host([align-items='flex-end']) {
|
|
134
|
-
--spacing-container-align-items: flex-end;
|
|
135
|
-
}
|
|
136
|
-
/* #endregion */
|
|
137
|
-
|
|
138
|
-
:host([direction='vertical'][block]) ::slotted(*) {
|
|
139
|
-
display: block;
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
|
-
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (p, i, r, s) => {
|
|
144
|
-
for (var n = s > 1 ? void 0 : s ? x(i, r) : i, c = p.length - 1, o; c >= 0; c--)
|
|
145
|
-
(o = p[c]) && (n = (s ? o(i, r, n) : o(n)) || n);
|
|
146
|
-
return s && n && y(i, r, n), n;
|
|
5
|
+
const u = f`:host{flex-direction:var(--spacing-container-direction,horizontal);gap:var(--spacing-container-gap,var(--cx-spacing-medium));align-items:var(--spacing-container-align-items,normal);flex-wrap:var(--spacing-container-wrap,nowrap);justify-content:var(--spacing-container-justify-content,normal);display:flex}:host([direction=vertical]){--spacing-container-direction:column}:host([direction=horizontal]){--spacing-container-direction:row;--spacing-container-align-items:center}:host([spacing="3x-small"]){--spacing-container-gap:var(--cx-spacing-3x-small)}:host([spacing="2x-small"]){--spacing-container-gap:var(--cx-spacing-2x-small)}:host([spacing=x-small]){--spacing-container-gap:var(--cx-spacing-x-small)}:host([spacing=small]){--spacing-container-gap:var(--cx-spacing-small)}:host([spacing=medium]){--spacing-container-gap:var(--cx-spacing-medium)}:host([spacing=large]){--spacing-container-gap:var(--cx-spacing-large)}:host([spacing=x-large]){--spacing-container-gap:var(--cx-spacing-x-large)}:host([spacing="2x-large"]){--spacing-container-gap:var(--cx-spacing-2x-large)}:host([spacing="3x-large"]){--spacing-container-gap:var(--cx-spacing-3x-large)}:host([spacing="4x-large"]){--spacing-container-gap:var(--cx-spacing-4x-large)}:host([wrap=wrap]){--spacing-container-wrap:wrap}:host([wrap=nowrap]){--spacing-container-wrap:nowrap}:host([wrap=wrap-reverse]){--spacing-container-wrap:wrap-reverse}:host([justify-content=start]){--spacing-container-justify-content:start}:host([justify-content=end]){--spacing-container-justify-content:end}:host([justify-content=flex-start]){--spacing-container-justify-content:flex-start}:host([justify-content=flex-end]){--spacing-container-justify-content:flex-end}:host([justify-content=center]){--spacing-container-justify-content:center}:host([justify-content=left]){--spacing-container-justify-content:left}:host([justify-content=right]){--spacing-container-justify-content:right}:host([justify-content=normal]){--spacing-container-justify-content:normal}:host([justify-content=space-between]){--spacing-container-justify-content:space-between}:host([justify-content=space-around]){--spacing-container-justify-content:space-around}:host([justify-content=space-evenly]){--spacing-container-justify-content:space-evenly}:host([justify-content=stretch]){--spacing-container-justify-content:stretch}:host([align-items=normal]){--spacing-container-align-items:normal}:host([align-items=center]){--spacing-container-align-items:center}:host([align-items=start]){--spacing-container-align-items:start}:host([align-items=end]){--spacing-container-align-items:end}:host([align-items=baseline]){--spacing-container-align-items:baseline}:host([align-items=stretch]){--spacing-container-align-items:stretch}:host([align-items=flex-start]){--spacing-container-align-items:flex-start}:host([align-items=flex-end]){--spacing-container-align-items:flex-end}:host([direction=vertical][block]) ::slotted(*){width:100%;display:block}`;
|
|
6
|
+
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (p, i, c, s) => {
|
|
7
|
+
for (var n = s > 1 ? void 0 : s ? x(i, c) : i, r = p.length - 1, o; r >= 0; r--)
|
|
8
|
+
(o = p[r]) && (n = (s ? o(i, c, n) : o(n)) || n);
|
|
9
|
+
return s && n && y(i, c, n), n;
|
|
147
10
|
};
|
|
148
11
|
let t = class extends g {
|
|
149
12
|
constructor() {
|