@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,14 +1,10 @@
|
|
|
1
1
|
import { n as a, C as p } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "./component.styles.
|
|
2
|
+
import { c as m } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as d } from "./watch.
|
|
4
|
+
import { w as d } from "./watch.BCJD77bD.js";
|
|
5
5
|
import { i as b, x as u } from "./lit-element.jLBm65_O.js";
|
|
6
6
|
import { r as g } from "./query-async.CTgXGyQ5.js";
|
|
7
|
-
const h = b
|
|
8
|
-
:host {
|
|
9
|
-
display: contents;
|
|
10
|
-
}
|
|
11
|
-
`, x = [
|
|
7
|
+
const h = b`:host{display:contents}`, x = [
|
|
12
8
|
{
|
|
13
9
|
easing: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
14
10
|
offset: 0,
|
|
@@ -928,7 +924,7 @@ let t = class extends p {
|
|
|
928
924
|
this.animation?.finish();
|
|
929
925
|
}
|
|
930
926
|
render() {
|
|
931
|
-
return u
|
|
927
|
+
return u`<slot @slotchange=${this.handleSlotChange}></slot>`;
|
|
932
928
|
}
|
|
933
929
|
};
|
|
934
930
|
t.styles = [m, h];
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function g(n, r) {
|
|
2
|
+
return n.filter((e, t) => t !== r);
|
|
3
|
+
}
|
|
4
|
+
function w(n, r) {
|
|
5
|
+
return n.filter((e, t) => !r.includes(t));
|
|
6
|
+
}
|
|
7
|
+
function v(n, r, e) {
|
|
8
|
+
return [...n.slice(0, r), e, ...n.slice(r)];
|
|
9
|
+
}
|
|
10
|
+
function h(n, r, e) {
|
|
11
|
+
return [...n.slice(0, r), ...e, ...n.slice(r)];
|
|
12
|
+
}
|
|
13
|
+
function F(n, r, e) {
|
|
14
|
+
return n.findIndex((t) => t[r] === e);
|
|
15
|
+
}
|
|
16
|
+
function M(n, r, e) {
|
|
17
|
+
const t = [...n], s = g(t, r);
|
|
18
|
+
let o = e;
|
|
19
|
+
return o >= n.length - 1 && (o = o + 1), v(s, o, n[r]);
|
|
20
|
+
}
|
|
21
|
+
function T(n, r, e) {
|
|
22
|
+
const t = [...n], s = w(t, r), o = e !== 0 ? r.reduce(
|
|
23
|
+
(u, f) => e > f ? u - 1 : u,
|
|
24
|
+
e
|
|
25
|
+
) : e;
|
|
26
|
+
return h(
|
|
27
|
+
s,
|
|
28
|
+
o,
|
|
29
|
+
r.map((u) => n[u])
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function b(n, r) {
|
|
33
|
+
return n.reduce(
|
|
34
|
+
(e, t) => {
|
|
35
|
+
const s = t[r];
|
|
36
|
+
return e[s] ??= [], e[s].push(t), e;
|
|
37
|
+
},
|
|
38
|
+
{}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function y(n, r, e) {
|
|
42
|
+
if (!n.length)
|
|
43
|
+
return [r];
|
|
44
|
+
const t = e.findIndex(
|
|
45
|
+
(i) => i.id === r
|
|
46
|
+
), s = n[n.length - 1], o = e.findIndex(
|
|
47
|
+
(i) => i.id === s
|
|
48
|
+
);
|
|
49
|
+
if (t < 0 || o < 0)
|
|
50
|
+
return [r];
|
|
51
|
+
const c = e.reduce(
|
|
52
|
+
(i, l, x) => (i[l.id] = x, i),
|
|
53
|
+
{}
|
|
54
|
+
), u = t > o, f = u ? o : t, A = u ? t : o, d = e.slice(f, A + 1).filter((i) => !(!i || n.includes(i.id))).map((i) => i.id), p = u ? d : [...d].reverse(), a = n.includes(r) ? n.slice(0, n.indexOf(r) + 1) : [...n, ...p];
|
|
55
|
+
return a.sort((i, l) => c[i] - c[l]), a;
|
|
56
|
+
}
|
|
57
|
+
function E(n, r, e, t, s, o) {
|
|
58
|
+
const c = e + 1;
|
|
59
|
+
if (n.length < 2)
|
|
60
|
+
throw new Error("Values array must contain at least 2 elements");
|
|
61
|
+
if (e < 0 || c >= n.length)
|
|
62
|
+
throw new Error("Invalid index or not enough values to adjust");
|
|
63
|
+
if (t < 0)
|
|
64
|
+
throw new Error("Minimum value must be non-negative");
|
|
65
|
+
let u = s + r;
|
|
66
|
+
u < t && (r = t - s, u = t);
|
|
67
|
+
let f = o - r;
|
|
68
|
+
f < t && (r = o - t, u = s + r, f = t), n[e] = parseFloat(u.toFixed(2)), n[c] = parseFloat(f.toFixed(2));
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
T as a,
|
|
72
|
+
g as b,
|
|
73
|
+
v as c,
|
|
74
|
+
M as d,
|
|
75
|
+
E as e,
|
|
76
|
+
F as f,
|
|
77
|
+
b as g,
|
|
78
|
+
h as i,
|
|
79
|
+
y as m,
|
|
80
|
+
w as r
|
|
81
|
+
};
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { h as i, A as I, a as U, S as M, b as w } from "./endpoints.Fpyb8xvv.js";
|
|
2
|
+
import "./browser.BHOCIF_A.js";
|
|
3
|
+
import "./lit-element.jLBm65_O.js";
|
|
4
|
+
import "./form.CFc09rKh.js";
|
|
5
|
+
import "./i18n.BFqTRDCA.js";
|
|
6
|
+
import { a as v } from "./string.BigZhczf.js";
|
|
7
|
+
import { f as k, t as L } from "./toast.B2cJgW5u.js";
|
|
8
|
+
function oe(t) {
|
|
9
|
+
return typeof t == "object" && t !== null && "URI" in t;
|
|
10
|
+
}
|
|
11
|
+
const B = {
|
|
12
|
+
artist: "Artist",
|
|
13
|
+
color: "Color",
|
|
14
|
+
createDate: "CreateDate",
|
|
15
|
+
docSubType: "DocSubType",
|
|
16
|
+
docType: "DocType",
|
|
17
|
+
editDate: "EditDate",
|
|
18
|
+
fileExtension: "Fileextension",
|
|
19
|
+
keyword: "Keyword",
|
|
20
|
+
mediaDate: "MediaDate",
|
|
21
|
+
mediaNumber: "MediaNumber",
|
|
22
|
+
nativeKeyword: "NativeKeyword",
|
|
23
|
+
orientation: "Orientation",
|
|
24
|
+
parentFolderIdentifier: "ParentFolderIdentifier",
|
|
25
|
+
path: "Path",
|
|
26
|
+
photographer: "Photographer",
|
|
27
|
+
purpose: "Purpose",
|
|
28
|
+
recordId: "RecordID",
|
|
29
|
+
systemIdentifier: "SystemIdentifier",
|
|
30
|
+
text: "Text",
|
|
31
|
+
title: "Title"
|
|
32
|
+
}, W = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
33
|
+
function $(t) {
|
|
34
|
+
return /[\s&+/*"\\]/.test(t) ? `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"` : t;
|
|
35
|
+
}
|
|
36
|
+
function S(t, e) {
|
|
37
|
+
const r = (Array.isArray(e) ? e : [e]).map((o) => `${t}:${$(o)}`);
|
|
38
|
+
return r.length > 1 ? `(${r.join(" OR ")})` : r[0] ?? "";
|
|
39
|
+
}
|
|
40
|
+
function H(t, e) {
|
|
41
|
+
return (Array.isArray(e) ? e : [e]).map((r) => `${t}${r.operator}${r.value}`).join(" AND ");
|
|
42
|
+
}
|
|
43
|
+
function q(t) {
|
|
44
|
+
const e = [];
|
|
45
|
+
for (const s of Object.keys(t)) {
|
|
46
|
+
const r = s, o = t[r];
|
|
47
|
+
if (o == null)
|
|
48
|
+
continue;
|
|
49
|
+
if (r === "custom") {
|
|
50
|
+
for (const [n, l] of Object.entries(
|
|
51
|
+
o
|
|
52
|
+
))
|
|
53
|
+
e.push(S(n, l));
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
const a = B[r];
|
|
57
|
+
if (a) {
|
|
58
|
+
if (W.has(r)) {
|
|
59
|
+
e.push(
|
|
60
|
+
H(a, o)
|
|
61
|
+
);
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if (r === "color") {
|
|
65
|
+
e.push(`${a}:${o}`);
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
e.push(S(a, o));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return e.join(" AND ");
|
|
72
|
+
}
|
|
73
|
+
function T(t) {
|
|
74
|
+
if ("and" in t)
|
|
75
|
+
return t.and.map(T).filter(Boolean).join(" AND ");
|
|
76
|
+
if ("or" in t) {
|
|
77
|
+
const e = t.or.map(T).filter(Boolean);
|
|
78
|
+
return e.length > 1 ? `(${e.join(" OR ")})` : e[0] ?? "";
|
|
79
|
+
}
|
|
80
|
+
if ("not" in t) {
|
|
81
|
+
const e = T(t.not);
|
|
82
|
+
return e ? `NOT (${e})` : "";
|
|
83
|
+
}
|
|
84
|
+
return q(t);
|
|
85
|
+
}
|
|
86
|
+
const C = "CoreField.LargeSizePreview", N = "CoreField.DocType", K = "Document.Title", V = "Document.CaptionLong", O = "Document.FileExtension", R = "CoreField.FileSize", g = "CoreField.Identifier", b = "CoreField.Keywords", P = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", j = "CoreField.DocSubType", z = "CoreField.TitleWithFallback", E = "CoreField.OriginalFileName", y = "CoreField.UpdatedFileName", m = "CoreField.OriginalPreview";
|
|
87
|
+
function X(t) {
|
|
88
|
+
return !t || Object.keys(t).length === 0 ? {} : Object.entries(t).reduce(
|
|
89
|
+
(e, [s, r]) => !r || r.length === 0 ? e : s === "Types" ? {
|
|
90
|
+
...e,
|
|
91
|
+
SubtypeCriteria: r
|
|
92
|
+
} : {
|
|
93
|
+
...e,
|
|
94
|
+
FacetFilters: {
|
|
95
|
+
...e.FacetFilters,
|
|
96
|
+
[s]: r
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
async function se({
|
|
103
|
+
fields: t,
|
|
104
|
+
getPermanentAssetsPaths: e,
|
|
105
|
+
limit: s,
|
|
106
|
+
query: r,
|
|
107
|
+
siteUrl: o,
|
|
108
|
+
start: a,
|
|
109
|
+
token: n,
|
|
110
|
+
useSession: l
|
|
111
|
+
}) {
|
|
112
|
+
try {
|
|
113
|
+
return (await i.request({
|
|
114
|
+
baseURL: o,
|
|
115
|
+
method: "GET",
|
|
116
|
+
params: {
|
|
117
|
+
Fields: t,
|
|
118
|
+
Format: "json",
|
|
119
|
+
GetPermanentAssetsPaths: e || void 0,
|
|
120
|
+
Limit: s,
|
|
121
|
+
Query: T(r),
|
|
122
|
+
Start: a,
|
|
123
|
+
Token: n || void 0,
|
|
124
|
+
UseSession: l || void 0
|
|
125
|
+
},
|
|
126
|
+
paramsSerializer: { indexes: null },
|
|
127
|
+
responseType: "json",
|
|
128
|
+
transformResponse: [
|
|
129
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
130
|
+
(u) => ({
|
|
131
|
+
items: u.APIResponse?.Items ?? [],
|
|
132
|
+
sort: u.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
133
|
+
totalCount: u.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
134
|
+
})
|
|
135
|
+
],
|
|
136
|
+
url: M["4.0"]
|
|
137
|
+
})).data;
|
|
138
|
+
} catch {
|
|
139
|
+
return { items: [], sort: "", totalCount: 0 };
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async function ne({
|
|
143
|
+
assetId: t,
|
|
144
|
+
extension: e,
|
|
145
|
+
format: s,
|
|
146
|
+
siteUrl: r,
|
|
147
|
+
token: o,
|
|
148
|
+
transformations: a,
|
|
149
|
+
useSession: n
|
|
150
|
+
}) {
|
|
151
|
+
try {
|
|
152
|
+
return (await i.request({
|
|
153
|
+
baseURL: r,
|
|
154
|
+
method: "GET",
|
|
155
|
+
params: {
|
|
156
|
+
SourceAssetFormat: s,
|
|
157
|
+
SourceAssetRecordID: t,
|
|
158
|
+
TargetExtension: v(e),
|
|
159
|
+
Token: o || void 0,
|
|
160
|
+
Transformations: a,
|
|
161
|
+
UseSession: n || void 0
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* https://link.orangelogic.com/Tasks/41S1XH
|
|
165
|
+
*/
|
|
166
|
+
timeout: 3e5,
|
|
167
|
+
// 5 minutes
|
|
168
|
+
url: I.GET_TRANSFORM_ASSET_LINK
|
|
169
|
+
})).data;
|
|
170
|
+
} catch {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async function ae({
|
|
175
|
+
extraFields: t,
|
|
176
|
+
recordIds: e,
|
|
177
|
+
token: s
|
|
178
|
+
}) {
|
|
179
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
180
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
181
|
+
const r = t?.filter((o) => o && typeof o == "string") ?? [];
|
|
182
|
+
try {
|
|
183
|
+
return (await i.request({
|
|
184
|
+
method: "GET",
|
|
185
|
+
params: {
|
|
186
|
+
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
187
|
+
Fields: [
|
|
188
|
+
...r,
|
|
189
|
+
m,
|
|
190
|
+
y,
|
|
191
|
+
E,
|
|
192
|
+
K,
|
|
193
|
+
V
|
|
194
|
+
],
|
|
195
|
+
SeeThru: !0,
|
|
196
|
+
Token: s || void 0
|
|
197
|
+
},
|
|
198
|
+
paramsSerializer: {
|
|
199
|
+
indexes: null
|
|
200
|
+
},
|
|
201
|
+
responseType: "json",
|
|
202
|
+
transformResponse: [
|
|
203
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
204
|
+
(a) => {
|
|
205
|
+
const n = a.contentItems?.map((l) => {
|
|
206
|
+
let f = l.fields[y] ?? "";
|
|
207
|
+
return f === "" && (f = l.fields[E] ?? ""), {
|
|
208
|
+
name: f,
|
|
209
|
+
originalUrl: l.fields[m] ?? "",
|
|
210
|
+
recordId: l.recordID,
|
|
211
|
+
...r.reduce(
|
|
212
|
+
(u, c) => (u[c] = l.fields[c] ?? "", u),
|
|
213
|
+
{}
|
|
214
|
+
)
|
|
215
|
+
};
|
|
216
|
+
}) ?? [];
|
|
217
|
+
return n.sort((l, f) => {
|
|
218
|
+
const u = e.indexOf(l.recordId), c = e.indexOf(f.recordId);
|
|
219
|
+
return u - c;
|
|
220
|
+
}), {
|
|
221
|
+
facets: a.facets,
|
|
222
|
+
items: n,
|
|
223
|
+
totalCount: a.totalCount
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
url: I.GET_CONTENT_V1
|
|
228
|
+
})).data;
|
|
229
|
+
} catch {
|
|
230
|
+
return {
|
|
231
|
+
facets: [],
|
|
232
|
+
items: [],
|
|
233
|
+
totalCount: 0
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
async function ie({
|
|
238
|
+
extraFields: t,
|
|
239
|
+
folderId: e,
|
|
240
|
+
limit: s,
|
|
241
|
+
limitedDocTypes: r,
|
|
242
|
+
searchTerm: o,
|
|
243
|
+
seeThrough: a,
|
|
244
|
+
selectedFacets: n,
|
|
245
|
+
sortOrder: l,
|
|
246
|
+
start: f
|
|
247
|
+
}) {
|
|
248
|
+
const u = (t?.filter((c) => c && typeof c == "string") ?? []).map((c) => c.replace("%20", " "));
|
|
249
|
+
try {
|
|
250
|
+
return (await i.request({
|
|
251
|
+
method: "GET",
|
|
252
|
+
params: {
|
|
253
|
+
Fields: [
|
|
254
|
+
...u,
|
|
255
|
+
z,
|
|
256
|
+
C,
|
|
257
|
+
m,
|
|
258
|
+
b,
|
|
259
|
+
G,
|
|
260
|
+
P,
|
|
261
|
+
R,
|
|
262
|
+
N,
|
|
263
|
+
j,
|
|
264
|
+
g,
|
|
265
|
+
O,
|
|
266
|
+
x,
|
|
267
|
+
E,
|
|
268
|
+
y
|
|
269
|
+
],
|
|
270
|
+
Limit: s,
|
|
271
|
+
LimitedToDocTypes: r.length > 0 ? r : void 0,
|
|
272
|
+
ObjectRecordID: e,
|
|
273
|
+
OrderBy: l || void 0,
|
|
274
|
+
SearchTerm: o || void 0,
|
|
275
|
+
SeeThru: a,
|
|
276
|
+
Start: f,
|
|
277
|
+
...X(n)
|
|
278
|
+
},
|
|
279
|
+
paramsSerializer: {
|
|
280
|
+
indexes: null
|
|
281
|
+
},
|
|
282
|
+
responseType: "json",
|
|
283
|
+
transformResponse: [
|
|
284
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
285
|
+
(D) => ({
|
|
286
|
+
facets: D.facets,
|
|
287
|
+
items: D.contentItems?.map((d) => {
|
|
288
|
+
let p = d.fields[O] ?? "", A = d.fields[y] ?? "", h = d.fields[C] ?? "";
|
|
289
|
+
return p && !p.startsWith(".") && (p = "." + p), A === "" && (A = d.fields[E] ?? ""), p.toLowerCase() === ".gif" && (h = d.fields[m] ?? ""), {
|
|
290
|
+
docSubType: d.fields[j] ?? "",
|
|
291
|
+
docType: d.fields[N] ?? "",
|
|
292
|
+
extension: p,
|
|
293
|
+
height: d.fields[P] ?? "0",
|
|
294
|
+
id: d.recordID,
|
|
295
|
+
identifier: d.fields[g] ?? "",
|
|
296
|
+
imageUrl: h,
|
|
297
|
+
name: A ?? "",
|
|
298
|
+
originalUrl: d.fields[m] ?? "",
|
|
299
|
+
recordId: d.fields[x] ?? "",
|
|
300
|
+
size: d.fields[R] ?? "0 MB",
|
|
301
|
+
tags: d.fields[b] ?? "",
|
|
302
|
+
width: d.fields[G] ?? "0",
|
|
303
|
+
...u.reduce(
|
|
304
|
+
(F, _) => (F[_] = d.fields[_] ?? "", F),
|
|
305
|
+
{}
|
|
306
|
+
)
|
|
307
|
+
};
|
|
308
|
+
}) ?? [],
|
|
309
|
+
totalCount: D.totalCount
|
|
310
|
+
})
|
|
311
|
+
],
|
|
312
|
+
url: I.GET_CONTENT_V2
|
|
313
|
+
})).data;
|
|
314
|
+
} catch {
|
|
315
|
+
return {
|
|
316
|
+
facets: [],
|
|
317
|
+
items: [],
|
|
318
|
+
totalCount: 0
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
async function de({
|
|
323
|
+
autoCropMode: t,
|
|
324
|
+
cropHeight: e,
|
|
325
|
+
cropWidth: s,
|
|
326
|
+
imageUrl: r,
|
|
327
|
+
useSession: o
|
|
328
|
+
}) {
|
|
329
|
+
try {
|
|
330
|
+
return (await i.request({
|
|
331
|
+
method: "GET",
|
|
332
|
+
params: {
|
|
333
|
+
AutoCropMode: t,
|
|
334
|
+
CropHeight: e,
|
|
335
|
+
CropWidth: s,
|
|
336
|
+
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
337
|
+
UseSession: o || void 0
|
|
338
|
+
},
|
|
339
|
+
responseType: "json",
|
|
340
|
+
timeout: 3e5,
|
|
341
|
+
// 5 minutes
|
|
342
|
+
transformResponse: [
|
|
343
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
344
|
+
(n) => ({
|
|
345
|
+
height: n.cropHeight,
|
|
346
|
+
width: n.cropWidth,
|
|
347
|
+
x: n.cropX,
|
|
348
|
+
y: n.cropY
|
|
349
|
+
})
|
|
350
|
+
],
|
|
351
|
+
url: I.GET_CROP_ZONE_SUGGESTION
|
|
352
|
+
})).data;
|
|
353
|
+
} catch {
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
async function le({
|
|
358
|
+
assetRecordId: t,
|
|
359
|
+
siteUrl: e,
|
|
360
|
+
token: s,
|
|
361
|
+
useSession: r
|
|
362
|
+
}) {
|
|
363
|
+
try {
|
|
364
|
+
return (await i.request({
|
|
365
|
+
baseURL: e,
|
|
366
|
+
method: "GET",
|
|
367
|
+
params: {
|
|
368
|
+
RecordId: t,
|
|
369
|
+
Token: s,
|
|
370
|
+
UseSession: r || void 0
|
|
371
|
+
},
|
|
372
|
+
responseType: "json",
|
|
373
|
+
transformResponse: [
|
|
374
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
375
|
+
(a) => !a || typeof a != "object" ? [] : a.proxies?.map((n) => ({
|
|
376
|
+
cdnName: n.cdnName,
|
|
377
|
+
extension: n.extension,
|
|
378
|
+
formatHeight: n.formatHeight,
|
|
379
|
+
formatWidth: n.formatWidth,
|
|
380
|
+
height: n.height,
|
|
381
|
+
permanentLink: n.permanentLink,
|
|
382
|
+
proxyLabel: n.proxyLabel,
|
|
383
|
+
proxyName: n.proxyName,
|
|
384
|
+
width: n.width
|
|
385
|
+
})) ?? []
|
|
386
|
+
],
|
|
387
|
+
url: w
|
|
388
|
+
})).data;
|
|
389
|
+
} catch {
|
|
390
|
+
return [];
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
async function ue({
|
|
394
|
+
siteUrl: t
|
|
395
|
+
} = {}) {
|
|
396
|
+
try {
|
|
397
|
+
return (await i.request({
|
|
398
|
+
baseURL: t,
|
|
399
|
+
method: "GET",
|
|
400
|
+
responseType: "json",
|
|
401
|
+
transformResponse: [
|
|
402
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
403
|
+
(s) => !s || typeof s != "object" ? {
|
|
404
|
+
formatsByDocType: {
|
|
405
|
+
Audio: {},
|
|
406
|
+
Image: {},
|
|
407
|
+
Multimedia: {},
|
|
408
|
+
Video: {}
|
|
409
|
+
}
|
|
410
|
+
} : {
|
|
411
|
+
formatsByDocType: s.formatsByDocType ?? {}
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
url: U
|
|
415
|
+
})).data;
|
|
416
|
+
} catch {
|
|
417
|
+
return { formatsByDocType: {} };
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async function ce(t, e) {
|
|
421
|
+
const s = new FormData();
|
|
422
|
+
s.append("InputStream", t);
|
|
423
|
+
const r = await k(
|
|
424
|
+
I.UPLOAD_AND_GET_RESPONSE,
|
|
425
|
+
{
|
|
426
|
+
body: s,
|
|
427
|
+
method: "POST"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
ClientFileName: t.name,
|
|
431
|
+
FolderRecordID: e?.imageUploadFolderID || ""
|
|
432
|
+
}
|
|
433
|
+
), o = r ? await r.json() : null;
|
|
434
|
+
return o ? o.downloadLink === "" ? (L(e?.errorUploadMessage || "", {
|
|
435
|
+
notificationType: "error"
|
|
436
|
+
}), "") : o.downloadLink : (L(e?.errorUploadMessage || "", {
|
|
437
|
+
notificationType: "error"
|
|
438
|
+
}), "");
|
|
439
|
+
}
|
|
440
|
+
export {
|
|
441
|
+
C as D,
|
|
442
|
+
x as F,
|
|
443
|
+
m as O,
|
|
444
|
+
ae as a,
|
|
445
|
+
ne as b,
|
|
446
|
+
de as c,
|
|
447
|
+
ue as d,
|
|
448
|
+
se as e,
|
|
449
|
+
le as f,
|
|
450
|
+
N as g,
|
|
451
|
+
O as h,
|
|
452
|
+
oe as i,
|
|
453
|
+
R as j,
|
|
454
|
+
g as k,
|
|
455
|
+
P as l,
|
|
456
|
+
G as m,
|
|
457
|
+
j as n,
|
|
458
|
+
ie as o,
|
|
459
|
+
ce as u
|
|
460
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as i, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as g } from "./component.styles.
|
|
2
|
+
import { c as g } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as C } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { F as x, v as w } from "./form.
|
|
5
|
-
import { L as $ } from "./i18n.
|
|
4
|
+
import { F as x, v as w } from "./form.CFc09rKh.js";
|
|
5
|
+
import { L as $ } from "./i18n.BFqTRDCA.js";
|
|
6
6
|
import { H as S, g as O } from "./slot.j5oheLJC.js";
|
|
7
|
-
import { w as m } from "./watch.
|
|
7
|
+
import { w as m } from "./watch.BCJD77bD.js";
|
|
8
8
|
import { r as u } from "./state.CSDxrqLd.js";
|
|
9
9
|
import { e as L } from "./query.BBf1UFkC.js";
|
|
10
10
|
import { e as D } from "./class-map.BiVq-cVR.js";
|
|
@@ -13,7 +13,7 @@ import { n as f } from "./when.Dr1es41R.js";
|
|
|
13
13
|
import { u as h, i as b } from "./static.UA3G1Deq.js";
|
|
14
14
|
import B from "../components/icon.js";
|
|
15
15
|
import F from "../components/spinner.js";
|
|
16
|
-
import { b as _ } from "./button.styles.
|
|
16
|
+
import { b as _ } from "./button.styles.CKqn956w.js";
|
|
17
17
|
var y = /* @__PURE__ */ ((t) => (t.Adaptive = "adaptive", t.Fill = "fill", t.Hug = "hug", t))(y || {}), l = /* @__PURE__ */ ((t) => (t.Custom = "custom", t.Large = "large", t.Medium = "medium", t.Small = "small", t.XLarge = "x-large", t))(l || {}), k = Object.defineProperty, V = Object.getOwnPropertyDescriptor, r = (t, s, p, n) => {
|
|
18
18
|
for (var a = n > 1 ? void 0 : n ? V(s, p) : s, d = t.length - 1, c; d >= 0; d--)
|
|
19
19
|
(c = t[d]) && (a = (n ? c(s, p, a) : c(a)) || a);
|
|
@@ -126,16 +126,11 @@ let e = class extends v {
|
|
|
126
126
|
this.isButton() && (this.button.setCustomValidity(t), this.formControlController.updateValidity());
|
|
127
127
|
}
|
|
128
128
|
renderLabel() {
|
|
129
|
-
return h
|
|
130
|
-
<slot part="label" class="button__label" @slotchange=${this.handleLabelSlotChange}></slot>
|
|
131
|
-
`;
|
|
129
|
+
return h`<slot part="label" class="button__label" @slotchange=${this.handleLabelSlotChange}></slot>`;
|
|
132
130
|
}
|
|
133
131
|
render() {
|
|
134
132
|
const t = this.isLink() && !this.forceButtonNavigation, s = t ? b`a` : b`button`;
|
|
135
|
-
return h
|
|
136
|
-
<${s}
|
|
137
|
-
part="base"
|
|
138
|
-
class=${D({
|
|
133
|
+
return h`<${s} part="base" class=${D({
|
|
139
134
|
button: !0,
|
|
140
135
|
"button--caret": this.caret,
|
|
141
136
|
"button--circle": this.circle,
|
|
@@ -162,41 +157,11 @@ let e = class extends v {
|
|
|
162
157
|
"button--text": this.variant === "text",
|
|
163
158
|
"button--warning": this.variant === "warning",
|
|
164
159
|
"button--x-large": this.size === l.XLarge
|
|
165
|
-
})}
|
|
166
|
-
?disabled=${o(t ? void 0 : this.disabled)}
|
|
167
|
-
type=${o(t ? void 0 : this.type)}
|
|
168
|
-
title=${o(this.title || void 0)}
|
|
169
|
-
name=${o(t ? void 0 : this.name)}
|
|
170
|
-
value=${o(t ? void 0 : this.value)}
|
|
171
|
-
href=${o(t ? this.link || this.href : void 0)}
|
|
172
|
-
target=${o(t ? this.target : void 0)}
|
|
173
|
-
download=${o(t ? this.download : void 0)}
|
|
174
|
-
rel=${o(t ? this.rel : void 0)}
|
|
175
|
-
role=${o(t ? void 0 : "button")}
|
|
176
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
177
|
-
aria-label=${o(this.mappedLabel || void 0)}
|
|
178
|
-
tabindex=${this.disabled ? "-1" : "0"}
|
|
179
|
-
@blur=${this.handleBlur}
|
|
180
|
-
@focus=${this.handleFocus}
|
|
181
|
-
@invalid=${this.isButton() ? this.handleInvalid : null}
|
|
182
|
-
@click=${this.handleClick}
|
|
183
|
-
>
|
|
184
|
-
<slot name="prefix" part="prefix" class="button__prefix"></slot>
|
|
185
|
-
${this.renderLabel()}
|
|
186
|
-
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
187
|
-
${f(
|
|
160
|
+
})} ?disabled=${o(t ? void 0 : this.disabled)} type=${o(t ? void 0 : this.type)} title=${o(this.title || void 0)} name=${o(t ? void 0 : this.name)} value=${o(t ? void 0 : this.value)} href=${o(t ? this.link || this.href : void 0)} target=${o(t ? this.target : void 0)} download=${o(t ? this.download : void 0)} rel=${o(t ? this.rel : void 0)} role=${o(t ? void 0 : "button")} aria-disabled=${this.disabled ? "true" : "false"} aria-label=${o(this.mappedLabel || void 0)} tabindex=${this.disabled ? "-1" : "0"} @blur=${this.handleBlur} @focus=${this.handleFocus} @invalid=${this.isButton() ? this.handleInvalid : null} @click=${this.handleClick}><slot name="prefix" part="prefix" class="button__prefix"></slot>${this.renderLabel()}<slot name="suffix" part="suffix" class="button__suffix"></slot>${f(
|
|
188
161
|
this.caret,
|
|
189
|
-
() => h`
|
|
190
|
-
<cx-icon
|
|
191
|
-
part="caret"
|
|
192
|
-
class="button__caret"
|
|
193
|
-
name=${`keyboard_arrow_${this.caretDirection}`}
|
|
194
|
-
></cx-icon>
|
|
195
|
-
`
|
|
162
|
+
() => h`<cx-icon part="caret" class="button__caret" name=${`keyboard_arrow_${this.caretDirection}`}></cx-icon>`
|
|
196
163
|
)}
|
|
197
|
-
${f(this.loading, () => h`<cx-spinner part="spinner"></cx-spinner>`)}
|
|
198
|
-
</${s}>
|
|
199
|
-
`;
|
|
164
|
+
${f(this.loading, () => h`<cx-spinner part="spinner"></cx-spinner>`)}</${s}>`;
|
|
200
165
|
}
|
|
201
166
|
};
|
|
202
167
|
e.styles = [g, _];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i as o } from "./lit-element.jLBm65_O.js";
|
|
2
|
+
const r = o`:host{--background-color:var(--cx-color-primary);--color:light-dark(var(--cx-color-neutral-0),var(--cx-color-neutral-1000));--font-size:var(--cx-font-size-medium);--height:var(--cx-input-height-medium);--padding:0;--button-custom-height:32px;--button-custom-padding:4px 8px 4px 8px;--button-custom-font-size:var(--cx-font-size-medium);cursor:pointer;width:auto;max-width:100%;line-height:normal;display:inline-block;position:relative}:host([width-type=fill]),:host([width-type=adaptive][device-type=tablet]),:host([width-type=adaptive][device-type=mobile]){width:100%}.button{border-style:solid;border-width:var(--cx-input-border-width);width:100%;font-family:var(--cx-input-font-family);font-weight:var(--cx-font-weight-regular);font-size:var(--font-size,var(--cx-font-size-medium));height:var(--height,var(--cx-input-height-medium));padding:var(--padding,0);text-transform:var(--cx-button-text-transform,none);-webkit-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;transition:var(--cx-transition-x-fast) background-color, var(--cx-transition-x-fast) color, var(--cx-transition-x-fast) border, var(--cx-transition-x-fast) box-shadow;cursor:inherit;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.button--disabled{opacity:.5;cursor:default}.button--disabled *{pointer-events:none}.button__prefix,.button__suffix{pointer-events:none;flex:none;align-items:center;display:flex}.button__label{white-space:nowrap;text-overflow:ellipsis;line-height:1.15;display:inline-block;overflow:hidden}.button__label::slotted(cx-icon){vertical-align:-2px}.button--standard.button--default{background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--standard.button--default:hover:not(.button--disabled),.button--standard.button--default.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--standard.button--default:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);border-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral)}.button--standard.button--primary{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.button--standard.button--primary:hover:not(.button--disabled),.button--standard.button--primary.button--focused:not(.button--disabled){background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--standard.button--primary:active:not(.button--disabled){background-color:var(--cx-color-primary-700);border-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--standard.button--success{background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--standard.button--success:hover:not(.button--disabled),.button--standard.button--success.button--focused:not(.button--disabled){background-color:var(--cx-color-success-500);border-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--standard.button--success:active:not(.button--disabled){background-color:var(--cx-color-success-700);border-color:var(--cx-color-success-700);color:var(--cx-color-neutral-0)}.button--standard.button--warning{background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.button--standard.button--warning:hover:not(.button--disabled),.button--standard.button--warning.button--focused:not(.button--disabled){background-color:var(--cx-color-warning-500);border-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--standard.button--warning:active:not(.button--disabled){background-color:var(--cx-color-warning-700);border-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--standard.button--danger{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.button--standard.button--danger:hover:not(.button--disabled),.button--standard.button--danger.button--focused:not(.button--disabled){background-color:var(--cx-color-danger-500);border-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--standard.button--danger:active:not(.button--disabled){background-color:var(--cx-color-danger-700);border-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}.button--standard.button--custom{background-color:var(--background-color);border-color:var(--background-color);color:var(--color)}.button--standard.button--custom:hover:not(.button--disabled),.button--standard.button--custom.button--focused:not(.button--disabled){background-color:var(--background-color-focus,var(--background-color));border-color:var(--background-color-focus,var(--background-color));color:var(--color-focus,var(--color))}.button--standard.button--custom:active:not(.button--disabled){background-color:var(--background-color-active,var(--background-color));border-color:var(--background-color-active,var(--background-color));color:var(--color-active,var(--color))}.button--outline{border:solid var(--cx-input-border-width);background:0 0}.button--outline.button--default{border-color:var(--cx-input-border-color);color:var(--cx-color-neutral)}.button--outline.button--default:hover:not(.button--disabled),.button--outline.button--default.button--focused:not(.button--disabled),.button--outline.button--default.button--checked:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--outline.button--default:active:not(.button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--outline.button--primary{border-color:var(--cx-color-primary);color:var(--cx-color-primary)}.button--outline.button--primary:hover:not(.button--disabled),.button--outline.button--primary.button--focused:not(.button--disabled),.button--outline.button--primary.button--checked:not(.button--disabled){background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.button--outline.button--primary:active:not(.button--disabled){border-color:var(--cx-color-primary-700);background-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.button--outline.button--success{border-color:var(--cx-color-success);color:var(--cx-color-success)}.button--outline.button--success:hover:not(.button--disabled),.button--outline.button--success.button--focused:not(.button--disabled),.button--outline.button--success.button--checked:not(.button--disabled){background-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.button--outline.button--success:active:not(.button--disabled){border-color:var(--cx-color-success);background-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.button--outline.button--warning{border-color:var(--cx-color-warning);color:var(--cx-color-warning)}.button--outline.button--warning:hover:not(.button--disabled),.button--outline.button--warning.button--focused:not(.button--disabled),.button--outline.button--warning.button--checked:not(.button--disabled){background-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.button--outline.button--warning:active:not(.button--disabled){border-color:var(--cx-color-warning-700);background-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.button--outline.button--danger{border-color:var(--cx-color-danger);color:var(--cx-color-danger)}.button--outline.button--danger:hover:not(.button--disabled),.button--outline.button--danger.button--focused:not(.button--disabled),.button--outline.button--danger.button--checked:not(.button--disabled){background-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.button--outline.button--danger:active:not(.button--disabled){border-color:var(--cx-color-danger-700);background-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}@media (forced-colors:active){.button.button--outline.button--checked:not(.button--disabled){outline:2px solid #0000}}.button--text{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--text:hover:not(.button--disabled),.button--text.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.button--text:focus-visible:not(.button--disabled){color:var(--cx-color-neutral-800);background-color:#0000;border-color:#0000}.button--text:active:not(.button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.button--tertiary{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.button--tertiary:hover:not(.button--disabled),.button--tertiary.button--focused:not(.button--disabled){background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral);border-color:#0000}.button--tertiary:focus-visible:not(.button--disabled){background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral);border-color:#0000}.button--tertiary:active:not(.button--disabled){background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral);border-color:#0000}.button--small{height:auto;min-height:var(--cx-input-height-small);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-small)}.button--small ::slotted(cx-icon){--font-size:var(--cx-font-size-medium)}.button--medium{height:auto;min-height:var(--cx-input-height-medium);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-medium)}.button--large{height:auto;min-height:var(--cx-input-height-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--x-large{height:auto;min-height:var(--cx-input-height-x-large);font-size:var(--cx-button-font-size-medium);border-radius:var(--cx-button-border-radius-large)}.button--custom-size{--height:var(--button-custom-height);--padding:var(--button-custom-padding);--font-size:var(--button-custom-font-size);border-radius:var(--cx-button-border-radius-medium)}.button--pill.button--small{border-radius:var(--cx-input-height-small)}.button--pill.button--medium{border-radius:var(--cx-input-height-medium)}.button--pill.button--large{border-radius:var(--cx-input-height-large)}.button--pill.button--x-large{border-radius:var(--cx-input-height-x-large)}.button--circle{padding-left:0;padding-right:0}.button--circle.button--small{width:var(--cx-input-height-small);border-radius:50%}.button--circle.button--medium{width:var(--cx-input-height-medium);border-radius:50%}.button--circle.button--large{width:var(--cx-input-height-large);border-radius:50%}.button--circle.button--x-large{width:var(--cx-input-height-x-large);border-radius:50%}.button--circle .button__prefix,.button--circle .button__suffix,.button--circle .button__caret{display:none}.button--circle .button__label{justify-content:center;align-items:center;line-height:1;display:inline-flex}.button--caret .button__caret{--font-size:var(--cx-font-size-large);margin-block:auto}.button--caret.button--small .button__caret{--font-size:var(--cx-font-size-medium)}.button--caret .button__suffix{display:none}.button--loading{cursor:wait;position:relative}.button--loading .button__prefix,.button--loading .button__label,.button--loading .button__suffix,.button--loading .button__caret{visibility:hidden}.button--loading cx-spinner{--indicator-color:currentColor;width:1em;height:1em;font-size:1em;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}.button ::slotted(cx-badge){pointer-events:none;position:absolute;top:0;right:0;translate:50% -50%}.button--rtl ::slotted(cx-badge){left:0;right:auto;translate:-50% -50%}.button--has-label.button--small .button__label{padding:0 var(--cx-spacing-x-small)}.button--has-label.button--medium .button__label{padding:0 var(--cx-spacing-small)}.button--has-label.button--large .button__label{padding:0 var(--cx-spacing-medium)}.button--has-label.button--x-large .button__label{padding:0 var(--cx-spacing-large)}.button--has-prefix.button--small,.button--has-prefix.button--small .button__label,.button--has-prefix.button--medium,.button--has-prefix.button--medium .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--large{padding-inline-start:var(--cx-spacing-small)}.button--has-prefix.button--large .button__label{padding-inline-start:var(--cx-spacing-x-small)}.button--has-prefix.button--x-large,.button--has-prefix.button--x-large .button__label{padding-inline-start:var(--cx-spacing-medium)}.button--has-suffix.button--small,.button--caret.button--small,.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label,.button--has-suffix.button--medium,.button--caret.button--medium,.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--large,.button--caret.button--large{padding-inline-end:var(--cx-spacing-small)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-inline-end:var(--cx-spacing-x-small)}.button--has-suffix.button--x-large,.button--caret.button--x-large,.button--has-suffix.button--x-large .button__label,.button--caret.button--x-large .button__label{padding-inline-end:var(--cx-spacing-medium)}.button--caret cx-icon::part(span){height:auto}:host([data-cx-button-group__button--first]:not([data-cx-button-group__button--last])) .button{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-button-group__button--inner]) .button{border-radius:0}:host([data-cx-button-group__button--last]:not([data-cx-button-group__button--first])) .button{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first],[data-cx-button-group__button--radio],[variant=default]):not(:hover)) .button:after{content:"";top:0;inset-inline-start:0;mix-blend-mode:multiply;border-left:1px solid #80808054;position:absolute;bottom:0}:host([data-cx-button-group__button--hover]){z-index:1}:host([data-cx-button-group__button--focus]),:host([data-cx-button-group__button][checked]){z-index:2}`;
|
|
3
|
+
export {
|
|
4
|
+
r as b
|
|
5
|
+
};
|