@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { h as i, A as T, a as U } from "./endpoints.B7lcoc1N.js";
|
|
2
|
+
import { f as M, t as C } from "./toast.BXNbwZV8.js";
|
|
3
|
+
const L = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", P = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
|
|
4
|
+
function B(o) {
|
|
5
|
+
return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
|
|
6
|
+
(e, [t, r]) => !r || r.length === 0 ? e : t === "Types" ? {
|
|
7
|
+
...e,
|
|
8
|
+
SubtypeCriteria: r
|
|
9
|
+
} : {
|
|
10
|
+
...e,
|
|
11
|
+
FacetFilters: {
|
|
12
|
+
...e.FacetFilters,
|
|
13
|
+
[t]: r
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
async function H({
|
|
20
|
+
assetId: o,
|
|
21
|
+
extension: e,
|
|
22
|
+
format: t,
|
|
23
|
+
siteUrl: r,
|
|
24
|
+
token: a,
|
|
25
|
+
transformations: l,
|
|
26
|
+
useSession: s
|
|
27
|
+
}) {
|
|
28
|
+
try {
|
|
29
|
+
return (await i.request({
|
|
30
|
+
baseURL: r,
|
|
31
|
+
method: "GET",
|
|
32
|
+
params: {
|
|
33
|
+
SourceAssetFormat: t,
|
|
34
|
+
SourceAssetRecordID: o,
|
|
35
|
+
TargetExtension: e,
|
|
36
|
+
Token: a,
|
|
37
|
+
Transformations: l,
|
|
38
|
+
UseSession: s || void 0
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* https://link.orangelogic.com/Tasks/41S1XH
|
|
42
|
+
*/
|
|
43
|
+
timeout: 3e5,
|
|
44
|
+
// 5 minutes
|
|
45
|
+
url: T.GET_TRANSFORM_ASSET_LINK
|
|
46
|
+
})).data;
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function k({
|
|
52
|
+
extraFields: o,
|
|
53
|
+
recordIds: e
|
|
54
|
+
}) {
|
|
55
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
56
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
57
|
+
const t = o?.filter((r) => r && typeof r == "string") ?? [];
|
|
58
|
+
try {
|
|
59
|
+
return (await i.request({
|
|
60
|
+
method: "GET",
|
|
61
|
+
params: {
|
|
62
|
+
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
63
|
+
Fields: [
|
|
64
|
+
...t,
|
|
65
|
+
E,
|
|
66
|
+
F,
|
|
67
|
+
I,
|
|
68
|
+
b,
|
|
69
|
+
j
|
|
70
|
+
],
|
|
71
|
+
SeeThru: !0
|
|
72
|
+
},
|
|
73
|
+
paramsSerializer: {
|
|
74
|
+
indexes: null
|
|
75
|
+
},
|
|
76
|
+
responseType: "json",
|
|
77
|
+
transformResponse: [
|
|
78
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
79
|
+
(a) => {
|
|
80
|
+
const l = a.contentItems?.map((s) => {
|
|
81
|
+
let d = s.fields[F] ?? "";
|
|
82
|
+
return d === "" && (d = s.fields[I] ?? ""), {
|
|
83
|
+
name: d,
|
|
84
|
+
originalUrl: s.fields[E] ?? "",
|
|
85
|
+
recordId: s.recordID,
|
|
86
|
+
...t.reduce(
|
|
87
|
+
(u, c) => (u[c] = s.fields[c] ?? "", u),
|
|
88
|
+
{}
|
|
89
|
+
)
|
|
90
|
+
};
|
|
91
|
+
}) ?? [];
|
|
92
|
+
return l.sort((s, d) => {
|
|
93
|
+
const u = e.indexOf(s.recordId), c = e.indexOf(d.recordId);
|
|
94
|
+
return u - c;
|
|
95
|
+
}), {
|
|
96
|
+
facets: a.facets,
|
|
97
|
+
items: l,
|
|
98
|
+
totalCount: a.totalCount
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
url: T.GET_CONTENT_V1
|
|
103
|
+
})).data;
|
|
104
|
+
} catch {
|
|
105
|
+
return {
|
|
106
|
+
facets: [],
|
|
107
|
+
items: [],
|
|
108
|
+
totalCount: 0
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function q({
|
|
113
|
+
extraFields: o,
|
|
114
|
+
folderId: e,
|
|
115
|
+
limit: t,
|
|
116
|
+
limitedDocTypes: r,
|
|
117
|
+
searchTerm: a,
|
|
118
|
+
seeThrough: l,
|
|
119
|
+
selectedFacets: s,
|
|
120
|
+
sortOrder: d,
|
|
121
|
+
start: u
|
|
122
|
+
}) {
|
|
123
|
+
const c = (o?.filter((f) => f && typeof f == "string") ?? []).map((f) => f.replace("%20", " "));
|
|
124
|
+
try {
|
|
125
|
+
return (await i.request({
|
|
126
|
+
method: "GET",
|
|
127
|
+
params: {
|
|
128
|
+
Fields: [
|
|
129
|
+
...c,
|
|
130
|
+
w,
|
|
131
|
+
L,
|
|
132
|
+
E,
|
|
133
|
+
g,
|
|
134
|
+
G,
|
|
135
|
+
R,
|
|
136
|
+
O,
|
|
137
|
+
h,
|
|
138
|
+
P,
|
|
139
|
+
N,
|
|
140
|
+
S,
|
|
141
|
+
x,
|
|
142
|
+
I,
|
|
143
|
+
F
|
|
144
|
+
],
|
|
145
|
+
Limit: t,
|
|
146
|
+
LimitedToDocTypes: r.length > 0 ? r : void 0,
|
|
147
|
+
ObjectRecordID: e,
|
|
148
|
+
OrderBy: d || void 0,
|
|
149
|
+
SearchTerm: a || void 0,
|
|
150
|
+
SeeThru: l,
|
|
151
|
+
Start: u,
|
|
152
|
+
...B(s)
|
|
153
|
+
},
|
|
154
|
+
paramsSerializer: {
|
|
155
|
+
indexes: null
|
|
156
|
+
},
|
|
157
|
+
responseType: "json",
|
|
158
|
+
transformResponse: [
|
|
159
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
160
|
+
(m) => ({
|
|
161
|
+
facets: m.facets,
|
|
162
|
+
items: m.contentItems?.map((n) => {
|
|
163
|
+
let p = n.fields[S] ?? "", D = n.fields[F] ?? "", _ = n.fields[L] ?? "";
|
|
164
|
+
return p && !p.startsWith(".") && (p = "." + p), D === "" && (D = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (_ = n.fields[E] ?? ""), {
|
|
165
|
+
docSubType: n.fields[P] ?? "",
|
|
166
|
+
docType: n.fields[h] ?? "",
|
|
167
|
+
extension: p,
|
|
168
|
+
height: n.fields[R] ?? "0",
|
|
169
|
+
id: n.recordID,
|
|
170
|
+
identifier: n.fields[N] ?? "",
|
|
171
|
+
imageUrl: _,
|
|
172
|
+
name: D ?? "",
|
|
173
|
+
originalUrl: n.fields[E] ?? "",
|
|
174
|
+
recordId: n.fields[x] ?? "",
|
|
175
|
+
size: n.fields[O] ?? "0 MB",
|
|
176
|
+
tags: n.fields[g] ?? "",
|
|
177
|
+
width: n.fields[G] ?? "0",
|
|
178
|
+
...c.reduce(
|
|
179
|
+
(y, A) => (y[A] = n.fields[A] ?? "", y),
|
|
180
|
+
{}
|
|
181
|
+
)
|
|
182
|
+
};
|
|
183
|
+
}) ?? [],
|
|
184
|
+
totalCount: m.totalCount
|
|
185
|
+
})
|
|
186
|
+
],
|
|
187
|
+
url: T.GET_CONTENT_V2
|
|
188
|
+
})).data;
|
|
189
|
+
} catch {
|
|
190
|
+
return {
|
|
191
|
+
facets: [],
|
|
192
|
+
items: [],
|
|
193
|
+
totalCount: 0
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
async function z({
|
|
198
|
+
autoCropMode: o,
|
|
199
|
+
cropHeight: e,
|
|
200
|
+
cropWidth: t,
|
|
201
|
+
imageUrl: r,
|
|
202
|
+
useSession: a
|
|
203
|
+
}) {
|
|
204
|
+
try {
|
|
205
|
+
return (await i.request({
|
|
206
|
+
method: "GET",
|
|
207
|
+
params: {
|
|
208
|
+
AutoCropMode: o,
|
|
209
|
+
CropHeight: e,
|
|
210
|
+
CropWidth: t,
|
|
211
|
+
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
212
|
+
UseSession: a || void 0
|
|
213
|
+
},
|
|
214
|
+
responseType: "json",
|
|
215
|
+
timeout: 3e5,
|
|
216
|
+
// 5 minutes
|
|
217
|
+
transformResponse: [
|
|
218
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
219
|
+
(s) => ({
|
|
220
|
+
height: s.cropHeight,
|
|
221
|
+
width: s.cropWidth,
|
|
222
|
+
x: s.cropX,
|
|
223
|
+
y: s.cropY
|
|
224
|
+
})
|
|
225
|
+
],
|
|
226
|
+
url: T.GET_CROP_ZONE_SUGGESTION
|
|
227
|
+
})).data;
|
|
228
|
+
} catch {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async function V({
|
|
233
|
+
siteUrl: o
|
|
234
|
+
} = {}) {
|
|
235
|
+
try {
|
|
236
|
+
return (await i.request({
|
|
237
|
+
baseURL: o,
|
|
238
|
+
method: "GET",
|
|
239
|
+
responseType: "json",
|
|
240
|
+
transformResponse: [
|
|
241
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
242
|
+
(t) => !t || typeof t != "object" ? {
|
|
243
|
+
formatsByDocType: {
|
|
244
|
+
Audio: {},
|
|
245
|
+
Image: {},
|
|
246
|
+
Multimedia: {},
|
|
247
|
+
Video: {}
|
|
248
|
+
}
|
|
249
|
+
} : {
|
|
250
|
+
formatsByDocType: t.formatsByDocType ?? {}
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
url: U
|
|
254
|
+
})).data;
|
|
255
|
+
} catch {
|
|
256
|
+
return { formatsByDocType: {} };
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
async function K(o, e) {
|
|
260
|
+
const t = new FormData();
|
|
261
|
+
t.append("InputStream", o);
|
|
262
|
+
const r = await M(
|
|
263
|
+
T.UPLOAD_AND_GET_RESPONSE,
|
|
264
|
+
{
|
|
265
|
+
body: t,
|
|
266
|
+
method: "POST"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
ByPassPermissionCheck: "true",
|
|
270
|
+
ClientFileName: o.name,
|
|
271
|
+
FolderRecordID: e?.imageUploadFolderID || ""
|
|
272
|
+
}
|
|
273
|
+
), a = r ? await r.json() : null;
|
|
274
|
+
return a ? a.downloadLink === "" ? (C(e?.errorUploadMessage || "", {
|
|
275
|
+
notificationType: "error"
|
|
276
|
+
}), "") : a.downloadLink : (C(e?.errorUploadMessage || "", {
|
|
277
|
+
notificationType: "error"
|
|
278
|
+
}), "");
|
|
279
|
+
}
|
|
280
|
+
export {
|
|
281
|
+
L as D,
|
|
282
|
+
k as a,
|
|
283
|
+
H as b,
|
|
284
|
+
z as c,
|
|
285
|
+
V as d,
|
|
286
|
+
q as e,
|
|
287
|
+
K as u
|
|
288
|
+
};
|
|
@@ -4,9 +4,7 @@ const y = () => {
|
|
|
4
4
|
}, w = () => navigator.userAgent.indexOf("Chrome") > -1, l = () => {
|
|
5
5
|
const t = window.navigator && window.navigator.userAgent || "";
|
|
6
6
|
return w() ? !1 : t.indexOf("Safari") > -1;
|
|
7
|
-
};
|
|
8
|
-
!l() && "VideoEncoder" in window;
|
|
9
|
-
const C = "showPopover" in document.createElement("div");
|
|
7
|
+
}, C = !l() && "VideoEncoder" in window, A = "showPopover" in document.createElement("div");
|
|
10
8
|
function c(t) {
|
|
11
9
|
if (t.assignedSlot)
|
|
12
10
|
return t.assignedSlot;
|
|
@@ -30,14 +28,14 @@ function u(t, o) {
|
|
|
30
28
|
}
|
|
31
29
|
return n;
|
|
32
30
|
}
|
|
33
|
-
function
|
|
31
|
+
function b(t) {
|
|
34
32
|
return u(t, (o) => {
|
|
35
|
-
const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "",
|
|
33
|
+
const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "", i = o.hasAttribute(
|
|
36
34
|
"data-overlayscrollbars-viewport"
|
|
37
|
-
),
|
|
35
|
+
), s = n.transform !== "none", a = ["auto", "scroll", "hidden"].includes(
|
|
38
36
|
n.overflow
|
|
39
37
|
);
|
|
40
|
-
return !!(e ||
|
|
38
|
+
return !!(e || i || s && a);
|
|
41
39
|
});
|
|
42
40
|
}
|
|
43
41
|
const m = [
|
|
@@ -54,29 +52,33 @@ const m = [
|
|
|
54
52
|
"perspective",
|
|
55
53
|
"filter"
|
|
56
54
|
], v = ["paint", "layout", "strict", "content"];
|
|
57
|
-
function
|
|
55
|
+
function E(t) {
|
|
58
56
|
return u(
|
|
59
57
|
t,
|
|
60
58
|
(n) => {
|
|
61
|
-
const e = window.getComputedStyle(n),
|
|
59
|
+
const e = window.getComputedStyle(n), i = m.some(
|
|
62
60
|
(r) => e[r] ? e[r] !== "none" : !1
|
|
63
|
-
),
|
|
61
|
+
), s = e.backdropFilter, a = !!s && s !== "none", f = e.filter !== "none", d = e.containerType !== "normal", g = S.some(
|
|
64
62
|
(r) => (e.willChange || "").includes(r)
|
|
65
63
|
), p = v.some(
|
|
66
64
|
(r) => (e.contain || "").includes(r)
|
|
67
65
|
), h = e.contentVisibility === "auto";
|
|
68
|
-
return l() && d ? !0 :
|
|
66
|
+
return l() && d ? !0 : i || g || p || a || h || f;
|
|
69
67
|
}
|
|
70
68
|
);
|
|
71
69
|
}
|
|
72
|
-
function
|
|
70
|
+
function P() {
|
|
73
71
|
return /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
74
72
|
}
|
|
75
73
|
export {
|
|
76
|
-
|
|
74
|
+
E as a,
|
|
77
75
|
y as b,
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
P as c,
|
|
77
|
+
w as d,
|
|
78
|
+
u as e,
|
|
79
|
+
b as f,
|
|
80
|
+
c as g,
|
|
80
81
|
l as i,
|
|
81
|
-
|
|
82
|
+
A as p,
|
|
83
|
+
C as s
|
|
82
84
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { n as i, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as g } from "./component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as C } from "./custom-element.L4WJXn1j.js";
|
|
4
|
+
import { F as x, v as w } from "./form.CO12-VK0.js";
|
|
5
|
+
import { L as $ } from "./i18n.DrzK7TPf.js";
|
|
6
|
+
import { H as S, g as O } from "./slot.j5oheLJC.js";
|
|
7
|
+
import { w as m } from "./watch.q1sEjPWL.js";
|
|
8
|
+
import { r as u } from "./state.CSDxrqLd.js";
|
|
8
9
|
import { e as L } from "./query.BBf1UFkC.js";
|
|
9
|
-
import { e as D } from "./class-map.
|
|
10
|
-
import { o } from "./if-defined.
|
|
10
|
+
import { e as D } from "./class-map.BiVq-cVR.js";
|
|
11
|
+
import { o } from "./if-defined.BRoBj_Rp.js";
|
|
11
12
|
import { n as f } from "./when.Dr1es41R.js";
|
|
12
|
-
import { u as h, i as b } from "./static.
|
|
13
|
+
import { u as h, i as b } from "./static.UA3G1Deq.js";
|
|
13
14
|
import B from "../components/icon.js";
|
|
14
15
|
import F from "../components/spinner.js";
|
|
15
|
-
import { b as _ } from "./button.styles.
|
|
16
|
-
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,
|
|
16
|
+
import { b as _ } from "./button.styles.Dl5IQLHU.js";
|
|
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) => {
|
|
17
18
|
for (var a = n > 1 ? void 0 : n ? V(s, p) : s, d = t.length - 1, c; d >= 0; d--)
|
|
18
19
|
(c = t[d]) && (a = (n ? c(s, p, a) : c(a)) || a);
|
|
19
20
|
return n && a && k(s, p, a), a;
|
|
@@ -198,112 +199,112 @@ let e = class extends v {
|
|
|
198
199
|
`;
|
|
199
200
|
}
|
|
200
201
|
};
|
|
201
|
-
e.styles = [
|
|
202
|
+
e.styles = [g, _];
|
|
202
203
|
e.dependencies = {
|
|
203
204
|
"cx-icon": B,
|
|
204
205
|
"cx-spinner": F
|
|
205
206
|
};
|
|
206
|
-
|
|
207
|
+
r([
|
|
207
208
|
L(".button")
|
|
208
209
|
], e.prototype, "button", 2);
|
|
209
|
-
|
|
210
|
+
r([
|
|
210
211
|
u()
|
|
211
212
|
], e.prototype, "hasFocus", 2);
|
|
212
|
-
|
|
213
|
+
r([
|
|
213
214
|
u()
|
|
214
215
|
], e.prototype, "invalid", 2);
|
|
215
|
-
|
|
216
|
+
r([
|
|
216
217
|
u()
|
|
217
218
|
], e.prototype, "isParentDropdownOpened", 2);
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
r([
|
|
220
|
+
i()
|
|
220
221
|
], e.prototype, "title", 2);
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
r([
|
|
223
|
+
i({ reflect: !0 })
|
|
223
224
|
], e.prototype, "variant", 2);
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
r([
|
|
226
|
+
i({ reflect: !0 })
|
|
226
227
|
], e.prototype, "size", 2);
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
r([
|
|
229
|
+
i({ reflect: !0, type: Boolean })
|
|
229
230
|
], e.prototype, "caret", 2);
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
r([
|
|
232
|
+
i({ attribute: "caret-direction", reflect: !0, type: String })
|
|
232
233
|
], e.prototype, "caretDirection", 2);
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
r([
|
|
235
|
+
i({ reflect: !0, type: Boolean })
|
|
235
236
|
], e.prototype, "disabled", 2);
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
r([
|
|
238
|
+
i({ reflect: !0, type: Boolean })
|
|
238
239
|
], e.prototype, "loading", 2);
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
r([
|
|
241
|
+
i({ reflect: !0, type: Boolean })
|
|
241
242
|
], e.prototype, "outline", 2);
|
|
242
|
-
|
|
243
|
-
|
|
243
|
+
r([
|
|
244
|
+
i({ reflect: !0, type: Boolean })
|
|
244
245
|
], e.prototype, "pill", 2);
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
r([
|
|
247
|
+
i({ reflect: !0, type: Boolean })
|
|
247
248
|
], e.prototype, "circle", 2);
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
r([
|
|
250
|
+
i()
|
|
250
251
|
], e.prototype, "type", 2);
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
r([
|
|
253
|
+
i()
|
|
253
254
|
], e.prototype, "name", 2);
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
r([
|
|
256
|
+
i()
|
|
256
257
|
], e.prototype, "value", 2);
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
r([
|
|
259
|
+
i()
|
|
259
260
|
], e.prototype, "href", 2);
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
r([
|
|
262
|
+
i()
|
|
262
263
|
], e.prototype, "link", 2);
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
r([
|
|
265
|
+
i()
|
|
265
266
|
], e.prototype, "target", 2);
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
r([
|
|
268
|
+
i()
|
|
268
269
|
], e.prototype, "rel", 2);
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
r([
|
|
271
|
+
i()
|
|
271
272
|
], e.prototype, "download", 2);
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
r([
|
|
274
|
+
i({ reflect: !1 })
|
|
274
275
|
], e.prototype, "form", 2);
|
|
275
|
-
|
|
276
|
-
|
|
276
|
+
r([
|
|
277
|
+
i({ attribute: "formaction" })
|
|
277
278
|
], e.prototype, "formAction", 2);
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
r([
|
|
280
|
+
i({ attribute: "formenctype" })
|
|
280
281
|
], e.prototype, "formEnctype", 2);
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
r([
|
|
283
|
+
i({ attribute: "formmethod" })
|
|
283
284
|
], e.prototype, "formMethod", 2);
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
r([
|
|
286
|
+
i({ attribute: "formnovalidate", type: Boolean })
|
|
286
287
|
], e.prototype, "formNoValidate", 2);
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
r([
|
|
289
|
+
i({ attribute: "formtarget" })
|
|
289
290
|
], e.prototype, "formTarget", 2);
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
r([
|
|
292
|
+
i({ attribute: "width-type", reflect: !0, type: String })
|
|
292
293
|
], e.prototype, "widthType", 2);
|
|
293
|
-
|
|
294
|
-
|
|
294
|
+
r([
|
|
295
|
+
i({ reflect: !0, type: String })
|
|
295
296
|
], e.prototype, "label", 2);
|
|
296
|
-
|
|
297
|
+
r([
|
|
297
298
|
u()
|
|
298
299
|
], e.prototype, "mappedLabel", 2);
|
|
299
|
-
|
|
300
|
+
r([
|
|
300
301
|
m("label")
|
|
301
302
|
], e.prototype, "handleLabelSlotChange", 1);
|
|
302
|
-
|
|
303
|
+
r([
|
|
303
304
|
m("disabled", { waitUntilFirstUpdate: !0 })
|
|
304
305
|
], e.prototype, "handleDisabledChange", 1);
|
|
305
|
-
e =
|
|
306
|
-
|
|
306
|
+
e = r([
|
|
307
|
+
C("cx-button")
|
|
307
308
|
], e);
|
|
308
309
|
export {
|
|
309
310
|
l as B,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as t } from "./
|
|
2
|
-
import { o as e } from "./style-map.
|
|
1
|
+
import { x as t } from "./lit-element.jLBm65_O.js";
|
|
2
|
+
import { o as e } from "./style-map.llVFPd__.js";
|
|
3
3
|
const r = {
|
|
4
4
|
svg: t`<svg
|
|
5
5
|
xmlns="http://www.w3.org/2000/svg"
|