@orangelogic/design-system 2.0.0-29DUO2-beta-2 → 2.0.0-29IORR-beta-1
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.BoVb3qVt.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.CKP1W_u1.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.C-0PQZX9.js → list-editor.xBvtJqdy.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/{modal.CG-kZq41.js → modal.U1QltQKe.js} +1 -1
- 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/{tabbable.BwnZBHrm.js → tabbable.CcMz3mIL.js} +2 -2
- package/library/chunks/{table.DNTm_GMS.js → table.Cs5a0duW.js} +2903 -4591
- 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 +7 -7
- 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 +12 -243
- package/library/components/dropdown.js +50 -152
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +493 -534
- 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 +35172 -45146
- 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 +42 -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/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/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 +289 -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.DlN4hgLS.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.DZtadqgL.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.CwrqgSke.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,70 +1,11 @@
|
|
|
1
1
|
import { C as c } 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
|
-
import { L as p } from "../chunks/i18n.
|
|
4
|
+
import { L as p } from "../chunks/i18n.BFqTRDCA.js";
|
|
5
5
|
import { i as d, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
|
-
const f = d
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
--track-color: rgb(128 128 128 / 25%);
|
|
10
|
-
--indicator-color: var(--cx-color-primary);
|
|
11
|
-
--speed: 2s;
|
|
12
|
-
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
width: 1em;
|
|
15
|
-
height: 1em;
|
|
16
|
-
max-width: 1em;
|
|
17
|
-
max-height: 1em;
|
|
18
|
-
flex: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.spinner {
|
|
22
|
-
flex: 1 1 auto;
|
|
23
|
-
height: 1em;
|
|
24
|
-
width: 1em;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.spinner__track,
|
|
28
|
-
.spinner__indicator {
|
|
29
|
-
fill: none;
|
|
30
|
-
stroke-width: var(--track-width);
|
|
31
|
-
r: calc(0.5em - var(--track-width) / 2);
|
|
32
|
-
cx: calc(0.5em);
|
|
33
|
-
cy: calc(0.5em);
|
|
34
|
-
transform-origin: calc(0.5em) calc(0.5em);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.spinner__track {
|
|
38
|
-
stroke: var(--track-color);
|
|
39
|
-
transform-origin: 0% 0%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.spinner__indicator {
|
|
43
|
-
stroke: var(--indicator-color);
|
|
44
|
-
stroke-linecap: round;
|
|
45
|
-
stroke-dasharray: 150% 75%;
|
|
46
|
-
animation: spin var(--speed) linear infinite;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes spin {
|
|
50
|
-
0% {
|
|
51
|
-
transform: rotate(0deg);
|
|
52
|
-
stroke-dasharray: 0.05em, 3em;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
50% {
|
|
56
|
-
transform: rotate(450deg);
|
|
57
|
-
stroke-dasharray: 1.375em, 1.375em;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
100% {
|
|
61
|
-
transform: rotate(1080deg);
|
|
62
|
-
stroke-dasharray: 0.05em, 3em;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
var g = Object.getOwnPropertyDescriptor, k = (a, s, n, o) => {
|
|
67
|
-
for (var r = o > 1 ? void 0 : o ? g(s, n) : s, e = a.length - 1, i; e >= 0; e--)
|
|
6
|
+
const f = d`:host{--track-width:2px;--track-color:#80808040;--indicator-color:var(--cx-color-primary);--speed:2s;flex:none;width:1em;max-width:1em;height:1em;max-height:1em;display:inline-flex}.spinner{flex:auto;width:1em;height:1em}.spinner__track,.spinner__indicator{fill:none;stroke-width:var(--track-width);r:calc(.5em - var(--track-width) / 2);cx:calc(.5em);cy:calc(.5em);transform-origin:.5em .5em}.spinner__track{stroke:var(--track-color);transform-origin:0 0}.spinner__indicator{stroke:var(--indicator-color);stroke-linecap:round;stroke-dasharray:150% 75%;animation:spin var(--speed) linear infinite}@keyframes spin{0%{stroke-dasharray:.05em 3em;transform:rotate(0)}50%{stroke-dasharray:1.375em 1.375em;transform:rotate(450deg)}to{stroke-dasharray:.05em 3em;transform:rotate(1080deg)}}`;
|
|
7
|
+
var k = Object.getOwnPropertyDescriptor, _ = (a, s, n, o) => {
|
|
8
|
+
for (var r = o > 1 ? void 0 : o ? k(s, n) : s, e = a.length - 1, i; e >= 0; e--)
|
|
68
9
|
(i = a[e]) && (r = i(r) || r);
|
|
69
10
|
return r;
|
|
70
11
|
};
|
|
@@ -73,21 +14,11 @@ let t = class extends c {
|
|
|
73
14
|
super(...arguments), this.localize = new p(this);
|
|
74
15
|
}
|
|
75
16
|
render() {
|
|
76
|
-
return h
|
|
77
|
-
<svg
|
|
78
|
-
part="base"
|
|
79
|
-
class="spinner"
|
|
80
|
-
role="progressbar"
|
|
81
|
-
aria-label=${this.localize.term("loading")}
|
|
82
|
-
>
|
|
83
|
-
<circle class="spinner__track"></circle>
|
|
84
|
-
<circle class="spinner__indicator"></circle>
|
|
85
|
-
</svg>
|
|
86
|
-
`;
|
|
17
|
+
return h`<svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}><circle class="spinner__track"></circle><circle class="spinner__indicator"></circle></svg>`;
|
|
87
18
|
}
|
|
88
19
|
};
|
|
89
20
|
t.styles = [l, f];
|
|
90
|
-
t =
|
|
21
|
+
t = _([
|
|
91
22
|
m("cx-spinner")
|
|
92
23
|
], t);
|
|
93
24
|
export {
|
|
@@ -1,104 +1,17 @@
|
|
|
1
|
-
import { n, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
1
|
+
import { n as l, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { d as g } from "../chunks/drag.DXEXVXPv.js";
|
|
5
|
-
import { L as f } from "../chunks/i18n.
|
|
5
|
+
import { L as f } from "../chunks/i18n.BFqTRDCA.js";
|
|
6
6
|
import { c as p } from "../chunks/math.DqTA6ya4.js";
|
|
7
|
-
import { w as c } from "../chunks/watch.
|
|
7
|
+
import { w as c } from "../chunks/watch.BCJD77bD.js";
|
|
8
8
|
import { i as y, x } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { e as b } from "../chunks/query.BBf1UFkC.js";
|
|
10
10
|
import { o as w } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
11
|
-
const P = y
|
|
12
|
-
:host {
|
|
13
|
-
--divider-color: var(--cx-panel-border-color);
|
|
14
|
-
--divider-color-hover: var(--cx-color-neutral-300);
|
|
15
|
-
--divider-color-dragging: var(--cx-color-primary-500);
|
|
16
|
-
--divider-color-focus: var(--cx-color-primary);
|
|
17
|
-
--divider-width: 3px;
|
|
18
|
-
--divider-hit-area: 12px;
|
|
19
|
-
--min: 0%;
|
|
20
|
-
--max: 100%;
|
|
21
|
-
|
|
22
|
-
display: grid;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.start,
|
|
26
|
-
.end {
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.divider {
|
|
31
|
-
flex: 0 0 var(--divider-width);
|
|
32
|
-
display: flex;
|
|
33
|
-
position: relative;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
background-color: var(--divider-color);
|
|
37
|
-
color: var(--cx-color-neutral-900);
|
|
38
|
-
z-index: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.divider:focus {
|
|
42
|
-
outline: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.divider:hover {
|
|
46
|
-
background-color: var(--divider-color-hover);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.divider.dragging {
|
|
50
|
-
background-color: var(--divider-color-dragging);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host(:not([disabled])) .divider:focus-visible {
|
|
54
|
-
background-color: var(--divider-color-focus);
|
|
55
|
-
color: var(--cx-color-neutral-0);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([disabled]) .divider {
|
|
59
|
-
cursor: default;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Horizontal */
|
|
63
|
-
:host(:not([vertical], [disabled])) .divider {
|
|
64
|
-
cursor: col-resize;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host(:not([vertical])) .divider::after {
|
|
68
|
-
display: flex;
|
|
69
|
-
content: '';
|
|
70
|
-
position: absolute;
|
|
71
|
-
height: 100%;
|
|
72
|
-
left: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
|
|
73
|
-
width: var(--divider-hit-area);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Vertical */
|
|
77
|
-
:host([vertical]) {
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host([vertical]:not([disabled])) .divider {
|
|
82
|
-
cursor: row-resize;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host([vertical]) .divider::after {
|
|
86
|
-
content: '';
|
|
87
|
-
position: absolute;
|
|
88
|
-
width: 100%;
|
|
89
|
-
top: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
|
|
90
|
-
height: var(--divider-hit-area);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@media (forced-colors: active) {
|
|
94
|
-
.divider {
|
|
95
|
-
outline: solid 1px transparent;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
11
|
+
const P = y`:host{--divider-color:var(--cx-panel-border-color);--divider-color-hover:var(--cx-color-neutral-300);--divider-color-dragging:var(--cx-color-primary-500);--divider-color-focus:var(--cx-color-primary);--divider-width:3px;--divider-hit-area:12px;--min:0%;--max:100%;display:grid}.start,.end{overflow:hidden}.divider{flex:0 0 var(--divider-width);background-color:var(--divider-color);color:var(--cx-color-neutral-900);z-index:1;justify-content:center;align-items:center;display:flex;position:relative}.divider:focus{outline:none}.divider:hover{background-color:var(--divider-color-hover)}.divider.dragging{background-color:var(--divider-color-dragging)}:host(:not([disabled])) .divider:focus-visible{background-color:var(--divider-color-focus);color:var(--cx-color-neutral-0)}:host([disabled]) .divider{cursor:default}:host(:not([vertical],[disabled])) .divider{cursor:col-resize}:host(:not([vertical])) .divider:after{content:"";height:100%;left:calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);width:var(--divider-hit-area);display:flex;position:absolute}:host([vertical]){flex-direction:column}:host([vertical]:not([disabled])) .divider{cursor:row-resize}:host([vertical]) .divider:after{content:"";width:100%;top:calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);height:var(--divider-hit-area);position:absolute}@media (forced-colors:active){.divider{outline:1px solid #0000}}`;
|
|
99
12
|
var z = Object.defineProperty, C = Object.getOwnPropertyDescriptor, s = (i, t, o, a) => {
|
|
100
|
-
for (var e = a > 1 ? void 0 : a ? C(t, o) : t, h = i.length - 1,
|
|
101
|
-
(
|
|
13
|
+
for (var e = a > 1 ? void 0 : a ? C(t, o) : t, h = i.length - 1, n; h >= 0; h--)
|
|
14
|
+
(n = i[h]) && (e = (a ? n(t, o, e) : n(e)) || e);
|
|
102
15
|
return a && e && z(t, o, e), e;
|
|
103
16
|
};
|
|
104
17
|
let r = class extends v {
|
|
@@ -132,9 +45,9 @@ let r = class extends v {
|
|
|
132
45
|
initialEvent: i,
|
|
133
46
|
onMove: (o, a) => {
|
|
134
47
|
let e = this.vertical ? a : o;
|
|
135
|
-
this.primary === "end" && (e = this.size - e), this.snap && this.snap.split(" ").forEach((
|
|
48
|
+
this.primary === "end" && (e = this.size - e), this.snap && this.snap.split(" ").forEach((n) => {
|
|
136
49
|
let d;
|
|
137
|
-
|
|
50
|
+
n.endsWith("%") ? d = this.size * (parseFloat(n) / 100) : d = parseFloat(n), t && !this.vertical && (d = this.size - d), e >= d - this.snapThreshold && e <= d + this.snapThreshold && (e = d);
|
|
138
51
|
}), this.position = p(
|
|
139
52
|
this.pixelsToPercentage(e),
|
|
140
53
|
0,
|
|
@@ -193,27 +106,7 @@ let r = class extends v {
|
|
|
193
106
|
calc(100% - var(--divider-width))
|
|
194
107
|
)
|
|
195
108
|
`, e = "auto";
|
|
196
|
-
return this.primary === "end" ? o && !this.vertical ? this.style[i] = `${a} var(--divider-width) ${e}` : this.style[i] = `${e} var(--divider-width) ${a}` : o && !this.vertical ? this.style[i] = `${e} var(--divider-width) ${a}` : this.style[i] = `${a} var(--divider-width) ${e}`, this.style[t] = "", x
|
|
197
|
-
<slot name="start" part="panel start" class="start"></slot>
|
|
198
|
-
|
|
199
|
-
<div
|
|
200
|
-
part="divider"
|
|
201
|
-
class="divider ${this.state === "dragging" ? "dragging" : ""}"
|
|
202
|
-
tabindex=${w(this.disabled ? void 0 : "0")}
|
|
203
|
-
role="separator"
|
|
204
|
-
aria-valuenow=${this.position}
|
|
205
|
-
aria-valuemin="0"
|
|
206
|
-
aria-valuemax="100"
|
|
207
|
-
aria-label=${this.localize.term("resize")}
|
|
208
|
-
@keydown=${this.handleKeyDown}
|
|
209
|
-
@mousedown=${this.handleDrag}
|
|
210
|
-
@touchstart=${this.handleDrag}
|
|
211
|
-
>
|
|
212
|
-
<slot name="divider"></slot>
|
|
213
|
-
</div>
|
|
214
|
-
|
|
215
|
-
<slot name="end" part="panel end" class="end"></slot>
|
|
216
|
-
`;
|
|
109
|
+
return this.primary === "end" ? o && !this.vertical ? this.style[i] = `${a} var(--divider-width) ${e}` : this.style[i] = `${e} var(--divider-width) ${a}` : o && !this.vertical ? this.style[i] = `${e} var(--divider-width) ${a}` : this.style[i] = `${a} var(--divider-width) ${e}`, this.style[t] = "", x`<slot name="start" part="panel start" class="start"></slot><div part="divider" class="divider ${this.state === "dragging" ? "dragging" : ""}" tabindex=${w(this.disabled ? void 0 : "0")} role="separator" aria-valuenow=${this.position} aria-valuemin="0" aria-valuemax="100" aria-label=${this.localize.term("resize")} @keydown=${this.handleKeyDown} @mousedown=${this.handleDrag} @touchstart=${this.handleDrag}><slot name="divider"></slot></div><slot name="end" part="panel end" class="end"></slot>`;
|
|
217
110
|
}
|
|
218
111
|
};
|
|
219
112
|
r.styles = [m, P];
|
|
@@ -221,28 +114,28 @@ s([
|
|
|
221
114
|
b(".divider")
|
|
222
115
|
], r.prototype, "divider", 2);
|
|
223
116
|
s([
|
|
224
|
-
|
|
117
|
+
l({ reflect: !0, type: Number })
|
|
225
118
|
], r.prototype, "position", 2);
|
|
226
119
|
s([
|
|
227
|
-
|
|
120
|
+
l({ attribute: "position-in-pixels", type: Number })
|
|
228
121
|
], r.prototype, "positionInPixels", 2);
|
|
229
122
|
s([
|
|
230
|
-
|
|
123
|
+
l({ reflect: !0, type: Boolean })
|
|
231
124
|
], r.prototype, "vertical", 2);
|
|
232
125
|
s([
|
|
233
|
-
|
|
126
|
+
l({ reflect: !0, type: Boolean })
|
|
234
127
|
], r.prototype, "disabled", 2);
|
|
235
128
|
s([
|
|
236
|
-
|
|
129
|
+
l()
|
|
237
130
|
], r.prototype, "primary", 2);
|
|
238
131
|
s([
|
|
239
|
-
|
|
132
|
+
l()
|
|
240
133
|
], r.prototype, "state", 2);
|
|
241
134
|
s([
|
|
242
|
-
|
|
135
|
+
l()
|
|
243
136
|
], r.prototype, "snap", 2);
|
|
244
137
|
s([
|
|
245
|
-
|
|
138
|
+
l({ attribute: "snap-threshold", type: Number })
|
|
246
139
|
], r.prototype, "snapThreshold", 2);
|
|
247
140
|
s([
|
|
248
141
|
c("position")
|
|
@@ -1,232 +1,20 @@
|
|
|
1
1
|
import { n as r, C as _ } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as x } from "../chunks/component.styles.
|
|
3
|
-
import { c as
|
|
4
|
-
import { i as
|
|
2
|
+
import { c as x } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as u, x as o } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
5
|
import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
6
6
|
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
7
|
-
import { o as
|
|
8
|
-
import { n as
|
|
9
|
-
import
|
|
7
|
+
import { o as g } from "../chunks/style-map.llVFPd__.js";
|
|
8
|
+
import { n as c } from "../chunks/when.Dr1es41R.js";
|
|
9
|
+
import f from "./icon.js";
|
|
10
10
|
import b from "./line-clamp.js";
|
|
11
11
|
import y from "./progress-bar.js";
|
|
12
12
|
import w from "./tooltip.js";
|
|
13
|
-
const $ =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
margin-left: calc(-1 * var(--cx-spacing-small));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([round]) {
|
|
22
|
-
max-width: 100%;
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.step {
|
|
27
|
-
font-family: var(--cx-font-sans);
|
|
28
|
-
display: flex;
|
|
29
|
-
gap: var(--cx-spacing-x-small);
|
|
30
|
-
width: 100%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.step__arrow {
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
padding-top: var(--cx-spacing-x-small);
|
|
37
|
-
padding-bottom: var(--cx-spacing-x-small);
|
|
38
|
-
padding-left: var(--cx-spacing-x-large);
|
|
39
|
-
padding-right: var(--cx-spacing-medium);
|
|
40
|
-
background-color: var(--cx-color-neutral-100);
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
position: relative;
|
|
43
|
-
clip-path: polygon(
|
|
44
|
-
calc(100% - var(--cx-spacing-medium)) 0%,
|
|
45
|
-
100% 50%,
|
|
46
|
-
calc(100% - var(--cx-spacing-medium)) 100%,
|
|
47
|
-
0% 100%,
|
|
48
|
-
var(--cx-spacing-medium) 50%,
|
|
49
|
-
0% 0%
|
|
50
|
-
);
|
|
51
|
-
width: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.step--first .step__arrow {
|
|
55
|
-
clip-path: polygon(
|
|
56
|
-
calc(100% - var(--cx-spacing-medium)) 0%,
|
|
57
|
-
100% 50%,
|
|
58
|
-
calc(100% - var(--cx-spacing-medium)) 100%,
|
|
59
|
-
0% 100%,
|
|
60
|
-
0 50%,
|
|
61
|
-
0% 0%
|
|
62
|
-
);
|
|
63
|
-
border-top-left-radius: var(--cx-border-radius-large);
|
|
64
|
-
border-bottom-left-radius: var(--cx-border-radius-large);
|
|
65
|
-
padding-left: var(--cx-spacing-small);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.step--last .step__arrow {
|
|
69
|
-
clip-path: polygon(
|
|
70
|
-
100% 0,
|
|
71
|
-
100% 50%,
|
|
72
|
-
100% 100%,
|
|
73
|
-
0% 100%,
|
|
74
|
-
var(--cx-spacing-medium) 50%,
|
|
75
|
-
0% 0%
|
|
76
|
-
);
|
|
77
|
-
border-top-right-radius: var(--cx-border-radius-large);
|
|
78
|
-
border-bottom-right-radius: var(--cx-border-radius-large);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.step--first.step--last .step__arrow {
|
|
82
|
-
clip-path: polygon(100% 0%, 100% 50%, 100% 100%, 0% 100%, 0 50%, 0% 0%);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.step--active .step__arrow {
|
|
86
|
-
background-color: color-mix(in srgb, var(--color) 15%, white);
|
|
87
|
-
cursor: default;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.step--completed .step__arrow {
|
|
91
|
-
opacity: 0.5;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.step--disabled .step__arrow {
|
|
95
|
-
cursor: default;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.step--readonly .step__arrow {
|
|
99
|
-
cursor: default;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.step--disabled.step--has-description .step__arrow,
|
|
103
|
-
.step--readonly.step--has-description .step__arrow,
|
|
104
|
-
.step--active.step--has-description .step__arrow {
|
|
105
|
-
cursor: help;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.step__circle {
|
|
109
|
-
align-items: center;
|
|
110
|
-
background-color: color-mix(in srgb, var(--color) 15%, white);
|
|
111
|
-
border: 2px solid var(--color);
|
|
112
|
-
border-radius: var(--cx-border-radius-circle);
|
|
113
|
-
color: var(--color);
|
|
114
|
-
display: flex;
|
|
115
|
-
flex: 0 0 32px;
|
|
116
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
117
|
-
height: 32px;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
|
|
120
|
-
cx-icon {
|
|
121
|
-
font-size: var(--cx-font-size-medium);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.step--round.step--active .step__circle,
|
|
126
|
-
.step--round.step--completed .step__circle {
|
|
127
|
-
background-color: var(--color);
|
|
128
|
-
color: var(--cx-color-neutral-0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.step--round.step--disabled .step__circle {
|
|
132
|
-
background-color: var(--cx-color-neutral-0);
|
|
133
|
-
border-color: var(--cx-color-neutral-400);
|
|
134
|
-
color: var(--cx-color-neutral-400);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.step--round.step--error .step__circle {
|
|
138
|
-
background-color: var(--cx-color-danger);
|
|
139
|
-
border-color: var(--cx-color-danger);
|
|
140
|
-
color: var(--cx-color-neutral-0);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.step__content {
|
|
144
|
-
display: flex;
|
|
145
|
-
align-items: center;
|
|
146
|
-
gap: var(--cx-spacing-x-small);
|
|
147
|
-
position: relative;
|
|
148
|
-
max-width: 100%;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.step--round .step__content {
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
align-items: flex-start;
|
|
154
|
-
justify-content: center;
|
|
155
|
-
gap: 0;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.step__content__prefix::slotted(cx-icon) {
|
|
159
|
-
color: var(--cx-color-neutral-600);
|
|
160
|
-
font-size: var(--cx-font-size-medium);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.step__content__label {
|
|
164
|
-
color: var(--cx-color-neutral-600);
|
|
165
|
-
font-size: var(--cx-font-size-medium);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.step--active .step__content__label,
|
|
169
|
-
.step--active .step__content__help-text,
|
|
170
|
-
.step--active .step__content__prefix::slotted(cx-icon) {
|
|
171
|
-
color: var(--color);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.step--round.step--completed .step__content__label,
|
|
175
|
-
.step--round.step--completed .step__content__help-text {
|
|
176
|
-
color: var(--color);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.step--disabled .step__content__label,
|
|
180
|
-
.step--disabled .step__content__help-text,
|
|
181
|
-
.step--disabled .step__content__prefix::slotted(cx-icon) {
|
|
182
|
-
color: var(--cx-color-neutral-400);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.step--error .step__content__label,
|
|
186
|
-
.step--error .step__content__help-text {
|
|
187
|
-
color: var(--cx-color-danger);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.step--round .step__content__progress {
|
|
191
|
-
display: flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
justify-content: center;
|
|
194
|
-
gap: var(--cx-spacing-small);
|
|
195
|
-
line-height: 1;
|
|
196
|
-
min-width: 120px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.step--round .step__content__progress__text {
|
|
200
|
-
color: var(--color);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.step--round.step__content__help-text {
|
|
204
|
-
color: var(--cx-color-neutral-600);
|
|
205
|
-
font-size: var(--cx-font-size-small);
|
|
206
|
-
line-height: 1;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.step__line {
|
|
210
|
-
background-color: var(--color);
|
|
211
|
-
flex: 1;
|
|
212
|
-
height: 2rem;
|
|
213
|
-
margin: var(--cx-spacing-medium) calc(32px / 2) 0;
|
|
214
|
-
width: 2px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.step--last ~ .step__line {
|
|
218
|
-
display: none;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
cx-progress-bar {
|
|
222
|
-
--height: 8px;
|
|
223
|
-
flex: 1;
|
|
224
|
-
}
|
|
225
|
-
`;
|
|
226
|
-
var S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, t = (d, i, p, c) => {
|
|
227
|
-
for (var s = c > 1 ? void 0 : c ? C(i, p) : i, a = d.length - 1, n; a >= 0; a--)
|
|
228
|
-
(n = d[a]) && (s = (c ? n(i, p, s) : n(s)) || s);
|
|
229
|
-
return c && s && S(i, p, s), s;
|
|
13
|
+
const $ = u`:host{--color:var(--color);flex:calc(100% / var(--columns) + var(--cx-spacing-small));margin-left:calc(-1 * var(--cx-spacing-small))}:host([round]){max-width:100%;margin-left:0}.step{font-family:var(--cx-font-sans);gap:var(--cx-spacing-x-small);width:100%;display:flex}.step__arrow{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small);padding-left:var(--cx-spacing-x-large);padding-right:var(--cx-spacing-medium);background-color:var(--cx-color-neutral-100);cursor:pointer;clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);align-items:center;width:100%;display:inline-flex;position:relative}.step--first .step__arrow{clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, 0 50%, 0% 0%);border-top-left-radius:var(--cx-border-radius-large);border-bottom-left-radius:var(--cx-border-radius-large);padding-left:var(--cx-spacing-small)}.step--last .step__arrow{clip-path:polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);border-top-right-radius:var(--cx-border-radius-large);border-bottom-right-radius:var(--cx-border-radius-large)}.step--first.step--last .step__arrow{clip-path:polygon(100% 0%,100% 50%,100% 100%,0% 100%,0 50%,0% 0%)}.step--active .step__arrow{background-color:color-mix(in srgb, var(--color) 15%, white);cursor:default}.step--completed .step__arrow{opacity:.5}.step--disabled .step__arrow,.step--readonly .step__arrow{cursor:default}.step--disabled.step--has-description .step__arrow,.step--readonly.step--has-description .step__arrow,.step--active.step--has-description .step__arrow{cursor:help}.step__circle{background-color:color-mix(in srgb, var(--color) 15%, white);border:2px solid var(--color);border-radius:var(--cx-border-radius-circle);color:var(--color);font-weight:var(--cx-font-weight-semibold);flex:0 0 32px;justify-content:center;align-items:center;height:32px;display:flex;& cx-icon{font-size:var(--cx-font-size-medium)}}.step--round.step--active .step__circle,.step--round.step--completed .step__circle{background-color:var(--color);color:var(--cx-color-neutral-0)}.step--round.step--disabled .step__circle{background-color:var(--cx-color-neutral-0);border-color:var(--cx-color-neutral-400);color:var(--cx-color-neutral-400)}.step--round.step--error .step__circle{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.step__content{align-items:center;gap:var(--cx-spacing-x-small);max-width:100%;display:flex;position:relative}.step--round .step__content{flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.step__content__prefix::slotted(cx-icon),.step__content__label{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-medium)}.step--active .step__content__label,.step--active .step__content__help-text,.step--active .step__content__prefix::slotted(cx-icon),.step--round.step--completed .step__content__label,.step--round.step--completed .step__content__help-text{color:var(--color)}.step--disabled .step__content__label,.step--disabled .step__content__help-text,.step--disabled .step__content__prefix::slotted(cx-icon){color:var(--cx-color-neutral-400)}.step--error .step__content__label,.step--error .step__content__help-text{color:var(--cx-color-danger)}.step--round .step__content__progress{justify-content:center;align-items:center;gap:var(--cx-spacing-small);min-width:120px;line-height:1;display:flex}.step--round .step__content__progress__text{color:var(--color)}.step--round.step__content__help-text{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small);line-height:1}.step__line{background-color:var(--color);height:2rem;margin:var(--cx-spacing-medium) calc(32px / 2) 0;flex:1;width:2px}.step--last~.step__line{display:none}cx-progress-bar{--height:8px;flex:1}`;
|
|
14
|
+
var S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, t = (d, i, p, l) => {
|
|
15
|
+
for (var s = l > 1 ? void 0 : l ? C(i, p) : i, a = d.length - 1, n; a >= 0; a--)
|
|
16
|
+
(n = d[a]) && (s = (l ? n(i, p, s) : n(s)) || s);
|
|
17
|
+
return l && s && S(i, p, s), s;
|
|
230
18
|
};
|
|
231
19
|
let e = class extends _ {
|
|
232
20
|
constructor() {
|
|
@@ -238,55 +26,24 @@ let e = class extends _ {
|
|
|
238
26
|
});
|
|
239
27
|
}
|
|
240
28
|
renderDefaultStep() {
|
|
241
|
-
return o`<div class="step__arrow"
|
|
242
|
-
<div class="step__content">
|
|
243
|
-
<slot name="prefix" class="step__content__prefix"></slot>
|
|
244
|
-
<cx-line-clamp lines="1">
|
|
245
|
-
<slot class="step__content__label"></slot>
|
|
246
|
-
</cx-line-clamp>
|
|
247
|
-
</div>
|
|
248
|
-
</div>`;
|
|
29
|
+
return o`<div class="step__arrow"><div class="step__content"><slot name="prefix" class="step__content__prefix"></slot><cx-line-clamp lines="1"><slot class="step__content__label"></slot></cx-line-clamp></div></div>`;
|
|
249
30
|
}
|
|
250
31
|
renderRoundStep() {
|
|
251
|
-
return o`<div class="step__circle"
|
|
252
|
-
${this.completed ? o`<cx-icon name="check"></cx-icon>` : o`<div class="step__circle__number">${this.index + 1}</div>`}
|
|
253
|
-
</div>
|
|
254
|
-
<div class="step__content">
|
|
255
|
-
<slot class="step__content__label"></slot>
|
|
256
|
-
${l(
|
|
32
|
+
return o`<div class="step__circle">${this.completed ? o`<cx-icon name="check"></cx-icon>` : o`<div class="step__circle__number">${this.index + 1}</div>`}</div><div class="step__content"><slot class="step__content__label"></slot>${c(
|
|
257
33
|
this.progress && this.progress > 0,
|
|
258
|
-
() => o`<div class="step__content__progress"
|
|
259
|
-
<cx-progress-bar value=${this.progress}></cx-progress-bar>
|
|
260
|
-
<div class="step__content__progress__text">${this.progress}%</div>
|
|
261
|
-
</div>`,
|
|
34
|
+
() => o`<div class="step__content__progress"><cx-progress-bar value=${this.progress}></cx-progress-bar><div class="step__content__progress__text">${this.progress}%</div></div>`,
|
|
262
35
|
() => o`
|
|
263
|
-
${
|
|
36
|
+
${c(
|
|
264
37
|
this.helpText,
|
|
265
38
|
() => o`<div class="step__content__help-text">${this.helpText}</div>`
|
|
266
39
|
)}
|
|
267
40
|
`
|
|
268
|
-
)}
|
|
269
|
-
</div>
|
|
270
|
-
</div>
|
|
271
|
-
</div>`;
|
|
41
|
+
)}</div>`;
|
|
272
42
|
}
|
|
273
43
|
render() {
|
|
274
|
-
return o
|
|
275
|
-
<cx-tooltip
|
|
276
|
-
?disabled=${!this.description.trim()}
|
|
277
|
-
.content=${this.description}
|
|
278
|
-
hoist
|
|
279
|
-
>
|
|
280
|
-
<div
|
|
281
|
-
style=${f({
|
|
44
|
+
return o`<cx-tooltip ?disabled=${!this.description.trim()} .content=${this.description} hoist><div style=${g({
|
|
282
45
|
"--color": this.color
|
|
283
|
-
})}
|
|
284
|
-
>
|
|
285
|
-
<div
|
|
286
|
-
part="base"
|
|
287
|
-
aria-label="step"
|
|
288
|
-
role="button"
|
|
289
|
-
class=${v({
|
|
46
|
+
})}><div part="base" aria-label="step" role="button" class=${v({
|
|
290
47
|
step: !0,
|
|
291
48
|
"step--active": this.active,
|
|
292
49
|
"step--completed": this.completed,
|
|
@@ -297,20 +54,12 @@ let e = class extends _ {
|
|
|
297
54
|
"step--last": this.last,
|
|
298
55
|
"step--readonly": this.readonly,
|
|
299
56
|
"step--round": this.round
|
|
300
|
-
})}
|
|
301
|
-
@click=${this.handleClick}
|
|
302
|
-
>
|
|
303
|
-
${l(this.round, this.renderRoundStep, this.renderDefaultStep)}
|
|
304
|
-
</div>
|
|
305
|
-
${l(this.round, () => o` <div class="step__line"></div>`)}
|
|
306
|
-
</div>
|
|
307
|
-
</cx-tooltip>
|
|
308
|
-
`;
|
|
57
|
+
})} @click=${this.handleClick}>${c(this.round, this.renderRoundStep, this.renderDefaultStep)}</div>${c(this.round, () => o`<div class="step__line"></div>`)}</div></cx-tooltip>`;
|
|
309
58
|
}
|
|
310
59
|
};
|
|
311
60
|
e.styles = [x, $];
|
|
312
61
|
e.dependencies = {
|
|
313
|
-
"cx-icon":
|
|
62
|
+
"cx-icon": f,
|
|
314
63
|
"cx-line-clamp": b,
|
|
315
64
|
"cx-progress-bar": y,
|
|
316
65
|
"cx-tooltip": w
|
|
@@ -355,7 +104,7 @@ t([
|
|
|
355
104
|
r({ attribute: "description", reflect: !0, type: String })
|
|
356
105
|
], e.prototype, "description", 2);
|
|
357
106
|
e = t([
|
|
358
|
-
|
|
107
|
+
m("cx-step")
|
|
359
108
|
], e);
|
|
360
109
|
export {
|
|
361
110
|
e as default
|