@useinsider/guido 3.2.0-beta.739a669 → 3.2.0-beta.7e0c6bd
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/config/schemas.js +1 -1
- package/dist/@types/config/validator.js +27 -34
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +76 -81
- package/dist/components/organisms/base/Toaster.vue2.js +10 -11
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +9 -15
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
- package/dist/components/organisms/header/EditorActions.vue.js +11 -12
- package/dist/components/organisms/header/EditorActions.vue2.js +18 -22
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
- package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
- package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
- package/dist/components/organisms/header/RightSlot.vue2.js +14 -17
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +24 -26
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +41 -44
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +36 -38
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +30 -32
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +21 -23
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +8 -9
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
- package/dist/composables/useActionsApi.js +37 -38
- package/dist/composables/useBlocksConfig.js +26 -26
- package/dist/composables/useFullStoryBridge.js +13 -0
- package/dist/composables/useHtmlCompiler.js +34 -26
- package/dist/composables/useHtmlValidator.js +101 -109
- package/dist/composables/useHttp.js +30 -30
- package/dist/composables/usePartner.js +1 -1
- package/dist/composables/useRecommendation.js +14 -15
- package/dist/composables/useRibbonOffset.js +15 -15
- package/dist/composables/useSave.js +21 -22
- package/dist/composables/useStripo.js +45 -40
- package/dist/composables/useSyncModuleExtractor.js +31 -29
- package/dist/composables/useTimerClone.js +24 -25
- package/dist/composables/useTranslations.js +23 -16
- package/dist/composables/useValidation.js +7 -8
- package/dist/composables/validators/useLiquidValidator.js +13 -13
- package/dist/config/compiler/unsubscribeCompilerRules.js +38 -37
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +36 -34
- package/dist/config/migrator/checkboxMigrator.js +20 -21
- package/dist/config/migrator/couponBlockMigrator.js +18 -19
- package/dist/config/migrator/itemsBlockMigrator.js +87 -89
- package/dist/config/migrator/radioButtonMigrator.js +12 -13
- package/dist/config/migrator/recommendationMigrator.js +107 -110
- package/dist/config/migrator/unsubscribeMigrator.js +10 -11
- package/dist/enums/unsubscribe.js +33 -27
- package/dist/extensions/Blocks/Items/block.js +9 -9
- package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
- package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
- package/dist/extensions/Blocks/Items/enums/productEnums.js +9 -14
- package/dist/extensions/Blocks/Items/template.js +210 -210
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +128 -133
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +23 -20
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +19 -20
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +84 -90
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +134 -135
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
- package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
- package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +25 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +72 -69
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +22 -23
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +24 -25
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
- package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
- package/dist/extensions/Blocks/common-control.js +25 -26
- package/dist/extensions/DynamicContent/dynamic-content.js +53 -58
- package/dist/guido.css +1 -1
- package/dist/library.js +11 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +375 -247
- package/dist/node_modules/valibot/dist/index.js +122 -126
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +14 -17
- package/dist/services/templateLibraryApi.js +37 -38
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
- package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
- package/dist/src/composables/useTranslations.d.ts +1 -1
- package/dist/src/enums/unsubscribe.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
- package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/static/styles/components/button.css.js +16 -9
- package/dist/static/styles/components/loader.css.js +4 -0
- package/dist/static/styles/components/narrow-panel.css.js +52 -0
- package/dist/stores/config.js +25 -81
- package/dist/stores/dynamic-content.js +6 -11
- package/dist/stores/onboarding.js +1 -1
- package/dist/stores/preview.js +6 -9
- package/dist/stores/unsubscribe.js +1 -4
- package/dist/utils/dateUtil.js +7 -10
- package/dist/utils/genericUtil.js +10 -13
- package/dist/utils/pairProductVariables.js +13 -14
- package/package.json +8 -5
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Hash.js +0 -20
- package/dist/node_modules/lodash-es/_ListCache.js +0 -20
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -20
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_SetCache.js +0 -13
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
- package/dist/node_modules/lodash-es/_arraySome.js +0 -9
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
- package/dist/node_modules/lodash-es/_baseEach.js +0 -6
- package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/lodash-es/_baseGet.js +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
- package/dist/node_modules/lodash-es/_baseMap.js +0 -11
- package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/lodash-es/_baseRange.js +0 -9
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseToString.js +0 -18
- package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_createRange.js +0 -11
- package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/lodash-es/_getTag.js +0 -28
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hasPath.js +0 -19
- package/dist/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/dist/node_modules/lodash-es/_isKey.js +0 -12
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -17
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/lodash-es/_toSource.js +0 -17
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/flatMap.js +0 -8
- package/dist/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/lodash-es/hasIn.js +0 -8
- package/dist/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isFunction.js +0 -12
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/map.js +0 -11
- package/dist/node_modules/lodash-es/memoize.js +0 -18
- package/dist/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/lodash-es/range.js +0 -5
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toFinite.js +0 -14
- package/dist/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/toString.js +0 -7
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x = class d {
|
|
2
2
|
/**
|
|
3
3
|
* Validates that all required methods are properly implemented in the subclass.
|
|
4
4
|
* @param requiredMethods - Array of method names that must be implemented
|
|
5
5
|
* @param classRef - Reference to the class constructor for validation caching
|
|
6
6
|
*/
|
|
7
|
-
constructor(t,
|
|
8
|
-
if (
|
|
9
|
-
d.validatedClasses.has(
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
7
|
+
constructor(t, r) {
|
|
8
|
+
if (r !== d) {
|
|
9
|
+
d.validatedClasses.has(r) || this.validateImplementation(t, r);
|
|
10
|
+
const a = d.validationErrors.get(r);
|
|
11
|
+
if (a && a.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
14
|
-
${
|
|
13
|
+
`${r.name} has validation errors:
|
|
14
|
+
${a.map((E) => ` - ${E}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -20,23 +20,29 @@ ${i.map((o) => ` - ${o}`).join(`
|
|
|
20
20
|
* Validates that all required methods are properly implemented in the subclass.
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
|
-
validateImplementation(t,
|
|
24
|
-
|
|
25
|
-
const i = [], o = n.name, Y = Object.getPrototypeOf(this);
|
|
23
|
+
validateImplementation(t, r) {
|
|
24
|
+
const a = [], E = r.name, $ = Object.getPrototypeOf(this);
|
|
26
25
|
t.forEach((u) => {
|
|
27
26
|
if (typeof this[u] != "function") {
|
|
28
|
-
|
|
27
|
+
a.push(`Method ${u}() is not defined`);
|
|
29
28
|
return;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
}), d.validatedClasses.add(
|
|
30
|
+
$[u] === r.prototype[u] && a.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
31
|
+
}), d.validatedClasses.add(r), a.length > 0 ? (d.validationErrors.set(r, a), console.error(`[${E} Validation] ${E} validation failed:`, a)) : typeof process < "u" && process.env?.NODE_ENV === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
|
|
35
|
+
* Override this method in subclasses to implement custom cleanup logic.
|
|
36
|
+
* Called when the editor is reinitialized or the extension is uninstalled.
|
|
37
|
+
*/
|
|
38
|
+
destroy() {
|
|
33
39
|
}
|
|
34
40
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
41
|
+
x.validatedClasses = /* @__PURE__ */ new Set();
|
|
42
|
+
x.validationErrors = /* @__PURE__ */ new Map();
|
|
43
|
+
var i = x, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(W || {}), y = class T extends i {
|
|
38
44
|
constructor() {
|
|
39
|
-
super(
|
|
45
|
+
super(T.REQUIRED_METHODS, T);
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
42
48
|
* Determines if the block should be available for use in the editor.
|
|
@@ -133,6 +139,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
133
139
|
shouldDisplayQuickAddIcon() {
|
|
134
140
|
return !1;
|
|
135
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Determines if the block should be shown in the blocks panel.
|
|
144
|
+
* Override to hide the block from the blocks panel while keeping it available elsewhere.
|
|
145
|
+
* @returns True if the block should appear in the blocks panel. Defaults to true.
|
|
146
|
+
*/
|
|
147
|
+
shouldDisplayInBlocksPanel() {
|
|
148
|
+
return !0;
|
|
149
|
+
}
|
|
136
150
|
/**
|
|
137
151
|
* @description Determines if nested blocks selection allowed in extension of type {@link BlockCompositionType.STRUCTURE}
|
|
138
152
|
*/
|
|
@@ -145,6 +159,9 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
145
159
|
allowInnerBlocksDND() {
|
|
146
160
|
return !0;
|
|
147
161
|
}
|
|
162
|
+
allowInteractWithAMPWhenSelected() {
|
|
163
|
+
return !0;
|
|
164
|
+
}
|
|
148
165
|
/**
|
|
149
166
|
* Gets the unique identifier for this block type.
|
|
150
167
|
* This ID is used for registration and referencing the block.
|
|
@@ -161,6 +178,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
161
178
|
getTemplate() {
|
|
162
179
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
163
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Gets a CSS template string that contains the custom styles that apply to the block.
|
|
183
|
+
* This CSS will be used when a block is dragged into the editor and removed when the last block is deleted.
|
|
184
|
+
* @returns An CSS string.
|
|
185
|
+
*/
|
|
186
|
+
getTemplateStyles() {
|
|
187
|
+
return "";
|
|
188
|
+
}
|
|
164
189
|
/**
|
|
165
190
|
* Gets the URL or path to the icon representing this block in the editor's block panel.
|
|
166
191
|
* @returns A string representing the icon source (e.g., URL, data URI).
|
|
@@ -195,15 +220,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
195
220
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
221
|
}
|
|
197
222
|
};
|
|
198
|
-
|
|
199
|
-
var
|
|
223
|
+
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
224
|
+
var ze = y, z = class I extends i {
|
|
200
225
|
constructor() {
|
|
201
|
-
super(
|
|
226
|
+
super(I.REQUIRED_METHODS, I);
|
|
202
227
|
}
|
|
203
228
|
/**
|
|
204
229
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
205
230
|
*/
|
|
206
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
207
231
|
getPreviewHtml(t) {
|
|
208
232
|
}
|
|
209
233
|
/**
|
|
@@ -213,8 +237,8 @@ var Qe = v, W = class T extends s {
|
|
|
213
237
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
214
238
|
}
|
|
215
239
|
};
|
|
216
|
-
|
|
217
|
-
var
|
|
240
|
+
z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
241
|
+
var Ze = class {
|
|
218
242
|
/**
|
|
219
243
|
* Generates HTML representation for a block item
|
|
220
244
|
* @param block - The block item to generate HTML for
|
|
@@ -232,6 +256,13 @@ var fe = class {
|
|
|
232
256
|
isBlockHintVisible(e) {
|
|
233
257
|
return !0;
|
|
234
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* Determines whether a draggable handle should be displayed in modules panel
|
|
261
|
+
* @returns True if the block panel should be reorderable
|
|
262
|
+
*/
|
|
263
|
+
isPanelPlacementChangeEnabled() {
|
|
264
|
+
return !0;
|
|
265
|
+
}
|
|
235
266
|
/**
|
|
236
267
|
* Gets the hint text for a block
|
|
237
268
|
* @param block - The block item to get hint for
|
|
@@ -281,7 +312,7 @@ var fe = class {
|
|
|
281
312
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
313
|
getModulesTabIconName(e) {
|
|
283
314
|
}
|
|
284
|
-
},
|
|
315
|
+
}, Z = class b extends i {
|
|
285
316
|
constructor() {
|
|
286
317
|
super(b.REQUIRED_METHODS, b);
|
|
287
318
|
}
|
|
@@ -298,86 +329,86 @@ var fe = class {
|
|
|
298
329
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
299
330
|
}
|
|
300
331
|
};
|
|
301
|
-
|
|
302
|
-
var
|
|
332
|
+
Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
333
|
+
var q = {
|
|
303
334
|
src: "src",
|
|
304
335
|
alt: "alt",
|
|
305
336
|
href: "href",
|
|
306
337
|
width: "width",
|
|
307
338
|
height: "height"
|
|
308
|
-
},
|
|
309
|
-
BLOCK_IMAGE:
|
|
310
|
-
},
|
|
339
|
+
}, qe = {
|
|
340
|
+
BLOCK_IMAGE: q
|
|
341
|
+
}, P = "esd-block-button", p = "esd-block-text", U = "esd-block-image", j = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", se = "esd-block-html", ae = "esd-block-spacer", ie = "esd-container-frame", oe = "esd-stripe", le = "esd-amp-form", c = ((e) => (e.BUTTON = `.${P}`, e.TEXT = `.${p}`, e.IMAGE = `.${U}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${se}`, e.SPACER = `.${ae}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${oe}`, e.FORM = `.${le}`, e))(c || {}), Ee = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(Ee || {}), w = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(w || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.FONT_WEIGHT = "textBlockFontWeight", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), de = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(de || {}), s = {
|
|
311
342
|
BLOCK_BUTTON: K,
|
|
312
343
|
BLOCK_TEXT: F,
|
|
313
344
|
BLOCK_IMAGE: H,
|
|
314
345
|
GENERAL: w
|
|
315
|
-
},
|
|
346
|
+
}, ue = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e.themeMode = "themeMode", e))(ue || {}), ce = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Te || {}), n = {
|
|
316
347
|
name: "name",
|
|
317
348
|
disabled: "disabled"
|
|
318
|
-
},
|
|
319
|
-
...
|
|
349
|
+
}, Ie = {
|
|
350
|
+
...n,
|
|
320
351
|
caption: "caption",
|
|
321
352
|
icon: "icon"
|
|
322
|
-
}, Te = {
|
|
323
|
-
...r,
|
|
324
|
-
caption: "caption"
|
|
325
353
|
}, be = {
|
|
326
|
-
...
|
|
354
|
+
...n,
|
|
355
|
+
caption: "caption"
|
|
356
|
+
}, he = {
|
|
357
|
+
...n,
|
|
327
358
|
minValue: "min-value",
|
|
328
359
|
maxValue: "max-value",
|
|
329
360
|
step: "step"
|
|
330
|
-
},
|
|
331
|
-
...
|
|
361
|
+
}, me = {
|
|
362
|
+
...n,
|
|
332
363
|
placeholder: "placeholder",
|
|
333
364
|
minDate: "min-date"
|
|
334
|
-
},
|
|
335
|
-
...
|
|
365
|
+
}, ge = {
|
|
366
|
+
...n,
|
|
336
367
|
text: "text",
|
|
337
368
|
hint: "hint"
|
|
338
|
-
},
|
|
339
|
-
...
|
|
369
|
+
}, Oe = {
|
|
370
|
+
...n,
|
|
340
371
|
type: "type"
|
|
341
|
-
},
|
|
342
|
-
...
|
|
372
|
+
}, Re = {
|
|
373
|
+
...n,
|
|
343
374
|
buttons: "buttons"
|
|
344
375
|
}, k = {
|
|
345
|
-
...
|
|
376
|
+
...n,
|
|
346
377
|
searchable: "searchable",
|
|
347
378
|
multiSelect: "multi-select",
|
|
348
379
|
placeholder: "placeholder",
|
|
349
380
|
items: "items"
|
|
350
|
-
},
|
|
381
|
+
}, Le = {
|
|
351
382
|
...k,
|
|
352
383
|
addCustomFontOption: "add-custom-font-option"
|
|
353
|
-
},
|
|
354
|
-
...
|
|
384
|
+
}, _e = {
|
|
385
|
+
...n,
|
|
355
386
|
text: "text",
|
|
356
387
|
value: "value"
|
|
357
|
-
},
|
|
358
|
-
...
|
|
388
|
+
}, Ce = {
|
|
389
|
+
...n,
|
|
359
390
|
text: "text",
|
|
360
391
|
hint: "hint",
|
|
361
392
|
icon: "icon",
|
|
362
393
|
value: "value"
|
|
363
|
-
}, Ce = {
|
|
364
|
-
...r,
|
|
365
|
-
buttons: "buttons"
|
|
366
394
|
}, Ae = {
|
|
367
|
-
...
|
|
395
|
+
...n,
|
|
396
|
+
buttons: "buttons"
|
|
397
|
+
}, Ne = {
|
|
398
|
+
...n,
|
|
368
399
|
text: "text",
|
|
369
400
|
hint: "hint",
|
|
370
401
|
icon: "icon",
|
|
371
402
|
value: "value"
|
|
372
|
-
}, Ne = {
|
|
373
|
-
...r,
|
|
374
|
-
placeholder: "placeholder"
|
|
375
403
|
}, De = {
|
|
376
|
-
...
|
|
377
|
-
resizable: "resizable",
|
|
404
|
+
...n,
|
|
378
405
|
placeholder: "placeholder"
|
|
379
406
|
}, Se = {
|
|
380
|
-
...
|
|
407
|
+
...n,
|
|
408
|
+
resizable: "resizable",
|
|
409
|
+
placeholder: "placeholder"
|
|
410
|
+
}, Me = {
|
|
411
|
+
...n,
|
|
381
412
|
img: "img",
|
|
382
413
|
src: "src",
|
|
383
414
|
title: "title",
|
|
@@ -388,49 +419,60 @@ var Z = {
|
|
|
388
419
|
visibility: "visibility",
|
|
389
420
|
transform: "transform"
|
|
390
421
|
}, Be = {
|
|
391
|
-
...
|
|
422
|
+
...n,
|
|
392
423
|
controlId: "control-id"
|
|
393
|
-
}, Me = {
|
|
394
|
-
...r,
|
|
395
|
-
expanded: "expanded"
|
|
396
424
|
}, xe = {
|
|
397
|
-
...
|
|
425
|
+
...n,
|
|
426
|
+
expanded: "expanded"
|
|
427
|
+
}, ve = {
|
|
428
|
+
...n,
|
|
398
429
|
icon: "icon",
|
|
399
430
|
position: "position"
|
|
400
|
-
}, ve = {
|
|
401
|
-
...r
|
|
402
431
|
}, ye = {
|
|
403
|
-
...
|
|
432
|
+
...n
|
|
433
|
+
}, Pe = {
|
|
434
|
+
...n,
|
|
404
435
|
icon: "icon"
|
|
436
|
+
}, pe = {
|
|
437
|
+
...n
|
|
405
438
|
}, Ue = {
|
|
406
|
-
...
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
439
|
+
...n,
|
|
440
|
+
blockId: "block-id"
|
|
441
|
+
}, we = {
|
|
442
|
+
...n
|
|
443
|
+
}, Ke = {
|
|
444
|
+
...n,
|
|
445
|
+
placeholder: "placeholder"
|
|
446
|
+
}, je = {
|
|
447
|
+
DEFAULT: n,
|
|
448
|
+
BUTTON: Ie,
|
|
449
|
+
CHECKBOX: be,
|
|
450
|
+
CHECK_BUTTONS: Ae,
|
|
451
|
+
COLOR: n,
|
|
452
|
+
COUNTER: he,
|
|
453
|
+
DATEPICKER: me,
|
|
454
|
+
LABEL: ge,
|
|
455
|
+
MESSAGE: Oe,
|
|
456
|
+
RADIO_BUTTONS: Re,
|
|
418
457
|
SELECTPICKER: k,
|
|
419
|
-
FONT_FAMILY_SELECT:
|
|
420
|
-
SWITCHER:
|
|
421
|
-
TEXT:
|
|
422
|
-
TEXTAREA:
|
|
423
|
-
ICON:
|
|
424
|
-
CHECK_ITEM:
|
|
425
|
-
SELECT_ITEM:
|
|
426
|
-
RADIO_ITEM:
|
|
458
|
+
FONT_FAMILY_SELECT: Le,
|
|
459
|
+
SWITCHER: n,
|
|
460
|
+
TEXT: De,
|
|
461
|
+
TEXTAREA: Se,
|
|
462
|
+
ICON: Me,
|
|
463
|
+
CHECK_ITEM: Ce,
|
|
464
|
+
SELECT_ITEM: _e,
|
|
465
|
+
RADIO_ITEM: Ne,
|
|
427
466
|
NESTED_CONTROL: Be,
|
|
428
|
-
EXPANDABLE:
|
|
429
|
-
ORDERABLE:
|
|
430
|
-
ORDERABLE_ITEM:
|
|
431
|
-
ORDERABLE_ICON:
|
|
432
|
-
REPEATABLE:
|
|
433
|
-
|
|
467
|
+
EXPANDABLE: xe,
|
|
468
|
+
ORDERABLE: ve,
|
|
469
|
+
ORDERABLE_ITEM: ye,
|
|
470
|
+
ORDERABLE_ICON: Pe,
|
|
471
|
+
REPEATABLE: pe,
|
|
472
|
+
DRAGGABLE_BLOCK: Ue,
|
|
473
|
+
AMP_FORM_SERVICE_PICKER: we,
|
|
474
|
+
MULTIPLE_SELECT: Ke
|
|
475
|
+
}, Fe = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e.AMP_FORM_SERVICE_PICKER = "UE-AMP-FORM-SERVICE-PICKER", e.MULTIPLE_SELECT = "UE-MULTIPLE_SELECT", e.SCROLLABLE = "UE-SCROLLABLE-CONTAINER", e))(Fe || {}), v = class {
|
|
434
476
|
/**
|
|
435
477
|
* @description returns map of nodes parent control operates on
|
|
436
478
|
*/
|
|
@@ -461,68 +503,68 @@ var Z = {
|
|
|
461
503
|
isVisible(e) {
|
|
462
504
|
return !0;
|
|
463
505
|
}
|
|
464
|
-
},
|
|
506
|
+
}, o = class extends v {
|
|
465
507
|
getTargetNodes(e) {
|
|
466
|
-
const t = e.querySelectorAll(
|
|
467
|
-
return t.length ? t :
|
|
508
|
+
const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(P) ? [e] : [];
|
|
509
|
+
return t.length ? t : r;
|
|
468
510
|
}
|
|
469
|
-
},
|
|
511
|
+
}, Je = class extends o {
|
|
470
512
|
getParentControlId() {
|
|
471
|
-
return
|
|
513
|
+
return s.BLOCK_BUTTON.BORDER_RADIUS;
|
|
472
514
|
}
|
|
473
515
|
getLabels() {
|
|
474
516
|
}
|
|
475
|
-
},
|
|
517
|
+
}, et = class extends o {
|
|
476
518
|
getParentControlId() {
|
|
477
|
-
return
|
|
519
|
+
return s.BLOCK_BUTTON.ALIGNMENT;
|
|
478
520
|
}
|
|
479
|
-
},
|
|
521
|
+
}, tt = class extends o {
|
|
480
522
|
getParentControlId() {
|
|
481
|
-
return
|
|
523
|
+
return s.GENERAL.BACKGROUND_COLOR;
|
|
482
524
|
}
|
|
483
|
-
},
|
|
525
|
+
}, rt = class extends o {
|
|
484
526
|
getParentControlId() {
|
|
485
|
-
return
|
|
527
|
+
return s.BLOCK_BUTTON.BORDER;
|
|
486
528
|
}
|
|
487
529
|
getLabels() {
|
|
488
530
|
}
|
|
489
|
-
},
|
|
531
|
+
}, nt = class extends o {
|
|
490
532
|
getParentControlId() {
|
|
491
|
-
return
|
|
533
|
+
return s.BLOCK_BUTTON.COLOR;
|
|
492
534
|
}
|
|
493
|
-
},
|
|
535
|
+
}, st = class extends o {
|
|
494
536
|
getParentControlId() {
|
|
495
|
-
return
|
|
537
|
+
return s.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
496
538
|
}
|
|
497
|
-
},
|
|
539
|
+
}, at = class extends o {
|
|
498
540
|
getParentControlId() {
|
|
499
|
-
return
|
|
541
|
+
return s.BLOCK_BUTTON.FONT_FAMILY;
|
|
500
542
|
}
|
|
501
|
-
},
|
|
543
|
+
}, it = class extends o {
|
|
502
544
|
getParentControlId() {
|
|
503
|
-
return
|
|
545
|
+
return s.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
504
546
|
}
|
|
505
|
-
},
|
|
547
|
+
}, ot = class extends o {
|
|
506
548
|
getParentControlId() {
|
|
507
|
-
return
|
|
549
|
+
return s.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
508
550
|
}
|
|
509
|
-
},
|
|
551
|
+
}, lt = class extends o {
|
|
510
552
|
getParentControlId() {
|
|
511
|
-
return
|
|
553
|
+
return s.BLOCK_BUTTON.TEXT;
|
|
512
554
|
}
|
|
513
|
-
},
|
|
555
|
+
}, Et = class extends o {
|
|
514
556
|
getParentControlId() {
|
|
515
|
-
return
|
|
557
|
+
return s.BLOCK_BUTTON.FONT_SIZE;
|
|
516
558
|
}
|
|
517
|
-
},
|
|
559
|
+
}, dt = class extends o {
|
|
518
560
|
getParentControlId() {
|
|
519
|
-
return
|
|
561
|
+
return s.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
520
562
|
}
|
|
521
563
|
getLabels() {
|
|
522
564
|
}
|
|
523
|
-
}, X = class
|
|
565
|
+
}, X = class h extends i {
|
|
524
566
|
constructor() {
|
|
525
|
-
super(
|
|
567
|
+
super(h.REQUIRED_METHODS, h);
|
|
526
568
|
}
|
|
527
569
|
/**
|
|
528
570
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -576,9 +618,9 @@ var Z = {
|
|
|
576
618
|
}
|
|
577
619
|
};
|
|
578
620
|
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
579
|
-
var
|
|
621
|
+
var ut = X, He = class m extends i {
|
|
580
622
|
constructor() {
|
|
581
|
-
super(
|
|
623
|
+
super(m.REQUIRED_METHODS, m);
|
|
582
624
|
}
|
|
583
625
|
/**
|
|
584
626
|
* Gets the unique identifier for this tab.
|
|
@@ -645,32 +687,97 @@ var it = X, we = class h extends s {
|
|
|
645
687
|
onDestroy() {
|
|
646
688
|
}
|
|
647
689
|
};
|
|
648
|
-
|
|
649
|
-
var
|
|
690
|
+
He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
691
|
+
var G = class extends v {
|
|
650
692
|
getTargetNodes(e) {
|
|
651
|
-
const t = e.querySelectorAll(
|
|
652
|
-
return t.length ? t :
|
|
693
|
+
const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(U) ? [e] : [];
|
|
694
|
+
return t.length ? t : r;
|
|
653
695
|
}
|
|
654
|
-
},
|
|
696
|
+
}, ct = class extends G {
|
|
655
697
|
getParentControlId() {
|
|
656
|
-
return
|
|
698
|
+
return s.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
657
699
|
}
|
|
658
|
-
},
|
|
700
|
+
}, Tt = class extends G {
|
|
659
701
|
getParentControlId() {
|
|
660
|
-
return
|
|
702
|
+
return s.BLOCK_IMAGE.SIZE;
|
|
661
703
|
}
|
|
662
|
-
},
|
|
704
|
+
}, ke = class g extends i {
|
|
663
705
|
constructor() {
|
|
664
706
|
super(g.REQUIRED_METHODS, g);
|
|
665
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Gets the unique identifier for this tab.
|
|
710
|
+
* This ID is used for registration.
|
|
711
|
+
* @returns A unique string ID.
|
|
712
|
+
*/
|
|
713
|
+
getId() {
|
|
714
|
+
throw new Error("Method getId() must be implemented by the subclass");
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Gets the icon key representing this tab in the header.
|
|
718
|
+
* @returns A string representing the icon key from the IconsRegistry
|
|
719
|
+
*/
|
|
720
|
+
getIcon() {
|
|
721
|
+
throw new Error("Method getIcon() must be implemented by the subclass");
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Retrieves the index of the tab associated with the panel.
|
|
725
|
+
* The index represents the position/order of the tab in the UI.
|
|
726
|
+
*
|
|
727
|
+
* @returns {number} The index of the tab.
|
|
728
|
+
*/
|
|
729
|
+
getTabIndex() {
|
|
730
|
+
throw new Error("Method getTabIndex() must be implemented by the subclass");
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Gets the display name of the tab shown to the user in the header hint.
|
|
734
|
+
* Use `this.api.translate()` for localization.
|
|
735
|
+
* @returns The localized tab name string.
|
|
736
|
+
*/
|
|
737
|
+
getName() {
|
|
738
|
+
throw new Error("Method getName() must be implemented by the subclass");
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Determines if the tab should be available for use in the editor.
|
|
742
|
+
* Override to provide custom logic based on the editor state or configuration.
|
|
743
|
+
* @returns True if the tab is enabled, false otherwise. Defaults to true.
|
|
744
|
+
*/
|
|
745
|
+
isEnabled() {
|
|
746
|
+
return !0;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Gets the HTML template string that defines the initial structure of this tab.
|
|
750
|
+
* @returns An HTML string.
|
|
751
|
+
*/
|
|
752
|
+
getTemplate() {
|
|
753
|
+
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Optional hook called when the modules panel tab is initially rendered.
|
|
757
|
+
* Use this for setup tasks like attaching event listeners to the panel's template elements.
|
|
758
|
+
*/
|
|
759
|
+
onRender() {
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Lifecycle hook called when any part of the document template has changed.
|
|
763
|
+
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
764
|
+
*/
|
|
765
|
+
onDocumentChanged() {
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
ke.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
769
|
+
var V = class O extends i {
|
|
770
|
+
constructor() {
|
|
771
|
+
super(O.REQUIRED_METHODS, O);
|
|
772
|
+
}
|
|
666
773
|
registerBlockControls(t) {
|
|
667
774
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
668
775
|
}
|
|
669
776
|
};
|
|
670
|
-
|
|
671
|
-
var
|
|
672
|
-
constructor(
|
|
673
|
-
this.tabId =
|
|
777
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
778
|
+
var It = V, bt = class R {
|
|
779
|
+
constructor(t, r) {
|
|
780
|
+
this.tabId = t, this.controls = r.map(R.normalizeControl);
|
|
674
781
|
}
|
|
675
782
|
getTabId() {
|
|
676
783
|
return this.tabId;
|
|
@@ -679,54 +786,68 @@ var ot = G, dt = class {
|
|
|
679
786
|
return this.label;
|
|
680
787
|
}
|
|
681
788
|
getControlsIds() {
|
|
682
|
-
return this.
|
|
789
|
+
return this.controls.map((t) => t.id);
|
|
683
790
|
}
|
|
684
|
-
|
|
685
|
-
return this.
|
|
791
|
+
getControls() {
|
|
792
|
+
return this.controls;
|
|
686
793
|
}
|
|
687
|
-
|
|
688
|
-
return
|
|
794
|
+
withLabel(t) {
|
|
795
|
+
return this.label = t, this;
|
|
689
796
|
}
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
|
|
797
|
+
addControl(t, r) {
|
|
798
|
+
const a = R.normalizeControl(t);
|
|
799
|
+
return r < 0 ? this.controls.unshift(a) : r > this.controls.length ? this.controls.push(a) : this.controls.splice(r, 0, a), this;
|
|
800
|
+
}
|
|
801
|
+
deleteControl(t) {
|
|
802
|
+
const r = this.controls.findIndex((a) => a.id === t);
|
|
803
|
+
r !== -1 && this.controls.splice(r, 1);
|
|
804
|
+
}
|
|
805
|
+
static normalizeControl(t) {
|
|
806
|
+
if (typeof t == "string")
|
|
807
|
+
return { id: t };
|
|
808
|
+
if (!t.id)
|
|
809
|
+
throw new Error("SettingsPanelTabControlConfig.id is required");
|
|
810
|
+
return {
|
|
811
|
+
...t,
|
|
812
|
+
id: t.id
|
|
813
|
+
};
|
|
693
814
|
}
|
|
694
|
-
},
|
|
815
|
+
}, l = class extends v {
|
|
695
816
|
getTargetNodes(e) {
|
|
696
|
-
const t = e.querySelectorAll(
|
|
697
|
-
return t.length ? t :
|
|
817
|
+
const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(p) ? [e] : [];
|
|
818
|
+
return t.length ? t : r;
|
|
698
819
|
}
|
|
699
|
-
},
|
|
820
|
+
}, ht = class extends l {
|
|
700
821
|
getParentControlId() {
|
|
701
|
-
return
|
|
822
|
+
return s.GENERAL.TEXT_ALIGN;
|
|
702
823
|
}
|
|
703
|
-
},
|
|
824
|
+
}, mt = class extends l {
|
|
704
825
|
getParentControlId() {
|
|
705
|
-
return
|
|
826
|
+
return s.GENERAL.TEXT_COLOR;
|
|
706
827
|
}
|
|
707
|
-
},
|
|
828
|
+
}, gt = class extends l {
|
|
708
829
|
getParentControlId() {
|
|
709
|
-
return
|
|
830
|
+
return s.BLOCK_TEXT.FONT_FAMILY;
|
|
710
831
|
}
|
|
711
|
-
},
|
|
832
|
+
}, Ot = class extends l {
|
|
712
833
|
getParentControlId() {
|
|
713
|
-
return
|
|
834
|
+
return s.GENERAL.TEXT_LINE_SPACING;
|
|
714
835
|
}
|
|
715
|
-
},
|
|
836
|
+
}, Rt = class extends l {
|
|
716
837
|
getParentControlId() {
|
|
717
|
-
return
|
|
838
|
+
return s.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
718
839
|
}
|
|
719
|
-
},
|
|
840
|
+
}, Lt = class extends l {
|
|
720
841
|
getParentControlId() {
|
|
721
|
-
return
|
|
842
|
+
return s.GENERAL.TEXT_SIZE;
|
|
722
843
|
}
|
|
723
|
-
},
|
|
844
|
+
}, _t = class extends l {
|
|
724
845
|
getParentControlId() {
|
|
725
|
-
return
|
|
846
|
+
return s.GENERAL.TEXT_STYLE;
|
|
726
847
|
}
|
|
727
|
-
},
|
|
848
|
+
}, Xe = class {
|
|
728
849
|
constructor(e) {
|
|
729
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.
|
|
850
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e?.i18n, this.styles = e?.styles, this.previewStyles = e?.previewStyles, this.uiElements = e?.uiElements ?? [], this.uiElementTagRegistry = e?.uiElementTagRegistry, this.controls = e?.controls ?? [], this.settingsPanelRegistry = e?.settingsPanelRegistry, this.contextActions = e?.contextActions ?? [], this.blocks = e?.blocks ?? [], this.generalPanelTabs = e?.generalPanelTabs ?? [], this.modulesPanelTabs = e?.modulesPanelTabs ?? [], this.externalSmartElementsLibrary = e?.externalSmartElementsLibrary, this.externalImageLibrary = e?.externalImageLibrary, this.externalImageLibraryTab = e?.externalImageLibraryTab, this.externalAiAssistant = e?.externalAiAssistant, this.externalDisplayConditionsLibrary = e?.externalDisplayConditionsLibrary, this.externalVideoLibrary = e?.externalVideoLibrary, this.blocksPanel = e?.blocksPanel, this.iconsRegistry = e?.iconsRegistry, this.id = Math.random().toString(36).substring(2);
|
|
730
851
|
}
|
|
731
852
|
getI18n() {
|
|
732
853
|
return this.i18n;
|
|
@@ -785,9 +906,12 @@ var ot = G, dt = class {
|
|
|
785
906
|
getGeneralPanelTabs() {
|
|
786
907
|
return this.generalPanelTabs;
|
|
787
908
|
}
|
|
788
|
-
|
|
909
|
+
getModulesPanelTabs() {
|
|
910
|
+
return this.modulesPanelTabs;
|
|
911
|
+
}
|
|
912
|
+
}, Ct = class {
|
|
789
913
|
constructor() {
|
|
790
|
-
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
914
|
+
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
|
|
791
915
|
}
|
|
792
916
|
withLocalization(e) {
|
|
793
917
|
return this.i18n = e, this;
|
|
@@ -852,8 +976,11 @@ var ot = G, dt = class {
|
|
|
852
976
|
addGeneralPanelTab(e) {
|
|
853
977
|
return this.generalPanelTabs.push(e), this;
|
|
854
978
|
}
|
|
979
|
+
addModulesPanelTab(e) {
|
|
980
|
+
return this.modulesPanelTabs.push(e), this;
|
|
981
|
+
}
|
|
855
982
|
build() {
|
|
856
|
-
return new
|
|
983
|
+
return new Xe({
|
|
857
984
|
i18n: this.i18n,
|
|
858
985
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
859
986
|
`),
|
|
@@ -872,21 +999,22 @@ var ot = G, dt = class {
|
|
|
872
999
|
blocksPanel: this.blocksPanel,
|
|
873
1000
|
iconsRegistry: this.iconsRegistry,
|
|
874
1001
|
externalImageLibraryTab: this.externalImageLibraryTab,
|
|
875
|
-
generalPanelTabs: this.generalPanelTabs
|
|
1002
|
+
generalPanelTabs: this.generalPanelTabs,
|
|
1003
|
+
modulesPanelTabs: this.modulesPanelTabs
|
|
876
1004
|
});
|
|
877
1005
|
}
|
|
878
|
-
},
|
|
1006
|
+
}, Ge = class L extends i {
|
|
879
1007
|
constructor() {
|
|
880
|
-
super(
|
|
1008
|
+
super(L.REQUIRED_METHODS, L);
|
|
881
1009
|
}
|
|
882
1010
|
openAiAssistant(t) {
|
|
883
1011
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
884
1012
|
}
|
|
885
1013
|
};
|
|
886
|
-
|
|
887
|
-
var
|
|
1014
|
+
Ge.REQUIRED_METHODS = ["openAiAssistant"];
|
|
1015
|
+
var Ve = class _ extends i {
|
|
888
1016
|
constructor() {
|
|
889
|
-
super(
|
|
1017
|
+
super(_.REQUIRED_METHODS, _);
|
|
890
1018
|
}
|
|
891
1019
|
/**
|
|
892
1020
|
* Retrieves the name of the category.
|
|
@@ -903,7 +1031,7 @@ var He = class R extends s {
|
|
|
903
1031
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
904
1032
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
905
1033
|
*/
|
|
906
|
-
openExternalDisplayConditionsDialog(t,
|
|
1034
|
+
openExternalDisplayConditionsDialog(t, r, a) {
|
|
907
1035
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
908
1036
|
}
|
|
909
1037
|
/**
|
|
@@ -924,19 +1052,19 @@ var He = class R extends s {
|
|
|
924
1052
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
925
1053
|
}
|
|
926
1054
|
};
|
|
927
|
-
|
|
928
|
-
var
|
|
1055
|
+
Ve.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
1056
|
+
var fe = class C extends i {
|
|
929
1057
|
constructor() {
|
|
930
|
-
super(
|
|
1058
|
+
super(C.REQUIRED_METHODS, C);
|
|
931
1059
|
}
|
|
932
|
-
openImageLibrary(t,
|
|
1060
|
+
openImageLibrary(t, r, a) {
|
|
933
1061
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
934
1062
|
}
|
|
935
1063
|
};
|
|
936
|
-
|
|
937
|
-
var
|
|
1064
|
+
fe.REQUIRED_METHODS = ["openImageLibrary"];
|
|
1065
|
+
var Qe = class A extends i {
|
|
938
1066
|
constructor() {
|
|
939
|
-
super(
|
|
1067
|
+
super(A.REQUIRED_METHODS, A);
|
|
940
1068
|
}
|
|
941
1069
|
/**
|
|
942
1070
|
* @description Returns the translated name/label for the tab
|
|
@@ -951,39 +1079,39 @@ var Xe = class _ extends s {
|
|
|
951
1079
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
952
1080
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
953
1081
|
*/
|
|
954
|
-
openImageLibraryTab(t,
|
|
1082
|
+
openImageLibraryTab(t, r, a) {
|
|
955
1083
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
956
1084
|
}
|
|
957
1085
|
};
|
|
958
|
-
|
|
959
|
-
var
|
|
1086
|
+
Qe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
1087
|
+
var Ye = class N extends i {
|
|
960
1088
|
constructor() {
|
|
961
|
-
super(
|
|
1089
|
+
super(N.REQUIRED_METHODS, N);
|
|
962
1090
|
}
|
|
963
|
-
openSmartElementsLibrary(t,
|
|
1091
|
+
openSmartElementsLibrary(t, r) {
|
|
964
1092
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
965
1093
|
}
|
|
966
1094
|
};
|
|
967
|
-
|
|
968
|
-
var
|
|
1095
|
+
Ye.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
1096
|
+
var $e = class D extends i {
|
|
969
1097
|
constructor() {
|
|
970
|
-
super(
|
|
1098
|
+
super(D.REQUIRED_METHODS, D);
|
|
971
1099
|
}
|
|
972
|
-
openExternalVideosLibraryDialog(t,
|
|
1100
|
+
openExternalVideosLibraryDialog(t, r, a) {
|
|
973
1101
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
974
1102
|
}
|
|
975
1103
|
};
|
|
976
|
-
|
|
977
|
-
var
|
|
1104
|
+
$e.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
1105
|
+
var f = class S extends i {
|
|
978
1106
|
constructor() {
|
|
979
|
-
super(
|
|
1107
|
+
super(S.REQUIRED_METHODS, S);
|
|
980
1108
|
}
|
|
981
1109
|
registerIconsSvg(t) {
|
|
982
1110
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
983
1111
|
}
|
|
984
1112
|
};
|
|
985
|
-
|
|
986
|
-
var
|
|
1113
|
+
f.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
1114
|
+
var At = f, Nt = class {
|
|
987
1115
|
constructor(e) {
|
|
988
1116
|
this.key = e;
|
|
989
1117
|
}
|
|
@@ -996,9 +1124,9 @@ var mt = V, Rt = class {
|
|
|
996
1124
|
params: this.params
|
|
997
1125
|
};
|
|
998
1126
|
}
|
|
999
|
-
}, Q = class
|
|
1127
|
+
}, Q = class M extends i {
|
|
1000
1128
|
constructor() {
|
|
1001
|
-
super(
|
|
1129
|
+
super(M.REQUIRED_METHODS, M);
|
|
1002
1130
|
}
|
|
1003
1131
|
/**
|
|
1004
1132
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -1033,7 +1161,7 @@ var mt = V, Rt = class {
|
|
|
1033
1161
|
* @param name - The name of the attribute that was updated.
|
|
1034
1162
|
* @param value - The new value of the attribute.
|
|
1035
1163
|
*/
|
|
1036
|
-
onAttributeUpdated(t,
|
|
1164
|
+
onAttributeUpdated(t, r) {
|
|
1037
1165
|
}
|
|
1038
1166
|
/**
|
|
1039
1167
|
* Gets the unique identifier for this UI element type.
|
|
@@ -1052,63 +1180,63 @@ var mt = V, Rt = class {
|
|
|
1052
1180
|
}
|
|
1053
1181
|
};
|
|
1054
1182
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1055
|
-
var
|
|
1183
|
+
var Dt = Q, Y = class B extends i {
|
|
1056
1184
|
constructor() {
|
|
1057
|
-
super(
|
|
1185
|
+
super(B.REQUIRED_METHODS, B);
|
|
1058
1186
|
}
|
|
1059
1187
|
registerUiElements(t) {
|
|
1060
1188
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
1061
1189
|
}
|
|
1062
1190
|
};
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1191
|
+
Y.REQUIRED_METHODS = ["registerUiElements"];
|
|
1192
|
+
var St = Y;
|
|
1065
1193
|
export {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1194
|
+
ze as Block,
|
|
1195
|
+
qe as BlockAttr,
|
|
1196
|
+
W as BlockCompositionType,
|
|
1197
|
+
c as BlockSelector,
|
|
1070
1198
|
Ee as BlockType,
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1199
|
+
Ze as BlocksPanel,
|
|
1200
|
+
v as BuiltInControl,
|
|
1201
|
+
s as BuiltInControlTypes,
|
|
1202
|
+
et as ButtonAlignBuiltInControl,
|
|
1203
|
+
tt as ButtonBackgroundColorBuiltInControl,
|
|
1204
|
+
rt as ButtonBorderBuiltInControl,
|
|
1205
|
+
Je as ButtonBorderRadiusBuiltInControl,
|
|
1206
|
+
nt as ButtonColorBuiltInControl,
|
|
1079
1207
|
K as ButtonControls,
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1208
|
+
st as ButtonFitToContainerBuiltInControl,
|
|
1209
|
+
at as ButtonFontFamilyBuiltInControl,
|
|
1210
|
+
it as ButtonMarginsBuiltInControl,
|
|
1211
|
+
ot as ButtonPaddingsBuiltInControl,
|
|
1212
|
+
lt as ButtonTextBuiltInControl,
|
|
1213
|
+
Et as ButtonTextSizeBuiltInControl,
|
|
1214
|
+
dt as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1215
|
+
de as ContainerControls,
|
|
1216
|
+
ut as Control,
|
|
1217
|
+
ue as EditorStatePropertyType,
|
|
1218
|
+
Xe as Extension,
|
|
1219
|
+
Ct as ExtensionBuilder,
|
|
1092
1220
|
w as GeneralControls,
|
|
1093
|
-
|
|
1221
|
+
At as IconsRegistry,
|
|
1094
1222
|
H as ImageControls,
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1223
|
+
ct as ImageMarginsBuiltInControl,
|
|
1224
|
+
Tt as ImageSizeBuiltInControl,
|
|
1225
|
+
Nt as ModificationDescription,
|
|
1226
|
+
ce as PreviewDeviceMode,
|
|
1227
|
+
It as SettingsPanelRegistry,
|
|
1228
|
+
bt as SettingsPanelTab,
|
|
1229
|
+
Te as SettingsTab,
|
|
1230
|
+
ht as TextAlignBuiltInControl,
|
|
1231
|
+
mt as TextColorBuiltInControl,
|
|
1104
1232
|
F as TextControls,
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1233
|
+
gt as TextFontFamilyBuiltInControl,
|
|
1234
|
+
Ot as TextLineSpacingBuiltInControl,
|
|
1235
|
+
Rt as TextPaddingsBuiltInControl,
|
|
1236
|
+
Lt as TextSizeBuiltInControl,
|
|
1237
|
+
_t as TextStyleBuiltInControl,
|
|
1238
|
+
je as UEAttr,
|
|
1239
|
+
Dt as UIElement,
|
|
1240
|
+
St as UIElementTagRegistry,
|
|
1241
|
+
Fe as UIElementType
|
|
1114
1242
|
};
|