@orangelogic/design-system 2.131.0 → 2.132.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/{document-viewer.Dn_vUYCW.js → document-viewer.CzGnnA_9.js} +2 -2
- package/library/chunks/{folder-select.DMpO7oQF.js → folder-select.CHzRsSGM.js} +45 -45
- package/library/chunks/image.BzmclWBR.js +150 -0
- package/library/chunks/{image.BC_hwk-b.js → image.DAtx64Jj.js} +1 -1
- package/library/chunks/{list-editor.CdMU7vNF.js → list-editor.CwCdVzMl.js} +1 -1
- package/library/chunks/{resizable-component.styles.BVhOesNE.js → resizable-component.styles.B5N-oYx6.js} +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +1 -1
- package/library/components/cropper.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/folder-select.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/list-editor.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/types.js +7 -7
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/chunks/image.9qwbjGNb.js +0 -150
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.
|
|
1
|
+
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.B5N-oYx6.js";
|
|
2
2
|
import { C as CxButton } from "./button.DcInI7IV.js";
|
|
3
3
|
import CxDrawer from "../components/drawer.js";
|
|
4
4
|
import CxDropdown from "../components/dropdown.js";
|
|
@@ -33,7 +33,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
33
33
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
34
34
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
35
35
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
36
|
-
import { C as CxImage } from "./image.
|
|
36
|
+
import { C as CxImage } from "./image.DAtx64Jj.js";
|
|
37
37
|
var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
|
|
38
38
|
function commonjsRequire(l) {
|
|
39
39
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -3,7 +3,7 @@ import { C as de } from "./input.BRgVRr2i.js";
|
|
|
3
3
|
import ee from "../components/line-clamp.js";
|
|
4
4
|
import pe from "../components/select.js";
|
|
5
5
|
import ue from "../components/tag.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as $, a as fe } from "./tree.CbeHY8pn.js";
|
|
7
7
|
import { n as l, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as L, F as me, c as ye } from "./endpoints.6E17hFiK.js";
|
|
9
9
|
import { M as P } from "./asset-link-format.QzzboHHE.js";
|
|
@@ -25,7 +25,7 @@ import { n as w } from "./when.Dr1es41R.js";
|
|
|
25
25
|
import ve from "../components/space.js";
|
|
26
26
|
import { g as Fe } from "./template.ClovJacp.js";
|
|
27
27
|
import { e as Te } from "./class-map.BiVq-cVR.js";
|
|
28
|
-
var
|
|
28
|
+
var S = /* @__PURE__ */ ((e) => (e.CortexPath = "Document.CortexPath", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e.rawDocSubtype = "Document.RawDocSubType", e))(S || {});
|
|
29
29
|
const Ie = 50;
|
|
30
30
|
async function H({
|
|
31
31
|
allowedFolders: e,
|
|
@@ -36,12 +36,12 @@ async function H({
|
|
|
36
36
|
includeDirectChild: p,
|
|
37
37
|
limit: u = Ie,
|
|
38
38
|
searchTerm: g,
|
|
39
|
-
self:
|
|
39
|
+
self: I,
|
|
40
40
|
start: N = 0,
|
|
41
41
|
token: ne
|
|
42
42
|
}) {
|
|
43
43
|
let O = [], Q = p ?? !0;
|
|
44
|
-
e && e.length > 0 && !s ? (O = e,
|
|
44
|
+
e && e.length > 0 && !s ? (O = e, I = !0, Q = !1) : s && (O = [s]);
|
|
45
45
|
try {
|
|
46
46
|
return (await L.request({
|
|
47
47
|
baseURL: t,
|
|
@@ -55,7 +55,7 @@ async function H({
|
|
|
55
55
|
Limit: u,
|
|
56
56
|
ObjectRecordIDs: O,
|
|
57
57
|
SeeThru: !!g,
|
|
58
|
-
Self:
|
|
58
|
+
Self: I,
|
|
59
59
|
Start: N,
|
|
60
60
|
Text: g || void 0,
|
|
61
61
|
Token: ne || void 0
|
|
@@ -66,32 +66,32 @@ async function H({
|
|
|
66
66
|
responseType: "json",
|
|
67
67
|
transformResponse: [
|
|
68
68
|
...Array.isArray(L.defaults.transformResponse) ? L.defaults.transformResponse : [],
|
|
69
|
-
(
|
|
69
|
+
(v, Re, R) => {
|
|
70
70
|
if (R !== void 0 && (R < 200 || R >= 300))
|
|
71
71
|
return {
|
|
72
72
|
data: [],
|
|
73
73
|
hasMore: !1,
|
|
74
74
|
totalCount: 0
|
|
75
75
|
};
|
|
76
|
-
if (!
|
|
76
|
+
if (!v || typeof v != "object")
|
|
77
77
|
throw new Error("Invalid response format");
|
|
78
|
-
const he =
|
|
78
|
+
const he = v.contentItems?.length ?? 0;
|
|
79
79
|
return {
|
|
80
|
-
data:
|
|
81
|
-
const E = b.fields[
|
|
80
|
+
data: v.contentItems?.map((b) => {
|
|
81
|
+
const E = b.fields[S.DocType] ?? "", U = b.fields[S.TitleWithFallback] ?? "", k = b.fields[S.CortexPath] ?? "", M = k.endsWith("/") && k.length > 1 ? k.slice(0, -1) : k;
|
|
82
82
|
let j = M;
|
|
83
83
|
return (E === P.Album || E === P.ProjectDocument) && (j = M ? `${M}/${U}` : U), {
|
|
84
84
|
docType: E,
|
|
85
85
|
fullPath: j,
|
|
86
|
-
hasChildren: b.fields[
|
|
86
|
+
hasChildren: b.fields[S.HasBrowserChildren] === "1",
|
|
87
87
|
id: b.recordID,
|
|
88
|
-
isShared: b.fields[
|
|
89
|
-
representativeAssetId: b.fields[
|
|
88
|
+
isShared: b.fields[S.rawDocSubtype] === "DO_OR1ND000001913488",
|
|
89
|
+
representativeAssetId: b.fields[S.RepresentativeAssetId] ?? "",
|
|
90
90
|
title: U
|
|
91
91
|
};
|
|
92
92
|
}) ?? [],
|
|
93
|
-
hasMore: N + he <
|
|
94
|
-
totalCount:
|
|
93
|
+
hasMore: N + he < v.totalCount,
|
|
94
|
+
totalCount: v.totalCount
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
],
|
|
@@ -105,7 +105,7 @@ async function H({
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var C = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(C || {}), Ce = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, d = (e, t, r, a) => {
|
|
109
109
|
for (var s = a > 1 ? void 0 : a ? _e(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
110
110
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
111
111
|
return a && s && Ce(t, r, s), s;
|
|
@@ -190,8 +190,8 @@ let o = class extends B {
|
|
|
190
190
|
const g = $e(u);
|
|
191
191
|
if (!g.path.trim() || !g.id.trim())
|
|
192
192
|
continue;
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
193
|
+
const I = Z(g.path);
|
|
194
|
+
if (I.startsWith(r) && I !== r) {
|
|
195
195
|
s = !0;
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
@@ -222,7 +222,7 @@ o.dependencies = {
|
|
|
222
222
|
"cx-icon": Y,
|
|
223
223
|
"cx-line-clamp": ee,
|
|
224
224
|
"cx-space": ve,
|
|
225
|
-
"cx-tree-item":
|
|
225
|
+
"cx-tree-item": $
|
|
226
226
|
};
|
|
227
227
|
d([
|
|
228
228
|
re("cx-tree-item")
|
|
@@ -316,10 +316,10 @@ var De = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, le = (e) =
|
|
|
316
316
|
for (var s = a > 1 ? void 0 : a ? ke(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
317
317
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
318
318
|
return a && s && De(t, r, s), s;
|
|
319
|
-
}, ae = (e, t, r) => t.has(e) || le("Cannot " + r),
|
|
319
|
+
}, ae = (e, t, r) => t.has(e) || le("Cannot " + r), F = (e, t, r) => (ae(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), J = (e, t, r, a) => (ae(e, t, "write to private field"), t.set(e, r), r), _, V, D;
|
|
320
320
|
let n = class extends B {
|
|
321
321
|
constructor() {
|
|
322
|
-
super(...arguments), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = H, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], z(this,
|
|
322
|
+
super(...arguments), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = H, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], z(this, _, !1), z(this, V, 10), z(this, D, /* @__PURE__ */ new Set());
|
|
323
323
|
}
|
|
324
324
|
get empty() {
|
|
325
325
|
return !this.loading && this.data.length === 0;
|
|
@@ -406,10 +406,10 @@ let n = class extends B {
|
|
|
406
406
|
}
|
|
407
407
|
async handleFetchFolders() {
|
|
408
408
|
const { data: e, hasMore: t } = await this.fetchFolders();
|
|
409
|
-
|
|
409
|
+
F(this, _) || (e.length > 0 && this.firstFetchCallback?.(e), J(this, _, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
|
|
410
410
|
}
|
|
411
411
|
async handleSelectedValueChange() {
|
|
412
|
-
if (
|
|
412
|
+
if (!F(this, _))
|
|
413
413
|
return;
|
|
414
414
|
const e = new Set(
|
|
415
415
|
this.selectedValue.split(/[\s,]+/).filter(Boolean)
|
|
@@ -433,7 +433,7 @@ let n = class extends B {
|
|
|
433
433
|
bearerToken: this.bearerToken,
|
|
434
434
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
435
435
|
folderId: "",
|
|
436
|
-
limit:
|
|
436
|
+
limit: F(this, V),
|
|
437
437
|
searchTerm: this.searchTerm,
|
|
438
438
|
seeThru: this.seeThru,
|
|
439
439
|
start: 0,
|
|
@@ -462,7 +462,7 @@ let n = class extends B {
|
|
|
462
462
|
...this.data.map((s) => s.id),
|
|
463
463
|
...this.extraFolderData ? [this.extraFolderData.id] : [],
|
|
464
464
|
...this.preloadedFolders.map((s) => s.id),
|
|
465
|
-
|
|
465
|
+
...F(this, D),
|
|
466
466
|
...[
|
|
467
467
|
...this.querySelectorAll(
|
|
468
468
|
"cx-folder-select-tree-item"
|
|
@@ -473,7 +473,7 @@ let n = class extends B {
|
|
|
473
473
|
);
|
|
474
474
|
if (r.length === 0)
|
|
475
475
|
return;
|
|
476
|
-
r.forEach((s) =>
|
|
476
|
+
r.forEach((s) => F(this, D).add(s));
|
|
477
477
|
const a = [];
|
|
478
478
|
if (await Promise.all(
|
|
479
479
|
r.map(async (s) => {
|
|
@@ -495,7 +495,7 @@ let n = class extends B {
|
|
|
495
495
|
} catch {
|
|
496
496
|
}
|
|
497
497
|
})
|
|
498
|
-
), r.forEach((s) =>
|
|
498
|
+
), r.forEach((s) => F(this, D).delete(s)), a.length > 0) {
|
|
499
499
|
const s = new Set(this.preloadedFolders.map((u) => u.id)), p = a.filter((u) => !s.has(u.id));
|
|
500
500
|
p.length > 0 && (this.preloadedFolders = [...this.preloadedFolders, ...p].sort(
|
|
501
501
|
(u, g) => u.title.localeCompare(g.title)
|
|
@@ -543,7 +543,7 @@ let n = class extends B {
|
|
|
543
543
|
)}`;
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
|
-
|
|
546
|
+
_ = /* @__PURE__ */ new WeakMap();
|
|
547
547
|
V = /* @__PURE__ */ new WeakMap();
|
|
548
548
|
D = /* @__PURE__ */ new WeakMap();
|
|
549
549
|
n.dependencies = {
|
|
@@ -644,17 +644,17 @@ var Ve = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, ie = (e) =
|
|
|
644
644
|
for (var s = a > 1 ? void 0 : a ? Pe(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
645
645
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
646
646
|
return a && s && Ve(t, r, s), s;
|
|
647
|
-
}, oe = (e, t, r) => t.has(e) || ie("Cannot " + r), K = (e, t, r) => (oe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? ie("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), X = (e, t, r, a) => (oe(e, t, "write to private field"), t.set(e, r), r),
|
|
647
|
+
}, oe = (e, t, r) => t.has(e) || ie("Cannot " + r), K = (e, t, r) => (oe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? ie("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), X = (e, t, r, a) => (oe(e, t, "write to private field"), t.set(e, r), r), T;
|
|
648
648
|
let i = class extends B {
|
|
649
649
|
constructor() {
|
|
650
|
-
super(), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.variant =
|
|
650
|
+
super(), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.variant = C.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = H, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", Oe(this, T), this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectSetOptionSelected = this.selectSetOptionSelected.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
651
651
|
}
|
|
652
652
|
updateWrappedApi() {
|
|
653
653
|
if (!this.api) {
|
|
654
|
-
X(this,
|
|
654
|
+
X(this, T, void 0);
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
|
-
X(this,
|
|
657
|
+
X(this, T, async (e) => {
|
|
658
658
|
try {
|
|
659
659
|
return await this.api(e);
|
|
660
660
|
} catch (t) {
|
|
@@ -696,17 +696,17 @@ let i = class extends B {
|
|
|
696
696
|
), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.selectEl.displayLabel = this.searchTerm);
|
|
697
697
|
}
|
|
698
698
|
selectGetOptionValue(e) {
|
|
699
|
-
return !e || !(e instanceof
|
|
699
|
+
return !e || !(e instanceof $) ? this.value : e.dataset.id || this.value;
|
|
700
700
|
}
|
|
701
701
|
selectGetOptionLabel(e) {
|
|
702
|
-
return !e || !(e instanceof
|
|
702
|
+
return !e || !(e instanceof $) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
|
|
703
703
|
}
|
|
704
704
|
selectGetOptionSelected(e) {
|
|
705
|
-
if (!(!e || !(e instanceof
|
|
705
|
+
if (!(!e || !(e instanceof $)))
|
|
706
706
|
return e.selected;
|
|
707
707
|
}
|
|
708
708
|
selectFilterCallback(e) {
|
|
709
|
-
return !(!e || !(e instanceof
|
|
709
|
+
return !(!e || !(e instanceof $));
|
|
710
710
|
}
|
|
711
711
|
/**
|
|
712
712
|
* Custom tag renderer for cx-select multi mode. Identical visuals to the
|
|
@@ -723,11 +723,11 @@ let i = class extends B {
|
|
|
723
723
|
remove-button:tag__remove-button,
|
|
724
724
|
remove-button__base:tag__remove-button__base
|
|
725
725
|
" removable @cx-remove=${(r) => {
|
|
726
|
-
r.stopPropagation(), e instanceof
|
|
726
|
+
r.stopPropagation(), e instanceof $ && (e.selected = !1);
|
|
727
727
|
}}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
|
|
728
728
|
}
|
|
729
729
|
selectSetOptionSelected(e, t) {
|
|
730
|
-
if (!(!e || !(e instanceof
|
|
730
|
+
if (!(!e || !(e instanceof $)) && this.selection !== "multiple") {
|
|
731
731
|
if (t === void 0) {
|
|
732
732
|
e.selected = !e.selected;
|
|
733
733
|
return;
|
|
@@ -748,7 +748,7 @@ let i = class extends B {
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
async handleVariantChange() {
|
|
751
|
-
this.variant ===
|
|
751
|
+
this.variant === C.Select && (await this.updateComplete, this.updateFunctionProps());
|
|
752
752
|
}
|
|
753
753
|
handleValueChange() {
|
|
754
754
|
this.selectEl && (this.searchTerm = "", this.selectEl.getOptionValue = this.selectGetOptionValue, this.selectEl.getOptionLabel = this.selectGetOptionLabel, this.selectEl.getOptionSelected = this.selectGetOptionSelected, this.selectEl.filterCallback = this.selectFilterCallback, this.selectEl.setOptionSelected = this.selectSetOptionSelected, this.selectEl.getTag = this.selectGetTag, this.selectEl.handleDefaultSlotChange());
|
|
@@ -756,17 +756,17 @@ let i = class extends B {
|
|
|
756
756
|
render() {
|
|
757
757
|
return m`<div class="folder-select">${ge(this.variant, [
|
|
758
758
|
[
|
|
759
|
-
|
|
760
|
-
() => m`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .api=${K(this,
|
|
759
|
+
C.Input,
|
|
760
|
+
() => m`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .api=${K(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
761
761
|
],
|
|
762
762
|
[
|
|
763
|
-
|
|
764
|
-
() => m`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .api=${K(this,
|
|
763
|
+
C.Select,
|
|
764
|
+
() => m`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .api=${K(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
|
|
765
765
|
]
|
|
766
766
|
])}</div>`;
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
|
|
769
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
770
770
|
i.styles = [te, we];
|
|
771
771
|
i.dependencies = {
|
|
772
772
|
"cx-folder-select-tree": n,
|
|
@@ -879,6 +879,6 @@ i = c([
|
|
|
879
879
|
], i);
|
|
880
880
|
export {
|
|
881
881
|
i as C,
|
|
882
|
-
|
|
882
|
+
C as F,
|
|
883
883
|
H as a
|
|
884
884
|
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { r as g } from "./number.B4PQLJIg.js";
|
|
2
|
+
function m(e, t, i, o) {
|
|
3
|
+
const a = e / t, n = i / o;
|
|
4
|
+
let c = e, r = t;
|
|
5
|
+
return a > n ? c = Math.round(r * n) : r = Math.round(c / n), {
|
|
6
|
+
height: r,
|
|
7
|
+
width: c
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function p(e, t, i, o, a) {
|
|
11
|
+
const n = new Image();
|
|
12
|
+
return n.src = e, n.crossOrigin = "anonymous", new Promise((c) => {
|
|
13
|
+
n.onload = () => {
|
|
14
|
+
const r = document.createElement("canvas");
|
|
15
|
+
if (t > o || i > a) {
|
|
16
|
+
const h = o / t, l = a / i, u = Math.max(h, l);
|
|
17
|
+
r.width = t * u, r.height = i * u;
|
|
18
|
+
} else
|
|
19
|
+
r.width = t, r.height = i;
|
|
20
|
+
const s = r.getContext("2d");
|
|
21
|
+
s ? (s.fillStyle = "white", s.fillRect(0, 0, r.width, r.height), s.drawImage(n, 0, 0, r.width, r.height), c({
|
|
22
|
+
height: r.height,
|
|
23
|
+
url: r.toDataURL("image/jpeg"),
|
|
24
|
+
width: r.width
|
|
25
|
+
})) : c({
|
|
26
|
+
height: i,
|
|
27
|
+
url: e,
|
|
28
|
+
width: t
|
|
29
|
+
});
|
|
30
|
+
}, n.onerror = () => {
|
|
31
|
+
c({
|
|
32
|
+
height: i,
|
|
33
|
+
url: e,
|
|
34
|
+
width: t
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function R(e, t) {
|
|
40
|
+
const i = new Image();
|
|
41
|
+
return i.src = e.url, i.crossOrigin = "anonymous", new Promise((o) => {
|
|
42
|
+
i.onload = () => {
|
|
43
|
+
const a = document.createElement("canvas");
|
|
44
|
+
a.width = t.width, a.height = t.height;
|
|
45
|
+
const n = a.getContext("2d");
|
|
46
|
+
n ? (n.fillStyle = "white", n.fillRect(0, 0, a.width, a.height), n.drawImage(i, -t.x, -t.y, e.width, e.height), o(a.toDataURL("image/jpeg"))) : o(e.url);
|
|
47
|
+
}, i.onerror = () => {
|
|
48
|
+
o(e.url);
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function S(e, t) {
|
|
53
|
+
const i = new Image();
|
|
54
|
+
return i.src = e.url, i.crossOrigin = "anonymous", new Promise((o) => {
|
|
55
|
+
i.onload = () => {
|
|
56
|
+
const { height: a, width: n } = g(e.width, e.height, t), c = document.createElement("canvas");
|
|
57
|
+
c.width = n, c.height = a;
|
|
58
|
+
const r = c.getContext("2d");
|
|
59
|
+
r ? (r.fillStyle = "white", r.fillRect(0, 0, n, a), r.translate(n / 2, a / 2), r.rotate(t * Math.PI / 180), r.drawImage(
|
|
60
|
+
i,
|
|
61
|
+
-e.width / 2,
|
|
62
|
+
-e.height / 2,
|
|
63
|
+
e.width,
|
|
64
|
+
e.height
|
|
65
|
+
), r.rotate(-(t * Math.PI) / 180), r.translate(-n / 2, -a / 2), o(c.toDataURL("image/jpeg"))) : o(e.url);
|
|
66
|
+
}, i.onerror = () => {
|
|
67
|
+
o(e.url);
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function y(e) {
|
|
72
|
+
const t = e.getBoundingClientRect(), i = t.width / t.height, o = e.naturalWidth / e.naturalHeight;
|
|
73
|
+
let a, n;
|
|
74
|
+
return o > i ? (a = t.width, n = t.width / o) : (n = t.height, a = t.height * o), { height: n, width: a };
|
|
75
|
+
}
|
|
76
|
+
async function d(e) {
|
|
77
|
+
const t = new Image();
|
|
78
|
+
return t.src = e, await t.decode(), [t.naturalWidth, t.naturalHeight];
|
|
79
|
+
}
|
|
80
|
+
function b(e) {
|
|
81
|
+
const t = e.trim();
|
|
82
|
+
if (!t)
|
|
83
|
+
return !1;
|
|
84
|
+
if (t.startsWith("data:image/") || t.startsWith("blob:"))
|
|
85
|
+
return !0;
|
|
86
|
+
try {
|
|
87
|
+
const i = new URL(t, globalThis.location.href);
|
|
88
|
+
return ["blob:", "data:", "http:", "https:"].includes(i.protocol);
|
|
89
|
+
} catch {
|
|
90
|
+
return !1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function I(e) {
|
|
94
|
+
try {
|
|
95
|
+
const t = await fetch(e), i = t.headers.get("Content-Type");
|
|
96
|
+
if (!i)
|
|
97
|
+
return null;
|
|
98
|
+
const o = i.split("/")[1], a = await t.blob();
|
|
99
|
+
if (!a)
|
|
100
|
+
return null;
|
|
101
|
+
const n = URL.createObjectURL(a), [c, r] = await d(n);
|
|
102
|
+
return {
|
|
103
|
+
fileExtension: o,
|
|
104
|
+
height: r,
|
|
105
|
+
src: n,
|
|
106
|
+
width: c
|
|
107
|
+
};
|
|
108
|
+
} catch {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function w(e = /* @__PURE__ */ new Date()) {
|
|
113
|
+
const i = [
|
|
114
|
+
"Jan",
|
|
115
|
+
"Feb",
|
|
116
|
+
"Mar",
|
|
117
|
+
"Apr",
|
|
118
|
+
"May",
|
|
119
|
+
"Jun",
|
|
120
|
+
"Jul",
|
|
121
|
+
"Aug",
|
|
122
|
+
"Sep",
|
|
123
|
+
"Oct",
|
|
124
|
+
"Nov",
|
|
125
|
+
"Dec"
|
|
126
|
+
][e.getMonth()], o = e.getDate(), a = e.getFullYear();
|
|
127
|
+
let n = e.getHours();
|
|
128
|
+
const r = n < 12 ? "AM" : "PM";
|
|
129
|
+
n = n % 12, n = n === 0 ? 12 : n;
|
|
130
|
+
const s = e.getMinutes().toString().padStart(2, "0"), h = e.getSeconds().toString().padStart(2, "0"), l = e.getMilliseconds().toString().padStart(3, "0");
|
|
131
|
+
return `Screenshot - ${i} ${o} ${a} ${n}-${s}-${h}-${l} ${r}`;
|
|
132
|
+
}
|
|
133
|
+
function M(e) {
|
|
134
|
+
const t = e.split(".");
|
|
135
|
+
if (t.length <= 1 || e.startsWith(".") && t.length === 2)
|
|
136
|
+
return e.slice(0, 256);
|
|
137
|
+
const i = t.slice(0, -1).join(".").trim();
|
|
138
|
+
return i.length === 0 || i === "image" ? w() : i.slice(0, 256 - t[1].length);
|
|
139
|
+
}
|
|
140
|
+
export {
|
|
141
|
+
S as a,
|
|
142
|
+
R as b,
|
|
143
|
+
m as c,
|
|
144
|
+
d,
|
|
145
|
+
I as e,
|
|
146
|
+
M as f,
|
|
147
|
+
y as g,
|
|
148
|
+
b as i,
|
|
149
|
+
p as r
|
|
150
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as we, R as Ee, H as Y, a as te, b as Ce } from "./resizable-component.styles.
|
|
1
|
+
import { r as we, R as Ee, H as Y, a as te, b as Ce } from "./resizable-component.styles.B5N-oYx6.js";
|
|
2
2
|
import { c as ke } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { a as Le } from "./index.Cpamj0jB.js";
|
|
4
4
|
import { c as Re } from "./custom-element.L4WJXn1j.js";
|
|
@@ -29,7 +29,7 @@ import { c as x } from "./repeat.DbF2p5ae.js";
|
|
|
29
29
|
import { n as N } from "./when.Dr1es41R.js";
|
|
30
30
|
import { t as ae } from "./toString.CAY8lys2.js";
|
|
31
31
|
import { C as ie } from "./icon-button.COTH_z-J.js";
|
|
32
|
-
import { C as ne } from "./image.
|
|
32
|
+
import { C as ne } from "./image.DAtx64Jj.js";
|
|
33
33
|
import { a as se, F as I, b as w } from "./asset.D_VITxRH.js";
|
|
34
34
|
import { a as re } from "./index.Cpamj0jB.js";
|
|
35
35
|
import { A as g } from "./content-builder.BGzxZUgi.js";
|
|
@@ -3,7 +3,7 @@ import { C as N, n as o } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
3
3
|
import { r as x } from "./state.CSDxrqLd.js";
|
|
4
4
|
import { e as W } from "./query.BBf1UFkC.js";
|
|
5
5
|
import { E as $, b as S } from "./index.Cpamj0jB.js";
|
|
6
|
-
var k = /* @__PURE__ */ ((t) => (t.Bottom = "bottom", t.BottomCenter = "bottom-center", t.BottomLeft = "bottom-left", t.BottomRight = "bottom-right", t.CenterCenter = "center-center", t.CenterLeft = "center-left", t.CenterRight = "center-right", t.Left = "left", t.Right = "right", t.Top = "top", t.TopCenter = "top-center", t.TopLeft = "top-left", t.TopRight = "top-right", t))(k || {}), B = /* @__PURE__ */ ((t) => (t.Jump = "jump", t.None = "none", t.TextReveal = "text-reveal", t.Zoom = "zoom", t))(B || {}), C = /* @__PURE__ */ ((t) => (t.PopOut = "pop-out", t.WithinBorders = "within-borders", t))(C || {}), H = /* @__PURE__ */ ((t) => (t.Fade = "fade", t.Slide = "slide", t))(H || {}),
|
|
6
|
+
var b = /* @__PURE__ */ ((t) => (t.Auto = "auto", t.Fixed = "fixed", t))(b || {}), p = /* @__PURE__ */ ((t) => (t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t))(p || {}), k = /* @__PURE__ */ ((t) => (t.Bottom = "bottom", t.BottomCenter = "bottom-center", t.BottomLeft = "bottom-left", t.BottomRight = "bottom-right", t.CenterCenter = "center-center", t.CenterLeft = "center-left", t.CenterRight = "center-right", t.Left = "left", t.Right = "right", t.Top = "top", t.TopCenter = "top-center", t.TopLeft = "top-left", t.TopRight = "top-right", t))(k || {}), B = /* @__PURE__ */ ((t) => (t.Jump = "jump", t.None = "none", t.TextReveal = "text-reveal", t.Zoom = "zoom", t))(B || {}), C = /* @__PURE__ */ ((t) => (t.PopOut = "pop-out", t.WithinBorders = "within-borders", t))(C || {}), H = /* @__PURE__ */ ((t) => (t.Fade = "fade", t.Slide = "slide", t))(H || {}), I = Object.defineProperty, l = (t, e, g, v) => {
|
|
7
7
|
for (var s = void 0, h = t.length - 1, a; h >= 0; h--)
|
|
8
8
|
(a = t[h]) && (s = a(e, g, s) || s);
|
|
9
9
|
return s && I(e, g, s), s;
|
|
@@ -21,7 +21,7 @@ import { C as K } from "../chunks/icon-button.COTH_z-J.js";
|
|
|
21
21
|
import { C as J } from "../chunks/input.BRgVRr2i.js";
|
|
22
22
|
import { C as X } from "../chunks/option.BH13eKSl.js";
|
|
23
23
|
import Y from "./select.js";
|
|
24
|
-
import { c as ct } from "../chunks/image.
|
|
24
|
+
import { c as ct } from "../chunks/image.BzmclWBR.js";
|
|
25
25
|
import { e as V } from "../chunks/query.BBf1UFkC.js";
|
|
26
26
|
import { c as j } from "../chunks/repeat.DbF2p5ae.js";
|
|
27
27
|
import { o as R } from "../chunks/style-map.llVFPd__.js";
|
|
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
|
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
21
|
import { C as _ } from "../chunks/dialog.BlKHLwFx.js";
|
|
22
22
|
import { default as oe } from "./divider.js";
|
|
23
|
-
import { C as ae } from "../chunks/document-viewer.
|
|
23
|
+
import { C as ae } from "../chunks/document-viewer.CzGnnA_9.js";
|
|
24
24
|
import { C as xe } from "../chunks/dot-pagination.CNJWQ4zf.js";
|
|
25
25
|
import { default as me } from "./dot-status.js";
|
|
26
26
|
import { default as pe } from "./drawer.js";
|
|
@@ -39,7 +39,7 @@ import { f } from "../chunks/icon.DnBh6-56.js";
|
|
|
39
39
|
import { C as Fe } from "../chunks/icon.DnBh6-56.js";
|
|
40
40
|
import { C as Oe } from "../chunks/icon-button.COTH_z-J.js";
|
|
41
41
|
import { C as Ee } from "../chunks/iframe.DvBR4KYU.js";
|
|
42
|
-
import { C as Le } from "../chunks/image.
|
|
42
|
+
import { C as Le } from "../chunks/image.DAtx64Jj.js";
|
|
43
43
|
import { default as je } from "./image-comparer.js";
|
|
44
44
|
import { default as Qe } from "./include.js";
|
|
45
45
|
import { C as qe } from "../chunks/input.BRgVRr2i.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as f, R as y } from "../chunks/resizable-component.styles.
|
|
1
|
+
import { r as f, R as y } from "../chunks/resizable-component.styles.B5N-oYx6.js";
|
|
2
2
|
import { c as v } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { U as m, g as w, f as g, D as x } from "../chunks/time.BSmpFe2G.js";
|
|
4
4
|
import { c as P } from "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -7,7 +7,7 @@ import { r as ve } from "../chunks/state.CSDxrqLd.js";
|
|
|
7
7
|
import { e as De } from "../chunks/query.BBf1UFkC.js";
|
|
8
8
|
import { n as ae } from "../chunks/when.Dr1es41R.js";
|
|
9
9
|
import { r as w, j as f, w as Me, R as ke, a as ze } from "../chunks/jsx-runtime.CTpPVMxj.js";
|
|
10
|
-
import { c as He, r as je, a as Se } from "../chunks/image.
|
|
10
|
+
import { c as He, r as je, a as Se } from "../chunks/image.BzmclWBR.js";
|
|
11
11
|
import { r as $e } from "../chunks/number.B4PQLJIg.js";
|
|
12
12
|
import { d as se } from "../chunks/debounce.C_J-9zJi.js";
|
|
13
13
|
const Ie = _e`:host{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:#0003;--rc-drag-bar-size:6px;--rc-border-color:#ffffffb3;--rc-focus-color:#08f;width:100%;height:100%;display:block;position:relative}.cropper{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative;container-type:size}.loading-container{z-index:1000;background-color:#00000080;width:100%;height:100%;position:absolute;top:0;left:0}.loading-container .loading{width:100%;height:100%;position:absolute}.loading-container .loading__skeleton{--border-radius:0;width:100%;height:100%}.loading-container .loading__spinner{--track-width:.2rem;font-size:var(--cx-font-size-3x-large);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cropper--portrait .cropper__image{max-width:100cqw;max-height:100cqh}.cropper__image{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.cropper__image--loading{opacity:0}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}.ReactCrop{cursor:crosshair;isolation:isolate;max-width:100%;display:inline-block;position:relative}.cropper--multiple .ReactCrop:before{content:"";z-index:-1;background:var(--cx-color-neutral-300);border-radius:2px;position:absolute;inset:0;transform:translate(-8px,-8px)}.ReactCrop *,.ReactCrop :before,.ReactCrop :after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--loading,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit;justify-content:center;align-items:center;width:100%;height:100%;display:flex;overflow:hidden}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px);position:absolute;inset:0}.ReactCrop__crop-selection{cursor:move;position:absolute;top:0;left:0;transform:translateZ(0)}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit;display:none}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";border:1px solid var(--rc-border-color);opacity:.3;position:absolute;inset:-1px}.ReactCrop--no-animate .ReactCrop__crop-selection,.ReactCrop--loading .ReactCrop__crop-selection{outline:1px dashed #fff}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection,.ReactCrop--loading .ReactCrop__crop-selection){color:#fff;background-image:linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:10px 1px,10px 1px,1px 10px,1px 10px;animation:1s linear infinite marching-ants}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--disabled .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";background-color:#fff6;display:block;position:absolute}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6667%}.ReactCrop__drag-handle{width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color);position:absolute}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{cursor:nw-resize;top:0;left:0;transform:translate(-50%,-50%)}.ReactCrop .ord-n{cursor:n-resize;top:0;left:50%;transform:translate(-50%,-50%)}.ReactCrop .ord-ne{cursor:ne-resize;top:0;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-e{cursor:e-resize;top:50%;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-se{cursor:se-resize;bottom:0;right:0;transform:translate(50%,50%)}.ReactCrop .ord-s{cursor:s-resize;bottom:0;left:50%;transform:translate(-50%,50%)}.ReactCrop .ord-sw{cursor:sw-resize;bottom:0;left:0;transform:translate(-50%,50%)}.ReactCrop .ord-w{cursor:w-resize;top:50%;left:0;transform:translate(-50%,-50%)}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{width:100%;height:var(--rc-drag-bar-size);top:0;left:0;transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{width:var(--rc-drag-bar-size);height:100%;top:0;right:0;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{width:100%;height:var(--rc-drag-bar-size);bottom:0;left:0;transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{width:var(--rc-drag-bar-size);height:100%;top:0;left:0;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}`, q = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../chunks/resizable-component.styles.
|
|
2
|
-
import { C as b } from "../chunks/document-viewer.
|
|
1
|
+
import "../chunks/resizable-component.styles.B5N-oYx6.js";
|
|
2
|
+
import { C as b } from "../chunks/document-viewer.CzGnnA_9.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -10,7 +10,7 @@ import "../chunks/state.CSDxrqLd.js";
|
|
|
10
10
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import "../chunks/when.Dr1es41R.js";
|
|
12
12
|
import "../chunks/icon.DnBh6-56.js";
|
|
13
|
-
import "../chunks/image.
|
|
13
|
+
import "../chunks/image.DAtx64Jj.js";
|
|
14
14
|
import "../chunks/typography.DJC_UXgs.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
@@ -5,7 +5,7 @@ import "./select.js";
|
|
|
5
5
|
import "./tag.js";
|
|
6
6
|
import "../chunks/tree.CbeHY8pn.js";
|
|
7
7
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { C as h } from "../chunks/folder-select.
|
|
8
|
+
import { C as h } from "../chunks/folder-select.CHzRsSGM.js";
|
|
9
9
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import "../chunks/i18n.NAH4U8Lw.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../chunks/resizable-component.styles.
|
|
1
|
+
import "../chunks/resizable-component.styles.B5N-oYx6.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
|
-
import { C as w } from "../chunks/image.
|
|
4
|
+
import { C as w } from "../chunks/image.DAtx64Jj.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
7
7
|
import "../chunks/i18n.NAH4U8Lw.js";
|
|
@@ -18,7 +18,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
18
18
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
19
19
|
import "../chunks/i18n.NAH4U8Lw.js";
|
|
20
20
|
import "../chunks/watch.CThbualB.js";
|
|
21
|
-
import { c as E, C as F } from "../chunks/list-editor.
|
|
21
|
+
import { c as E, C as F } from "../chunks/list-editor.CwCdVzMl.js";
|
|
22
22
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
23
23
|
import "../chunks/state.CSDxrqLd.js";
|
|
24
24
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "./grid.js";
|
|
2
2
|
import f from "./grid-item.js";
|
|
3
3
|
import { C as v } from "../chunks/icon-button.COTH_z-J.js";
|
|
4
|
-
import { C as S } from "../chunks/image.
|
|
4
|
+
import { C as S } from "../chunks/image.DAtx64Jj.js";
|
|
5
5
|
import $ from "./space.js";
|
|
6
6
|
import C from "./tooltip.js";
|
|
7
7
|
import { n, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
@@ -5,8 +5,8 @@ import { C } from "../chunks/confirm-popover.DfAd2F8S.js";
|
|
|
5
5
|
import { default as s } from "./corner-position-input-group.js";
|
|
6
6
|
import { default as m } from "./cropper.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.CHzRsSGM.js";
|
|
9
|
+
import { C as P } from "../chunks/list-editor.CwCdVzMl.js";
|
|
10
10
|
import { default as I } from "./masonry.js";
|
|
11
11
|
import { default as y } from "./padding-input-group.js";
|
|
12
12
|
import { default as w } from "./position-picker.js";
|
|
@@ -20,8 +20,8 @@ import my from "./details.js";
|
|
|
20
20
|
import { default as dKt } from "./diff.js";
|
|
21
21
|
import { C as Ra, D as Uv } from "../chunks/dialog.BlKHLwFx.js";
|
|
22
22
|
import Ed from "./divider.js";
|
|
23
|
-
import { r as nX, a as xB, b as rX, c as oX } from "../chunks/document-viewer.
|
|
24
|
-
import { C as pKt } from "../chunks/document-viewer.
|
|
23
|
+
import { r as nX, a as xB, b as rX, c as oX } from "../chunks/document-viewer.CzGnnA_9.js";
|
|
24
|
+
import { C as pKt } from "../chunks/document-viewer.CzGnnA_9.js";
|
|
25
25
|
import { d as aX, C as sX } from "../chunks/dot-pagination.CNJWQ4zf.js";
|
|
26
26
|
import { default as gKt } from "./dot-status.js";
|
|
27
27
|
import { default as fKt } from "./drawer.js";
|
|
@@ -40,7 +40,7 @@ import { C as kKt } from "../chunks/hub-connection.Dri0ZNfh.js";
|
|
|
40
40
|
import { C as Mr } from "../chunks/icon.DnBh6-56.js";
|
|
41
41
|
import { C as zr } from "../chunks/icon-button.COTH_z-J.js";
|
|
42
42
|
import { C as mX, a as fX } from "../chunks/iframe.DvBR4KYU.js";
|
|
43
|
-
import { C as CB, a as vX } from "../chunks/image.
|
|
43
|
+
import { C as CB, a as vX } from "../chunks/image.DAtx64Jj.js";
|
|
44
44
|
import { default as CKt } from "./image-comparer.js";
|
|
45
45
|
import { default as TKt } from "./include.js";
|
|
46
46
|
import { C as mo, I as O3 } from "../chunks/input.BRgVRr2i.js";
|
|
@@ -119,8 +119,8 @@ import { c as Ci } from "../chunks/repeat.DbF2p5ae.js";
|
|
|
119
119
|
import { a as S0, e as oJ, f as HB, g as aJ, h as Y1, i as X1, j as J1, k as qv, l as vI, m as yI, n as bI, O as wI, D as P3, o as sJ, p as xI, q as kI, u as Z1 } from "../chunks/asset.D_VITxRH.js";
|
|
120
120
|
import { H as W_ } from "../chunks/slot.j5oheLJC.js";
|
|
121
121
|
import { a as ZYt, g as QYt } from "../chunks/slot.j5oheLJC.js";
|
|
122
|
-
import { c as Lr, d as lJ, H as Oi, e as ca, f as Ka, a as cJ, b as Wn } from "../chunks/resizable-component.styles.
|
|
123
|
-
import { a as E5, C as VB, u as qu, I as UB } from "../chunks/list-editor.
|
|
122
|
+
import { c as Lr, d as lJ, H as Oi, e as ca, f as Ka, a as cJ, b as Wn } from "../chunks/resizable-component.styles.B5N-oYx6.js";
|
|
123
|
+
import { a as E5, C as VB, u as qu, I as UB } from "../chunks/list-editor.CwCdVzMl.js";
|
|
124
124
|
import qB from "./bicolor-picker.js";
|
|
125
125
|
import WB from "./border-input-group.js";
|
|
126
126
|
import { C as tXt } from "../chunks/color-swatch.U-wztpLf.js";
|
|
@@ -137,7 +137,7 @@ import { g as JB, F as vJ } from "../chunks/form.3af0bYrm.js";
|
|
|
137
137
|
import { c as lXt, f as cXt, v as dXt, a as uXt } from "../chunks/form.3af0bYrm.js";
|
|
138
138
|
import { i as N3, b as ZB, d as yJ, c as TI, p as bJ, t as wJ } from "../chunks/calendar-grid.CXYoS6VA.js";
|
|
139
139
|
import { C as hXt, a as gXt, f as mXt, e as fXt, g as vXt, n as yXt } from "../chunks/calendar-grid.CXYoS6VA.js";
|
|
140
|
-
import { F as gd, C as I5, a as R3 } from "../chunks/folder-select.
|
|
140
|
+
import { F as gd, C as I5, a as R3 } from "../chunks/folder-select.CHzRsSGM.js";
|
|
141
141
|
import { a as Bo, E as Vi, b as tv, O as Eu, T as Fu, G as EI } from "../chunks/index.Cpamj0jB.js";
|
|
142
142
|
import { C as wXt } from "../chunks/index.Cpamj0jB.js";
|
|
143
143
|
import { b as Y_, a as T0, c as xJ, r as Ue, j as _e, w as kJ, R as _J } from "../chunks/jsx-runtime.CTpPVMxj.js";
|
|
@@ -200,7 +200,7 @@ import { a as uZ, b as pZ } from "../chunks/_baseUniq.HFKneygy.js";
|
|
|
200
200
|
import { S as m$ } from "../chunks/sortable.esm.oSzf6C5Q.js";
|
|
201
201
|
import { r as f$ } from "../chunks/query-async.CTgXGyQ5.js";
|
|
202
202
|
import { a as hJt, b as gJt, g as mJt } from "../chunks/modal.U1QltQKe.js";
|
|
203
|
-
import { c as vJt, f as yJt, e as bJt, b as wJt, g as xJt, d as kJt, i as _Jt, r as CJt, a as SJt } from "../chunks/image.
|
|
203
|
+
import { c as vJt, f as yJt, e as bJt, b as wJt, g as xJt, d as kJt, i as _Jt, r as CJt, a as SJt } from "../chunks/image.BzmclWBR.js";
|
|
204
204
|
import { b as EJt, e as AJt } from "../chunks/waveform.1U9U_0rd.js";
|
|
205
205
|
import { g as IJt, a as DJt } from "../chunks/template.ClovJacp.js";
|
|
206
206
|
var zE = /* @__PURE__ */ ((i) => (i.Button = "button", i.Select = "select", i))(zE || {}), vb = /* @__PURE__ */ ((i) => (i.Grid = "grid", i.Shadows = "shadows", i.Textures = "textures", i.Wireframe = "wireframe", i))(vb || {}), zp = /* @__PURE__ */ ((i) => (i.Animation = "animation", i.Environment = "environment", i.Speed = "speed", i.Variant = "variant", i))(zp || {});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
|
|
2
2
|
import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
|
|
3
3
|
import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
4
|
-
import { C as Cb } from "../chunks/image.
|
|
4
|
+
import { C as Cb } from "../chunks/image.DAtx64Jj.js";
|
|
5
5
|
import Mb from "./resize-observer.js";
|
|
6
|
-
import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.
|
|
6
|
+
import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.B5N-oYx6.js";
|
|
7
7
|
import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
|
|
9
9
|
import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
|
package/library/package.json
CHANGED
package/library/utils.js
CHANGED
|
@@ -24,7 +24,7 @@ import { w as gr } from "./chunks/watch.CThbualB.js";
|
|
|
24
24
|
import { C as pr, a as Dr, d as Tr, f as wr, e as Cr, g as Mr, c as yr, i as xr, b as Sr, n as Er, p as Ar, t as Ir } from "./chunks/calendar-grid.CXYoS6VA.js";
|
|
25
25
|
import { e as c, b as u, D as m } from "./chunks/date-picker.D0SJADN6.js";
|
|
26
26
|
import { f as Fr } from "./chunks/content-builder.BGzxZUgi.js";
|
|
27
|
-
import { c as br, f as vr, e as kr, b as Vr, g as Or, d as Yr, i as Ur, r as Nr, a as _r } from "./chunks/image.
|
|
27
|
+
import { c as br, f as vr, e as kr, b as Vr, g as Or, d as Yr, i as Ur, r as Nr, a as _r } from "./chunks/image.BzmclWBR.js";
|
|
28
28
|
import { b as Hr, e as Xr } from "./chunks/waveform.1U9U_0rd.js";
|
|
29
29
|
import { a as Wr, b as Gr, c as $r, e as zr, d as qr, f as Zr, g as Qr, r as jr, s as Jr } from "./chunks/number.B4PQLJIg.js";
|
|
30
30
|
import { s as ta } from "./chunks/parse.Cu5nBDTb.js";
|
package/package.json
CHANGED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { r as g } from "./number.B4PQLJIg.js";
|
|
2
|
-
function m(n, t, e, i) {
|
|
3
|
-
const o = n / t, r = e / i;
|
|
4
|
-
let c = n, a = t;
|
|
5
|
-
return o > r ? c = Math.round(a * r) : a = Math.round(c / r), {
|
|
6
|
-
height: a,
|
|
7
|
-
width: c
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
function p(n, t, e, i, o) {
|
|
11
|
-
const r = new Image();
|
|
12
|
-
return r.src = n, r.crossOrigin = "anonymous", new Promise((c) => {
|
|
13
|
-
r.onload = () => {
|
|
14
|
-
const a = document.createElement("canvas");
|
|
15
|
-
if (t > i || e > o) {
|
|
16
|
-
const h = i / t, l = o / e, u = Math.max(h, l);
|
|
17
|
-
a.width = t * u, a.height = e * u;
|
|
18
|
-
} else
|
|
19
|
-
a.width = t, a.height = e;
|
|
20
|
-
const s = a.getContext("2d");
|
|
21
|
-
s ? (s.drawImage(r, 0, 0, a.width, a.height), c({
|
|
22
|
-
height: a.height,
|
|
23
|
-
url: a.toDataURL("image/jpeg"),
|
|
24
|
-
width: a.width
|
|
25
|
-
})) : c({
|
|
26
|
-
height: e,
|
|
27
|
-
url: n,
|
|
28
|
-
width: t
|
|
29
|
-
});
|
|
30
|
-
}, r.onerror = () => {
|
|
31
|
-
c({
|
|
32
|
-
height: e,
|
|
33
|
-
url: n,
|
|
34
|
-
width: t
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function R(n, t) {
|
|
40
|
-
const e = new Image();
|
|
41
|
-
return e.src = n.url, e.crossOrigin = "anonymous", new Promise((i) => {
|
|
42
|
-
e.onload = () => {
|
|
43
|
-
const o = document.createElement("canvas");
|
|
44
|
-
o.width = t.width, o.height = t.height;
|
|
45
|
-
const r = o.getContext("2d");
|
|
46
|
-
r ? (r.drawImage(e, -t.x, -t.y, n.width, n.height), i(o.toDataURL("image/jpeg"))) : i(n.url);
|
|
47
|
-
}, e.onerror = () => {
|
|
48
|
-
i(n.url);
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function S(n, t) {
|
|
53
|
-
const e = new Image();
|
|
54
|
-
return e.src = n.url, e.crossOrigin = "anonymous", new Promise((i) => {
|
|
55
|
-
e.onload = () => {
|
|
56
|
-
const { height: o, width: r } = g(n.width, n.height, t), c = document.createElement("canvas");
|
|
57
|
-
c.width = r, c.height = o;
|
|
58
|
-
const a = c.getContext("2d");
|
|
59
|
-
a ? (a.fillStyle = "white", a.fillRect(0, 0, r, o), a.translate(r / 2, o / 2), a.rotate(t * Math.PI / 180), a.drawImage(
|
|
60
|
-
e,
|
|
61
|
-
-n.width / 2,
|
|
62
|
-
-n.height / 2,
|
|
63
|
-
n.width,
|
|
64
|
-
n.height
|
|
65
|
-
), a.rotate(-(t * Math.PI) / 180), a.translate(-r / 2, -o / 2), i(c.toDataURL("image/jpeg"))) : i(n.url);
|
|
66
|
-
}, e.onerror = () => {
|
|
67
|
-
i(n.url);
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function b(n) {
|
|
72
|
-
const t = n.getBoundingClientRect(), e = t.width / t.height, i = n.naturalWidth / n.naturalHeight;
|
|
73
|
-
let o, r;
|
|
74
|
-
return i > e ? (o = t.width, r = t.width / i) : (r = t.height, o = t.height * i), { height: r, width: o };
|
|
75
|
-
}
|
|
76
|
-
async function d(n) {
|
|
77
|
-
const t = new Image();
|
|
78
|
-
return t.src = n, await t.decode(), [t.naturalWidth, t.naturalHeight];
|
|
79
|
-
}
|
|
80
|
-
function I(n) {
|
|
81
|
-
const t = n.trim();
|
|
82
|
-
if (!t)
|
|
83
|
-
return !1;
|
|
84
|
-
if (t.startsWith("data:image/") || t.startsWith("blob:"))
|
|
85
|
-
return !0;
|
|
86
|
-
try {
|
|
87
|
-
const e = new URL(t, globalThis.location.href);
|
|
88
|
-
return ["blob:", "data:", "http:", "https:"].includes(e.protocol);
|
|
89
|
-
} catch {
|
|
90
|
-
return !1;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
async function M(n) {
|
|
94
|
-
try {
|
|
95
|
-
const t = await fetch(n), e = t.headers.get("Content-Type");
|
|
96
|
-
if (!e)
|
|
97
|
-
return null;
|
|
98
|
-
const i = e.split("/")[1], o = await t.blob();
|
|
99
|
-
if (!o)
|
|
100
|
-
return null;
|
|
101
|
-
const r = URL.createObjectURL(o), [c, a] = await d(r);
|
|
102
|
-
return {
|
|
103
|
-
fileExtension: i,
|
|
104
|
-
height: a,
|
|
105
|
-
src: r,
|
|
106
|
-
width: c
|
|
107
|
-
};
|
|
108
|
-
} catch {
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function w(n = /* @__PURE__ */ new Date()) {
|
|
113
|
-
const e = [
|
|
114
|
-
"Jan",
|
|
115
|
-
"Feb",
|
|
116
|
-
"Mar",
|
|
117
|
-
"Apr",
|
|
118
|
-
"May",
|
|
119
|
-
"Jun",
|
|
120
|
-
"Jul",
|
|
121
|
-
"Aug",
|
|
122
|
-
"Sep",
|
|
123
|
-
"Oct",
|
|
124
|
-
"Nov",
|
|
125
|
-
"Dec"
|
|
126
|
-
][n.getMonth()], i = n.getDate(), o = n.getFullYear();
|
|
127
|
-
let r = n.getHours();
|
|
128
|
-
const a = r < 12 ? "AM" : "PM";
|
|
129
|
-
r = r % 12, r = r === 0 ? 12 : r;
|
|
130
|
-
const s = n.getMinutes().toString().padStart(2, "0"), h = n.getSeconds().toString().padStart(2, "0"), l = n.getMilliseconds().toString().padStart(3, "0");
|
|
131
|
-
return `Screenshot - ${e} ${i} ${o} ${r}-${s}-${h}-${l} ${a}`;
|
|
132
|
-
}
|
|
133
|
-
function y(n) {
|
|
134
|
-
const t = n.split(".");
|
|
135
|
-
if (t.length <= 1 || n.startsWith(".") && t.length === 2)
|
|
136
|
-
return n.slice(0, 256);
|
|
137
|
-
const e = t.slice(0, -1).join(".").trim();
|
|
138
|
-
return e.length === 0 || e === "image" ? w() : e.slice(0, 256 - t[1].length);
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
S as a,
|
|
142
|
-
R as b,
|
|
143
|
-
m as c,
|
|
144
|
-
d,
|
|
145
|
-
M as e,
|
|
146
|
-
y as f,
|
|
147
|
-
b as g,
|
|
148
|
-
I as i,
|
|
149
|
-
p as r
|
|
150
|
-
};
|