@orangelogic/design-system 4.69.0 → 5.0.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/{block-width.CSyA0Dwe.js → block-width.ClbkbtKA.js} +1 -1
- package/library/chunks/{config-manager.BFqNZV0l.js → config-manager.B6c9XW1s.js} +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/types.js +22 -36
- package/library/package.json +1 -1
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.d.ts +5 -13
- package/package.json +1 -1
- package/library/chunks/{src.DKhoCHMa.js → src.-wSEUjRV.js} +1 -1
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.Bv06U7NJ.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.-wSEUjRV.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as le } from "./debounce.Ci-xdsHE.js";
|
|
21
21
|
import { t as b } from "./button.DKkHqsUz.js";
|
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.DKkHqsUz.js";
|
|
15
15
|
import { t as ee } from "./tooltip.Cc02vm6M.js";
|
|
16
16
|
import { t as te } from "./line-clamp.Dl3_JdHX.js";
|
|
17
|
-
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.
|
|
17
|
+
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.ClbkbtKA.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -8,7 +8,7 @@ import { t as c } from "../chunks/alert.2Esbser8.js";
|
|
|
8
8
|
import { t as l } from "../chunks/am-chart.COOKOvT1.js";
|
|
9
9
|
import { t as u } from "../chunks/animated-image.w6VdagCh.js";
|
|
10
10
|
import { t as d } from "../chunks/animation.CRLxJUWm.js";
|
|
11
|
-
import { n as f, r as p, t as m } from "../chunks/src.
|
|
11
|
+
import { n as f, r as p, t as m } from "../chunks/src.-wSEUjRV.js";
|
|
12
12
|
import { t as h } from "../chunks/button.DKkHqsUz.js";
|
|
13
13
|
import { t as g } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
14
14
|
import { t as _ } from "../chunks/tooltip.Cc02vm6M.js";
|
|
@@ -58,8 +58,8 @@ import oe from "./format-date.js";
|
|
|
58
58
|
import se from "./format-number.js";
|
|
59
59
|
import { t as ce } from "../chunks/format-time.QkJcKYrT.js";
|
|
60
60
|
import { t as le } from "../chunks/grid.CK4PRwur.js";
|
|
61
|
-
import { t as ue } from "../chunks/
|
|
62
|
-
import { t as de } from "../chunks/
|
|
61
|
+
import { t as ue } from "../chunks/grid-item.CSieaU5T.js";
|
|
62
|
+
import { t as de } from "../chunks/header.CowQINf-.js";
|
|
63
63
|
import { t as fe } from "../chunks/hub-connection.C0CASy-Q.js";
|
|
64
64
|
import { t as pe } from "../chunks/iframe.sl2wnUcC.js";
|
|
65
65
|
import { t as me } from "../chunks/image-comparer.BCD6kzLm.js";
|
|
@@ -86,4 +86,4 @@ import { t as Pe } from "../chunks/switch.BM9msK5T.js";
|
|
|
86
86
|
import { t as Fe } from "../chunks/timecode.DjI1OTXD.js";
|
|
87
87
|
import { a as Ie, i as Le } from "../chunks/tree.BI7r-WnZ.js";
|
|
88
88
|
import { n as Re } from "../chunks/video.DWmHPbXO.js";
|
|
89
|
-
export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio, C as CxAvatar, w as CxBadge, T as CxBox, E as CxBreadcrumb, D as CxBreadcrumbItem, h as CxButton, O as CxButtonGroup, k as CxCard, A as CxCheckbox, U as CxColorPicker, W as CxCopyButton, G as CxDateCalendar, K as CxDetails, q as CxDialog, Y as CxDiff, J as CxDivider, Q as CxDocumentViewer, te as CxDotPagination, ne as CxDotStatus, X as CxDrawer, j as CxDropdown, re as CxEChart, ie as CxElementClamp, ae as CxFormatBytes, oe as CxFormatDate, se as CxFormatNumber, ce as CxFormatTime, le as CxGrid,
|
|
89
|
+
export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio, C as CxAvatar, w as CxBadge, T as CxBox, E as CxBreadcrumb, D as CxBreadcrumbItem, h as CxButton, O as CxButtonGroup, k as CxCard, A as CxCheckbox, U as CxColorPicker, W as CxCopyButton, G as CxDateCalendar, K as CxDetails, q as CxDialog, Y as CxDiff, J as CxDivider, Q as CxDocumentViewer, te as CxDotPagination, ne as CxDotStatus, X as CxDrawer, j as CxDropdown, re as CxEChart, ie as CxElementClamp, ae as CxFormatBytes, oe as CxFormatDate, se as CxFormatNumber, ce as CxFormatTime, le as CxGrid, ue as CxGridItem, de as CxHeader, fe as CxHubConnection, o as CxIcon, a as CxIconButton, pe as CxIframe, $ as CxImage, me as CxImageComparer, he as CxInclude, M as CxInput, ge as CxInputGroup, v as CxLineClamp, _e as CxMarkdown, N as CxMenu, P as CxMenuItem, ve as CxMenuLabel, ye as CxMenuSection, be as CxMutationObserver, I as CxOption, xe as CxPagination, e as CxPopup, Z as CxProgressBar, Se as CxProgressRing, Ce as CxQrCode, we as CxRadio, Te as CxRadioButton, Ee as CxRadioCard, De as CxRadioGroup, Oe as CxRange, ke as CxRating, Ae as CxRelativeTime, g as CxResizeObserver, R as CxSelect, ee as CxSkeleton, L as CxSpace, s as CxSpinner, je as CxSplitPanel, Me as CxStep, Ne as CxStepper, Pe as CxSwitch, z as CxTab, B as CxTabGroup, V as CxTabPanel, y as CxTag, F as CxTextarea, Fe as CxTimecode, _ as CxTooltip, Le as CxTree, Ie as CxTreeItem, x as CxTypography, Re as CxVideo, H as CxVisuallyHidden, t as componentStyles, m as fontAwesomeIconNames, i as getAnimation, f as getAnimationNames, p as getEasingNames, n as setAnimation, r as setDefaultAnimation };
|
|
@@ -24,7 +24,7 @@ import { t as ue } from "../chunks/alert.2Esbser8.js";
|
|
|
24
24
|
import { t as de } from "../chunks/am-chart.COOKOvT1.js";
|
|
25
25
|
import { t as fe } from "../chunks/animated-image.w6VdagCh.js";
|
|
26
26
|
import { t as I } from "../chunks/animation.CRLxJUWm.js";
|
|
27
|
-
import { n as pe, r as me, t as he } from "../chunks/src.
|
|
27
|
+
import { n as pe, r as me, t as he } from "../chunks/src.-wSEUjRV.js";
|
|
28
28
|
import { t as ge } from "../chunks/style-map.DPGQIxip.js";
|
|
29
29
|
import { a as _e, c as ve, d as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee, u as De } from "../chunks/browser.gIznFIix.js";
|
|
30
30
|
import { t as Oe } from "../chunks/debounce.Ci-xdsHE.js";
|
|
@@ -38,7 +38,7 @@ import { t as Nt } from "../chunks/tooltip.Cc02vm6M.js";
|
|
|
38
38
|
import { t as Pt } from "../chunks/line-clamp.Dl3_JdHX.js";
|
|
39
39
|
import { t as Ft } from "../chunks/tag.DQLauctm.js";
|
|
40
40
|
import { t as It } from "../chunks/array-line-clamp.C0Vo0Zzg.js";
|
|
41
|
-
import { C as Lt, S as Rt, _ as zt, b as Bt, g as Vt, h as Ht, o as Ut, r as Wt, s as Gt, t as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "../chunks/block-width.
|
|
41
|
+
import { C as Lt, S as Rt, _ as zt, b as Bt, g as Vt, h as Ht, o as Ut, r as Wt, s as Gt, t as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "../chunks/block-width.ClbkbtKA.js";
|
|
42
42
|
import { n as Zt, t as Qt } from "../chunks/position-picker.dY_vgF_H.js";
|
|
43
43
|
import { a as $t, i as en, n as tn, o as nn, r as rn, s as an, t as on } from "../chunks/src.BJhIYoMP.js";
|
|
44
44
|
import { a as sn, c as cn, i as ln, n as un, o as dn, r as fn, t as pn, u as mn } from "../chunks/time.p1t0NCwj.js";
|
|
@@ -115,8 +115,8 @@ import Go from "./format-date.js";
|
|
|
115
115
|
import Ko from "./format-number.js";
|
|
116
116
|
import { t as qo } from "../chunks/format-time.QkJcKYrT.js";
|
|
117
117
|
import { t as Jo } from "../chunks/grid.CK4PRwur.js";
|
|
118
|
-
import { t as Yo } from "../chunks/
|
|
119
|
-
import { t as Xo } from "../chunks/
|
|
118
|
+
import { t as Yo } from "../chunks/grid-item.CSieaU5T.js";
|
|
119
|
+
import { t as Xo } from "../chunks/header.CowQINf-.js";
|
|
120
120
|
import { n as Zo, r as Qo, t as $o } from "../chunks/hub-connection.C0CASy-Q.js";
|
|
121
121
|
import { n as es, t as ts } from "../chunks/iframe.sl2wnUcC.js";
|
|
122
122
|
import { t as ns } from "../chunks/image-comparer.BCD6kzLm.js";
|
|
@@ -27052,7 +27052,7 @@ var uO = lO, dO = /* @__PURE__ */ function(e) {
|
|
|
27052
27052
|
}({}), Nse = i`:host{--page-outline-item-padding:var(--cx-spacing-x-small) 0;--underline-offset:3px;--underline-thickness:1px;--underline-style:dashed;display:block}.page-outline__list{padding:0 var(--cx-spacing-x-small);border-left:2px solid color-mix(in srgb, var(--page-outline-item-hover-color,var(--cx-color-neutral-600)), transparent 80%);list-style:none;position:relative}.page-outline__indicator{background-color:var(--page-outline-item-hover-color,var(--cx-color-primary));width:2px;margin-left:-2px;transition:transform .3s ease-in-out,height .3s ease-in-out;position:absolute;top:0;left:0}.page-outline__item{width:fit-content;height:fit-content;padding:var(--page-outline-item-padding);color:var(--page-outline-item-color,var(--cx-color-neutral-600));align-items:center;display:flex}.page-outline__item:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.page-outline__item--click{cursor:pointer}.page-outline__item-text::part(base){text-decoration-line:underline;text-decoration-style:var(--underline-style);text-decoration-thickness:var(--underline-thickness);text-underline-offset:var(--underline-offset);line-height:1.5em;text-decoration-color:#0000}.page-outline__item-text::part(content){word-break:break-word}.page-outline__item-text--underline::part(base){text-decoration-color:var(--page-outline-item-color,var(--cx-color-neutral-600))}.page-outline__item:hover,.page-outline__item--click:hover{color:var(--page-outline-item-hover-color,var(--cx-color-primary))}.page-outline__item:hover .page-outline__item-text::part(base),.page-outline__item:hover .page-outline__item-text--underline::part(base){color:var(--page-outline-item-hover-color,var(--cx-color-primary));text-decoration-color:var(--page-outline-item-hover-color,var(--cx-color-primary))}.page-outline__item--active,.page-outline__item--active:hover{color:var(--page-outline-item-hover-color,var(--cx-color-primary))}.page-outline__item--active .page-outline__item-text--active::part(base),.page-outline__item--active .page-outline__item-text--underline::part(base),.page-outline__item--active:hover .page-outline__item-text--active::part(base),.page-outline__item--active:hover .page-outline__item-text--underline::part(base){color:var(--page-outline-item-hover-color,var(--cx-color-primary));text-decoration-color:var(--page-outline-item-hover-color,var(--cx-color-primary))}`, fO = class extends d {
|
|
27053
27053
|
static #e = this.styles = [g, Nse];
|
|
27054
27054
|
static #t = this.dependencies = {
|
|
27055
|
-
"cx-header":
|
|
27055
|
+
"cx-header": Xo,
|
|
27056
27056
|
"cx-line-clamp": Pt,
|
|
27057
27057
|
"cx-resize-observer": Mt,
|
|
27058
27058
|
"cx-typography": In
|
|
@@ -27105,7 +27105,7 @@ var uO = lO, dO = /* @__PURE__ */ function(e) {
|
|
|
27105
27105
|
}
|
|
27106
27106
|
observeRootMutations() {
|
|
27107
27107
|
this.rootObserver?.disconnect(), this.rootObserver = new MutationObserver((e) => {
|
|
27108
|
-
let t = e.some((e) => e.type === "childList" && (e.addedNodes.length || e.removedNodes.length)), n = e.some((e) => e.type === "attributes" && e.attributeName === "aria-level" && e.target instanceof
|
|
27108
|
+
let t = e.some((e) => e.type === "childList" && (e.addedNodes.length || e.removedNodes.length)), n = e.some((e) => e.type === "attributes" && e.attributeName === "aria-level" && e.target instanceof Xo && e.target.isConnected && e.target.getAttribute("aria-level"));
|
|
27109
27109
|
(t || n) && this.extractHeadings();
|
|
27110
27110
|
}), this.rootObserver.observe(this.root, {
|
|
27111
27111
|
attributeFilter: ["aria-level"],
|
|
@@ -27279,7 +27279,7 @@ var Pse = fO, Fse = [
|
|
|
27279
27279
|
breakpoint: 165,
|
|
27280
27280
|
name: "pageNumber"
|
|
27281
27281
|
}
|
|
27282
|
-
], Ise = i`:host{--cx-draw-panel-min-width:240px;--cx-draw-panel-padding:5px;--cx-draw-panel-slider-width:45%;--cx-draw-panel-button-height:calc(var(--cx-font-size-large) + 2 * var(--cx-spacing-2x-small));display:inline-block}.draw-trigger::part(base){height:var(--cx-draw-panel-button-height)
|
|
27282
|
+
], Ise = i`:host{--cx-draw-panel-min-width:240px;--cx-draw-panel-padding:5px;--cx-draw-panel-slider-width:45%;--cx-draw-panel-button-height:calc(var(--cx-font-size-large) + 2 * var(--cx-spacing-2x-small));display:inline-block}.draw-trigger::part(base){height:var(--cx-draw-panel-button-height)}.draw-trigger:not(.draw-trigger--active){--background-color:transparent;--color:var(--cx-color-neutral-600)}.draw-trigger--active{--background-color:var(--cx-color-primary)}.draw-panel{min-width:var(--cx-draw-panel-min-width)}.draw-panel cx-menu{--font-size:16px;padding-block:0;padding:var(--cx-draw-panel-padding) 0;background:0 0;border:none}.draw-params{padding:var(--cx-draw-panel-padding) var(--cx-spacing-small);color:var(--cx-color-neutral);overflow:hidden}.draw-params__slider{max-width:var(--cx-draw-panel-slider-width);flex:auto;margin-inline-end:var(--cx-spacing-small,12px)}.draw-params__slider::part(base){margin:0}.draw-divider{--padding:0px}`, mO, hO = class extends d {
|
|
27283
27283
|
static #e = mO = this;
|
|
27284
27284
|
static #t = this.styles = [g, Ise];
|
|
27285
27285
|
static #n = this.dependencies = {
|
|
@@ -27305,9 +27305,6 @@ var Pse = fO, Fse = [
|
|
|
27305
27305
|
let e = this.getRootNode();
|
|
27306
27306
|
return e instanceof ShadowRoot ? e.host : null;
|
|
27307
27307
|
}
|
|
27308
|
-
runFirstUpdated() {
|
|
27309
|
-
this.syncDismissBoundary();
|
|
27310
|
-
}
|
|
27311
27308
|
runConnectedCallback() {
|
|
27312
27309
|
document.addEventListener("mousedown", this.handleDocumentPointerDown);
|
|
27313
27310
|
}
|
|
@@ -27321,22 +27318,15 @@ var Pse = fO, Fse = [
|
|
|
27321
27318
|
let { toolbarHost: n } = this;
|
|
27322
27319
|
n && t.includes(n) && this.stopDrawing();
|
|
27323
27320
|
}
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
}
|
|
27327
|
-
syncDismissBoundary() {
|
|
27328
|
-
let { dropdown: e } = this;
|
|
27329
|
-
e && (e.containingElement = this.isDrawActive ? document.body : e);
|
|
27321
|
+
willUpdate(e) {
|
|
27322
|
+
super.willUpdate(e), e.has("activeAnnotationMode") && this.handleActiveModeChange();
|
|
27330
27323
|
}
|
|
27331
|
-
|
|
27332
|
-
this.isDrawActive && this.
|
|
27324
|
+
handleActiveModeChange() {
|
|
27325
|
+
!this.isDrawActive && this.#r && this.dropdown?.hide(), this.#r = !1;
|
|
27333
27326
|
}
|
|
27334
27327
|
stopDrawing() {
|
|
27335
27328
|
this.#r = !0, this.emit("cx-pdf-viewer-annotation-draw-mode-change", { detail: { mode: "none" } });
|
|
27336
27329
|
}
|
|
27337
|
-
handleDropdownHide() {
|
|
27338
|
-
this.isDrawActive && !this.#r && this.dropdown?.show(), this.#r = !1;
|
|
27339
|
-
}
|
|
27340
27330
|
handleShapeSelect(e) {
|
|
27341
27331
|
this.emit("cx-pdf-viewer-annotation-draw-mode-change", { detail: { mode: e.detail.item.value } });
|
|
27342
27332
|
}
|
|
@@ -27386,10 +27376,11 @@ var Pse = fO, Fse = [
|
|
|
27386
27376
|
];
|
|
27387
27377
|
}
|
|
27388
27378
|
render() {
|
|
27389
|
-
|
|
27379
|
+
let e = mO.getShapeOptions(this.localize), t = e.find((e) => e.mode === this.activeAnnotationMode)?.icon ?? "draw";
|
|
27380
|
+
return r`<cx-dropdown placement="bottom-end" stay-open-on-select hoist ?disabled=${this.drawButtonDisabled}><cx-button class=${j({
|
|
27390
27381
|
"draw-trigger": !0,
|
|
27391
27382
|
"draw-trigger--active": this.isDrawActive
|
|
27392
|
-
})} slot="trigger" size="small" caret caret-direction="down" width-type="hug" label=${this.localize.term("draw")} ?disabled=${this.drawButtonDisabled} variant="custom"
|
|
27383
|
+
})} slot="trigger" size="small" caret caret-direction="down" width-type="hug" label=${this.localize.term("draw")} ?disabled=${this.drawButtonDisabled} variant="custom"><cx-icon slot="prefix" name=${t} aria-hidden="true"></cx-icon></cx-button><cx-space class="draw-panel" part="panel" direction="vertical" spacing="3x-small"><cx-menu @cx-select=${this.handleShapeSelect}>${ar(e, (e) => e.mode, (e) => r`<cx-menu-item value=${e.mode} type="checkbox" ?checked=${this.activeAnnotationMode === e.mode} check-placement="suffix">${e.label}<cx-icon size="small" slot="prefix" name=${e.icon} aria-hidden="true"></cx-icon></cx-menu-item>`)}</cx-menu><cx-divider class="draw-divider" use-padding></cx-divider><cx-space class="draw-params" direction="vertical" spacing="x-small"><cx-space class="draw-params__row" align-items="center" justify-content="space-between" spacing="small"><cx-typography variant=${Fn.Small}>${this.localize.term("color")}</cx-typography><cx-color-picker hoist variant="button" size="small" value=${this.drawColor} @cx-change=${this.handleColorChange}></cx-color-picker></cx-space><cx-space class="draw-params__row" align-items="center" justify-content="space-between" spacing="small"><cx-typography variant=${Fn.Small}>${this.localize.term("thickness")}</cx-typography><cx-range class="draw-params__slider" min="1" max="20" .value=${this.drawThickness} @cx-change=${this.handleThicknessChange}></cx-range></cx-space><cx-space class="draw-params__row" align-items="center" justify-content="space-between" spacing="small"><cx-typography variant=${Fn.Small}>${this.localize.term("opacity")}</cx-typography><cx-range class="draw-params__slider" min="1" max="100" .value=${this.drawOpacity} @cx-change=${this.handleOpacityChange}></cx-range></cx-space></cx-space></cx-space></cx-dropdown>`;
|
|
27393
27384
|
}
|
|
27394
27385
|
};
|
|
27395
27386
|
l([s({
|
|
@@ -27405,12 +27396,7 @@ l([s({
|
|
|
27405
27396
|
}), u("design:type", Object)], hO.prototype, "drawThickness", void 0), l([s({
|
|
27406
27397
|
attribute: "draw-opacity",
|
|
27407
27398
|
type: Number
|
|
27408
|
-
}), u("design:type", Object)], hO.prototype, "drawOpacity", void 0), l([p("cx-dropdown"), u("design:type", cr === void 0 ? Object : cr)], hO.prototype, "dropdown", void 0), l([
|
|
27409
|
-
A("activeAnnotationMode", { waitUntilFirstUpdate: !0 }),
|
|
27410
|
-
u("design:type", Function),
|
|
27411
|
-
u("design:paramtypes", []),
|
|
27412
|
-
u("design:returntype", void 0)
|
|
27413
|
-
], hO.prototype, "handleActiveModeChange", null), hO = mO = l([C("cx-pdf-viewer-annotation-draw"), u("design:paramtypes", [])], hO);
|
|
27399
|
+
}), u("design:type", Object)], hO.prototype, "drawOpacity", void 0), l([p("cx-dropdown"), u("design:type", cr === void 0 ? Object : cr)], hO.prototype, "dropdown", void 0), hO = mO = l([C("cx-pdf-viewer-annotation-draw"), u("design:paramtypes", [])], hO);
|
|
27414
27400
|
var Lse = hO, Rse = i`:host{margin-inline-end:var(--cx-spacing-2x-small);display:inline-block}.pdf-viewer-more-options__trigger{--cx-focus-ring-offset:-2px;--background-color:transparent;--color:var(--cx-color-neutral-600)}`, gO = class extends d {
|
|
27415
27401
|
constructor(...e) {
|
|
27416
27402
|
super(...e), this.localize = new T(this), this.cursorTool = "select", this.scrollMode = "vertical", this.spreadMode = "none";
|
|
@@ -34178,7 +34164,7 @@ var jP = class extends d {
|
|
|
34178
34164
|
"cx-button": Ae,
|
|
34179
34165
|
"cx-card": Wn,
|
|
34180
34166
|
"cx-grid": Jo,
|
|
34181
|
-
"cx-grid-item":
|
|
34167
|
+
"cx-grid-item": Yo,
|
|
34182
34168
|
"cx-icon": ce,
|
|
34183
34169
|
"cx-input": pr,
|
|
34184
34170
|
"cx-option": xr,
|
|
@@ -77005,7 +76991,7 @@ var z$ = qz.nu, Fge = i`.block-picker{--width:80%}.block-picker__card{min-height
|
|
|
77005
76991
|
"cx-dialog": Oa,
|
|
77006
76992
|
"cx-dropdown": cr,
|
|
77007
76993
|
"cx-grid": Jo,
|
|
77008
|
-
"cx-grid-item":
|
|
76994
|
+
"cx-grid-item": Yo,
|
|
77009
76995
|
"cx-icon": ce,
|
|
77010
76996
|
"cx-line-clamp": Pt,
|
|
77011
76997
|
"cx-menu": mr,
|
|
@@ -91500,7 +91486,7 @@ var H3 = V3, Twe = i`.image-dialog{--width:max-content}.image-dialog__col{width:
|
|
|
91500
91486
|
"cx-color-picker": Vr,
|
|
91501
91487
|
"cx-dialog": Oa,
|
|
91502
91488
|
"cx-grid": Jo,
|
|
91503
|
-
"cx-grid-item":
|
|
91489
|
+
"cx-grid-item": Yo,
|
|
91504
91490
|
"cx-image": Io,
|
|
91505
91491
|
"cx-input": pr,
|
|
91506
91492
|
"cx-line-clamp": Pt,
|
|
@@ -95219,7 +95205,7 @@ var D5 = class extends d {
|
|
|
95219
95205
|
return this.mappedSupportedLanguages.length > 1;
|
|
95220
95206
|
}
|
|
95221
95207
|
ensureConfigUi() {
|
|
95222
|
-
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.
|
|
95208
|
+
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.B6c9XW1s.js"), import("../chunks/configs-controller.TQDPq63n.js").then((e) => e.n)]).then(async ([, e]) => {
|
|
95223
95209
|
this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
|
|
95224
95210
|
});
|
|
95225
95211
|
}
|
|
@@ -110267,7 +110253,7 @@ var F9 = ({ characterLimit: e, slice: t, state: n }) => {
|
|
|
110267
110253
|
"cx-divider": Aa,
|
|
110268
110254
|
"cx-dropdown": cr,
|
|
110269
110255
|
"cx-grid": Jo,
|
|
110270
|
-
"cx-grid-item":
|
|
110256
|
+
"cx-grid-item": Yo,
|
|
110271
110257
|
"cx-icon": ce,
|
|
110272
110258
|
"cx-icon-button": oe,
|
|
110273
110259
|
"cx-input": pr,
|
|
@@ -111177,7 +111163,7 @@ var iAe = W9, aAe = i`:host{gap:var(--cx-spacing-2x-small);padding:var(--cx-spac
|
|
|
111177
111163
|
"cx-divider": Aa,
|
|
111178
111164
|
"cx-dynamic-select": Ws,
|
|
111179
111165
|
"cx-grid": Jo,
|
|
111180
|
-
"cx-grid-item":
|
|
111166
|
+
"cx-grid-item": Yo,
|
|
111181
111167
|
"cx-icon": ce,
|
|
111182
111168
|
"cx-icon-button": oe,
|
|
111183
111169
|
"cx-input": pr,
|
|
@@ -111908,4 +111894,4 @@ l([s({ type: String }), u("design:type", Object)], $9.prototype, "value", void 0
|
|
|
111908
111894
|
], $9.prototype, "handleValueChange", null), $9 = Q9 = l([C("cx-xml-editor")], $9);
|
|
111909
111895
|
var fAe = $9;
|
|
111910
111896
|
//#endregion
|
|
111911
|
-
export { ha as AUTO_FALLBACK_FORMAT, Hi as AUTO_FORMAT_EXTENSION, na as AUTO_ORIGINAL_FORMAT_MAX_BYTES, lo as CMYK_VALIDATION_REGEX, si as CalendarGrid, io as ColorType, on as CornerPosition, d as CortexElement, di as CortexPopupController, Mee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Ku as CxAnnotator, Ple as CxAnnotatorComment, It as CxArrayLineClamp, $u as CxAssetDataDisplay, zt as CxAssetFormatPicker, _c as CxAssetLinkFormat, Rt as CxAssetPicker, Vt as CxAssetTransformationDialog, Ln as CxAudio, Rn as CxAvatar, zn as CxBadge, Qle as CxBentoGrid, Is as CxBicolorPicker, Ls as CxBorderInputGroup, Bn as CxBox, Vn as CxBreadcrumb, Hn as CxBreadcrumbItem, Ae as CxButton, Un as CxButtonGroup, pue as CxCapacityPlanner, Wn as CxCard, rF as CxCarousel, Nz as CxChartPlanBuilder, YR as CxChatbot, Gn as CxCheckbox, zz as CxClusterManagement, Vr as CxColorPicker, Rs as CxColorSwatch, wc as CxColorSwatchGroup, sP as CxComment, Uz as CxCommentV1, zs as CxConfirmPopover, BEe as CxContentBuilder, XEe as CxContentBuilderViewer, Hr as CxCopyButton, Bs as CxCornerPositionInputGroup, Vs as CxCropper, Ut as CxDamCustomToolbarButtonsEditor, Ile as CxDashboardFilter, nd as CxDashboardIframe, Vle as CxDashboardTable, ad as CxDataTabGroup, Ea as CxDateCalendar, Da as CxDetails, ld as CxDetailsGroup, Oa as CxDialog, ja as CxDiff, Aa as CxDivider, hd as CxDocsExample, Fa as CxDocumentViewer, Bo as CxDotPagination, Vo as CxDotStatus, Yt as CxDownloadFormatPicker, kOe as CxDownloader, Na as CxDrawer, cr as CxDropdown, Ws as CxDynamicSelect, Ho as CxEChart, Uo as CxElementClamp, bd as CxEstimatedReadingTime, Ed as CxFacetDatePicker, Md as CxFacetDateRange, Cc as CxFacetedFilter, Ld as CxFacetedFilterFacet, Ec as CxFileOnDemand, jOe as CxFindAndReplace, Js as CxFolderSelect, Bt as CxFontPicker, Wo as CxFormatBytes, Go as CxFormatDate, Ko as CxFormatNumber, qo as CxFormatTime, Vd as CxGalleryItem, F_ as CxGraphView, Jo as CxGrid,
|
|
111897
|
+
export { ha as AUTO_FALLBACK_FORMAT, Hi as AUTO_FORMAT_EXTENSION, na as AUTO_ORIGINAL_FORMAT_MAX_BYTES, lo as CMYK_VALIDATION_REGEX, si as CalendarGrid, io as ColorType, on as CornerPosition, d as CortexElement, di as CortexPopupController, Mee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Ku as CxAnnotator, Ple as CxAnnotatorComment, It as CxArrayLineClamp, $u as CxAssetDataDisplay, zt as CxAssetFormatPicker, _c as CxAssetLinkFormat, Rt as CxAssetPicker, Vt as CxAssetTransformationDialog, Ln as CxAudio, Rn as CxAvatar, zn as CxBadge, Qle as CxBentoGrid, Is as CxBicolorPicker, Ls as CxBorderInputGroup, Bn as CxBox, Vn as CxBreadcrumb, Hn as CxBreadcrumbItem, Ae as CxButton, Un as CxButtonGroup, pue as CxCapacityPlanner, Wn as CxCard, rF as CxCarousel, Nz as CxChartPlanBuilder, YR as CxChatbot, Gn as CxCheckbox, zz as CxClusterManagement, Vr as CxColorPicker, Rs as CxColorSwatch, wc as CxColorSwatchGroup, sP as CxComment, Uz as CxCommentV1, zs as CxConfirmPopover, BEe as CxContentBuilder, XEe as CxContentBuilderViewer, Hr as CxCopyButton, Bs as CxCornerPositionInputGroup, Vs as CxCropper, Ut as CxDamCustomToolbarButtonsEditor, Ile as CxDashboardFilter, nd as CxDashboardIframe, Vle as CxDashboardTable, ad as CxDataTabGroup, Ea as CxDateCalendar, Da as CxDetails, ld as CxDetailsGroup, Oa as CxDialog, ja as CxDiff, Aa as CxDivider, hd as CxDocsExample, Fa as CxDocumentViewer, Bo as CxDotPagination, Vo as CxDotStatus, Yt as CxDownloadFormatPicker, kOe as CxDownloader, Na as CxDrawer, cr as CxDropdown, Ws as CxDynamicSelect, Ho as CxEChart, Uo as CxElementClamp, bd as CxEstimatedReadingTime, Ed as CxFacetDatePicker, Md as CxFacetDateRange, Cc as CxFacetedFilter, Ld as CxFacetedFilterFacet, Ec as CxFileOnDemand, jOe as CxFindAndReplace, Js as CxFolderSelect, Bt as CxFontPicker, Wo as CxFormatBytes, Go as CxFormatDate, Ko as CxFormatNumber, qo as CxFormatTime, Vd as CxGalleryItem, F_ as CxGraphView, Jo as CxGrid, Yo as CxGridItem, Xo as CxHeader, $o as CxHubConnection, ce as CxIcon, oe as CxIconButton, Xt as CxIconPicker, ts as CxIframe, Io as CxImage, ns as CxImageComparer, rs as CxInclude, pr as CxInput, Cd as CxInputDatePicker, kd as CxInputDateRangePicker, is as CxInputGroup, NOe as CxLightbox, Pt as CxLineClamp, Gt as CxListEditor, ds as CxMarkdown, jse as CxMarkdownViewer, Xs as CxMasonry, uO as CxMentions, mr as CxMenu, _r as CxMenuItem, fs as CxMenuLabel, ps as CxMenuSection, xc as CxMultiSelect, ms as CxMutationObserver, xr as CxOption, Zs as CxPaddingInputGroup, Pse as CxPageOutline, hs as CxPagination, Use as CxPdfViewerToolbar, h as CxPopup, Qs as CxPositionPicker, Pa as CxProgressBar, gs as CxProgressRing, Gse as CxPublishPage, _s as CxQrCode, vs as CxRadio, ys as CxRadioButton, bs as CxRadioCard, xs as CxRadioGroup, Ss as CxRange, Cs as CxRating, ws as CxRelativeTime, Mt as CxResizeObserver, ROe as CxSearchBox, kr as CxSelect, $s as CxShadowInputGroup, ec as CxShareOptionList, tc as CxSidebar, nc as CxSizeInputGroup, Ro as CxSkeleton, Sr as CxSpace, BOe as CxSpaceSelector, M3 as CxSpecialCharactersDialog, le as CxSpinner, Ts as CxSplitPanel, qse as CxStatCard, Es as CxStep, Ds as CxStepper, rc as CxStepperWizard, Xse as CxStorybook, Os as CxSwitch, Ar as CxTab, Fr as CxTabGroup, zr as CxTabPanel, Ft as CxTag, qOe as CxTemplateSwitcher, $ke as CxTextToSpeech, br as CxTextarea, ks as CxTimecode, Nt as CxTooltip, js as CxTree, As as CxTreeItem, qt as CxTypeSubtypeSelect, ic as CxTypeface, In as CxTypography, Ps as CxVideo, PO as CxViewAndSort, Br as CxVisuallyHidden, fAe as CxXmlEditor, wo as DEFAULT_BREAKPOINTS, oi as DateRangePresets, Oi as DragScroll, tn as Easing, rn as EasingFunction, jt as FormControlController, en as GsapEasing, so as HEX_ALPHA_VALIDATION_REGEX, to as HEX_VALIDATION_REGEX, O as HasSlotController, Ci as HistoryManager, Jt as IconPickerVariant, bi as KeyboardKey, T as LocalizeController, tr as MIN_GRADIENT_STOPS, Qt as OBJECT_POSITION_BY_CROP_FOCUS, ya as ORIGINAL_FORMAT, $t as ObjectFit, nn as Orientation, _a as PRECISION, Zt as PositionPickerValue, Ja as RELATIVE_URL_REGEX, Xa as RGB_VALIDATION_REGEX, Wi as SRCSET_WIDTH_LADDER, an as TransitionType, Ua as URL_DOMAIN_VALIDATION_REGEX, Ka as URL_INTRANET_DOMAIN_VALIDATION_REGEX, Ba as URL_PROTOCOL_VALIDATION_REGEX, Ia as URL_VALIDATION_REGEX, sr as activeElements, Jr as addMonths, Ki as adjustRelativeValues, y as animateTo, Wa as appendProtocol, qa as appendQueryParam, qi as applyTransformationsToUrl, ua as applyWidthToAssetUrl, ia as buildAssetSrcset, Xi as buildSizesFromDisplayWidth, Yi as buildTransformationString, Pn as buildWaveformPath, Mn as calculateAspectRatioFit, ir as clamp, On as cleanImageFileName, pn as clearZeroDurationParts, g as componentStyles, ao as convertColor, Cn as convertDataUnits, yn as convertDurationToMilliseconds, xn as convertPixelsToAspectRatio, An as convertSrcToBlob, Zn as createStopId, En as cropImage, wt as cssValueToPx, C as customElement, Ot as customErrorValidityState, Oe as debounce, Kn as defaultValue, ba as downloadAsset, nr as drag, ot as emptyToSpace, tt as escapeXML, co as extractColor, it as extractExtension, oa as extractFrames, Ze as extractRootData, _n as extractValueAndUnit, Nn as extractWaveformPeaks, Fi as fetchCortexApi, Ee as findAncestorWithBuggyStyle, Se as findContainingBlock, we as findCuttingAncestor, pa as findFrameByColAndRow, va as findIndexByProp, We as findSearchMatches, lr as focusWhenVisible, nt as foldSearchText, he as fontAwesomeIconNames, At as formCollections, hn as formatAspectRatioString, Za as formatColorCodeSeparator, un as formatDurationPartsManually, no as formatHexCode, Yr as formatIsoToDisplay, ri as formatMonthYearLabel, bn as formatNumberWithGrouping, at as formatSecondsToTime, Ke as formatTimeToSeconds, fn as formatWithIntlDurationFormat, Sn as gcd, R as getActiveElement, ka as getActiveModals, ie as getAnimation, pe as getAnimationNames, Dt as getAssociatedForm, St as getAttributes, $e as getAttributesString, bo as getBreakpointsFromCSS, Ni as getBrowserFontVariants, uo as getColorType, wn as getContainedImageSize, _t as getCortexPopupLayer, ft as getCurrentZIndex, ei as getDateMask, or as getDeepestActiveElement, So as getDeviceType, ln as getDurationPartsByUnitsFormat, me as getEasingNames, bt as getElementFromHTMLString, Ct as getElementFromTemplate, Zr as getFirstDayOfWeek, yi as getFontFamilyOptionValue, Mi as getFontFamilyVariants, ki as getFormControls, Oo as getHighlightedTitle, Do as getHighlightedTitleHtml, E as getInnerHTML, Qi as getInterval, Qa as getLightDarkCssString, kn as getNaturalWidthHeight, pt as getNeededPaddingForBoxShadow, be as getNextAncestor, Cr as getOffset, vt as getRelativeClickPercentage, st as getRootIDString, dr as getTabbableBoundary, ur as getTabbableElements, D as getTextContent, Xr as getTodayIsoDate, Pi as getTypefaceOptionValue, sa as groupBy, Ri as hasTransformSegment, qe as htmlToPlainText, ma as insertAtIndex, zi as insertFrameToCache, $i as insertMultipleAtIndex, $n as interpolateStopColor, _e as isChrome, Dr as isCortexAdobePlugin, Tt as isDomElement, mt as isElementInHorizontalView, La as isExpiredAssetUrl, Ce as isFirefox, vi as isFontFamilyAvailable, Ta as isFormInteracted, Je as isGalleryItemCardType, Yn as isGradientString, Te as isIOS, ht as isInElement, ve as isMacOs, Li as isModKey, xe as isSafari, jn as isSaveSrcValid, Va as isValidDomainOrIntranetUrl, Wr as isValidIsoDate, Ya as isValidUrl, ci as isoToDate, Zi as isoWeekNumber, xt as loadScript, Er as lockBodyScrolling, $a as luminanceTextColor, Bi as moveMultipleToIndex, la as moveToIndex, ga as multiSelectTo, qn as normalizeAngle, ui as normalizeToIsoDate, wi as omit, Gi as openAssetOverview, Ji as openFolderOverview, da as openLink, rt as padPath, et as parseBooleanString, oo as parseBorder, Kr as parseDisplayToIso, x as parseDuration, xa as parseFileSizeToBytes, Qn as parseGradient, li as parseIsoDate, Ti as parseJsonString, ro as parseLightDark, Di as parseListString, eo as parseShadow, wa as parseTransformations, _i as pick, De as popoverSupported, v as prefersReducedMotion, rr as quantizeLargestRemainder, Si as quoteFontFamily, Ra as readAssetTokenExpiry, fi as readLocalStorageValue, yt as readSearchConsistency, Xe as reducePathToDirectChild, w as registerTranslation, Ui as removeAtIndex, ra as removeMultipleAtIndex, Tn as resizeImage, Vi as resolveAutoFormat, Ca as resolveAutoMaxWidth, za as resolveSpaceUrl, gn as rotateBox, Dn as rotateImage, Ye as safeExtension, Ue as safeString, ct as sanitizeHTML, vn as sanitizeRotation, wr as scrollIntoView, ca as seek, pi as serialize, er as serializeGradient, M as setAnimation, re as setDefaultAnimation, aa as shareAsset, _ as shimKeyframesHeightAuto, gt as sortByTopPosition, Jn as sortStops, fa as sortTypefaceVariants, Ir as splitBoxValues, dt as splitCamelCaseFormatted, Xn as splitTopLevel, b as stopAnimations, ye as supportHLS, xi as testFontAvailability, fo as timecodeConverter, Ge as toCamelCase, Ur as toIsoDate, ut as toKebabCase, Ve as toPascalCase, Ga as toRelativeUrl, Le as toTitleCase, Ha as toUrlPathKey, ta as toast, lt as truncateTextMiddle, He as unescapeXML, Tr as unlockBodyScrolling, Ii as unquoteFontFamily, ze as upperFirst, Et as validValidityState, kt as valueMissingValidityState, S as waitForEvent, A as watch, ea as writeLocalStorageValue };
|
package/library/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import { default as CxSpace } from '../../../../../atoms/src/components/space/sp
|
|
|
10
10
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
11
11
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
12
12
|
import { PdfViewerAnnotationMode } from '../../../../../types/src/pdf-viewer-toolbar';
|
|
13
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
13
|
+
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
14
14
|
/**
|
|
15
15
|
* @summary The "Draw" control of the PDF viewer toolbar: a dropdown to pick a
|
|
16
16
|
* shape tool (Draw / Square / Circle / Arrow) and tune its parameters (color,
|
|
@@ -55,7 +55,6 @@ export default class CxPdfViewerAnnotationDraw extends CortexElement {
|
|
|
55
55
|
* tell a click on another toolbar tool from one on the page/canvas outside it.
|
|
56
56
|
*/
|
|
57
57
|
private get toolbarHost();
|
|
58
|
-
runFirstUpdated(): void;
|
|
59
58
|
runConnectedCallback(): void;
|
|
60
59
|
disconnectedCallback(): void;
|
|
61
60
|
/**
|
|
@@ -63,20 +62,13 @@ export default class CxPdfViewerAnnotationDraw extends CortexElement {
|
|
|
63
62
|
* the palette. Presses inside this control or on the page/canvas are ignored.
|
|
64
63
|
*/
|
|
65
64
|
private handleDocumentPointerDown;
|
|
66
|
-
|
|
65
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
66
|
+
private handleActiveModeChange;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* restore the default otherwise so outside clicks and Escape dismiss it.
|
|
71
|
-
*/
|
|
72
|
-
private syncDismissBoundary;
|
|
73
|
-
private handleTriggerClick;
|
|
74
|
-
/**
|
|
75
|
-
* Switch back to `none`, closing the palette. `#stoppingDraw` stops the cx-hide
|
|
76
|
-
* handler from re-opening it while `none` round-trips through the parent.
|
|
68
|
+
* Switch back to `none`, closing the palette. `#stoppingDraw` marks it as a
|
|
69
|
+
* deliberate exit while `none` round-trips through the parent.
|
|
77
70
|
*/
|
|
78
71
|
private stopDrawing;
|
|
79
|
-
private handleDropdownHide;
|
|
80
72
|
private handleShapeSelect;
|
|
81
73
|
private handleColorChange;
|
|
82
74
|
private handleThicknessChange;
|
package/package.json
CHANGED
|
@@ -56,8 +56,8 @@ import "../components/format-date.js";
|
|
|
56
56
|
import "../components/format-number.js";
|
|
57
57
|
import "./format-time.QkJcKYrT.js";
|
|
58
58
|
import "./grid.CK4PRwur.js";
|
|
59
|
-
import "./header.CowQINf-.js";
|
|
60
59
|
import "./grid-item.CSieaU5T.js";
|
|
60
|
+
import "./header.CowQINf-.js";
|
|
61
61
|
import "./hub-connection.C0CASy-Q.js";
|
|
62
62
|
import "./iframe.sl2wnUcC.js";
|
|
63
63
|
import "./image-comparer.BCD6kzLm.js";
|