@orangelogic/design-system 2.0.0-29DUO2-beta-2 → 2.0.0-29IORR-beta-1
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.BoVb3qVt.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.CKP1W_u1.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.C-0PQZX9.js → list-editor.xBvtJqdy.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/{modal.CG-kZq41.js → modal.U1QltQKe.js} +1 -1
- 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/{tabbable.BwnZBHrm.js → tabbable.CcMz3mIL.js} +2 -2
- package/library/chunks/{table.DNTm_GMS.js → table.Cs5a0duW.js} +2903 -4591
- 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 +7 -7
- 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 +12 -243
- package/library/components/dropdown.js +50 -152
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +493 -534
- 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 +35172 -45146
- 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 +42 -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/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/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 +289 -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.DlN4hgLS.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.DZtadqgL.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.CwrqgSke.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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangelogic/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-
|
|
4
|
+
"version": "2.0.0-29IORR-beta-1",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"types": "library/types.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -45,5 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"nx": {
|
|
50
|
+
"projectType": "application"
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { i as v } from "./identity.ByMq8VxU.js";
|
|
2
|
-
import { g as f } from "./isObjectLike.D3cpZO39.js";
|
|
3
|
-
function p(n, e, r) {
|
|
4
|
-
switch (r.length) {
|
|
5
|
-
case 0:
|
|
6
|
-
return n.call(e);
|
|
7
|
-
case 1:
|
|
8
|
-
return n.call(e, r[0]);
|
|
9
|
-
case 2:
|
|
10
|
-
return n.call(e, r[0], r[1]);
|
|
11
|
-
case 3:
|
|
12
|
-
return n.call(e, r[0], r[1], r[2]);
|
|
13
|
-
}
|
|
14
|
-
return n.apply(e, r);
|
|
15
|
-
}
|
|
16
|
-
var l = Math.max;
|
|
17
|
-
function m(n, e, r) {
|
|
18
|
-
return e = l(e === void 0 ? n.length - 1 : e, 0), function() {
|
|
19
|
-
for (var a = arguments, t = -1, u = l(a.length - e, 0), o = Array(u); ++t < u; )
|
|
20
|
-
o[t] = a[e + t];
|
|
21
|
-
t = -1;
|
|
22
|
-
for (var i = Array(e + 1); ++t < e; )
|
|
23
|
-
i[t] = a[t];
|
|
24
|
-
return i[e] = r(o), p(n, this, i);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function s(n) {
|
|
28
|
-
return function() {
|
|
29
|
-
return n;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
var c = function() {
|
|
33
|
-
try {
|
|
34
|
-
var n = f(Object, "defineProperty");
|
|
35
|
-
return n({}, "", {}), n;
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
38
|
-
}(), d = c ? function(n, e) {
|
|
39
|
-
return c(n, "toString", {
|
|
40
|
-
configurable: !0,
|
|
41
|
-
enumerable: !1,
|
|
42
|
-
value: s(e),
|
|
43
|
-
writable: !0
|
|
44
|
-
});
|
|
45
|
-
} : v, y = 800, h = 16, b = Date.now;
|
|
46
|
-
function w(n) {
|
|
47
|
-
var e = 0, r = 0;
|
|
48
|
-
return function() {
|
|
49
|
-
var a = b(), t = h - (a - r);
|
|
50
|
-
if (r = a, t > 0) {
|
|
51
|
-
if (++e >= y)
|
|
52
|
-
return arguments[0];
|
|
53
|
-
} else
|
|
54
|
-
e = 0;
|
|
55
|
-
return n.apply(void 0, arguments);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
var g = w(d);
|
|
59
|
-
function T(n, e) {
|
|
60
|
-
return g(m(n, e, v), n + "");
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
T as b,
|
|
64
|
-
c as d,
|
|
65
|
-
m as o,
|
|
66
|
-
g as s
|
|
67
|
-
};
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { h as i, A as T, a as U } from "./endpoints.B7lcoc1N.js";
|
|
2
|
-
import { f as M, t as C } from "./toast.BXNbwZV8.js";
|
|
3
|
-
const L = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", P = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
|
|
4
|
-
function B(o) {
|
|
5
|
-
return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
|
|
6
|
-
(e, [t, r]) => !r || r.length === 0 ? e : t === "Types" ? {
|
|
7
|
-
...e,
|
|
8
|
-
SubtypeCriteria: r
|
|
9
|
-
} : {
|
|
10
|
-
...e,
|
|
11
|
-
FacetFilters: {
|
|
12
|
-
...e.FacetFilters,
|
|
13
|
-
[t]: r
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
async function H({
|
|
20
|
-
assetId: o,
|
|
21
|
-
extension: e,
|
|
22
|
-
format: t,
|
|
23
|
-
siteUrl: r,
|
|
24
|
-
token: a,
|
|
25
|
-
transformations: l,
|
|
26
|
-
useSession: s
|
|
27
|
-
}) {
|
|
28
|
-
try {
|
|
29
|
-
return (await i.request({
|
|
30
|
-
baseURL: r,
|
|
31
|
-
method: "GET",
|
|
32
|
-
params: {
|
|
33
|
-
SourceAssetFormat: t,
|
|
34
|
-
SourceAssetRecordID: o,
|
|
35
|
-
TargetExtension: e,
|
|
36
|
-
Token: a,
|
|
37
|
-
Transformations: l,
|
|
38
|
-
UseSession: s || void 0
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* https://link.orangelogic.com/Tasks/41S1XH
|
|
42
|
-
*/
|
|
43
|
-
timeout: 3e5,
|
|
44
|
-
// 5 minutes
|
|
45
|
-
url: T.GET_TRANSFORM_ASSET_LINK
|
|
46
|
-
})).data;
|
|
47
|
-
} catch {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async function k({
|
|
52
|
-
extraFields: o,
|
|
53
|
-
recordIds: e
|
|
54
|
-
}) {
|
|
55
|
-
if (!Array.isArray(e) || e.length === 0)
|
|
56
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
57
|
-
const t = o?.filter((r) => r && typeof r == "string") ?? [];
|
|
58
|
-
try {
|
|
59
|
-
return (await i.request({
|
|
60
|
-
method: "GET",
|
|
61
|
-
params: {
|
|
62
|
-
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
63
|
-
Fields: [
|
|
64
|
-
...t,
|
|
65
|
-
E,
|
|
66
|
-
F,
|
|
67
|
-
I,
|
|
68
|
-
b,
|
|
69
|
-
j
|
|
70
|
-
],
|
|
71
|
-
SeeThru: !0
|
|
72
|
-
},
|
|
73
|
-
paramsSerializer: {
|
|
74
|
-
indexes: null
|
|
75
|
-
},
|
|
76
|
-
responseType: "json",
|
|
77
|
-
transformResponse: [
|
|
78
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
79
|
-
(a) => {
|
|
80
|
-
const l = a.contentItems?.map((s) => {
|
|
81
|
-
let d = s.fields[F] ?? "";
|
|
82
|
-
return d === "" && (d = s.fields[I] ?? ""), {
|
|
83
|
-
name: d,
|
|
84
|
-
originalUrl: s.fields[E] ?? "",
|
|
85
|
-
recordId: s.recordID,
|
|
86
|
-
...t.reduce(
|
|
87
|
-
(u, c) => (u[c] = s.fields[c] ?? "", u),
|
|
88
|
-
{}
|
|
89
|
-
)
|
|
90
|
-
};
|
|
91
|
-
}) ?? [];
|
|
92
|
-
return l.sort((s, d) => {
|
|
93
|
-
const u = e.indexOf(s.recordId), c = e.indexOf(d.recordId);
|
|
94
|
-
return u - c;
|
|
95
|
-
}), {
|
|
96
|
-
facets: a.facets,
|
|
97
|
-
items: l,
|
|
98
|
-
totalCount: a.totalCount
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
url: T.GET_CONTENT_V1
|
|
103
|
-
})).data;
|
|
104
|
-
} catch {
|
|
105
|
-
return {
|
|
106
|
-
facets: [],
|
|
107
|
-
items: [],
|
|
108
|
-
totalCount: 0
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
async function q({
|
|
113
|
-
extraFields: o,
|
|
114
|
-
folderId: e,
|
|
115
|
-
limit: t,
|
|
116
|
-
limitedDocTypes: r,
|
|
117
|
-
searchTerm: a,
|
|
118
|
-
seeThrough: l,
|
|
119
|
-
selectedFacets: s,
|
|
120
|
-
sortOrder: d,
|
|
121
|
-
start: u
|
|
122
|
-
}) {
|
|
123
|
-
const c = (o?.filter((f) => f && typeof f == "string") ?? []).map((f) => f.replace("%20", " "));
|
|
124
|
-
try {
|
|
125
|
-
return (await i.request({
|
|
126
|
-
method: "GET",
|
|
127
|
-
params: {
|
|
128
|
-
Fields: [
|
|
129
|
-
...c,
|
|
130
|
-
w,
|
|
131
|
-
L,
|
|
132
|
-
E,
|
|
133
|
-
g,
|
|
134
|
-
G,
|
|
135
|
-
R,
|
|
136
|
-
O,
|
|
137
|
-
h,
|
|
138
|
-
P,
|
|
139
|
-
N,
|
|
140
|
-
S,
|
|
141
|
-
x,
|
|
142
|
-
I,
|
|
143
|
-
F
|
|
144
|
-
],
|
|
145
|
-
Limit: t,
|
|
146
|
-
LimitedToDocTypes: r.length > 0 ? r : void 0,
|
|
147
|
-
ObjectRecordID: e,
|
|
148
|
-
OrderBy: d || void 0,
|
|
149
|
-
SearchTerm: a || void 0,
|
|
150
|
-
SeeThru: l,
|
|
151
|
-
Start: u,
|
|
152
|
-
...B(s)
|
|
153
|
-
},
|
|
154
|
-
paramsSerializer: {
|
|
155
|
-
indexes: null
|
|
156
|
-
},
|
|
157
|
-
responseType: "json",
|
|
158
|
-
transformResponse: [
|
|
159
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
160
|
-
(m) => ({
|
|
161
|
-
facets: m.facets,
|
|
162
|
-
items: m.contentItems?.map((n) => {
|
|
163
|
-
let p = n.fields[S] ?? "", D = n.fields[F] ?? "", _ = n.fields[L] ?? "";
|
|
164
|
-
return p && !p.startsWith(".") && (p = "." + p), D === "" && (D = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (_ = n.fields[E] ?? ""), {
|
|
165
|
-
docSubType: n.fields[P] ?? "",
|
|
166
|
-
docType: n.fields[h] ?? "",
|
|
167
|
-
extension: p,
|
|
168
|
-
height: n.fields[R] ?? "0",
|
|
169
|
-
id: n.recordID,
|
|
170
|
-
identifier: n.fields[N] ?? "",
|
|
171
|
-
imageUrl: _,
|
|
172
|
-
name: D ?? "",
|
|
173
|
-
originalUrl: n.fields[E] ?? "",
|
|
174
|
-
recordId: n.fields[x] ?? "",
|
|
175
|
-
size: n.fields[O] ?? "0 MB",
|
|
176
|
-
tags: n.fields[g] ?? "",
|
|
177
|
-
width: n.fields[G] ?? "0",
|
|
178
|
-
...c.reduce(
|
|
179
|
-
(y, A) => (y[A] = n.fields[A] ?? "", y),
|
|
180
|
-
{}
|
|
181
|
-
)
|
|
182
|
-
};
|
|
183
|
-
}) ?? [],
|
|
184
|
-
totalCount: m.totalCount
|
|
185
|
-
})
|
|
186
|
-
],
|
|
187
|
-
url: T.GET_CONTENT_V2
|
|
188
|
-
})).data;
|
|
189
|
-
} catch {
|
|
190
|
-
return {
|
|
191
|
-
facets: [],
|
|
192
|
-
items: [],
|
|
193
|
-
totalCount: 0
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
async function z({
|
|
198
|
-
autoCropMode: o,
|
|
199
|
-
cropHeight: e,
|
|
200
|
-
cropWidth: t,
|
|
201
|
-
imageUrl: r,
|
|
202
|
-
useSession: a
|
|
203
|
-
}) {
|
|
204
|
-
try {
|
|
205
|
-
return (await i.request({
|
|
206
|
-
method: "GET",
|
|
207
|
-
params: {
|
|
208
|
-
AutoCropMode: o,
|
|
209
|
-
CropHeight: e,
|
|
210
|
-
CropWidth: t,
|
|
211
|
-
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
212
|
-
UseSession: a || void 0
|
|
213
|
-
},
|
|
214
|
-
responseType: "json",
|
|
215
|
-
timeout: 3e5,
|
|
216
|
-
// 5 minutes
|
|
217
|
-
transformResponse: [
|
|
218
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
219
|
-
(s) => ({
|
|
220
|
-
height: s.cropHeight,
|
|
221
|
-
width: s.cropWidth,
|
|
222
|
-
x: s.cropX,
|
|
223
|
-
y: s.cropY
|
|
224
|
-
})
|
|
225
|
-
],
|
|
226
|
-
url: T.GET_CROP_ZONE_SUGGESTION
|
|
227
|
-
})).data;
|
|
228
|
-
} catch {
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
async function V({
|
|
233
|
-
siteUrl: o
|
|
234
|
-
} = {}) {
|
|
235
|
-
try {
|
|
236
|
-
return (await i.request({
|
|
237
|
-
baseURL: o,
|
|
238
|
-
method: "GET",
|
|
239
|
-
responseType: "json",
|
|
240
|
-
transformResponse: [
|
|
241
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
242
|
-
(t) => !t || typeof t != "object" ? {
|
|
243
|
-
formatsByDocType: {
|
|
244
|
-
Audio: {},
|
|
245
|
-
Image: {},
|
|
246
|
-
Multimedia: {},
|
|
247
|
-
Video: {}
|
|
248
|
-
}
|
|
249
|
-
} : {
|
|
250
|
-
formatsByDocType: t.formatsByDocType ?? {}
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
url: U
|
|
254
|
-
})).data;
|
|
255
|
-
} catch {
|
|
256
|
-
return { formatsByDocType: {} };
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
async function K(o, e) {
|
|
260
|
-
const t = new FormData();
|
|
261
|
-
t.append("InputStream", o);
|
|
262
|
-
const r = await M(
|
|
263
|
-
T.UPLOAD_AND_GET_RESPONSE,
|
|
264
|
-
{
|
|
265
|
-
body: t,
|
|
266
|
-
method: "POST"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
ByPassPermissionCheck: "true",
|
|
270
|
-
ClientFileName: o.name,
|
|
271
|
-
FolderRecordID: e?.imageUploadFolderID || ""
|
|
272
|
-
}
|
|
273
|
-
), a = r ? await r.json() : null;
|
|
274
|
-
return a ? a.downloadLink === "" ? (C(e?.errorUploadMessage || "", {
|
|
275
|
-
notificationType: "error"
|
|
276
|
-
}), "") : a.downloadLink : (C(e?.errorUploadMessage || "", {
|
|
277
|
-
notificationType: "error"
|
|
278
|
-
}), "");
|
|
279
|
-
}
|
|
280
|
-
export {
|
|
281
|
-
L as D,
|
|
282
|
-
k as a,
|
|
283
|
-
H as b,
|
|
284
|
-
z as c,
|
|
285
|
-
V as d,
|
|
286
|
-
q as e,
|
|
287
|
-
K as u
|
|
288
|
-
};
|