@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,777 +0,0 @@
|
|
|
1
|
-
import k from "../components/copy-button.js";
|
|
2
|
-
import { n as c, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
|
-
import { c as x } from "./component.styles.DMSLciL5.js";
|
|
4
|
-
import { i as u } from "./lit-element.jLBm65_O.js";
|
|
5
|
-
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as y } from "./i18n.C0iakJkV.js";
|
|
7
|
-
import { w } from "./watch.q1sEjPWL.js";
|
|
8
|
-
import { e as m } from "./query.BBf1UFkC.js";
|
|
9
|
-
import { e as g } from "./class-map.BiVq-cVR.js";
|
|
10
|
-
import { o as P } from "./style-map.llVFPd__.js";
|
|
11
|
-
import { n as z } from "./when.Dr1es41R.js";
|
|
12
|
-
import { i as l, u as h } from "./static.UA3G1Deq.js";
|
|
13
|
-
const C = u`
|
|
14
|
-
.column-resize-handle {
|
|
15
|
-
background-color: var(--editor-table-resize-handle-color);
|
|
16
|
-
bottom: -2px;
|
|
17
|
-
height: unset !important;
|
|
18
|
-
max-height: unset !important;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
position: absolute;
|
|
21
|
-
right: -4px;
|
|
22
|
-
top: -2px;
|
|
23
|
-
width: 4px;
|
|
24
|
-
z-index: 10000;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.column-resize-handle.bottom-handle {
|
|
28
|
-
bottom: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.column-resize-handle.top-handle {
|
|
32
|
-
top: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.row-resize-handle {
|
|
36
|
-
background-color: var(--editor-table-resize-handle-color);
|
|
37
|
-
bottom: -4px;
|
|
38
|
-
height: 4px;
|
|
39
|
-
left: -2px;
|
|
40
|
-
max-width: unset !important;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
position: absolute;
|
|
43
|
-
right: -2px;
|
|
44
|
-
width: unset !important;
|
|
45
|
-
z-index: 20, 10000;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.row-resize-handle.left-handle {
|
|
49
|
-
left: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.row-resize-handle.right-handle {
|
|
53
|
-
right: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ProseMirror {
|
|
57
|
-
--editor-table-resize-handle-color: #adf;
|
|
58
|
-
outline: none;
|
|
59
|
-
white-space: normal;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ProseMirror p {
|
|
63
|
-
margin: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.ProseMirror .tableWrapper .floating-button {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
position: absolute;
|
|
69
|
-
transition: opacity 0.2s ease-in-out;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ProseMirror .code-block-wrapper {
|
|
73
|
-
background-color: var(--cx-color-neutral-50);
|
|
74
|
-
border-radius: var(--cx-border-radius-medium);
|
|
75
|
-
color: var(--cx-color-neutral-700);
|
|
76
|
-
min-height: 3rem;
|
|
77
|
-
padding: var(--cx-spacing-x-small);
|
|
78
|
-
position: relative;
|
|
79
|
-
white-space: normal;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar {
|
|
83
|
-
display: flex;
|
|
84
|
-
gap: var(--cx-spacing-small);
|
|
85
|
-
position: absolute;
|
|
86
|
-
right: var(--cx-spacing-2x-small);
|
|
87
|
-
top: var(--cx-spacing-2x-small);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar,
|
|
91
|
-
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar.hidden {
|
|
92
|
-
opacity: 0;
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ProseMirror .code-block-wrapper:hover cx-rte-code-block-toolbar:not(.hidden),
|
|
97
|
-
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar.open {
|
|
98
|
-
opacity: 1;
|
|
99
|
-
pointer-events: auto;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ProseMirror .floating-button {
|
|
103
|
-
position: absolute;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ProseMirror .mce-item-anchor {
|
|
107
|
-
position: relative;
|
|
108
|
-
text-decoration: none !important;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.ProseMirror .mce-item-anchor::before {
|
|
112
|
-
color: var(--cx-color-neutral-700);
|
|
113
|
-
content: '\f02e';
|
|
114
|
-
font-family: FontAwesome;
|
|
115
|
-
font-size: 12px !important;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ProseMirror .tableWrapper {
|
|
119
|
-
position: relative;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.ProseMirror .tableWrapper:hover .floating-button,
|
|
123
|
-
.ProseMirror .tableWrapper.ProseMirror-selectednode .floating-button {
|
|
124
|
-
opacity: 1;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ProseMirror blockquote {
|
|
128
|
-
border-left: 3px solid var(--cx-color-neutral-300);
|
|
129
|
-
display: block;
|
|
130
|
-
margin-block-end: 1em;
|
|
131
|
-
margin-block-start: 1em;
|
|
132
|
-
margin-inline-end: 40px;
|
|
133
|
-
margin-inline-start: 40px;
|
|
134
|
-
padding-left: 1rem;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ProseMirror p.is-editor-empty {
|
|
138
|
-
position: relative;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ProseMirror p.is-editor-empty:first-child::before {
|
|
142
|
-
color: var(--cx-color-neutral-1000);
|
|
143
|
-
content: attr(data-placeholder);
|
|
144
|
-
display: block;
|
|
145
|
-
font-weight: 400;
|
|
146
|
-
height: 100%;
|
|
147
|
-
opacity: 0.25;
|
|
148
|
-
overflow: hidden;
|
|
149
|
-
pointer-events: none;
|
|
150
|
-
position: absolute;
|
|
151
|
-
text-overflow: ellipsis;
|
|
152
|
-
white-space: nowrap;
|
|
153
|
-
width: 100%;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.ProseMirror table .selectedCell:after {
|
|
157
|
-
background: var(--cx-color-neutral-300);
|
|
158
|
-
bottom: 0;
|
|
159
|
-
content: '';
|
|
160
|
-
height: 100%;
|
|
161
|
-
left: 0;
|
|
162
|
-
opacity: 0.4;
|
|
163
|
-
pointer-events: none;
|
|
164
|
-
position: absolute;
|
|
165
|
-
right: 0;
|
|
166
|
-
top: 0;
|
|
167
|
-
z-index: 2;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.ProseMirror table td,
|
|
171
|
-
.ProseMirror table th {
|
|
172
|
-
border: 1px dashed var(--cx-color-neutral-400);
|
|
173
|
-
min-width: 1rem;
|
|
174
|
-
position: relative;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.ProseMirror table[data-align='center'] {
|
|
178
|
-
margin-left: auto;
|
|
179
|
-
margin-right: auto;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.ProseMirror table[data-align='right'] {
|
|
183
|
-
margin-left: auto;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.ProseMirror.cursor-col-resize {
|
|
187
|
-
cursor: col-resize;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.ProseMirror.cursor-row-resize {
|
|
191
|
-
cursor: row-resize;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
pre[class*='language-'],
|
|
195
|
-
code[class*='language-'] {
|
|
196
|
-
color: #d4d4d4;
|
|
197
|
-
font-size: var(--cx-font-size-x-small);
|
|
198
|
-
text-shadow: none;
|
|
199
|
-
font-family:
|
|
200
|
-
Menlo, Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', 'Courier New',
|
|
201
|
-
monospace;
|
|
202
|
-
direction: ltr;
|
|
203
|
-
text-align: left;
|
|
204
|
-
white-space: pre;
|
|
205
|
-
word-spacing: normal;
|
|
206
|
-
word-break: normal;
|
|
207
|
-
line-height: 1.5;
|
|
208
|
-
tab-size: 4;
|
|
209
|
-
hyphens: none;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
pre[class*='language-']::selection,
|
|
213
|
-
code[class*='language-']::selection,
|
|
214
|
-
pre[class*='language-'] *::selection,
|
|
215
|
-
code[class*='language-'] *::selection {
|
|
216
|
-
text-shadow: none;
|
|
217
|
-
background: #75a7ca;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@media print {
|
|
221
|
-
pre[class*='language-'],
|
|
222
|
-
code[class*='language-'] {
|
|
223
|
-
text-shadow: none;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
pre[class*='language-'] {
|
|
228
|
-
padding: 1em;
|
|
229
|
-
margin: 0.5em 0;
|
|
230
|
-
overflow: auto;
|
|
231
|
-
background: #1e1e1e;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
:not(pre) > code[class*='language-'] {
|
|
235
|
-
padding: 0.1em 0.3em;
|
|
236
|
-
border-radius: 0.3em;
|
|
237
|
-
color: #db4c69;
|
|
238
|
-
background: #f9f2f4;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/*********************************************************
|
|
242
|
-
* Tokens
|
|
243
|
-
*/
|
|
244
|
-
.namespace {
|
|
245
|
-
opacity: 0.7;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.token.doctype .token.doctype-tag {
|
|
249
|
-
color: #569cd6;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.token.doctype .token.name {
|
|
253
|
-
color: #9cdcfe;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.token.comment,
|
|
257
|
-
.token.prolog {
|
|
258
|
-
color: #6a9955;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.token.punctuation,
|
|
262
|
-
.language-html .language-css .token.punctuation,
|
|
263
|
-
.language-html .language-javascript .token.punctuation {
|
|
264
|
-
color: #d4d4d4;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.token.property,
|
|
268
|
-
.token.tag,
|
|
269
|
-
.token.boolean,
|
|
270
|
-
.token.number,
|
|
271
|
-
.token.constant,
|
|
272
|
-
.token.symbol,
|
|
273
|
-
.token.deleted,
|
|
274
|
-
.token.unit {
|
|
275
|
-
color: #b5cea8;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.token.selector,
|
|
279
|
-
.token.attr-name,
|
|
280
|
-
.token.string,
|
|
281
|
-
.token.char,
|
|
282
|
-
.token.builtin,
|
|
283
|
-
.token.inserted {
|
|
284
|
-
color: #ce9178;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.language-css .token.string.url {
|
|
288
|
-
text-decoration: underline;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.token.operator,
|
|
292
|
-
.token.entity {
|
|
293
|
-
color: #d4d4d4;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.token.operator.arrow {
|
|
297
|
-
color: #569cd6;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.token.atrule {
|
|
301
|
-
color: #ce9178;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.token.atrule .token.rule {
|
|
305
|
-
color: #c586c0;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.token.atrule .token.url {
|
|
309
|
-
color: #9cdcfe;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.token.atrule .token.url .token.function {
|
|
313
|
-
color: #dcdcaa;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.token.atrule .token.url .token.punctuation {
|
|
317
|
-
color: #d4d4d4;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.token.keyword {
|
|
321
|
-
color: #569cd6;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.token.keyword.module,
|
|
325
|
-
.token.keyword.control-flow {
|
|
326
|
-
color: #c586c0;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.token.function,
|
|
330
|
-
.token.function .token.maybe-class-name {
|
|
331
|
-
color: #dcdcaa;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.token.regex {
|
|
335
|
-
color: #d16969;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.token.important {
|
|
339
|
-
color: #569cd6;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.token.italic {
|
|
343
|
-
font-style: italic;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.token.constant {
|
|
347
|
-
color: #9cdcfe;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.token.class-name,
|
|
351
|
-
.token.maybe-class-name {
|
|
352
|
-
color: #4ec9b0;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.token.console {
|
|
356
|
-
color: #9cdcfe;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.token.parameter {
|
|
360
|
-
color: #9cdcfe;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.token.interpolation {
|
|
364
|
-
color: #9cdcfe;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.token.punctuation.interpolation-punctuation {
|
|
368
|
-
color: #569cd6;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.token.boolean {
|
|
372
|
-
color: #569cd6;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.token.property,
|
|
376
|
-
.token.variable,
|
|
377
|
-
.token.imports .token.maybe-class-name,
|
|
378
|
-
.token.exports .token.maybe-class-name {
|
|
379
|
-
color: #9cdcfe;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.token.selector {
|
|
383
|
-
color: #d7ba7d;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.token.escape {
|
|
387
|
-
color: #d7ba7d;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.token.tag {
|
|
391
|
-
color: #569cd6;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.token.tag .token.punctuation {
|
|
395
|
-
color: #808080;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.token.cdata {
|
|
399
|
-
color: #808080;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.token.attr-name {
|
|
403
|
-
color: #9cdcfe;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.token.attr-value,
|
|
407
|
-
.token.attr-value .token.punctuation {
|
|
408
|
-
color: #ce9178;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.token.attr-value .token.punctuation.attr-equals {
|
|
412
|
-
color: #d4d4d4;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.token.entity {
|
|
416
|
-
color: #569cd6;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.token.namespace {
|
|
420
|
-
color: #4ec9b0;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/*********************************************************
|
|
424
|
-
* Language Specific
|
|
425
|
-
*/
|
|
426
|
-
|
|
427
|
-
pre[class*='language-javascript'],
|
|
428
|
-
code[class*='language-javascript'],
|
|
429
|
-
pre[class*='language-jsx'],
|
|
430
|
-
code[class*='language-jsx'],
|
|
431
|
-
pre[class*='language-typescript'],
|
|
432
|
-
code[class*='language-typescript'],
|
|
433
|
-
pre[class*='language-tsx'],
|
|
434
|
-
code[class*='language-tsx'] {
|
|
435
|
-
color: #9cdcfe;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
pre[class*='language-css'],
|
|
439
|
-
code[class*='language-css'] {
|
|
440
|
-
color: #ce9178;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
pre[class*='language-html'],
|
|
444
|
-
code[class*='language-html'] {
|
|
445
|
-
color: #d4d4d4;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.language-regex .token.anchor {
|
|
449
|
-
color: #dcdcaa;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.language-html .token.punctuation {
|
|
453
|
-
color: #808080;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/*********************************************************
|
|
457
|
-
* Line highlighting
|
|
458
|
-
*/
|
|
459
|
-
pre[data-line] {
|
|
460
|
-
position: relative;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
pre[class*='language-'] > code[class*='language-'] {
|
|
464
|
-
position: relative;
|
|
465
|
-
z-index: 1;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.line-highlight {
|
|
469
|
-
position: absolute;
|
|
470
|
-
left: 0;
|
|
471
|
-
right: 0;
|
|
472
|
-
padding: 0;
|
|
473
|
-
margin-top: 1em;
|
|
474
|
-
background: #f7ebc6;
|
|
475
|
-
box-shadow: inset 5px 0 0 #f7d87c;
|
|
476
|
-
z-index: 0;
|
|
477
|
-
pointer-events: none;
|
|
478
|
-
line-height: inherit;
|
|
479
|
-
white-space: pre;
|
|
480
|
-
}
|
|
481
|
-
`;
|
|
482
|
-
var t = /* @__PURE__ */ ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(t || {}), f = /* @__PURE__ */ ((e) => (e.Center = "center", e.Justify = "justify", e.Left = "left", e.Right = "right", e))(f || {});
|
|
483
|
-
const M = u`
|
|
484
|
-
:host {
|
|
485
|
-
--color: light-dark(#000000, #ffffff);
|
|
486
|
-
--font-family: var(--cx-font-sans);
|
|
487
|
-
--text-align: left;
|
|
488
|
-
--line-height: 1;
|
|
489
|
-
--padding: 0;
|
|
490
|
-
|
|
491
|
-
width: 100%;
|
|
492
|
-
display: block;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
:host([alignment='center']) .container {
|
|
496
|
-
--text-align: center;
|
|
497
|
-
justify-content: center;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
:host([alignment='right']) .container {
|
|
501
|
-
--text-align: right;
|
|
502
|
-
flex-direction: row-reverse;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
:host([alignment='left']) .container {
|
|
506
|
-
--text-align: left;
|
|
507
|
-
justify-content: flex-start;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
:host([alignment='justify']) .container {
|
|
511
|
-
--text-align: justify;
|
|
512
|
-
justify-content: flex-start;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.container {
|
|
516
|
-
display: flex;
|
|
517
|
-
align-items: center;
|
|
518
|
-
flex-direction: row;
|
|
519
|
-
padding: var(--padding, 0px);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.container ::slotted(p),
|
|
523
|
-
.container p {
|
|
524
|
-
word-wrap: break-word;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.heading {
|
|
528
|
-
margin-block-start: 0;
|
|
529
|
-
margin-block-end: 0;
|
|
530
|
-
color: var(--color);
|
|
531
|
-
font-family: var(--font-family);
|
|
532
|
-
text-align: var(--text-align, left);
|
|
533
|
-
flex: 1 1 auto;
|
|
534
|
-
max-width: 100%;
|
|
535
|
-
|
|
536
|
-
/* Fallback for engines without lh support (expects unitless --line-height) */
|
|
537
|
-
min-height: calc(var(--line-height, 1) * 1em);
|
|
538
|
-
/* Robust: equals computed line-height regardless of units */
|
|
539
|
-
min-height: 1lh;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.container.container--has-copy-button .heading {
|
|
543
|
-
max-width: calc(100% - 32px);
|
|
544
|
-
flex: 0 0 auto;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
.copy-button {
|
|
548
|
-
opacity: 0;
|
|
549
|
-
transition: opacity var(--cx-transition-fast);
|
|
550
|
-
line-height: 0;
|
|
551
|
-
color: var(--cx-color-neutral-600);
|
|
552
|
-
pointer-events: none;
|
|
553
|
-
user-select: none;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.container:hover .copy-button,
|
|
557
|
-
.copy-button:focus-within {
|
|
558
|
-
opacity: 1;
|
|
559
|
-
pointer-events: auto;
|
|
560
|
-
user-select: auto;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.heading-1 {
|
|
564
|
-
font-size: var(--cx-font-size-3x-large);
|
|
565
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
566
|
-
line-height: var(--line-height, var(--cx-line-height-3x-large));
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.heading-2 {
|
|
570
|
-
font-size: var(--cx-font-size-2x-large);
|
|
571
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
572
|
-
line-height: var(--line-height, var(--cx-line-height-3x-large));
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.heading-3 {
|
|
576
|
-
font-size: var(--cx-font-size-x-large);
|
|
577
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
578
|
-
line-height: var(--line-height, var(--cx-line-height-2x-large));
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.heading-4 {
|
|
582
|
-
font-size: var(--cx-font-size-large);
|
|
583
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
584
|
-
line-height: var(--line-height, var(--cx-line-height-x-large));
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.heading-5 {
|
|
588
|
-
font-size: var(--cx-font-size-medium);
|
|
589
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
590
|
-
line-height: var(--line-height, var(--cx-line-height-large));
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.heading-6 {
|
|
594
|
-
font-size: var(--cx-font-size-small);
|
|
595
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
596
|
-
line-height: var(--line-height, var(--cx-line-height-medium));
|
|
597
|
-
}
|
|
598
|
-
`;
|
|
599
|
-
var A = Object.defineProperty, H = Object.getOwnPropertyDescriptor, r = (e, n, a, s) => {
|
|
600
|
-
for (var i = s > 1 ? void 0 : s ? H(n, a) : n, d = e.length - 1, p; d >= 0; d--)
|
|
601
|
-
(p = e[d]) && (i = (s ? p(n, a, i) : p(i)) || i);
|
|
602
|
-
return s && i && A(n, a, i), i;
|
|
603
|
-
};
|
|
604
|
-
const L = {
|
|
605
|
-
[t.H1]: "heading-1",
|
|
606
|
-
[t.H2]: "heading-2",
|
|
607
|
-
[t.H3]: "heading-3",
|
|
608
|
-
[t.H4]: "heading-4",
|
|
609
|
-
[t.H5]: "heading-5",
|
|
610
|
-
[t.H6]: "heading-6"
|
|
611
|
-
}, T = {
|
|
612
|
-
[t.H1]: l`h1`,
|
|
613
|
-
[t.H2]: l`h2`,
|
|
614
|
-
[t.H3]: l`h3`,
|
|
615
|
-
[t.H4]: l`h4`,
|
|
616
|
-
[t.H5]: l`h5`,
|
|
617
|
-
[t.H6]: l`h6`
|
|
618
|
-
};
|
|
619
|
-
let o = class extends b {
|
|
620
|
-
constructor() {
|
|
621
|
-
super(), this.localize = new y(this), this.variant = t.H6, this.fontSize = void 0, this.hasAnchorLink = !1, this.anchorLink = "", this.alignment = f.Left, this.disabledCopyButton = !1, this.cms5PageReadyTimeout = null, this.scrollToAnchor = () => {
|
|
622
|
-
const e = this.getAnchorID();
|
|
623
|
-
!e || e !== this.anchorID || this.scrollIntoView({
|
|
624
|
-
block: "start"
|
|
625
|
-
});
|
|
626
|
-
}, this.handleClick = this.handleClick.bind(this), this.handleCMS5PageReady = this.handleCMS5PageReady.bind(this);
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Get the owner window
|
|
630
|
-
*/
|
|
631
|
-
get ownerWindow() {
|
|
632
|
-
return this.ownerDocument.defaultView ?? window;
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Get the anchor ID for the header.
|
|
636
|
-
* If `hasAnchorLink` is false, it returns an empty string.
|
|
637
|
-
* If `anchorLink` is provided, it returns that.
|
|
638
|
-
* Otherwise, it generates an anchor based on the text content of the header,
|
|
639
|
-
*/
|
|
640
|
-
get anchorID() {
|
|
641
|
-
return this.hasAnchorLink && (this.anchorLink || this.textContent?.trim().replace(/\s+/g, "-").toLowerCase()) || "";
|
|
642
|
-
}
|
|
643
|
-
runFirstUpdated() {
|
|
644
|
-
setTimeout(() => {
|
|
645
|
-
this.scrollToAnchor();
|
|
646
|
-
}, 200);
|
|
647
|
-
}
|
|
648
|
-
runConnectedCallback() {
|
|
649
|
-
this.addEventListener("click", this.handleClick), this.setAttribute("role", "heading"), this.hasAnchorLink && (this.ownerWindow.addEventListener("hashchange", this.scrollToAnchor), this.ownerWindow.addEventListener(
|
|
650
|
-
"cx-cms5-page-ready",
|
|
651
|
-
this.handleCMS5PageReady,
|
|
652
|
-
{
|
|
653
|
-
once: !0
|
|
654
|
-
}
|
|
655
|
-
));
|
|
656
|
-
}
|
|
657
|
-
disconnectedCallback() {
|
|
658
|
-
super.disconnectedCallback(), this.removeEventListener("click", this.handleClick), this.ownerWindow.removeEventListener("hashchange", this.scrollToAnchor), this.ownerWindow.removeEventListener(
|
|
659
|
-
"cx-cms5-page-ready",
|
|
660
|
-
this.scrollToAnchor
|
|
661
|
-
), this.cms5PageReadyTimeout && (clearTimeout(this.cms5PageReadyTimeout), this.cms5PageReadyTimeout = null);
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Scroll to anchor after CMS5 page is ready
|
|
665
|
-
* Wait 100ms for repaint reflow shift layout (not affect by fetching api in web component)
|
|
666
|
-
*/
|
|
667
|
-
handleCMS5PageReady() {
|
|
668
|
-
this.cms5PageReadyTimeout && clearTimeout(this.cms5PageReadyTimeout), this.cms5PageReadyTimeout = setTimeout(() => {
|
|
669
|
-
this.scrollToAnchor();
|
|
670
|
-
}, 100);
|
|
671
|
-
}
|
|
672
|
-
handleClick(e) {
|
|
673
|
-
this.contentEditable === "true" && e.stopPropagation();
|
|
674
|
-
}
|
|
675
|
-
getAnchorID() {
|
|
676
|
-
let e = "";
|
|
677
|
-
const a = this.ownerWindow.location.href.split("#");
|
|
678
|
-
return a.length > 1 && (e = decodeURIComponent(a[1])), e;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* After Tiptap editor is destroyed, the slot element is removed.
|
|
682
|
-
* This method is used to re-add the slot element.
|
|
683
|
-
*/
|
|
684
|
-
addSlotElement() {
|
|
685
|
-
if (this.defaultSlot || !this.heading)
|
|
686
|
-
return;
|
|
687
|
-
const e = this.ownerDocument.createElement("slot");
|
|
688
|
-
this.heading.appendChild(e);
|
|
689
|
-
}
|
|
690
|
-
handleHeadingChange() {
|
|
691
|
-
this.setAttribute("aria-level", this.variant.replace("h", ""));
|
|
692
|
-
}
|
|
693
|
-
handleCopyButtonClick(e) {
|
|
694
|
-
e.stopPropagation();
|
|
695
|
-
}
|
|
696
|
-
renderHeading(e) {
|
|
697
|
-
const n = L[this.variant], a = T[this.variant];
|
|
698
|
-
return h`
|
|
699
|
-
<${a}
|
|
700
|
-
part="heading"
|
|
701
|
-
class=${g({ heading: !0, [n]: !0 })}
|
|
702
|
-
style=${P({
|
|
703
|
-
fontSize: /\d/.test(this.fontSize || "") ? this.fontSize : void 0
|
|
704
|
-
})}
|
|
705
|
-
>
|
|
706
|
-
${e}
|
|
707
|
-
</${a}>
|
|
708
|
-
`;
|
|
709
|
-
}
|
|
710
|
-
render() {
|
|
711
|
-
const e = this.hasAnchorLink ? `${this.ownerWindow.location.href.split("#")[0]}#${encodeURIComponent(this.anchorID)}` : "", n = this.hasAnchorLink && !this.disabledCopyButton;
|
|
712
|
-
return h`
|
|
713
|
-
<div
|
|
714
|
-
part="base"
|
|
715
|
-
class=${g({
|
|
716
|
-
container: !0,
|
|
717
|
-
"container--has-copy-button": n
|
|
718
|
-
})}
|
|
719
|
-
>
|
|
720
|
-
${this.renderHeading(h`<slot></slot>`)}
|
|
721
|
-
${z(n, () => h`<cx-copy-button
|
|
722
|
-
part="copy-button"
|
|
723
|
-
class="copy-button"
|
|
724
|
-
value=${e}
|
|
725
|
-
hoist=""
|
|
726
|
-
label=${this.localize.term("copy")}
|
|
727
|
-
@click=${this.handleCopyButtonClick}
|
|
728
|
-
>
|
|
729
|
-
<cx-icon slot="copy-icon" name="attachment"></cx-icon>
|
|
730
|
-
</cx-copy-button>`)}
|
|
731
|
-
</div>
|
|
732
|
-
`;
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
o.styles = [
|
|
736
|
-
x,
|
|
737
|
-
C,
|
|
738
|
-
M
|
|
739
|
-
];
|
|
740
|
-
o.dependencies = {
|
|
741
|
-
"cx-copy-button": k
|
|
742
|
-
};
|
|
743
|
-
r([
|
|
744
|
-
m("slot")
|
|
745
|
-
], o.prototype, "defaultSlot", 2);
|
|
746
|
-
r([
|
|
747
|
-
m(".heading")
|
|
748
|
-
], o.prototype, "heading", 2);
|
|
749
|
-
r([
|
|
750
|
-
c({ reflect: !0, type: String })
|
|
751
|
-
], o.prototype, "variant", 2);
|
|
752
|
-
r([
|
|
753
|
-
c({ attribute: "font-size", reflect: !0, type: String })
|
|
754
|
-
], o.prototype, "fontSize", 2);
|
|
755
|
-
r([
|
|
756
|
-
c({ attribute: "has-anchor-link", type: Boolean })
|
|
757
|
-
], o.prototype, "hasAnchorLink", 2);
|
|
758
|
-
r([
|
|
759
|
-
c({ attribute: "anchor-link", type: String })
|
|
760
|
-
], o.prototype, "anchorLink", 2);
|
|
761
|
-
r([
|
|
762
|
-
c({ type: String })
|
|
763
|
-
], o.prototype, "alignment", 2);
|
|
764
|
-
r([
|
|
765
|
-
c({ attribute: "disabled-copy-button", reflect: !0, type: Boolean })
|
|
766
|
-
], o.prototype, "disabledCopyButton", 2);
|
|
767
|
-
r([
|
|
768
|
-
w("variant")
|
|
769
|
-
], o.prototype, "handleHeadingChange", 1);
|
|
770
|
-
o = r([
|
|
771
|
-
v("cx-header")
|
|
772
|
-
], o);
|
|
773
|
-
export {
|
|
774
|
-
f as A,
|
|
775
|
-
o as C,
|
|
776
|
-
t as V
|
|
777
|
-
};
|