@useinsider/guido 1.0.0-beta.e8ee5f5 → 1.0.0-beta.eb2a99e
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/README.md +2 -26
- package/dist/@types/generic.d.ts +0 -33
- package/dist/components/Guido.vue.d.ts +3 -6
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +38 -60
- package/dist/components/organisms/header/MiddleSlot.vue.js +9 -9
- package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -16
- package/dist/components/organisms/header/RightSlot.vue.js +8 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +25 -27
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +10 -30
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
- package/dist/composables/useActionsApi.d.ts +1 -4
- package/dist/composables/useActionsApi.js +33 -74
- package/dist/composables/useExport.js +9 -10
- package/dist/composables/useGuidoActions.d.ts +2 -2
- package/dist/composables/useHtmlCompiler.js +8 -9
- package/dist/composables/useHttp.js +21 -23
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +14 -9
- package/dist/composables/useStripo.js +15 -25
- package/dist/composables/useToaster.d.ts +16 -1
- package/dist/composables/useToaster.js +30 -24
- package/dist/composables/useTranslations.js +2 -3
- package/dist/composables/useVersionHistoryApi.js +10 -11
- package/dist/enums/defaults.d.ts +1 -4
- package/dist/enums/defaults.js +6 -21
- package/dist/extensions/DynamicContent/dynamic-content.js +15 -13
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/stores/editor.d.ts +0 -3
- package/dist/stores/editor.js +3 -6
- package/package.json +3 -3
- package/dist/@types/save-as-template.d.ts +0 -29
- package/dist/components/organisms/base/Toaster.vue.d.ts +0 -2
- package/dist/components/organisms/base/Toaster.vue.js +0 -17
- package/dist/components/organisms/base/Toaster.vue2.js +0 -15
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -63
- package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
- package/dist/components/wrappers/WpDrawer.vue.js +0 -25
- package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
- package/dist/components/wrappers/WpModal.vue.d.ts +0 -65
- package/dist/components/wrappers/WpModal.vue.js +0 -27
- package/dist/components/wrappers/WpModal.vue2.js +0 -22
- package/dist/composables/useCodeEditorApi.d.ts +0 -4
- package/dist/composables/useCodeEditorApi.js +0 -11
- package/dist/composables/useConfig.d.ts +0 -4
- package/dist/composables/useConfig.js +0 -7
- package/dist/composables/useDebounce.d.ts +0 -4
- package/dist/composables/useDebounce.js +0 -12
- package/dist/composables/usePreviewMode.d.ts +0 -5
- package/dist/composables/usePreviewMode.js +0 -31
- package/dist/composables/useResponsivePreview.d.ts +0 -5
- package/dist/composables/useResponsivePreview.js +0 -86
- package/dist/composables/useValidation.d.ts +0 -56
- package/dist/composables/useValidation.js +0 -19
- package/dist/composables/validators/saveAsTemplate.d.ts +0 -31
- package/dist/composables/validators/saveAsTemplate.js +0 -24
- package/dist/enums/preview.d.ts +0 -13
- package/dist/enums/preview.js +0 -23
- package/dist/enums/toaster.d.ts +0 -5
- package/dist/enums/toaster.js +0 -4
- package/dist/mock/api/template-library.d.ts +0 -2
- package/dist/node_modules/@vueuse/shared/index.js +0 -45
- package/dist/node_modules/lodash-es/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_apply.js +0 -16
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
- package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -9
- package/dist/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- 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/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_overRest.js +0 -15
- package/dist/node_modules/lodash-es/_safeGet.js +0 -7
- package/dist/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/lodash-es/_shortOut.js +0 -16
- 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/constant.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/isArrayLikeObject.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
- package/dist/node_modules/valibot/dist/index.js +0 -190
- package/dist/node_modules/vue-demi/lib/index.js +0 -7
- package/dist/services/templateLibraryApi.d.ts +0 -7
- package/dist/services/templateLibraryApi.js +0 -87
- package/dist/static/assets/inbox-mockup.svg.js +0 -4
- package/dist/static/assets/phone-mockup.svg.js +0 -4
- package/dist/stores/dynamic-content.d.ts +0 -27
- package/dist/stores/dynamic-content.js +0 -23
- package/dist/stores/preview.d.ts +0 -46
- package/dist/stores/preview.js +0 -53
- package/dist/stores/save-as-template.d.ts +0 -73
- package/dist/stores/save-as-template.js +0 -48
- package/dist/stores/toaster.d.ts +0 -18
- package/dist/stores/toaster.js +0 -27
- package/dist/utils/arrayUtil.d.ts +0 -1
- package/dist/utils/arrayUtil.js +0 -10
- package/dist/utils/base64.d.ts +0 -1
- package/dist/utils/base64.js +0 -7
- package/dist/utils/genericUtil.d.ts +0 -3
- package/dist/utils/genericUtil.js +0 -11
- package/dist/utils/templatePreparation.d.ts +0 -4
- package/dist/utils/templatePreparation.js +0 -33
- package/dist/utils/tooltipUtils.d.ts +0 -2
- package/dist/utils/tooltipUtils.js +0 -11
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as r, onMounted as h, onBeforeUnmount as v, nextTick as g } from "vue";
|
|
2
|
-
import { usePreviewStore as _ } from "../../../../stores/preview.js";
|
|
3
|
-
import { InContainer as I } from "@useinsider/design-system-vue";
|
|
4
|
-
import R from "./EmailHeaderInfo.vue.js";
|
|
5
|
-
import C from "./EmailSizeIndicator.vue.js";
|
|
6
|
-
const B = /* @__PURE__ */ d({
|
|
7
|
-
__name: "DesktopPreview",
|
|
8
|
-
setup(H) {
|
|
9
|
-
const t = r(), i = r("400px"), a = r(!1), m = _(), n = () => {
|
|
10
|
-
if (!t.value)
|
|
11
|
-
return;
|
|
12
|
-
const o = t.value.querySelector(".in-container");
|
|
13
|
-
if (!o)
|
|
14
|
-
return;
|
|
15
|
-
const u = o.getBoundingClientRect(), s = o.querySelector(".in-container__header"), f = s ? s.getBoundingClientRect().height : 0, p = u.height - f;
|
|
16
|
-
i.value = `${p}px`;
|
|
17
|
-
};
|
|
18
|
-
let e = null;
|
|
19
|
-
const c = () => {
|
|
20
|
-
n(), t.value && (e = new ResizeObserver(n), e.observe(t.value), g(() => {
|
|
21
|
-
a.value = !0;
|
|
22
|
-
}));
|
|
23
|
-
}, l = () => {
|
|
24
|
-
e == null || e.disconnect();
|
|
25
|
-
};
|
|
26
|
-
return h(c), v(l), { __sfc: !0, containerRef: t, iframeHeight: i, isContainerReady: a, previewStore: m, calculateIframeHeight: n, resizeObserver: e, initIframe: c, cleanIframe: l, InContainer: I, EmailHeaderInfo: R, EmailSizeIndicator: C };
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
B as default
|
|
31
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import e from "./EmailHeaderInfo.vue2.js";
|
|
2
|
-
import c from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var r = function() {
|
|
4
|
-
var t = this, s = t._self._c, a = t._self._setupProxy;
|
|
5
|
-
return s("div", { staticClass: "d-f a-i-c j-c-s-b w-1" }, [s("div", { staticClass: "d-f a-i-c" }, [s("div", { staticClass: "b-c-49 bor-r-100 w-5-s h-5-s d-f a-i-c j-c-c" }, [s(a.InIcons, { attrs: { name: "line-menu-profile" } })], 1), s("div", { staticClass: "d-f f-d-c ml-2" }, [s("p", { staticClass: "t-c-53 f-w-600 f-s-1 l-h-1" }, [t._v(" " + t._s(a.senderName) + " ")]), s("p", { staticClass: "t-c-55 f-w-400 f-s-12 l-h-1" }, [t._v(" " + t._s(a.subject) + " ")])])])]);
|
|
6
|
-
}, i = [], n = /* @__PURE__ */ c(
|
|
7
|
-
e,
|
|
8
|
-
r,
|
|
9
|
-
i,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const o = n.exports;
|
|
15
|
-
export {
|
|
16
|
-
o as default
|
|
17
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as o } from "vue";
|
|
2
|
-
import { useConfig as a } from "../../../../composables/useConfig.js";
|
|
3
|
-
import { useTranslations as i } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { InIcons as c } from "@useinsider/design-system-vue";
|
|
5
|
-
const l = /* @__PURE__ */ m({
|
|
6
|
-
__name: "EmailHeaderInfo",
|
|
7
|
-
setup(f) {
|
|
8
|
-
const { config: t } = a(), n = i(), s = o(() => {
|
|
9
|
-
var e;
|
|
10
|
-
return ((e = t.emailHeader) == null ? void 0 : e.senderName) || n("settings.sender-name");
|
|
11
|
-
}), r = o(() => {
|
|
12
|
-
var e;
|
|
13
|
-
return ((e = t.emailHeader) == null ? void 0 : e.subject) || n("email-editor.default-subject");
|
|
14
|
-
});
|
|
15
|
-
return { __sfc: !0, config: t, trans: n, senderName: s, subject: r, InIcons: c };
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
l as default
|
|
20
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import i from "./EmailSizeIndicator.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
6
|
-
return e("div", { staticClass: "d-f a-i-c j-c-c" }, [e(t.InProgress, { staticClass: "min-w-15-s", attrs: { id: "email-size-progress", "description-status": "", "description-position": "left", description: t.htmlSize, "max-value": t.MAX_EMAIL_SIZE_IN_KB, type: t.progress.type, value: t.progress.value } }), e(t.InTooltip, { staticClass: "d-f ml-1", attrs: { id: "email-size-tooltip", align: "center", position: "bottom", text: t.trans("email-editor.preview-design-size-tooltip") } })], 1);
|
|
7
|
-
}, a = [], n = /* @__PURE__ */ r(
|
|
8
|
-
i,
|
|
9
|
-
o,
|
|
10
|
-
a,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
"c2adc57d"
|
|
14
|
-
);
|
|
15
|
-
const m = n.exports;
|
|
16
|
-
export {
|
|
17
|
-
m as default
|
|
18
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as n, computed as l, watch as u } from "vue";
|
|
2
|
-
import { useTranslations as p } from "../../../../composables/useTranslations.js";
|
|
3
|
-
import { usePreviewStore as _ } from "../../../../stores/preview.js";
|
|
4
|
-
import { InTooltip as v, InProgress as f } from "@useinsider/design-system-vue";
|
|
5
|
-
const S = /* @__PURE__ */ c({
|
|
6
|
-
__name: "EmailSizeIndicator",
|
|
7
|
-
setup(w) {
|
|
8
|
-
const t = _(), o = 102, e = n(0), s = n({
|
|
9
|
-
type: "success",
|
|
10
|
-
value: 0
|
|
11
|
-
}), a = l(() => `~${e.value} KB`), r = () => {
|
|
12
|
-
const m = new Blob([t.previewHtml]).size;
|
|
13
|
-
e.value = Math.round(m / 1024), s.value = {
|
|
14
|
-
type: e.value < o ? "success" : "warning",
|
|
15
|
-
value: Math.min(e.value, o)
|
|
16
|
-
};
|
|
17
|
-
}, i = p();
|
|
18
|
-
return u(() => t.previewHtml, () => {
|
|
19
|
-
r();
|
|
20
|
-
}, { immediate: !0 }), { __sfc: !0, previewStore: t, MAX_EMAIL_SIZE_IN_KB: o, htmlKB: e, progress: s, htmlSize: a, calculateProgress: r, trans: i, InProgress: f, InTooltip: v };
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
S as default
|
|
25
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
2
|
-
"back-to-inbox": () => void;
|
|
3
|
-
}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import n from "./ContentView.vue2.js";
|
|
2
|
-
import e from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var c = function() {
|
|
4
|
-
var a = this, s = a._self._c, t = a._self._setupProxy;
|
|
5
|
-
return s("div", { staticClass: "w-1 h-1 b-c-4 d-f f-d-c" }, [s("div", { staticClass: "d-f j-c-s-b a-i-c p-2 h-6-s" }, [s("div", { staticClass: "d-f a-i-c cur-p", on: { click: function(l) {
|
|
6
|
-
return a.$emit("back-to-inbox");
|
|
7
|
-
} } }, [s(t.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [a._v(a._s(t.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(t.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(t.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("iframe", { ref: "iframeRef", staticClass: "f-g-1 w-1 d-b b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: t.previewStore.previewHtml }, on: { load: t.onLoad } })]);
|
|
8
|
-
}, i = [], o = /* @__PURE__ */ e(
|
|
9
|
-
n,
|
|
10
|
-
c,
|
|
11
|
-
i,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const d = o.exports;
|
|
17
|
-
export {
|
|
18
|
-
d as default
|
|
19
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as c } from "vue";
|
|
2
|
-
import { useResponsivePreview as f } from "../../../../composables/useResponsivePreview.js";
|
|
3
|
-
import { useTranslations as a } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { usePreviewStore as p } from "../../../../stores/preview.js";
|
|
5
|
-
import { InIcons as u } from "@useinsider/design-system-vue";
|
|
6
|
-
const h = /* @__PURE__ */ m({
|
|
7
|
-
__name: "ContentView",
|
|
8
|
-
emits: ["back-to-inbox"],
|
|
9
|
-
setup(v) {
|
|
10
|
-
const i = a(), t = p(), n = c(), { setupResponsivePreview: r } = f(), s = (o) => {
|
|
11
|
-
["transform", "transform-origin", "height"].forEach((e) => {
|
|
12
|
-
o.documentElement.style.removeProperty(e);
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
return { __sfc: !0, trans: i, previewStore: t, iframeRef: n, setupResponsivePreview: r, clearAMPTransforms: s, onLoad: () => {
|
|
16
|
-
const o = n.value, e = o == null ? void 0 : o.contentDocument;
|
|
17
|
-
e && (r(o), t.isAMPResponsive && s(e));
|
|
18
|
-
}, InIcons: u };
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
h as default
|
|
23
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
2
|
-
"open-email": () => void;
|
|
3
|
-
}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import e from "./InboxView.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var r = function() {
|
|
5
|
-
var s = this, t = s._self._c, c = s._self._setupProxy;
|
|
6
|
-
return t("div", { staticClass: "p-y-13 p-x-3 bor-b-w-1 bor-b-s-s bor-b-c-50 cur-p b-c-4 b-c-h-5 p-3", on: { click: function(_) {
|
|
7
|
-
return c.emit("open-email");
|
|
8
|
-
} } }, [t("div", { staticClass: "d-f j-c-s-b a-i-c w-1" }, [t("div", { staticClass: "f-g-1 min-w-0-s" }, [t("div", { staticClass: "f-s-1 f-w-600 t-c-53 l-h-1 mb-12 cropped-text" }, [s._v(" " + s._s(c.senderName) + " ")]), t("div", { staticClass: "f-s-12 f-w-400 t-c-55 l-h-1 cropped-text" }, [s._v(" " + s._s(c.subject) + " ")])]), t("div", { staticClass: "f-sh-0 ml-2 f-s-12 f-w-400 t-c-55 l-h-1" }, [s._v(" " + s._s(c.trans("product-catalog.today")) + " ")]), t(c.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-right" } })], 1)]);
|
|
9
|
-
}, i = [], n = /* @__PURE__ */ a(
|
|
10
|
-
e,
|
|
11
|
-
r,
|
|
12
|
-
i,
|
|
13
|
-
!1,
|
|
14
|
-
null,
|
|
15
|
-
"f20b3a9b"
|
|
16
|
-
);
|
|
17
|
-
const m = n.exports;
|
|
18
|
-
export {
|
|
19
|
-
m as default
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, computed as o } from "vue";
|
|
2
|
-
import { useConfig as i } from "../../../../composables/useConfig.js";
|
|
3
|
-
import { useTranslations as c } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { InIcons as f } from "@useinsider/design-system-vue";
|
|
5
|
-
const b = /* @__PURE__ */ a({
|
|
6
|
-
__name: "InboxView",
|
|
7
|
-
emits: ["open-email"],
|
|
8
|
-
setup(p, { emit: s }) {
|
|
9
|
-
const t = c(), { config: n } = i(), r = o(() => {
|
|
10
|
-
var e;
|
|
11
|
-
return ((e = n.emailHeader) == null ? void 0 : e.senderName) || t("settings.sender-name");
|
|
12
|
-
}), m = o(() => {
|
|
13
|
-
var e;
|
|
14
|
-
return ((e = n.emailHeader) == null ? void 0 : e.subject) || t("email-editor.default-subject");
|
|
15
|
-
});
|
|
16
|
-
return { __sfc: !0, emit: s, trans: t, config: n, senderName: r, subject: m, InIcons: f };
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
b as default
|
|
21
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import t from "./MobilePreview.vue2.js";
|
|
2
|
-
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var a = function() {
|
|
4
|
-
var o = this, s = o._self._c, e = o._self._setupProxy;
|
|
5
|
-
return s("div", { staticClass: "d-f j-c-c pl-5" }, [s("div", { staticClass: "p-r w-35-s h-26-s" }, [s("img", { staticClass: "w-1 h-1 d-b p-e-n", attrs: { alt: e.mockup.alt, src: e.mockup.image } }), s("div", { staticClass: "p-a w-21-s h-24-s o-h", style: { top: e.phoneScreenTopMargin, left: "20px" } }, [e.showInbox ? s(e.InboxView, { on: { "open-email": e.openEmail } }) : s(e.ContentView, { on: { "back-to-inbox": e.backToInbox } })], 1)])]);
|
|
6
|
-
}, r = [], i = /* @__PURE__ */ n(
|
|
7
|
-
t,
|
|
8
|
-
a,
|
|
9
|
-
r,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const _ = i.exports;
|
|
15
|
-
export {
|
|
16
|
-
_ as default
|
|
17
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as i, computed as e } from "vue";
|
|
2
|
-
import a from "../../../../static/assets/inbox-mockup.svg.js";
|
|
3
|
-
import c from "../../../../static/assets/phone-mockup.svg.js";
|
|
4
|
-
import s from "./ContentView.vue.js";
|
|
5
|
-
import u from "./InboxView.vue.js";
|
|
6
|
-
const w = /* @__PURE__ */ m({
|
|
7
|
-
__name: "MobilePreview",
|
|
8
|
-
setup(f) {
|
|
9
|
-
const o = i(!1), n = e(() => ({
|
|
10
|
-
image: o.value ? a : c,
|
|
11
|
-
alt: o.value ? "Inbox mockup" : "Phone mockup"
|
|
12
|
-
})), r = () => {
|
|
13
|
-
o.value = !1;
|
|
14
|
-
}, t = () => {
|
|
15
|
-
o.value = !0;
|
|
16
|
-
}, p = e(() => o.value ? "88px" : "44px");
|
|
17
|
-
return { __sfc: !0, showInbox: o, mockup: n, openEmail: r, backToInbox: t, phoneScreenTopMargin: p, ContentView: s, InboxView: u };
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
w as default
|
|
22
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import s from "./SaveAsTemplateDrawer.vue2.js";
|
|
2
|
-
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var r = function() {
|
|
4
|
-
var a = this, e = a._self._c, t = a._self._setupProxy;
|
|
5
|
-
return e(t.WpDrawer, { attrs: { id: "save-as-template-modal", "description-status": "", "description-text": t.trans("newsletter.save-template-description"), "footer-button-group-options": t.footerButtonGroupOptions, status: t.editorStore.isSaveAsTemplateDrawerOpen, "title-text": t.trans("products.save-template") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.saveTemplate } }, [e(t.InBasicTextInput, { staticClass: "mb-5 w-1", attrs: { id: "guido__template-name-input", name: "templateName", "character-counter-status": !1, "disabled-status": t.isSaving, "label-text": t.trans("products.template-name"), "max-character-length": 1e3, "placeholder-text": t.trans("newsletter.enter-template-name"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, "state-message": t.templateNameError, states: t.templateNameError ? "error" : "default", "tooltip-status": !1, value: t.saveAsTemplateStore.templateName }, on: { input: t.handleTemplateName } }), e(t.InMultiSelect, { staticClass: "template-category-dropdown mb-5 w-1", attrs: { id: "guido__template-category-dropdown", "create-option-status": "", "search-status": "", "button-status": !1, "character-limit-validation-text": t.trans("validation-v2.duration-value", {
|
|
6
|
-
min: 1,
|
|
7
|
-
max: 25
|
|
8
|
-
}), "create-button-label": t.trans("products.create-new-category"), "disabled-status": t.isSaving, "label-text": t.trans("products.template-category"), "loading-state": t.isAddingOption, "max-character-limit": 25, "max-height": 350, options: t.saveAsTemplateStore.categories, "placeholder-text": t.trans("products.select-template-category"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, value: t.saveAsTemplateStore.selectedCategories }, on: { addOption: t.handleAddOption, change: t.handleCategoryChange, resetAllOptions: t.handleResetAllOptions, selectAllOptions: t.handleSelectAllOptions } })], 1);
|
|
9
|
-
}, l = [], n = /* @__PURE__ */ o(
|
|
10
|
-
s,
|
|
11
|
-
r,
|
|
12
|
-
l,
|
|
13
|
-
!1,
|
|
14
|
-
null,
|
|
15
|
-
null
|
|
16
|
-
);
|
|
17
|
-
const c = n.exports;
|
|
18
|
-
export {
|
|
19
|
-
c as default
|
|
20
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, ref as c, computed as b, toRef as h, nextTick as C } from "vue";
|
|
2
|
-
import N from "../../wrappers/WpDrawer.vue.js";
|
|
3
|
-
import { useTranslations as O } from "../../../composables/useTranslations.js";
|
|
4
|
-
import { useTemplateNameValidator as x } from "../../../composables/validators/saveAsTemplate.js";
|
|
5
|
-
import { useTemplateLibraryApi as B } from "../../../services/templateLibraryApi.js";
|
|
6
|
-
import { useEditorStore as D } from "../../../stores/editor.js";
|
|
7
|
-
import { useSaveAsTemplateStore as k } from "../../../stores/save-as-template.js";
|
|
8
|
-
import { InMultiSelect as I, InBasicTextInput as M } from "@useinsider/design-system-vue";
|
|
9
|
-
import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.js";
|
|
10
|
-
const H = /* @__PURE__ */ A({
|
|
11
|
-
__name: "SaveAsTemplateDrawer",
|
|
12
|
-
setup(E) {
|
|
13
|
-
const s = O(), o = D(), t = k(), { createTemplate: m } = B(), a = c(!1), n = c(!1), r = c(""), f = b(() => ({
|
|
14
|
-
primaryButton: {
|
|
15
|
-
styling: "solid",
|
|
16
|
-
type: "primary",
|
|
17
|
-
labelText: s(a.value ? "newsletter.saving" : "products.save"),
|
|
18
|
-
loadingStatus: a.value,
|
|
19
|
-
disabledStatus: t.skeletonStatus
|
|
20
|
-
},
|
|
21
|
-
cancelOrBackButton: {
|
|
22
|
-
styling: "ghost",
|
|
23
|
-
type: "secondary",
|
|
24
|
-
labelText: s("products.cancel"),
|
|
25
|
-
disabledStatus: a.value
|
|
26
|
-
}
|
|
27
|
-
})), p = () => {
|
|
28
|
-
r.value = "", o.isSaveAsTemplateDrawerOpen = !1;
|
|
29
|
-
}, l = async () => {
|
|
30
|
-
const e = h(t, "templateName"), { success: i, errorMessage: _ } = await x(e).validate();
|
|
31
|
-
return r.value = _, i;
|
|
32
|
-
}, v = V(async (e) => {
|
|
33
|
-
t.templateName = e, await l();
|
|
34
|
-
}, 500), g = async (e) => {
|
|
35
|
-
n.value = !0, await t.addCategory(e), n.value = !1;
|
|
36
|
-
}, y = (e) => {
|
|
37
|
-
t.selectedCategories = e;
|
|
38
|
-
}, S = (e) => {
|
|
39
|
-
e && (t.selectedCategories = e);
|
|
40
|
-
}, T = () => {
|
|
41
|
-
t.selectedCategories = [];
|
|
42
|
-
}, w = async () => {
|
|
43
|
-
if (a.value = !0, !await l()) {
|
|
44
|
-
a.value = !1;
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
await m(), a.value = !1, p();
|
|
48
|
-
}, u = () => {
|
|
49
|
-
C(() => {
|
|
50
|
-
const e = document.querySelector("input#guido__template-name-input");
|
|
51
|
-
e == null || e.focus();
|
|
52
|
-
});
|
|
53
|
-
}, d = async () => {
|
|
54
|
-
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1, u();
|
|
55
|
-
};
|
|
56
|
-
return o.$subscribe((e, { isSaveAsTemplateDrawerOpen: i }) => {
|
|
57
|
-
i && d();
|
|
58
|
-
}), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t, createTemplate: m, isSaving: a, isAddingOption: n, templateNameError: r, footerButtonGroupOptions: f, closeModal: p, validateTemplateName: l, handleTemplateName: v, handleAddOption: g, handleCategoryChange: y, handleSelectAllOptions: S, handleResetAllOptions: T, saveTemplate: w, focusToInput: u, initializeDrawer: d, WpDrawer: N, InBasicTextInput: M, InMultiSelect: I };
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
export {
|
|
62
|
-
H as default
|
|
63
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { FooterButtonGroupOptions } from '@@/Types/wrappers/wp-drawer';
|
|
2
|
-
interface Props {
|
|
3
|
-
id: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
size?: string;
|
|
6
|
-
closeOnOutsideClick?: boolean;
|
|
7
|
-
descriptionStatus?: boolean;
|
|
8
|
-
descriptionText?: string;
|
|
9
|
-
footerButtonGroupOptions: FooterButtonGroupOptions;
|
|
10
|
-
status: boolean;
|
|
11
|
-
titleText: string;
|
|
12
|
-
}
|
|
13
|
-
declare var __VLS_12: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof __VLS_12) => any;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
18
|
-
className: string;
|
|
19
|
-
size: string;
|
|
20
|
-
closeOnOutsideClick: boolean;
|
|
21
|
-
descriptionStatus: boolean;
|
|
22
|
-
descriptionText: string;
|
|
23
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
24
|
-
cancelOrBackButtonEvent: () => void;
|
|
25
|
-
onCloseEvent: () => void;
|
|
26
|
-
primaryButtonEvent: () => void;
|
|
27
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
28
|
-
className: string;
|
|
29
|
-
size: string;
|
|
30
|
-
closeOnOutsideClick: boolean;
|
|
31
|
-
descriptionStatus: boolean;
|
|
32
|
-
descriptionText: string;
|
|
33
|
-
}>>>, {
|
|
34
|
-
className: string;
|
|
35
|
-
size: string;
|
|
36
|
-
closeOnOutsideClick: boolean;
|
|
37
|
-
descriptionStatus: boolean;
|
|
38
|
-
descriptionText: string;
|
|
39
|
-
}>;
|
|
40
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_WithDefaults<P, D> = {
|
|
43
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
44
|
-
default: D[K];
|
|
45
|
-
}> : P[K];
|
|
46
|
-
};
|
|
47
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
-
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
-
} : {
|
|
52
|
-
type: import('vue').PropType<T[K]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
-
new (): {
|
|
58
|
-
$scopedSlots: S;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
type __VLS_PrettifyLocal<T> = {
|
|
62
|
-
[K in keyof T]: T[K];
|
|
63
|
-
} & {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import r from "./WpDrawer.vue2.js";
|
|
2
|
-
import s from "../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return n(e.InDrawer, { class: t.className, attrs: { id: t.id, "footer-status": "", "close-on-outside-click": t.closeOnOutsideClick, "description-status": t.descriptionStatus, "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, size: t.size, status: t.status, "title-text": t.titleText }, on: { cancelOrBackButtonEvent: function(o) {
|
|
6
|
-
return e.emit("cancelOrBackButtonEvent");
|
|
7
|
-
}, onCloseEvent: function(o) {
|
|
8
|
-
return e.emit("onCloseEvent");
|
|
9
|
-
}, primaryButtonEvent: function(o) {
|
|
10
|
-
return e.emit("primaryButtonEvent");
|
|
11
|
-
} }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
|
|
12
|
-
return [n("div", [t._t("default")], 2)];
|
|
13
|
-
}, proxy: !0 }], null, !0) });
|
|
14
|
-
}, u = [], c = /* @__PURE__ */ s(
|
|
15
|
-
r,
|
|
16
|
-
i,
|
|
17
|
-
u,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const f = c.exports;
|
|
23
|
-
export {
|
|
24
|
-
f as default
|
|
25
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e } from "vue";
|
|
2
|
-
import { InDrawer as o } from "@useinsider/design-system-vue";
|
|
3
|
-
const r = /* @__PURE__ */ e({
|
|
4
|
-
__name: "WpDrawer",
|
|
5
|
-
props: {
|
|
6
|
-
id: null,
|
|
7
|
-
className: { default: "" },
|
|
8
|
-
size: { default: "small" },
|
|
9
|
-
closeOnOutsideClick: { type: Boolean, default: !0 },
|
|
10
|
-
descriptionStatus: { type: Boolean, default: !1 },
|
|
11
|
-
descriptionText: { default: "" },
|
|
12
|
-
footerButtonGroupOptions: null,
|
|
13
|
-
status: { type: Boolean },
|
|
14
|
-
titleText: null
|
|
15
|
-
},
|
|
16
|
-
emits: ["cancelOrBackButtonEvent", "onCloseEvent", "primaryButtonEvent"],
|
|
17
|
-
setup(n, { emit: t }) {
|
|
18
|
-
return { __sfc: !0, emit: t, InDrawer: o };
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
r as default
|
|
23
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { FooterButtonGroup } from '@@/Types/preview';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
7
|
-
footerButtonOptions?: FooterButtonGroup;
|
|
8
|
-
closeButtonStatus?: boolean;
|
|
9
|
-
closeOnOutsideClick?: boolean;
|
|
10
|
-
footerStatus?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare var __VLS_13: {};
|
|
13
|
-
type __VLS_Slots = {} & {
|
|
14
|
-
default?: (props: typeof __VLS_13) => any;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
17
|
-
description: string;
|
|
18
|
-
size: string;
|
|
19
|
-
footerButtonOptions: undefined;
|
|
20
|
-
closeButtonStatus: boolean;
|
|
21
|
-
closeOnOutsideClick: boolean;
|
|
22
|
-
footerStatus: boolean;
|
|
23
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
24
|
-
close: () => void;
|
|
25
|
-
"primary-action": () => void;
|
|
26
|
-
"secondary-action": () => void;
|
|
27
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
28
|
-
description: string;
|
|
29
|
-
size: string;
|
|
30
|
-
footerButtonOptions: undefined;
|
|
31
|
-
closeButtonStatus: boolean;
|
|
32
|
-
closeOnOutsideClick: boolean;
|
|
33
|
-
footerStatus: boolean;
|
|
34
|
-
}>>>, {
|
|
35
|
-
description: string;
|
|
36
|
-
size: "small" | "medium" | "large";
|
|
37
|
-
closeOnOutsideClick: boolean;
|
|
38
|
-
footerButtonOptions: FooterButtonGroup;
|
|
39
|
-
closeButtonStatus: boolean;
|
|
40
|
-
footerStatus: boolean;
|
|
41
|
-
}>;
|
|
42
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToOption<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
-
} : {
|
|
54
|
-
type: import('vue').PropType<T[K]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
59
|
-
new (): {
|
|
60
|
-
$scopedSlots: S;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
type __VLS_PrettifyLocal<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import r from "./WpModal.vue2.js";
|
|
2
|
-
import s from "../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return o(e.InModalV2, { attrs: { id: t.id, "description-status": "", status: "", "close-button-status": t.closeButtonStatus, "close-on-outside-click": t.closeOnOutsideClick, "description-text": t.description, "footer-button-group-options": t.footerButtonOptions, "footer-status": t.footerStatus, size: t.size, "title-text": t.title }, on: { cancelOrBackButtonEvent: function(n) {
|
|
6
|
-
return e.emit("close");
|
|
7
|
-
}, onCloseEvent: function(n) {
|
|
8
|
-
return e.emit("close");
|
|
9
|
-
}, primaryButtonEvent: function(n) {
|
|
10
|
-
return e.emit("primary-action");
|
|
11
|
-
}, secondaryButtonEvent: function(n) {
|
|
12
|
-
return e.emit("secondary-action");
|
|
13
|
-
} }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
|
|
14
|
-
return [t._t("default")];
|
|
15
|
-
}, proxy: !0 }], null, !0) });
|
|
16
|
-
}, u = [], c = /* @__PURE__ */ s(
|
|
17
|
-
r,
|
|
18
|
-
i,
|
|
19
|
-
u,
|
|
20
|
-
!1,
|
|
21
|
-
null,
|
|
22
|
-
null
|
|
23
|
-
);
|
|
24
|
-
const p = c.exports;
|
|
25
|
-
export {
|
|
26
|
-
p as default
|
|
27
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e } from "vue";
|
|
2
|
-
import { InModalV2 as o } from "@useinsider/design-system-vue";
|
|
3
|
-
const u = /* @__PURE__ */ e({
|
|
4
|
-
__name: "WpModal",
|
|
5
|
-
props: {
|
|
6
|
-
id: null,
|
|
7
|
-
title: null,
|
|
8
|
-
description: { default: "" },
|
|
9
|
-
size: { default: "small" },
|
|
10
|
-
footerButtonOptions: { default: void 0 },
|
|
11
|
-
closeButtonStatus: { type: Boolean, default: !0 },
|
|
12
|
-
closeOnOutsideClick: { type: Boolean, default: !0 },
|
|
13
|
-
footerStatus: { type: Boolean, default: !0 }
|
|
14
|
-
},
|
|
15
|
-
emits: ["close", "primary-action", "secondary-action"],
|
|
16
|
-
setup(l, { emit: t }) {
|
|
17
|
-
return { __sfc: !0, emit: t, InModalV2: o };
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
u as default
|
|
22
|
-
};
|