@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
|
@@ -16,9 +16,9 @@ export default class StyleController {
|
|
|
16
16
|
id: string;
|
|
17
17
|
unit?: string | undefined;
|
|
18
18
|
attributes?: Record<string, any> | undefined;
|
|
19
|
+
default?: any;
|
|
19
20
|
max?: number | undefined;
|
|
20
21
|
min?: number | undefined;
|
|
21
|
-
default?: any;
|
|
22
22
|
text?: string | undefined;
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
category?: (string | import('grapesjs').BlockCategoryProperties) | undefined;
|
|
@@ -45,6 +45,14 @@ export default class StyleController {
|
|
|
45
45
|
full?: boolean | undefined;
|
|
46
46
|
accept?: string;
|
|
47
47
|
api?: () => Promise<import('../../../types/src/content-builder').Option[]> | import('../../../types/src/folder-select').FolderSelectApi;
|
|
48
|
+
assetTransformationConfigs?: {
|
|
49
|
+
assetIdKey?: string;
|
|
50
|
+
formatKey?: string;
|
|
51
|
+
multiple?: boolean;
|
|
52
|
+
noCrop?: boolean;
|
|
53
|
+
noResize?: boolean;
|
|
54
|
+
noRotate?: boolean;
|
|
55
|
+
};
|
|
48
56
|
callback?: ((params: {
|
|
49
57
|
extraValue?: Record<string, unknown>;
|
|
50
58
|
record: Record<string, any>;
|
|
@@ -53,7 +61,7 @@ export default class StyleController {
|
|
|
53
61
|
checkedValue?: string | boolean;
|
|
54
62
|
children?: import('../../../types/src/content-builder').PropertyConfig[];
|
|
55
63
|
clearable?: boolean;
|
|
56
|
-
controlType: "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "video-picker";
|
|
64
|
+
controlType: "asset-transformation" | "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "video-format-picker" | "video-picker";
|
|
57
65
|
cornerStyleKey?: {
|
|
58
66
|
offsetX: string;
|
|
59
67
|
offsetY: string;
|
|
@@ -63,12 +71,15 @@ export default class StyleController {
|
|
|
63
71
|
disabledTooltip?: string;
|
|
64
72
|
downloadFormatPickerConfigs?: {
|
|
65
73
|
assetIdsKey?: string;
|
|
74
|
+
isObjectFormat?: boolean;
|
|
75
|
+
objectIdKey?: string;
|
|
66
76
|
};
|
|
67
77
|
folderPickerConfigs?: {
|
|
68
78
|
useFullPath: boolean;
|
|
69
79
|
};
|
|
70
80
|
galleryPickerConfigs?: {
|
|
71
81
|
dialog: import('../../../types/src/content-builder').DialogType;
|
|
82
|
+
transformationRecordIdKey?: string;
|
|
72
83
|
};
|
|
73
84
|
groupConfigs?: {
|
|
74
85
|
columnGap?: string;
|
|
@@ -124,6 +135,13 @@ export default class StyleController {
|
|
|
124
135
|
type: "attribute" | "property" | "style" | "decorative";
|
|
125
136
|
uncheckedValue?: string | boolean;
|
|
126
137
|
useSearchTerm?: boolean;
|
|
138
|
+
videoFormatPickerConfigs?: {
|
|
139
|
+
assetIdKey?: string;
|
|
140
|
+
assetVersionKey?: string;
|
|
141
|
+
formatLabelKey?: string;
|
|
142
|
+
formatSrcKey?: string;
|
|
143
|
+
versionLabelKey?: string;
|
|
144
|
+
};
|
|
127
145
|
width?: ((record: Record<string, unknown>) => string | number) | string | number;
|
|
128
146
|
};
|
|
129
147
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as CxAssetLinkFormat } from './asset-link-format/asset-link-format';
|
|
2
|
+
export { default as CxAssetTransformationDialog } from './asset-transformation-dialog/asset-transformation-dialog';
|
|
2
3
|
export { default as CxDashboardFilter } from './dashboard-filter/dashboard-filter';
|
|
3
4
|
export { default as CxDashboardTable } from './dashboard-table/dashboard-table';
|
|
4
5
|
export { default as CxBentoGrid } from './bento-grid/bento-grid';
|
|
@@ -11,6 +12,7 @@ export { default as CxComment } from './comment/comment';
|
|
|
11
12
|
export { default as CxContentBuilder } from './content-builder/content-builder';
|
|
12
13
|
export { default as CxDownloader } from './downloader/downloader';
|
|
13
14
|
export { default as CxFileOnDemand } from './file-on-demand/file-on-demand';
|
|
15
|
+
export { default as CxLightbox } from './lightbox/lightbox';
|
|
14
16
|
export { default as CxMultiSelect } from './multi-select/multi-select';
|
|
15
17
|
export { default as CxTemplateSwitcher } from './template-switcher/template-switcher';
|
|
16
18
|
export { default as CxTextToSpeech } from './text-to-speech/text-to-speech';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
|
|
2
|
+
import { default as CxDialog } from '../../../atoms/src/components/dialog/dialog.ts';
|
|
3
|
+
import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
|
|
4
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
5
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
6
|
+
import { default as CxCarousel } from '../carousel/carousel.ts';
|
|
7
|
+
import { GalleryItem } from '../../../types/src/gallery-item';
|
|
8
|
+
import { TemplateResult } from 'lit';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @summary A fullscreen lightbox that wraps a dialog and carousel for browsing gallery items.
|
|
12
|
+
* Supports download, keyboard/click-to-close, and lazy loading via chunk-based data fetching.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The outer lightbox wrapper inside the dialog body.
|
|
15
|
+
* @csspart toolbar - The top-right action toolbar.
|
|
16
|
+
* @csspart counter - The slide counter label.
|
|
17
|
+
*
|
|
18
|
+
* @event cx-lightbox-close - Emitted when the lightbox is closed. Detail: `{ index: number }`
|
|
19
|
+
* @event cx-lightbox-download - Emitted when the download button is clicked. Detail: `{ index: number; item: GalleryItem }`
|
|
20
|
+
* @event cx-slide-change - Re-emitted from the internal carousel when the active slide changes.
|
|
21
|
+
* @event cx-gallery-chunk-request - Re-emitted from the internal carousel when more data is needed.
|
|
22
|
+
*/
|
|
23
|
+
export default class CxLightbox extends CortexElement {
|
|
24
|
+
static readonly styles: import('lit').CSSResult[];
|
|
25
|
+
static readonly dependencies: {
|
|
26
|
+
'cx-button': typeof CxButton;
|
|
27
|
+
'cx-carousel': typeof CxCarousel;
|
|
28
|
+
'cx-dialog': typeof CxDialog;
|
|
29
|
+
'cx-icon': typeof CxIcon;
|
|
30
|
+
'cx-tooltip': typeof CxTooltip;
|
|
31
|
+
};
|
|
32
|
+
private readonly localize;
|
|
33
|
+
private carouselEl?;
|
|
34
|
+
/**
|
|
35
|
+
* Controls visibility of the lightbox.
|
|
36
|
+
*/
|
|
37
|
+
open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Array of slide items to display.
|
|
40
|
+
*/
|
|
41
|
+
data: GalleryItem[];
|
|
42
|
+
/**
|
|
43
|
+
* Total number of items (used for the counter and carousel chunking).
|
|
44
|
+
*/
|
|
45
|
+
totalData: number;
|
|
46
|
+
/**
|
|
47
|
+
* Loaded data range passed through to the carousel for lazy loading.
|
|
48
|
+
*/
|
|
49
|
+
chunk: [number, number];
|
|
50
|
+
/**
|
|
51
|
+
* The slide index to jump to when the lightbox opens.
|
|
52
|
+
*/
|
|
53
|
+
startIndex: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the carousel loops back to the start after the last slide.
|
|
56
|
+
*/
|
|
57
|
+
loop: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Show the download button in the toolbar.
|
|
60
|
+
*/
|
|
61
|
+
canDownload: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Current active slide index, synced from internal carousel.
|
|
64
|
+
*/
|
|
65
|
+
private activeIndex;
|
|
66
|
+
mappedData: GalleryItem[];
|
|
67
|
+
handleOpenChange(): Promise<void>;
|
|
68
|
+
handleDataChange(): void;
|
|
69
|
+
private handleRequestClose;
|
|
70
|
+
private handleSlideChange;
|
|
71
|
+
private handleDownload;
|
|
72
|
+
private renderToolbar;
|
|
73
|
+
render(): TemplateResult;
|
|
74
|
+
}
|
|
75
|
+
declare global {
|
|
76
|
+
interface HTMLElementTagNameMap {
|
|
77
|
+
'cx-lightbox': CxLightbox;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAllFormatCodesResponse, GetAssetLinkResponse, GetAssetsInFolderRequest, GetAssetsInFolderResponse, GetAssetsRequest, GetAssetsResponse, GetAvailableProxiesResponse, GetCropZoneSuggestionRequest, GetCropZoneSuggestionResponse, GetTransformAssetLinkResponse } from './asset.types';
|
|
1
|
+
import { GetAllFormatCodesResponse, GetAssetLinkResponse, GetAssetsInFolderRequest, GetAssetsInFolderResponse, GetAssetsRequest, GetAssetsResponse, GetAvailableProxiesResponse, GetCropZoneSuggestionRequest, GetCropZoneSuggestionResponse, GetTransformAssetLinkResponse, SearchAssetsParams, SearchAssetsResponse } from './asset.types';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_VIEW_SIZE = "CoreField.LargeSizePreview";
|
|
4
4
|
export declare const FIELD_CORTEX_PATH = "Document.CortexPath";
|
|
@@ -22,6 +22,7 @@ export declare const LIBRARY_NAME = "Library";
|
|
|
22
22
|
export declare const MESSAGE_NEW_LINE = "\n";
|
|
23
23
|
export declare const ORIGINAL_VIEW_SIZE = "CoreField.OriginalPreview";
|
|
24
24
|
export declare function resolveAssetExtraFilters(selectedFacets?: Record<string, string[]>): Record<string, string[]>;
|
|
25
|
+
export declare function apiSearchAssets({ fields, getPermanentAssetsPaths, limit, query, siteUrl, start, token, useSession, }: SearchAssetsParams): Promise<SearchAssetsResponse>;
|
|
25
26
|
export declare function apiGetAssetLink({ extraFields, id, proxyPreference, siteUrl, token, useSession, }: {
|
|
26
27
|
extraFields?: string;
|
|
27
28
|
id: string;
|
|
@@ -39,7 +40,7 @@ export declare function apiGetTransformAssetLink({ assetId, extension, format, s
|
|
|
39
40
|
transformations?: string;
|
|
40
41
|
useSession?: string;
|
|
41
42
|
}): Promise<GetTransformAssetLinkResponse | null>;
|
|
42
|
-
export declare function apiGetAssets({ extraFields, recordIds, }: GetAssetsRequest): Promise<GetAssetsResponse>;
|
|
43
|
+
export declare function apiGetAssets({ extraFields, recordIds, token, }: GetAssetsRequest): Promise<GetAssetsResponse>;
|
|
43
44
|
export declare function apiGetAssetsInFolder({ extraFields, folderId, limit, limitedDocTypes, searchTerm, seeThrough, selectedFacets, sortOrder, start, }: GetAssetsInFolderRequest): Promise<GetAssetsInFolderResponse>;
|
|
44
45
|
export declare function apiGetCropFocusMode({ autoCropMode, cropHeight, cropWidth, imageUrl, useSession, }: GetCropZoneSuggestionRequest): Promise<GetCropZoneSuggestionResponse | null>;
|
|
45
46
|
export declare function apiGetAvailableProxies({ assetRecordId, siteUrl, token, useSession, }: {
|
|
@@ -3,6 +3,7 @@ export declare enum MediaType {
|
|
|
3
3
|
Audio = "Audio",
|
|
4
4
|
Image = "Image",
|
|
5
5
|
Multimedia = "Multimedia",
|
|
6
|
+
ProjectDocument = "ProjectDocument",
|
|
6
7
|
Story = "Story",
|
|
7
8
|
Video = "Video",
|
|
8
9
|
Widget = "Widget"
|
|
@@ -93,6 +94,7 @@ export type GetTransformAssetLinkResponse = {
|
|
|
93
94
|
export type GetAssetsRequest = {
|
|
94
95
|
extraFields?: string[];
|
|
95
96
|
recordIds: string[];
|
|
97
|
+
token?: string;
|
|
96
98
|
};
|
|
97
99
|
export type GetAssetsResponse = {
|
|
98
100
|
facets: Facet[];
|
|
@@ -161,3 +163,85 @@ export type GetAllFormatCodesRawResponse = {
|
|
|
161
163
|
export type GetAllFormatCodesResponse = {
|
|
162
164
|
formatsByDocType: FormatsByDocType;
|
|
163
165
|
};
|
|
166
|
+
export type SearchDateOperator = ':' | '>' | '>:' | '<' | '<:';
|
|
167
|
+
export type SearchDateCriterion = {
|
|
168
|
+
operator: SearchDateOperator;
|
|
169
|
+
value: string;
|
|
170
|
+
};
|
|
171
|
+
export declare enum SearchOrientation {
|
|
172
|
+
Landscape = "Landscape",
|
|
173
|
+
Portrait = "Portrait",
|
|
174
|
+
Square = "Square"
|
|
175
|
+
}
|
|
176
|
+
export type SearchCriteria = {
|
|
177
|
+
artist?: string;
|
|
178
|
+
color?: boolean;
|
|
179
|
+
createDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
180
|
+
custom?: Record<string, string | string[]>;
|
|
181
|
+
docSubType?: string | string[];
|
|
182
|
+
docType?: MediaType | MediaType[];
|
|
183
|
+
editDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
184
|
+
fileExtension?: string | string[];
|
|
185
|
+
keyword?: string | string[];
|
|
186
|
+
mediaDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
187
|
+
mediaNumber?: string;
|
|
188
|
+
nativeKeyword?: string | string[];
|
|
189
|
+
orientation?: SearchOrientation;
|
|
190
|
+
parentFolderIdentifier?: string;
|
|
191
|
+
path?: string;
|
|
192
|
+
photographer?: string;
|
|
193
|
+
purpose?: string;
|
|
194
|
+
recordId?: string | string[];
|
|
195
|
+
systemIdentifier?: string;
|
|
196
|
+
text?: string;
|
|
197
|
+
title?: string;
|
|
198
|
+
};
|
|
199
|
+
export type SearchQueryNode = {
|
|
200
|
+
and: SearchQueryNode[];
|
|
201
|
+
} | {
|
|
202
|
+
or: SearchQueryNode[];
|
|
203
|
+
} | {
|
|
204
|
+
not: SearchQueryNode;
|
|
205
|
+
} | SearchCriteria;
|
|
206
|
+
export type SearchAssetsParams = {
|
|
207
|
+
fields?: string[];
|
|
208
|
+
getPermanentAssetsPaths?: boolean;
|
|
209
|
+
limit?: number;
|
|
210
|
+
query: SearchQueryNode;
|
|
211
|
+
siteUrl?: string;
|
|
212
|
+
start?: number;
|
|
213
|
+
token?: string;
|
|
214
|
+
useSession?: string;
|
|
215
|
+
};
|
|
216
|
+
export type SearchAssetsMediaField = {
|
|
217
|
+
Height?: number;
|
|
218
|
+
URI: string;
|
|
219
|
+
Width?: number;
|
|
220
|
+
};
|
|
221
|
+
export type SearchAssetsItemFieldValue = string | number | boolean | SearchAssetsMediaField;
|
|
222
|
+
export type SearchAssetsItem = Record<string, SearchAssetsItemFieldValue>;
|
|
223
|
+
export type SearchAssetsRawResponse = {
|
|
224
|
+
APIRequestInfo?: {
|
|
225
|
+
APIVersion: string;
|
|
226
|
+
IsLoggedIn: boolean;
|
|
227
|
+
Module: string;
|
|
228
|
+
ProviderID: string;
|
|
229
|
+
ProviderVersion: string;
|
|
230
|
+
Status: string;
|
|
231
|
+
TimeoutPeriodMinutes: number;
|
|
232
|
+
UserLogin: string;
|
|
233
|
+
};
|
|
234
|
+
APIResponse: {
|
|
235
|
+
GlobalInfo: {
|
|
236
|
+
QueryDurationMilliseconds: number;
|
|
237
|
+
Sort: string;
|
|
238
|
+
TotalCount: number;
|
|
239
|
+
};
|
|
240
|
+
Items: SearchAssetsItem[];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
export type SearchAssetsResponse = {
|
|
244
|
+
items: SearchAssetsItem[];
|
|
245
|
+
sort: string;
|
|
246
|
+
totalCount: number;
|
|
247
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SearchAssetsItemFieldValue, SearchAssetsMediaField, SearchQueryNode } from './asset.types';
|
|
2
|
+
|
|
3
|
+
export declare function isSearchAssetsMediaField(value: SearchAssetsItemFieldValue): value is SearchAssetsMediaField;
|
|
4
|
+
export type AssetExtraFilters = {
|
|
5
|
+
FacetFilters?: Record<string, string[]>;
|
|
6
|
+
SubtypeCriteria?: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare function resolveAssetExtraFilters(selectedFacets?: Record<string, string[]>): AssetExtraFilters;
|
|
9
|
+
export declare function buildSearchQuery(node: SearchQueryNode): string;
|
|
@@ -28,7 +28,7 @@ export declare enum METADATA_API_ENDPOINT {
|
|
|
28
28
|
GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2"
|
|
29
29
|
}
|
|
30
30
|
export declare enum SEARCH_API_ENDPOINT {
|
|
31
|
-
|
|
31
|
+
'4.0' = "API/Search/v4.0/Search"
|
|
32
32
|
}
|
|
33
33
|
export declare enum CHAPTER_API_ENDPOINT {
|
|
34
34
|
CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1",
|
|
@@ -4,9 +4,10 @@ export declare class FetchAssetController implements ReactiveController {
|
|
|
4
4
|
private readonly host;
|
|
5
5
|
private data;
|
|
6
6
|
constructor(host: ReactiveElement);
|
|
7
|
-
fetchAssetByID({ extraFields, recordId, }: {
|
|
7
|
+
fetchAssetByID({ extraFields, recordId, token, }: {
|
|
8
8
|
extraFields?: string[];
|
|
9
9
|
recordId: string;
|
|
10
|
+
token?: string;
|
|
10
11
|
}): Promise<Record<string, string>>;
|
|
11
12
|
hostConnected?(): void;
|
|
12
13
|
hostDisconnected?(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Transformation } from '../../../types/src/asset-link-format';
|
|
1
2
|
import { GalleryItem } from '../../../types/src/gallery-item';
|
|
2
3
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
3
4
|
|
|
@@ -15,38 +16,49 @@ export declare class FetchImageController implements ReactiveController {
|
|
|
15
16
|
private maxEnd;
|
|
16
17
|
constructor(host: ReactiveElement, options?: FetchImageControllerOptions);
|
|
17
18
|
get totalDataCount(): number;
|
|
18
|
-
|
|
19
|
+
private resolveProxyUrls;
|
|
20
|
+
fetchImages({ end, extraFields, format, start, transformations, }: {
|
|
19
21
|
end: number;
|
|
20
22
|
extraFields: string[];
|
|
23
|
+
format?: string;
|
|
21
24
|
start: number;
|
|
25
|
+
transformations?: Transformation[];
|
|
22
26
|
}): Promise<ExtendedGalleryItem[] | undefined>;
|
|
23
|
-
fetchImagesInFolderBySlide({ activeSlide, extraFields, folderId, forceRefetch, minLimit, noPlaceholders, }: {
|
|
27
|
+
fetchImagesInFolderBySlide({ activeSlide, extraFields, folderId, forceRefetch, format, minLimit, noPlaceholders, transformations, }: {
|
|
24
28
|
activeSlide: number;
|
|
25
29
|
extraFields?: string[];
|
|
26
30
|
folderId: string;
|
|
27
31
|
forceRefetch?: boolean;
|
|
32
|
+
format?: string;
|
|
28
33
|
minLimit?: number;
|
|
29
34
|
noPlaceholders?: boolean;
|
|
35
|
+
transformations?: Transformation[];
|
|
30
36
|
}): Promise<ExtendedGalleryItem[]>;
|
|
31
|
-
fetchImagesByIDs({ extraFields, recordIds, }: {
|
|
37
|
+
fetchImagesByIDs({ extraFields, format, recordIds, transformations, }: {
|
|
32
38
|
extraFields?: string[];
|
|
39
|
+
format?: string;
|
|
33
40
|
recordIds: string[];
|
|
41
|
+
transformations?: Transformation[];
|
|
34
42
|
}): Promise<ExtendedGalleryItem[]>;
|
|
35
|
-
fetchImagesInFolderByPage({ extraFields, folderId, forceRefetch, noPlaceholders, page, pageSize, }: {
|
|
43
|
+
fetchImagesInFolderByPage({ extraFields, folderId, forceRefetch, format, noPlaceholders, page, pageSize, transformations, }: {
|
|
36
44
|
extraFields?: string[];
|
|
37
45
|
folderId: string;
|
|
38
46
|
forceRefetch?: boolean;
|
|
47
|
+
format?: string;
|
|
39
48
|
noPlaceholders?: boolean;
|
|
40
49
|
page: number;
|
|
41
50
|
pageSize?: number;
|
|
51
|
+
transformations?: Transformation[];
|
|
42
52
|
}): Promise<ExtendedGalleryItem[]>;
|
|
43
|
-
fetchImagesInFolderByChunk({ chunkSize: rawChunkSize, end, extraFields, folderId, forceRefetch, start, }: {
|
|
53
|
+
fetchImagesInFolderByChunk({ chunkSize: rawChunkSize, end, extraFields, folderId, forceRefetch, format, start, transformations, }: {
|
|
44
54
|
chunkSize?: number;
|
|
45
55
|
end?: number;
|
|
46
56
|
extraFields?: string[];
|
|
47
57
|
folderId: string;
|
|
48
58
|
forceRefetch?: boolean;
|
|
59
|
+
format?: string;
|
|
49
60
|
start?: number;
|
|
61
|
+
transformations?: Transformation[];
|
|
50
62
|
}): AsyncGenerator<ExtendedGalleryItem[], void, unknown>;
|
|
51
63
|
hostConnected?(): void;
|
|
52
64
|
hostDisconnected?(): void;
|
|
@@ -2,12 +2,14 @@ export declare enum ClickAction {
|
|
|
2
2
|
DoNothing = "do-nothing",
|
|
3
3
|
DownloadAsset = "download-asset",
|
|
4
4
|
ExpandAssetInFullScreen = "expand-asset-in-full-screen",
|
|
5
|
+
OpenAssetInLibrary = "open-asset-in-library",
|
|
5
6
|
OpenAssetOverview = "open-asset-overview",
|
|
6
7
|
OpenLink = "open-link",
|
|
7
8
|
OpenPage = "open-page",
|
|
8
9
|
OpenSpace = "open-space",
|
|
9
10
|
ShareAsset = "share-asset",
|
|
10
|
-
ShowAssetInLibrary = "show-asset-in-library"
|
|
11
|
+
ShowAssetInLibrary = "show-asset-in-library",
|
|
12
|
+
Zoom = "zoom"
|
|
11
13
|
}
|
|
12
14
|
export type AssetFormat = {
|
|
13
15
|
_3DFormats?: string[];
|
|
@@ -16,3 +16,40 @@ export declare enum FillerMode {
|
|
|
16
16
|
Fit = "fit",
|
|
17
17
|
Full = "full"
|
|
18
18
|
}
|
|
19
|
+
/** Pixel position of a single placed bento item (absolute coordinates). */
|
|
20
|
+
export interface BentoItemPosition {
|
|
21
|
+
/** 0-based exclusive column index where the item ends (used for data-column attribute). */
|
|
22
|
+
columnEnd: number;
|
|
23
|
+
/** 0-based column index where the item starts (used for data-column attribute). */
|
|
24
|
+
columnStart: number;
|
|
25
|
+
height: number;
|
|
26
|
+
left: number;
|
|
27
|
+
/** 0-based row index where the item starts (used for maxRows filtering and data-row attribute). */
|
|
28
|
+
rowStart: number;
|
|
29
|
+
top: number;
|
|
30
|
+
width: number;
|
|
31
|
+
}
|
|
32
|
+
/** Parameters passed to BentoLayout.compute(). */
|
|
33
|
+
export interface BentoLayoutParams {
|
|
34
|
+
columnGap: number;
|
|
35
|
+
columns: number;
|
|
36
|
+
containerWidth: number;
|
|
37
|
+
itemHeight: number;
|
|
38
|
+
/**
|
|
39
|
+
* Maximum number of rows to display. When finite, scroll height is capped at
|
|
40
|
+
* maxRows × (itemHeight + rowGap) − rowGap so hidden rows don't inflate the container.
|
|
41
|
+
*/
|
|
42
|
+
maxRows?: number;
|
|
43
|
+
rowGap: number;
|
|
44
|
+
/**
|
|
45
|
+
* Total number of items including those not yet loaded.
|
|
46
|
+
* When provided and greater than items.length, the scroll height is extended
|
|
47
|
+
* to approximate the full dataset size (unloaded items assumed to be 1×1).
|
|
48
|
+
*/
|
|
49
|
+
totalItems?: number;
|
|
50
|
+
}
|
|
51
|
+
/** Inclusive item index range returned by BentoLayout.getActiveRange(). */
|
|
52
|
+
export interface BentoActiveRange {
|
|
53
|
+
first: number;
|
|
54
|
+
last: number;
|
|
55
|
+
}
|
|
@@ -40,6 +40,14 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
40
40
|
* It is called right before the record is saved.
|
|
41
41
|
*/
|
|
42
42
|
api?: () => Promise<Option[]> | FolderSelectApi;
|
|
43
|
+
assetTransformationConfigs?: {
|
|
44
|
+
assetIdKey?: string;
|
|
45
|
+
formatKey?: string;
|
|
46
|
+
multiple?: boolean;
|
|
47
|
+
noCrop?: boolean;
|
|
48
|
+
noResize?: boolean;
|
|
49
|
+
noRotate?: boolean;
|
|
50
|
+
};
|
|
43
51
|
callback?: (params: {
|
|
44
52
|
extraValue?: Record<string, unknown>;
|
|
45
53
|
record: T;
|
|
@@ -48,7 +56,7 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
48
56
|
checkedValue?: string | boolean;
|
|
49
57
|
children?: PropertyConfig[];
|
|
50
58
|
clearable?: boolean;
|
|
51
|
-
controlType: 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'video-picker';
|
|
59
|
+
controlType: 'asset-transformation' | 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'video-format-picker' | 'video-picker';
|
|
52
60
|
cornerStyleKey?: {
|
|
53
61
|
offsetX: string;
|
|
54
62
|
offsetY: string;
|
|
@@ -58,12 +66,15 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
58
66
|
disabledTooltip?: string;
|
|
59
67
|
downloadFormatPickerConfigs?: {
|
|
60
68
|
assetIdsKey?: string;
|
|
69
|
+
isObjectFormat?: boolean;
|
|
70
|
+
objectIdKey?: string;
|
|
61
71
|
};
|
|
62
72
|
folderPickerConfigs?: {
|
|
63
73
|
useFullPath: boolean;
|
|
64
74
|
};
|
|
65
75
|
galleryPickerConfigs?: {
|
|
66
76
|
dialog: DialogType;
|
|
77
|
+
transformationRecordIdKey?: string;
|
|
67
78
|
};
|
|
68
79
|
groupConfigs?: {
|
|
69
80
|
columnGap?: string;
|
|
@@ -128,6 +139,18 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
128
139
|
type: 'attribute' | 'property' | 'style' | 'decorative';
|
|
129
140
|
uncheckedValue?: string | boolean;
|
|
130
141
|
useSearchTerm?: boolean;
|
|
142
|
+
videoFormatPickerConfigs?: {
|
|
143
|
+
/** The block-attribute key that holds the asset ID for this video. */
|
|
144
|
+
assetIdKey?: string;
|
|
145
|
+
/** The block-attribute key that stores the selected asset version. Defaults to 'asset-version'. */
|
|
146
|
+
assetVersionKey?: string;
|
|
147
|
+
/** The block-attribute key that stores the human-readable format label. Defaults to 'format-label'. */
|
|
148
|
+
formatLabelKey?: string;
|
|
149
|
+
/** The block-attribute key that stores the resolved video source URL. Defaults to 'format-src'. */
|
|
150
|
+
formatSrcKey?: string;
|
|
151
|
+
/** The block-attribute key that stores the human-readable version label. Defaults to 'version-label'. */
|
|
152
|
+
versionLabelKey?: string;
|
|
153
|
+
};
|
|
131
154
|
width?: ((record: Record<string, unknown>) => string | number) | string | number;
|
|
132
155
|
};
|
|
133
156
|
export declare enum Permission {
|
|
@@ -274,3 +297,6 @@ export declare enum DataSourceId {
|
|
|
274
297
|
TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES",
|
|
275
298
|
TranslatableTexts = "TRANSLATABLE_TEXTS"
|
|
276
299
|
}
|
|
300
|
+
export type ConfigsOptions = {
|
|
301
|
+
enableAssetFormatControls?: boolean;
|
|
302
|
+
};
|
|
@@ -26,12 +26,6 @@ export declare enum ContentType {
|
|
|
26
26
|
Automatic = "automatic",
|
|
27
27
|
Custom = "custom"
|
|
28
28
|
}
|
|
29
|
-
export declare enum ClickEvent {
|
|
30
|
-
DoNothing = "do-nothing",
|
|
31
|
-
OpenAssetInLibrary = "open-asset-in-library",
|
|
32
|
-
OpenAssetOverview = "open-asset-overview",
|
|
33
|
-
Zoom = "zoom"
|
|
34
|
-
}
|
|
35
29
|
export type GalleryRecord = {
|
|
36
30
|
id: string;
|
|
37
31
|
objectFit: ObjectFit;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Placement of the built-in checked icon relative to the label. */
|
|
2
|
+
export declare enum MenuItemCheckPlacement {
|
|
3
|
+
Prefix = "prefix",
|
|
4
|
+
Suffix = "suffix"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Interface for menu item data that can be shared between events and components
|
|
8
|
+
* This breaks the circular dependency between events and atoms packages
|
|
9
|
+
*/
|
|
10
|
+
export interface MenuItemData {
|
|
11
|
+
/** Whether the menu item is checked (for checkbox type) */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** Whether the menu item is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** The download attribute for the link */
|
|
16
|
+
download?: string;
|
|
17
|
+
/** The href if the menu item is a link */
|
|
18
|
+
href?: string;
|
|
19
|
+
/** Whether the menu item is loading */
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/** Whether the menu item is readonly */
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
/** The rel attribute for the link */
|
|
24
|
+
rel?: string;
|
|
25
|
+
/** The target for the link */
|
|
26
|
+
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
27
|
+
/** The text content/label of the menu item */
|
|
28
|
+
textContent?: string;
|
|
29
|
+
/** The type of menu item */
|
|
30
|
+
type?: 'normal' | 'checkbox';
|
|
31
|
+
/** The value associated with the menu item */
|
|
32
|
+
value?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lit-property type names that `cx-storybook` understands when introspecting the
|
|
3
|
+
* target component's `elementProperties`. Names match the lowercased function
|
|
4
|
+
* name of the corresponding constructor (`String`, `Number`, ...) plus a
|
|
5
|
+
* dedicated `'array'` slot for `type: Array` since `Array.name === 'Array'`.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum StorybookPropType {
|
|
8
|
+
Array = "array",
|
|
9
|
+
Boolean = "boolean",
|
|
10
|
+
Function = "function",
|
|
11
|
+
Number = "number",
|
|
12
|
+
Object = "object",
|
|
13
|
+
String = "string"
|
|
14
|
+
}
|
|
15
|
+
/** Metadata `cx-storybook` builds per public reactive property of the target. */
|
|
16
|
+
export interface StorybookPropConfig {
|
|
17
|
+
default: unknown;
|
|
18
|
+
type: StorybookPropType;
|
|
19
|
+
}
|