@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,10 +1,10 @@
|
|
|
1
1
|
import { C as R, n as l } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as N } from "./component.styles.
|
|
2
|
+
import { c as N } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as G } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as
|
|
4
|
+
import { L as Z } from "./i18n.BFqTRDCA.js";
|
|
5
5
|
import { c as K } from "./math.DqTA6ya4.js";
|
|
6
|
-
import { w as b } from "./watch.
|
|
7
|
-
import { i as
|
|
6
|
+
import { w as b } from "./watch.BCJD77bD.js";
|
|
7
|
+
import { i as H, x as g, E as L } from "./lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as y } from "./state.CSDxrqLd.js";
|
|
9
9
|
import { e as f } from "./query.BBf1UFkC.js";
|
|
10
10
|
import { s as z, a as U, b as $ } from "./animate.El-MpOws.js";
|
|
@@ -12,7 +12,7 @@ import { e as C } from "./class-map.BiVq-cVR.js";
|
|
|
12
12
|
import { o as _ } from "./if-defined.BRoBj_Rp.js";
|
|
13
13
|
import { l as W } from "./live.SCz6M8Gs.js";
|
|
14
14
|
import { n as E } from "./when.Dr1es41R.js";
|
|
15
|
-
import { g as P, s as
|
|
15
|
+
import { g as P, s as M } from "./animation-registry.HmpwNuGH.js";
|
|
16
16
|
import Y from "../components/checkbox.js";
|
|
17
17
|
import J from "../components/icon.js";
|
|
18
18
|
import Q from "../components/spinner.js";
|
|
@@ -33,15 +33,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
33
33
|
function ne(e, t = 0) {
|
|
34
34
|
return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
|
|
35
35
|
}
|
|
36
|
-
let
|
|
36
|
+
let I;
|
|
37
37
|
const oe = new Uint8Array(16);
|
|
38
38
|
function ae() {
|
|
39
|
-
if (!
|
|
39
|
+
if (!I) {
|
|
40
40
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
41
41
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
42
|
-
|
|
42
|
+
I = crypto.getRandomValues.bind(crypto);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return I(oe);
|
|
45
45
|
}
|
|
46
46
|
const re = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), F = { randomUUID: re };
|
|
47
47
|
function se(e, t, i) {
|
|
@@ -53,260 +53,7 @@ function se(e, t, i) {
|
|
|
53
53
|
throw new Error("Random bytes length must be >= 16");
|
|
54
54
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, ne(n);
|
|
55
55
|
}
|
|
56
|
-
const le =
|
|
57
|
-
:host {
|
|
58
|
-
display: block;
|
|
59
|
-
outline: 0;
|
|
60
|
-
|
|
61
|
-
--selected-color: var(--cx-color-primary-600);
|
|
62
|
-
--selected-background-color: var(--cx-color-primary-50);
|
|
63
|
-
--hover-background-color: var(--cx-menu-item-background-color-hover);
|
|
64
|
-
--active-background-color: var(--cx-color-neutral-200);
|
|
65
|
-
--item-padding: var(--cx-spacing-2x-small) var(--cx-spacing-x-small);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host(:focus-visible) .tree-item {
|
|
69
|
-
outline: var(--cx-focus-ring);
|
|
70
|
-
outline-offset: calc(-1 * var(--cx-focus-ring-width));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[hidden] {
|
|
74
|
-
display: none !important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
slot:not([name])::slotted(cx-icon) {
|
|
78
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.tree-item {
|
|
82
|
-
position: relative;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: stretch;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
color: var(--cx-color-neutral);
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
user-select: none;
|
|
89
|
-
-webkit-user-select: none;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.tree-item__checkbox {
|
|
93
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.tree-item__expand-button,
|
|
97
|
-
.tree-item__checkbox,
|
|
98
|
-
.tree-item__label {
|
|
99
|
-
font-family: var(--cx-font-sans);
|
|
100
|
-
font-size: var(--cx-tree-item-font-size, var(--cx-font-size-small));
|
|
101
|
-
font-weight: var(--cx-tree-item-font-weight, var(--cx-font-weight-medium));
|
|
102
|
-
line-height: var(--cx-tree-item-line-height, var(--cx-line-height-large));
|
|
103
|
-
letter-spacing: var(--cx-tree-item-letter-spacing, var(--cx-letter-spacing-normal));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.tree-item__checkbox::part(base) {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.tree-item__checkbox::part(label) {
|
|
112
|
-
margin-inline-start: 0;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.tree-item__indentation {
|
|
116
|
-
display: block;
|
|
117
|
-
width: 1em;
|
|
118
|
-
flex-shrink: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.tree-item__expand-spinner {
|
|
122
|
-
position: absolute;
|
|
123
|
-
top: 50%;
|
|
124
|
-
left: 50%;
|
|
125
|
-
transform: translate(-50%, -50%);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.tree-item__expand-button {
|
|
129
|
-
display: flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
justify-content: center;
|
|
132
|
-
box-sizing: content-box;
|
|
133
|
-
color: var(--cx-color-neutral-500);
|
|
134
|
-
min-width: max(1em, 1rem);
|
|
135
|
-
min-height: max(1em, 1rem);
|
|
136
|
-
flex-shrink: 0;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.tree-item__expand-button {
|
|
141
|
-
transition: var(--cx-transition-medium) rotate ease;
|
|
142
|
-
position: relative;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.tree-item--expanded .tree-item__expand-button {
|
|
146
|
-
rotate: 90deg;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.tree-item--expanded.tree-item--rtl .tree-item__expand-button {
|
|
150
|
-
rotate: -90deg;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.tree-item--expanded slot[name='expand-icon'],
|
|
154
|
-
.tree-item:not(.tree-item--expanded) slot[name='collapse-icon'] {
|
|
155
|
-
display: none;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host(:not([aria-disabled='true']))
|
|
159
|
-
.tree-item--selected
|
|
160
|
-
.tree-item__item
|
|
161
|
-
.tree-item__expand-icon-slot {
|
|
162
|
-
color: var(--selected-color);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot {
|
|
166
|
-
visibility: hidden;
|
|
167
|
-
opacity: 0;
|
|
168
|
-
pointer-events: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.tree-item__expand-button--visible {
|
|
172
|
-
cursor: pointer;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.tree-item__item {
|
|
176
|
-
display: flex;
|
|
177
|
-
align-items: center;
|
|
178
|
-
border-radius: var(--cx-border-radius-large);
|
|
179
|
-
padding: var(
|
|
180
|
-
--item-padding,
|
|
181
|
-
var(--cx-spacing-x-small) var(--cx-spacing-small)
|
|
182
|
-
);
|
|
183
|
-
transition: var(--cx-transition-x-fast) background-color ease;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.tree-item__item:hover {
|
|
187
|
-
background-color: var(--hover-background-color);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.tree-item__item:active {
|
|
191
|
-
background-color: var(--active-background-color);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.tree-item--disabled .tree-item__item {
|
|
195
|
-
opacity: 0.5;
|
|
196
|
-
outline: none;
|
|
197
|
-
cursor: default;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
201
|
-
background-color: var(--selected-background-color);
|
|
202
|
-
color: var(--selected-color);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
:host(:not([aria-disabled='true'])) .tree-item__expand-button {
|
|
206
|
-
color: var(--cx-color-neutral);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
:host(:not([aria-disabled='true'])) .tree-item--selected,
|
|
210
|
-
:host(:not([aria-disabled='true']))
|
|
211
|
-
.tree-item--selected
|
|
212
|
-
.tree-item__expand-button,
|
|
213
|
-
:host(:not([aria-disabled='true']))
|
|
214
|
-
.tree-item--selected
|
|
215
|
-
.tree-item__actions::slotted(cx-icon-button) {
|
|
216
|
-
color: var(--cx-color-neutral-0);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:host(:not([aria-disabled='true']))
|
|
220
|
-
.tree-item--selected
|
|
221
|
-
.tree-item__actions::slotted(cx-icon-button) {
|
|
222
|
-
--hover-background-color: var(--cx-color-neutral-0);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.tree-item__label {
|
|
226
|
-
display: flex;
|
|
227
|
-
align-items: center;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.tree-item__actions {
|
|
231
|
-
display: flex;
|
|
232
|
-
align-items: center;
|
|
233
|
-
margin-inline-start: auto;
|
|
234
|
-
font-size: var(--cx-font-size-medium);
|
|
235
|
-
width: fit-content;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.tree-item__actions::slotted(*) {
|
|
239
|
-
visibility: hidden;
|
|
240
|
-
opacity: 0;
|
|
241
|
-
transition:
|
|
242
|
-
var(--cx-transition-x-fast) visibility,
|
|
243
|
-
var(--cx-transition-x-fast) opacity ease;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.tree-item__item:hover .tree-item__actions::slotted(*) {
|
|
247
|
-
visibility: visible;
|
|
248
|
-
opacity: 1;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* If overlay attribute is not supported, the cx-overlay
|
|
253
|
-
* inside dropdown will be hidden if the dropdown itself is hidden.
|
|
254
|
-
* Thus, we fallback by making dropdown visible if it's open.
|
|
255
|
-
* See 41MFC1
|
|
256
|
-
*/
|
|
257
|
-
@supports not (overlay: auto) {
|
|
258
|
-
.tree-item__actions::slotted(cx-dropdown[open]) {
|
|
259
|
-
visibility: visible;
|
|
260
|
-
opacity: 1;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.tree-item__children {
|
|
265
|
-
display: flex;
|
|
266
|
-
flex-direction: column;
|
|
267
|
-
font-size: calc(1em + var(--indent-size, var(--cx-spacing-medium)));
|
|
268
|
-
gap: var(--children-gap, 0);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
@media (forced-colors: active) {
|
|
272
|
-
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
273
|
-
outline: dashed 1px SelectedItem;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
::slotted(cx-tree-item) {
|
|
278
|
-
--hover-background-color: inherit;
|
|
279
|
-
--active-background-color: inherit;
|
|
280
|
-
--selected-background-color: inherit;
|
|
281
|
-
--selected-color: inherit;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
:host([data-dragging]) {
|
|
285
|
-
position: relative;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
:host([data-dragging='inside']) {
|
|
289
|
-
background-color: var(--cx-color-primary-400);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
:host([data-dragging='before'])::before {
|
|
293
|
-
content: '';
|
|
294
|
-
position: absolute;
|
|
295
|
-
top: 0;
|
|
296
|
-
left: 0;
|
|
297
|
-
width: 100%;
|
|
298
|
-
border-top: var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
:host([data-dragging='after'])::before {
|
|
302
|
-
content: '';
|
|
303
|
-
position: absolute;
|
|
304
|
-
bottom: 0;
|
|
305
|
-
left: 0;
|
|
306
|
-
width: 100%;
|
|
307
|
-
border-bottom: var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);
|
|
308
|
-
}
|
|
309
|
-
`, k = "tree-sortable", I = 0.2, O = (e) => e == null;
|
|
56
|
+
const le = H`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true])) .tree-item--selected,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, k = "tree-sortable", w = 0.2, O = (e) => e == null;
|
|
310
57
|
function de() {
|
|
311
58
|
function e() {
|
|
312
59
|
}
|
|
@@ -408,8 +155,8 @@ const j = (e) => ({
|
|
|
408
155
|
fallbackOnBody: !0,
|
|
409
156
|
forceFallback: ee(),
|
|
410
157
|
getDropZone: (t) => t?.shadowRoot?.querySelector(".tree-item__item"),
|
|
411
|
-
insertAfterZonePercentage: 1 -
|
|
412
|
-
insertBeforeZonePercentage:
|
|
158
|
+
insertAfterZonePercentage: 1 - w,
|
|
159
|
+
insertBeforeZonePercentage: w,
|
|
413
160
|
invertSwap: !0,
|
|
414
161
|
onStart(t) {
|
|
415
162
|
if (e.onStart?.(t), t.item.tagName === "CX-TREE-ITEM") {
|
|
@@ -418,7 +165,7 @@ const j = (e) => ({
|
|
|
418
165
|
}
|
|
419
166
|
},
|
|
420
167
|
[k]: !0,
|
|
421
|
-
swapThreshold:
|
|
168
|
+
swapThreshold: w
|
|
422
169
|
});
|
|
423
170
|
var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, s = (e, t, i, n) => {
|
|
424
171
|
for (var r = n > 1 ? void 0 : n ? he(t, i) : t, o = e.length - 1, d; o >= 0; o--)
|
|
@@ -427,7 +174,7 @@ var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, s = (e, t,
|
|
|
427
174
|
};
|
|
428
175
|
let a = class extends R {
|
|
429
176
|
constructor() {
|
|
430
|
-
super(), this.localize = new
|
|
177
|
+
super(), this.localize = new Z(this), this.expanded = !1, this.selected = !1, this.disabled = !1, this.readonly = !1, this.lazy = !1, this.href = "", this.rel = "noreferrer noopener", this.itemId = "", this.sortable = !1, this.noDrag = !1, this.noSelect = !1, this.noDragInside = !1, this.sortableGroup = void 0, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.disabledSyncCheckboxes = !1, this.partialSyncCheckboxes = !1, this.previouslySelected = !1, this.focusable = !1, this.indeterminate = !1, this.isLeaf = !1, this.loading = !1, this.selectable = !1, this.sortableInstance = null, this.onDragStart = (e) => {
|
|
431
178
|
if (e.dataTransfer) {
|
|
432
179
|
const t = this.cloneNode(!0);
|
|
433
180
|
t.style.backgroundColor = "red", t.style.display = "none", this.ownerDocument.body.appendChild(t), e.dataTransfer.setDragImage(t, 0, 0);
|
|
@@ -516,31 +263,13 @@ let a = class extends R {
|
|
|
516
263
|
}
|
|
517
264
|
renderExpandButton() {
|
|
518
265
|
const e = this.localize.dir() === "rtl", t = this.showExpandButton;
|
|
519
|
-
return g
|
|
520
|
-
part="expand-button"
|
|
521
|
-
class=${C({
|
|
266
|
+
return g`<div part="expand-button" class=${C({
|
|
522
267
|
"tree-item__expand-button": !0,
|
|
523
268
|
"tree-item__expand-button--visible": t
|
|
524
|
-
})}
|
|
525
|
-
aria-hidden="true"
|
|
526
|
-
>
|
|
527
|
-
${E(
|
|
269
|
+
})} aria-hidden="true">${E(
|
|
528
270
|
this.loading,
|
|
529
|
-
() => g
|
|
530
|
-
|
|
531
|
-
part="spinner"
|
|
532
|
-
class="tree-item__expand-spinner"
|
|
533
|
-
exportparts="base:spinner__base"
|
|
534
|
-
></cx-spinner>
|
|
535
|
-
`
|
|
536
|
-
)}
|
|
537
|
-
<slot class="tree-item__expand-icon-slot" name="expand-icon">
|
|
538
|
-
<cx-icon name=${e ? "chevron_left" : "chevron_right"}></cx-icon>
|
|
539
|
-
</slot>
|
|
540
|
-
<slot class="tree-item__expand-icon-slot" name="collapse-icon">
|
|
541
|
-
<cx-icon name=${e ? "chevron_left" : "chevron_right"}></cx-icon>
|
|
542
|
-
</slot>
|
|
543
|
-
</div>`;
|
|
271
|
+
() => g`<cx-spinner part="spinner" class="tree-item__expand-spinner" exportparts="base:spinner__base"></cx-spinner>`
|
|
272
|
+
)}<slot class="tree-item__expand-icon-slot" name="expand-icon"><cx-icon name=${e ? "chevron_left" : "chevron_right"}></cx-icon></slot><slot class="tree-item__expand-icon-slot" name="collapse-icon"><cx-icon name=${e ? "chevron_left" : "chevron_right"}></cx-icon></slot></div>`;
|
|
544
273
|
}
|
|
545
274
|
handleSortableUpdate(e) {
|
|
546
275
|
const t = this.getChildrenItems({ includeDisabled: !0 });
|
|
@@ -582,11 +311,7 @@ let a = class extends R {
|
|
|
582
311
|
}
|
|
583
312
|
renderBase(e) {
|
|
584
313
|
const t = this.showExpandButton;
|
|
585
|
-
return this.href ? g
|
|
586
|
-
<a
|
|
587
|
-
id="anchor"
|
|
588
|
-
part="base"
|
|
589
|
-
class=${C({
|
|
314
|
+
return this.href ? g`<a id="anchor" part="base" class=${C({
|
|
590
315
|
"tree-item": !0,
|
|
591
316
|
"tree-item--disabled": this.disabled,
|
|
592
317
|
"tree-item--expanded": this.expanded,
|
|
@@ -594,19 +319,7 @@ let a = class extends R {
|
|
|
594
319
|
"tree-item--leaf": this.isLeaf,
|
|
595
320
|
"tree-item--rtl": this.localize.dir() === "rtl",
|
|
596
321
|
"tree-item--selected": this.selected
|
|
597
|
-
})}
|
|
598
|
-
href=${_(this.href)}
|
|
599
|
-
target=${_(this.target)}
|
|
600
|
-
download=${_(this.download)}
|
|
601
|
-
rel=${_(this.rel)}
|
|
602
|
-
?inert=${this.disabled}
|
|
603
|
-
>
|
|
604
|
-
${e}
|
|
605
|
-
</a>
|
|
606
|
-
` : g`
|
|
607
|
-
<div
|
|
608
|
-
part="base"
|
|
609
|
-
class=${C({
|
|
322
|
+
})} href=${_(this.href)} target=${_(this.target)} download=${_(this.download)} rel=${_(this.rel)} ?inert=${this.disabled}>${e}</a>` : g`<div part="base" class=${C({
|
|
610
323
|
"tree-item": !0,
|
|
611
324
|
"tree-item--disabled": this.disabled,
|
|
612
325
|
"tree-item--expanded": this.expanded,
|
|
@@ -614,38 +327,23 @@ let a = class extends R {
|
|
|
614
327
|
"tree-item--leaf": this.isLeaf,
|
|
615
328
|
"tree-item--rtl": this.localize.dir() === "rtl",
|
|
616
329
|
"tree-item--selected": this.selected
|
|
617
|
-
})}
|
|
618
|
-
>
|
|
619
|
-
${e}
|
|
620
|
-
</div>
|
|
621
|
-
`;
|
|
330
|
+
})}>${e}</div>`;
|
|
622
331
|
}
|
|
623
332
|
render() {
|
|
624
|
-
return this.renderBase(g
|
|
625
|
-
<div
|
|
626
|
-
class="tree-item__item"
|
|
627
|
-
part="
|
|
333
|
+
return this.renderBase(g`<div class="tree-item__item" part="
|
|
628
334
|
item
|
|
629
335
|
${this.disabled ? "item--disabled" : ""}
|
|
630
336
|
${this.expanded ? "item--expanded" : ""}
|
|
631
337
|
${this.indeterminate ? "item--indeterminate" : ""}
|
|
632
338
|
${this.selected ? "item--selected" : ""}
|
|
633
|
-
"
|
|
634
|
-
>
|
|
635
|
-
<div class="tree-item__indentation" part="indentation"></div>
|
|
636
|
-
|
|
637
|
-
${E(
|
|
339
|
+
"><div class="tree-item__indentation" part="indentation"></div>${E(
|
|
638
340
|
this.expandButtonPlacement === "start",
|
|
639
341
|
this.renderExpandButton,
|
|
640
342
|
() => L
|
|
641
343
|
)}
|
|
642
344
|
${E(
|
|
643
345
|
this.selectable,
|
|
644
|
-
() => g
|
|
645
|
-
<cx-checkbox
|
|
646
|
-
part="checkbox"
|
|
647
|
-
aria-label=${this.localize.term("checkbox")}
|
|
648
|
-
exportparts="
|
|
346
|
+
() => g`<cx-checkbox part="checkbox" aria-label=${this.localize.term("checkbox")} exportparts="
|
|
649
347
|
base:checkbox__base,
|
|
650
348
|
control:checkbox__control,
|
|
651
349
|
control--checked:checkbox__control--checked,
|
|
@@ -653,32 +351,12 @@ let a = class extends R {
|
|
|
653
351
|
checked-icon:checkbox__checked-icon,
|
|
654
352
|
indeterminate-icon:checkbox__indeterminate-icon,
|
|
655
353
|
label:checkbox__label
|
|
656
|
-
"
|
|
657
|
-
|
|
658
|
-
?disabled=${this.disabled}
|
|
659
|
-
?checked=${W(this.selected)}
|
|
660
|
-
?indeterminate=${this.indeterminate}
|
|
661
|
-
tabindex="-1"
|
|
662
|
-
></cx-checkbox>
|
|
663
|
-
`
|
|
664
|
-
)}
|
|
665
|
-
|
|
666
|
-
<slot class="tree-item__label" part="label"></slot>
|
|
667
|
-
<slot class="tree-item__actions" part="actions" name="actions"></slot>
|
|
668
|
-
|
|
669
|
-
${E(
|
|
354
|
+
" class="tree-item__checkbox" ?disabled=${this.disabled} ?checked=${W(this.selected)} ?indeterminate=${this.indeterminate} tabindex="-1"></cx-checkbox>`
|
|
355
|
+
)}<slot class="tree-item__label" part="label"></slot><slot class="tree-item__actions" part="actions" name="actions"></slot>${E(
|
|
670
356
|
this.expandButtonPlacement === "end",
|
|
671
357
|
this.renderExpandButton,
|
|
672
358
|
() => L
|
|
673
|
-
)}
|
|
674
|
-
</div>
|
|
675
|
-
<div class="tree-item__children" part="children" role="group">
|
|
676
|
-
<slot
|
|
677
|
-
name="children"
|
|
678
|
-
@slotchange=${this.handleChildrenSlotChange}
|
|
679
|
-
></slot>
|
|
680
|
-
</div>
|
|
681
|
-
`);
|
|
359
|
+
)}</div><div class="tree-item__children" part="children" role="group"><slot name="children" @slotchange=${this.handleChildrenSlotChange}></slot></div>`);
|
|
682
360
|
}
|
|
683
361
|
};
|
|
684
362
|
a.styles = [N, le];
|
|
@@ -813,53 +491,21 @@ s([
|
|
|
813
491
|
a = s([
|
|
814
492
|
G("cx-tree-item")
|
|
815
493
|
], a);
|
|
816
|
-
|
|
494
|
+
M("tree-item.expand", {
|
|
817
495
|
keyframes: [
|
|
818
496
|
{ height: "0", opacity: "0", overflow: "hidden" },
|
|
819
497
|
{ height: "auto", opacity: "1", overflow: "hidden" }
|
|
820
498
|
],
|
|
821
499
|
options: { duration: 250, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
|
|
822
500
|
});
|
|
823
|
-
|
|
501
|
+
M("tree-item.collapse", {
|
|
824
502
|
keyframes: [
|
|
825
503
|
{ height: "auto", opacity: "1", overflow: "hidden" },
|
|
826
504
|
{ height: "0", opacity: "0", overflow: "hidden" }
|
|
827
505
|
],
|
|
828
506
|
options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
|
|
829
507
|
});
|
|
830
|
-
const pe =
|
|
831
|
-
:host {
|
|
832
|
-
/*
|
|
833
|
-
* These are actually used by tree item, but we define them here so they can more easily be set and all tree items
|
|
834
|
-
* stay consistent.
|
|
835
|
-
*/
|
|
836
|
-
--indent-guide-color: var(--cx-color-neutral-200);
|
|
837
|
-
--indent-guide-offset: 0;
|
|
838
|
-
--indent-guide-style: solid;
|
|
839
|
-
--indent-guide-width: 0;
|
|
840
|
-
--indent-size: var(--cx-spacing-large);
|
|
841
|
-
|
|
842
|
-
display: block;
|
|
843
|
-
|
|
844
|
-
/*
|
|
845
|
-
* Tree item indentation uses the "em" unit to increment its width on each level, so setting the font size to zero
|
|
846
|
-
* here removes the indentation for all the nodes on the first level.
|
|
847
|
-
*/
|
|
848
|
-
font-size: 0;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
:host::part(children) {
|
|
852
|
-
display: flex;
|
|
853
|
-
flex-direction: column;
|
|
854
|
-
gap: var(--children-gap, 0);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
:host([dragging]) ::slotted(cx-tree-item) {
|
|
858
|
-
--hover-background-color: transparent !important;
|
|
859
|
-
--active-background-color: transparent !important;
|
|
860
|
-
--selected-background-color: transparent !important;
|
|
861
|
-
}
|
|
862
|
-
`;
|
|
508
|
+
const pe = H`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
|
|
863
509
|
var ue = Object.defineProperty, me = Object.getOwnPropertyDescriptor, h = (e, t, i, n) => {
|
|
864
510
|
for (var r = n > 1 ? void 0 : n ? me(t, i) : t, o = e.length - 1, d; o >= 0; o--)
|
|
865
511
|
(d = e[o]) && (r = (n ? d(t, i, r) : d(r)) || r);
|
|
@@ -891,7 +537,7 @@ function A(e, t = !1, i = "single") {
|
|
|
891
537
|
}
|
|
892
538
|
let c = class extends R {
|
|
893
539
|
constructor() {
|
|
894
|
-
super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.focusable = !1, this.clickTarget = null, this.localize = new
|
|
540
|
+
super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.focusable = !1, this.clickTarget = null, this.localize = new Z(this), this.sortableInstance = null, this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleSortableStart = this.handleSortableStart.bind(this), this.handleSortableEnd = this.handleSortableEnd.bind(this), this.handleFocusIn = this.handleFocusIn.bind(this), this.handleFocusOut = this.handleFocusOut.bind(this), this.handleSlotChange = this.handleSlotChange.bind(this), this.handleTreeChanged = this.handleTreeChanged.bind(this), this.initTreeItem = this.initTreeItem.bind(this);
|
|
895
541
|
}
|
|
896
542
|
runConnectedCallback() {
|
|
897
543
|
if (this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.addEventListener("cx-lazy-change", this.handleSlotChange), this.setAttribute("role", "tree"), this.setAttribute("tabindex", "0"), this.mutationObserver = new MutationObserver(this.handleTreeChanged), this.mutationObserver.observe(this, { childList: !0, subtree: !0 }), this.autoExpandToSelected) {
|
|
@@ -1131,21 +777,7 @@ let c = class extends R {
|
|
|
1131
777
|
});
|
|
1132
778
|
}
|
|
1133
779
|
render() {
|
|
1134
|
-
return g
|
|
1135
|
-
<div
|
|
1136
|
-
part="base"
|
|
1137
|
-
class="tree"
|
|
1138
|
-
@click=${this.handleClick}
|
|
1139
|
-
@keydown=${this.handleKeyDown}
|
|
1140
|
-
@mousedown=${this.handleMouseDown}
|
|
1141
|
-
>
|
|
1142
|
-
<slot part="children" @slotchange=${this.handleSlotChange}></slot>
|
|
1143
|
-
<span hidden aria-hidden="true"><slot name="expand-icon"></slot></span>
|
|
1144
|
-
<span hidden aria-hidden="true">
|
|
1145
|
-
<slot name="collapse-icon"></slot>
|
|
1146
|
-
</span>
|
|
1147
|
-
</div>
|
|
1148
|
-
`;
|
|
780
|
+
return g`<div part="base" class="tree" @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}><slot part="children" @slotchange=${this.handleSlotChange}></slot><span hidden aria-hidden="true"><slot name="expand-icon"></slot></span><span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span></div>`;
|
|
1149
781
|
}
|
|
1150
782
|
};
|
|
1151
783
|
c.styles = [N, pe];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { n as f, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c } from "./component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as d } from "./custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as x, x as i } from "./lit-element.jLBm65_O.js";
|
|
5
|
+
var t = /* @__PURE__ */ ((e) => (e.Body1 = "body1", e.Body2 = "body2", e.Body3 = "body3", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Small = "small", e))(t || {});
|
|
6
|
+
const m = x`:host{--color:inherit;--font-family:var(--cx-font-sans);--font-style:normal;line-height:var(--cx-line-height-large);display:block}:host::part(base){-webkit-font-smoothing:antialiased}.heading,.body,.small{color:var(--color);font-weight:var(--cx-font-weight);font-family:var(--font-family);font-style:var(--font-style);letter-spacing:var(--letter-spacing,var(--cx-letter-spacing-normal));margin-block:0}.heading-1{font-size:var(--font-size,var(--cx-font-size-3x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-2{font-size:var(--font-size,var(--cx-font-size-2x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-3{font-size:var(--font-size,var(--cx-font-size-x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-2x-large))}.heading-4{font-size:var(--font-size,var(--cx-font-size-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-x-large))}.heading-5{font-size:var(--font-size,var(--cx-font-size-medium));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-large))}.heading-6{font-size:var(--font-size,var(--cx-font-size-small));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-medium))}.body-1{font-size:var(--font-size,var(--cx-font-size-medium-large));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-x-large))}.body-2{font-size:var(--font-size,var(--cx-font-size-medium));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-large))}.body-3{font-size:var(--font-size,var(--cx-font-size-small));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-medium))}.small{font-size:var(--font-size,var(--cx-font-size-x-small));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-small))}`;
|
|
7
|
+
var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, g = (e, n, o, r) => {
|
|
8
|
+
for (var a = r > 1 ? void 0 : r ? w(n, o) : n, l = e.length - 1, h; l >= 0; l--)
|
|
9
|
+
(h = e[l]) && (a = (r ? h(n, o, a) : h(a)) || a);
|
|
10
|
+
return r && a && b(n, o, a), a;
|
|
11
|
+
};
|
|
12
|
+
let s = class extends v {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.variant = t.Body1;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
switch (this.variant) {
|
|
18
|
+
case t.Body1:
|
|
19
|
+
return i`<p part="base" class="body body-1"><slot></slot></p>`;
|
|
20
|
+
case t.Body2:
|
|
21
|
+
return i`<p part="base" class="body body-2"><slot></slot></p>`;
|
|
22
|
+
case t.Body3:
|
|
23
|
+
return i`<p part="base" class="body body-3"><slot></slot></p>`;
|
|
24
|
+
case t.Small:
|
|
25
|
+
return i`<small part="base" class="small"><slot></slot></small>`;
|
|
26
|
+
case t.H1:
|
|
27
|
+
return i`<h1 part="base" class="heading heading-1"><slot></slot></h1>`;
|
|
28
|
+
case t.H2:
|
|
29
|
+
return i`<h2 part="base" class="heading heading-2"><slot></slot></h2>`;
|
|
30
|
+
case t.H3:
|
|
31
|
+
return i`<h3 part="base" class="heading heading-3"><slot></slot></h3>`;
|
|
32
|
+
case t.H4:
|
|
33
|
+
return i`<h4 part="base" class="heading heading-4"><slot></slot></h4>`;
|
|
34
|
+
case t.H5:
|
|
35
|
+
return i`<h5 part="base" class="heading heading-5"><slot></slot></h5>`;
|
|
36
|
+
case t.H6:
|
|
37
|
+
return i`<h6 part="base" class="heading heading-6"><slot></slot></h6>`;
|
|
38
|
+
}
|
|
39
|
+
return i`<p part="base" class="body body-2"><slot></slot></p>`;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
s.styles = [c, m];
|
|
43
|
+
g([
|
|
44
|
+
f({ type: String })
|
|
45
|
+
], s.prototype, "variant", 2);
|
|
46
|
+
s = g([
|
|
47
|
+
d("cx-typography")
|
|
48
|
+
], s);
|
|
49
|
+
export {
|
|
50
|
+
s as C,
|
|
51
|
+
t as T
|
|
52
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function e(a, s = globalThis.location.origin) {
|
|
2
|
+
if (a) {
|
|
3
|
+
try {
|
|
4
|
+
const t = new URL(a);
|
|
5
|
+
if (t.origin === s)
|
|
6
|
+
return t.pathname + t.search + t.hash || "/";
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
return a;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const z = (a, s = "https://", t = !1) => t && a.match(d) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${s}${a}`, n = (a) => {
|
|
13
|
+
try {
|
|
14
|
+
return new URL(a), new RegExp(o, "i").test(a);
|
|
15
|
+
} catch {
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
}, d = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", o = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", c = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", _ = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
|
|
19
|
+
export {
|
|
20
|
+
d as R,
|
|
21
|
+
c as U,
|
|
22
|
+
z as a,
|
|
23
|
+
o as b,
|
|
24
|
+
_ as c,
|
|
25
|
+
n as i,
|
|
26
|
+
e as t
|
|
27
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as ge, x as Y, al as ve, q as $, J as ie, C as K, G as Q, L as U, T as j, m as ee, b as xe, e as k, b4 as ye, _ as te, a as ne, v as de } from "./am-chart.
|
|
1
|
+
import { D as ge, x as Y, al as ve, q as $, J as ie, C as K, G as Q, L as U, T as j, m as ee, b as xe, e as k, b4 as ye, _ as te, a as ne, v as de } from "./am-chart.H2jnOzFc.js";
|
|
2
2
|
import "./index.DcjJFMlq.js";
|
|
3
3
|
class ce extends ge {
|
|
4
4
|
setupDefaultRules() {
|