@orangelogic/design-system 2.141.0 → 2.143.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/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
- package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
- package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
- package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
- package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
- package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
- package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
- package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
- package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
- package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
- package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
- package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
- package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
- package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
- package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
- package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
- package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
- package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
- package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
- package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
- package/library/chunks/_baseXor.DY_sP7af.js +116 -0
- package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
- package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
- package/library/chunks/{asset-link-format.BDuHqEN5.js → asset-link-format.BVoE-GrD.js} +246 -222
- package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
- package/library/chunks/button.styles.CATjjP1T.js +5 -0
- package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
- package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
- package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
- package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
- package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
- package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
- package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
- package/library/chunks/dialog.0TzzxNXE.js +1820 -0
- package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.Bb1M9uJ-.js} +9 -9
- package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
- package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.Bn_YviaU.js} +89 -88
- package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
- package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
- package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.5f4e8jqB.js} +7 -7
- package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
- package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
- package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
- package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
- package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
- package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
- package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
- package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
- package/library/chunks/{image.u2nQNoZ8.js → image.C2acLx6g.js} +4 -4
- package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
- package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
- package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
- package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
- package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
- package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
- package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
- package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
- package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
- package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
- package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
- package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
- package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
- package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
- package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
- package/library/chunks/typography.IqHbnd3C.js +52 -0
- package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
- package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
- package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
- package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
- package/library/components/alert.js +3 -3
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +5 -5
- package/library/components/atoms.js +21 -21
- package/library/components/audio.js +4 -4
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +2 -2
- package/library/components/button.js +5 -5
- package/library/components/checkbox.js +3 -3
- package/library/components/color-picker.js +79 -72
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +4 -4
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +3 -3
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +32 -32
- package/library/components/dialog.js +5 -6
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +5 -5
- package/library/components/dot-pagination.js +3 -3
- package/library/components/drawer.js +4 -4
- package/library/components/dropdown.js +3 -3
- package/library/components/dynamic-select.js +7 -7
- package/library/components/e-chart.js +2 -2
- package/library/components/element-clamp.js +3 -3
- package/library/components/file-on-demand.js +1872 -36
- package/library/components/folder-select.js +7 -7
- 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 +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +3 -3
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +3 -3
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +3 -3
- package/library/components/image-comparer.js +3 -3
- package/library/components/image.js +4 -4
- package/library/components/include.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +3 -3
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +6 -6
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +8 -8
- 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/qr-code.js +1 -1
- package/library/components/radio-button.js +2 -2
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +2 -2
- package/library/components/rating.js +3 -3
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +4 -4
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +4 -4
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +6 -6
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +5 -5
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +4 -4
- package/library/components/types.js +27465 -27792
- package/library/components/typography.js +1 -1
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/header/header.d.ts +1 -1
- package/library/packages/events/src/cx-board-change.d.ts +12 -0
- package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
- package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
- package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
- package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
- package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
- package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
- package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
- package/library/packages/events/src/events.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
- package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
- package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
- package/library/packages/services/src/api/asset/asset.d.ts +2 -1
- package/library/packages/services/src/api/endpoints.d.ts +4 -0
- package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +14 -1
- package/library/packages/types/src/font-picker.d.ts +21 -0
- package/library/packages/types/src/table-column-editor.d.ts +12 -0
- package/library/packages/types/src/table.d.ts +5 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
- package/library/packages/utils/src/font/font.d.ts +16 -0
- package/library/react-web-component.d.ts +71 -5
- package/library/utils.js +258 -242
- package/package.json +1 -1
- package/library/chunks/button.styles.Cz4EELcL.js +0 -5
- package/library/chunks/dialog.C79Kd2S4.js +0 -379
- package/library/chunks/file-on-demand.Bxq3-Dk1.js +0 -1985
- package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
- package/library/chunks/typography.DJC_UXgs.js +0 -52
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import "../components/cropper.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as V } from "./button.Bja8HrmJ.js";
|
|
3
3
|
import D from "../components/space.js";
|
|
4
|
-
import { C as T } from "./typography.
|
|
4
|
+
import { C as T } from "./typography.IqHbnd3C.js";
|
|
5
5
|
import { n as h, C as N } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { h as P, a as Et, C as
|
|
7
|
-
import { M as
|
|
6
|
+
import { h as P, a as Et, C as It, S as Nt, b as Ot, c as Lt, d as Ut } from "./endpoints.Bn_YviaU.js";
|
|
7
|
+
import { M as At, U as o, T as c } from "./asset-link-format.QzzboHHE.js";
|
|
8
8
|
import "./browser.BHOCIF_A.js";
|
|
9
|
-
import { i as
|
|
9
|
+
import { i as O, x as A, E as qt } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import "./form.BSqXLytJ.js";
|
|
11
|
-
import { L
|
|
12
|
-
import { a as
|
|
11
|
+
import { L } from "./i18n.C4wPyPTR.js";
|
|
12
|
+
import { a as jt } from "./string.BmBJ_BLT.js";
|
|
13
13
|
import "./date-picker.DTUICGb9.js";
|
|
14
|
-
import "./content-builder.
|
|
14
|
+
import "./content-builder.D-_Ou8sw.js";
|
|
15
15
|
import "./unsafe-html.Dff7-rCx.js";
|
|
16
|
-
import { b as Bt } from "./_baseUniq.
|
|
16
|
+
import { b as Bt } from "./_baseUniq.DP9Qak6V.js";
|
|
17
17
|
import { c as U } from "./component.styles.CRO4Odto.js";
|
|
18
18
|
import { c as q } from "./custom-element.L4WJXn1j.js";
|
|
19
|
-
import { w as R } from "./watch.
|
|
20
|
-
import { s as
|
|
19
|
+
import { w as R } from "./watch.CkGTlwIo.js";
|
|
20
|
+
import { s as zt, c as et } from "./number.B4PQLJIg.js";
|
|
21
21
|
import { b as it } from "./transformation.c-RS37zA.js";
|
|
22
22
|
import { r as v } from "./state.CSDxrqLd.js";
|
|
23
23
|
import { n as E } from "./when.Dr1es41R.js";
|
|
24
24
|
import Z from "../components/details.js";
|
|
25
25
|
import Vt from "../components/divider.js";
|
|
26
|
-
import { C as Y } from "./icon.
|
|
27
|
-
import { C as mt } from "./icon-button.
|
|
28
|
-
import { C as ft } from "./input.
|
|
29
|
-
import { C as nt } from "./option.
|
|
26
|
+
import { C as Y } from "./icon.-k4fR0bD.js";
|
|
27
|
+
import { C as mt } from "./icon-button.Ce2tPGuf.js";
|
|
28
|
+
import { C as ft } from "./input.BAvin1Qu.js";
|
|
29
|
+
import { C as nt } from "./option.DT-6HmoC.js";
|
|
30
30
|
import ht from "../components/select.js";
|
|
31
|
-
import { c as
|
|
31
|
+
import { c as Gt } from "./image.BzmclWBR.js";
|
|
32
32
|
import { e as J } from "./query.BBf1UFkC.js";
|
|
33
33
|
import { c as tt } from "./repeat.CFjcER6_.js";
|
|
34
|
-
import { o as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import { C as
|
|
38
|
-
function
|
|
34
|
+
import { o as I } from "./style-map.llVFPd__.js";
|
|
35
|
+
import Ht from "../components/tooltip.js";
|
|
36
|
+
import Qt from "../components/button-group.js";
|
|
37
|
+
import { C as Kt } from "./checkbox.kdSMUgR1.js";
|
|
38
|
+
function Xt(t) {
|
|
39
39
|
return t && t.length ? Bt(t) : [];
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Zt(t) {
|
|
42
42
|
return typeof t == "object" && t !== null && "URI" in t;
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const Yt = {
|
|
45
45
|
artist: "Artist",
|
|
46
46
|
color: "Color",
|
|
47
47
|
createDate: "CreateDate",
|
|
@@ -63,18 +63,18 @@ const Zt = {
|
|
|
63
63
|
systemIdentifier: "SystemIdentifier",
|
|
64
64
|
text: "Text",
|
|
65
65
|
title: "Title"
|
|
66
|
-
},
|
|
66
|
+
}, Jt = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
67
67
|
function dt(t) {
|
|
68
68
|
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(t) && !/^(?:OR|AND|NOT)$/.test(t) ? t : `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function wt(t, e) {
|
|
71
71
|
const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${dt(a)}`);
|
|
72
72
|
return s.length > 1 ? `(${s.join(" OR ")})` : s[0] ?? "";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function te(t, e) {
|
|
75
75
|
return (Array.isArray(e) ? e : [e]).map((s) => `${t}${s.operator}${s.value}`).join(" AND ");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ee(t) {
|
|
78
78
|
const e = [];
|
|
79
79
|
for (const i of Object.keys(t)) {
|
|
80
80
|
const s = i, a = t[s];
|
|
@@ -84,14 +84,14 @@ function te(t) {
|
|
|
84
84
|
for (const [n, l] of Object.entries(
|
|
85
85
|
a
|
|
86
86
|
))
|
|
87
|
-
e.push(
|
|
87
|
+
e.push(wt(n, l));
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
90
|
-
const r =
|
|
90
|
+
const r = Yt[s];
|
|
91
91
|
if (r) {
|
|
92
|
-
if (
|
|
92
|
+
if (Jt.has(s)) {
|
|
93
93
|
e.push(
|
|
94
|
-
|
|
94
|
+
te(r, a)
|
|
95
95
|
);
|
|
96
96
|
continue;
|
|
97
97
|
}
|
|
@@ -110,7 +110,7 @@ function te(t) {
|
|
|
110
110
|
e.push(`(${l.join(" OR ")})`);
|
|
111
111
|
continue;
|
|
112
112
|
}
|
|
113
|
-
e.push(
|
|
113
|
+
e.push(wt(r, a));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return e.join(" AND ");
|
|
@@ -126,9 +126,9 @@ function st(t) {
|
|
|
126
126
|
const e = st(t.not);
|
|
127
127
|
return e ? `NOT (${e})` : "";
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return ee(t);
|
|
130
130
|
}
|
|
131
|
-
const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType",
|
|
131
|
+
const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType", ie = "Document.Title", se = "Document.CaptionLong", kt = "Document.FileExtension", Ct = "CoreField.FileSize", Rt = "CoreField.Identifier", $t = "CoreField.Keywords", Pt = "CoreField.MaxHeight", _t = "CoreField.MaxWidth", at = "Document.RecordID", Mt = "CoreField.DocSubType", Wt = "CoreField.TitleWithFallback", ot = "CoreField.OriginalFileName", rt = "CoreField.UpdatedFileName", X = "CoreField.OriginalPreview", pt = {
|
|
132
132
|
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
133
133
|
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
134
134
|
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
@@ -136,19 +136,19 @@ const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType", ee = "Documen
|
|
|
136
136
|
[ut]: pt.DEFAULT_VIEW_SIZE,
|
|
137
137
|
[Wt]: pt.FIELD_TITLE_WITH_FALLBACK,
|
|
138
138
|
[X]: pt.ORIGINAL_VIEW_SIZE
|
|
139
|
-
},
|
|
139
|
+
}, ae = Object.fromEntries(
|
|
140
140
|
Object.entries(Dt).map(([t, e]) => [
|
|
141
141
|
e,
|
|
142
142
|
t
|
|
143
143
|
])
|
|
144
144
|
);
|
|
145
|
-
function
|
|
145
|
+
function oe(t) {
|
|
146
146
|
return Dt[t] ?? t;
|
|
147
147
|
}
|
|
148
148
|
function Ft(t) {
|
|
149
149
|
const e = {};
|
|
150
150
|
for (const [i, s] of Object.entries(t)) {
|
|
151
|
-
const a =
|
|
151
|
+
const a = ae[i] ?? i;
|
|
152
152
|
e[a] = s;
|
|
153
153
|
}
|
|
154
154
|
return e;
|
|
@@ -166,7 +166,7 @@ async function Tt({
|
|
|
166
166
|
token: y,
|
|
167
167
|
useSession: m
|
|
168
168
|
}) {
|
|
169
|
-
const S = e?.map(
|
|
169
|
+
const S = e?.map(oe);
|
|
170
170
|
try {
|
|
171
171
|
return (await P.request({
|
|
172
172
|
baseURL: l,
|
|
@@ -174,7 +174,7 @@ async function Tt({
|
|
|
174
174
|
method: "GET",
|
|
175
175
|
params: {
|
|
176
176
|
CountPerPage: t,
|
|
177
|
-
Fields:
|
|
177
|
+
Fields: Xt(S),
|
|
178
178
|
Format: "json",
|
|
179
179
|
GetPermanentAssetsPaths: i || void 0,
|
|
180
180
|
PageNumber: a,
|
|
@@ -197,13 +197,13 @@ async function Tt({
|
|
|
197
197
|
totalCount: u.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
198
198
|
})
|
|
199
199
|
],
|
|
200
|
-
url: s ?
|
|
200
|
+
url: s ? It.SEARCH_ASSETS : Nt["4.0"]
|
|
201
201
|
})).data;
|
|
202
202
|
} catch {
|
|
203
203
|
return { items: [], sort: "", totalCount: 0 };
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
async function
|
|
206
|
+
async function re({
|
|
207
207
|
assetId: t,
|
|
208
208
|
extension: e,
|
|
209
209
|
format: i,
|
|
@@ -219,7 +219,7 @@ async function oe({
|
|
|
219
219
|
params: {
|
|
220
220
|
SourceAssetFormat: i,
|
|
221
221
|
SourceAssetRecordID: t,
|
|
222
|
-
TargetExtension:
|
|
222
|
+
TargetExtension: jt(e),
|
|
223
223
|
Token: a || void 0,
|
|
224
224
|
Transformations: r,
|
|
225
225
|
UseSession: n || void 0
|
|
@@ -235,14 +235,14 @@ async function oe({
|
|
|
235
235
|
return null;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
function
|
|
238
|
+
const ne = 50;
|
|
239
|
+
function he(t, e) {
|
|
240
240
|
const i = [];
|
|
241
241
|
for (let s = 0; s < t.length; s += e)
|
|
242
242
|
i.push(t.slice(s, s + e));
|
|
243
243
|
return i;
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
245
|
+
async function xi({
|
|
246
246
|
extraFields: t,
|
|
247
247
|
getPermanentAssetsPaths: e,
|
|
248
248
|
isSiteBuilder: i,
|
|
@@ -257,10 +257,10 @@ async function gi({
|
|
|
257
257
|
X,
|
|
258
258
|
rt,
|
|
259
259
|
ot,
|
|
260
|
-
ee,
|
|
261
260
|
ie,
|
|
261
|
+
se,
|
|
262
262
|
at
|
|
263
|
-
], f =
|
|
263
|
+
], f = he(s, ne), y = await Promise.all(
|
|
264
264
|
f.map(
|
|
265
265
|
(u) => Tt({
|
|
266
266
|
countPerPage: u.length,
|
|
@@ -274,13 +274,13 @@ async function gi({
|
|
|
274
274
|
})
|
|
275
275
|
)
|
|
276
276
|
), m = new Map(s.map((u, $) => [u, $])), S = y.flatMap((u) => u.items).map((u) => {
|
|
277
|
-
let $ =
|
|
278
|
-
return $ === "" && ($ =
|
|
277
|
+
let $ = w(u, rt);
|
|
278
|
+
return $ === "" && ($ = w(u, ot)), {
|
|
279
279
|
name: $,
|
|
280
|
-
originalUrl:
|
|
281
|
-
recordId:
|
|
280
|
+
originalUrl: w(u, X),
|
|
281
|
+
recordId: w(u, at),
|
|
282
282
|
...n.reduce(
|
|
283
|
-
(Q,
|
|
283
|
+
(Q, b) => (Q[b] = w(u, b), Q),
|
|
284
284
|
{}
|
|
285
285
|
)
|
|
286
286
|
};
|
|
@@ -292,11 +292,11 @@ async function gi({
|
|
|
292
292
|
);
|
|
293
293
|
return { facets: [], items: S, totalCount: C };
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function w(t, e) {
|
|
296
296
|
const i = t[e];
|
|
297
|
-
return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) :
|
|
297
|
+
return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : Zt(i) ? i.URI : "";
|
|
298
298
|
}
|
|
299
|
-
async function
|
|
299
|
+
async function yi({
|
|
300
300
|
countPerPage: t,
|
|
301
301
|
directParentFolderIdentifier: e,
|
|
302
302
|
extraFields: i,
|
|
@@ -312,10 +312,10 @@ async function xi({
|
|
|
312
312
|
}) {
|
|
313
313
|
if (!e && !l)
|
|
314
314
|
return { facets: [], items: [], totalCount: 0 };
|
|
315
|
-
const C = (i?.filter((
|
|
315
|
+
const C = (i?.filter((b) => b && typeof b == "string") ?? []).map((b) => b.replace("%20", " ")), u = {
|
|
316
316
|
directParentFolderIdentifier: e,
|
|
317
317
|
parentFolderIdentifier: l,
|
|
318
|
-
...r.length > 0 ? { docType: [
|
|
318
|
+
...r.length > 0 ? { docType: [At.Image, At.Audio] } : {}
|
|
319
319
|
}, $ = await Tt({
|
|
320
320
|
countPerPage: t,
|
|
321
321
|
fields: [
|
|
@@ -342,26 +342,26 @@ async function xi({
|
|
|
342
342
|
securityByPassToken: y,
|
|
343
343
|
sort: void 0,
|
|
344
344
|
token: S
|
|
345
|
-
}), Q = $.items.map((
|
|
346
|
-
let K =
|
|
347
|
-
K && !K.startsWith(".") && (K = "." + K), ct === "" && (ct =
|
|
348
|
-
const yt =
|
|
345
|
+
}), Q = $.items.map((b) => {
|
|
346
|
+
let K = w(b, kt), ct = w(b, rt), xt = w(b, ut);
|
|
347
|
+
K && !K.startsWith(".") && (K = "." + K), ct === "" && (ct = w(b, ot)), K.toLowerCase() === ".gif" && (xt = w(b, X));
|
|
348
|
+
const yt = w(b, at);
|
|
349
349
|
return {
|
|
350
|
-
docSubType:
|
|
351
|
-
docType:
|
|
350
|
+
docSubType: w(b, Mt),
|
|
351
|
+
docType: w(b, vt) || "",
|
|
352
352
|
extension: K,
|
|
353
|
-
height:
|
|
353
|
+
height: w(b, Pt) || "0",
|
|
354
354
|
id: yt,
|
|
355
|
-
identifier:
|
|
355
|
+
identifier: w(b, Rt),
|
|
356
356
|
imageUrl: xt,
|
|
357
357
|
name: ct,
|
|
358
|
-
originalUrl:
|
|
358
|
+
originalUrl: w(b, X),
|
|
359
359
|
recordId: yt,
|
|
360
|
-
size:
|
|
361
|
-
tags:
|
|
362
|
-
width:
|
|
360
|
+
size: w(b, Ct) || "0 MB",
|
|
361
|
+
tags: w(b, $t),
|
|
362
|
+
width: w(b, _t) || "0",
|
|
363
363
|
...C.reduce(
|
|
364
|
-
(St,
|
|
364
|
+
(St, bt) => (St[bt] = w(b, bt), St),
|
|
365
365
|
{}
|
|
366
366
|
)
|
|
367
367
|
};
|
|
@@ -372,7 +372,7 @@ async function xi({
|
|
|
372
372
|
totalCount: $.totalCount
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
async function
|
|
375
|
+
async function le({
|
|
376
376
|
autoCropMode: t,
|
|
377
377
|
cropHeight: e,
|
|
378
378
|
cropWidth: i,
|
|
@@ -407,7 +407,7 @@ async function he({
|
|
|
407
407
|
return null;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
async function
|
|
410
|
+
async function Si({
|
|
411
411
|
assetRecordId: t,
|
|
412
412
|
isSiteBuilder: e,
|
|
413
413
|
siteUrl: i,
|
|
@@ -438,13 +438,13 @@ async function yi({
|
|
|
438
438
|
width: l.width
|
|
439
439
|
})) ?? []
|
|
440
440
|
],
|
|
441
|
-
url: e ?
|
|
441
|
+
url: e ? It.GET_AVAILABLE_PROXIES : Ut
|
|
442
442
|
})).data;
|
|
443
443
|
} catch {
|
|
444
444
|
return [];
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
async function
|
|
447
|
+
async function bi({
|
|
448
448
|
siteUrl: t
|
|
449
449
|
} = {}) {
|
|
450
450
|
try {
|
|
@@ -465,21 +465,44 @@ async function Si({
|
|
|
465
465
|
formatsByDocType: i.formatsByDocType ?? {}
|
|
466
466
|
}
|
|
467
467
|
],
|
|
468
|
-
url:
|
|
468
|
+
url: Ot
|
|
469
469
|
})).data;
|
|
470
470
|
} catch {
|
|
471
471
|
return { formatsByDocType: {} };
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
async function Ai({
|
|
475
|
+
recordIds: t,
|
|
476
|
+
rightsToCheck: e
|
|
477
|
+
}) {
|
|
478
|
+
const i = {
|
|
479
|
+
authorizedObjects: [],
|
|
480
|
+
forbiddenObjectsOfReadPermission: [],
|
|
481
|
+
forbiddenObjectsOfRequestedPermission: [],
|
|
482
|
+
invalidObjects: []
|
|
483
|
+
};
|
|
484
|
+
try {
|
|
485
|
+
const { data: s } = await P.request({
|
|
486
|
+
method: "GET",
|
|
487
|
+
params: { RecordIDs: t, RightsToCheck: e },
|
|
488
|
+
paramsSerializer: { indexes: null },
|
|
489
|
+
responseType: "json",
|
|
490
|
+
url: Lt.GET_AUTHORIZED_OBJECTS
|
|
491
|
+
});
|
|
492
|
+
return s;
|
|
493
|
+
} catch {
|
|
494
|
+
return i;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
const ce = O`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, pe = O`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
|
|
498
|
+
var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, x = (t, e, i, s) => {
|
|
499
|
+
for (var a = s > 1 ? void 0 : s ? ue(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
477
500
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
478
|
-
return s && a &&
|
|
501
|
+
return s && a && de(e, i, a), a;
|
|
479
502
|
};
|
|
480
503
|
let g = class extends N {
|
|
481
504
|
constructor() {
|
|
482
|
-
super(...arguments), this.localize = new
|
|
505
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
|
|
483
506
|
[o.Pixel]: {
|
|
484
507
|
height: 0,
|
|
485
508
|
percentageHeight: 100,
|
|
@@ -588,7 +611,7 @@ let g = class extends N {
|
|
|
588
611
|
const [s, a] = e.split(":").map(Number);
|
|
589
612
|
if (this.unit === o.Pixel) {
|
|
590
613
|
let r = s, n = a;
|
|
591
|
-
Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } =
|
|
614
|
+
Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = Gt(
|
|
592
615
|
this.maxWidth,
|
|
593
616
|
this.maxHeight,
|
|
594
617
|
s,
|
|
@@ -698,44 +721,44 @@ let g = class extends N {
|
|
|
698
721
|
}
|
|
699
722
|
render() {
|
|
700
723
|
const t = this.cropModes.filter((i) => !i.auto), e = this.cropModes.filter((i) => i.auto);
|
|
701
|
-
return
|
|
724
|
+
return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="crop"></cx-icon></div><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${I({
|
|
702
725
|
width: "100%"
|
|
703
726
|
})} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${tt(
|
|
704
727
|
t,
|
|
705
728
|
(i) => i.value,
|
|
706
|
-
({ label: i, value: s }) =>
|
|
729
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
707
730
|
)}
|
|
708
731
|
${E(
|
|
709
732
|
e.length > 0,
|
|
710
|
-
() =>
|
|
733
|
+
() => A`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
|
|
711
734
|
)}
|
|
712
735
|
${tt(
|
|
713
736
|
e,
|
|
714
737
|
(i) => i.value,
|
|
715
|
-
({ label: i, value: s }) =>
|
|
738
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
716
739
|
)}</cx-select><cx-space spacing="small"><div class="crop__input-group"><cx-input data-testid="cx-asset-link-format-crop-width" placeholder=${this.localize.term("width")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-change=${this.handleInputChange} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
|
|
717
740
|
W
|
|
718
|
-
</cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-crop-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${
|
|
741
|
+
</cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-crop-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${I({
|
|
719
742
|
color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
|
|
720
743
|
})} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-crop-height" placeholder=${this.localize.term("height")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} ?disabled=${this.loading} @cx-change=${this.handleInputChange} @cx-input=${this.handleHeightChange} required><cx-typography slot="prefix" variant="body3" part="input-label">
|
|
721
744
|
H
|
|
722
745
|
</cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-crop-unit" value=${this.unit} hoist class="crop__unit-select" ?disabled=${this.loading} @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space>${E(
|
|
723
746
|
this.focusModes.length > 0,
|
|
724
|
-
() =>
|
|
747
|
+
() => A`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${I({
|
|
725
748
|
width: "100%"
|
|
726
749
|
})} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${tt(
|
|
727
750
|
this.focusModes,
|
|
728
751
|
(i) => i.value,
|
|
729
|
-
({ label: i, value: s }) =>
|
|
752
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
730
753
|
)}</cx-select>`
|
|
731
|
-
)}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${
|
|
754
|
+
)}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${I({
|
|
732
755
|
marginLeft: "auto"
|
|
733
756
|
})} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
734
757
|
}
|
|
735
758
|
};
|
|
736
|
-
g.styles = [U,
|
|
759
|
+
g.styles = [U, pe];
|
|
737
760
|
g.dependencies = {
|
|
738
|
-
"cx-button":
|
|
761
|
+
"cx-button": V,
|
|
739
762
|
"cx-details": Z,
|
|
740
763
|
"cx-divider": Vt,
|
|
741
764
|
"cx-icon": Y,
|
|
@@ -824,15 +847,15 @@ x([
|
|
|
824
847
|
g = x([
|
|
825
848
|
q("cx-asset-link-format-crop")
|
|
826
849
|
], g);
|
|
827
|
-
const
|
|
828
|
-
var
|
|
829
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
850
|
+
const me = O`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
|
|
851
|
+
var fe = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, gt = (t, e, i, s) => {
|
|
852
|
+
for (var a = s > 1 ? void 0 : s ? ge(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
830
853
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
831
|
-
return s && a &&
|
|
854
|
+
return s && a && fe(e, i, a), a;
|
|
832
855
|
};
|
|
833
|
-
let
|
|
856
|
+
let B = class extends N {
|
|
834
857
|
constructor() {
|
|
835
|
-
super(...arguments), this.localize = new
|
|
858
|
+
super(...arguments), this.localize = new L(this), this.value = "", this.items = [];
|
|
836
859
|
}
|
|
837
860
|
handleExtensionChange(t) {
|
|
838
861
|
const e = t.target.value;
|
|
@@ -841,15 +864,15 @@ let V = class extends N {
|
|
|
841
864
|
});
|
|
842
865
|
}
|
|
843
866
|
render() {
|
|
844
|
-
return
|
|
867
|
+
return A`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${tt(
|
|
845
868
|
this.items,
|
|
846
869
|
(t) => t.value,
|
|
847
|
-
(t) =>
|
|
870
|
+
(t) => A`<cx-option value=${t.value}>${t.displayName}</cx-option>`
|
|
848
871
|
)}</cx-select></cx-space>`;
|
|
849
872
|
}
|
|
850
873
|
};
|
|
851
|
-
|
|
852
|
-
|
|
874
|
+
B.styles = [U, me];
|
|
875
|
+
B.dependencies = {
|
|
853
876
|
"cx-option": nt,
|
|
854
877
|
"cx-select": ht,
|
|
855
878
|
"cx-space": D,
|
|
@@ -857,22 +880,22 @@ V.dependencies = {
|
|
|
857
880
|
};
|
|
858
881
|
gt([
|
|
859
882
|
h({ reflect: !0, type: String })
|
|
860
|
-
],
|
|
883
|
+
], B.prototype, "value", 2);
|
|
861
884
|
gt([
|
|
862
885
|
h({ reflect: !1, type: Array })
|
|
863
|
-
],
|
|
864
|
-
|
|
886
|
+
], B.prototype, "items", 2);
|
|
887
|
+
B = gt([
|
|
865
888
|
q("cx-asset-link-format-extension")
|
|
866
|
-
],
|
|
867
|
-
const
|
|
868
|
-
var
|
|
869
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
889
|
+
], B);
|
|
890
|
+
const xe = O`cx-details::part(base){border-bottom-width:0}`;
|
|
891
|
+
var ye = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, H = (t, e, i, s) => {
|
|
892
|
+
for (var a = s > 1 ? void 0 : s ? Se(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
870
893
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
871
|
-
return s && a &&
|
|
894
|
+
return s && a && ye(e, i, a), a;
|
|
872
895
|
};
|
|
873
896
|
let _ = class extends N {
|
|
874
897
|
constructor() {
|
|
875
|
-
super(...arguments), this.localize = new
|
|
898
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
|
|
876
899
|
}
|
|
877
900
|
handleValueChange() {
|
|
878
901
|
this.scopedValue = this.value;
|
|
@@ -916,18 +939,18 @@ let _ = class extends N {
|
|
|
916
939
|
t.target !== this.base && t.stopPropagation();
|
|
917
940
|
}
|
|
918
941
|
render() {
|
|
919
|
-
return
|
|
942
|
+
return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${tt(
|
|
920
943
|
this.items,
|
|
921
944
|
(t) => t.id,
|
|
922
|
-
(t) =>
|
|
923
|
-
)}</cx-select><cx-button data-testid="cx-asset-link-format-proxy-apply" variant="primary" style=${
|
|
945
|
+
(t) => A`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
|
|
946
|
+
)}</cx-select><cx-button data-testid="cx-asset-link-format-proxy-apply" variant="primary" style=${I({
|
|
924
947
|
"margin-left": "auto"
|
|
925
948
|
})} ?disabled=${this.scopedValue === this.value} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
926
949
|
}
|
|
927
950
|
};
|
|
928
|
-
_.styles = [U,
|
|
951
|
+
_.styles = [U, xe];
|
|
929
952
|
_.dependencies = {
|
|
930
|
-
"cx-button":
|
|
953
|
+
"cx-button": V,
|
|
931
954
|
"cx-details": Z,
|
|
932
955
|
"cx-icon": Y,
|
|
933
956
|
"cx-option": nt,
|
|
@@ -935,42 +958,42 @@ _.dependencies = {
|
|
|
935
958
|
"cx-space": D,
|
|
936
959
|
"cx-typography": T
|
|
937
960
|
};
|
|
938
|
-
|
|
961
|
+
H([
|
|
939
962
|
J(".details")
|
|
940
963
|
], _.prototype, "base", 2);
|
|
941
|
-
|
|
964
|
+
H([
|
|
942
965
|
h({ reflect: !0, type: Boolean })
|
|
943
966
|
], _.prototype, "open", 2);
|
|
944
|
-
|
|
967
|
+
H([
|
|
945
968
|
h({ reflect: !0, type: String })
|
|
946
969
|
], _.prototype, "value", 2);
|
|
947
|
-
|
|
970
|
+
H([
|
|
948
971
|
h({ reflect: !1, type: Array })
|
|
949
972
|
], _.prototype, "items", 2);
|
|
950
|
-
|
|
973
|
+
H([
|
|
951
974
|
h({ reflect: !0, type: Boolean })
|
|
952
975
|
], _.prototype, "loading", 2);
|
|
953
|
-
|
|
976
|
+
H([
|
|
954
977
|
v()
|
|
955
978
|
], _.prototype, "scopedValue", 2);
|
|
956
|
-
|
|
979
|
+
H([
|
|
957
980
|
R("value")
|
|
958
981
|
], _.prototype, "handleValueChange", 1);
|
|
959
|
-
|
|
982
|
+
H([
|
|
960
983
|
R("open", { waitUntilFirstUpdate: !0 })
|
|
961
984
|
], _.prototype, "handleOpenChange", 1);
|
|
962
|
-
_ =
|
|
985
|
+
_ = H([
|
|
963
986
|
q("cx-asset-link-format-proxy")
|
|
964
987
|
], _);
|
|
965
|
-
const
|
|
966
|
-
var Ae = Object.defineProperty,
|
|
967
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
988
|
+
const be = O`cx-details::part(base){border-bottom-width:0}`;
|
|
989
|
+
var Ae = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, G = (t, e, i, s) => {
|
|
990
|
+
for (var a = s > 1 ? void 0 : s ? ze(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
968
991
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
969
992
|
return s && a && Ae(e, i, a), a;
|
|
970
993
|
};
|
|
971
994
|
let F = class extends N {
|
|
972
995
|
constructor() {
|
|
973
|
-
super(...arguments), this.localize = new
|
|
996
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
|
|
974
997
|
}
|
|
975
998
|
/**
|
|
976
999
|
* A computed property that checks if the current quality value is invalid.
|
|
@@ -1014,19 +1037,19 @@ let F = class extends N {
|
|
|
1014
1037
|
t.target !== this.base && t.stopPropagation();
|
|
1015
1038
|
}
|
|
1016
1039
|
render() {
|
|
1017
|
-
return
|
|
1040
|
+
return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="blur_on"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("quality")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-quality-tooltip" content=${this.localize.term("qualityHelpText")} hoist><cx-input data-testid="cx-asset-link-format-quality" class="details__checkbox" mask="num" .maskBlocks=${{ num: { mask: Number, max: 100, min: 1 } }} value=${this.scopedValue.toString()} style=${I({
|
|
1018
1041
|
flex: "1"
|
|
1019
1042
|
})} @cx-input=${this.handleQualityChange}></cx-input></cx-tooltip><cx-button data-testid="cx-asset-link-format-quality-apply" variant="primary" ?disabled=${this.invalidValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1020
1043
|
}
|
|
1021
1044
|
};
|
|
1022
|
-
F.styles = [U,
|
|
1045
|
+
F.styles = [U, be];
|
|
1023
1046
|
F.dependencies = {
|
|
1024
|
-
"cx-button":
|
|
1047
|
+
"cx-button": V,
|
|
1025
1048
|
"cx-details": Z,
|
|
1026
1049
|
"cx-icon": Y,
|
|
1027
1050
|
"cx-input": ft,
|
|
1028
1051
|
"cx-space": D,
|
|
1029
|
-
"cx-tooltip":
|
|
1052
|
+
"cx-tooltip": Ht,
|
|
1030
1053
|
"cx-typography": T
|
|
1031
1054
|
};
|
|
1032
1055
|
G([
|
|
@@ -1050,15 +1073,15 @@ G([
|
|
|
1050
1073
|
F = G([
|
|
1051
1074
|
q("cx-asset-link-format-quality")
|
|
1052
1075
|
], F);
|
|
1053
|
-
const we =
|
|
1054
|
-
var
|
|
1055
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1076
|
+
const we = O`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
|
|
1077
|
+
var ve = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, k = (t, e, i, s) => {
|
|
1078
|
+
for (var a = s > 1 ? void 0 : s ? ke(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1056
1079
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1057
|
-
return s && a &&
|
|
1080
|
+
return s && a && ve(e, i, a), a;
|
|
1058
1081
|
};
|
|
1059
|
-
let
|
|
1082
|
+
let z = class extends N {
|
|
1060
1083
|
constructor() {
|
|
1061
|
-
super(...arguments), this.localize = new
|
|
1084
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
|
|
1062
1085
|
[o.Pixel]: { height: 0, width: 0 },
|
|
1063
1086
|
[o.AspectRatio]: { height: 1, width: 1 }
|
|
1064
1087
|
}, this.loading = !1, this.keepAspectRatio = !1, this.invalidWidth = !1, this.invalidHeight = !1, this.aspectRatio = 0;
|
|
@@ -1192,20 +1215,20 @@ let w = class extends N {
|
|
|
1192
1215
|
});
|
|
1193
1216
|
}
|
|
1194
1217
|
render() {
|
|
1195
|
-
return
|
|
1218
|
+
return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="aspect_ratio"></cx-icon></div><cx-typography variant="body2">${this.localize.term("resize")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-space spacing="small"><div class="resize__input-group"><cx-input data-testid="cx-asset-link-format-resize-width" placeholder=${this.localize.term("width")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
|
|
1196
1219
|
W
|
|
1197
|
-
</cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-resize-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${
|
|
1220
|
+
</cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-resize-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${I({
|
|
1198
1221
|
color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
|
|
1199
1222
|
})} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-resize-height" placeholder=${this.localize.term("height")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} @cx-input=${this.handleHeightChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
|
|
1200
1223
|
H
|
|
1201
|
-
</cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-resize-unit" value=${this.unit} hoist class="resize__unit-select" @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space><cx-button data-testid="cx-asset-link-format-resize-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${
|
|
1224
|
+
</cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-resize-unit" value=${this.unit} hoist class="resize__unit-select" @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space><cx-button data-testid="cx-asset-link-format-resize-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${I({
|
|
1202
1225
|
marginLeft: "auto"
|
|
1203
1226
|
})} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1204
1227
|
}
|
|
1205
1228
|
};
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
"cx-button":
|
|
1229
|
+
z.styles = [U, we];
|
|
1230
|
+
z.dependencies = {
|
|
1231
|
+
"cx-button": V,
|
|
1209
1232
|
"cx-details": Z,
|
|
1210
1233
|
"cx-icon": Y,
|
|
1211
1234
|
"cx-icon-button": mt,
|
|
@@ -1217,70 +1240,70 @@ w.dependencies = {
|
|
|
1217
1240
|
};
|
|
1218
1241
|
k([
|
|
1219
1242
|
J(".details")
|
|
1220
|
-
],
|
|
1243
|
+
], z.prototype, "base", 2);
|
|
1221
1244
|
k([
|
|
1222
1245
|
h({ reflect: !0, type: Boolean })
|
|
1223
|
-
],
|
|
1246
|
+
], z.prototype, "open", 2);
|
|
1224
1247
|
k([
|
|
1225
1248
|
h({ reflect: !0, type: Number })
|
|
1226
|
-
],
|
|
1249
|
+
], z.prototype, "width", 2);
|
|
1227
1250
|
k([
|
|
1228
1251
|
h({ reflect: !0, type: Number })
|
|
1229
|
-
],
|
|
1252
|
+
], z.prototype, "height", 2);
|
|
1230
1253
|
k([
|
|
1231
1254
|
h({ attribute: "max-width", reflect: !0, type: Number })
|
|
1232
|
-
],
|
|
1255
|
+
], z.prototype, "maxWidth", 2);
|
|
1233
1256
|
k([
|
|
1234
1257
|
h({ attribute: "max-height", reflect: !0, type: Number })
|
|
1235
|
-
],
|
|
1258
|
+
], z.prototype, "maxHeight", 2);
|
|
1236
1259
|
k([
|
|
1237
1260
|
h({ attribute: "ratio-width", reflect: !0, type: Number })
|
|
1238
|
-
],
|
|
1261
|
+
], z.prototype, "ratioWidth", 2);
|
|
1239
1262
|
k([
|
|
1240
1263
|
h({ attribute: "ratio-height", reflect: !0, type: Number })
|
|
1241
|
-
],
|
|
1264
|
+
], z.prototype, "ratioHeight", 2);
|
|
1242
1265
|
k([
|
|
1243
1266
|
h({ reflect: !0, type: String })
|
|
1244
|
-
],
|
|
1267
|
+
], z.prototype, "unit", 2);
|
|
1245
1268
|
k([
|
|
1246
1269
|
h({ attribute: "last-applied-setting", reflect: !1, type: Object })
|
|
1247
|
-
],
|
|
1270
|
+
], z.prototype, "lastAppliedSetting", 2);
|
|
1248
1271
|
k([
|
|
1249
1272
|
h({ reflect: !0, type: Boolean })
|
|
1250
|
-
],
|
|
1273
|
+
], z.prototype, "loading", 2);
|
|
1251
1274
|
k([
|
|
1252
1275
|
h({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
|
|
1253
|
-
],
|
|
1276
|
+
], z.prototype, "keepAspectRatio", 2);
|
|
1254
1277
|
k([
|
|
1255
1278
|
v()
|
|
1256
|
-
],
|
|
1279
|
+
], z.prototype, "invalidWidth", 2);
|
|
1257
1280
|
k([
|
|
1258
1281
|
v()
|
|
1259
|
-
],
|
|
1282
|
+
], z.prototype, "invalidHeight", 2);
|
|
1260
1283
|
k([
|
|
1261
1284
|
v()
|
|
1262
|
-
],
|
|
1285
|
+
], z.prototype, "aspectRatio", 2);
|
|
1263
1286
|
k([
|
|
1264
1287
|
R("cropMode", { waitUntilFirstUpdate: !0 }),
|
|
1265
1288
|
R("maxWidth", { waitUntilFirstUpdate: !0 }),
|
|
1266
1289
|
R("maxHeight", { waitUntilFirstUpdate: !0 }),
|
|
1267
1290
|
R("keepAspectRatio")
|
|
1268
|
-
],
|
|
1291
|
+
], z.prototype, "handleCropModeChange", 1);
|
|
1269
1292
|
k([
|
|
1270
1293
|
R("open")
|
|
1271
|
-
],
|
|
1272
|
-
|
|
1294
|
+
], z.prototype, "handleOpenChange", 1);
|
|
1295
|
+
z = k([
|
|
1273
1296
|
q("cx-asset-link-format-resize")
|
|
1274
|
-
],
|
|
1275
|
-
const
|
|
1276
|
-
var
|
|
1277
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1297
|
+
], z);
|
|
1298
|
+
const Ce = O`cx-details::part(base){border-bottom-width:0}`;
|
|
1299
|
+
var Re = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, j = (t, e, i, s) => {
|
|
1300
|
+
for (var a = s > 1 ? void 0 : s ? $e(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1278
1301
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1279
|
-
return s && a &&
|
|
1302
|
+
return s && a && Re(e, i, a), a;
|
|
1280
1303
|
};
|
|
1281
1304
|
let M = class extends N {
|
|
1282
1305
|
constructor() {
|
|
1283
|
-
super(...arguments), this.localize = new
|
|
1306
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.value = 0, this.defaultValue = 0, this.loading = !1, this.lastAppliedValue = 0;
|
|
1284
1307
|
}
|
|
1285
1308
|
handleOpenChange() {
|
|
1286
1309
|
this.open || this.emit("cx-asset-link-format-rotation-change", {
|
|
@@ -1288,14 +1311,14 @@ let M = class extends N {
|
|
|
1288
1311
|
});
|
|
1289
1312
|
}
|
|
1290
1313
|
handleRotationChange(t) {
|
|
1291
|
-
const e = t.target.value, i =
|
|
1314
|
+
const e = t.target.value, i = zt(Number(e));
|
|
1292
1315
|
(Number(e) > 360 || Number(e) < -360) && (t.target.value = i.toString()), this.emit("cx-asset-link-format-rotation-change", {
|
|
1293
1316
|
detail: i
|
|
1294
1317
|
});
|
|
1295
1318
|
}
|
|
1296
1319
|
handleButtonClick(t) {
|
|
1297
1320
|
this.emit("cx-asset-link-format-rotation-change", {
|
|
1298
|
-
detail:
|
|
1321
|
+
detail: zt(t)
|
|
1299
1322
|
});
|
|
1300
1323
|
}
|
|
1301
1324
|
handleClockwiseClick() {
|
|
@@ -1315,55 +1338,55 @@ let M = class extends N {
|
|
|
1315
1338
|
});
|
|
1316
1339
|
}
|
|
1317
1340
|
render() {
|
|
1318
|
-
return
|
|
1341
|
+
return A`<cx-details class="details" ?open=${this.open}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="rotate_90_degrees_cw"></cx-icon></div><cx-typography variant="body2">Rotate</cx-typography></cx-space><cx-space spacing="small"><cx-button-group label=${this.localize.term("history")}><cx-icon-button data-testid="cx-asset-link-format-rotation-ccw" name="rotate_90_degrees_ccw" label=${this.localize.term("undo")} outline size="small" ?disabled=${this.loading || this.value === -360} @click=${this.handleCounterClockwiseClick}></cx-icon-button><cx-icon-button data-testid="cx-asset-link-format-rotation-cw" name="rotate_90_degrees_cw" label=${this.localize.term("redo")} outline size="small" ?disabled=${this.loading || this.value === 360} @click=${this.handleClockwiseClick}></cx-icon-button></cx-button-group><cx-input data-testid="cx-asset-link-format-rotation" value=${(this.value + this.defaultValue).toString()} placeholder="0" mask="num" .maskBlocks=${{ num: { mask: Number, max: 360, min: -360, signed: !0 } }} ?disabled=${this.loading} style=${I({
|
|
1319
1342
|
flex: "none",
|
|
1320
1343
|
width: "80px"
|
|
1321
1344
|
})} @cx-input=${this.handleRotationChange}></cx-input><cx-button data-testid="cx-asset-link-format-rotation-apply" variant="primary" ?disabled=${this.value === this.lastAppliedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1322
1345
|
}
|
|
1323
1346
|
};
|
|
1324
|
-
M.styles = [U,
|
|
1347
|
+
M.styles = [U, Ce];
|
|
1325
1348
|
M.dependencies = {
|
|
1326
|
-
"cx-button":
|
|
1327
|
-
"cx-button-group":
|
|
1349
|
+
"cx-button": V,
|
|
1350
|
+
"cx-button-group": Qt,
|
|
1328
1351
|
"cx-details": Z,
|
|
1329
1352
|
"cx-icon": Y,
|
|
1330
1353
|
"cx-icon-button": mt,
|
|
1331
1354
|
"cx-space": D,
|
|
1332
1355
|
"cx-typography": T
|
|
1333
1356
|
};
|
|
1334
|
-
|
|
1357
|
+
j([
|
|
1335
1358
|
J(".details")
|
|
1336
1359
|
], M.prototype, "base", 2);
|
|
1337
|
-
|
|
1360
|
+
j([
|
|
1338
1361
|
h({ reflect: !0, type: Boolean })
|
|
1339
1362
|
], M.prototype, "open", 2);
|
|
1340
|
-
|
|
1363
|
+
j([
|
|
1341
1364
|
h({ reflect: !0, type: Number })
|
|
1342
1365
|
], M.prototype, "value", 2);
|
|
1343
|
-
|
|
1366
|
+
j([
|
|
1344
1367
|
h({ attribute: "default-value", reflect: !0, type: Number })
|
|
1345
1368
|
], M.prototype, "defaultValue", 2);
|
|
1346
|
-
|
|
1369
|
+
j([
|
|
1347
1370
|
h({ reflect: !0, type: Boolean })
|
|
1348
1371
|
], M.prototype, "loading", 2);
|
|
1349
|
-
|
|
1372
|
+
j([
|
|
1350
1373
|
h({ attribute: "last-applied-value", reflect: !0, type: Number })
|
|
1351
1374
|
], M.prototype, "lastAppliedValue", 2);
|
|
1352
|
-
|
|
1375
|
+
j([
|
|
1353
1376
|
R("open", { waitUntilFirstUpdate: !0 })
|
|
1354
1377
|
], M.prototype, "handleOpenChange", 1);
|
|
1355
|
-
M =
|
|
1378
|
+
M = j([
|
|
1356
1379
|
q("cx-asset-link-format-rotation")
|
|
1357
1380
|
], M);
|
|
1358
|
-
const
|
|
1359
|
-
var
|
|
1360
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1381
|
+
const Pe = O`cx-details::part(base){border-bottom-width:0}`;
|
|
1382
|
+
var _e = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, lt = (t, e, i, s) => {
|
|
1383
|
+
for (var a = s > 1 ? void 0 : s ? Me(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1361
1384
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1362
|
-
return s && a &&
|
|
1385
|
+
return s && a && _e(e, i, a), a;
|
|
1363
1386
|
};
|
|
1364
1387
|
let W = class extends N {
|
|
1365
1388
|
constructor() {
|
|
1366
|
-
super(...arguments), this.localize = new
|
|
1389
|
+
super(...arguments), this.localize = new L(this), this.open = !1, this.value = !1;
|
|
1367
1390
|
}
|
|
1368
1391
|
handleApply(t) {
|
|
1369
1392
|
this.emit("cx-asset-link-format-metadata-change", {
|
|
@@ -1387,17 +1410,17 @@ let W = class extends N {
|
|
|
1387
1410
|
t.target !== this.base && t.stopPropagation();
|
|
1388
1411
|
}
|
|
1389
1412
|
render() {
|
|
1390
|
-
return
|
|
1413
|
+
return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="short_text"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("metadata")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-metadata-tooltip" content=${this.localize.term("metadataHelpText")} hoist><cx-checkbox data-testid="cx-asset-link-format-metadata" class="details__checkbox" ?checked=${this.value} @cx-change=${this.handleApply}>${this.localize.term("preserveMetadata")}</cx-checkbox></cx-tooltip></cx-space></cx-details>`;
|
|
1391
1414
|
}
|
|
1392
1415
|
};
|
|
1393
|
-
W.styles = [U,
|
|
1416
|
+
W.styles = [U, Pe];
|
|
1394
1417
|
W.dependencies = {
|
|
1395
|
-
"cx-button":
|
|
1396
|
-
"cx-checkbox":
|
|
1418
|
+
"cx-button": V,
|
|
1419
|
+
"cx-checkbox": Kt,
|
|
1397
1420
|
"cx-details": Z,
|
|
1398
1421
|
"cx-icon": Y,
|
|
1399
1422
|
"cx-space": D,
|
|
1400
|
-
"cx-tooltip":
|
|
1423
|
+
"cx-tooltip": Ht,
|
|
1401
1424
|
"cx-typography": T
|
|
1402
1425
|
};
|
|
1403
1426
|
lt([
|
|
@@ -1412,14 +1435,14 @@ lt([
|
|
|
1412
1435
|
W = lt([
|
|
1413
1436
|
q("cx-asset-link-format-metadata")
|
|
1414
1437
|
], W);
|
|
1415
|
-
var
|
|
1416
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1438
|
+
var Fe = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, d = (t, e, i, s) => {
|
|
1439
|
+
for (var a = s > 1 ? void 0 : s ? Ee(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1417
1440
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1418
|
-
return s && a &&
|
|
1441
|
+
return s && a && Fe(e, i, a), a;
|
|
1419
1442
|
};
|
|
1420
1443
|
let p = class extends N {
|
|
1421
1444
|
constructor() {
|
|
1422
|
-
super(), this.localize = new
|
|
1445
|
+
super(), this.localize = new L(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
|
|
1423
1446
|
{
|
|
1424
1447
|
label: "Free",
|
|
1425
1448
|
value: "free"
|
|
@@ -1504,7 +1527,7 @@ let p = class extends N {
|
|
|
1504
1527
|
}, this.rotation = 0, this.defaultSize = {
|
|
1505
1528
|
height: 0,
|
|
1506
1529
|
width: 0
|
|
1507
|
-
}, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink =
|
|
1530
|
+
}, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink = re, this.apiGetCropFocusMode = le, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
|
|
1508
1531
|
}
|
|
1509
1532
|
/** True when there are transformations beyond the frozen index (i.e. user has added new ones). */
|
|
1510
1533
|
get hasUnfrozenTransformations() {
|
|
@@ -2502,46 +2525,46 @@ let p = class extends N {
|
|
|
2502
2525
|
this.selectedProxy = t ? this.defaultProxy : this.selectedProxy || this.proxies?.[0]?.id || "", this.transformations = [], this.frozenIndex = -1, this.syncQuality();
|
|
2503
2526
|
}
|
|
2504
2527
|
render() {
|
|
2505
|
-
return
|
|
2528
|
+
return A`<div class="asset-link-format" @cx-show=${this.onDetailsShow} @cx-hide=${this.onDetailsHide}>${E(
|
|
2506
2529
|
!this.hideHeader,
|
|
2507
|
-
() =>
|
|
2508
|
-
() =>
|
|
2530
|
+
() => A`<cx-space class="asset-link-format__section-header" direction="horizontal" spacing="small" align-items="center" justify-content="space-between"><cx-typography variant="body3">${this.localize.term("transformations")}</cx-typography><cx-space direction="horizontal" spacing="3x-small" align-items="center"><cx-button class="asset-link-format__undo" variant="custom" ?disabled=${!this.hasUnfrozenTransformations && this.preResetTransformations === void 0} @click=${this.handleUndo}>${this.localize.term("undo")}</cx-button>${E(this.canReset, () => A`<cx-button class="asset-link-format__reset" variant="custom" ?disabled=${this.transformations.length === 0} @click=${this.handleReset}>${this.localize.term("reset")}</cx-button>`)}</cx-space></cx-space>`,
|
|
2531
|
+
() => qt
|
|
2509
2532
|
)}
|
|
2510
2533
|
${E(
|
|
2511
2534
|
!this.noFormat,
|
|
2512
|
-
() =>
|
|
2535
|
+
() => A`<cx-asset-link-format-proxy class="asset-link-format__details" value=${this.selectedProxy || this.proxies?.[0]?.id || ""} ?open=${this.activeSetting === "cx-asset-link-format-proxy"} .items=${this.formats} ?loading=${this.loading && this.lastAction === c.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy>`
|
|
2513
2536
|
)}
|
|
2514
2537
|
${E(
|
|
2515
2538
|
!this.noCrop,
|
|
2516
|
-
() =>
|
|
2539
|
+
() => A`<cx-asset-link-format-crop class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-crop"} ?disabled-apply=${this.disabledCropApply} ?loading=${this.loading && this.lastAction === c.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} focus-mode=${this.cropSize.focusMode} crop-mode=${this.cropSize.cropMode} width=${this.cropSize.width} height=${this.cropSize.height} max-width=${this.asset ? this.lastResizeSize[o.Pixel].width : 1 / 0} max-height=${this.asset ? this.lastResizeSize[o.Pixel].height : 1 / 0} percentage-width=${this.cropSize.percentageWidth} percentage-height=${this.cropSize.percentageHeight} ratio-width=${this.cropSize.ratioWidth} ratio-height=${this.cropSize.ratioHeight} unit=${this.cropSize.unit} .lastAppliedSetting=${this.lastCropSize} .cropModes=${this.cropModes} .focusModes=${this.focusModes} @cx-asset-link-format-crop-mode-change=${this.onCropModeChange} @cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange} @cx-asset-link-format-crop-change=${this.onCropChange} @cx-asset-link-format-crop-changed=${this.onCropChanged} @cx-asset-link-format-crop-apply=${this.onCropApply}></cx-asset-link-format-crop>`
|
|
2517
2540
|
)}
|
|
2518
2541
|
${E(
|
|
2519
2542
|
!this.noResize,
|
|
2520
|
-
() =>
|
|
2543
|
+
() => A`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === c.Resize} ?keep-aspect-ratio=${this.resizeSize.keepAspectRatio} width=${this.resizeSize.width} height=${this.resizeSize.height} max-width=${this.asset ? this.imageSize.width : 1 / 0} max-height=${this.asset ? this.imageSize.height : 1 / 0} ratio-width=${this.resizeSize.ratioWidth} ratio-height=${this.resizeSize.ratioHeight} unit=${this.resizeSize.unit} .lastAppliedSetting=${this.lastResizeSize} @cx-asset-link-format-resize-change=${this.onResizeChange} @cx-asset-link-format-resize-apply=${this.onResizeApply}></cx-asset-link-format-resize>`
|
|
2521
2544
|
)}
|
|
2522
2545
|
${E(
|
|
2523
2546
|
!this.noRotate,
|
|
2524
|
-
() =>
|
|
2547
|
+
() => A`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Rotate} ?open=${this.activeSetting === "cx-asset-link-format-rotation"} default-value=${this.selectedFormat?.rotation ?? 0} last-applied-value=${this.lastRotation} value=${this.rotation} @cx-asset-link-format-rotation-change=${this.onRotationChange} @cx-asset-link-format-rotation-apply=${this.onRotationApply}></cx-asset-link-format-rotation>`
|
|
2525
2548
|
)}<cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Quality} ?open=${this.activeSetting === "cx-asset-link-format-quality"} value=${this.selectedFormat?.quality ?? 100} @cx-asset-link-format-quality-change=${this.onQualityChange}></cx-asset-link-format-quality>${E(
|
|
2526
2549
|
!this.noMetadata,
|
|
2527
|
-
() =>
|
|
2550
|
+
() => A`<cx-asset-link-format-metadata class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-metadata"} .value=${this.selectedFormat?.keepMetadata ?? !1} @cx-asset-link-format-metadata-change=${this.onMetadataChange}></cx-asset-link-format-metadata>`
|
|
2528
2551
|
)}
|
|
2529
2552
|
${E(
|
|
2530
2553
|
this.useCustomExtension,
|
|
2531
|
-
() =>
|
|
2554
|
+
() => A`<cx-asset-link-format-extension .items=${this.extensions} value=${this.selectedFormat?.extension ?? ""} @cx-asset-link-format-extension-change=${this.onExtensionChange}></cx-asset-link-format-extension>`
|
|
2532
2555
|
)}</div>`;
|
|
2533
2556
|
}
|
|
2534
2557
|
};
|
|
2535
|
-
p.styles = [U,
|
|
2558
|
+
p.styles = [U, ce];
|
|
2536
2559
|
p.dependencies = {
|
|
2537
2560
|
"cx-asset-link-format-crop": g,
|
|
2538
|
-
"cx-asset-link-format-extension":
|
|
2561
|
+
"cx-asset-link-format-extension": B,
|
|
2539
2562
|
"cx-asset-link-format-metadata": W,
|
|
2540
2563
|
"cx-asset-link-format-proxy": _,
|
|
2541
2564
|
"cx-asset-link-format-quality": F,
|
|
2542
|
-
"cx-asset-link-format-resize":
|
|
2565
|
+
"cx-asset-link-format-resize": z,
|
|
2543
2566
|
"cx-asset-link-format-rotation": M,
|
|
2544
|
-
"cx-button":
|
|
2567
|
+
"cx-button": V,
|
|
2545
2568
|
"cx-space": D,
|
|
2546
2569
|
"cx-typography": T
|
|
2547
2570
|
};
|
|
@@ -2664,20 +2687,21 @@ export {
|
|
|
2664
2687
|
ut as D,
|
|
2665
2688
|
Pt as F,
|
|
2666
2689
|
X as O,
|
|
2667
|
-
|
|
2690
|
+
yi as a,
|
|
2668
2691
|
_t as b,
|
|
2669
2692
|
vt as c,
|
|
2670
|
-
|
|
2693
|
+
xi as d,
|
|
2671
2694
|
kt as e,
|
|
2672
|
-
|
|
2695
|
+
ie as f,
|
|
2673
2696
|
Wt as g,
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2697
|
+
bi as h,
|
|
2698
|
+
Ai as i,
|
|
2699
|
+
Si as j,
|
|
2700
|
+
Tt as k,
|
|
2701
|
+
at as l,
|
|
2702
|
+
Ct as m,
|
|
2703
|
+
Rt as n,
|
|
2704
|
+
Mt as o,
|
|
2705
|
+
Zt as p,
|
|
2706
|
+
Xt as u
|
|
2683
2707
|
};
|