@lit-pigeon/editor 0.2.0 → 0.3.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/dist/index.d.ts +4 -0
- package/dist/index.js +495 -471
- package/dist/pigeon-stock-tab.js +258 -0
- package/dist/templates.js +13 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { css as b, LitElement as g, html as l, nothing as
|
|
1
|
+
import { css as b, LitElement as g, html as l, nothing as te } from "lit";
|
|
2
2
|
import { property as p, state as d, customElement as u } from "lit/decorators.js";
|
|
3
|
-
import { t as s, c as
|
|
4
|
-
import { P as
|
|
5
|
-
import { getAllBlockDefinitions as
|
|
6
|
-
import { unsafeHTML as
|
|
7
|
-
import { l as
|
|
8
|
-
import { styleMap as
|
|
9
|
-
const
|
|
3
|
+
import { t as s, c as Bt, r as po } from "./templates.js";
|
|
4
|
+
import { P as Ur } from "./templates.js";
|
|
5
|
+
import { getAllBlockDefinitions as co, getBlockDefinition as yt, updateBlock as ct, createBlock as Ye, insertBlock as ce, createColumn as Ie, insertRow as oe, createRow as Pe, cloneRowWithNewIds as jt, createBodySelection as Rt, deleteBlock as ho, deleteRow as Lt, duplicateBlock as go, duplicateRow as zt, generateId as Mt, EditorState as Ht, createHistoryPlugin as Ft, undo as uo, redo as bo, InMemoryTemplateStorage as vo, InMemoryRowLibraryStorage as fo, SYSTEM_LINK_TYPES as mo, createDocStep as dt, createDefaultDocument as _o, HISTORY_PLUGIN_NAME as Nt, canUndo as yo, canRedo as xo, createBlockSelection as ht, createRowSelection as Ut, createColumnSelection as $o, moveRow as wo, moveBlock as ko, updateRowAttributes as Co, addColumn as Io, removeColumn as Po, resizeColumns as To } from "@lit-pigeon/core";
|
|
6
|
+
import { unsafeHTML as eo } from "lit/directives/unsafe-html.js";
|
|
7
|
+
import { l as xt, r as So } from "./rich-text.js";
|
|
8
|
+
import { styleMap as Oo } from "lit/directives/style-map.js";
|
|
9
|
+
const Kt = b`
|
|
10
10
|
/* base palette */
|
|
11
11
|
--pigeon-bg: #0f172a; /* slate-900 */
|
|
12
12
|
--pigeon-surface: #1e293b; /* slate-800 */
|
|
@@ -42,7 +42,7 @@ const Ut = b`
|
|
|
42
42
|
0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
43
43
|
--pigeon-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5),
|
|
44
44
|
0 4px 6px -4px rgb(0 0 0 / 0.5);
|
|
45
|
-
`,
|
|
45
|
+
`, Do = b`
|
|
46
46
|
:host {
|
|
47
47
|
/* base palette */
|
|
48
48
|
--pigeon-bg: #ffffff;
|
|
@@ -103,19 +103,19 @@ const Ut = b`
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
:host(.pigeon-dark) {
|
|
106
|
-
${
|
|
106
|
+
${Kt}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
@media (prefers-color-scheme: dark) {
|
|
110
110
|
:host(.pigeon-auto) {
|
|
111
|
-
${
|
|
111
|
+
${Kt}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
`;
|
|
115
|
-
var
|
|
116
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
115
|
+
var Eo = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, xe = (e, t, o, r) => {
|
|
116
|
+
for (var i = r > 1 ? void 0 : r ? Ao(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
117
117
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
118
|
-
return r && i &&
|
|
118
|
+
return r && i && Eo(t, o, i), i;
|
|
119
119
|
};
|
|
120
120
|
let K = class extends g {
|
|
121
121
|
constructor() {
|
|
@@ -469,38 +469,38 @@ K.styles = b`
|
|
|
469
469
|
font-weight: 400;
|
|
470
470
|
}
|
|
471
471
|
`;
|
|
472
|
-
|
|
472
|
+
xe([
|
|
473
473
|
p({ type: Boolean, attribute: "can-undo" })
|
|
474
474
|
], K.prototype, "canUndo", 2);
|
|
475
|
-
|
|
475
|
+
xe([
|
|
476
476
|
p({ type: Boolean, attribute: "can-redo" })
|
|
477
477
|
], K.prototype, "canRedo", 2);
|
|
478
|
-
|
|
478
|
+
xe([
|
|
479
479
|
p({ type: String })
|
|
480
480
|
], K.prototype, "device", 2);
|
|
481
|
-
|
|
481
|
+
xe([
|
|
482
482
|
p({ type: Boolean })
|
|
483
483
|
], K.prototype, "fullscreen", 2);
|
|
484
|
-
|
|
484
|
+
xe([
|
|
485
485
|
d()
|
|
486
486
|
], K.prototype, "_exportMenuOpen", 2);
|
|
487
|
-
K =
|
|
487
|
+
K = xe([
|
|
488
488
|
u("pigeon-toolbar")
|
|
489
489
|
], K);
|
|
490
|
-
let
|
|
491
|
-
function
|
|
492
|
-
|
|
490
|
+
let $t = null;
|
|
491
|
+
function Bo(e) {
|
|
492
|
+
$t = e;
|
|
493
493
|
}
|
|
494
494
|
function De() {
|
|
495
|
-
return
|
|
495
|
+
return $t;
|
|
496
496
|
}
|
|
497
497
|
function Xe() {
|
|
498
|
-
|
|
498
|
+
$t = null;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
e.dataTransfer && (e.dataTransfer.setData("application/json", JSON.stringify(t)), e.dataTransfer.effectAllowed = "move"),
|
|
500
|
+
function wt(e, t) {
|
|
501
|
+
e.dataTransfer && (e.dataTransfer.setData("application/json", JSON.stringify(t)), e.dataTransfer.effectAllowed = "move"), Bo(t);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Hr(e) {
|
|
504
504
|
if (e.dataTransfer)
|
|
505
505
|
try {
|
|
506
506
|
const t = e.dataTransfer.getData("application/json");
|
|
@@ -509,12 +509,12 @@ function zr(e) {
|
|
|
509
509
|
}
|
|
510
510
|
return De();
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
512
|
+
var jo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, $e = (e, t, o, r) => {
|
|
513
|
+
for (var i = r > 1 ? void 0 : r ? Ro(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
514
514
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
515
|
-
return r && i &&
|
|
515
|
+
return r && i && jo(t, o, i), i;
|
|
516
516
|
};
|
|
517
|
-
const
|
|
517
|
+
const Lo = {
|
|
518
518
|
text: "T",
|
|
519
519
|
image: "[]",
|
|
520
520
|
button: "[B]",
|
|
@@ -528,7 +528,7 @@ let W = class extends g {
|
|
|
528
528
|
super(...arguments), this.label = "", this.icon = "", this.dragType = "palette-block", this.blockType = "", this.columnCount = 1;
|
|
529
529
|
}
|
|
530
530
|
render() {
|
|
531
|
-
const e =
|
|
531
|
+
const e = Lo[this.icon] ?? this.icon ?? "?", t = this.dragType === "palette-row" ? "Add layout" : "Add block";
|
|
532
532
|
return l`
|
|
533
533
|
<div
|
|
534
534
|
class="item"
|
|
@@ -560,7 +560,7 @@ let W = class extends g {
|
|
|
560
560
|
));
|
|
561
561
|
}
|
|
562
562
|
_onDragStart(e) {
|
|
563
|
-
|
|
563
|
+
wt(e, {
|
|
564
564
|
type: this.dragType,
|
|
565
565
|
blockType: this.blockType || void 0,
|
|
566
566
|
columnCount: this.columnCount
|
|
@@ -641,30 +641,30 @@ W.styles = b`
|
|
|
641
641
|
color: var(--pigeon-text, #1e293b);
|
|
642
642
|
}
|
|
643
643
|
`;
|
|
644
|
-
|
|
644
|
+
$e([
|
|
645
645
|
p({ type: String })
|
|
646
646
|
], W.prototype, "label", 2);
|
|
647
|
-
|
|
647
|
+
$e([
|
|
648
648
|
p({ type: String })
|
|
649
649
|
], W.prototype, "icon", 2);
|
|
650
|
-
|
|
650
|
+
$e([
|
|
651
651
|
p({ type: String, attribute: "drag-type" })
|
|
652
652
|
], W.prototype, "dragType", 2);
|
|
653
|
-
|
|
653
|
+
$e([
|
|
654
654
|
p({ type: String, attribute: "block-type" })
|
|
655
655
|
], W.prototype, "blockType", 2);
|
|
656
|
-
|
|
656
|
+
$e([
|
|
657
657
|
p({ type: Number, attribute: "column-count" })
|
|
658
658
|
], W.prototype, "columnCount", 2);
|
|
659
|
-
W =
|
|
659
|
+
W = $e([
|
|
660
660
|
u("pigeon-palette-item")
|
|
661
661
|
], W);
|
|
662
|
-
var
|
|
663
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
662
|
+
var zo = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, kt = (e, t, o, r) => {
|
|
663
|
+
for (var i = r > 1 ? void 0 : r ? Mo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
664
664
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
665
|
-
return r && i &&
|
|
665
|
+
return r && i && zo(t, o, i), i;
|
|
666
666
|
};
|
|
667
|
-
const
|
|
667
|
+
const Ho = {
|
|
668
668
|
text: "T",
|
|
669
669
|
image: "Img",
|
|
670
670
|
button: "Btn",
|
|
@@ -708,7 +708,7 @@ let Ee = class extends g {
|
|
|
708
708
|
}
|
|
709
709
|
_renderBlock(e, t, o) {
|
|
710
710
|
var a;
|
|
711
|
-
const r = ((a = this.selection) == null ? void 0 : a.type) === "block" && this.selection.blockId === e.id, i =
|
|
711
|
+
const r = ((a = this.selection) == null ? void 0 : a.type) === "block" && this.selection.blockId === e.id, i = Ho[e.type] ?? "?", n = e.type.charAt(0).toUpperCase() + e.type.slice(1);
|
|
712
712
|
return l`
|
|
713
713
|
<div
|
|
714
714
|
class="tree-item indent-3 ${r ? "selected" : ""}"
|
|
@@ -798,29 +798,29 @@ Ee.styles = b`
|
|
|
798
798
|
padding: 8px 8px 4px;
|
|
799
799
|
}
|
|
800
800
|
`;
|
|
801
|
-
|
|
801
|
+
kt([
|
|
802
802
|
p({ type: Object })
|
|
803
803
|
], Ee.prototype, "doc", 2);
|
|
804
|
-
|
|
804
|
+
kt([
|
|
805
805
|
p({ type: Object })
|
|
806
806
|
], Ee.prototype, "selection", 2);
|
|
807
|
-
Ee =
|
|
807
|
+
Ee = kt([
|
|
808
808
|
u("pigeon-layers")
|
|
809
809
|
], Ee);
|
|
810
|
-
var
|
|
811
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
810
|
+
var Fo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, M = (e, t, o, r) => {
|
|
811
|
+
for (var i = r > 1 ? void 0 : r ? No(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
812
812
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
813
|
-
return r && i &&
|
|
813
|
+
return r && i && Fo(t, o, i), i;
|
|
814
814
|
};
|
|
815
815
|
let gt = null;
|
|
816
|
-
function
|
|
816
|
+
function Uo() {
|
|
817
817
|
return gt || (gt = import("./pigeon-brand-tab.js")), gt;
|
|
818
818
|
}
|
|
819
819
|
let ut = null;
|
|
820
|
-
function
|
|
820
|
+
function Ko() {
|
|
821
821
|
return ut || (ut = import("./pigeon-saved-tab.js")), ut;
|
|
822
822
|
}
|
|
823
|
-
const
|
|
823
|
+
const Wo = [
|
|
824
824
|
{ labelKey: "palette.layout.1-col", columns: 1, icon: "[=]" },
|
|
825
825
|
{ labelKey: "palette.layout.2-col", columns: 2, icon: "[||]" },
|
|
826
826
|
{ labelKey: "palette.layout.3-col", columns: 3, icon: "[|||]" },
|
|
@@ -829,13 +829,13 @@ const Ko = [
|
|
|
829
829
|
let I = class extends g {
|
|
830
830
|
constructor() {
|
|
831
831
|
super(...arguments), this.selection = null, this.brandKit = null, this.rowLibrary = null, this._blockDefs = [], this._activeTab = "content", this._brandTabLoaded = !1, this._savedTabLoaded = !1, this._handleBrandTabClick = async () => {
|
|
832
|
-
this._activeTab = "brand", this._brandTabLoaded || (await
|
|
832
|
+
this._activeTab = "brand", this._brandTabLoaded || (await Uo(), this._brandTabLoaded = !0);
|
|
833
833
|
}, this._handleSavedTabClick = async () => {
|
|
834
|
-
this._activeTab = "saved", this._savedTabLoaded || (await
|
|
834
|
+
this._activeTab = "saved", this._savedTabLoaded || (await Ko(), this._savedTabLoaded = !0);
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
837
|
connectedCallback() {
|
|
838
|
-
super.connectedCallback(), this._blockDefs =
|
|
838
|
+
super.connectedCallback(), this._blockDefs = co();
|
|
839
839
|
}
|
|
840
840
|
updated(e) {
|
|
841
841
|
e.has("brandKit") && !this.brandKit && this._activeTab === "brand" && (this._activeTab = "content");
|
|
@@ -909,7 +909,7 @@ let I = class extends g {
|
|
|
909
909
|
<div class="section">
|
|
910
910
|
<div class="section-header">${s("palette.layout.section-layout")}</div>
|
|
911
911
|
<div class="items">
|
|
912
|
-
${
|
|
912
|
+
${Wo.map((e) => l`
|
|
913
913
|
<pigeon-palette-item part="palette-item"
|
|
914
914
|
label="${s(e.labelKey)}"
|
|
915
915
|
icon="${e.icon}"
|
|
@@ -1042,7 +1042,7 @@ M([
|
|
|
1042
1042
|
I = M([
|
|
1043
1043
|
u("pigeon-palette")
|
|
1044
1044
|
], I);
|
|
1045
|
-
function
|
|
1045
|
+
function Vo(e, t) {
|
|
1046
1046
|
if (t.length === 0) return 0;
|
|
1047
1047
|
for (let o = 0; o < t.length; o++) {
|
|
1048
1048
|
const r = t[o].getBoundingClientRect(), i = r.top + r.height / 2;
|
|
@@ -1051,7 +1051,7 @@ function Wo(e, t) {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
return t.length;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function Yo(e, t) {
|
|
1055
1055
|
if (t.length === 0) return 0;
|
|
1056
1056
|
for (let o = 0; o < t.length; o++) {
|
|
1057
1057
|
const r = t[o].getBoundingClientRect(), i = r.top + r.height / 2;
|
|
@@ -1060,13 +1060,13 @@ function Vo(e, t) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
return t.length;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function to(e, t) {
|
|
1064
1064
|
return e < 0 || t === e || t === e + 1 ? null : t > e ? t - 1 : t;
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1067
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1066
|
+
var qo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, oo = (e, t, o, r) => {
|
|
1067
|
+
for (var i = r > 1 ? void 0 : r ? Xo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1068
1068
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1069
|
-
return r && i &&
|
|
1069
|
+
return r && i && qo(t, o, i), i;
|
|
1070
1070
|
};
|
|
1071
1071
|
let Ge = class extends g {
|
|
1072
1072
|
constructor() {
|
|
@@ -1125,18 +1125,18 @@ Ge.styles = b`
|
|
|
1125
1125
|
right: 4px;
|
|
1126
1126
|
}
|
|
1127
1127
|
`;
|
|
1128
|
-
|
|
1128
|
+
oo([
|
|
1129
1129
|
p({ type: Boolean, reflect: !0 })
|
|
1130
1130
|
], Ge.prototype, "visible", 2);
|
|
1131
|
-
Ge =
|
|
1131
|
+
Ge = oo([
|
|
1132
1132
|
u("pigeon-drop-indicator")
|
|
1133
1133
|
], Ge);
|
|
1134
|
-
var
|
|
1135
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1134
|
+
var Go = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, tt = (e, t, o, r) => {
|
|
1135
|
+
for (var i = r > 1 ? void 0 : r ? Jo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1136
1136
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1137
|
-
return r && i &&
|
|
1137
|
+
return r && i && Go(t, o, i), i;
|
|
1138
1138
|
};
|
|
1139
|
-
let
|
|
1139
|
+
let de = class extends g {
|
|
1140
1140
|
constructor() {
|
|
1141
1141
|
super(...arguments), this.selected = !1, this.editing = !1, this._editor = null, this._editorHost = null;
|
|
1142
1142
|
}
|
|
@@ -1164,7 +1164,7 @@ let ce = class extends g {
|
|
|
1164
1164
|
const e = this.renderRoot.querySelector(".content");
|
|
1165
1165
|
if (!e) return;
|
|
1166
1166
|
this._editorHost = e;
|
|
1167
|
-
const t = await
|
|
1167
|
+
const t = await xt();
|
|
1168
1168
|
!this.editing || !this._editorHost || (this._editor = t.createEditor({
|
|
1169
1169
|
element: this._editorHost,
|
|
1170
1170
|
initialHTML: this.block.values.content,
|
|
@@ -1208,7 +1208,7 @@ let ce = class extends g {
|
|
|
1208
1208
|
}));
|
|
1209
1209
|
}
|
|
1210
1210
|
};
|
|
1211
|
-
|
|
1211
|
+
de.styles = b`
|
|
1212
1212
|
:host {
|
|
1213
1213
|
display: block;
|
|
1214
1214
|
cursor: pointer;
|
|
@@ -1250,20 +1250,20 @@ ce.styles = b`
|
|
|
1250
1250
|
`;
|
|
1251
1251
|
tt([
|
|
1252
1252
|
p({ type: Object })
|
|
1253
|
-
],
|
|
1253
|
+
], de.prototype, "block", 2);
|
|
1254
1254
|
tt([
|
|
1255
1255
|
p({ type: Boolean, reflect: !0 })
|
|
1256
|
-
],
|
|
1256
|
+
], de.prototype, "selected", 2);
|
|
1257
1257
|
tt([
|
|
1258
1258
|
p({ type: Boolean, reflect: !0 })
|
|
1259
|
-
],
|
|
1260
|
-
|
|
1259
|
+
], de.prototype, "editing", 2);
|
|
1260
|
+
de = tt([
|
|
1261
1261
|
u("pigeon-text-block")
|
|
1262
|
-
],
|
|
1263
|
-
var
|
|
1264
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1262
|
+
], de);
|
|
1263
|
+
var Zo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, Ct = (e, t, o, r) => {
|
|
1264
|
+
for (var i = r > 1 ? void 0 : r ? Qo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1265
1265
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1266
|
-
return r && i &&
|
|
1266
|
+
return r && i && Zo(t, o, i), i;
|
|
1267
1267
|
};
|
|
1268
1268
|
let Ae = class extends g {
|
|
1269
1269
|
constructor() {
|
|
@@ -1351,21 +1351,21 @@ Ae.styles = b`
|
|
|
1351
1351
|
opacity: 0.5;
|
|
1352
1352
|
}
|
|
1353
1353
|
`;
|
|
1354
|
-
|
|
1354
|
+
Ct([
|
|
1355
1355
|
p({ type: Object })
|
|
1356
1356
|
], Ae.prototype, "block", 2);
|
|
1357
|
-
|
|
1357
|
+
Ct([
|
|
1358
1358
|
p({ type: Boolean, reflect: !0 })
|
|
1359
1359
|
], Ae.prototype, "selected", 2);
|
|
1360
|
-
Ae =
|
|
1360
|
+
Ae = Ct([
|
|
1361
1361
|
u("pigeon-image-block")
|
|
1362
1362
|
], Ae);
|
|
1363
|
-
var
|
|
1364
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1363
|
+
var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ot = (e, t, o, r) => {
|
|
1364
|
+
for (var i = r > 1 ? void 0 : r ? ti(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1365
1365
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1366
|
-
return r && i &&
|
|
1366
|
+
return r && i && ei(t, o, i), i;
|
|
1367
1367
|
};
|
|
1368
|
-
let
|
|
1368
|
+
let he = class extends g {
|
|
1369
1369
|
constructor() {
|
|
1370
1370
|
super(...arguments), this.selected = !1, this.editing = !1, this._editor = null, this._editorHost = null;
|
|
1371
1371
|
}
|
|
@@ -1391,7 +1391,7 @@ let de = class extends g {
|
|
|
1391
1391
|
href="${e.href}"
|
|
1392
1392
|
style="${i}"
|
|
1393
1393
|
@click=${this._preventNav}
|
|
1394
|
-
>${this.editing ? l`` :
|
|
1394
|
+
>${this.editing ? l`` : eo(n)}</a>
|
|
1395
1395
|
</div>
|
|
1396
1396
|
`;
|
|
1397
1397
|
}
|
|
@@ -1405,7 +1405,7 @@ let de = class extends g {
|
|
|
1405
1405
|
const e = this.renderRoot.querySelector(".button");
|
|
1406
1406
|
if (!e) return;
|
|
1407
1407
|
this._editorHost = e;
|
|
1408
|
-
const t = await
|
|
1408
|
+
const t = await xt();
|
|
1409
1409
|
!this.editing || !this._editorHost || (this._editor = t.createEditor({
|
|
1410
1410
|
element: this._editorHost,
|
|
1411
1411
|
initialHTML: this.block.values.content,
|
|
@@ -1452,7 +1452,7 @@ let de = class extends g {
|
|
|
1452
1452
|
}));
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
|
-
|
|
1455
|
+
he.styles = b`
|
|
1456
1456
|
:host {
|
|
1457
1457
|
display: block;
|
|
1458
1458
|
cursor: pointer;
|
|
@@ -1505,20 +1505,20 @@ de.styles = b`
|
|
|
1505
1505
|
`;
|
|
1506
1506
|
ot([
|
|
1507
1507
|
p({ type: Object })
|
|
1508
|
-
],
|
|
1508
|
+
], he.prototype, "block", 2);
|
|
1509
1509
|
ot([
|
|
1510
1510
|
p({ type: Boolean, reflect: !0 })
|
|
1511
|
-
],
|
|
1511
|
+
], he.prototype, "selected", 2);
|
|
1512
1512
|
ot([
|
|
1513
1513
|
p({ type: Boolean, reflect: !0 })
|
|
1514
|
-
],
|
|
1515
|
-
|
|
1514
|
+
], he.prototype, "editing", 2);
|
|
1515
|
+
he = ot([
|
|
1516
1516
|
u("pigeon-button-block")
|
|
1517
|
-
],
|
|
1518
|
-
var
|
|
1519
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1517
|
+
], he);
|
|
1518
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, It = (e, t, o, r) => {
|
|
1519
|
+
for (var i = r > 1 ? void 0 : r ? ii(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1520
1520
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1521
|
-
return r && i &&
|
|
1521
|
+
return r && i && oi(t, o, i), i;
|
|
1522
1522
|
};
|
|
1523
1523
|
let Be = class extends g {
|
|
1524
1524
|
constructor() {
|
|
@@ -1575,19 +1575,19 @@ Be.styles = b`
|
|
|
1575
1575
|
margin: 0;
|
|
1576
1576
|
}
|
|
1577
1577
|
`;
|
|
1578
|
-
|
|
1578
|
+
It([
|
|
1579
1579
|
p({ type: Object })
|
|
1580
1580
|
], Be.prototype, "block", 2);
|
|
1581
|
-
|
|
1581
|
+
It([
|
|
1582
1582
|
p({ type: Boolean, reflect: !0 })
|
|
1583
1583
|
], Be.prototype, "selected", 2);
|
|
1584
|
-
Be =
|
|
1584
|
+
Be = It([
|
|
1585
1585
|
u("pigeon-divider-block")
|
|
1586
1586
|
], Be);
|
|
1587
|
-
var
|
|
1588
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1587
|
+
var ri = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, Pt = (e, t, o, r) => {
|
|
1588
|
+
for (var i = r > 1 ? void 0 : r ? ni(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1589
1589
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1590
|
-
return r && i &&
|
|
1590
|
+
return r && i && ri(t, o, i), i;
|
|
1591
1591
|
};
|
|
1592
1592
|
let je = class extends g {
|
|
1593
1593
|
constructor() {
|
|
@@ -1656,21 +1656,21 @@ je.styles = b`
|
|
|
1656
1656
|
opacity: 1;
|
|
1657
1657
|
}
|
|
1658
1658
|
`;
|
|
1659
|
-
|
|
1659
|
+
Pt([
|
|
1660
1660
|
p({ type: Object })
|
|
1661
1661
|
], je.prototype, "block", 2);
|
|
1662
|
-
|
|
1662
|
+
Pt([
|
|
1663
1663
|
p({ type: Boolean, reflect: !0 })
|
|
1664
1664
|
], je.prototype, "selected", 2);
|
|
1665
|
-
je =
|
|
1665
|
+
je = Pt([
|
|
1666
1666
|
u("pigeon-spacer-block")
|
|
1667
1667
|
], je);
|
|
1668
|
-
var
|
|
1669
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1668
|
+
var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Tt = (e, t, o, r) => {
|
|
1669
|
+
for (var i = r > 1 ? void 0 : r ? si(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1670
1670
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1671
|
-
return r && i &&
|
|
1671
|
+
return r && i && ai(t, o, i), i;
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1673
|
+
const li = {
|
|
1674
1674
|
facebook: "f",
|
|
1675
1675
|
twitter: "𝕏",
|
|
1676
1676
|
instagram: "ig",
|
|
@@ -1678,7 +1678,7 @@ const si = {
|
|
|
1678
1678
|
youtube: "▶",
|
|
1679
1679
|
tiktok: "♪",
|
|
1680
1680
|
custom: "★"
|
|
1681
|
-
},
|
|
1681
|
+
}, pi = {
|
|
1682
1682
|
facebook: "#1877F2",
|
|
1683
1683
|
twitter: "#000000",
|
|
1684
1684
|
instagram: "#E4405F",
|
|
@@ -1707,7 +1707,7 @@ let Re = class extends g {
|
|
|
1707
1707
|
${e.icons.length === 0 ? l`<div class="empty-state">Add social icons in properties</div>` : l`
|
|
1708
1708
|
<div class="icons-container" style="justify-content: ${o[e.alignment]}; gap: ${e.spacing}px;">
|
|
1709
1709
|
${e.icons.map((r) => {
|
|
1710
|
-
const i =
|
|
1710
|
+
const i = pi[r.type] ?? "#6b7280", n = li[r.type] ?? "?";
|
|
1711
1711
|
return l`
|
|
1712
1712
|
<a
|
|
1713
1713
|
class="social-icon"
|
|
@@ -1782,19 +1782,19 @@ Re.styles = b`
|
|
|
1782
1782
|
font-size: 13px;
|
|
1783
1783
|
}
|
|
1784
1784
|
`;
|
|
1785
|
-
|
|
1785
|
+
Tt([
|
|
1786
1786
|
p({ type: Object })
|
|
1787
1787
|
], Re.prototype, "block", 2);
|
|
1788
|
-
|
|
1788
|
+
Tt([
|
|
1789
1789
|
p({ type: Boolean, reflect: !0 })
|
|
1790
1790
|
], Re.prototype, "selected", 2);
|
|
1791
|
-
Re =
|
|
1791
|
+
Re = Tt([
|
|
1792
1792
|
u("pigeon-social-block")
|
|
1793
1793
|
], Re);
|
|
1794
|
-
var
|
|
1795
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1794
|
+
var ci = Object.defineProperty, di = Object.getOwnPropertyDescriptor, St = (e, t, o, r) => {
|
|
1795
|
+
for (var i = r > 1 ? void 0 : r ? di(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1796
1796
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1797
|
-
return r && i &&
|
|
1797
|
+
return r && i && ci(t, o, i), i;
|
|
1798
1798
|
};
|
|
1799
1799
|
let Le = class extends g {
|
|
1800
1800
|
constructor() {
|
|
@@ -1861,21 +1861,21 @@ Le.styles = b`
|
|
|
1861
1861
|
font-size: 13px;
|
|
1862
1862
|
}
|
|
1863
1863
|
`;
|
|
1864
|
-
|
|
1864
|
+
St([
|
|
1865
1865
|
p({ type: Object })
|
|
1866
1866
|
], Le.prototype, "block", 2);
|
|
1867
|
-
|
|
1867
|
+
St([
|
|
1868
1868
|
p({ type: Boolean, reflect: !0 })
|
|
1869
1869
|
], Le.prototype, "selected", 2);
|
|
1870
|
-
Le =
|
|
1870
|
+
Le = St([
|
|
1871
1871
|
u("pigeon-html-block")
|
|
1872
1872
|
], Le);
|
|
1873
|
-
var
|
|
1874
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1873
|
+
var hi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, it = (e, t, o, r) => {
|
|
1874
|
+
for (var i = r > 1 ? void 0 : r ? gi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1875
1875
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
1876
|
-
return r && i &&
|
|
1876
|
+
return r && i && hi(t, o, i), i;
|
|
1877
1877
|
};
|
|
1878
|
-
let
|
|
1878
|
+
let ge = class extends g {
|
|
1879
1879
|
constructor() {
|
|
1880
1880
|
super(...arguments), this.selected = !1, this.editing = !1, this._editor = null, this._editorHost = null;
|
|
1881
1881
|
}
|
|
@@ -1916,7 +1916,7 @@ let he = class extends g {
|
|
|
1916
1916
|
const e = this.renderRoot.querySelector(".content");
|
|
1917
1917
|
if (!e) return;
|
|
1918
1918
|
this._editorHost = e;
|
|
1919
|
-
const t = await
|
|
1919
|
+
const t = await xt();
|
|
1920
1920
|
!this.editing || !this._editorHost || (this._editor = t.createEditor({
|
|
1921
1921
|
element: this._editorHost,
|
|
1922
1922
|
initialHTML: this.block.values.content || "<p></p>",
|
|
@@ -1960,7 +1960,7 @@ let he = class extends g {
|
|
|
1960
1960
|
}));
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
|
-
|
|
1963
|
+
ge.styles = b`
|
|
1964
1964
|
:host {
|
|
1965
1965
|
display: block;
|
|
1966
1966
|
cursor: pointer;
|
|
@@ -2022,20 +2022,20 @@ he.styles = b`
|
|
|
2022
2022
|
`;
|
|
2023
2023
|
it([
|
|
2024
2024
|
p({ type: Object })
|
|
2025
|
-
],
|
|
2025
|
+
], ge.prototype, "block", 2);
|
|
2026
2026
|
it([
|
|
2027
2027
|
p({ type: Boolean, reflect: !0 })
|
|
2028
|
-
],
|
|
2028
|
+
], ge.prototype, "selected", 2);
|
|
2029
2029
|
it([
|
|
2030
2030
|
p({ type: Boolean, reflect: !0 })
|
|
2031
|
-
],
|
|
2032
|
-
|
|
2031
|
+
], ge.prototype, "editing", 2);
|
|
2032
|
+
ge = it([
|
|
2033
2033
|
u("pigeon-hero-block")
|
|
2034
|
-
],
|
|
2035
|
-
var
|
|
2036
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2034
|
+
], ge);
|
|
2035
|
+
var ui = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, Ot = (e, t, o, r) => {
|
|
2036
|
+
for (var i = r > 1 ? void 0 : r ? bi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2037
2037
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
2038
|
-
return r && i &&
|
|
2038
|
+
return r && i && ui(t, o, i), i;
|
|
2039
2039
|
};
|
|
2040
2040
|
let ze = class extends g {
|
|
2041
2041
|
constructor() {
|
|
@@ -2128,19 +2128,19 @@ ze.styles = b`
|
|
|
2128
2128
|
font-size: 13px;
|
|
2129
2129
|
}
|
|
2130
2130
|
`;
|
|
2131
|
-
|
|
2131
|
+
Ot([
|
|
2132
2132
|
p({ type: Object })
|
|
2133
2133
|
], ze.prototype, "block", 2);
|
|
2134
|
-
|
|
2134
|
+
Ot([
|
|
2135
2135
|
p({ type: Boolean, reflect: !0 })
|
|
2136
2136
|
], ze.prototype, "selected", 2);
|
|
2137
|
-
ze =
|
|
2137
|
+
ze = Ot([
|
|
2138
2138
|
u("pigeon-navbar-block")
|
|
2139
2139
|
], ze);
|
|
2140
|
-
var
|
|
2141
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2140
|
+
var vi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, X = (e, t, o, r) => {
|
|
2141
|
+
for (var i = r > 1 ? void 0 : r ? fi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2142
2142
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
2143
|
-
return r && i &&
|
|
2143
|
+
return r && i && vi(t, o, i), i;
|
|
2144
2144
|
};
|
|
2145
2145
|
let O = class extends g {
|
|
2146
2146
|
constructor() {
|
|
@@ -2228,7 +2228,7 @@ let O = class extends g {
|
|
|
2228
2228
|
* failing with "Unknown block type".
|
|
2229
2229
|
*/
|
|
2230
2230
|
_renderCustomBlock(e, t) {
|
|
2231
|
-
const o =
|
|
2231
|
+
const o = yt(e.type), r = e, i = o != null && o.renderCanvas ? eo(o.renderCanvas(r)) : l`<span class="custom-block__label"
|
|
2232
2232
|
>${(o == null ? void 0 : o.label) ?? e.type}</span
|
|
2233
2233
|
>`;
|
|
2234
2234
|
return l`<div
|
|
@@ -2259,7 +2259,7 @@ let O = class extends g {
|
|
|
2259
2259
|
"pigeon-text-block, pigeon-image-block, pigeon-button-block, pigeon-divider-block, pigeon-spacer-block, pigeon-social-block, pigeon-html-block, pigeon-hero-block, pigeon-navbar-block, .custom-block"
|
|
2260
2260
|
)
|
|
2261
2261
|
);
|
|
2262
|
-
this._dropIndex =
|
|
2262
|
+
this._dropIndex = Yo(e.clientY, o);
|
|
2263
2263
|
}
|
|
2264
2264
|
_onDragLeave(e) {
|
|
2265
2265
|
const t = this.getBoundingClientRect();
|
|
@@ -2271,7 +2271,7 @@ let O = class extends g {
|
|
|
2271
2271
|
e.preventDefault(), e.stopPropagation();
|
|
2272
2272
|
let o = this._dropIndex >= 0 ? this._dropIndex : this.column.blocks.length;
|
|
2273
2273
|
if (t.type === "existing-block" && t.rowId === this.rowId && t.columnId === this.column.id) {
|
|
2274
|
-
const r = this.column.blocks.findIndex((n) => n.id === t.blockId), i =
|
|
2274
|
+
const r = this.column.blocks.findIndex((n) => n.id === t.blockId), i = to(r, o);
|
|
2275
2275
|
if (i === null) {
|
|
2276
2276
|
this._resetDragState();
|
|
2277
2277
|
return;
|
|
@@ -2293,7 +2293,7 @@ let O = class extends g {
|
|
|
2293
2293
|
this._isDragOver = !1, this._dropIndex = -1, Xe();
|
|
2294
2294
|
}
|
|
2295
2295
|
_onBlockDragStart(e, t) {
|
|
2296
|
-
if (
|
|
2296
|
+
if (wt(e, {
|
|
2297
2297
|
type: "existing-block",
|
|
2298
2298
|
blockId: t,
|
|
2299
2299
|
rowId: this.rowId,
|
|
@@ -2448,10 +2448,10 @@ X([
|
|
|
2448
2448
|
O = X([
|
|
2449
2449
|
u("pigeon-column")
|
|
2450
2450
|
], O);
|
|
2451
|
-
var
|
|
2452
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2451
|
+
var mi = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, G = (e, t, o, r) => {
|
|
2452
|
+
for (var i = r > 1 ? void 0 : r ? _i(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2453
2453
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
2454
|
-
return r && i &&
|
|
2454
|
+
return r && i && mi(t, o, i), i;
|
|
2455
2455
|
};
|
|
2456
2456
|
let D = class extends g {
|
|
2457
2457
|
constructor() {
|
|
@@ -2600,7 +2600,7 @@ let D = class extends g {
|
|
|
2600
2600
|
}));
|
|
2601
2601
|
}
|
|
2602
2602
|
_onDragStart(e) {
|
|
2603
|
-
if (
|
|
2603
|
+
if (wt(e, {
|
|
2604
2604
|
type: "existing-row",
|
|
2605
2605
|
rowId: this.row.id
|
|
2606
2606
|
}), e.dataTransfer) {
|
|
@@ -2768,10 +2768,10 @@ G([
|
|
|
2768
2768
|
D = G([
|
|
2769
2769
|
u("pigeon-row")
|
|
2770
2770
|
], D);
|
|
2771
|
-
var
|
|
2772
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2771
|
+
var yi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, H = (e, t, o, r) => {
|
|
2772
|
+
for (var i = r > 1 ? void 0 : r ? xi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2773
2773
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
2774
|
-
return r && i &&
|
|
2774
|
+
return r && i && yi(t, o, i), i;
|
|
2775
2775
|
};
|
|
2776
2776
|
let P = class extends g {
|
|
2777
2777
|
constructor() {
|
|
@@ -2877,7 +2877,7 @@ let P = class extends g {
|
|
|
2877
2877
|
const o = Array.from(
|
|
2878
2878
|
this.renderRoot.querySelectorAll("pigeon-row")
|
|
2879
2879
|
);
|
|
2880
|
-
this._rowDropIndex =
|
|
2880
|
+
this._rowDropIndex = Vo(e.clientY, o);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
_onDragLeave(e) {
|
|
@@ -2910,7 +2910,7 @@ let P = class extends g {
|
|
|
2910
2910
|
composed: !0
|
|
2911
2911
|
}));
|
|
2912
2912
|
} else if (t.type === "existing-row" && t.rowId) {
|
|
2913
|
-
const o = this.doc.body.rows.findIndex((n) => n.id === t.rowId), r = this._rowDropIndex >= 0 ? this._rowDropIndex : this.doc.body.rows.length, i =
|
|
2913
|
+
const o = this.doc.body.rows.findIndex((n) => n.id === t.rowId), r = this._rowDropIndex >= 0 ? this._rowDropIndex : this.doc.body.rows.length, i = to(o, r);
|
|
2914
2914
|
i !== null && this.dispatchEvent(new CustomEvent("row-move", {
|
|
2915
2915
|
detail: { rowId: t.rowId, toIndex: i },
|
|
2916
2916
|
bubbles: !0,
|
|
@@ -3091,50 +3091,50 @@ P = H([
|
|
|
3091
3091
|
* Copyright 2017 Google LLC
|
|
3092
3092
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3093
3093
|
*/
|
|
3094
|
-
const Se = globalThis,
|
|
3095
|
-
\f\r]`, Te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3096
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
3097
|
-
function
|
|
3098
|
-
if (!
|
|
3099
|
-
return
|
|
3094
|
+
const Se = globalThis, Wt = (e) => e, Je = Se.trustedTypes, Vt = Je ? Je.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, io = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, ro = "?" + U, $i = `<${ro}>`, ne = document, Ze = () => ne.createComment(""), Me = (e) => e === null || typeof e != "object" && typeof e != "function", Dt = Array.isArray, wi = (e) => Dt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", bt = `[
|
|
3095
|
+
\f\r]`, Te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yt = /-->/g, qt = />/g, ie = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
3096
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Gt = /"/g, no = /^(?:script|style|textarea|title)$/i, He = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), re = ne.createTreeWalker(ne, 129);
|
|
3097
|
+
function ao(e, t) {
|
|
3098
|
+
if (!Dt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
3099
|
+
return Vt !== void 0 ? Vt.createHTML(t) : t;
|
|
3100
3100
|
}
|
|
3101
|
-
const
|
|
3101
|
+
const ki = (e, t) => {
|
|
3102
3102
|
const o = e.length - 1, r = [];
|
|
3103
3103
|
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = Te;
|
|
3104
3104
|
for (let h = 0; h < o; h++) {
|
|
3105
3105
|
const c = e[h];
|
|
3106
3106
|
let v, m, f = -1, R = 0;
|
|
3107
|
-
for (; R < c.length && (a.lastIndex = R, m = a.exec(c), m !== null); ) R = a.lastIndex, a === Te ? m[1] === "!--" ? a =
|
|
3108
|
-
const N = a ===
|
|
3109
|
-
n += a === Te ? c +
|
|
3107
|
+
for (; R < c.length && (a.lastIndex = R, m = a.exec(c), m !== null); ) R = a.lastIndex, a === Te ? m[1] === "!--" ? a = Yt : m[1] !== void 0 ? a = qt : m[2] !== void 0 ? (no.test(m[2]) && (i = RegExp("</" + m[2], "g")), a = ie) : m[3] !== void 0 && (a = ie) : a === ie ? m[0] === ">" ? (a = i ?? Te, f = -1) : m[1] === void 0 ? f = -2 : (f = a.lastIndex - m[2].length, v = m[1], a = m[3] === void 0 ? ie : m[3] === '"' ? Gt : Xt) : a === Gt || a === Xt ? a = ie : a === Yt || a === qt ? a = Te : (a = ie, i = void 0);
|
|
3108
|
+
const N = a === ie && e[h + 1].startsWith("/>") ? " " : "";
|
|
3109
|
+
n += a === Te ? c + $i : f >= 0 ? (r.push(v), c.slice(0, f) + io + c.slice(f) + U + N) : c + U + (f === -2 ? h : N);
|
|
3110
3110
|
}
|
|
3111
|
-
return [
|
|
3111
|
+
return [ao(e, n + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
3112
3112
|
};
|
|
3113
3113
|
class Fe {
|
|
3114
3114
|
constructor({ strings: t, _$litType$: o }, r) {
|
|
3115
3115
|
let i;
|
|
3116
3116
|
this.parts = [];
|
|
3117
3117
|
let n = 0, a = 0;
|
|
3118
|
-
const h = t.length - 1, c = this.parts, [v, m] =
|
|
3119
|
-
if (this.el = Fe.createElement(v, r),
|
|
3118
|
+
const h = t.length - 1, c = this.parts, [v, m] = ki(t, o);
|
|
3119
|
+
if (this.el = Fe.createElement(v, r), re.currentNode = this.el.content, o === 2 || o === 3) {
|
|
3120
3120
|
const f = this.el.content.firstChild;
|
|
3121
3121
|
f.replaceWith(...f.childNodes);
|
|
3122
3122
|
}
|
|
3123
|
-
for (; (i =
|
|
3123
|
+
for (; (i = re.nextNode()) !== null && c.length < h; ) {
|
|
3124
3124
|
if (i.nodeType === 1) {
|
|
3125
|
-
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(
|
|
3125
|
+
if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(io)) {
|
|
3126
3126
|
const R = m[a++], N = i.getAttribute(f).split(U), Ve = /([.?@])?(.*)/.exec(R);
|
|
3127
|
-
c.push({ type: 1, index: n, name: Ve[2], strings: N, ctor: Ve[1] === "." ?
|
|
3127
|
+
c.push({ type: 1, index: n, name: Ve[2], strings: N, ctor: Ve[1] === "." ? Ii : Ve[1] === "?" ? Pi : Ve[1] === "@" ? Ti : nt }), i.removeAttribute(f);
|
|
3128
3128
|
} else f.startsWith(U) && (c.push({ type: 6, index: n }), i.removeAttribute(f));
|
|
3129
|
-
if (
|
|
3129
|
+
if (no.test(i.tagName)) {
|
|
3130
3130
|
const f = i.textContent.split(U), R = f.length - 1;
|
|
3131
3131
|
if (R > 0) {
|
|
3132
3132
|
i.textContent = Je ? Je.emptyScript : "";
|
|
3133
|
-
for (let N = 0; N < R; N++) i.append(f[N], Ze()),
|
|
3133
|
+
for (let N = 0; N < R; N++) i.append(f[N], Ze()), re.nextNode(), c.push({ type: 2, index: ++n });
|
|
3134
3134
|
i.append(f[R], Ze());
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
3137
|
+
} else if (i.nodeType === 8) if (i.data === ro) c.push({ type: 2, index: n });
|
|
3138
3138
|
else {
|
|
3139
3139
|
let f = -1;
|
|
3140
3140
|
for (; (f = i.data.indexOf(U, f + 1)) !== -1; ) c.push({ type: 7, index: n }), f += U.length - 1;
|
|
@@ -3143,18 +3143,18 @@ class Fe {
|
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
3145
|
static createElement(t, o) {
|
|
3146
|
-
const r =
|
|
3146
|
+
const r = ne.createElement("template");
|
|
3147
3147
|
return r.innerHTML = t, r;
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function ue(e, t, o = e, r) {
|
|
3151
3151
|
var a, h;
|
|
3152
3152
|
if (t === He) return t;
|
|
3153
3153
|
let i = r !== void 0 ? (a = o._$Co) == null ? void 0 : a[r] : o._$Cl;
|
|
3154
3154
|
const n = Me(t) ? void 0 : t._$litDirective$;
|
|
3155
|
-
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(e), i._$AT(e, o, r)), r !== void 0 ? (o._$Co ?? (o._$Co = []))[r] = i : o._$Cl = i), i !== void 0 && (t =
|
|
3155
|
+
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(e), i._$AT(e, o, r)), r !== void 0 ? (o._$Co ?? (o._$Co = []))[r] = i : o._$Cl = i), i !== void 0 && (t = ue(e, i._$AS(e, t.values), i, r)), t;
|
|
3156
3156
|
}
|
|
3157
|
-
class
|
|
3157
|
+
class Ci {
|
|
3158
3158
|
constructor(t, o) {
|
|
3159
3159
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = o;
|
|
3160
3160
|
}
|
|
@@ -3165,17 +3165,17 @@ class ki {
|
|
|
3165
3165
|
return this._$AM._$AU;
|
|
3166
3166
|
}
|
|
3167
3167
|
u(t) {
|
|
3168
|
-
const { el: { content: o }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
|
3169
|
-
|
|
3170
|
-
let n =
|
|
3168
|
+
const { el: { content: o }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? ne).importNode(o, !0);
|
|
3169
|
+
re.currentNode = i;
|
|
3170
|
+
let n = re.nextNode(), a = 0, h = 0, c = r[0];
|
|
3171
3171
|
for (; c !== void 0; ) {
|
|
3172
3172
|
if (a === c.index) {
|
|
3173
3173
|
let v;
|
|
3174
|
-
c.type === 2 ? v = new rt(n, n.nextSibling, this, t) : c.type === 1 ? v = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (v = new
|
|
3174
|
+
c.type === 2 ? v = new rt(n, n.nextSibling, this, t) : c.type === 1 ? v = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (v = new Si(n, this, t)), this._$AV.push(v), c = r[++h];
|
|
3175
3175
|
}
|
|
3176
|
-
a !== (c == null ? void 0 : c.index) && (n =
|
|
3176
|
+
a !== (c == null ? void 0 : c.index) && (n = re.nextNode(), a++);
|
|
3177
3177
|
}
|
|
3178
|
-
return
|
|
3178
|
+
return re.currentNode = ne, i;
|
|
3179
3179
|
}
|
|
3180
3180
|
p(t) {
|
|
3181
3181
|
let o = 0;
|
|
@@ -3202,7 +3202,7 @@ class rt {
|
|
|
3202
3202
|
return this._$AB;
|
|
3203
3203
|
}
|
|
3204
3204
|
_$AI(t, o = this) {
|
|
3205
|
-
t =
|
|
3205
|
+
t = ue(this, t, o), Me(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== He && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wi(t) ? this.k(t) : this._(t);
|
|
3206
3206
|
}
|
|
3207
3207
|
O(t) {
|
|
3208
3208
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -3211,23 +3211,23 @@ class rt {
|
|
|
3211
3211
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
3212
3212
|
}
|
|
3213
3213
|
_(t) {
|
|
3214
|
-
this._$AH !== y && Me(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
3214
|
+
this._$AH !== y && Me(this._$AH) ? this._$AA.nextSibling.data = t : this.T(ne.createTextNode(t)), this._$AH = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
$(t) {
|
|
3217
3217
|
var n;
|
|
3218
|
-
const { values: o, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Fe.createElement(
|
|
3218
|
+
const { values: o, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Fe.createElement(ao(r.h, r.h[0]), this.options)), r);
|
|
3219
3219
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(o);
|
|
3220
3220
|
else {
|
|
3221
|
-
const a = new
|
|
3221
|
+
const a = new Ci(i, this), h = a.u(this.options);
|
|
3222
3222
|
a.p(o), this.T(h), this._$AH = a;
|
|
3223
3223
|
}
|
|
3224
3224
|
}
|
|
3225
3225
|
_$AC(t) {
|
|
3226
|
-
let o =
|
|
3227
|
-
return o === void 0 &&
|
|
3226
|
+
let o = Jt.get(t.strings);
|
|
3227
|
+
return o === void 0 && Jt.set(t.strings, o = new Fe(t)), o;
|
|
3228
3228
|
}
|
|
3229
3229
|
k(t) {
|
|
3230
|
-
|
|
3230
|
+
Dt(this._$AH) || (this._$AH = [], this._$AR());
|
|
3231
3231
|
const o = this._$AH;
|
|
3232
3232
|
let r, i = 0;
|
|
3233
3233
|
for (const n of t) i === o.length ? o.push(r = new rt(this.O(Ze()), this.O(Ze()), this, this.options)) : r = o[i], r._$AI(n), i++;
|
|
@@ -3236,8 +3236,8 @@ class rt {
|
|
|
3236
3236
|
_$AR(t = this._$AA.nextSibling, o) {
|
|
3237
3237
|
var r;
|
|
3238
3238
|
for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, o); t !== this._$AB; ) {
|
|
3239
|
-
const i =
|
|
3240
|
-
|
|
3239
|
+
const i = Wt(t).nextSibling;
|
|
3240
|
+
Wt(t).remove(), t = i;
|
|
3241
3241
|
}
|
|
3242
3242
|
}
|
|
3243
3243
|
setConnected(t) {
|
|
@@ -3258,11 +3258,11 @@ class nt {
|
|
|
3258
3258
|
_$AI(t, o = this, r, i) {
|
|
3259
3259
|
const n = this.strings;
|
|
3260
3260
|
let a = !1;
|
|
3261
|
-
if (n === void 0) t =
|
|
3261
|
+
if (n === void 0) t = ue(this, t, o, 0), a = !Me(t) || t !== this._$AH && t !== He, a && (this._$AH = t);
|
|
3262
3262
|
else {
|
|
3263
3263
|
const h = t;
|
|
3264
3264
|
let c, v;
|
|
3265
|
-
for (t = n[0], c = 0; c < n.length - 1; c++) v =
|
|
3265
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) v = ue(this, h[r + c], o, c), v === He && (v = this._$AH[c]), a || (a = !Me(v) || v !== this._$AH[c]), v === y ? t = y : t !== y && (t += (v ?? "") + n[c + 1]), this._$AH[c] = v;
|
|
3266
3266
|
}
|
|
3267
3267
|
a && !i && this.j(t);
|
|
3268
3268
|
}
|
|
@@ -3270,7 +3270,7 @@ class nt {
|
|
|
3270
3270
|
t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
3271
3271
|
}
|
|
3272
3272
|
}
|
|
3273
|
-
class
|
|
3273
|
+
class Ii extends nt {
|
|
3274
3274
|
constructor() {
|
|
3275
3275
|
super(...arguments), this.type = 3;
|
|
3276
3276
|
}
|
|
@@ -3278,7 +3278,7 @@ class Ci extends nt {
|
|
|
3278
3278
|
this.element[this.name] = t === y ? void 0 : t;
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
|
-
class
|
|
3281
|
+
class Pi extends nt {
|
|
3282
3282
|
constructor() {
|
|
3283
3283
|
super(...arguments), this.type = 4;
|
|
3284
3284
|
}
|
|
@@ -3286,12 +3286,12 @@ class Ii extends nt {
|
|
|
3286
3286
|
this.element.toggleAttribute(this.name, !!t && t !== y);
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
|
-
class
|
|
3289
|
+
class Ti extends nt {
|
|
3290
3290
|
constructor(t, o, r, i, n) {
|
|
3291
3291
|
super(t, o, r, i, n), this.type = 5;
|
|
3292
3292
|
}
|
|
3293
3293
|
_$AI(t, o = this) {
|
|
3294
|
-
if ((t =
|
|
3294
|
+
if ((t = ue(this, t, o, 0) ?? y) === He) return;
|
|
3295
3295
|
const r = this._$AH, i = t === y && r !== y || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== y && (r === y || i);
|
|
3296
3296
|
i && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
3297
3297
|
}
|
|
@@ -3300,7 +3300,7 @@ class Pi extends nt {
|
|
|
3300
3300
|
typeof this._$AH == "function" ? this._$AH.call(((o = this.options) == null ? void 0 : o.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
3301
3301
|
}
|
|
3302
3302
|
}
|
|
3303
|
-
class
|
|
3303
|
+
class Si {
|
|
3304
3304
|
constructor(t, o, r) {
|
|
3305
3305
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = o, this.options = r;
|
|
3306
3306
|
}
|
|
@@ -3308,7 +3308,7 @@ class Ti {
|
|
|
3308
3308
|
return this._$AM._$AU;
|
|
3309
3309
|
}
|
|
3310
3310
|
_$AI(t) {
|
|
3311
|
-
|
|
3311
|
+
ue(this, t);
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
3314
|
const vt = Se.litHtmlPolyfillSupport;
|
|
@@ -3318,14 +3318,14 @@ vt == null || vt(Fe, rt), (Se.litHtmlVersions ?? (Se.litHtmlVersions = [])).push
|
|
|
3318
3318
|
* Copyright 2020 Google LLC
|
|
3319
3319
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3320
3320
|
*/
|
|
3321
|
-
const
|
|
3321
|
+
const Oi = (e) => e.strings === void 0;
|
|
3322
3322
|
/**
|
|
3323
3323
|
* @license
|
|
3324
3324
|
* Copyright 2017 Google LLC
|
|
3325
3325
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3326
3326
|
*/
|
|
3327
|
-
const
|
|
3328
|
-
class
|
|
3327
|
+
const Di = { CHILD: 2 }, Ei = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
3328
|
+
class Ai {
|
|
3329
3329
|
constructor(t) {
|
|
3330
3330
|
}
|
|
3331
3331
|
get _$AU() {
|
|
@@ -3358,39 +3358,39 @@ const Oe = (e, t) => {
|
|
|
3358
3358
|
if ((t = e._$AM) === void 0) break;
|
|
3359
3359
|
o = t._$AN, o.delete(e), e = t;
|
|
3360
3360
|
} while ((o == null ? void 0 : o.size) === 0);
|
|
3361
|
-
},
|
|
3361
|
+
}, so = (e) => {
|
|
3362
3362
|
for (let t; t = e._$AM; e = t) {
|
|
3363
3363
|
let o = t._$AN;
|
|
3364
3364
|
if (o === void 0) t._$AN = o = /* @__PURE__ */ new Set();
|
|
3365
3365
|
else if (o.has(e)) break;
|
|
3366
|
-
o.add(e),
|
|
3366
|
+
o.add(e), Ri(t);
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
|
-
function
|
|
3370
|
-
this._$AN !== void 0 ? (Qe(this), this._$AM = e,
|
|
3369
|
+
function Bi(e) {
|
|
3370
|
+
this._$AN !== void 0 ? (Qe(this), this._$AM = e, so(this)) : this._$AM = e;
|
|
3371
3371
|
}
|
|
3372
|
-
function
|
|
3372
|
+
function ji(e, t = !1, o = 0) {
|
|
3373
3373
|
const r = this._$AH, i = this._$AN;
|
|
3374
3374
|
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = o; n < r.length; n++) Oe(r[n], !1), Qe(r[n]);
|
|
3375
3375
|
else r != null && (Oe(r, !1), Qe(r));
|
|
3376
3376
|
else Oe(this, e);
|
|
3377
3377
|
}
|
|
3378
|
-
const
|
|
3379
|
-
e.type ==
|
|
3378
|
+
const Ri = (e) => {
|
|
3379
|
+
e.type == Di.CHILD && (e._$AP ?? (e._$AP = ji), e._$AQ ?? (e._$AQ = Bi));
|
|
3380
3380
|
};
|
|
3381
|
-
class
|
|
3381
|
+
class Li extends Ai {
|
|
3382
3382
|
constructor() {
|
|
3383
3383
|
super(...arguments), this._$AN = void 0;
|
|
3384
3384
|
}
|
|
3385
3385
|
_$AT(t, o, r) {
|
|
3386
|
-
super._$AT(t, o, r),
|
|
3386
|
+
super._$AT(t, o, r), so(this), this.isConnected = t._$AU;
|
|
3387
3387
|
}
|
|
3388
3388
|
_$AO(t, o = !0) {
|
|
3389
3389
|
var r, i;
|
|
3390
3390
|
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), o && (Oe(this, t), Qe(this));
|
|
3391
3391
|
}
|
|
3392
3392
|
setValue(t) {
|
|
3393
|
-
if (
|
|
3393
|
+
if (Oi(this._$Ct)) this._$Ct._$AI(t, this);
|
|
3394
3394
|
else {
|
|
3395
3395
|
const o = [...this._$Ct._$AH];
|
|
3396
3396
|
o[this._$Ci] = t, this._$Ct._$AI(o, this, 0);
|
|
@@ -3406,10 +3406,10 @@ class Ri extends Ei {
|
|
|
3406
3406
|
* Copyright 2020 Google LLC
|
|
3407
3407
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3408
3408
|
*/
|
|
3409
|
-
const
|
|
3410
|
-
class
|
|
3409
|
+
const be = () => new zi();
|
|
3410
|
+
class zi {
|
|
3411
3411
|
}
|
|
3412
|
-
const ft = /* @__PURE__ */ new WeakMap(),
|
|
3412
|
+
const ft = /* @__PURE__ */ new WeakMap(), ve = Ei(class extends Li {
|
|
3413
3413
|
render(e) {
|
|
3414
3414
|
return y;
|
|
3415
3415
|
}
|
|
@@ -3651,10 +3651,10 @@ const ft = /* @__PURE__ */ new WeakMap(), be = Di(class extends Ri {
|
|
|
3651
3651
|
box-shadow: var(--pigeon-ring-shadow);
|
|
3652
3652
|
}
|
|
3653
3653
|
`;
|
|
3654
|
-
var
|
|
3655
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
3654
|
+
var Mi = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, Et = (e, t, o, r) => {
|
|
3655
|
+
for (var i = r > 1 ? void 0 : r ? Hi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
3656
3656
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
3657
|
-
return r && i &&
|
|
3657
|
+
return r && i && Mi(t, o, i), i;
|
|
3658
3658
|
};
|
|
3659
3659
|
let Ne = class extends g {
|
|
3660
3660
|
constructor() {
|
|
@@ -3777,19 +3777,19 @@ Ne.styles = b`
|
|
|
3777
3777
|
height: 16px;
|
|
3778
3778
|
}
|
|
3779
3779
|
`;
|
|
3780
|
-
|
|
3780
|
+
Et([
|
|
3781
3781
|
p({ type: String })
|
|
3782
3782
|
], Ne.prototype, "label", 2);
|
|
3783
|
-
|
|
3783
|
+
Et([
|
|
3784
3784
|
p({ type: String })
|
|
3785
3785
|
], Ne.prototype, "value", 2);
|
|
3786
|
-
Ne =
|
|
3786
|
+
Ne = Et([
|
|
3787
3787
|
u("pigeon-alignment-picker")
|
|
3788
3788
|
], Ne);
|
|
3789
|
-
var
|
|
3790
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
3789
|
+
var Fi = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, At = (e, t, o, r) => {
|
|
3790
|
+
for (var i = r > 1 ? void 0 : r ? Ni(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
3791
3791
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
3792
|
-
return r && i &&
|
|
3792
|
+
return r && i && Fi(t, o, i), i;
|
|
3793
3793
|
};
|
|
3794
3794
|
let Ue = class extends g {
|
|
3795
3795
|
constructor() {
|
|
@@ -3934,19 +3934,19 @@ Ue.styles = b`
|
|
|
3934
3934
|
-moz-appearance: textfield;
|
|
3935
3935
|
}
|
|
3936
3936
|
`;
|
|
3937
|
-
|
|
3937
|
+
At([
|
|
3938
3938
|
p({ type: String })
|
|
3939
3939
|
], Ue.prototype, "label", 2);
|
|
3940
|
-
|
|
3940
|
+
At([
|
|
3941
3941
|
p({ type: Object })
|
|
3942
3942
|
], Ue.prototype, "value", 2);
|
|
3943
|
-
Ue =
|
|
3943
|
+
Ue = At([
|
|
3944
3944
|
u("pigeon-spacing-input")
|
|
3945
3945
|
], Ue);
|
|
3946
|
-
var
|
|
3947
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
3946
|
+
var Ui = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, le = (e, t, o, r) => {
|
|
3947
|
+
for (var i = r > 1 ? void 0 : r ? Ki(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
3948
3948
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
3949
|
-
return r && i &&
|
|
3949
|
+
return r && i && Ui(t, o, i), i;
|
|
3950
3950
|
};
|
|
3951
3951
|
let L = class extends g {
|
|
3952
3952
|
constructor() {
|
|
@@ -4095,31 +4095,31 @@ L.styles = b`
|
|
|
4095
4095
|
-moz-appearance: textfield;
|
|
4096
4096
|
}
|
|
4097
4097
|
`;
|
|
4098
|
-
|
|
4098
|
+
le([
|
|
4099
4099
|
p({ type: String })
|
|
4100
4100
|
], L.prototype, "label", 2);
|
|
4101
|
-
|
|
4101
|
+
le([
|
|
4102
4102
|
p({ type: Number })
|
|
4103
4103
|
], L.prototype, "value", 2);
|
|
4104
|
-
|
|
4104
|
+
le([
|
|
4105
4105
|
p({ type: Number })
|
|
4106
4106
|
], L.prototype, "min", 2);
|
|
4107
|
-
|
|
4107
|
+
le([
|
|
4108
4108
|
p({ type: Number })
|
|
4109
4109
|
], L.prototype, "max", 2);
|
|
4110
|
-
|
|
4110
|
+
le([
|
|
4111
4111
|
p({ type: Number })
|
|
4112
4112
|
], L.prototype, "step", 2);
|
|
4113
|
-
|
|
4113
|
+
le([
|
|
4114
4114
|
p({ type: String })
|
|
4115
4115
|
], L.prototype, "unit", 2);
|
|
4116
|
-
L =
|
|
4116
|
+
L = le([
|
|
4117
4117
|
u("pigeon-slider-input")
|
|
4118
4118
|
], L);
|
|
4119
|
-
var
|
|
4120
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
4119
|
+
var Wi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, we = (e, t, o, r) => {
|
|
4120
|
+
for (var i = r > 1 ? void 0 : r ? Vi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
4121
4121
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
4122
|
-
return r && i &&
|
|
4122
|
+
return r && i && Wi(t, o, i), i;
|
|
4123
4123
|
};
|
|
4124
4124
|
let V = class extends g {
|
|
4125
4125
|
constructor() {
|
|
@@ -4268,32 +4268,32 @@ V.styles = b`
|
|
|
4268
4268
|
font-size: 13px;
|
|
4269
4269
|
}
|
|
4270
4270
|
`;
|
|
4271
|
-
|
|
4271
|
+
we([
|
|
4272
4272
|
p({ type: Array })
|
|
4273
4273
|
], V.prototype, "tags", 2);
|
|
4274
|
-
|
|
4274
|
+
we([
|
|
4275
4275
|
p({ type: Boolean, reflect: !0 })
|
|
4276
4276
|
], V.prototype, "open", 2);
|
|
4277
|
-
|
|
4277
|
+
we([
|
|
4278
4278
|
p({ type: Number })
|
|
4279
4279
|
], V.prototype, "x", 2);
|
|
4280
|
-
|
|
4280
|
+
we([
|
|
4281
4281
|
p({ type: Number })
|
|
4282
4282
|
], V.prototype, "y", 2);
|
|
4283
|
-
|
|
4283
|
+
we([
|
|
4284
4284
|
d()
|
|
4285
4285
|
], V.prototype, "_search", 2);
|
|
4286
|
-
V =
|
|
4286
|
+
V = we([
|
|
4287
4287
|
u("pigeon-merge-tag-picker")
|
|
4288
4288
|
], V);
|
|
4289
|
-
var
|
|
4290
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
4289
|
+
var Yi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, J = (e, t, o, r) => {
|
|
4290
|
+
for (var i = r > 1 ? void 0 : r ? qi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
4291
4291
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
4292
|
-
return r && i &&
|
|
4292
|
+
return r && i && Yi(t, o, i), i;
|
|
4293
4293
|
};
|
|
4294
4294
|
let E = class extends g {
|
|
4295
4295
|
constructor() {
|
|
4296
|
-
super(...arguments), this.rowId = "", this.columnId = "", this.mergeTags = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._textareaRef =
|
|
4296
|
+
super(...arguments), this.rowId = "", this.columnId = "", this.mergeTags = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._textareaRef = be(), this._triggerRef = be();
|
|
4297
4297
|
}
|
|
4298
4298
|
render() {
|
|
4299
4299
|
if (!this.block) return l``;
|
|
@@ -4305,13 +4305,13 @@ let E = class extends g {
|
|
|
4305
4305
|
<div class="label-row">
|
|
4306
4306
|
<label>${s("panel.common.contentHtml")}</label>
|
|
4307
4307
|
${t ? l`
|
|
4308
|
-
<button class="tag-btn" ${
|
|
4308
|
+
<button class="tag-btn" ${ve(this._triggerRef)} @click=${this._togglePicker} title=${s("panel.common.insertMergeTag")}>
|
|
4309
4309
|
${s("panel.common.tagBtn")}
|
|
4310
4310
|
</button>
|
|
4311
4311
|
` : ""}
|
|
4312
4312
|
</div>
|
|
4313
4313
|
<textarea
|
|
4314
|
-
${
|
|
4314
|
+
${ve(this._textareaRef)}
|
|
4315
4315
|
.value=${e.content}
|
|
4316
4316
|
@change=${this._onContentChange}
|
|
4317
4317
|
></textarea>
|
|
@@ -4364,7 +4364,7 @@ let E = class extends g {
|
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|
|
4366
4366
|
_onMergeTagInsert(e) {
|
|
4367
|
-
const t =
|
|
4367
|
+
const t = So.getActive();
|
|
4368
4368
|
if (t && !t.isDestroyed) {
|
|
4369
4369
|
const v = this._extractTagName(e.detail.tag.name);
|
|
4370
4370
|
t.chain().focus().insertContent({ type: "mergeTag", attrs: { name: v } }).run(), this._pickerOpen = !1;
|
|
@@ -4478,15 +4478,21 @@ J([
|
|
|
4478
4478
|
E = J([
|
|
4479
4479
|
u("pigeon-text-panel")
|
|
4480
4480
|
], E);
|
|
4481
|
-
var
|
|
4482
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
4481
|
+
var Xi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, w = (e, t, o, r) => {
|
|
4482
|
+
for (var i = r > 1 ? void 0 : r ? Gi(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
4483
4483
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
4484
|
-
return r && i &&
|
|
4484
|
+
return r && i && Xi(t, o, i), i;
|
|
4485
4485
|
};
|
|
4486
|
-
|
|
4486
|
+
let mt = null;
|
|
4487
|
+
function Ji() {
|
|
4488
|
+
return mt || (mt = import("./pigeon-stock-tab.js")), mt;
|
|
4489
|
+
}
|
|
4490
|
+
const Zi = 250, qe = "__all__";
|
|
4487
4491
|
let x = class extends g {
|
|
4488
4492
|
constructor() {
|
|
4489
|
-
super(...arguments), this.config = {}, this.open = !1, this._tab = null, this._dragOver = !1, this._uploading = !1, this._progress = 0, this._error = "", this._urlInput = "", this._folder = qe, this._search = "", this._selectedTags = [], this._folders = [], this._assets = [], this._libraryLoading = !1, this._libraryError = "", this._searchTimer = null, this._libraryToken = 0
|
|
4493
|
+
super(...arguments), this.config = {}, this.open = !1, this._tab = null, this._stockTabLoaded = !1, this._dragOver = !1, this._uploading = !1, this._progress = 0, this._error = "", this._urlInput = "", this._folder = qe, this._search = "", this._selectedTags = [], this._folders = [], this._assets = [], this._libraryLoading = !1, this._libraryError = "", this._searchTimer = null, this._libraryToken = 0, this._handleStockTabClick = async () => {
|
|
4494
|
+
this._tab = "stock", this._stockTabLoaded || (await Ji(), this._stockTabLoaded = !0);
|
|
4495
|
+
};
|
|
4490
4496
|
}
|
|
4491
4497
|
/* ----------------------------------------------------------------- */
|
|
4492
4498
|
/* Lifecycle */
|
|
@@ -4497,12 +4503,17 @@ let x = class extends g {
|
|
|
4497
4503
|
get _activeTab() {
|
|
4498
4504
|
return this._tab ?? (this.storage ? "library" : "upload");
|
|
4499
4505
|
}
|
|
4506
|
+
get _hasStock() {
|
|
4507
|
+
var t, o;
|
|
4508
|
+
const e = this.config.stock;
|
|
4509
|
+
return !!((t = e == null ? void 0 : e.unsplash) != null && t.accessKey || (o = e == null ? void 0 : e.pexels) != null && o.apiKey);
|
|
4510
|
+
}
|
|
4500
4511
|
/* ----------------------------------------------------------------- */
|
|
4501
4512
|
/* Render */
|
|
4502
4513
|
/* ----------------------------------------------------------------- */
|
|
4503
4514
|
render() {
|
|
4504
4515
|
if (this.config.enabled === !1) return l``;
|
|
4505
|
-
const e = !!this.storage;
|
|
4516
|
+
const e = !!this.storage, t = e || this._hasStock;
|
|
4506
4517
|
return l`
|
|
4507
4518
|
<div class="overlay" @click=${this._close}></div>
|
|
4508
4519
|
<div class="modal" role="dialog" aria-label=${s("asset.title")}>
|
|
@@ -4510,36 +4521,46 @@ let x = class extends g {
|
|
|
4510
4521
|
<h3>${e ? s("asset.title") : s("asset.title-upload")}</h3>
|
|
4511
4522
|
<button class="close-btn" @click=${this._close} aria-label=${s("asset.close")}>×</button>
|
|
4512
4523
|
</div>
|
|
4513
|
-
${
|
|
4524
|
+
${t ? this._renderTabs(e) : te}
|
|
4514
4525
|
<div class="body">
|
|
4515
|
-
${e && this._activeTab === "library" ? this._renderLibrary() : this._renderUpload()}
|
|
4526
|
+
${this._activeTab === "stock" && this._hasStock ? this._renderStock() : e && this._activeTab === "library" ? this._renderLibrary() : this._renderUpload()}
|
|
4516
4527
|
</div>
|
|
4517
4528
|
</div>
|
|
4518
4529
|
`;
|
|
4519
4530
|
}
|
|
4520
|
-
_renderTabs() {
|
|
4521
|
-
const
|
|
4531
|
+
_renderTabs(e) {
|
|
4532
|
+
const t = this._activeTab;
|
|
4522
4533
|
return l`
|
|
4523
4534
|
<div class="tabs" role="tablist">
|
|
4535
|
+
${e ? l`<button
|
|
4536
|
+
class="tab ${t === "library" ? "active" : ""}"
|
|
4537
|
+
role="tab"
|
|
4538
|
+
aria-selected=${t === "library"}
|
|
4539
|
+
@click=${() => this._tab = "library"}
|
|
4540
|
+
>${s("asset.tab.library")}</button>` : te}
|
|
4524
4541
|
<button
|
|
4525
|
-
class="tab ${
|
|
4526
|
-
role="tab"
|
|
4527
|
-
aria-selected=${e === "library"}
|
|
4528
|
-
@click=${() => this._tab = "library"}
|
|
4529
|
-
>
|
|
4530
|
-
${s("asset.tab.library")}
|
|
4531
|
-
</button>
|
|
4532
|
-
<button
|
|
4533
|
-
class="tab ${e === "upload" ? "active" : ""}"
|
|
4542
|
+
class="tab ${t === "upload" ? "active" : ""}"
|
|
4534
4543
|
role="tab"
|
|
4535
|
-
aria-selected=${
|
|
4544
|
+
aria-selected=${t === "upload"}
|
|
4536
4545
|
@click=${() => this._tab = "upload"}
|
|
4537
4546
|
>
|
|
4538
4547
|
${s("asset.tab.upload")}
|
|
4539
4548
|
</button>
|
|
4549
|
+
${this._hasStock ? l`<button
|
|
4550
|
+
class="tab ${t === "stock" ? "active" : ""}"
|
|
4551
|
+
role="tab"
|
|
4552
|
+
aria-selected=${t === "stock"}
|
|
4553
|
+
@click=${this._handleStockTabClick}
|
|
4554
|
+
>${s("asset.tab.stock")}</button>` : te}
|
|
4540
4555
|
</div>
|
|
4541
4556
|
`;
|
|
4542
4557
|
}
|
|
4558
|
+
_renderStock() {
|
|
4559
|
+
return this._stockTabLoaded ? l`<pigeon-stock-tab
|
|
4560
|
+
.config=${this.config.stock ?? {}}
|
|
4561
|
+
@stock-select=${(e) => this._selectAsset(e.detail.url)}
|
|
4562
|
+
></pigeon-stock-tab>` : l`<div class="library-spinner">${s("asset.loading")}</div>`;
|
|
4563
|
+
}
|
|
4543
4564
|
_renderLibrary() {
|
|
4544
4565
|
return l`
|
|
4545
4566
|
<div class="library-controls">
|
|
@@ -4569,8 +4590,8 @@ let x = class extends g {
|
|
|
4569
4590
|
@click=${() => this._toggleTag(e)}
|
|
4570
4591
|
>${e}</button>`
|
|
4571
4592
|
)}
|
|
4572
|
-
</div>` :
|
|
4573
|
-
${this._libraryError ? l`<div class="error">${this._libraryError}</div>` :
|
|
4593
|
+
</div>` : te}
|
|
4594
|
+
${this._libraryError ? l`<div class="error">${this._libraryError}</div>` : te}
|
|
4574
4595
|
${this._libraryLoading ? l`<div class="library-spinner">${s("asset.loading")}</div>` : this._assets.length === 0 ? l`<div class="empty-library">
|
|
4575
4596
|
${this._search || this._selectedTags.length > 0 || this._folder !== qe ? s("asset.empty.filtered") : s("asset.empty.no-assets")}
|
|
4576
4597
|
</div>` : l`<div class="asset-grid">
|
|
@@ -4615,9 +4636,9 @@ let x = class extends g {
|
|
|
4615
4636
|
|
|
4616
4637
|
${this._uploading ? l`<div class="progress-bar">
|
|
4617
4638
|
<div class="progress-fill" style="width: ${this._progress}%"></div>
|
|
4618
|
-
</div>` :
|
|
4639
|
+
</div>` : te}
|
|
4619
4640
|
|
|
4620
|
-
${this._error ? l`<div class="error">${this._error}</div>` :
|
|
4641
|
+
${this._error ? l`<div class="error">${this._error}</div>` : te}
|
|
4621
4642
|
|
|
4622
4643
|
<div class="separator">${s("asset.url.separator")}</div>
|
|
4623
4644
|
|
|
@@ -4675,7 +4696,7 @@ let x = class extends g {
|
|
|
4675
4696
|
this._folder = e.target.value, this._loadAssets();
|
|
4676
4697
|
}
|
|
4677
4698
|
_onSearchInput(e) {
|
|
4678
|
-
this._search = e.target.value, this._searchTimer && clearTimeout(this._searchTimer), this._searchTimer = setTimeout(() => this._loadAssets(),
|
|
4699
|
+
this._search = e.target.value, this._searchTimer && clearTimeout(this._searchTimer), this._searchTimer = setTimeout(() => this._loadAssets(), Zi);
|
|
4679
4700
|
}
|
|
4680
4701
|
_toggleTag(e) {
|
|
4681
4702
|
this._selectedTags = this._selectedTags.includes(e) ? this._selectedTags.filter((t) => t !== e) : [...this._selectedTags, e], this._loadAssets();
|
|
@@ -5150,6 +5171,9 @@ w([
|
|
|
5150
5171
|
w([
|
|
5151
5172
|
d()
|
|
5152
5173
|
], x.prototype, "_tab", 2);
|
|
5174
|
+
w([
|
|
5175
|
+
d()
|
|
5176
|
+
], x.prototype, "_stockTabLoaded", 2);
|
|
5153
5177
|
w([
|
|
5154
5178
|
d()
|
|
5155
5179
|
], x.prototype, "_dragOver", 2);
|
|
@@ -5189,10 +5213,10 @@ w([
|
|
|
5189
5213
|
x = w([
|
|
5190
5214
|
u("pigeon-asset-manager")
|
|
5191
5215
|
], x);
|
|
5192
|
-
var
|
|
5193
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5216
|
+
var Qi = Object.defineProperty, er = Object.getOwnPropertyDescriptor, pe = (e, t, o, r) => {
|
|
5217
|
+
for (var i = r > 1 ? void 0 : r ? er(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5194
5218
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5195
|
-
return r && i &&
|
|
5219
|
+
return r && i && Qi(t, o, i), i;
|
|
5196
5220
|
};
|
|
5197
5221
|
let z = class extends g {
|
|
5198
5222
|
constructor() {
|
|
@@ -5323,33 +5347,33 @@ z.styles = [
|
|
|
5323
5347
|
}
|
|
5324
5348
|
`
|
|
5325
5349
|
];
|
|
5326
|
-
|
|
5350
|
+
pe([
|
|
5327
5351
|
p({ type: Object })
|
|
5328
5352
|
], z.prototype, "block", 2);
|
|
5329
|
-
|
|
5353
|
+
pe([
|
|
5330
5354
|
p({ type: String })
|
|
5331
5355
|
], z.prototype, "rowId", 2);
|
|
5332
|
-
|
|
5356
|
+
pe([
|
|
5333
5357
|
p({ type: String })
|
|
5334
5358
|
], z.prototype, "columnId", 2);
|
|
5335
|
-
|
|
5359
|
+
pe([
|
|
5336
5360
|
p({ type: Object })
|
|
5337
5361
|
], z.prototype, "assetManagerConfig", 2);
|
|
5338
|
-
|
|
5362
|
+
pe([
|
|
5339
5363
|
p({ attribute: !1 })
|
|
5340
5364
|
], z.prototype, "assetStorage", 2);
|
|
5341
|
-
|
|
5365
|
+
pe([
|
|
5342
5366
|
d()
|
|
5343
5367
|
], z.prototype, "_assetManagerOpen", 2);
|
|
5344
|
-
z =
|
|
5368
|
+
z = pe([
|
|
5345
5369
|
u("pigeon-image-panel")
|
|
5346
5370
|
], z);
|
|
5347
|
-
var
|
|
5348
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5371
|
+
var tr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, at = (e, t, o, r) => {
|
|
5372
|
+
for (var i = r > 1 ? void 0 : r ? or(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5349
5373
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5350
|
-
return r && i &&
|
|
5374
|
+
return r && i && tr(t, o, i), i;
|
|
5351
5375
|
};
|
|
5352
|
-
let
|
|
5376
|
+
let fe = class extends g {
|
|
5353
5377
|
constructor() {
|
|
5354
5378
|
super(...arguments), this.label = s("control.color.label"), this.value = "#000000", this.swatches = [];
|
|
5355
5379
|
}
|
|
@@ -5368,7 +5392,7 @@ let ve = class extends g {
|
|
|
5368
5392
|
type="button"
|
|
5369
5393
|
title=${`${e.name} (${e.value})`}
|
|
5370
5394
|
aria-label=${e.name}
|
|
5371
|
-
style=${
|
|
5395
|
+
style=${Oo({ background: e.value })}
|
|
5372
5396
|
@click=${() => this._applySwatch(e.value)}
|
|
5373
5397
|
></button>`
|
|
5374
5398
|
)}
|
|
@@ -5394,7 +5418,7 @@ let ve = class extends g {
|
|
|
5394
5418
|
}));
|
|
5395
5419
|
}
|
|
5396
5420
|
};
|
|
5397
|
-
|
|
5421
|
+
fe.styles = b`
|
|
5398
5422
|
:host {
|
|
5399
5423
|
display: block;
|
|
5400
5424
|
margin-bottom: 12px;
|
|
@@ -5491,20 +5515,20 @@ ve.styles = b`
|
|
|
5491
5515
|
`;
|
|
5492
5516
|
at([
|
|
5493
5517
|
p({ type: String })
|
|
5494
|
-
],
|
|
5518
|
+
], fe.prototype, "label", 2);
|
|
5495
5519
|
at([
|
|
5496
5520
|
p({ type: String })
|
|
5497
|
-
],
|
|
5521
|
+
], fe.prototype, "value", 2);
|
|
5498
5522
|
at([
|
|
5499
5523
|
p({ attribute: !1 })
|
|
5500
|
-
],
|
|
5501
|
-
|
|
5524
|
+
], fe.prototype, "swatches", 2);
|
|
5525
|
+
fe = at([
|
|
5502
5526
|
u("pigeon-color-picker")
|
|
5503
|
-
],
|
|
5504
|
-
var
|
|
5505
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5527
|
+
], fe);
|
|
5528
|
+
var ir = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, ke = (e, t, o, r) => {
|
|
5529
|
+
for (var i = r > 1 ? void 0 : r ? rr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5506
5530
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5507
|
-
return r && i &&
|
|
5531
|
+
return r && i && ir(t, o, i), i;
|
|
5508
5532
|
};
|
|
5509
5533
|
let Y = class extends g {
|
|
5510
5534
|
constructor() {
|
|
@@ -5669,28 +5693,28 @@ let Y = class extends g {
|
|
|
5669
5693
|
}
|
|
5670
5694
|
};
|
|
5671
5695
|
Y.styles = C;
|
|
5672
|
-
|
|
5696
|
+
ke([
|
|
5673
5697
|
p({ type: Object })
|
|
5674
5698
|
], Y.prototype, "block", 2);
|
|
5675
|
-
|
|
5699
|
+
ke([
|
|
5676
5700
|
p({ type: String })
|
|
5677
5701
|
], Y.prototype, "rowId", 2);
|
|
5678
|
-
|
|
5702
|
+
ke([
|
|
5679
5703
|
p({ type: String })
|
|
5680
5704
|
], Y.prototype, "columnId", 2);
|
|
5681
|
-
|
|
5705
|
+
ke([
|
|
5682
5706
|
p({ attribute: !1 })
|
|
5683
5707
|
], Y.prototype, "swatches", 2);
|
|
5684
|
-
|
|
5708
|
+
ke([
|
|
5685
5709
|
p({ attribute: !1 })
|
|
5686
5710
|
], Y.prototype, "linkTypes", 2);
|
|
5687
|
-
Y =
|
|
5711
|
+
Y = ke([
|
|
5688
5712
|
u("pigeon-button-panel")
|
|
5689
5713
|
], Y);
|
|
5690
|
-
var
|
|
5691
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5714
|
+
var nr = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, lo = (e, t, o, r) => {
|
|
5715
|
+
for (var i = r > 1 ? void 0 : r ? ar(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5692
5716
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5693
|
-
return r && i &&
|
|
5717
|
+
return r && i && nr(t, o, i), i;
|
|
5694
5718
|
};
|
|
5695
5719
|
let et = class extends g {
|
|
5696
5720
|
get _layouts() {
|
|
@@ -5882,18 +5906,18 @@ et.styles = [
|
|
|
5882
5906
|
}
|
|
5883
5907
|
`
|
|
5884
5908
|
];
|
|
5885
|
-
|
|
5909
|
+
lo([
|
|
5886
5910
|
p({ type: Object })
|
|
5887
5911
|
], et.prototype, "row", 2);
|
|
5888
|
-
et =
|
|
5912
|
+
et = lo([
|
|
5889
5913
|
u("pigeon-row-panel")
|
|
5890
5914
|
], et);
|
|
5891
|
-
var
|
|
5892
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5915
|
+
var sr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, st = (e, t, o, r) => {
|
|
5916
|
+
for (var i = r > 1 ? void 0 : r ? lr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5893
5917
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5894
|
-
return r && i &&
|
|
5918
|
+
return r && i && sr(t, o, i), i;
|
|
5895
5919
|
};
|
|
5896
|
-
const
|
|
5920
|
+
const Zt = [
|
|
5897
5921
|
{ label: "Arial", value: "Arial, Helvetica, sans-serif" },
|
|
5898
5922
|
{ label: "Georgia", value: "Georgia, Times, serif" },
|
|
5899
5923
|
{ label: "Courier New", value: "'Courier New', Courier, monospace" },
|
|
@@ -5902,13 +5926,13 @@ const Jt = [
|
|
|
5902
5926
|
{ label: "Trebuchet MS", value: "'Trebuchet MS', sans-serif" },
|
|
5903
5927
|
{ label: "Times New Roman", value: "'Times New Roman', Times, serif" }
|
|
5904
5928
|
];
|
|
5905
|
-
let
|
|
5929
|
+
let me = class extends g {
|
|
5906
5930
|
constructor() {
|
|
5907
5931
|
super(...arguments), this.label = s("control.fontPicker.label"), this.value = "", this.brandFonts = [];
|
|
5908
5932
|
}
|
|
5909
5933
|
get _options() {
|
|
5910
|
-
const e = new Set(
|
|
5911
|
-
return [...
|
|
5934
|
+
const e = new Set(Zt.map((o) => o.value)), t = this.brandFonts.filter((o) => !e.has(o.family)).map((o) => ({ label: o.name, value: o.family }));
|
|
5935
|
+
return [...Zt, ...t];
|
|
5912
5936
|
}
|
|
5913
5937
|
render() {
|
|
5914
5938
|
return l`
|
|
@@ -5930,7 +5954,7 @@ let fe = class extends g {
|
|
|
5930
5954
|
);
|
|
5931
5955
|
}
|
|
5932
5956
|
};
|
|
5933
|
-
|
|
5957
|
+
me.styles = b`
|
|
5934
5958
|
:host {
|
|
5935
5959
|
display: block;
|
|
5936
5960
|
margin-bottom: 12px;
|
|
@@ -5958,24 +5982,24 @@ fe.styles = b`
|
|
|
5958
5982
|
`;
|
|
5959
5983
|
st([
|
|
5960
5984
|
p({ type: String })
|
|
5961
|
-
],
|
|
5985
|
+
], me.prototype, "label", 2);
|
|
5962
5986
|
st([
|
|
5963
5987
|
p({ type: String })
|
|
5964
|
-
],
|
|
5988
|
+
], me.prototype, "value", 2);
|
|
5965
5989
|
st([
|
|
5966
5990
|
p({ attribute: !1 })
|
|
5967
|
-
],
|
|
5968
|
-
|
|
5991
|
+
], me.prototype, "brandFonts", 2);
|
|
5992
|
+
me = st([
|
|
5969
5993
|
u("pigeon-font-picker")
|
|
5970
|
-
],
|
|
5971
|
-
var
|
|
5972
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
5994
|
+
], me);
|
|
5995
|
+
var pr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Z = (e, t, o, r) => {
|
|
5996
|
+
for (var i = r > 1 ? void 0 : r ? cr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
5973
5997
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
5974
|
-
return r && i &&
|
|
5998
|
+
return r && i && pr(t, o, i), i;
|
|
5975
5999
|
};
|
|
5976
6000
|
let A = class extends g {
|
|
5977
6001
|
constructor() {
|
|
5978
|
-
super(...arguments), this.mergeTags = [], this.swatches = [], this.brandFonts = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._previewInputRef =
|
|
6002
|
+
super(...arguments), this.mergeTags = [], this.swatches = [], this.brandFonts = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._previewInputRef = be(), this._triggerRef = be();
|
|
5979
6003
|
}
|
|
5980
6004
|
render() {
|
|
5981
6005
|
if (!this.doc) return l``;
|
|
@@ -6033,14 +6057,14 @@ let A = class extends g {
|
|
|
6033
6057
|
<div class="label-row">
|
|
6034
6058
|
<label>${s("panel.body.previewText")}</label>
|
|
6035
6059
|
${this.mergeTags.length > 0 ? l`
|
|
6036
|
-
<button class="tag-btn" ${
|
|
6060
|
+
<button class="tag-btn" ${ve(this._triggerRef)} @click=${this._togglePicker} title=${s("panel.common.insertMergeTag")}>
|
|
6037
6061
|
${s("panel.common.tagBtn")}
|
|
6038
6062
|
</button>
|
|
6039
6063
|
` : ""}
|
|
6040
6064
|
</div>
|
|
6041
6065
|
<input
|
|
6042
6066
|
type="text"
|
|
6043
|
-
${
|
|
6067
|
+
${ve(this._previewInputRef)}
|
|
6044
6068
|
.value=${this.doc.metadata.previewText ?? ""}
|
|
6045
6069
|
placeholder=${s("panel.body.previewTextPlaceholder")}
|
|
6046
6070
|
@change=${this._onPreviewTextChange}
|
|
@@ -6200,10 +6224,10 @@ Z([
|
|
|
6200
6224
|
A = Z([
|
|
6201
6225
|
u("pigeon-body-panel")
|
|
6202
6226
|
], A);
|
|
6203
|
-
var
|
|
6204
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
6227
|
+
var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Q = (e, t, o, r) => {
|
|
6228
|
+
for (var i = r > 1 ? void 0 : r ? hr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6205
6229
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6206
|
-
return r && i &&
|
|
6230
|
+
return r && i && dr(t, o, i), i;
|
|
6207
6231
|
};
|
|
6208
6232
|
let B = class extends g {
|
|
6209
6233
|
constructor() {
|
|
@@ -6383,12 +6407,12 @@ Q([
|
|
|
6383
6407
|
B = Q([
|
|
6384
6408
|
u("pigeon-hero-panel")
|
|
6385
6409
|
], B);
|
|
6386
|
-
var
|
|
6387
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
6410
|
+
var gr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Ke = (e, t, o, r) => {
|
|
6411
|
+
for (var i = r > 1 ? void 0 : r ? ur(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6388
6412
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6389
|
-
return r && i &&
|
|
6413
|
+
return r && i && gr(t, o, i), i;
|
|
6390
6414
|
};
|
|
6391
|
-
let
|
|
6415
|
+
let ae = class extends g {
|
|
6392
6416
|
constructor() {
|
|
6393
6417
|
super(...arguments), this.rowId = "", this.columnId = "", this.swatches = [];
|
|
6394
6418
|
}
|
|
@@ -6525,7 +6549,7 @@ let ne = class extends g {
|
|
|
6525
6549
|
this._emit({ padding: e.detail.value });
|
|
6526
6550
|
}
|
|
6527
6551
|
};
|
|
6528
|
-
|
|
6552
|
+
ae.styles = [
|
|
6529
6553
|
C,
|
|
6530
6554
|
b`
|
|
6531
6555
|
h4 {
|
|
@@ -6587,25 +6611,25 @@ ne.styles = [
|
|
|
6587
6611
|
];
|
|
6588
6612
|
Ke([
|
|
6589
6613
|
p({ type: Object })
|
|
6590
|
-
],
|
|
6614
|
+
], ae.prototype, "block", 2);
|
|
6591
6615
|
Ke([
|
|
6592
6616
|
p({ type: String })
|
|
6593
|
-
],
|
|
6617
|
+
], ae.prototype, "rowId", 2);
|
|
6594
6618
|
Ke([
|
|
6595
6619
|
p({ type: String })
|
|
6596
|
-
],
|
|
6620
|
+
], ae.prototype, "columnId", 2);
|
|
6597
6621
|
Ke([
|
|
6598
6622
|
p({ attribute: !1 })
|
|
6599
|
-
],
|
|
6600
|
-
|
|
6623
|
+
], ae.prototype, "swatches", 2);
|
|
6624
|
+
ae = Ke([
|
|
6601
6625
|
u("pigeon-navbar-panel")
|
|
6602
|
-
],
|
|
6603
|
-
var
|
|
6604
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
6626
|
+
], ae);
|
|
6627
|
+
var br = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, We = (e, t, o, r) => {
|
|
6628
|
+
for (var i = r > 1 ? void 0 : r ? vr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6605
6629
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6606
|
-
return r && i &&
|
|
6630
|
+
return r && i && br(t, o, i), i;
|
|
6607
6631
|
};
|
|
6608
|
-
let
|
|
6632
|
+
let se = class extends g {
|
|
6609
6633
|
constructor() {
|
|
6610
6634
|
super(...arguments), this.rowId = "", this.columnId = "", this.swatches = [];
|
|
6611
6635
|
}
|
|
@@ -6686,28 +6710,28 @@ let ae = class extends g {
|
|
|
6686
6710
|
this._emit({ padding: e.detail.value });
|
|
6687
6711
|
}
|
|
6688
6712
|
};
|
|
6689
|
-
|
|
6713
|
+
se.styles = C;
|
|
6690
6714
|
We([
|
|
6691
6715
|
p({ type: Object })
|
|
6692
|
-
],
|
|
6716
|
+
], se.prototype, "block", 2);
|
|
6693
6717
|
We([
|
|
6694
6718
|
p({ type: String })
|
|
6695
|
-
],
|
|
6719
|
+
], se.prototype, "rowId", 2);
|
|
6696
6720
|
We([
|
|
6697
6721
|
p({ type: String })
|
|
6698
|
-
],
|
|
6722
|
+
], se.prototype, "columnId", 2);
|
|
6699
6723
|
We([
|
|
6700
6724
|
p({ attribute: !1 })
|
|
6701
|
-
],
|
|
6702
|
-
|
|
6725
|
+
], se.prototype, "swatches", 2);
|
|
6726
|
+
se = We([
|
|
6703
6727
|
u("pigeon-divider-panel")
|
|
6704
|
-
],
|
|
6705
|
-
var
|
|
6706
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
6728
|
+
], se);
|
|
6729
|
+
var fr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, lt = (e, t, o, r) => {
|
|
6730
|
+
for (var i = r > 1 ? void 0 : r ? mr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6707
6731
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6708
|
-
return r && i &&
|
|
6732
|
+
return r && i && fr(t, o, i), i;
|
|
6709
6733
|
};
|
|
6710
|
-
let
|
|
6734
|
+
let _e = class extends g {
|
|
6711
6735
|
constructor() {
|
|
6712
6736
|
super(...arguments), this.rowId = "", this.columnId = "";
|
|
6713
6737
|
}
|
|
@@ -6744,25 +6768,25 @@ let me = class extends g {
|
|
|
6744
6768
|
this._emit({ height: e.detail.value });
|
|
6745
6769
|
}
|
|
6746
6770
|
};
|
|
6747
|
-
|
|
6771
|
+
_e.styles = C;
|
|
6748
6772
|
lt([
|
|
6749
6773
|
p({ type: Object })
|
|
6750
|
-
],
|
|
6774
|
+
], _e.prototype, "block", 2);
|
|
6751
6775
|
lt([
|
|
6752
6776
|
p({ type: String })
|
|
6753
|
-
],
|
|
6777
|
+
], _e.prototype, "rowId", 2);
|
|
6754
6778
|
lt([
|
|
6755
6779
|
p({ type: String })
|
|
6756
|
-
],
|
|
6757
|
-
|
|
6780
|
+
], _e.prototype, "columnId", 2);
|
|
6781
|
+
_e = lt([
|
|
6758
6782
|
u("pigeon-spacer-panel")
|
|
6759
|
-
],
|
|
6760
|
-
var
|
|
6761
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
6783
|
+
], _e);
|
|
6784
|
+
var _r = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, pt = (e, t, o, r) => {
|
|
6785
|
+
for (var i = r > 1 ? void 0 : r ? yr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6762
6786
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6763
|
-
return r && i &&
|
|
6787
|
+
return r && i && _r(t, o, i), i;
|
|
6764
6788
|
};
|
|
6765
|
-
const
|
|
6789
|
+
const xr = [
|
|
6766
6790
|
"facebook",
|
|
6767
6791
|
"twitter",
|
|
6768
6792
|
"instagram",
|
|
@@ -6771,7 +6795,7 @@ const _r = [
|
|
|
6771
6795
|
"tiktok",
|
|
6772
6796
|
"custom"
|
|
6773
6797
|
];
|
|
6774
|
-
let
|
|
6798
|
+
let ye = class extends g {
|
|
6775
6799
|
constructor() {
|
|
6776
6800
|
super(...arguments), this.rowId = "", this.columnId = "";
|
|
6777
6801
|
}
|
|
@@ -6791,7 +6815,7 @@ let _e = class extends g {
|
|
|
6791
6815
|
<div class="field">
|
|
6792
6816
|
<label>${s("panel.social.network")}</label>
|
|
6793
6817
|
<select @change=${(r) => this._onIconTypeChange(o, r)}>
|
|
6794
|
-
${
|
|
6818
|
+
${xr.map((r) => l`
|
|
6795
6819
|
<option value=${r} ?selected=${t.type === r}>${r}</option>
|
|
6796
6820
|
`)}
|
|
6797
6821
|
</select>
|
|
@@ -6915,7 +6939,7 @@ let _e = class extends g {
|
|
|
6915
6939
|
this._emit({ padding: e.detail.value });
|
|
6916
6940
|
}
|
|
6917
6941
|
};
|
|
6918
|
-
|
|
6942
|
+
ye.styles = [
|
|
6919
6943
|
C,
|
|
6920
6944
|
b`
|
|
6921
6945
|
h4 {
|
|
@@ -6977,24 +7001,24 @@ _e.styles = [
|
|
|
6977
7001
|
];
|
|
6978
7002
|
pt([
|
|
6979
7003
|
p({ type: Object })
|
|
6980
|
-
],
|
|
7004
|
+
], ye.prototype, "block", 2);
|
|
6981
7005
|
pt([
|
|
6982
7006
|
p({ type: String })
|
|
6983
|
-
],
|
|
7007
|
+
], ye.prototype, "rowId", 2);
|
|
6984
7008
|
pt([
|
|
6985
7009
|
p({ type: String })
|
|
6986
|
-
],
|
|
6987
|
-
|
|
7010
|
+
], ye.prototype, "columnId", 2);
|
|
7011
|
+
ye = pt([
|
|
6988
7012
|
u("pigeon-social-panel")
|
|
6989
|
-
],
|
|
6990
|
-
var
|
|
6991
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
7013
|
+
], ye);
|
|
7014
|
+
var $r = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, ee = (e, t, o, r) => {
|
|
7015
|
+
for (var i = r > 1 ? void 0 : r ? wr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
6992
7016
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
6993
|
-
return r && i &&
|
|
7017
|
+
return r && i && $r(t, o, i), i;
|
|
6994
7018
|
};
|
|
6995
7019
|
let j = class extends g {
|
|
6996
7020
|
constructor() {
|
|
6997
|
-
super(...arguments), this.rowId = "", this.columnId = "", this.mergeTags = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._textareaRef =
|
|
7021
|
+
super(...arguments), this.rowId = "", this.columnId = "", this.mergeTags = [], this._pickerOpen = !1, this._pickerX = 0, this._pickerY = 0, this._textareaRef = be(), this._triggerRef = be();
|
|
6998
7022
|
}
|
|
6999
7023
|
render() {
|
|
7000
7024
|
if (!this.block) return l``;
|
|
@@ -7006,13 +7030,13 @@ let j = class extends g {
|
|
|
7006
7030
|
<div class="label-row">
|
|
7007
7031
|
<label>${s("panel.html.rawHtml")}</label>
|
|
7008
7032
|
${t ? l`
|
|
7009
|
-
<button class="tag-btn" ${
|
|
7033
|
+
<button class="tag-btn" ${ve(this._triggerRef)} @click=${this._togglePicker} title=${s("panel.common.insertMergeTag")}>
|
|
7010
7034
|
${s("panel.common.tagBtn")}
|
|
7011
7035
|
</button>
|
|
7012
7036
|
` : ""}
|
|
7013
7037
|
</div>
|
|
7014
7038
|
<textarea
|
|
7015
|
-
${
|
|
7039
|
+
${ve(this._textareaRef)}
|
|
7016
7040
|
.value=${e.content}
|
|
7017
7041
|
@change=${this._onContentChange}
|
|
7018
7042
|
></textarea>
|
|
@@ -7141,10 +7165,10 @@ ee([
|
|
|
7141
7165
|
j = ee([
|
|
7142
7166
|
u("pigeon-html-panel")
|
|
7143
7167
|
], j);
|
|
7144
|
-
var
|
|
7145
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
7168
|
+
var kr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, Ce = (e, t, o, r) => {
|
|
7169
|
+
for (var i = r > 1 ? void 0 : r ? Cr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
7146
7170
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
7147
|
-
return r && i &&
|
|
7171
|
+
return r && i && kr(t, o, i), i;
|
|
7148
7172
|
};
|
|
7149
7173
|
let q = class extends g {
|
|
7150
7174
|
constructor() {
|
|
@@ -7257,28 +7281,28 @@ let q = class extends g {
|
|
|
7257
7281
|
}
|
|
7258
7282
|
};
|
|
7259
7283
|
q.styles = C;
|
|
7260
|
-
|
|
7284
|
+
Ce([
|
|
7261
7285
|
p({ type: Object })
|
|
7262
7286
|
], q.prototype, "block", 2);
|
|
7263
|
-
|
|
7287
|
+
Ce([
|
|
7264
7288
|
p({ type: String })
|
|
7265
7289
|
], q.prototype, "rowId", 2);
|
|
7266
|
-
|
|
7290
|
+
Ce([
|
|
7267
7291
|
p({ type: String })
|
|
7268
7292
|
], q.prototype, "columnId", 2);
|
|
7269
|
-
|
|
7293
|
+
Ce([
|
|
7270
7294
|
p({ type: String })
|
|
7271
7295
|
], q.prototype, "label", 2);
|
|
7272
|
-
|
|
7296
|
+
Ce([
|
|
7273
7297
|
p({ type: Array })
|
|
7274
7298
|
], q.prototype, "schema", 2);
|
|
7275
|
-
q =
|
|
7299
|
+
q = Ce([
|
|
7276
7300
|
u("pigeon-custom-panel")
|
|
7277
7301
|
], q);
|
|
7278
|
-
var
|
|
7279
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
7302
|
+
var Ir = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, F = (e, t, o, r) => {
|
|
7303
|
+
for (var i = r > 1 ? void 0 : r ? Pr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
7280
7304
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
7281
|
-
return r && i &&
|
|
7305
|
+
return r && i && Ir(t, o, i), i;
|
|
7282
7306
|
};
|
|
7283
7307
|
let T = class extends g {
|
|
7284
7308
|
constructor() {
|
|
@@ -7386,7 +7410,7 @@ let T = class extends g {
|
|
|
7386
7410
|
hero: "Hero",
|
|
7387
7411
|
navbar: "Navbar"
|
|
7388
7412
|
}, o = e.type;
|
|
7389
|
-
return t[o] ?? ((r =
|
|
7413
|
+
return t[o] ?? ((r = yt(o)) == null ? void 0 : r.label) ?? o;
|
|
7390
7414
|
}
|
|
7391
7415
|
_renderBlockPanel(e, t, o) {
|
|
7392
7416
|
switch (e.type) {
|
|
@@ -7422,7 +7446,7 @@ let T = class extends g {
|
|
|
7422
7446
|
case "html":
|
|
7423
7447
|
return l`<pigeon-html-panel .block=${e} .rowId=${t} .columnId=${o} .mergeTags=${this.mergeTags}></pigeon-html-panel>`;
|
|
7424
7448
|
default: {
|
|
7425
|
-
const r = e.type ?? "unknown", i =
|
|
7449
|
+
const r = e.type ?? "unknown", i = yt(r);
|
|
7426
7450
|
return i != null && i.propertySchema && i.propertySchema.length > 0 ? l`<pigeon-custom-panel
|
|
7427
7451
|
.block=${e}
|
|
7428
7452
|
.rowId=${t}
|
|
@@ -7561,10 +7585,10 @@ F([
|
|
|
7561
7585
|
T = F([
|
|
7562
7586
|
u("pigeon-properties")
|
|
7563
7587
|
], T);
|
|
7564
|
-
var
|
|
7565
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
7588
|
+
var Tr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, S = (e, t, o, r) => {
|
|
7589
|
+
for (var i = r > 1 ? void 0 : r ? Sr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
7566
7590
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
7567
|
-
return r && i &&
|
|
7591
|
+
return r && i && Tr(t, o, i), i;
|
|
7568
7592
|
};
|
|
7569
7593
|
let k = class extends g {
|
|
7570
7594
|
constructor() {
|
|
@@ -7893,16 +7917,16 @@ S([
|
|
|
7893
7917
|
k = S([
|
|
7894
7918
|
u("pigeon-preview")
|
|
7895
7919
|
], k);
|
|
7896
|
-
var
|
|
7897
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
7920
|
+
var Or = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, $ = (e, t, o, r) => {
|
|
7921
|
+
for (var i = r > 1 ? void 0 : r ? Dr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
7898
7922
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
7899
|
-
return r && i &&
|
|
7923
|
+
return r && i && Or(t, o, i), i;
|
|
7900
7924
|
};
|
|
7901
|
-
let
|
|
7902
|
-
function
|
|
7903
|
-
return
|
|
7925
|
+
let _t = null;
|
|
7926
|
+
function Er() {
|
|
7927
|
+
return _t || (_t = import("./templates.js").then((e) => e.p)), _t;
|
|
7904
7928
|
}
|
|
7905
|
-
function
|
|
7929
|
+
function Qt(e) {
|
|
7906
7930
|
return e.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || `template-${Date.now()}`;
|
|
7907
7931
|
}
|
|
7908
7932
|
let _ = class extends g {
|
|
@@ -7939,16 +7963,16 @@ let _ = class extends g {
|
|
|
7939
7963
|
o.values.src = t.src, o.values.alt = t.name, t.width && (o.values.width = t.width);
|
|
7940
7964
|
const r = this._state.selection;
|
|
7941
7965
|
if (r != null && r.rowId && (r != null && r.columnId)) {
|
|
7942
|
-
|
|
7966
|
+
ce(r.rowId, r.columnId, o)(this._state, this._dispatch);
|
|
7943
7967
|
return;
|
|
7944
7968
|
}
|
|
7945
7969
|
const i = this._state.doc.body.rows;
|
|
7946
7970
|
if (i.length > 0) {
|
|
7947
7971
|
const n = i[i.length - 1], a = n.columns[0];
|
|
7948
|
-
|
|
7972
|
+
ce(n.id, a.id, o, a.blocks.length)(this._state, this._dispatch);
|
|
7949
7973
|
} else {
|
|
7950
7974
|
const n = Ie([o]);
|
|
7951
|
-
|
|
7975
|
+
oe(Pe([n]), 0)(this._state, this._dispatch);
|
|
7952
7976
|
}
|
|
7953
7977
|
}, this._dispatch = (e) => {
|
|
7954
7978
|
this._state = this._state.apply(e), this._syncHistoryFlags(), this.requestUpdate(), this._fireChange(), this._fireSelect();
|
|
@@ -7958,7 +7982,7 @@ let _ = class extends g {
|
|
|
7958
7982
|
const o = window.prompt("Name this saved row");
|
|
7959
7983
|
if (!o || !o.trim()) return;
|
|
7960
7984
|
const r = (/* @__PURE__ */ new Date()).toISOString(), i = {
|
|
7961
|
-
id:
|
|
7985
|
+
id: Qt(o),
|
|
7962
7986
|
name: o.trim(),
|
|
7963
7987
|
kind: "row",
|
|
7964
7988
|
node: structuredClone(t),
|
|
@@ -7971,11 +7995,11 @@ let _ = class extends g {
|
|
|
7971
7995
|
this._emitRowLibraryError(n, "save");
|
|
7972
7996
|
}
|
|
7973
7997
|
}, this._handleRowInsertSaved = (e) => {
|
|
7974
|
-
const t =
|
|
7975
|
-
|
|
7998
|
+
const t = jt(e.detail.node);
|
|
7999
|
+
oe(t, e.detail.index)(this._state, this._dispatch);
|
|
7976
8000
|
}, this._handleLibraryInsert = (e) => {
|
|
7977
|
-
const t =
|
|
7978
|
-
|
|
8001
|
+
const t = jt(e.detail.node);
|
|
8002
|
+
oe(t, this._state.doc.body.rows.length)(this._state, this._dispatch);
|
|
7979
8003
|
}, this._handleLibraryDelete = async (e) => {
|
|
7980
8004
|
try {
|
|
7981
8005
|
await this._resolveRowLibrary().delete(e.detail.id), await this._refreshSavedTab();
|
|
@@ -7995,16 +8019,16 @@ let _ = class extends g {
|
|
|
7995
8019
|
}
|
|
7996
8020
|
if (e.key === "Escape") {
|
|
7997
8021
|
const r = this._state.createTransaction();
|
|
7998
|
-
r.setSelection(
|
|
8022
|
+
r.setSelection(Rt()), this._dispatch(r);
|
|
7999
8023
|
return;
|
|
8000
8024
|
}
|
|
8001
8025
|
if (o) {
|
|
8002
8026
|
if (e.key === "Delete" || e.key === "Backspace") {
|
|
8003
|
-
o.type === "block" && o.rowId && o.columnId && o.blockId ? (e.preventDefault(),
|
|
8027
|
+
o.type === "block" && o.rowId && o.columnId && o.blockId ? (e.preventDefault(), ho(o.rowId, o.columnId, o.blockId)(this._state, this._dispatch)) : o.type === "row" && o.rowId && (e.preventDefault(), Lt(o.rowId)(this._state, this._dispatch));
|
|
8004
8028
|
return;
|
|
8005
8029
|
}
|
|
8006
8030
|
if (t && e.key.toLowerCase() === "d") {
|
|
8007
|
-
o.type === "block" && o.rowId && o.columnId && o.blockId ? (e.preventDefault(),
|
|
8031
|
+
o.type === "block" && o.rowId && o.columnId && o.blockId ? (e.preventDefault(), go(o.rowId, o.columnId, o.blockId)(this._state, this._dispatch)) : o.type === "row" && o.rowId && (e.preventDefault(), zt(o.rowId)(this._state, this._dispatch));
|
|
8008
8032
|
return;
|
|
8009
8033
|
}
|
|
8010
8034
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
@@ -8024,13 +8048,13 @@ let _ = class extends g {
|
|
|
8024
8048
|
if (o.type === "block" && o.rowId && o.columnId && o.blockId) {
|
|
8025
8049
|
e.preventDefault();
|
|
8026
8050
|
const r = structuredClone(this._clipboard);
|
|
8027
|
-
r.id =
|
|
8051
|
+
r.id = Mt();
|
|
8028
8052
|
const i = this._findBlockIndex(o.rowId, o.columnId, o.blockId), n = i >= 0 ? i + 1 : void 0;
|
|
8029
|
-
|
|
8053
|
+
ce(o.rowId, o.columnId, r, n)(this._state, this._dispatch);
|
|
8030
8054
|
} else if (o.type === "column" && o.rowId && o.columnId) {
|
|
8031
8055
|
e.preventDefault();
|
|
8032
8056
|
const r = structuredClone(this._clipboard);
|
|
8033
|
-
r.id =
|
|
8057
|
+
r.id = Mt(), ce(o.rowId, o.columnId, r)(this._state, this._dispatch);
|
|
8034
8058
|
}
|
|
8035
8059
|
return;
|
|
8036
8060
|
}
|
|
@@ -8041,13 +8065,13 @@ let _ = class extends g {
|
|
|
8041
8065
|
/* Lifecycle */
|
|
8042
8066
|
/* ------------------------------------------------------------------ */
|
|
8043
8067
|
connectedCallback() {
|
|
8044
|
-
super.connectedCallback(),
|
|
8068
|
+
super.connectedCallback(), Bt(this.config.locale, this.config.messages), this._initState(), this._applyDir(), this._resolveBrandKit(), this._applyTheme(), document.addEventListener("keydown", this._handleKeyDown), this.addEventListener("brand-kit-edit", this._handleBrandKitEdit), this.addEventListener("brand-color-apply", this._handleBrandColorApply), this.addEventListener("brand-font-apply", this._handleBrandFontApply), this.addEventListener("brand-logo-insert", this._handleBrandLogoInsert);
|
|
8045
8069
|
}
|
|
8046
8070
|
disconnectedCallback() {
|
|
8047
8071
|
super.disconnectedCallback(), document.removeEventListener("keydown", this._handleKeyDown), this.removeEventListener("brand-kit-edit", this._handleBrandKitEdit), this.removeEventListener("brand-color-apply", this._handleBrandColorApply), this.removeEventListener("brand-font-apply", this._handleBrandFontApply), this.removeEventListener("brand-logo-insert", this._handleBrandLogoInsert);
|
|
8048
8072
|
}
|
|
8049
8073
|
updated(e) {
|
|
8050
|
-
e.has("document") && this._state && this.document && this.document !== this._state.doc && this.loadDocument(this.document), e.has("_fullscreen") && (this._fullscreen ? this.setAttribute("fullscreen", "") : this.removeAttribute("fullscreen")), (e.has("theme") || e.has("themeOverrides")) && this._applyTheme(), e.has("config") && (
|
|
8074
|
+
e.has("document") && this._state && this.document && this.document !== this._state.doc && this.loadDocument(this.document), e.has("_fullscreen") && (this._fullscreen ? this.setAttribute("fullscreen", "") : this.removeAttribute("fullscreen")), (e.has("theme") || e.has("themeOverrides")) && this._applyTheme(), e.has("config") && (Bt(this.config.locale, this.config.messages), this._applyDir(), this._resolveBrandKit());
|
|
8051
8075
|
}
|
|
8052
8076
|
/**
|
|
8053
8077
|
* Set the host `dir` attribute based on `config.locale` and `config.dir`.
|
|
@@ -8056,7 +8080,7 @@ let _ = class extends g {
|
|
|
8056
8080
|
* bidirectional layout support.
|
|
8057
8081
|
*/
|
|
8058
8082
|
_applyDir() {
|
|
8059
|
-
this.setAttribute("dir",
|
|
8083
|
+
this.setAttribute("dir", po(this.config.locale, this.config.dir));
|
|
8060
8084
|
}
|
|
8061
8085
|
/**
|
|
8062
8086
|
* Sync the active `theme` to the host classes the token sheet keys off, and
|
|
@@ -8082,19 +8106,19 @@ let _ = class extends g {
|
|
|
8082
8106
|
}
|
|
8083
8107
|
/** Replaces the document entirely (resets history). */
|
|
8084
8108
|
loadDocument(e) {
|
|
8085
|
-
this._state =
|
|
8109
|
+
this._state = Ht.create({
|
|
8086
8110
|
doc: e,
|
|
8087
|
-
plugins: [
|
|
8111
|
+
plugins: [Ft()],
|
|
8088
8112
|
...this.config
|
|
8089
8113
|
}), this._syncHistoryFlags(), this.requestUpdate(), this._fireChange();
|
|
8090
8114
|
}
|
|
8091
8115
|
/** Undo the last change. */
|
|
8092
8116
|
undo() {
|
|
8093
|
-
return
|
|
8117
|
+
return uo(this._state, this._dispatch);
|
|
8094
8118
|
}
|
|
8095
8119
|
/** Redo the last undone change. */
|
|
8096
8120
|
redo() {
|
|
8097
|
-
return
|
|
8121
|
+
return bo(this._state, this._dispatch);
|
|
8098
8122
|
}
|
|
8099
8123
|
/** Export the document as JSON. */
|
|
8100
8124
|
exportJson() {
|
|
@@ -8228,13 +8252,13 @@ let _ = class extends g {
|
|
|
8228
8252
|
/* Templates */
|
|
8229
8253
|
/* ------------------------------------------------------------------ */
|
|
8230
8254
|
_resolveTemplateStorage() {
|
|
8231
|
-
return this.templateStorage ? this.templateStorage : (this._defaultTemplateStorage || (this._defaultTemplateStorage = new
|
|
8255
|
+
return this.templateStorage ? this.templateStorage : (this._defaultTemplateStorage || (this._defaultTemplateStorage = new vo()), this._defaultTemplateStorage);
|
|
8232
8256
|
}
|
|
8233
8257
|
_resolveRowLibrary() {
|
|
8234
|
-
return this.config.rowLibrary ? this.config.rowLibrary : (this._defaultRowLibrary || (this._defaultRowLibrary = new
|
|
8258
|
+
return this.config.rowLibrary ? this.config.rowLibrary : (this._defaultRowLibrary || (this._defaultRowLibrary = new fo()), this._defaultRowLibrary);
|
|
8235
8259
|
}
|
|
8236
8260
|
_linkTypes() {
|
|
8237
|
-
return [...
|
|
8261
|
+
return [...mo, ...this.config.linkTypes ?? []];
|
|
8238
8262
|
}
|
|
8239
8263
|
/**
|
|
8240
8264
|
* Resolve `config.brandKit` into a single active kit. A plain `BrandKit` is
|
|
@@ -8288,7 +8312,7 @@ let _ = class extends g {
|
|
|
8288
8312
|
o.addStep(n), this._dispatch(o);
|
|
8289
8313
|
}
|
|
8290
8314
|
async _handleTemplatesOpen() {
|
|
8291
|
-
this._templatePickerLoaded || (await
|
|
8315
|
+
this._templatePickerLoaded || (await Er(), this._templatePickerLoaded = !0), this._templatePickerOpen = !0;
|
|
8292
8316
|
}
|
|
8293
8317
|
_handleTemplateLoad(e) {
|
|
8294
8318
|
var o;
|
|
@@ -8299,7 +8323,7 @@ let _ = class extends g {
|
|
|
8299
8323
|
async _handleTemplateSave(e) {
|
|
8300
8324
|
e.stopPropagation();
|
|
8301
8325
|
const { name: t, description: o, category: r } = e.detail, i = this._resolveTemplateStorage(), n = (/* @__PURE__ */ new Date()).toISOString(), a = {
|
|
8302
|
-
id:
|
|
8326
|
+
id: Qt(t),
|
|
8303
8327
|
name: t,
|
|
8304
8328
|
description: o,
|
|
8305
8329
|
category: r,
|
|
@@ -8317,12 +8341,12 @@ let _ = class extends g {
|
|
|
8317
8341
|
/* Internal: state init & dispatch */
|
|
8318
8342
|
/* ------------------------------------------------------------------ */
|
|
8319
8343
|
_initState() {
|
|
8320
|
-
const e = this.document ?? this.config.doc ??
|
|
8321
|
-
t.some((r) => r.name ===
|
|
8344
|
+
const e = this.document ?? this.config.doc ?? _o(), t = this.config.plugins ?? [];
|
|
8345
|
+
t.some((r) => r.name === Nt) || t.unshift(Ft()), this._state = Ht.create({ doc: e, plugins: t }), this._syncHistoryFlags();
|
|
8322
8346
|
}
|
|
8323
8347
|
_syncHistoryFlags() {
|
|
8324
|
-
const e = this._state.getPluginState(
|
|
8325
|
-
this._canUndo = e ?
|
|
8348
|
+
const e = this._state.getPluginState(Nt);
|
|
8349
|
+
this._canUndo = e ? yo(e) : !1, this._canRedo = e ? xo(e) : !1;
|
|
8326
8350
|
}
|
|
8327
8351
|
/* ------------------------------------------------------------------ */
|
|
8328
8352
|
/* Internal: event emitters */
|
|
@@ -8425,29 +8449,29 @@ let _ = class extends g {
|
|
|
8425
8449
|
_handleRowSelect(e) {
|
|
8426
8450
|
this._editingBlockId = null;
|
|
8427
8451
|
const t = this._state.createTransaction();
|
|
8428
|
-
t.setSelection(
|
|
8452
|
+
t.setSelection(Ut(e.detail.rowId)), this._dispatch(t);
|
|
8429
8453
|
}
|
|
8430
8454
|
_handleColumnSelect(e) {
|
|
8431
8455
|
this._editingBlockId = null;
|
|
8432
8456
|
const t = this._state.createTransaction();
|
|
8433
|
-
t.setSelection(
|
|
8457
|
+
t.setSelection($o(e.detail.rowId, e.detail.columnId)), this._dispatch(t);
|
|
8434
8458
|
}
|
|
8435
8459
|
_handleBodySelect() {
|
|
8436
8460
|
this._editingBlockId = null;
|
|
8437
8461
|
const e = this._state.createTransaction();
|
|
8438
|
-
e.setSelection(
|
|
8462
|
+
e.setSelection(Rt()), this._dispatch(e);
|
|
8439
8463
|
}
|
|
8440
8464
|
/* ------------------------------------------------------------------ */
|
|
8441
8465
|
/* Row action handlers */
|
|
8442
8466
|
/* ------------------------------------------------------------------ */
|
|
8443
8467
|
_handleRowMove(e) {
|
|
8444
|
-
|
|
8468
|
+
wo(e.detail.rowId, e.detail.toIndex)(this._state, this._dispatch);
|
|
8445
8469
|
}
|
|
8446
8470
|
_handleRowDuplicate(e) {
|
|
8447
|
-
|
|
8471
|
+
zt(e.detail.rowId)(this._state, this._dispatch);
|
|
8448
8472
|
}
|
|
8449
8473
|
_handleRowDelete(e) {
|
|
8450
|
-
|
|
8474
|
+
Lt(e.detail.rowId)(this._state, this._dispatch);
|
|
8451
8475
|
}
|
|
8452
8476
|
async _refreshSavedTab() {
|
|
8453
8477
|
var o;
|
|
@@ -8504,7 +8528,7 @@ let _ = class extends g {
|
|
|
8504
8528
|
const i = r + e;
|
|
8505
8529
|
if (i < 0 || i >= o.length) return;
|
|
8506
8530
|
const n = this._state.createTransaction();
|
|
8507
|
-
n.setSelection(
|
|
8531
|
+
n.setSelection(Ut(o[i].id)), this._dispatch(n);
|
|
8508
8532
|
}
|
|
8509
8533
|
_findBlock(e, t, o) {
|
|
8510
8534
|
const r = this._state.doc.body.rows.find((n) => n.id === e);
|
|
@@ -8524,14 +8548,14 @@ let _ = class extends g {
|
|
|
8524
8548
|
/* ------------------------------------------------------------------ */
|
|
8525
8549
|
_handleRowDrop(e) {
|
|
8526
8550
|
const { index: t, columnCount: o } = e.detail, r = Array.from({ length: o }, () => Ie()), i = Pe(r);
|
|
8527
|
-
|
|
8551
|
+
oe(i, t)(this._state, this._dispatch);
|
|
8528
8552
|
}
|
|
8529
8553
|
_handleBlockDrop(e) {
|
|
8530
8554
|
const { rowId: t, columnId: o, index: r, dragData: i } = e.detail;
|
|
8531
8555
|
if (i.type === "palette-block" && i.blockType) {
|
|
8532
8556
|
const n = Ye(i.blockType);
|
|
8533
|
-
|
|
8534
|
-
} else i.type === "existing-block" && i.blockId && i.rowId && i.columnId &&
|
|
8557
|
+
ce(t, o, n, r)(this._state, this._dispatch);
|
|
8558
|
+
} else i.type === "existing-block" && i.blockId && i.rowId && i.columnId && ko(
|
|
8535
8559
|
i.rowId,
|
|
8536
8560
|
i.columnId,
|
|
8537
8561
|
i.blockId,
|
|
@@ -8542,7 +8566,7 @@ let _ = class extends g {
|
|
|
8542
8566
|
}
|
|
8543
8567
|
_handleBlockDropNewRow(e) {
|
|
8544
8568
|
const { blockType: t, rowIndex: o } = e.detail, r = Ye(t), i = Ie([r]), n = Pe([i]);
|
|
8545
|
-
|
|
8569
|
+
oe(n, o)(this._state, this._dispatch);
|
|
8546
8570
|
}
|
|
8547
8571
|
/**
|
|
8548
8572
|
* Keyboard equivalent of dragging a palette item onto the canvas: append the
|
|
@@ -8553,20 +8577,20 @@ let _ = class extends g {
|
|
|
8553
8577
|
const { type: t, blockType: o, columnCount: r } = e.detail, i = this._state.doc.body.rows;
|
|
8554
8578
|
if (t === "palette-row") {
|
|
8555
8579
|
const a = Array.from({ length: r }, () => Ie());
|
|
8556
|
-
|
|
8580
|
+
oe(Pe(a), i.length)(this._state, this._dispatch);
|
|
8557
8581
|
return;
|
|
8558
8582
|
}
|
|
8559
8583
|
if (!o) return;
|
|
8560
8584
|
const n = Ye(o);
|
|
8561
8585
|
if (i.length > 0) {
|
|
8562
8586
|
const a = i[i.length - 1], h = a.columns[0];
|
|
8563
|
-
|
|
8587
|
+
ce(a.id, h.id, n, h.blocks.length)(
|
|
8564
8588
|
this._state,
|
|
8565
8589
|
this._dispatch
|
|
8566
8590
|
);
|
|
8567
8591
|
} else {
|
|
8568
8592
|
const a = Ie([n]);
|
|
8569
|
-
|
|
8593
|
+
oe(Pe([a]), 0)(this._state, this._dispatch);
|
|
8570
8594
|
}
|
|
8571
8595
|
}
|
|
8572
8596
|
/* ------------------------------------------------------------------ */
|
|
@@ -8578,7 +8602,7 @@ let _ = class extends g {
|
|
|
8578
8602
|
}
|
|
8579
8603
|
_handleRowPropertyChange(e) {
|
|
8580
8604
|
const { rowId: t, attributes: o } = e.detail;
|
|
8581
|
-
|
|
8605
|
+
Co(t, o)(this._state, this._dispatch);
|
|
8582
8606
|
}
|
|
8583
8607
|
_handleRowLayoutChange(e) {
|
|
8584
8608
|
const { rowId: t, ratios: o, columnCount: r } = e.detail, i = this._state.doc.body.rows.find((c) => c.id === t);
|
|
@@ -8586,17 +8610,17 @@ let _ = class extends g {
|
|
|
8586
8610
|
const n = i.columns.length, a = r;
|
|
8587
8611
|
if (a > n)
|
|
8588
8612
|
for (let c = 0; c < a - n; c++)
|
|
8589
|
-
|
|
8613
|
+
Io(t)(this._state, this._dispatch);
|
|
8590
8614
|
else if (a < n)
|
|
8591
8615
|
for (let c = 0; c < n - a; c++) {
|
|
8592
8616
|
const v = this._state.doc.body.rows.find((m) => m.id === t);
|
|
8593
8617
|
if (v && v.columns.length > 1) {
|
|
8594
8618
|
const m = v.columns[v.columns.length - 1];
|
|
8595
|
-
|
|
8619
|
+
Po(t, m.id)(this._state, this._dispatch);
|
|
8596
8620
|
}
|
|
8597
8621
|
}
|
|
8598
8622
|
const h = this._state.doc.body.rows.find((c) => c.id === t);
|
|
8599
|
-
h && h.columns.length === o.length &&
|
|
8623
|
+
h && h.columns.length === o.length && To(t, o)(this._state, this._dispatch);
|
|
8600
8624
|
}
|
|
8601
8625
|
_handleBodyPropertyChange(e) {
|
|
8602
8626
|
const { attribute: t, metaField: o, value: r } = e.detail, i = this._state.createTransaction();
|
|
@@ -8630,7 +8654,7 @@ let _ = class extends g {
|
|
|
8630
8654
|
}
|
|
8631
8655
|
};
|
|
8632
8656
|
_.styles = [
|
|
8633
|
-
|
|
8657
|
+
Do,
|
|
8634
8658
|
b`
|
|
8635
8659
|
:host {
|
|
8636
8660
|
display: flex;
|
|
@@ -8718,15 +8742,15 @@ export {
|
|
|
8718
8742
|
Ne as PigeonAlignmentPicker,
|
|
8719
8743
|
x as PigeonAssetManager,
|
|
8720
8744
|
A as PigeonBodyPanel,
|
|
8721
|
-
|
|
8745
|
+
he as PigeonButtonBlock,
|
|
8722
8746
|
Y as PigeonButtonPanel,
|
|
8723
8747
|
P as PigeonCanvas,
|
|
8724
|
-
|
|
8748
|
+
fe as PigeonColorPicker,
|
|
8725
8749
|
O as PigeonColumn,
|
|
8726
8750
|
Be as PigeonDividerBlock,
|
|
8727
8751
|
Ge as PigeonDropIndicator,
|
|
8728
8752
|
_ as PigeonEditor,
|
|
8729
|
-
|
|
8753
|
+
ge as PigeonHeroBlock,
|
|
8730
8754
|
B as PigeonHeroPanel,
|
|
8731
8755
|
Le as PigeonHtmlBlock,
|
|
8732
8756
|
Ae as PigeonImageBlock,
|
|
@@ -8734,7 +8758,7 @@ export {
|
|
|
8734
8758
|
Ee as PigeonLayers,
|
|
8735
8759
|
V as PigeonMergeTagPicker,
|
|
8736
8760
|
ze as PigeonNavBarBlock,
|
|
8737
|
-
|
|
8761
|
+
ae as PigeonNavBarPanel,
|
|
8738
8762
|
I as PigeonPalette,
|
|
8739
8763
|
W as PigeonPaletteItem,
|
|
8740
8764
|
k as PigeonPreview,
|
|
@@ -8745,15 +8769,15 @@ export {
|
|
|
8745
8769
|
Re as PigeonSocialBlock,
|
|
8746
8770
|
je as PigeonSpacerBlock,
|
|
8747
8771
|
Ue as PigeonSpacingInput,
|
|
8748
|
-
|
|
8749
|
-
|
|
8772
|
+
Ur as PigeonTemplatePicker,
|
|
8773
|
+
de as PigeonTextBlock,
|
|
8750
8774
|
E as PigeonTextPanel,
|
|
8751
8775
|
K as PigeonToolbar,
|
|
8752
|
-
|
|
8753
|
-
|
|
8776
|
+
Yo as calculateBlockDropIndex,
|
|
8777
|
+
Vo as calculateRowDropIndex,
|
|
8754
8778
|
Xe as clearDragData,
|
|
8755
8779
|
De as getDragData,
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8780
|
+
Hr as readDragTransfer,
|
|
8781
|
+
Bo as setDragData,
|
|
8782
|
+
wt as writeDragTransfer
|
|
8759
8783
|
};
|