@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,325 +0,0 @@
|
|
|
1
|
-
import { n as a, C as P } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as F } from "./component.styles.DMSLciL5.js";
|
|
3
|
-
import { O as C } from "./index.Cpamj0jB.js";
|
|
4
|
-
import { c as z } from "./custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as S } from "./i18n.C0iakJkV.js";
|
|
6
|
-
import { w as m } from "./watch.q1sEjPWL.js";
|
|
7
|
-
import { i as O, x as y } from "./lit-element.jLBm65_O.js";
|
|
8
|
-
import { r as j } from "./state.CSDxrqLd.js";
|
|
9
|
-
import { e as H } from "./query.BBf1UFkC.js";
|
|
10
|
-
import { r as K } from "./query-all.i3PyvTUQ.js";
|
|
11
|
-
import { e as L } from "./class-map.BiVq-cVR.js";
|
|
12
|
-
import { o as E } from "./if-defined.BRoBj_Rp.js";
|
|
13
|
-
import { o as D } from "./map.D8heArFD.js";
|
|
14
|
-
import { n as w } from "./when.Dr1es41R.js";
|
|
15
|
-
import R from "../components/tooltip.js";
|
|
16
|
-
const T = O`
|
|
17
|
-
:host {
|
|
18
|
-
display: inline-block;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([orientation='vertical']) {
|
|
22
|
-
height: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([orientation='vertical']) .dot-pagination {
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dot-pagination {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-wrap: wrap;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
gap: var(--cx-spacing-small);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dot-pagination__dot {
|
|
38
|
-
display: block;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
background: none;
|
|
41
|
-
border: 0;
|
|
42
|
-
border-radius: var(--cx-border-radius-circle);
|
|
43
|
-
width: var(--cx-spacing-small);
|
|
44
|
-
height: var(--cx-spacing-small);
|
|
45
|
-
background-color: var(--cx-color-neutral-300);
|
|
46
|
-
padding: 0;
|
|
47
|
-
margin: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dot-pagination__dot--active {
|
|
51
|
-
background-color: var(--cx-color-neutral-500);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.dot-pagination__dot--transitioning {
|
|
55
|
-
cursor: default;
|
|
56
|
-
opacity: 0.5;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dot-pagination__ellipsis {
|
|
60
|
-
color: var(--cx-color-neutral-400);
|
|
61
|
-
font-size: var(--cx-font-size-small);
|
|
62
|
-
font-weight: var(--cx-font-weight-medium);
|
|
63
|
-
user-select: none;
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
min-width: var(--cx-spacing-small);
|
|
68
|
-
height: var(--cx-spacing-small);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Focus styles */
|
|
72
|
-
.dot-pagination__dot:focus-visible {
|
|
73
|
-
outline: var(--cx-focus-ring);
|
|
74
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Responsive adjustments */
|
|
78
|
-
@media (max-width: 640px) {
|
|
79
|
-
.dot-pagination {
|
|
80
|
-
gap: var(--cx-spacing-x-small);
|
|
81
|
-
padding: var(--cx-spacing-medium);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* High contrast mode support */
|
|
86
|
-
@media (prefers-contrast: high) {
|
|
87
|
-
.dot-pagination__dot {
|
|
88
|
-
border: 1px solid var(--cx-color-neutral-600);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.dot-pagination__dot--active {
|
|
92
|
-
border-color: var(--cx-color-neutral-700);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* Reduced motion support */
|
|
97
|
-
@media (prefers-reduced-motion: reduce) {
|
|
98
|
-
.dot-pagination__dot {
|
|
99
|
-
transition: none;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
103
|
-
var B = Object.defineProperty, V = Object.getOwnPropertyDescriptor, i = (t, n, e, c) => {
|
|
104
|
-
for (var l = c > 1 ? void 0 : c ? V(n, e) : n, r = t.length - 1, s; r >= 0; r--)
|
|
105
|
-
(s = t[r]) && (l = (c ? s(n, e, l) : s(l)) || l);
|
|
106
|
-
return c && l && B(n, e, l), l;
|
|
107
|
-
};
|
|
108
|
-
let o = class extends P {
|
|
109
|
-
constructor() {
|
|
110
|
-
super(...arguments), this.localize = new S(this), this.activeIndex = 0, this.totalItemsCount = 0, this.visibleItemsCount = 1, this.step = 1, this.centerDots = 5, this.frontDots = 3, this.backDots = 3, this.loop = !1, this.orientation = C.Horizontal, this.transitioning = !1, this.tooltipPlacement = void 0, this.tooltipDescription = void 0, this.description = void 0, this.controlIds = [], this.dots = {
|
|
111
|
-
back: [],
|
|
112
|
-
backEllipsis: !1,
|
|
113
|
-
center: [],
|
|
114
|
-
front: [],
|
|
115
|
-
frontEllipsis: !1
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
calculateDots() {
|
|
119
|
-
const {
|
|
120
|
-
activeIndex: t,
|
|
121
|
-
backDots: n,
|
|
122
|
-
centerDots: e,
|
|
123
|
-
frontDots: c,
|
|
124
|
-
loop: l,
|
|
125
|
-
step: r,
|
|
126
|
-
totalItemsCount: s,
|
|
127
|
-
visibleItemsCount: p
|
|
128
|
-
} = this, U = s % p !== 0 ? Math.ceil(s / p) * p : s, f = l ? U : s, I = f - s, $ = l ? f : f - (p - r), M = I >= r ? $ - I : $, g = s > 0 ? Math.max(1, Math.ceil(M / r)) : 0, v = Math.floor(e / 2), _ = Math.floor(t / r), d = {
|
|
129
|
-
back: [],
|
|
130
|
-
backEllipsis: !1,
|
|
131
|
-
center: [],
|
|
132
|
-
front: [],
|
|
133
|
-
frontEllipsis: !1
|
|
134
|
-
}, N = c + e + n, x = l ? f : Math.max(0, f - p);
|
|
135
|
-
if (g <= N)
|
|
136
|
-
d.front = Array.from(
|
|
137
|
-
{ length: g },
|
|
138
|
-
(u, h) => Math.min(h * r, x)
|
|
139
|
-
);
|
|
140
|
-
else {
|
|
141
|
-
d.frontEllipsis = _ > c + v, d.backEllipsis = _ < g - n - v - 1, d.front = Array.from(
|
|
142
|
-
{ length: c },
|
|
143
|
-
(k, b) => Math.min(b * r, x)
|
|
144
|
-
), d.back = Array.from(
|
|
145
|
-
{ length: n },
|
|
146
|
-
(k, b) => Math.min((g - n + b) * r, x)
|
|
147
|
-
);
|
|
148
|
-
let u, h;
|
|
149
|
-
d.frontEllipsis ? d.backEllipsis ? (u = _ - v, h = u + e) : (h = g - n, u = h - e) : (u = c, h = u + e), d.center = Array.from({ length: h - u }, (k, b) => {
|
|
150
|
-
const A = (u + b) * r;
|
|
151
|
-
return Math.min(A, x);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
this.dots = d;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Carousel focus active item when key is pressed from pagination
|
|
158
|
-
*/
|
|
159
|
-
focus() {
|
|
160
|
-
this.activeDot?.focus();
|
|
161
|
-
}
|
|
162
|
-
handleDotClick(t) {
|
|
163
|
-
const n = t.currentTarget, e = Number(n.dataset.index);
|
|
164
|
-
e === this.activeIndex || isNaN(e) || (this.activeIndex = e, this.emit("cx-dot-pagination-change", {
|
|
165
|
-
detail: {
|
|
166
|
-
active: e
|
|
167
|
-
}
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
|
-
handleKeyDown(t) {
|
|
171
|
-
const n = t.target;
|
|
172
|
-
if (t.key === "Enter" || t.key === " ") {
|
|
173
|
-
t.preventDefault(), n.click();
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
const e = this.orientation === C.Horizontal, c = e ? ["ArrowRight"] : ["ArrowDown"], l = e ? ["ArrowLeft"] : ["ArrowUp"];
|
|
177
|
-
if (![...c, ...l].includes(t.key))
|
|
178
|
-
return;
|
|
179
|
-
t.preventDefault(), t.stopPropagation();
|
|
180
|
-
const r = Array.from(this.allDots), s = r.indexOf(n);
|
|
181
|
-
if (s === -1)
|
|
182
|
-
return;
|
|
183
|
-
let p = c.includes(t.key) ? s + 1 : s - 1;
|
|
184
|
-
this.loop ? p = (p + r.length) % r.length : p = Math.max(0, Math.min(p, r.length - 1)), r[p]?.focus();
|
|
185
|
-
}
|
|
186
|
-
handleFocus() {
|
|
187
|
-
this.emit("cx-dot-pagination-focus");
|
|
188
|
-
}
|
|
189
|
-
renderEllipsis() {
|
|
190
|
-
return y`
|
|
191
|
-
<span part="ellipsis" class="dot-pagination__ellipsis" aria-hidden="true">
|
|
192
|
-
•••
|
|
193
|
-
</span>
|
|
194
|
-
`;
|
|
195
|
-
}
|
|
196
|
-
renderDot(t) {
|
|
197
|
-
const n = t + 1, e = y`
|
|
198
|
-
<button
|
|
199
|
-
part="dot${this.activeIndex === t ? " dot--active" : ""}"
|
|
200
|
-
class=${L({
|
|
201
|
-
"dot-pagination__dot": !0,
|
|
202
|
-
"dot-pagination__dot--active": t === this.activeIndex,
|
|
203
|
-
"dot-pagination__dot--transitioning": this.transitioning
|
|
204
|
-
})}
|
|
205
|
-
role="tab"
|
|
206
|
-
type="button"
|
|
207
|
-
aria-selected=${t === this.activeIndex ? "true" : "false"}
|
|
208
|
-
aria-label=${this.localize.term("slideNum", n)}
|
|
209
|
-
aria-controls=${E(this.controlIds[t])}
|
|
210
|
-
tabindex="0"
|
|
211
|
-
data-index=${t}
|
|
212
|
-
?disabled=${this.transitioning}
|
|
213
|
-
@click=${this.handleDotClick}
|
|
214
|
-
@keydown=${this.handleKeyDown}
|
|
215
|
-
@focus=${this.handleFocus}
|
|
216
|
-
></button>
|
|
217
|
-
`;
|
|
218
|
-
return w(
|
|
219
|
-
this.tooltipPlacement,
|
|
220
|
-
() => y`
|
|
221
|
-
<cx-tooltip
|
|
222
|
-
content=${this.tooltipDescription || t + 1}
|
|
223
|
-
placement=${this.tooltipPlacement}
|
|
224
|
-
>
|
|
225
|
-
${e}
|
|
226
|
-
</cx-tooltip>
|
|
227
|
-
`,
|
|
228
|
-
() => e
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
render() {
|
|
232
|
-
return y`
|
|
233
|
-
<div
|
|
234
|
-
part="base"
|
|
235
|
-
class="dot-pagination"
|
|
236
|
-
role="tablist"
|
|
237
|
-
aria-roledescription=${E(this.description || void 0)}
|
|
238
|
-
aria-label=${this.localize.term("pagination")}
|
|
239
|
-
>
|
|
240
|
-
${D(this.dots.front, (t) => this.renderDot(t))}
|
|
241
|
-
${w(this.dots.frontEllipsis, () => this.renderEllipsis())}
|
|
242
|
-
${D(this.dots.center, (t) => this.renderDot(t))}
|
|
243
|
-
${w(this.dots.backEllipsis, () => this.renderEllipsis())}
|
|
244
|
-
${D(this.dots.back, (t) => this.renderDot(t))}
|
|
245
|
-
</div>
|
|
246
|
-
`;
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
o.styles = [F, T];
|
|
250
|
-
o.dependencies = { "cx-tooltip": R };
|
|
251
|
-
i([
|
|
252
|
-
H(".dot-pagination__dot--active")
|
|
253
|
-
], o.prototype, "activeDot", 2);
|
|
254
|
-
i([
|
|
255
|
-
K(".dot-pagination__dot")
|
|
256
|
-
], o.prototype, "allDots", 2);
|
|
257
|
-
i([
|
|
258
|
-
a({ attribute: "active-index", reflect: !0, type: Number })
|
|
259
|
-
], o.prototype, "activeIndex", 2);
|
|
260
|
-
i([
|
|
261
|
-
a({ attribute: "total-items-count", reflect: !0, type: Number })
|
|
262
|
-
], o.prototype, "totalItemsCount", 2);
|
|
263
|
-
i([
|
|
264
|
-
a({ attribute: "visible-items-count", reflect: !0, type: Number })
|
|
265
|
-
], o.prototype, "visibleItemsCount", 2);
|
|
266
|
-
i([
|
|
267
|
-
a({ reflect: !0, type: Number })
|
|
268
|
-
], o.prototype, "step", 2);
|
|
269
|
-
i([
|
|
270
|
-
a({ attribute: "center-dots", reflect: !0, type: Number })
|
|
271
|
-
], o.prototype, "centerDots", 2);
|
|
272
|
-
i([
|
|
273
|
-
a({ attribute: "front-dots", reflect: !0, type: Number })
|
|
274
|
-
], o.prototype, "frontDots", 2);
|
|
275
|
-
i([
|
|
276
|
-
a({ attribute: "back-dots", reflect: !0, type: Number })
|
|
277
|
-
], o.prototype, "backDots", 2);
|
|
278
|
-
i([
|
|
279
|
-
a({ reflect: !0, type: Boolean })
|
|
280
|
-
], o.prototype, "loop", 2);
|
|
281
|
-
i([
|
|
282
|
-
a({ reflect: !0, type: String })
|
|
283
|
-
], o.prototype, "orientation", 2);
|
|
284
|
-
i([
|
|
285
|
-
a({ reflect: !0, type: Boolean })
|
|
286
|
-
], o.prototype, "transitioning", 2);
|
|
287
|
-
i([
|
|
288
|
-
a({ attribute: "tooltip-placement", reflect: !0, type: String })
|
|
289
|
-
], o.prototype, "tooltipPlacement", 2);
|
|
290
|
-
i([
|
|
291
|
-
a({ attribute: "tooltip-description", reflect: !0, type: String })
|
|
292
|
-
], o.prototype, "tooltipDescription", 2);
|
|
293
|
-
i([
|
|
294
|
-
a({ reflect: !0, type: String })
|
|
295
|
-
], o.prototype, "description", 2);
|
|
296
|
-
i([
|
|
297
|
-
a({
|
|
298
|
-
attribute: "control-ids",
|
|
299
|
-
converter: {
|
|
300
|
-
fromAttribute: (t) => t?.split(" ") ?? [],
|
|
301
|
-
toAttribute: (t) => t.join(" ")
|
|
302
|
-
},
|
|
303
|
-
reflect: !0
|
|
304
|
-
})
|
|
305
|
-
], o.prototype, "controlIds", 2);
|
|
306
|
-
i([
|
|
307
|
-
j()
|
|
308
|
-
], o.prototype, "dots", 2);
|
|
309
|
-
i([
|
|
310
|
-
m("centerDots", { waitUntilFirstUpdate: !0 }),
|
|
311
|
-
m("frontDots", { waitUntilFirstUpdate: !0 }),
|
|
312
|
-
m("backDots", { waitUntilFirstUpdate: !0 }),
|
|
313
|
-
m("activeIndex", { waitUntilFirstUpdate: !0 }),
|
|
314
|
-
m("step", { waitUntilFirstUpdate: !0 }),
|
|
315
|
-
m("visibleItemsCount", { waitUntilFirstUpdate: !0 }),
|
|
316
|
-
m("loop", { waitUntilFirstUpdate: !0 }),
|
|
317
|
-
m("totalItemsCount")
|
|
318
|
-
], o.prototype, "calculateDots", 1);
|
|
319
|
-
o = i([
|
|
320
|
-
z("cx-dot-pagination")
|
|
321
|
-
], o);
|
|
322
|
-
export {
|
|
323
|
-
o as C,
|
|
324
|
-
T as d
|
|
325
|
-
};
|