@useinsider/guido 1.0.3-beta.63e6005 → 1.0.3-beta.671eb65
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/@types/generic.d.ts +6 -1
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +69 -67
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +2 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.d.ts +2 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +12 -13
- package/dist/composables/useStripo.js +25 -21
- package/dist/config/compiler/unsubscribeCompilerRules.js +39 -26
- package/dist/config/migrator/couponBlockMigrator.d.ts +1 -0
- package/dist/config/migrator/couponBlockMigrator.js +67 -0
- package/dist/config/migrator/index.js +7 -6
- package/dist/config/migrator/unsubscribeMigrator.js +61 -49
- package/dist/enums/extensions/recommendationBlock.d.ts +16 -0
- package/dist/enums/extensions/recommendationBlock.js +80 -0
- package/dist/enums/unsubscribe.d.ts +4 -0
- package/dist/enums/unsubscribe.js +15 -11
- package/dist/extensions/Blocks/Checkbox/block.d.ts +1 -0
- package/dist/extensions/Blocks/Checkbox/block.js +15 -24
- package/dist/extensions/Blocks/Checkbox/control.js +55 -67
- package/dist/extensions/Blocks/Checkbox/extension.js +5 -16
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +18 -0
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +12 -25
- package/dist/extensions/Blocks/Checkbox/template.js +5 -16
- package/dist/extensions/Blocks/CouponBlock/block.d.ts +12 -0
- package/dist/extensions/Blocks/CouponBlock/block.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/extension.d.ts +2 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +8 -0
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +24 -0
- package/dist/extensions/Blocks/CouponBlock/template.d.ts +3 -0
- package/dist/extensions/Blocks/CouponBlock/template.js +18 -0
- package/dist/extensions/Blocks/RadioButton/block.d.ts +1 -0
- package/dist/extensions/Blocks/RadioButton/block.js +13 -22
- package/dist/extensions/Blocks/RadioButton/control.js +40 -52
- package/dist/extensions/Blocks/RadioButton/extension.js +4 -15
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +14 -0
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +13 -26
- package/dist/extensions/Blocks/RadioButton/template.js +13 -24
- package/dist/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/extensions/Blocks/Recommendation/block.js +27 -0
- package/dist/extensions/Blocks/Recommendation/control.d.ts +29 -0
- package/dist/extensions/Blocks/Recommendation/control.js +277 -0
- package/dist/extensions/Blocks/Recommendation/extension.d.ts +2 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +10 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +32 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
- package/dist/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
- package/dist/extensions/Blocks/Unsubscribe/block.d.ts +1 -0
- package/dist/extensions/Blocks/Unsubscribe/block.js +28 -41
- package/dist/extensions/Blocks/Unsubscribe/control.js +43 -56
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +12 -24
- package/dist/extensions/Blocks/Unsubscribe/extension.js +10 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +21 -0
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +27 -24
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +6 -18
- package/dist/extensions/Blocks/Unsubscribe/template.js +9 -20
- package/dist/extensions/Blocks/_Boilerplate/block.d.ts +1 -0
- package/dist/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/common-control.d.ts +66 -0
- package/dist/extensions/Blocks/common-control.js +102 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +31 -45
- package/dist/extensions/DynamicContent/extension.js +6 -18
- package/dist/guido.css +1 -1
- package/dist/mock/api/recommendation.d.ts +2 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +659 -0
- package/dist/services/recommendationApi.d.ts +6 -0
- package/dist/services/recommendationApi.js +43 -0
- package/dist/stores/config.d.ts +96 -0
- package/dist/stores/config.js +17 -0
- package/dist/stores/editor.d.ts +21 -0
- package/dist/stores/editor.js +2 -1
- package/dist/stores/unsubscribe.d.ts +72 -2
- package/dist/stores/unsubscribe.js +43 -42
- package/dist/utils/genericUtil.d.ts +1 -0
- package/dist/utils/genericUtil.js +8 -7
- package/dist/utils/templatePreparation.js +17 -16
- package/package.json +3 -3
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -75
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -77
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -123
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -119
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -25
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -24
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -33
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -40
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -5
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var d = (
|
|
3
|
-
var u = (
|
|
2
|
+
var d = (a, s, e) => s in a ? h(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e;
|
|
3
|
+
var u = (a, s, e) => d(a, typeof s != "symbol" ? s + "" : s, e);
|
|
4
4
|
import { useUnsubscribeStore as l } from "../../../stores/unsubscribe.js";
|
|
5
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
6
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
|
|
7
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
|
|
8
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
9
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
10
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
11
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
12
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
13
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
14
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
15
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
16
|
-
import { UEAttr as i } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js";
|
|
17
|
-
import { UIElementType as n } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
18
|
-
import { Control as T } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js";
|
|
5
|
+
import { Control as T, UEAttr as i, UIElementType as n } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
19
6
|
import { DATA_ATTRIBUTES as p } from "./utils/constants.js";
|
|
20
7
|
import { parsePageList as _ } from "./utils/utils.js";
|
|
21
8
|
const g = "ui-elements-unsubscribe", r = {
|
|
@@ -25,7 +12,7 @@ const g = "ui-elements-unsubscribe", r = {
|
|
|
25
12
|
COUNTER_TEXT: "counterText",
|
|
26
13
|
PREVIEW_IMAGE: "previewImage"
|
|
27
14
|
};
|
|
28
|
-
class
|
|
15
|
+
class N extends T {
|
|
29
16
|
constructor() {
|
|
30
17
|
super(...arguments);
|
|
31
18
|
u(this, "currentPreviewIndex", 0);
|
|
@@ -45,23 +32,23 @@ class R extends T {
|
|
|
45
32
|
</div>
|
|
46
33
|
`;
|
|
47
34
|
}
|
|
48
|
-
onTemplateNodeUpdated(
|
|
49
|
-
if (this.currentNode =
|
|
50
|
-
const
|
|
51
|
-
|
|
35
|
+
onTemplateNodeUpdated(e) {
|
|
36
|
+
if (this.currentNode = e, "getAttribute" in this.currentNode) {
|
|
37
|
+
const t = this.currentNode.getAttribute(p.PAGE_LIST);
|
|
38
|
+
t && (t !== this.lastParsedAttribute && (this.currentPages = _(t), this.lastParsedAttribute = t, this.currentPreviewIndex = 0), this._updatePreview(), this._updateCounter());
|
|
52
39
|
}
|
|
53
40
|
}
|
|
54
41
|
onRender() {
|
|
55
42
|
this._listenToFormUpdates(), this._updateCounter();
|
|
56
43
|
}
|
|
57
44
|
onDestroy() {
|
|
58
|
-
this.valueChangeHandlers.forEach((
|
|
59
|
-
typeof
|
|
45
|
+
this.valueChangeHandlers.forEach((e) => {
|
|
46
|
+
typeof e == "function" && e();
|
|
60
47
|
}), this.valueChangeHandlers = [], this.currentNode = void 0, this.currentPages = void 0, this.currentPreviewIndex = 0, this.lastParsedAttribute = void 0;
|
|
61
48
|
}
|
|
62
49
|
get totalTemplates() {
|
|
63
|
-
var
|
|
64
|
-
return ((
|
|
50
|
+
var e;
|
|
51
|
+
return ((e = this.currentPages) == null ? void 0 : e.length) ?? 0;
|
|
65
52
|
}
|
|
66
53
|
_listenToFormUpdates() {
|
|
67
54
|
this.valueChangeHandlers.push(
|
|
@@ -74,10 +61,10 @@ class R extends T {
|
|
|
74
61
|
}
|
|
75
62
|
_onButtonClick() {
|
|
76
63
|
try {
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
} catch (
|
|
80
|
-
console.error("[UnsubscribeControl] Failed to open drawer:",
|
|
64
|
+
const e = l();
|
|
65
|
+
e.activeType = e.getSelectedCollection[this.currentPreviewIndex], e.pageSelectionUpdateStatus = !0, e.pageSelectionDrawerStatus = !0;
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.error("[UnsubscribeControl] Failed to open drawer:", e);
|
|
81
68
|
}
|
|
82
69
|
}
|
|
83
70
|
_onPrevClick() {
|
|
@@ -87,27 +74,27 @@ class R extends T {
|
|
|
87
74
|
this.currentPreviewIndex < this.totalTemplates - 1 && (this.currentPreviewIndex++, this._updatePreview(), this._updateCounter());
|
|
88
75
|
}
|
|
89
76
|
_updatePreview() {
|
|
90
|
-
var
|
|
91
|
-
if ((
|
|
77
|
+
var e;
|
|
78
|
+
if ((e = this.currentPages) != null && e.length)
|
|
92
79
|
try {
|
|
93
|
-
const
|
|
94
|
-
if (!
|
|
95
|
-
console.warn("[UnsubscribeControl] No thumbnail found for page:",
|
|
80
|
+
const t = this.currentPages[this.currentPreviewIndex], o = l().getThumbnailByTemplateId(t);
|
|
81
|
+
if (!o) {
|
|
82
|
+
console.warn("[UnsubscribeControl] No thumbnail found for page:", t);
|
|
96
83
|
return;
|
|
97
84
|
}
|
|
98
85
|
this.api.updateValues({
|
|
99
|
-
[r.PREVIEW_IMAGE]:
|
|
86
|
+
[r.PREVIEW_IMAGE]: o
|
|
100
87
|
});
|
|
101
|
-
} catch (
|
|
102
|
-
console.error("[UnsubscribeControl] Failed to update preview:",
|
|
88
|
+
} catch (t) {
|
|
89
|
+
console.error("[UnsubscribeControl] Failed to update preview:", t);
|
|
103
90
|
}
|
|
104
91
|
}
|
|
105
92
|
_updateCounter() {
|
|
106
|
-
const
|
|
107
|
-
this.api.setUIEAttribute(r.PREV_BUTTON, i.BUTTON.disabled, c), this.api.setUIEAttribute(r.NEXT_BUTTON, i.BUTTON.disabled,
|
|
93
|
+
const e = this.currentPreviewIndex + 1, t = this.totalTemplates, c = this.currentPreviewIndex === 0, o = this.currentPreviewIndex >= t - 1;
|
|
94
|
+
this.api.setUIEAttribute(r.PREV_BUTTON, i.BUTTON.disabled, c), this.api.setUIEAttribute(r.NEXT_BUTTON, i.BUTTON.disabled, o), this.api.setUIEAttribute(
|
|
108
95
|
r.COUNTER_TEXT,
|
|
109
96
|
i.LABEL.text,
|
|
110
|
-
`${this.api.translate("Showing")} ${
|
|
97
|
+
`${this.api.translate("Showing")} ${e} ${this.api.translate("of")} ${t}`
|
|
111
98
|
);
|
|
112
99
|
}
|
|
113
100
|
_getPreview() {
|
|
@@ -136,45 +123,45 @@ class R extends T {
|
|
|
136
123
|
</${n.BUTTON}>
|
|
137
124
|
`;
|
|
138
125
|
}
|
|
139
|
-
_getLabel(
|
|
126
|
+
_getLabel(e, t) {
|
|
140
127
|
return `
|
|
141
128
|
<${n.LABEL}
|
|
142
|
-
${i.LABEL.text}="${
|
|
143
|
-
${i.LABEL.name}="${
|
|
129
|
+
${i.LABEL.text}="${e}"
|
|
130
|
+
${i.LABEL.name}="${t}"
|
|
144
131
|
>
|
|
145
132
|
</${n.LABEL}>
|
|
146
133
|
`;
|
|
147
134
|
}
|
|
148
|
-
_getIconButton(
|
|
149
|
-
const
|
|
135
|
+
_getIconButton(e, t, c) {
|
|
136
|
+
const o = c ? `${i.BUTTON.disabled}="true"` : "";
|
|
150
137
|
return `
|
|
151
138
|
<${n.BUTTON}
|
|
152
|
-
id="${
|
|
139
|
+
id="${e}"
|
|
153
140
|
class="flat-inline flat-white"
|
|
154
|
-
${i.BUTTON.name}="${
|
|
155
|
-
${
|
|
141
|
+
${i.BUTTON.name}="${e}"
|
|
142
|
+
${o}
|
|
156
143
|
>
|
|
157
144
|
<${n.ICON}
|
|
158
|
-
src="${
|
|
145
|
+
src="${t}"
|
|
159
146
|
class="icon-button"
|
|
160
147
|
></${n.ICON}>
|
|
161
148
|
</${n.BUTTON}>
|
|
162
149
|
`;
|
|
163
150
|
}
|
|
164
151
|
_getPrevButton() {
|
|
165
|
-
const
|
|
166
|
-
return this._getIconButton(r.PREV_BUTTON, "arrow-back",
|
|
152
|
+
const e = this.currentPreviewIndex === 0;
|
|
153
|
+
return this._getIconButton(r.PREV_BUTTON, "arrow-back", e);
|
|
167
154
|
}
|
|
168
155
|
_getNextButton() {
|
|
169
|
-
const
|
|
170
|
-
return this._getIconButton(r.NEXT_BUTTON, "arrow-right",
|
|
156
|
+
const e = this.currentPreviewIndex >= this.totalTemplates - 1;
|
|
157
|
+
return this._getIconButton(r.NEXT_BUTTON, "arrow-right", e);
|
|
171
158
|
}
|
|
172
159
|
_getCounterText() {
|
|
173
|
-
const
|
|
174
|
-
return this._getLabel(
|
|
160
|
+
const t = `Showing ${this.currentPreviewIndex + 1} of ${this.totalTemplates}`;
|
|
161
|
+
return this._getLabel(t, r.COUNTER_TEXT);
|
|
175
162
|
}
|
|
176
163
|
}
|
|
177
164
|
export {
|
|
178
165
|
g as UNSUBSCRIBE_CONTROL_ID,
|
|
179
|
-
|
|
166
|
+
N as UnsubscribeControl
|
|
180
167
|
};
|
|
@@ -1,41 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
8
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
9
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
10
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
11
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
12
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
13
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
14
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
15
|
-
import "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
16
|
-
import { UIElement as n } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js";
|
|
17
|
-
const o = "unsubscribe-preview", p = "img", E = "Unsubscribe page preview";
|
|
18
|
-
class A extends n {
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var n = (i, t, e) => t in i ? r(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var s = (i, t, e) => n(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { UIElement as m } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
const E = "unsubscribe-preview", l = "img", c = "Unsubscribe page preview";
|
|
6
|
+
class o extends m {
|
|
19
7
|
constructor() {
|
|
20
8
|
super(...arguments);
|
|
21
|
-
|
|
9
|
+
s(this, "imgElement");
|
|
22
10
|
}
|
|
23
11
|
getId() {
|
|
24
|
-
return
|
|
12
|
+
return E;
|
|
25
13
|
}
|
|
26
14
|
getTemplate() {
|
|
27
15
|
return `
|
|
28
16
|
<div class="unsubscribe-preview-image-container">
|
|
29
17
|
<img
|
|
30
18
|
src=""
|
|
31
|
-
alt="${
|
|
19
|
+
alt="${c}"
|
|
32
20
|
class="unsubscribe-preview-image"
|
|
33
21
|
/>
|
|
34
22
|
</div>
|
|
35
23
|
`;
|
|
36
24
|
}
|
|
37
25
|
onRender(e) {
|
|
38
|
-
this.imgElement = e.querySelector(
|
|
26
|
+
this.imgElement = e.querySelector(l);
|
|
39
27
|
}
|
|
40
28
|
setValue(e) {
|
|
41
29
|
this.imgElement && (this.imgElement.src = e);
|
|
@@ -49,6 +37,6 @@ class A extends n {
|
|
|
49
37
|
}
|
|
50
38
|
}
|
|
51
39
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
E as PREVIEW_UI_ELEMENT_ID,
|
|
41
|
+
o as PreviewUIElement
|
|
54
42
|
};
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
5
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
6
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
7
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
8
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
9
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
10
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
11
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
-
import { ExtensionBuilder as i } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js";
|
|
14
|
-
import { UnsubscribeBlock as t } from "./block.js";
|
|
15
|
-
import { UnsubscribeControl as e } from "./control.js";
|
|
1
|
+
import { ExtensionBuilder as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { UnsubscribeBlock as i } from "./block.js";
|
|
3
|
+
import { UnsubscribeControl as t } from "./control.js";
|
|
16
4
|
import { PreviewUIElement as o } from "./elements/preview.js";
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
|
|
5
|
+
import { UnsubscribeIconsRegistry as r } from "./iconsRegistry.js";
|
|
6
|
+
import { SettingsPanel as s } from "./settingsPanel.js";
|
|
7
|
+
import n from "./styles.css.js";
|
|
8
|
+
import { UnsubscribeTagRegistry as l } from "./tagRegistry.js";
|
|
9
|
+
const f = new e().addBlock(i).withSettingsPanelRegistry(s).addControl(t).addUiElement(o).addStyles(n).withLocalization({
|
|
21
10
|
en: {
|
|
22
11
|
"Unsubscribe Block": "Unsubscribe Block",
|
|
23
12
|
"Unsubscribe Block Description": "Add an unsubscribe link to your email",
|
|
@@ -26,7 +15,7 @@ const x = new i().addBlock(t).withSettingsPanelRegistry(r).addControl(e).addUiEl
|
|
|
26
15
|
Showing: "Showing",
|
|
27
16
|
of: "of"
|
|
28
17
|
}
|
|
29
|
-
}).withUiElementTagRegistry(
|
|
18
|
+
}).withUiElementTagRegistry(l).withIconsRegistry(r).build();
|
|
30
19
|
export {
|
|
31
|
-
|
|
20
|
+
f as default
|
|
32
21
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconsRegistry as s } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
class i extends s {
|
|
3
|
+
registerIconsSvg(C) {
|
|
4
|
+
C["unsubscribe-icon"] = `
|
|
5
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path d="M4.5 9C6.98528 9 9 11.0147 9 13.5C9 15.9853 6.98528 18 4.5 18C2.01472 18 0 15.9853 0 13.5C0
|
|
7
|
+
11.0147 2.01472 9 4.5 9ZM2.17383 12.5879C2.06286 12.8707 2 13.1778 2 13.5C2 14.8807 3.11929 16 4.5
|
|
8
|
+
16C4.82196 16 5.12848 15.936 5.41113 15.8252L2.17383 12.5879ZM4.5 11C4.17785 11 3.87068 11.0629 3.58789
|
|
9
|
+
11.1738L6.8252 14.4111C6.93604 14.1285 7 13.822 7 13.5C7 12.1193 5.88071 11 4.5 11ZM16 0C17.1046 0 18
|
|
10
|
+
0.895431 18 2L18 12C18 13.1046 17.1046 14 16 14H11C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11
|
|
11
|
+
12H16L16 5.93262L9.49609 8.87305C9.35966 8.94801 9.20653 8.99125 9.04883 8.99805C9.03254 8.99891 9.01624
|
|
12
|
+
8.99895 9 8.99902C8.98344 8.99894 8.9668 8.99894 8.9502 8.99805C8.79257 8.99109 8.63925 8.9481 8.50293
|
|
13
|
+
8.87305L2 5.93262L2 8C2 8.55229 1.55228 9 1 9C0.447715 9 0 8.55229 0 8L0 2C0 0.895431 0.895431
|
|
14
|
+
9.69188e-09 2 0L16 0ZM2 3.80664L9 6.96973L16 3.80664V2L2 2L2 3.80664Z" fill="#666666"/>
|
|
15
|
+
</svg>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as UnsubscribeIconsRegistry
|
|
21
|
+
};
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
10
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
11
|
-
import { SettingsTab as r } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
-
import { SettingsPanelRegistry as i } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js";
|
|
14
|
-
import { SettingsPanelTab as m } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js";
|
|
15
|
-
import { UNSUBSCRIBE_BLOCK_ID as e } from "./block.js";
|
|
16
|
-
import { UNSUBSCRIBE_CONTROL_ID as p } from "./control.js";
|
|
17
|
-
class c extends i {
|
|
18
|
-
registerBlockControls(t) {
|
|
19
|
-
t[e] = [
|
|
20
|
-
new m(
|
|
21
|
-
r.SETTINGS,
|
|
1
|
+
import { SettingsPanelRegistry as e, SettingsPanelTab as N, SettingsTab as t, TextControls as O } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { UNSUBSCRIBE_BLOCK_ID as I } from "./block.js";
|
|
3
|
+
import { UNSUBSCRIBE_CONTROL_ID as _ } from "./control.js";
|
|
4
|
+
class R extends e {
|
|
5
|
+
registerBlockControls(T) {
|
|
6
|
+
T[I] = [
|
|
7
|
+
new N(
|
|
8
|
+
t.SETTINGS,
|
|
22
9
|
[
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
_,
|
|
11
|
+
O.FORMAT,
|
|
12
|
+
O.ALIGN,
|
|
13
|
+
O.LINE_HEIGHT,
|
|
14
|
+
O.DIRECTION,
|
|
15
|
+
O.INTERNAL_INDENTS,
|
|
16
|
+
O.HIDDEN_NODE
|
|
17
|
+
]
|
|
18
|
+
),
|
|
19
|
+
new N(
|
|
20
|
+
t.STYLES,
|
|
21
|
+
[
|
|
22
|
+
O.TEXT_BLOCK_BACKGROUND_COLOR,
|
|
23
|
+
O.FONT_FAMILY,
|
|
24
|
+
O.FONT_SIZE,
|
|
25
|
+
O.FONT_COLOR,
|
|
26
|
+
O.FONT_BACKGROUND_COLOR,
|
|
27
|
+
O.LINKS_COLOR
|
|
25
28
|
]
|
|
26
29
|
)
|
|
27
30
|
];
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
R as SettingsPanel
|
|
32
35
|
};
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
7
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
8
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
9
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
10
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
11
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
-
import { UIElementTagRegistry as i } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js";
|
|
14
|
-
import { PREVIEW_UI_ELEMENT_ID as r } from "./elements/preview.js";
|
|
15
|
-
class b extends i {
|
|
16
|
-
registerUiElements(t) {
|
|
17
|
-
t[r] = r;
|
|
1
|
+
import { UIElementTagRegistry as s } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { PREVIEW_UI_ELEMENT_ID as e } from "./elements/preview.js";
|
|
3
|
+
class m extends s {
|
|
4
|
+
registerUiElements(r) {
|
|
5
|
+
r[e] = e;
|
|
18
6
|
}
|
|
19
7
|
}
|
|
20
8
|
export {
|
|
21
|
-
|
|
9
|
+
m as UnsubscribeTagRegistry
|
|
22
10
|
};
|
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { BlockType as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
5
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
6
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
7
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
8
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
9
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
10
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
11
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
-
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
-
const r = "unsubscribe", e = "{{ins-unsubscribe-link}}", s = `
|
|
14
|
-
<${t.BLOCK_TEXT}
|
|
1
|
+
import { BlockType as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
const s = "unsubscribe", n = "{{ins-unsubscribe-link}}", t = `
|
|
3
|
+
<${e.BLOCK_TEXT}
|
|
15
4
|
class="unsubscribe-block-v2 esd-block-unsubscribe es-p0"
|
|
16
5
|
align="center"
|
|
17
6
|
data-unsubscribe-page-type=""
|
|
18
7
|
data-unsubscribe-page-list=""
|
|
19
8
|
>
|
|
20
9
|
<p>You can <strong><a
|
|
21
|
-
href="${
|
|
10
|
+
href="${n}"
|
|
22
11
|
class="unsubscribe-link"
|
|
23
12
|
target="_blank"
|
|
24
13
|
data-unsubscribe-link="true"
|
|
25
|
-
>${
|
|
26
|
-
</${
|
|
14
|
+
>${s}</a></strong> from our emails, if you need to.</p>
|
|
15
|
+
</${e.BLOCK_TEXT}>
|
|
27
16
|
`;
|
|
28
|
-
function
|
|
29
|
-
return
|
|
17
|
+
function r() {
|
|
18
|
+
return t;
|
|
30
19
|
}
|
|
31
20
|
export {
|
|
32
|
-
|
|
21
|
+
r as getDefaultTemplate
|
|
33
22
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
export declare const BLOCK_ID = "{{your-block}}";
|
|
3
3
|
export declare class CustomBlock extends Block {
|
|
4
|
+
constructor();
|
|
4
5
|
getId(): string;
|
|
5
6
|
getIcon(): string;
|
|
6
7
|
getBlockCompositionType(): BlockCompositionType;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Control, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
|
+
interface TextInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
interface LabelProps {
|
|
8
|
+
text: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
position?: 'top' | 'left';
|
|
11
|
+
}
|
|
12
|
+
interface IconButtonProps {
|
|
13
|
+
name: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface SelectProps {
|
|
18
|
+
name: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
options: {
|
|
21
|
+
text: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
interface CounterProps {
|
|
27
|
+
name: string;
|
|
28
|
+
maxValue: number;
|
|
29
|
+
minValue?: number;
|
|
30
|
+
step?: number;
|
|
31
|
+
}
|
|
32
|
+
interface ButtonProps {
|
|
33
|
+
name: string;
|
|
34
|
+
label: string;
|
|
35
|
+
id?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Common control for all blocks which includes common UI Elements.
|
|
39
|
+
* If you need to add a new UI Element, you can add it here.
|
|
40
|
+
*/
|
|
41
|
+
export declare abstract class CommonControl extends Control {
|
|
42
|
+
currentNode?: ImmutableHtmlNode;
|
|
43
|
+
abstract getId(): string;
|
|
44
|
+
abstract getTemplate(): string;
|
|
45
|
+
abstract onRender(): Promise<void> | void;
|
|
46
|
+
getContainer(): ShadowRoot;
|
|
47
|
+
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
48
|
+
_GuLabel({ text, name, position }: LabelProps): string;
|
|
49
|
+
_GuToggle(name: string): string;
|
|
50
|
+
_GuSelectItem({ text, value }: {
|
|
51
|
+
text: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}): string;
|
|
54
|
+
_GuSelect({ name, placeholder, options, className }: SelectProps): string;
|
|
55
|
+
_GuTextInput({ name, placeholder, className }: TextInputProps): string;
|
|
56
|
+
_GuCounter({ name, maxValue, minValue, step }: CounterProps): string;
|
|
57
|
+
_GuButton({ name, label, id }: ButtonProps): string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param param0
|
|
61
|
+
* @returns It returns a button with an icon.
|
|
62
|
+
*/
|
|
63
|
+
_GuIconButton({ name, icon, className }: IconButtonProps): string;
|
|
64
|
+
_GuTwoColumns(children: string[]): string;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var C = (E, o, e) => o in E ? l(E, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[o] = e;
|
|
3
|
+
var u = (E, o, e) => C(E, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { Control as c, UIElementType as $, UEAttr as t } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
class L extends c {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
u(this, "currentNode");
|
|
9
|
+
}
|
|
10
|
+
getContainer() {
|
|
11
|
+
var e;
|
|
12
|
+
return (e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot;
|
|
13
|
+
}
|
|
14
|
+
onTemplateNodeUpdated(e) {
|
|
15
|
+
this.currentNode = e;
|
|
16
|
+
}
|
|
17
|
+
_GuLabel({ text: e, name: T = "", position: n = "top" }) {
|
|
18
|
+
return `
|
|
19
|
+
<${$.LABEL}
|
|
20
|
+
style="${n === "top" ? "margin-bottom: 8px;" : ""}"
|
|
21
|
+
${t.LABEL.text}="${e}"
|
|
22
|
+
${t.LABEL.name}="${T || `${e} Label`}">
|
|
23
|
+
</${$.LABEL}>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
_GuToggle(e) {
|
|
27
|
+
return `
|
|
28
|
+
<${$.SWITCHER}
|
|
29
|
+
${t.SWITCHER.name}="${e}">
|
|
30
|
+
</${$.SWITCHER}>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
_GuSelectItem({ text: e, value: T }) {
|
|
34
|
+
return `
|
|
35
|
+
<${$.SELECT_ITEM}
|
|
36
|
+
${t.SELECT_ITEM.text}="${e}"
|
|
37
|
+
${t.SELECT_ITEM.value}="${T}">
|
|
38
|
+
</${$.SELECT_ITEM}>`;
|
|
39
|
+
}
|
|
40
|
+
_GuSelect({ name: e, placeholder: T, options: n, className: r = "es-180w" }) {
|
|
41
|
+
return `
|
|
42
|
+
<${$.SELECTPICKER}
|
|
43
|
+
class="${r}"
|
|
44
|
+
${t.SELECTPICKER.name}="${e}"
|
|
45
|
+
${t.SELECTPICKER.placeholder}="${T}">
|
|
46
|
+
${n.map((a) => this._GuSelectItem(a)).join("")}
|
|
47
|
+
</${$.SELECTPICKER}>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
_GuTextInput({ name: e, placeholder: T, className: n = "" }) {
|
|
51
|
+
return `
|
|
52
|
+
<${$.TEXT}
|
|
53
|
+
class=${n}
|
|
54
|
+
${t.TEXT.name}="${e}"
|
|
55
|
+
placeholder="${T || e}">
|
|
56
|
+
</${$.TEXT}>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
_GuCounter({ name: e, maxValue: T, minValue: n = 1, step: r = 1 }) {
|
|
60
|
+
return `
|
|
61
|
+
<${$.COUNTER}
|
|
62
|
+
${t.COUNTER.name}="${e}"
|
|
63
|
+
${t.COUNTER.minValue}="${n}"
|
|
64
|
+
${t.COUNTER.maxValue}="${T}"
|
|
65
|
+
${t.COUNTER.step}="${r}">
|
|
66
|
+
</${$.COUNTER}>
|
|
67
|
+
`;
|
|
68
|
+
}
|
|
69
|
+
_GuButton({ name: e, label: T, id: n = "" }) {
|
|
70
|
+
return `
|
|
71
|
+
<${$.BUTTON}
|
|
72
|
+
${t.BUTTON.name}="${e}"
|
|
73
|
+
${n ? `id="${n}"` : ""}
|
|
74
|
+
${t.BUTTON.caption}="${T}"}>
|
|
75
|
+
</${$.BUTTON}>
|
|
76
|
+
`;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param param0
|
|
81
|
+
* @returns It returns a button with an icon.
|
|
82
|
+
*/
|
|
83
|
+
_GuIconButton({ name: e, icon: T, className: n = "" }) {
|
|
84
|
+
return `
|
|
85
|
+
<${$.BUTTON}
|
|
86
|
+
class="${n}"
|
|
87
|
+
${t.BUTTON.name}="${e}"
|
|
88
|
+
${t.BUTTON.icon}="${T}">
|
|
89
|
+
</${$.BUTTON}>
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
_GuTwoColumns(e) {
|
|
93
|
+
return `
|
|
94
|
+
<div class="checkbox-select-container container two-columns">
|
|
95
|
+
${e.join("")}
|
|
96
|
+
</div>
|
|
97
|
+
`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
L as CommonControl
|
|
102
|
+
};
|