@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
- package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.D7E0-cUV.js +460 -0
- package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
- package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
- package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
- package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
- package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
- package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
- package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
- package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
- package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
- package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/folder-select.BT1drT8C.js +775 -0
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
- package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.BePZwMCQ.js +170 -0
- package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
- package/library/chunks/icon-button.rKe0N4VB.js +149 -0
- package/library/chunks/iframe.DznmlYpV.js +73 -0
- package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
- package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.COnEtd3X.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/pagination.DaD9Yul6.js +334 -0
- package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
- package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/string.BigZhczf.js +185 -0
- package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
- package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
- package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/toast.B2cJgW5u.js +71 -0
- package/library/chunks/transformation.CzBptarI.js +140 -0
- package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +11 -179
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +13 -101
- package/library/components/animation.js +3 -3
- package/library/components/array-line-clamp.js +8 -89
- package/library/components/asset-link-format.js +718 -1380
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +6 -95
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +5 -26
- package/library/components/breadcrumb-item.js +25 -156
- package/library/components/breadcrumb.js +4 -22
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +6 -6
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +13 -254
- package/library/components/color-picker.js +57 -728
- package/library/components/color-swatch-group.js +9 -9
- package/library/components/color-swatch.js +5 -5
- package/library/components/confirm-popover.js +6 -6
- package/library/components/copy-button.js +11 -256
- package/library/components/corner-position-input-group.js +5 -58
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +6 -6
- package/library/components/divider.js +6 -68
- package/library/components/dot-pagination.js +4 -4
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +11 -242
- package/library/components/dropdown.js +49 -151
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +8 -51
- package/library/components/element-clamp.js +7 -80
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +9 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +3 -7
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +4 -14
- package/library/components/grid-item.js +5 -172
- package/library/components/grid.js +5 -41
- package/library/components/header.js +4 -4
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +14 -679
- package/library/components/icon.js +9 -2449
- package/library/components/iframe.js +4 -4
- package/library/components/image-comparer.js +9 -129
- package/library/components/image.js +4 -4
- package/library/components/include.js +3 -7
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +358 -966
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +9 -9
- package/library/components/markdown.js +2 -4
- package/library/components/masonry.js +24 -223
- package/library/components/menu-item.js +155 -445
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +5 -113
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +3 -7
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +10 -8
- package/library/components/popup.js +385 -682
- package/library/components/position-picker.js +4 -94
- package/library/components/progress-bar.js +19 -136
- package/library/components/progress-ring.js +4 -95
- package/library/components/qr-code.js +5 -17
- package/library/components/radio-button.js +5 -25
- package/library/components/radio-card.js +8 -176
- package/library/components/radio-group.js +22 -153
- package/library/components/radio.js +14 -171
- package/library/components/range.js +123 -660
- package/library/components/rating.js +58 -238
- package/library/components/relative-time.js +3 -13
- package/library/components/resize-observer.js +4 -8
- package/library/components/select.js +305 -1012
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +21 -313
- package/library/components/sidebar.js +15 -221
- package/library/components/size-input-group.js +12 -77
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +7 -76
- package/library/components/split-panel.js +18 -125
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +17 -34
- package/library/components/switch.js +13 -276
- package/library/components/tab-group.js +7 -7
- package/library/components/tab-panel.js +5 -32
- package/library/components/tab.js +11 -257
- package/library/components/table.js +8 -8
- package/library/components/tag.js +15 -166
- package/library/components/textarea.js +183 -504
- package/library/components/timecode.js +6 -25
- package/library/components/tooltip.js +10 -94
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +24 -123
- package/library/components/types.js +37225 -47339
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3875 -6263
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
- package/library/packages/atoms/src/components/input/input.d.ts +10 -2
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/table.d.ts +49 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +11 -1
- package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
- package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
- package/library/packages/organisms/src/comment/comment.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +27 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/types/src/icon-button.d.ts +7 -0
- package/library/packages/types/src/menu-item.d.ts +33 -0
- package/library/packages/types/src/storybook.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +37 -1
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/types/src/video-format-picker.d.ts +11 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +33 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +293 -29
- package/library/utils.js +483 -178
- package/package.json +4 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/asset.CG_yXtWK.js +0 -288
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
- package/library/chunks/content-builder.D_phDrlo.js +0 -127
- package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
- package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
- package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.BduX6KJP.js +0 -777
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/iframe.BPKV2K7z.js +0 -160
- package/library/chunks/index.B3wJT3XS.js +0 -373
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/option.DnpkE8Xi.js +0 -296
- package/library/chunks/pagination.C30LoTya.js +0 -341
- package/library/chunks/string.B_rEG27K.js +0 -160
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/chunks/typography.oDzoLbZS.js +0 -149
- package/library/chunks/url.LjsR2sB5.js +0 -15
- package/library/chunks/watch.q1sEjPWL.js +0 -501
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as o, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
2
|
+
import { c as u } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as p } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { H as m } from "../chunks/slot.j5oheLJC.js";
|
|
5
|
-
import { w as h } from "../chunks/watch.
|
|
5
|
+
import { w as h } from "../chunks/watch.BCJD77bD.js";
|
|
6
6
|
import { i as f, x as g } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
7
|
import { r as n } from "../chunks/state.CSDxrqLd.js";
|
|
8
8
|
import { e as x } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -10,154 +10,7 @@ import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
|
10
10
|
import _ from "./card.js";
|
|
11
11
|
import C from "./line-clamp.js";
|
|
12
12
|
import y from "./radio.js";
|
|
13
|
-
const k = f
|
|
14
|
-
:host {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
width: 100%;
|
|
19
|
-
position: relative;
|
|
20
|
-
--label-color: var(--cx-input-label-color);
|
|
21
|
-
--label-text-align: left;
|
|
22
|
-
--description-color: var(--cx-input-label-color);
|
|
23
|
-
--description-text-align: left;
|
|
24
|
-
--toggle-size: var(--cx-toggle-size-large);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host(:focus-visible) {
|
|
28
|
-
outline: 0px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.radio-card {
|
|
32
|
-
--border-radius: var(--cx-border-radius-large);
|
|
33
|
-
--box-shadow: none;
|
|
34
|
-
--padding: var(--cx-spacing-small);
|
|
35
|
-
--image-border-radius: var(--cx-border-radius-medium);
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
width: var(--card-width, 100%);
|
|
38
|
-
height: var(--card-height, 100%);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.radio-card--checked:not(.radio-card--grouped)::part(base) {
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.radio-card--grouped::part(base) {
|
|
46
|
-
border-radius: 0;
|
|
47
|
-
border-top-width: 0;
|
|
48
|
-
height: 100%;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.radio-card--grouped.radio-card--horizontal::part(base) {
|
|
52
|
-
border-left-width: 0;
|
|
53
|
-
border-top-width: var(--border-width);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host(:first-child) .radio-card--grouped::part(base) {
|
|
57
|
-
border-top-left-radius: var(--border-radius);
|
|
58
|
-
border-top-right-radius: var(--border-radius);
|
|
59
|
-
border-bottom-left-radius: 0;
|
|
60
|
-
border-bottom-right-radius: 0;
|
|
61
|
-
border-top-width: var(--border-width);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host(:last-child) .radio-card--grouped::part(base) {
|
|
65
|
-
border-bottom-left-radius: var(--border-radius);
|
|
66
|
-
border-bottom-right-radius: var(--border-radius);
|
|
67
|
-
border-top-left-radius: 0;
|
|
68
|
-
border-top-right-radius: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host(:first-child) .radio-card--grouped.radio-card--horizontal::part(base) {
|
|
72
|
-
border-top-left-radius: var(--border-radius);
|
|
73
|
-
border-bottom-left-radius: var(--border-radius);
|
|
74
|
-
border-top-right-radius: 0;
|
|
75
|
-
border-bottom-right-radius: 0;
|
|
76
|
-
border-left-width: var(--border-width);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host(:last-child) .radio-card--grouped.radio-card--horizontal::part(base) {
|
|
80
|
-
border-top-right-radius: var(--border-radius);
|
|
81
|
-
border-bottom-right-radius: var(--border-radius);
|
|
82
|
-
border-top-left-radius: 0;
|
|
83
|
-
border-bottom-left-radius: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.radio-card::part(image) {
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.radio-card--compact::part(image) {
|
|
91
|
-
display: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.radio-card--checked:not(.radio-card--grouped) {
|
|
95
|
-
--border-color: var(--cx-color-primary);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.radio-card--checked::part(base) {
|
|
99
|
-
background-color: var(--cx-color-primary-50);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.radio-card--disabled {
|
|
103
|
-
opacity: 0.5;
|
|
104
|
-
cursor: default;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.radio-card__label {
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: space-between;
|
|
111
|
-
gap: var(--cx-spacing-2x-small);
|
|
112
|
-
text-transform: var(--cx-radio-card-label-text-transform, none);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.radio-card__description {
|
|
116
|
-
margin-left: calc(var(--toggle-size) + 0.5em);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.radio-card__description > cx-line-clamp {
|
|
120
|
-
color: var(--description-color);
|
|
121
|
-
line-height: var(--cx-line-height-medium);
|
|
122
|
-
text-align: var(--description-text-align);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.radio-card__label > cx-line-clamp {
|
|
126
|
-
color: var(--label-color);
|
|
127
|
-
flex: 1 1 auto;
|
|
128
|
-
text-align: var(--label-text-align);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.radio-card--has-suffix .radio-card__label__suffix {
|
|
132
|
-
width: 3rem;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.radio-card__label__suffix {
|
|
136
|
-
display: flex;
|
|
137
|
-
justify-content: flex-end;
|
|
138
|
-
height: fit-content;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.radio-card__image::slotted(img),
|
|
142
|
-
.radio-card__image::slotted(svg) {
|
|
143
|
-
border-radius: var(--cx-border-radius-small);
|
|
144
|
-
width: 100%;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.radio-card__image::slotted(*) {
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
cx-radio {
|
|
153
|
-
--toggle-size: var(--toggle-size);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
cx-radio::part(base) {
|
|
157
|
-
align-items: center;
|
|
158
|
-
width: 100%;
|
|
159
|
-
}
|
|
160
|
-
`;
|
|
13
|
+
const k = f`:host{--label-color:var(--cx-input-label-color);--label-text-align:left;--description-color:var(--cx-input-label-color);--description-text-align:left;--toggle-size:var(--cx-toggle-size-large);flex-direction:column;align-items:center;width:100%;display:flex;position:relative}:host(:focus-visible){outline:0}.radio-card{--border-radius:var(--cx-border-radius-large);--box-shadow:none;--padding:var(--cx-spacing-small);--image-border-radius:var(--cx-border-radius-medium);cursor:pointer;width:var(--card-width,100%);height:var(--card-height,100%)}.radio-card--checked:not(.radio-card--grouped)::part(base){height:100%}.radio-card--grouped::part(base){border-top-width:0;border-radius:0;height:100%}.radio-card--grouped.radio-card--horizontal::part(base){border-left-width:0;border-top-width:var(--border-width)}:host(:first-child) .radio-card--grouped::part(base){border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-top-width:var(--border-width);border-bottom-right-radius:0;border-bottom-left-radius:0}:host(:last-child) .radio-card--grouped::part(base){border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-top-left-radius:0;border-top-right-radius:0}:host(:first-child) .radio-card--grouped.radio-card--horizontal::part(base){border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);border-left-width:var(--border-width);border-top-right-radius:0;border-bottom-right-radius:0}:host(:last-child) .radio-card--grouped.radio-card--horizontal::part(base){border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.radio-card::part(image){background-color:#0000}.radio-card--compact::part(image){display:none}.radio-card--checked:not(.radio-card--grouped){--border-color:var(--cx-color-primary)}.radio-card--checked::part(base){background-color:var(--cx-color-primary-50)}.radio-card--disabled{opacity:.5;cursor:default}.radio-card__label{justify-content:space-between;align-items:center;gap:var(--cx-spacing-2x-small);text-transform:var(--cx-radio-card-label-text-transform,none);display:flex}.radio-card__description{margin-left:calc(var(--toggle-size) + .5em)}.radio-card__description>cx-line-clamp{color:var(--description-color);line-height:var(--cx-line-height-medium);text-align:var(--description-text-align)}.radio-card__label>cx-line-clamp{color:var(--label-color);text-align:var(--label-text-align);flex:auto}.radio-card--has-suffix .radio-card__label__suffix{width:3rem}.radio-card__label__suffix{justify-content:flex-end;height:fit-content;display:flex}.radio-card__image::slotted(img),.radio-card__image::slotted(svg){border-radius:var(--cx-border-radius-small);width:100%}.radio-card__image::slotted(*){flex-direction:column;display:flex}cx-radio{--toggle-size:var(--toggle-size)}cx-radio::part(base){align-items:center;width:100%}`;
|
|
161
14
|
var w = Object.defineProperty, A = Object.getOwnPropertyDescriptor, e = (i, a, s, d) => {
|
|
162
15
|
for (var t = d > 1 ? void 0 : d ? A(a, s) : a, l = i.length - 1, c; l >= 0; l--)
|
|
163
16
|
(c = i[l]) && (t = (d ? c(a, s, t) : c(t)) || t);
|
|
@@ -190,9 +43,7 @@ let r = class extends b {
|
|
|
190
43
|
}
|
|
191
44
|
render() {
|
|
192
45
|
const i = this.parentElement?.getAttribute("compact") !== null, a = this.parentElement?.getAttribute("horizontal") !== null;
|
|
193
|
-
return g`<cx-card
|
|
194
|
-
part="base"
|
|
195
|
-
class=${v({
|
|
46
|
+
return g`<cx-card part="base" class=${v({
|
|
196
47
|
"radio-card": !0,
|
|
197
48
|
"radio-card--checked": this.checked,
|
|
198
49
|
"radio-card--compact": !this.querySelector('[slot="image"]'),
|
|
@@ -201,29 +52,10 @@ let r = class extends b {
|
|
|
201
52
|
"radio-card--grouped": i,
|
|
202
53
|
"radio-card--has-suffix": this.hasSlotController.test("suffix"),
|
|
203
54
|
"radio-card--horizontal": a
|
|
204
|
-
})}
|
|
205
|
-
>
|
|
206
|
-
<slot name="image" slot="image" class="radio-card__image"></slot>
|
|
207
|
-
<cx-radio
|
|
208
|
-
?disabled=${this.disabled}
|
|
209
|
-
?hide-indicator=${this.hideIndicator}
|
|
210
|
-
>
|
|
211
|
-
<div class="radio-card__label">
|
|
212
|
-
<cx-line-clamp lines=${this.disabledLineClamp ? 0 : 1}>
|
|
213
|
-
<slot></slot>
|
|
214
|
-
</cx-line-clamp>
|
|
215
|
-
<slot name="suffix" class="radio-card__label__suffix"></slot>
|
|
216
|
-
</div>
|
|
217
|
-
</cx-radio>
|
|
218
|
-
<div class="radio-card__description">
|
|
219
|
-
<cx-line-clamp lines=${this.disabledLineClamp ? 0 : 3}>
|
|
220
|
-
<slot name="help-text"></slot>
|
|
221
|
-
</cx-line-clamp>
|
|
222
|
-
</div>
|
|
223
|
-
</cx-card>`;
|
|
55
|
+
})}><slot name="image" slot="image" class="radio-card__image"></slot><cx-radio ?disabled=${this.disabled} ?hide-indicator=${this.hideIndicator}><div class="radio-card__label"><cx-line-clamp lines=${this.disabledLineClamp ? 0 : 1}><slot></slot></cx-line-clamp><slot name="suffix" class="radio-card__label__suffix"></slot></div></cx-radio><div class="radio-card__description"><cx-line-clamp lines=${this.disabledLineClamp ? 0 : 3}><slot name="help-text"></slot></cx-line-clamp></div></cx-card>`;
|
|
224
56
|
}
|
|
225
57
|
};
|
|
226
|
-
r.styles = [
|
|
58
|
+
r.styles = [u, k];
|
|
227
59
|
r.dependencies = {
|
|
228
60
|
"cx-card": _,
|
|
229
61
|
"cx-line-clamp": C,
|
|
@@ -257,7 +89,7 @@ e([
|
|
|
257
89
|
h("disabled", { waitUntilFirstUpdate: !0 })
|
|
258
90
|
], r.prototype, "handleDisabledChange", 1);
|
|
259
91
|
r = e([
|
|
260
|
-
|
|
92
|
+
p("cx-radio-card")
|
|
261
93
|
], r);
|
|
262
94
|
export {
|
|
263
95
|
r as default
|
|
@@ -1,83 +1,22 @@
|
|
|
1
1
|
import { n as d, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as g } from "../chunks/component.styles.
|
|
3
|
-
import { f as y } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as g } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f as y } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as x } from "../chunks/default-value.COZopaet.js";
|
|
6
|
-
import { F as b, c as C, a as w, v as R } from "../chunks/form.
|
|
6
|
+
import { F as b, c as C, a as w, v as R } from "../chunks/form.CFc09rKh.js";
|
|
7
7
|
import { H as V } from "../chunks/slot.j5oheLJC.js";
|
|
8
|
-
import { w as h } from "../chunks/watch.
|
|
8
|
+
import { w as h } from "../chunks/watch.BCJD77bD.js";
|
|
9
9
|
import { i as E, x as u } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as p } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as m } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as c } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
13
|
import { o as _ } from "../chunks/style-map.llVFPd__.js";
|
|
14
14
|
import A from "./button-group.js";
|
|
15
|
-
const M = E
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.form-control {
|
|
22
|
-
position: relative;
|
|
23
|
-
border: none;
|
|
24
|
-
padding: 0;
|
|
25
|
-
margin: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.form-control__label {
|
|
29
|
-
padding: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.radio-group {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
align-items: flex-start;
|
|
36
|
-
gap: var(--radio-group-gap);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.radio-group--compact {
|
|
40
|
-
--radio-group-gap: 0px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.radio-group--horizontal {
|
|
44
|
-
align-items: stretch;
|
|
45
|
-
flex-direction: row;
|
|
46
|
-
flex-wrap: wrap;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.radio-group--horizontal slot::slotted(cx-radio-card) {
|
|
50
|
-
flex-basis: calc(
|
|
51
|
-
100% / var(--radio-group-columns) - var(--radio-group-gap) /
|
|
52
|
-
var(--radio-group-columns) * (var(--radio-group-columns) - 1)
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.radio-group--horizontal.radio-group--filled slot::slotted(cx-radio-card) {
|
|
57
|
-
flex-basis: auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.radio-group--required .radio-group__label::after {
|
|
61
|
-
content: var(--cx-input-required-content);
|
|
62
|
-
margin-inline-start: var(--cx-input-required-content-offset);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.visually-hidden {
|
|
66
|
-
position: absolute;
|
|
67
|
-
width: 1px;
|
|
68
|
-
height: 1px;
|
|
69
|
-
padding: 0;
|
|
70
|
-
margin: -1px;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
clip: rect(0, 0, 0, 0);
|
|
73
|
-
white-space: nowrap;
|
|
74
|
-
border: 0;
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
77
|
-
var k = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (e, t, a, s) => {
|
|
78
|
-
for (var r = s > 1 ? void 0 : s ? S(t, a) : t, l = e.length - 1, n; l >= 0; l--)
|
|
79
|
-
(n = e[l]) && (r = (s ? n(t, a, r) : n(r)) || r);
|
|
80
|
-
return s && r && k(t, a, r), r;
|
|
15
|
+
const M = E`:host{--radio-group-gap:var(--cx-spacing-x-small);display:block}.form-control{border:none;margin:0;padding:0;position:relative}.form-control__label{padding:0}.radio-group{align-items:flex-start;gap:var(--radio-group-gap);flex-direction:column;display:flex}.radio-group--compact{--radio-group-gap:0px}.radio-group--horizontal{flex-flow:wrap;align-items:stretch}.radio-group--horizontal slot::slotted(cx-radio-card){flex-basis:calc(100% / var(--radio-group-columns) - var(--radio-group-gap) / var(--radio-group-columns) * (var(--radio-group-columns) - 1))}.radio-group--horizontal.radio-group--filled slot::slotted(cx-radio-card){flex-basis:auto}.radio-group--required .radio-group__label:after{content:var(--cx-input-required-content);margin-inline-start:var(--cx-input-required-content-offset)}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;
|
|
16
|
+
var k = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (e, t, s, a) => {
|
|
17
|
+
for (var r = a > 1 ? void 0 : a ? S(t, s) : t, l = e.length - 1, n; l >= 0; l--)
|
|
18
|
+
(n = e[l]) && (r = (a ? n(t, s, r) : n(r)) || r);
|
|
19
|
+
return a && r && k(t, s, r), r;
|
|
81
20
|
};
|
|
82
21
|
let o = class extends f {
|
|
83
22
|
constructor() {
|
|
@@ -108,23 +47,23 @@ let o = class extends f {
|
|
|
108
47
|
];
|
|
109
48
|
}
|
|
110
49
|
handleRadioClick(e) {
|
|
111
|
-
const t = e.target.closest("cx-radio, cx-radio-button, cx-radio-card"),
|
|
112
|
-
!t || t.disabled || (this.value = t.value,
|
|
50
|
+
const t = e.target.closest("cx-radio, cx-radio-button, cx-radio-card"), s = this.getAllRadios(), a = this.value;
|
|
51
|
+
!t || t.disabled || (this.value = t.value, s.forEach((r) => r.checked = r === t), this.value !== a && (this.emit("cx-change"), this.emit("cx-input")));
|
|
113
52
|
}
|
|
114
53
|
handleKeyDown(e) {
|
|
115
54
|
if (!["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", " "].includes(
|
|
116
55
|
e.key
|
|
117
56
|
))
|
|
118
57
|
return;
|
|
119
|
-
const t = this.getAllRadios().filter((n) => !n.disabled),
|
|
120
|
-
let l = t.indexOf(
|
|
58
|
+
const t = this.getAllRadios().filter((n) => !n.disabled), s = t.find((n) => n.checked) ?? t[0], a = e.key === " " ? 0 : ["ArrowUp", "ArrowLeft"].includes(e.key) ? -1 : 1, r = this.value;
|
|
59
|
+
let l = t.indexOf(s) + a;
|
|
121
60
|
l < 0 && (l = t.length - 1), l > t.length - 1 && (l = 0), this.getAllRadios().forEach((n) => {
|
|
122
61
|
n.checked = !1, this.hasButtonGroup || n.setAttribute("tabindex", "-1");
|
|
123
62
|
}), this.value = t[l].value, t[l].checked = !0, this.hasButtonGroup ? t[l].shadowRoot.querySelector("button").focus() : (t[l].setAttribute("tabindex", "0"), t[l].focus()), this.value !== r && (this.emit("cx-change"), this.emit("cx-input")), e.preventDefault();
|
|
124
63
|
}
|
|
125
64
|
handleLabelClick() {
|
|
126
|
-
const e = this.getAllRadios(),
|
|
127
|
-
|
|
65
|
+
const e = this.getAllRadios(), s = e.find((a) => a.checked) || e[0];
|
|
66
|
+
s && s.focus();
|
|
128
67
|
}
|
|
129
68
|
handleInvalid(e) {
|
|
130
69
|
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
|
|
@@ -187,93 +126,23 @@ let o = class extends f {
|
|
|
187
126
|
this.customValidityMessage = e, this.errorMessage = e, this.validationInput.setCustomValidity(e), this.formControlController.updateValidity();
|
|
188
127
|
}
|
|
189
128
|
render() {
|
|
190
|
-
const e = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"),
|
|
191
|
-
|
|
192
|
-
@slotchange=${this.syncRadios}
|
|
193
|
-
@click=${this.handleRadioClick}
|
|
194
|
-
@keydown=${this.handleKeyDown}
|
|
195
|
-
></slot>
|
|
196
|
-
`;
|
|
197
|
-
return u`
|
|
198
|
-
<fieldset
|
|
199
|
-
part="form-control"
|
|
200
|
-
class=${c({
|
|
129
|
+
const e = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"), s = this.label ? !0 : !!e, a = this.helpText ? !0 : !!t, r = u`<slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>`;
|
|
130
|
+
return u`<fieldset part="form-control" class=${c({
|
|
201
131
|
"form-control": !0,
|
|
202
|
-
"form-control--has-help-text":
|
|
203
|
-
"form-control--has-label":
|
|
132
|
+
"form-control--has-help-text": a,
|
|
133
|
+
"form-control--has-label": s,
|
|
204
134
|
"form-control--large": this.size === "large",
|
|
205
135
|
"form-control--medium": this.size === "medium",
|
|
206
136
|
"form-control--radio-group": !0,
|
|
207
137
|
"form-control--small": this.size === "small"
|
|
208
|
-
})}
|
|
209
|
-
role="radiogroup"
|
|
210
|
-
aria-labelledby="label"
|
|
211
|
-
aria-describedby="help-text"
|
|
212
|
-
aria-errormessage="error-message"
|
|
213
|
-
>
|
|
214
|
-
<label
|
|
215
|
-
part="form-control-label"
|
|
216
|
-
id="label"
|
|
217
|
-
class="form-control__label"
|
|
218
|
-
aria-hidden=${a ? "false" : "true"}
|
|
219
|
-
@click=${this.handleLabelClick}
|
|
220
|
-
>
|
|
221
|
-
<slot name="label">${this.label}</slot>
|
|
222
|
-
</label>
|
|
223
|
-
|
|
224
|
-
<div part="form-control-input" class="form-control-input">
|
|
225
|
-
<div class="visually-hidden">
|
|
226
|
-
<div id="error-message" aria-live="assertive">
|
|
227
|
-
${this.errorMessage}
|
|
228
|
-
</div>
|
|
229
|
-
<label class="radio-group__validation">
|
|
230
|
-
<input
|
|
231
|
-
type="text"
|
|
232
|
-
class="radio-group__validation-input"
|
|
233
|
-
?required=${this.required}
|
|
234
|
-
tabindex="-1"
|
|
235
|
-
hidden
|
|
236
|
-
@invalid=${this.handleInvalid}
|
|
237
|
-
/>
|
|
238
|
-
</label>
|
|
239
|
-
</div>
|
|
240
|
-
|
|
241
|
-
${this.hasButtonGroup ? u`
|
|
242
|
-
<cx-button-group
|
|
243
|
-
part="button-group"
|
|
244
|
-
exportparts="base:button-group__base"
|
|
245
|
-
role="presentation"
|
|
246
|
-
>
|
|
247
|
-
${r}
|
|
248
|
-
</cx-button-group>
|
|
249
|
-
` : u`
|
|
250
|
-
<div
|
|
251
|
-
role="radiogroup"
|
|
252
|
-
class=${c({
|
|
138
|
+
})} role="radiogroup" aria-labelledby="label" aria-describedby="help-text" aria-errormessage="error-message"><label part="form-control-label" id="label" class="form-control__label" aria-hidden=${s ? "false" : "true"} @click=${this.handleLabelClick}><slot name="label">${this.label}</slot></label><div part="form-control-input" class="form-control-input"><div class="visually-hidden"><div id="error-message" aria-live="assertive">${this.errorMessage}</div><label class="radio-group__validation"><input type="text" class="radio-group__validation-input" ?required=${this.required} tabindex="-1" hidden @invalid=${this.handleInvalid}></label></div>${this.hasButtonGroup ? u`<cx-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${r}</cx-button-group>` : u`<div role="radiogroup" class=${c({
|
|
253
139
|
"radio-group": !0,
|
|
254
140
|
"radio-group--compact": this.compact,
|
|
255
141
|
"radio-group--filled": this.itemsPerRow < 1,
|
|
256
142
|
"radio-group--horizontal": this.horizontal
|
|
257
|
-
})}
|
|
258
|
-
style=${_({
|
|
143
|
+
})} style=${_({
|
|
259
144
|
"--radio-group-columns": this.itemsPerRow
|
|
260
|
-
})}
|
|
261
|
-
>
|
|
262
|
-
${r}
|
|
263
|
-
</div>
|
|
264
|
-
`}
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<div
|
|
268
|
-
part="form-control-help-text"
|
|
269
|
-
id="help-text"
|
|
270
|
-
class="form-control__help-text"
|
|
271
|
-
aria-hidden=${s ? "false" : "true"}
|
|
272
|
-
>
|
|
273
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
274
|
-
</div>
|
|
275
|
-
</fieldset>
|
|
276
|
-
`;
|
|
145
|
+
})}>${r}</div>`}</div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${a ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></fieldset>`;
|
|
277
146
|
}
|
|
278
147
|
};
|
|
279
148
|
o.styles = [
|
|
@@ -1,157 +1,17 @@
|
|
|
1
1
|
import { n as r, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as b } from "../chunks/component.styles.
|
|
2
|
+
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as f } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { H as v } from "../chunks/slot.j5oheLJC.js";
|
|
5
|
-
import { w as h } from "../chunks/watch.
|
|
6
|
-
import { i as g, b as m, x
|
|
5
|
+
import { w as h } from "../chunks/watch.BCJD77bD.js";
|
|
6
|
+
import { i as g, b as m, x } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
7
|
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
8
8
|
import { e as n } from "../chunks/class-map.BiVq-cVR.js";
|
|
9
|
-
import
|
|
10
|
-
const _ = g
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
:host(:focus-visible) {
|
|
16
|
-
outline: 0px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.radio {
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
align-items: top;
|
|
22
|
-
font-family: var(--cx-input-font-family);
|
|
23
|
-
font-size: var(--cx-input-font-size-medium);
|
|
24
|
-
font-weight: var(--cx-input-font-weight);
|
|
25
|
-
color: var(--cx-input-label-color);
|
|
26
|
-
vertical-align: middle;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.radio--small {
|
|
31
|
-
--toggle-size: var(--cx-toggle-size-small);
|
|
32
|
-
font-size: var(--cx-input-font-size-small);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.radio--medium {
|
|
36
|
-
--toggle-size: var(--cx-toggle-size-medium);
|
|
37
|
-
font-size: var(--cx-input-font-size-small);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.radio--large {
|
|
41
|
-
--toggle-size: var(--cx-toggle-size-large);
|
|
42
|
-
font-size: var(--cx-input-font-size-small);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.radio__checked-icon {
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.radio__control {
|
|
50
|
-
flex: 0 0 auto;
|
|
51
|
-
position: relative;
|
|
52
|
-
display: inline-flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
width: var(--toggle-size);
|
|
56
|
-
height: var(--toggle-size);
|
|
57
|
-
border: solid var(--cx-input-border-width) var(--cx-input-border-color);
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
background-color: var(--cx-input-background-color);
|
|
60
|
-
color: transparent;
|
|
61
|
-
transition:
|
|
62
|
-
var(--cx-transition-fast) border-color,
|
|
63
|
-
var(--cx-transition-fast) background-color,
|
|
64
|
-
var(--cx-transition-fast) color,
|
|
65
|
-
var(--cx-transition-fast) box-shadow;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.radio__input {
|
|
69
|
-
position: absolute;
|
|
70
|
-
opacity: 0;
|
|
71
|
-
padding: 0;
|
|
72
|
-
margin: 0;
|
|
73
|
-
pointer-events: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Hover */
|
|
77
|
-
.radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover {
|
|
78
|
-
border-color: var(--cx-input-border-color-hover);
|
|
79
|
-
background-color: var(--cx-input-background-color-hover);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Checked */
|
|
83
|
-
.radio--checked .radio__control {
|
|
84
|
-
color: var(--checked-color, var(--cx-color-primary));
|
|
85
|
-
border-color: var(--checked-border-color, var(--cx-color-primary));
|
|
86
|
-
background-color: var(
|
|
87
|
-
--checked-background-color,
|
|
88
|
-
var(--cx-color-neutral-0)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Checked + hover */
|
|
93
|
-
.radio.radio--checked:not(.radio--disabled) .radio__control:hover {
|
|
94
|
-
border-color: var(--checked-hover-border-color, var(--cx-color-primary));
|
|
95
|
-
background-color: var(
|
|
96
|
-
--checked-hover-background-color,
|
|
97
|
-
var(--cx-color-neutral-0)
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Checked + focus */
|
|
102
|
-
:host(:focus-visible) .radio__control {
|
|
103
|
-
outline: var(--cx-focus-ring);
|
|
104
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.radio__control.radio__control--hidden {
|
|
108
|
-
display: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Disabled */
|
|
112
|
-
.radio--disabled {
|
|
113
|
-
opacity: 0.5;
|
|
114
|
-
cursor: default;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */
|
|
118
|
-
.radio:not(.radio--checked) svg circle {
|
|
119
|
-
opacity: 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.radio__label {
|
|
123
|
-
display: inline-block;
|
|
124
|
-
color: var(--cx-input-label-color);
|
|
125
|
-
flex: 1;
|
|
126
|
-
line-height: var(--toggle-size);
|
|
127
|
-
margin-inline-start: 0.5em;
|
|
128
|
-
user-select: none;
|
|
129
|
-
-webkit-user-select: none;
|
|
130
|
-
text-transform: var(--cx-radio-label-text-transform, none);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.radio__label--hidden {
|
|
134
|
-
display: none;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
svg {
|
|
138
|
-
width: 100%;
|
|
139
|
-
height: 100%;
|
|
140
|
-
display: block;
|
|
141
|
-
}
|
|
142
|
-
`, y = (i) => m`
|
|
143
|
-
<svg part="checked-icon svg" class="radio__icon" viewBox="0 0 16 16">
|
|
144
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
145
|
-
<g fill="currentColor">
|
|
146
|
-
<circle cx="8" cy="8" r="${i}"></circle>
|
|
147
|
-
</g>
|
|
148
|
-
</g>
|
|
149
|
-
</svg>
|
|
150
|
-
`;
|
|
151
|
-
var C = Object.defineProperty, z = Object.getOwnPropertyDescriptor, o = (i, a, c, s) => {
|
|
152
|
-
for (var t = s > 1 ? void 0 : s ? z(a, c) : a, l = i.length - 1, d; l >= 0; l--)
|
|
153
|
-
(d = i[l]) && (t = (s ? d(a, c, t) : d(t)) || t);
|
|
154
|
-
return s && t && C(a, c, t), t;
|
|
9
|
+
import k from "./icon.js";
|
|
10
|
+
const _ = g`:host{display:block}:host(:focus-visible){outline:0}.radio{align-items:top;font-family:var(--cx-input-font-family);font-size:var(--cx-input-font-size-medium);font-weight:var(--cx-input-font-weight);color:var(--cx-input-label-color);vertical-align:middle;cursor:pointer;display:inline-flex}.radio--small{--toggle-size:var(--cx-toggle-size-small);font-size:var(--cx-input-font-size-small)}.radio--medium{--toggle-size:var(--cx-toggle-size-medium);font-size:var(--cx-input-font-size-small)}.radio--large{--toggle-size:var(--cx-toggle-size-large);font-size:var(--cx-input-font-size-small)}.radio__checked-icon{display:inline-flex}.radio__control{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);background-color:var(--cx-input-background-color);color:#0000;transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.radio__input{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute}.radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover{border-color:var(--cx-input-border-color-hover);background-color:var(--cx-input-background-color-hover)}.radio--checked .radio__control{color:var(--checked-color,var(--cx-color-primary));border-color:var(--checked-border-color,var(--cx-color-primary));background-color:var(--checked-background-color,var(--cx-color-neutral-0))}.radio.radio--checked:not(.radio--disabled) .radio__control:hover{border-color:var(--checked-hover-border-color,var(--cx-color-primary));background-color:var(--checked-hover-background-color,var(--cx-color-neutral-0))}:host(:focus-visible) .radio__control{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.radio__control.radio__control--hidden{display:none}.radio--disabled{opacity:.5;cursor:default}.radio:not(.radio--checked) svg circle{opacity:0}.radio__label{color:var(--cx-input-label-color);line-height:var(--toggle-size);-webkit-user-select:none;user-select:none;text-transform:var(--cx-radio-label-text-transform,none);flex:1;margin-inline-start:.5em;display:inline-block}.radio__label--hidden{display:none}svg{width:100%;height:100%;display:block}`, y = (i) => m`<svg part="checked-icon svg" class="radio__icon" viewBox="0 0 16 16"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g fill="currentColor"><circle cx="8" cy="8" r="${i}"></circle></g></g></svg>`;
|
|
11
|
+
var z = Object.defineProperty, C = Object.getOwnPropertyDescriptor, o = (i, a, l, s) => {
|
|
12
|
+
for (var t = s > 1 ? void 0 : s ? C(a, l) : a, c = i.length - 1, d; c >= 0; c--)
|
|
13
|
+
(d = i[c]) && (t = (s ? d(a, l, t) : d(t)) || t);
|
|
14
|
+
return s && t && z(a, l, t), t;
|
|
155
15
|
};
|
|
156
16
|
let e = class extends p {
|
|
157
17
|
constructor() {
|
|
@@ -179,10 +39,7 @@ let e = class extends p {
|
|
|
179
39
|
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
180
40
|
}
|
|
181
41
|
render() {
|
|
182
|
-
return
|
|
183
|
-
<span
|
|
184
|
-
part="base"
|
|
185
|
-
class=${n({
|
|
42
|
+
return x`<span part="base" class=${n({
|
|
186
43
|
radio: !0,
|
|
187
44
|
"radio--checked": this.checked,
|
|
188
45
|
"radio--disabled": this.disabled,
|
|
@@ -190,31 +47,17 @@ let e = class extends p {
|
|
|
190
47
|
"radio--large": this.size === "large",
|
|
191
48
|
"radio--medium": this.size === "medium",
|
|
192
49
|
"radio--small": this.size === "small"
|
|
193
|
-
})}
|
|
194
|
-
>
|
|
195
|
-
<span
|
|
196
|
-
part=${`control${this.checked ? " control--checked" : ""}`}
|
|
197
|
-
class=${n({
|
|
50
|
+
})}><span part=${`control${this.checked ? " control--checked" : ""}`} class=${n({
|
|
198
51
|
radio__control: !0,
|
|
199
52
|
"radio__control--hidden": this.hideIndicator
|
|
200
|
-
})}
|
|
201
|
-
>
|
|
202
|
-
${this.checked ? y(this.checkedIconRadius) : ""}
|
|
203
|
-
</span>
|
|
204
|
-
|
|
205
|
-
<slot
|
|
206
|
-
part="label"
|
|
207
|
-
class=${n({
|
|
53
|
+
})}>${this.checked ? y(this.checkedIconRadius) : ""}</span><slot part="label" class=${n({
|
|
208
54
|
radio__label: !0,
|
|
209
55
|
"radio__label--hidden": !this.hasSlotController.test("[default]")
|
|
210
|
-
})}
|
|
211
|
-
></slot>
|
|
212
|
-
</span>
|
|
213
|
-
`;
|
|
56
|
+
})}></slot></span>`;
|
|
214
57
|
}
|
|
215
58
|
};
|
|
216
59
|
e.styles = [b, _];
|
|
217
|
-
e.dependencies = { "cx-icon":
|
|
60
|
+
e.dependencies = { "cx-icon": k };
|
|
218
61
|
o([
|
|
219
62
|
u()
|
|
220
63
|
], e.prototype, "checked", 2);
|