@orangelogic/design-system 2.134.0 → 2.136.0
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/asset-link-format.BBWyY5fn.js +2627 -0
- package/library/chunks/{button.DYoFn504.js → button.3giRMk79.js} +2 -2
- package/library/chunks/{checkbox.BzbWmmJ0.js → checkbox.B-2O517F.js} +2 -2
- package/library/chunks/{table.DWcxLbq6.js → color-swatch-group.DC6vIYo4.js} +3133 -2887
- package/library/chunks/{color-swatch.0zyBEfL_.js → color-swatch.g3FPUnxM.js} +2 -2
- package/library/chunks/{confirm-popover.DpVYvK20.js → confirm-popover.DtndPsMa.js} +3 -3
- package/library/chunks/{dialog.BwBD_hJi.js → dialog.BQq3xBeH.js} +2 -2
- package/library/chunks/directive-helpers.DEDMV45_.js +42 -0
- package/library/chunks/{document-viewer.BM716ovi.js → document-viewer.BQPJD2lJ.js} +8 -8
- package/library/chunks/{dom.BXeuEG1b.js → dom.acWb8KCK.js} +1 -1
- package/library/chunks/{dot-pagination.B70lV5Av.js → dot-pagination.DBk9Rz1e.js} +1 -1
- package/library/chunks/{endpoints.6E17hFiK.js → endpoints.tU0_RZ_7.js} +4 -4
- package/library/chunks/{file-on-demand.CsT96fvk.js → file-on-demand.Bnloo9Ui.js} +12 -12
- package/library/chunks/folder-select.DuG4dSPm.js +942 -0
- package/library/chunks/{form.3af0bYrm.js → form.K1XOtu3S.js} +1 -1
- package/library/chunks/{header.BMGvKrdP.js → header.Bpjw08j7.js} +1 -1
- package/library/chunks/{i18n.DoMIwXr2.js → i18n.DJikbkDK.js} +48 -12
- package/library/chunks/{icon-button.B-Jf9W3v.js → icon-button.xobY-9OH.js} +1 -1
- package/library/chunks/{iframe.Cdv6esyS.js → iframe.BkvxcywO.js} +1 -1
- package/library/chunks/{image.SLqIVjqc.js → image.KZRXIthe.js} +241 -229
- package/library/chunks/{input.CQNhMu4z.js → input.GUw7x9tK.js} +3 -3
- package/library/chunks/{keyed.C0rkKrxH.js → keyed.DdOUTIg-.js} +1 -1
- package/library/chunks/{live.SCz6M8Gs.js → live.DCegntDo.js} +1 -1
- package/library/chunks/{option.SCVixE2L.js → option.uHye0aDT.js} +1 -1
- package/library/chunks/{pagination.BFE6Nk3_.js → pagination.D8Hzwlan.js} +6 -6
- package/library/chunks/{ref.bzeTdX0K.js → ref.DktKp7fP.js} +1 -1
- package/library/chunks/{repeat.DbF2p5ae.js → repeat.CFjcER6_.js} +1 -1
- package/library/chunks/{resizable-component.styles.BVhOesNE.js → resizable-component.styles.CAfXABBc.js} +5 -5
- package/library/chunks/{string.CbnVBzsd.js → string.CjJ09HK3.js} +14 -11
- package/library/chunks/{tab-group.C-p2Dljr.js → tab-group.0_aOE22R.js} +5 -5
- package/library/chunks/toast.Bz-j7zP2.js +109 -0
- package/library/chunks/{tree.C2mLhREj.js → tree.C14rLLol.js} +3 -3
- package/library/chunks/url.-WDYqplj.js +42 -0
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +16 -2163
- package/library/components/atoms.js +49 -51
- package/library/components/audio.js +3 -3
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +3 -3
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +6 -7
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +2 -2
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +4 -4
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +88 -85
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +6 -5
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +27 -29
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +6 -6
- package/library/components/padding-input-group.js +2 -2
- package/library/components/pagination.js +7 -7
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +5 -5
- package/library/components/rating.js +2 -2
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +10 -7
- package/library/components/shadow-input-group.js +2 -2
- package/library/components/share-option-list.js +3 -3
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/switch.js +2 -2
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +2 -2
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +46083 -43779
- package/library/components/video.js +3 -3
- package/library/package.json +3 -1
- package/library/packages/atoms/src/components/image/image.d.ts +3 -0
- package/library/packages/atoms/src/components/select/select.d.ts +6 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -0
- package/library/packages/atoms/src/index.d.ts +0 -1
- package/library/packages/events/src/cx-folder-select-selection-seeded.d.ts +6 -0
- package/library/packages/events/src/cx-image-src-resolved.d.ts +9 -0
- package/library/packages/events/src/cx-pdf-viewer-annotation-draw-mode-change.d.ts +10 -0
- package/library/packages/events/src/cx-pdf-viewer-annotation-draw-params-change.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-more-options-select.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-mode-change.d.ts +10 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-params-change.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-click.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-page-change.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-scale-change.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-view-toggle.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-view-on-asset-toggle.d.ts +11 -0
- package/library/packages/events/src/cx-video-src-resolved.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +13 -0
- package/library/packages/hybrid/table-core/src/index.d.ts +3 -0
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions-dropdown.d.ts +8 -8
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.d.ts +6 -5
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-dropdown-filter.d.ts +4 -4
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-group-by-dropdown.d.ts +4 -4
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-saved-search-dropdown.d.ts +6 -5
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.d.ts +12 -12
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.d.ts +11 -11
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/Clipboard.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/extensions/extensions.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/History.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/extensions/extensions.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/HoverMenu/HoverMenu.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Import/defaults/importers.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/SelectRange.d.ts +4 -4
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/extensions/extensions.d.ts +2 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +1 -1
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +32 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +20 -3
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +5 -0
- package/library/packages/molecules/src/index.d.ts +1 -1
- package/library/packages/molecules/src/library-index.d.ts +0 -1
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/index.d.ts +3 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.d.ts +92 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.d.ts +43 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.styles.d.ts +2 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.d.ts +42 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.styles.d.ts +2 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +101 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +66 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +1 -1
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.constants.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -9
- package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -7
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -14
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +9 -1
- package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +1 -1
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/{molecules → organisms}/src/list-editor/list-editor.d.ts +9 -3
- package/library/packages/organisms/src/list-editor/list-editor.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +1 -1
- package/library/packages/services/src/api/folder/folder.types.d.ts +9 -2
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +16 -0
- package/library/packages/types/src/content-builder.d.ts +1 -1
- package/library/packages/types/src/dam-view.d.ts +1 -0
- package/library/packages/types/src/folder-select.d.ts +8 -1
- package/library/packages/types/src/pdf-viewer-toolbar.d.ts +82 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +43 -7
- package/library/packages/utils/src/string/string.d.ts +1 -1
- package/library/packages/utils/src/url/url.d.ts +12 -2
- package/library/react-web-component.d.ts +1829 -1679
- package/library/utils.js +200 -199
- package/package.json +3 -1
- package/library/chunks/asset.CcxcYY9d.js +0 -469
- package/library/chunks/color-swatch-group.Dx6-kWC-.js +0 -362
- package/library/chunks/directive-helpers.Dm4rc594.js +0 -37
- package/library/chunks/folder-select.DwZ7lczk.js +0 -884
- package/library/chunks/list-editor.BhMNYL8R.js +0 -1394
- package/library/chunks/responsive.Cf65FCWd.js +0 -17
- package/library/chunks/toast.D3AW3RWv.js +0 -94
- package/library/chunks/url.Cj9cIQXJ.js +0 -27
- package/library/components/list-editor.d.ts +0 -3
- package/library/components/list-editor.js +0 -33
- package/library/components/table.d.ts +0 -3
- package/library/components/table.js +0 -84
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/index.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/filter-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/select-all-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-alert.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-base.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-calcs.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-clickable-cell.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-data-tree.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-edit.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-footer.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-format.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-group-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-header.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-hover-menu.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-move-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-page.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-placeholder.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-popup.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-print.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-resize.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-responsive-layout.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rtl.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-select-range.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-spreadsheet.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table-data-loader.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.utils.d.ts +0 -0
- /package/library/packages/molecules/src/{list-editor/list-editor.styles.d.ts → pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.styles.d.ts} +0 -0
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
import { h as l, C as Z, S as z, A as B, a as X, b as Y } from "./endpoints.6E17hFiK.js";
|
|
2
|
-
import { M as G } from "./asset-link-format.QzzboHHE.js";
|
|
3
|
-
import "./browser.BHOCIF_A.js";
|
|
4
|
-
import "./lit-element.jLBm65_O.js";
|
|
5
|
-
import "./form.3af0bYrm.js";
|
|
6
|
-
import "./i18n.DoMIwXr2.js";
|
|
7
|
-
import { a as Q } from "./string.CbnVBzsd.js";
|
|
8
|
-
import "./date-picker.DTUICGb9.js";
|
|
9
|
-
import "./content-builder.BGzxZUgi.js";
|
|
10
|
-
import "./unsafe-html.Dff7-rCx.js";
|
|
11
|
-
import { b as J } from "./_baseUniq.HFKneygy.js";
|
|
12
|
-
function ee(e) {
|
|
13
|
-
return e && e.length ? J(e) : [];
|
|
14
|
-
}
|
|
15
|
-
function te(e) {
|
|
16
|
-
return typeof e == "object" && e !== null && "URI" in e;
|
|
17
|
-
}
|
|
18
|
-
const re = {
|
|
19
|
-
artist: "Artist",
|
|
20
|
-
color: "Color",
|
|
21
|
-
createDate: "CreateDate",
|
|
22
|
-
directParentFolderIdentifier: "DirectParentFolderIdentifier",
|
|
23
|
-
docSubType: "DocSubType",
|
|
24
|
-
docType: "DocType",
|
|
25
|
-
editDate: "EditDate",
|
|
26
|
-
fileExtension: "Fileextension",
|
|
27
|
-
keyword: "Keyword",
|
|
28
|
-
mediaDate: "MediaDate",
|
|
29
|
-
mediaNumber: "MediaNumber",
|
|
30
|
-
nativeKeyword: "NativeKeyword",
|
|
31
|
-
orientation: "Orientation",
|
|
32
|
-
parentFolderIdentifier: "ParentFolderIdentifier",
|
|
33
|
-
path: "Path",
|
|
34
|
-
photographer: "Photographer",
|
|
35
|
-
purpose: "Purpose",
|
|
36
|
-
recordId: "RecordID",
|
|
37
|
-
systemIdentifier: "SystemIdentifier",
|
|
38
|
-
text: "Text",
|
|
39
|
-
title: "Title"
|
|
40
|
-
}, oe = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
41
|
-
function g(e) {
|
|
42
|
-
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(e) && !/^(?:OR|AND|NOT)$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
43
|
-
}
|
|
44
|
-
function M(e, t) {
|
|
45
|
-
const r = (Array.isArray(t) ? t : [t]).map((a) => `${e}:${g(a)}`);
|
|
46
|
-
return r.length > 1 ? `(${r.join(" OR ")})` : r[0] ?? "";
|
|
47
|
-
}
|
|
48
|
-
function ne(e, t) {
|
|
49
|
-
return (Array.isArray(t) ? t : [t]).map((r) => `${e}${r.operator}${r.value}`).join(" AND ");
|
|
50
|
-
}
|
|
51
|
-
function se(e) {
|
|
52
|
-
const t = [];
|
|
53
|
-
for (const o of Object.keys(e)) {
|
|
54
|
-
const r = o, a = e[r];
|
|
55
|
-
if (a == null)
|
|
56
|
-
continue;
|
|
57
|
-
if (r === "custom") {
|
|
58
|
-
for (const [n, d] of Object.entries(
|
|
59
|
-
a
|
|
60
|
-
))
|
|
61
|
-
t.push(M(n, d));
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
const u = re[r];
|
|
65
|
-
if (u) {
|
|
66
|
-
if (oe.has(r)) {
|
|
67
|
-
t.push(
|
|
68
|
-
ne(u, a)
|
|
69
|
-
);
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
if (r === "color") {
|
|
73
|
-
t.push(`${u}:${a}`);
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (r === "parentFolderIdentifier") {
|
|
77
|
-
const n = Array.isArray(a) ? a : [a];
|
|
78
|
-
if (n.length === 0)
|
|
79
|
-
continue;
|
|
80
|
-
const d = [
|
|
81
|
-
...n.map((f) => `ParentFolderIdentifier:${g(String(f))}`),
|
|
82
|
-
...n.map((f) => `ParentAlbumIdentifier:${g(String(f))}`)
|
|
83
|
-
];
|
|
84
|
-
t.push(`(${d.join(" OR ")})`);
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
t.push(M(u, a));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return t.join(" AND ");
|
|
91
|
-
}
|
|
92
|
-
function y(e) {
|
|
93
|
-
if ("and" in e)
|
|
94
|
-
return e.and.map(y).filter(Boolean).join(" AND ");
|
|
95
|
-
if ("or" in e) {
|
|
96
|
-
const t = e.or.map(y).filter(Boolean);
|
|
97
|
-
return t.length > 1 ? `(${t.join(" OR ")})` : t[0] ?? "";
|
|
98
|
-
}
|
|
99
|
-
if ("not" in e) {
|
|
100
|
-
const t = y(e.not);
|
|
101
|
-
return t ? `NOT (${t})` : "";
|
|
102
|
-
}
|
|
103
|
-
return se(e);
|
|
104
|
-
}
|
|
105
|
-
const N = "CoreField.LargeSizePreview", U = "CoreField.DocType", ae = "Document.Title", ie = "Document.CaptionLong", v = "Document.FileExtension", j = "CoreField.FileSize", W = "CoreField.Identifier", H = "CoreField.Keywords", w = "CoreField.MaxHeight", $ = "CoreField.MaxWidth", h = "Document.RecordID", x = "CoreField.DocSubType", K = "CoreField.TitleWithFallback", F = "CoreField.OriginalFileName", S = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview", C = {
|
|
106
|
-
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
107
|
-
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
108
|
-
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
109
|
-
}, q = {
|
|
110
|
-
[N]: C.DEFAULT_VIEW_SIZE,
|
|
111
|
-
[K]: C.FIELD_TITLE_WITH_FALLBACK,
|
|
112
|
-
[E]: C.ORIGINAL_VIEW_SIZE
|
|
113
|
-
}, ce = Object.fromEntries(
|
|
114
|
-
Object.entries(q).map(([e, t]) => [
|
|
115
|
-
t,
|
|
116
|
-
e
|
|
117
|
-
])
|
|
118
|
-
);
|
|
119
|
-
function ue(e) {
|
|
120
|
-
return q[e] ?? e;
|
|
121
|
-
}
|
|
122
|
-
function k(e) {
|
|
123
|
-
const t = {};
|
|
124
|
-
for (const [o, r] of Object.entries(e)) {
|
|
125
|
-
const a = ce[o] ?? o;
|
|
126
|
-
t[a] = r;
|
|
127
|
-
}
|
|
128
|
-
return t;
|
|
129
|
-
}
|
|
130
|
-
async function V({
|
|
131
|
-
countPerPage: e,
|
|
132
|
-
fields: t,
|
|
133
|
-
getPermanentAssetsPaths: o,
|
|
134
|
-
isSiteBuilder: r,
|
|
135
|
-
pageNumber: a,
|
|
136
|
-
query: u,
|
|
137
|
-
securityByPassToken: n,
|
|
138
|
-
siteUrl: d,
|
|
139
|
-
sort: f,
|
|
140
|
-
token: m,
|
|
141
|
-
useSession: A
|
|
142
|
-
}) {
|
|
143
|
-
const _ = t?.map(ue);
|
|
144
|
-
try {
|
|
145
|
-
return (await l.request({
|
|
146
|
-
baseURL: d,
|
|
147
|
-
headers: m ? { Authorization: `Bearer ${m}` } : void 0,
|
|
148
|
-
method: "GET",
|
|
149
|
-
params: {
|
|
150
|
-
CountPerPage: e,
|
|
151
|
-
Fields: ee(_),
|
|
152
|
-
Format: "json",
|
|
153
|
-
GetPermanentAssetsPaths: o || void 0,
|
|
154
|
-
PageNumber: a,
|
|
155
|
-
Query: y(u),
|
|
156
|
-
SecurityByPassToken: n || void 0,
|
|
157
|
-
Sort: f || void 0,
|
|
158
|
-
UseSession: A || void 0
|
|
159
|
-
},
|
|
160
|
-
paramsSerializer: { indexes: null },
|
|
161
|
-
responseType: "json",
|
|
162
|
-
transformResponse: [
|
|
163
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
164
|
-
r ? (s) => ({
|
|
165
|
-
items: (s.results?.Items ?? []).map(k),
|
|
166
|
-
sort: s.results?.GlobalInfo?.Sort ?? "",
|
|
167
|
-
totalCount: s.results?.GlobalInfo?.TotalCount ?? 0
|
|
168
|
-
}) : (s) => ({
|
|
169
|
-
items: (s.APIResponse?.Items ?? []).map(k),
|
|
170
|
-
sort: s.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
171
|
-
totalCount: s.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
172
|
-
})
|
|
173
|
-
],
|
|
174
|
-
url: r ? Z.SEARCH_ASSETS : z["4.0"]
|
|
175
|
-
})).data;
|
|
176
|
-
} catch {
|
|
177
|
-
return { items: [], sort: "", totalCount: 0 };
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
async function Fe({
|
|
181
|
-
assetId: e,
|
|
182
|
-
extension: t,
|
|
183
|
-
format: o,
|
|
184
|
-
siteUrl: r,
|
|
185
|
-
token: a,
|
|
186
|
-
transformations: u,
|
|
187
|
-
useSession: n
|
|
188
|
-
}) {
|
|
189
|
-
try {
|
|
190
|
-
return (await l.request({
|
|
191
|
-
baseURL: r,
|
|
192
|
-
method: "GET",
|
|
193
|
-
params: {
|
|
194
|
-
SourceAssetFormat: o,
|
|
195
|
-
SourceAssetRecordID: e,
|
|
196
|
-
TargetExtension: Q(t),
|
|
197
|
-
Token: a || void 0,
|
|
198
|
-
Transformations: u,
|
|
199
|
-
UseSession: n || void 0
|
|
200
|
-
},
|
|
201
|
-
/**
|
|
202
|
-
* https://link.orangelogic.com/Tasks/41S1XH
|
|
203
|
-
*/
|
|
204
|
-
timeout: 3e5,
|
|
205
|
-
// 5 minutes
|
|
206
|
-
url: B.GET_TRANSFORM_ASSET_LINK
|
|
207
|
-
})).data;
|
|
208
|
-
} catch {
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
const le = 50;
|
|
213
|
-
function de(e, t) {
|
|
214
|
-
const o = [];
|
|
215
|
-
for (let r = 0; r < e.length; r += t)
|
|
216
|
-
o.push(e.slice(r, r + t));
|
|
217
|
-
return o;
|
|
218
|
-
}
|
|
219
|
-
async function Se({
|
|
220
|
-
extraFields: e,
|
|
221
|
-
getPermanentAssetsPaths: t,
|
|
222
|
-
isSiteBuilder: o,
|
|
223
|
-
recordIds: r,
|
|
224
|
-
securityByPassToken: a,
|
|
225
|
-
token: u
|
|
226
|
-
}) {
|
|
227
|
-
if (!Array.isArray(r) || r.length === 0)
|
|
228
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
229
|
-
const n = e?.filter((s) => s && typeof s == "string") ?? [], d = [
|
|
230
|
-
...n,
|
|
231
|
-
E,
|
|
232
|
-
S,
|
|
233
|
-
F,
|
|
234
|
-
ae,
|
|
235
|
-
ie,
|
|
236
|
-
h
|
|
237
|
-
], f = de(r, le), m = await Promise.all(
|
|
238
|
-
f.map(
|
|
239
|
-
(s) => V({
|
|
240
|
-
countPerPage: s.length,
|
|
241
|
-
fields: d,
|
|
242
|
-
getPermanentAssetsPaths: t,
|
|
243
|
-
isSiteBuilder: o,
|
|
244
|
-
pageNumber: 1,
|
|
245
|
-
query: { recordId: s },
|
|
246
|
-
securityByPassToken: a,
|
|
247
|
-
token: u
|
|
248
|
-
})
|
|
249
|
-
)
|
|
250
|
-
), A = new Map(r.map((s, p) => [s, p])), _ = m.flatMap((s) => s.items).map((s) => {
|
|
251
|
-
let p = c(s, S);
|
|
252
|
-
return p === "" && (p = c(s, F)), {
|
|
253
|
-
name: p,
|
|
254
|
-
originalUrl: c(s, E),
|
|
255
|
-
recordId: c(s, h),
|
|
256
|
-
...n.reduce(
|
|
257
|
-
(D, i) => (D[i] = c(s, i), D),
|
|
258
|
-
{}
|
|
259
|
-
)
|
|
260
|
-
};
|
|
261
|
-
}).sort(
|
|
262
|
-
(s, p) => (A.get(s.recordId) ?? 1 / 0) - (A.get(p.recordId) ?? 1 / 0)
|
|
263
|
-
), T = m.reduce(
|
|
264
|
-
(s, p) => s + p.totalCount,
|
|
265
|
-
0
|
|
266
|
-
);
|
|
267
|
-
return { facets: [], items: _, totalCount: T };
|
|
268
|
-
}
|
|
269
|
-
function c(e, t) {
|
|
270
|
-
const o = e[t];
|
|
271
|
-
return o == null ? "" : typeof o == "string" ? o : typeof o == "number" || typeof o == "boolean" ? String(o) : te(o) ? o.URI : "";
|
|
272
|
-
}
|
|
273
|
-
async function Le({
|
|
274
|
-
countPerPage: e,
|
|
275
|
-
directParentFolderIdentifier: t,
|
|
276
|
-
extraFields: o,
|
|
277
|
-
getPermanentAssetsPaths: r,
|
|
278
|
-
isSiteBuilder: a,
|
|
279
|
-
limitedDocTypes: u,
|
|
280
|
-
pageNumber: n,
|
|
281
|
-
parentFolderIdentifier: d,
|
|
282
|
-
searchTerm: f,
|
|
283
|
-
securityByPassToken: m,
|
|
284
|
-
sortOrder: A,
|
|
285
|
-
token: _
|
|
286
|
-
}) {
|
|
287
|
-
if (!t && !d)
|
|
288
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
289
|
-
const T = (o?.filter((i) => i && typeof i == "string") ?? []).map((i) => i.replace("%20", " ")), s = {
|
|
290
|
-
directParentFolderIdentifier: t,
|
|
291
|
-
parentFolderIdentifier: d,
|
|
292
|
-
...u.length > 0 ? { docType: [G.Image, G.Audio] } : {}
|
|
293
|
-
}, p = await V({
|
|
294
|
-
countPerPage: e,
|
|
295
|
-
fields: [
|
|
296
|
-
...T,
|
|
297
|
-
K,
|
|
298
|
-
N,
|
|
299
|
-
E,
|
|
300
|
-
H,
|
|
301
|
-
$,
|
|
302
|
-
w,
|
|
303
|
-
j,
|
|
304
|
-
U,
|
|
305
|
-
x,
|
|
306
|
-
W,
|
|
307
|
-
v,
|
|
308
|
-
h,
|
|
309
|
-
F,
|
|
310
|
-
S
|
|
311
|
-
],
|
|
312
|
-
getPermanentAssetsPaths: r,
|
|
313
|
-
isSiteBuilder: a,
|
|
314
|
-
pageNumber: n,
|
|
315
|
-
query: s,
|
|
316
|
-
securityByPassToken: m,
|
|
317
|
-
sort: void 0,
|
|
318
|
-
token: _
|
|
319
|
-
}), D = p.items.map((i) => {
|
|
320
|
-
let I = c(i, v), L = c(i, S), P = c(i, N);
|
|
321
|
-
I && !I.startsWith(".") && (I = "." + I), L === "" && (L = c(i, F)), I.toLowerCase() === ".gif" && (P = c(i, E));
|
|
322
|
-
const R = c(i, h);
|
|
323
|
-
return {
|
|
324
|
-
docSubType: c(i, x),
|
|
325
|
-
docType: c(i, U) || "",
|
|
326
|
-
extension: I,
|
|
327
|
-
height: c(i, w) || "0",
|
|
328
|
-
id: R,
|
|
329
|
-
identifier: c(i, W),
|
|
330
|
-
imageUrl: P,
|
|
331
|
-
name: L,
|
|
332
|
-
originalUrl: c(i, E),
|
|
333
|
-
recordId: R,
|
|
334
|
-
size: c(i, j) || "0 MB",
|
|
335
|
-
tags: c(i, H),
|
|
336
|
-
width: c(i, $) || "0",
|
|
337
|
-
...T.reduce(
|
|
338
|
-
(O, b) => (O[b] = c(i, b), O),
|
|
339
|
-
{}
|
|
340
|
-
)
|
|
341
|
-
};
|
|
342
|
-
});
|
|
343
|
-
return {
|
|
344
|
-
facets: [],
|
|
345
|
-
items: D,
|
|
346
|
-
totalCount: p.totalCount
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
async function Ce({
|
|
350
|
-
autoCropMode: e,
|
|
351
|
-
cropHeight: t,
|
|
352
|
-
cropWidth: o,
|
|
353
|
-
imageUrl: r,
|
|
354
|
-
useSession: a
|
|
355
|
-
}) {
|
|
356
|
-
try {
|
|
357
|
-
return (await l.request({
|
|
358
|
-
method: "GET",
|
|
359
|
-
params: {
|
|
360
|
-
AutoCropMode: e,
|
|
361
|
-
CropHeight: t,
|
|
362
|
-
CropWidth: o,
|
|
363
|
-
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
364
|
-
UseSession: a || void 0
|
|
365
|
-
},
|
|
366
|
-
responseType: "json",
|
|
367
|
-
timeout: 3e5,
|
|
368
|
-
// 5 minutes
|
|
369
|
-
transformResponse: [
|
|
370
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
371
|
-
(n) => ({
|
|
372
|
-
height: n.cropHeight,
|
|
373
|
-
width: n.cropWidth,
|
|
374
|
-
x: n.cropX,
|
|
375
|
-
y: n.cropY
|
|
376
|
-
})
|
|
377
|
-
],
|
|
378
|
-
url: B.GET_CROP_ZONE_SUGGESTION
|
|
379
|
-
})).data;
|
|
380
|
-
} catch {
|
|
381
|
-
return null;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
async function ge({
|
|
385
|
-
assetRecordId: e,
|
|
386
|
-
siteUrl: t,
|
|
387
|
-
token: o,
|
|
388
|
-
useSession: r
|
|
389
|
-
}) {
|
|
390
|
-
try {
|
|
391
|
-
return (await l.request({
|
|
392
|
-
baseURL: t,
|
|
393
|
-
method: "GET",
|
|
394
|
-
params: {
|
|
395
|
-
RecordId: e,
|
|
396
|
-
Token: o,
|
|
397
|
-
UseSession: r || void 0
|
|
398
|
-
},
|
|
399
|
-
responseType: "json",
|
|
400
|
-
transformResponse: [
|
|
401
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
402
|
-
(u) => !u || typeof u != "object" ? [] : u.proxies?.map((n) => ({
|
|
403
|
-
cdnName: n.cdnName,
|
|
404
|
-
extension: n.extension,
|
|
405
|
-
formatHeight: n.formatHeight,
|
|
406
|
-
formatWidth: n.formatWidth,
|
|
407
|
-
height: n.height,
|
|
408
|
-
permanentLink: n.permanentLink,
|
|
409
|
-
proxyLabel: n.proxyLabel,
|
|
410
|
-
proxyName: n.proxyName,
|
|
411
|
-
width: n.width
|
|
412
|
-
})) ?? []
|
|
413
|
-
],
|
|
414
|
-
url: Y
|
|
415
|
-
})).data;
|
|
416
|
-
} catch {
|
|
417
|
-
return [];
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
async function Ne({
|
|
421
|
-
siteUrl: e
|
|
422
|
-
} = {}) {
|
|
423
|
-
try {
|
|
424
|
-
return (await l.request({
|
|
425
|
-
baseURL: e,
|
|
426
|
-
method: "GET",
|
|
427
|
-
responseType: "json",
|
|
428
|
-
transformResponse: [
|
|
429
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
430
|
-
(o) => !o || typeof o != "object" ? {
|
|
431
|
-
formatsByDocType: {
|
|
432
|
-
Audio: {},
|
|
433
|
-
Image: {},
|
|
434
|
-
Multimedia: {},
|
|
435
|
-
Video: {}
|
|
436
|
-
}
|
|
437
|
-
} : {
|
|
438
|
-
formatsByDocType: o.formatsByDocType ?? {}
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
url: X
|
|
442
|
-
})).data;
|
|
443
|
-
} catch {
|
|
444
|
-
return { formatsByDocType: {} };
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
export {
|
|
448
|
-
N as D,
|
|
449
|
-
ae as F,
|
|
450
|
-
E as O,
|
|
451
|
-
Se as a,
|
|
452
|
-
K as b,
|
|
453
|
-
Fe as c,
|
|
454
|
-
Ce as d,
|
|
455
|
-
Ne as e,
|
|
456
|
-
ge as f,
|
|
457
|
-
Le as g,
|
|
458
|
-
w as h,
|
|
459
|
-
$ as i,
|
|
460
|
-
U as j,
|
|
461
|
-
v as k,
|
|
462
|
-
j as l,
|
|
463
|
-
W as m,
|
|
464
|
-
x as n,
|
|
465
|
-
V as o,
|
|
466
|
-
h as p,
|
|
467
|
-
te as q,
|
|
468
|
-
ee as u
|
|
469
|
-
};
|