@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
|
@@ -3,17 +3,13 @@ import m from "./resize-observer.js";
|
|
|
3
3
|
import x from "./step.js";
|
|
4
4
|
import f from "./stepper.js";
|
|
5
5
|
import { n as d, C as u } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { c as b } from "../chunks/component.styles.
|
|
6
|
+
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as $ } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
8
|
import { i as v, x as a } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { c as y } from "../chunks/repeat.DbF2p5ae.js";
|
|
10
10
|
import { o as W } from "../chunks/style-map.llVFPd__.js";
|
|
11
11
|
import { n as l } from "../chunks/when.Dr1es41R.js";
|
|
12
|
-
const C = v
|
|
13
|
-
:host {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
12
|
+
const C = v`:host{display:block}`;
|
|
17
13
|
var z = Object.defineProperty, w = Object.getOwnPropertyDescriptor, c = (t, r, n, o) => {
|
|
18
14
|
for (var e = o > 1 ? void 0 : o ? w(r, n) : r, p = t.length - 1, s; p >= 0; p--)
|
|
19
15
|
(s = t[p]) && (e = (o ? s(r, n, e) : s(e)) || e);
|
|
@@ -36,52 +32,22 @@ let i = class extends u {
|
|
|
36
32
|
this.requestUpdate("columnCount");
|
|
37
33
|
}
|
|
38
34
|
render() {
|
|
39
|
-
return a
|
|
40
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
41
|
-
<div>
|
|
42
|
-
<cx-stepper items-per-row=${this.columnCount}>
|
|
43
|
-
${y(
|
|
35
|
+
return a`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${y(
|
|
44
36
|
this.data,
|
|
45
37
|
(t) => t.id,
|
|
46
|
-
(t) => a`<cx-step
|
|
47
|
-
slot="step"
|
|
48
|
-
data-id=${t.id}
|
|
49
|
-
.completed=${t.state === "Done"}
|
|
50
|
-
.disabled=${this.disabled || t.state === "Disabled"}
|
|
51
|
-
.readonly=${t.readonly}
|
|
52
|
-
.active=${t.state === "Active"}
|
|
53
|
-
.color=${t.color}
|
|
54
|
-
.description=${t.description ?? ""}
|
|
55
|
-
style=${W({
|
|
38
|
+
(t) => a`<cx-step slot="step" data-id=${t.id} .completed=${t.state === "Done"} .disabled=${this.disabled || t.state === "Disabled"} .readonly=${t.readonly} .active=${t.state === "Active"} .color=${t.color} .description=${t.description ?? ""} style=${W({
|
|
56
39
|
maxWidth: `${this.maxWidth}px`,
|
|
57
40
|
minWidth: `${this.minWidth}px`
|
|
58
|
-
})}
|
|
59
|
-
>
|
|
60
|
-
${l(
|
|
41
|
+
})}>${l(
|
|
61
42
|
t.state === "Done",
|
|
62
|
-
() => a
|
|
63
|
-
<cx-icon
|
|
64
|
-
slot="prefix"
|
|
65
|
-
variant="filled"
|
|
66
|
-
name="check_circle"
|
|
67
|
-
></cx-icon>
|
|
68
|
-
`,
|
|
43
|
+
() => a`<cx-icon slot="prefix" variant="filled" name="check_circle"></cx-icon>`,
|
|
69
44
|
() => a`${l(
|
|
70
45
|
t.icon,
|
|
71
|
-
() => a`<cx-icon
|
|
72
|
-
slot="prefix"
|
|
73
|
-
variant=${t.iconVariant || "outlined"}
|
|
74
|
-
name=${t.icon}
|
|
75
|
-
></cx-icon>`
|
|
46
|
+
() => a`<cx-icon slot="prefix" variant=${t.iconVariant || "outlined"} name=${t.icon}></cx-icon>`
|
|
76
47
|
)}`
|
|
77
48
|
)}
|
|
78
|
-
${t.name}
|
|
79
|
-
|
|
80
|
-
)}
|
|
81
|
-
</cx-stepper>
|
|
82
|
-
</div>
|
|
83
|
-
</cx-resize-observer>
|
|
84
|
-
`;
|
|
49
|
+
${t.name}</cx-step>`
|
|
50
|
+
)}</cx-stepper></div></cx-resize-observer>`;
|
|
85
51
|
}
|
|
86
52
|
};
|
|
87
53
|
i.styles = [b, C];
|
|
@@ -1,57 +1,40 @@
|
|
|
1
1
|
import { n, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as f } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as u } from "../chunks/watch.
|
|
5
|
-
import { i as
|
|
4
|
+
import { w as u } from "../chunks/watch.BCJD77bD.js";
|
|
5
|
+
import { i as h, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as x } from "../chunks/query.BBf1UFkC.js";
|
|
7
7
|
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
8
|
-
import { o as
|
|
9
|
-
import
|
|
10
|
-
const y =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
row-gap: var(--cx-spacing-2x-small);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.stepper--vertical {
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
/* gap: var(--cx-spacing-medium); */
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (o, t, s, p) => {
|
|
24
|
-
for (var r = p > 1 ? void 0 : p ? b(t, s) : t, a = o.length - 1, l; a >= 0; a--)
|
|
25
|
-
(l = o[a]) && (r = (p ? l(t, s, r) : l(r)) || r);
|
|
26
|
-
return p && r && S(t, s, r), r;
|
|
8
|
+
import { o as w } from "../chunks/style-map.llVFPd__.js";
|
|
9
|
+
import g from "./step.js";
|
|
10
|
+
const y = h`.stepper{row-gap:var(--cx-spacing-2x-small);flex-wrap:wrap;max-width:100%;display:flex}.stepper--vertical{flex-direction:column}`;
|
|
11
|
+
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (s, t, o, p) => {
|
|
12
|
+
for (var r = p > 1 ? void 0 : p ? b(t, o) : t, a = s.length - 1, l; a >= 0; a--)
|
|
13
|
+
(l = s[a]) && (r = (p ? l(t, o, r) : l(r)) || r);
|
|
14
|
+
return p && r && S(t, o, r), r;
|
|
27
15
|
};
|
|
28
16
|
let e = class extends c {
|
|
29
17
|
constructor() {
|
|
30
18
|
super(...arguments), this.direction = "horizontal", this.itemsPerRow = 5;
|
|
31
19
|
}
|
|
32
20
|
handleSlotChange() {
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
t.setAttribute("index",
|
|
21
|
+
const s = this.stepSlot.assignedElements();
|
|
22
|
+
s.forEach((t, o) => {
|
|
23
|
+
t.setAttribute("index", o.toString()), this.direction === "vertical" ? t.setAttribute("round", "") : t.removeAttribute("round"), o === s.length - 1 && t.setAttribute("last", "");
|
|
36
24
|
});
|
|
37
25
|
}
|
|
38
26
|
render() {
|
|
39
|
-
return
|
|
40
|
-
class=${v({
|
|
27
|
+
return d`<div class=${v({
|
|
41
28
|
stepper: !0,
|
|
42
29
|
"stepper--vertical": this.direction === "vertical"
|
|
43
|
-
})}
|
|
44
|
-
style=${g({
|
|
30
|
+
})} style=${w({
|
|
45
31
|
"--columns": Math.max(this.itemsPerRow, 1).toString()
|
|
46
|
-
})}
|
|
47
|
-
>
|
|
48
|
-
<slot name="step" @slotchange=${this.handleSlotChange}></slot>
|
|
49
|
-
</div>`;
|
|
32
|
+
})}><slot name="step" @slotchange=${this.handleSlotChange}></slot></div>`;
|
|
50
33
|
}
|
|
51
34
|
};
|
|
52
35
|
e.styles = [m, y];
|
|
53
36
|
e.dependencies = {
|
|
54
|
-
"cx-step":
|
|
37
|
+
"cx-step": g
|
|
55
38
|
};
|
|
56
39
|
i([
|
|
57
40
|
x('slot[name="step"]')
|
|
@@ -1,227 +1,18 @@
|
|
|
1
1
|
import { n as r, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
3
|
-
import { f } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as w } from "../chunks/default-value.COZopaet.js";
|
|
6
|
-
import { F as b } from "../chunks/form.
|
|
6
|
+
import { F as b } from "../chunks/form.CFc09rKh.js";
|
|
7
7
|
import { H as x } from "../chunks/slot.j5oheLJC.js";
|
|
8
|
-
import { w as u } from "../chunks/watch.
|
|
8
|
+
import { w as u } from "../chunks/watch.BCJD77bD.js";
|
|
9
9
|
import { i as _, x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as g } from "../chunks/state.CSDxrqLd.js";
|
|
11
|
-
import { e as
|
|
11
|
+
import { e as y } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as d } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
|
-
import { o as
|
|
14
|
-
import { l as
|
|
15
|
-
const
|
|
16
|
-
:host {
|
|
17
|
-
display: inline-block;
|
|
18
|
-
--thumb-color: var(--cx-color-neutral-0);
|
|
19
|
-
--thumb-offset: 4px;
|
|
20
|
-
--control-color: var(--cx-color-neutral-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([size='small']) {
|
|
24
|
-
--height: var(--cx-toggle-size-small);
|
|
25
|
-
--thumb-size: calc(var(--cx-toggle-size-small) - var(--thumb-offset));
|
|
26
|
-
--width: calc(var(--height) * 1.75);
|
|
27
|
-
|
|
28
|
-
font-size: var(--cx-input-font-size-small);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([size='medium']) {
|
|
32
|
-
--height: var(--cx-toggle-size-medium);
|
|
33
|
-
--thumb-size: calc(var(--cx-toggle-size-medium) - var(--thumb-offset));
|
|
34
|
-
--width: calc(var(--height) * 1.6);
|
|
35
|
-
|
|
36
|
-
font-size: var(--cx-input-font-size-small);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([size='large']) {
|
|
40
|
-
--height: var(--cx-toggle-size-large);
|
|
41
|
-
--thumb-size: calc(var(--cx-toggle-size-large) - var(--thumb-offset));
|
|
42
|
-
--width: calc(var(--height) * 1.6);
|
|
43
|
-
|
|
44
|
-
font-size: var(--cx-input-font-size-small);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.switch {
|
|
48
|
-
position: relative;
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
font-family: var(--cx-input-font-family);
|
|
52
|
-
font-size: inherit;
|
|
53
|
-
font-weight: var(--cx-input-font-weight);
|
|
54
|
-
color: var(--cx-input-label-color);
|
|
55
|
-
vertical-align: middle;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.switch__control {
|
|
60
|
-
flex: 0 0 auto;
|
|
61
|
-
position: relative;
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
width: var(--width);
|
|
66
|
-
height: var(--height);
|
|
67
|
-
background-color: var(--control-color);
|
|
68
|
-
border: solid var(--cx-input-border-width) var(--control-color);
|
|
69
|
-
border-radius: var(--height);
|
|
70
|
-
transition:
|
|
71
|
-
var(--cx-transition-fast) border-color,
|
|
72
|
-
var(--cx-transition-fast) background-color;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.switch__control .switch__thumb {
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
width: var(--thumb-size);
|
|
80
|
-
height: var(--thumb-size);
|
|
81
|
-
background-color: var(--thumb-color);
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
border: solid var(--cx-input-border-width) var(--control-color);
|
|
84
|
-
transition:
|
|
85
|
-
var(--cx-transition-fast) translate ease,
|
|
86
|
-
var(--cx-transition-fast) background-color,
|
|
87
|
-
var(--cx-transition-fast) border-color,
|
|
88
|
-
var(--cx-transition-fast) box-shadow;
|
|
89
|
-
transform: translateX(calc((var(--width) - var(--height)) / -2));
|
|
90
|
-
}
|
|
91
|
-
@supports (translate: 0px) {
|
|
92
|
-
.switch__control .switch__thumb {
|
|
93
|
-
translate: calc((var(--width) - var(--height)) / -2);
|
|
94
|
-
transform: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.switch__input {
|
|
99
|
-
position: absolute;
|
|
100
|
-
opacity: 0;
|
|
101
|
-
padding: 0;
|
|
102
|
-
margin: 0;
|
|
103
|
-
pointer-events: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Hover */
|
|
107
|
-
.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
|
|
108
|
-
background-color: var(--control-color);
|
|
109
|
-
border-color: var(--control-color);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.switch:not(.switch--checked):not(.switch--disabled)
|
|
113
|
-
.switch__control:hover
|
|
114
|
-
.switch__thumb {
|
|
115
|
-
background-color: var(--thumb-color);
|
|
116
|
-
border-color: var(--control-color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* Focus */
|
|
120
|
-
.switch:not(.switch--disabled)
|
|
121
|
-
.switch__input:focus-visible
|
|
122
|
-
~ .switch__control {
|
|
123
|
-
background-color: var(--control-color);
|
|
124
|
-
border-color: var(--control-color);
|
|
125
|
-
outline: var(--cx-focus-ring);
|
|
126
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* Checked */
|
|
130
|
-
.switch--checked .switch__control {
|
|
131
|
-
background-color: var(--cx-color-primary);
|
|
132
|
-
border-color: var(--cx-color-primary);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.switch--checked .switch__control .switch__thumb {
|
|
136
|
-
background-color: var(--thumb-color);
|
|
137
|
-
border-color: var(--cx-color-primary);
|
|
138
|
-
transform: translateX(calc((var(--width) - var(--height)) / 2));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@supports (translate: 0px) {
|
|
142
|
-
.switch--checked .switch__control .switch__thumb {
|
|
143
|
-
translate: calc((var(--width) - var(--height)) / 2);
|
|
144
|
-
transform: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* Checked + hover */
|
|
149
|
-
.switch.switch--checked:not(.switch--disabled) .switch__control:hover {
|
|
150
|
-
background-color: var(--cx-color-primary-500);
|
|
151
|
-
border-color: var(--cx-color-primary-500);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
155
|
-
.switch__control:hover
|
|
156
|
-
.switch__thumb {
|
|
157
|
-
background-color: var(--thumb-color);
|
|
158
|
-
border-color: var(--cx-color-primary-500);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Checked + focus */
|
|
162
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
163
|
-
.switch__input:focus-visible
|
|
164
|
-
~ .switch__control {
|
|
165
|
-
background-color: var(--cx-color-primary-500);
|
|
166
|
-
border-color: var(--cx-color-primary-500);
|
|
167
|
-
outline: var(--cx-focus-ring);
|
|
168
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* Disabled */
|
|
172
|
-
.switch--disabled {
|
|
173
|
-
opacity: 0.5;
|
|
174
|
-
cursor: default;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.switch__label {
|
|
178
|
-
display: inline-block;
|
|
179
|
-
line-height: var(--height);
|
|
180
|
-
margin-inline-start: 0.5em;
|
|
181
|
-
user-select: none;
|
|
182
|
-
-webkit-user-select: none;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host([required]) .switch__label::after {
|
|
186
|
-
color: var(--cx-input-required-content-color);
|
|
187
|
-
content: var(--cx-input-required-content);
|
|
188
|
-
margin-inline-start: var(--cx-input-required-content-offset);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@media (forced-colors: active) {
|
|
192
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
193
|
-
.switch__control:hover
|
|
194
|
-
.switch__thumb,
|
|
195
|
-
.switch--checked .switch__control .switch__thumb {
|
|
196
|
-
background-color: ButtonText;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.switch__icon {
|
|
201
|
-
user-select: none;
|
|
202
|
-
font-size: var(--cx-input-font-size-large);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.switch:not(.switch--checked) .switch__icon {
|
|
206
|
-
color: var(--control-color);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.switch.switch--checked .switch__icon {
|
|
210
|
-
color: var(--cx-color-primary);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
:host([size='small']) .switch__icon {
|
|
214
|
-
font-size: var(--cx-font-size-x-small);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:host([size='medium']) .switch__icon {
|
|
218
|
-
font-size: var(--cx-font-size-small);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
:host([size='large']) .switch__icon {
|
|
222
|
-
font-size: var(--cx-font-size-medium);
|
|
223
|
-
}
|
|
224
|
-
`;
|
|
13
|
+
import { o as k } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
|
+
import { l as z } from "../chunks/live.SCz6M8Gs.js";
|
|
15
|
+
const C = _`:host{--thumb-color:var(--cx-color-neutral-0);--thumb-offset:4px;--control-color:var(--cx-color-neutral-300);display:inline-block}:host([size=small]){--height:var(--cx-toggle-size-small);--thumb-size:calc(var(--cx-toggle-size-small) - var(--thumb-offset));--width:calc(var(--height) * 1.75);font-size:var(--cx-input-font-size-small)}:host([size=medium]){--height:var(--cx-toggle-size-medium);--thumb-size:calc(var(--cx-toggle-size-medium) - var(--thumb-offset));--width:calc(var(--height) * 1.6);font-size:var(--cx-input-font-size-small)}:host([size=large]){--height:var(--cx-toggle-size-large);--thumb-size:calc(var(--cx-toggle-size-large) - var(--thumb-offset));--width:calc(var(--height) * 1.6);font-size:var(--cx-input-font-size-small)}.switch{font-family:var(--cx-input-font-family);font-size:inherit;font-weight:var(--cx-input-font-weight);color:var(--cx-input-label-color);vertical-align:middle;cursor:pointer;align-items:center;display:inline-flex;position:relative}.switch__control{width:var(--width);height:var(--height);background-color:var(--control-color);border:solid var(--cx-input-border-width) var(--control-color);border-radius:var(--height);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.switch__control .switch__thumb{width:var(--thumb-size);height:var(--thumb-size);background-color:var(--thumb-color);border:solid var(--cx-input-border-width) var(--control-color);transition:var(--cx-transition-fast) translate ease, var(--cx-transition-fast) background-color, var(--cx-transition-fast) border-color, var(--cx-transition-fast) box-shadow;transform:translateX(calc((var(--width) - var(--height)) / -2));border-radius:50%;justify-content:center;align-items:center;display:inline-flex}@supports (translate:0px){.switch__control .switch__thumb{translate:calc((var(--width) - var(--height)) / -2);transform:none}}.switch__input{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute}.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover{background-color:var(--control-color);border-color:var(--control-color)}.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb{background-color:var(--thumb-color);border-color:var(--control-color)}.switch:not(.switch--disabled) .switch__input:focus-visible~.switch__control{background-color:var(--control-color);border-color:var(--control-color);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.switch--checked .switch__control{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary)}.switch--checked .switch__control .switch__thumb{background-color:var(--thumb-color);border-color:var(--cx-color-primary);transform:translateX(calc((var(--width) - var(--height)) / 2))}@supports (translate:0px){.switch--checked .switch__control .switch__thumb{translate:calc((var(--width) - var(--height)) / 2);transform:none}}.switch.switch--checked:not(.switch--disabled) .switch__control:hover{background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500)}.switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb{background-color:var(--thumb-color);border-color:var(--cx-color-primary-500)}.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible~.switch__control{background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.switch--disabled{opacity:.5;cursor:default}.switch__label{line-height:var(--height);-webkit-user-select:none;user-select:none;margin-inline-start:.5em;display:inline-block}:host([required]) .switch__label:after{color:var(--cx-input-required-content-color);content:var(--cx-input-required-content);margin-inline-start:var(--cx-input-required-content-offset)}@media (forced-colors:active){.switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb,.switch--checked .switch__control .switch__thumb{background-color:buttontext}}.switch__icon{user-select:none;font-size:var(--cx-input-font-size-large)}.switch:not(.switch--checked) .switch__icon{color:var(--control-color)}.switch.switch--checked .switch__icon{color:var(--cx-color-primary)}:host([size=small]) .switch__icon{font-size:var(--cx-font-size-x-small)}:host([size=medium]) .switch__icon{font-size:var(--cx-font-size-small)}:host([size=large]) .switch__icon{font-size:var(--cx-font-size-medium)}`;
|
|
225
16
|
var $ = Object.defineProperty, F = Object.getOwnPropertyDescriptor, o = (t, i, l, s) => {
|
|
226
17
|
for (var c = s > 1 ? void 0 : s ? F(i, l) : i, a = t.length - 1, h; a >= 0; a--)
|
|
227
18
|
(h = t[a]) && (c = (s ? h(i, l, c) : h(c)) || c);
|
|
@@ -306,19 +97,13 @@ let e = class extends p {
|
|
|
306
97
|
}
|
|
307
98
|
render() {
|
|
308
99
|
const t = this.hasSlotController.test("help-text"), i = this.helpText ? !0 : !!t;
|
|
309
|
-
return n
|
|
310
|
-
<div
|
|
311
|
-
class=${d({
|
|
100
|
+
return n`<div class=${d({
|
|
312
101
|
"form-control": !0,
|
|
313
102
|
"form-control--has-help-text": i,
|
|
314
103
|
"form-control--large": this.size === "large",
|
|
315
104
|
"form-control--medium": this.size === "medium",
|
|
316
105
|
"form-control--small": this.size === "small"
|
|
317
|
-
})}
|
|
318
|
-
>
|
|
319
|
-
<label
|
|
320
|
-
part="base"
|
|
321
|
-
class=${d({
|
|
106
|
+
})}><label part="base" class=${d({
|
|
322
107
|
switch: !0,
|
|
323
108
|
"switch--checked": this.checked,
|
|
324
109
|
"switch--disabled": this.disabled,
|
|
@@ -326,64 +111,16 @@ let e = class extends p {
|
|
|
326
111
|
"switch--large": this.size === "large",
|
|
327
112
|
"switch--medium": this.size === "medium",
|
|
328
113
|
"switch--small": this.size === "small"
|
|
329
|
-
})}
|
|
330
|
-
>
|
|
331
|
-
<input
|
|
332
|
-
class="switch__input"
|
|
333
|
-
type="checkbox"
|
|
334
|
-
title=${this.title}
|
|
335
|
-
name=${this.name}
|
|
336
|
-
.value=${y(this.value)}
|
|
337
|
-
.checked=${C(this.checked)}
|
|
338
|
-
.disabled=${this.disabled}
|
|
339
|
-
.required=${this.required}
|
|
340
|
-
role="switch"
|
|
341
|
-
aria-checked=${this.checked ? "true" : "false"}
|
|
342
|
-
@click=${this.handleClick}
|
|
343
|
-
@input=${this.handleInput}
|
|
344
|
-
@invalid=${this.handleInvalid}
|
|
345
|
-
@blur=${this.handleBlur}
|
|
346
|
-
@focus=${this.handleFocus}
|
|
347
|
-
@keydown=${this.handleKeyDown}
|
|
348
|
-
/>
|
|
349
|
-
<span part="control" class="switch__control">
|
|
350
|
-
<span part="thumb" class="switch__thumb">
|
|
351
|
-
${this.showIcon ? this.checked ? n`<cx-icon
|
|
352
|
-
part="checked-icon"
|
|
353
|
-
class="switch__icon"
|
|
354
|
-
name="check"
|
|
355
|
-
></cx-icon>` : n`<cx-icon
|
|
356
|
-
part="unchecked-icon"
|
|
357
|
-
class="switch__icon"
|
|
358
|
-
name="close"
|
|
359
|
-
></cx-icon>` : ""}
|
|
360
|
-
</span>
|
|
361
|
-
</span>
|
|
362
|
-
|
|
363
|
-
<div part="label" class="switch__label">
|
|
364
|
-
<slot></slot>
|
|
365
|
-
</div>
|
|
366
|
-
</label>
|
|
367
|
-
|
|
368
|
-
<div
|
|
369
|
-
aria-hidden=${i ? "false" : "true"}
|
|
370
|
-
class="form-control__help-text"
|
|
371
|
-
id="help-text"
|
|
372
|
-
part="form-control-help-text"
|
|
373
|
-
>
|
|
374
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
375
|
-
</div>
|
|
376
|
-
</div>
|
|
377
|
-
`;
|
|
114
|
+
})}><input class="switch__input" type="checkbox" title=${this.title} name=${this.name} .value=${k(this.value)} .checked=${z(this.checked)} .disabled=${this.disabled} .required=${this.required} role="switch" aria-checked=${this.checked ? "true" : "false"} @click=${this.handleClick} @input=${this.handleInput} @invalid=${this.handleInvalid} @blur=${this.handleBlur} @focus=${this.handleFocus} @keydown=${this.handleKeyDown}><span part="control" class="switch__control"><span part="thumb" class="switch__thumb">${this.showIcon ? this.checked ? n`<cx-icon part="checked-icon" class="switch__icon" name="check"></cx-icon>` : n`<cx-icon part="unchecked-icon" class="switch__icon" name="close"></cx-icon>` : ""}</span></span><div part="label" class="switch__label"><slot></slot></div></label><div aria-hidden=${i ? "false" : "true"} class="form-control__help-text" id="help-text" part="form-control-help-text"><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
378
115
|
}
|
|
379
116
|
};
|
|
380
117
|
e.styles = [
|
|
381
118
|
m,
|
|
382
119
|
f,
|
|
383
|
-
|
|
120
|
+
C
|
|
384
121
|
];
|
|
385
122
|
o([
|
|
386
|
-
|
|
123
|
+
y('input[type="checkbox"]')
|
|
387
124
|
], e.prototype, "input", 2);
|
|
388
125
|
o([
|
|
389
126
|
g()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./resize-observer.js";
|
|
2
2
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
|
-
import "../chunks/component.styles.
|
|
4
|
-
import { C as A } from "../chunks/tab-group.
|
|
3
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
|
+
import { C as A } from "../chunks/tab-group.0Po0eoxR.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import "../chunks/i18n.
|
|
6
|
+
import "../chunks/i18n.BFqTRDCA.js";
|
|
7
7
|
import "../chunks/scroll.xtO5yojm.js";
|
|
8
|
-
import "../chunks/watch.
|
|
9
|
-
import "../chunks/dom.
|
|
8
|
+
import "../chunks/watch.BCJD77bD.js";
|
|
9
|
+
import "../chunks/dom.BslZF2Y_.js";
|
|
10
10
|
import "../chunks/parse.Cu5nBDTb.js";
|
|
11
11
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
12
12
|
import "../chunks/state.CSDxrqLd.js";
|
|
@@ -18,9 +18,9 @@ import "../chunks/guard.D4axKaMo.js";
|
|
|
18
18
|
import "../chunks/map.D8heArFD.js";
|
|
19
19
|
import "../chunks/style-map.llVFPd__.js";
|
|
20
20
|
import "../chunks/when.Dr1es41R.js";
|
|
21
|
-
import "../chunks/button.
|
|
21
|
+
import "../chunks/button.CauAHfdl.js";
|
|
22
22
|
import "./dropdown.js";
|
|
23
|
-
import "
|
|
23
|
+
import "../chunks/icon-button.rKe0N4VB.js";
|
|
24
24
|
import "./menu.js";
|
|
25
25
|
import "./menu-item.js";
|
|
26
26
|
import "./tab.js";
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
import { n as p, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as h } from "../chunks/component.styles.
|
|
2
|
+
import { c as h } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as d } from "../chunks/watch.
|
|
4
|
+
import { w as d } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as v, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as u } from "../chunks/class-map.BiVq-cVR.js";
|
|
7
|
-
const b = v
|
|
8
|
-
:host {
|
|
9
|
-
--padding: 0;
|
|
10
|
-
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::slotted(cx-column) {
|
|
15
|
-
padding: var(--cx-spacing-3x-small);
|
|
16
|
-
min-height: max(var(--min-height), 24px);
|
|
17
|
-
max-height: var(--max-height, 100%);
|
|
18
|
-
overflow: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([active]) {
|
|
22
|
-
display: block;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tab-panel {
|
|
26
|
-
display: block;
|
|
27
|
-
padding: var(--padding);
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
7
|
+
const b = v`:host{--padding:0;display:none}::slotted(cx-column){padding:var(--cx-spacing-3x-small);min-height:max(var(--min-height), 24px);max-height:var(--max-height,100%);overflow:auto}:host([active]){display:block}.tab-panel{padding:var(--padding);display:block}`;
|
|
30
8
|
var x = Object.defineProperty, g = Object.getOwnPropertyDescriptor, s = (l, a, i, r) => {
|
|
31
9
|
for (var t = r > 1 ? void 0 : r ? g(a, i) : a, o = l.length - 1, n; o >= 0; o--)
|
|
32
10
|
(n = l[o]) && (t = (r ? n(a, i, t) : n(t)) || t);
|
|
@@ -43,15 +21,10 @@ let y = 0, e = class extends c {
|
|
|
43
21
|
this.setAttribute("aria-hidden", this.active ? "false" : "true");
|
|
44
22
|
}
|
|
45
23
|
render() {
|
|
46
|
-
return f
|
|
47
|
-
<slot
|
|
48
|
-
part="base"
|
|
49
|
-
class=${u({
|
|
24
|
+
return f`<slot part="base" class=${u({
|
|
50
25
|
"tab-panel": !0,
|
|
51
26
|
"tab-panel--active": this.active
|
|
52
|
-
})}
|
|
53
|
-
></slot>
|
|
54
|
-
`;
|
|
27
|
+
})}></slot>`;
|
|
55
28
|
}
|
|
56
29
|
};
|
|
57
30
|
e.styles = [h, b];
|