@designcrowd/library.brand-page 5.17.27-ast-display-styles-2 → 5.17.27-shape-memory-2

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.
Files changed (34) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-_kE_N0ST.js → CreatedOnBrandCrowd-de-de-CmwyVngB.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-D-HGpOT_.js → CreatedOnBrandCrowd-en-us-BsYNmX7g.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Bpxc6CZ9.js → CreatedOnBrandCrowd-es-es-Di-Cb90E.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-gV6tqiY3.js → CreatedOnBrandCrowd-fr-ca-DkPUGPrO.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-gV6tqiY3.js → CreatedOnBrandCrowd-fr-fr-DkPUGPrO.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-xxYZcP2A.js → CreatedOnBrandCrowd-pt-br-BB1hWv0w.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-xxYZcP2A.js → CreatedOnBrandCrowd-pt-pt-BB1hWv0w.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DomeY3TK.js → CreatedOnDcom-de-de-CLPQHUdt.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DsJhWFNL.js → CreatedOnDcom-en-us-4xPohzcl.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BsCRXFHb.js → CreatedOnDcom-es-es-COjxz_Aa.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-xu218NFe.js → CreatedOnDcom-fr-ca-sxQVouYP.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr--ZyIDBpD.js → CreatedOnDcom-fr-fr-B2XC86kO.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DtCW8as2.js → CreatedOnDcom-pt-br-CYK9le9x.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-C77BuVJ9.js → CreatedOnDcom-pt-pt-CF-QACKl.js} +1 -1
  15. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +0 -5
  16. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.js +1 -31
  17. package/lib/src/brand-page/constants/misc.constants.d.ts +0 -6
  18. package/lib/src/brand-page/constants/misc.constants.js +0 -6
  19. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +2 -56
  20. package/lib/src/css/library.brand-page-brandCrowd.min.css +123 -130
  21. package/lib/src/css/library.brand-page-brandPage.min.css +123 -131
  22. package/lib/src/css/library.brand-page-designCom.min.css +123 -130
  23. package/lib/src/css/library.brand-page-preview.min.css +123 -130
  24. package/lib/src/index.mjs +1 -1
  25. package/lib/src/{lib-CIcIhTXl.js → lib-vkr7dfRD.js} +15712 -16109
  26. package/package.json +2 -2
  27. package/src/brand-page/components/background-shape/BackgroundShape.vue +7 -8
  28. package/src/brand-page/components/banner-section/BannerSection.mixin.ts +0 -42
  29. package/src/brand-page/components/banner-section/BannerSection.vue +3 -95
  30. package/src/brand-page/components/media/Shape.vue +1 -3
  31. package/src/brand-page/components/page/Page.vue +27 -5
  32. package/src/brand-page/components/placeholder/Placeholder.vue +100 -39
  33. package/src/brand-page/constants/misc.constants.ts +0 -6
  34. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +1 -61
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CIcIhTXl.js";
2
+ import { _ as t } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CIcIhTXl.js";
2
+ import { _ as e } from "./lib-vkr7dfRD.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CIcIhTXl.js";
2
+ import { _ as e } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CIcIhTXl.js";
2
+ import { _ as e } from "./lib-vkr7dfRD.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CIcIhTXl.js";
2
+ import { _ as e } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CIcIhTXl.js";
2
+ import { _ as e } from "./lib-vkr7dfRD.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CIcIhTXl.js";
2
+ import { _ as M } from "./lib-vkr7dfRD.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CIcIhTXl.js";
2
+ import { _ as M } from "./lib-vkr7dfRD.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,7 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { BannerSectionViewModel, ButtonViewModel } from '@brand-page/view-models';
3
3
  import type { BrandPageContext } from '@brand-page/models';
4
- type StackedImagePosition = 'top' | 'middle' | 'bottom';
5
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
5
  viewModel: {
7
6
  type: PropType<BannerSectionViewModel>;
@@ -35,10 +34,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
35
34
  isRightImageAligned(): boolean;
36
35
  isDividedContent(): boolean;
37
36
  isCardBannerContent(): boolean;
38
- isStackedImageLayout(): boolean;
39
- stackedImagePosition(): StackedImagePosition;
40
- isStackedFullWidth(): boolean;
41
- stackedImageWrapperClass(): Record<string, boolean>;
42
37
  isCardAlignedOnLeft(): boolean;
43
38
  getbuttonViewModel(): ButtonViewModel;
44
39
  shouldShowButton(): boolean;
@@ -1,20 +1,7 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
3
3
  import { isURL, hasValidButton as shouldShowButtonUtil, } from '../../../utils/validator.util';
4
- import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_TOP_CARD_IMAGE, ALIGN_BOTTOM_CARD_IMAGE, ALIGN_MIDDLE_CARD_IMAGE, ALIGN_TOP_FULL_IMAGE, ALIGN_BOTTOM_FULL_IMAGE, ALIGN_MIDDLE_FULL_IMAGE, } from '../../constants';
5
- const STACKED_LAYOUT_POSITIONS = {
6
- [ALIGN_TOP_CARD_IMAGE]: 'top',
7
- [ALIGN_TOP_FULL_IMAGE]: 'top',
8
- [ALIGN_BOTTOM_CARD_IMAGE]: 'bottom',
9
- [ALIGN_BOTTOM_FULL_IMAGE]: 'bottom',
10
- [ALIGN_MIDDLE_CARD_IMAGE]: 'middle',
11
- [ALIGN_MIDDLE_FULL_IMAGE]: 'middle',
12
- };
13
- const STACKED_FULL_WIDTH_STYLES = new Set([
14
- ALIGN_TOP_FULL_IMAGE,
15
- ALIGN_BOTTOM_FULL_IMAGE,
16
- ALIGN_MIDDLE_FULL_IMAGE,
17
- ]);
4
+ import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, } from '../../constants';
18
5
  import { getRenderText, escapeContentText } from '@brand-page/utils';
19
6
  import { hasRTEContent } from '@brand-page-maker/utils';
20
7
  export default defineComponent({
@@ -126,23 +113,6 @@ export default defineComponent({
126
113
  }
127
114
  return false;
128
115
  },
129
- isStackedImageLayout() {
130
- return this.viewModel.displayStyle in STACKED_LAYOUT_POSITIONS;
131
- },
132
- stackedImagePosition() {
133
- return STACKED_LAYOUT_POSITIONS[this.viewModel.displayStyle] ?? 'top';
134
- },
135
- isStackedFullWidth() {
136
- return STACKED_FULL_WIDTH_STYLES.has(this.viewModel.displayStyle);
137
- },
138
- stackedImageWrapperClass() {
139
- const isFull = this.isStackedFullWidth;
140
- return {
141
- 'tw-w-full': !isFull,
142
- 'c_banner-stacked-image--full': isFull,
143
- 'tw-rounded-md tw-overflow-hidden': !isFull,
144
- };
145
- },
146
116
  isCardAlignedOnLeft() {
147
117
  return this.viewModel.displayStyle === ALIGN_CARD_LEFT_IMAGE;
148
118
  },
@@ -12,12 +12,6 @@ export declare const ALIGN_LEFT_BIG_IMAGE = "left-aligned-big-image";
12
12
  export declare const ALIGN_CARD_CENTER_IMAGE = "center-card-aligned-image";
13
13
  export declare const ALIGN_CARD_CENTER = "center-card-aligned";
14
14
  export declare const ALIGN_CARD_LEFT_IMAGE = "left-card-aligned-image";
15
- export declare const ALIGN_TOP_CARD_IMAGE = "top-card-aligned-image";
16
- export declare const ALIGN_BOTTOM_CARD_IMAGE = "bottom-card-aligned-image";
17
- export declare const ALIGN_MIDDLE_CARD_IMAGE = "middle-card-aligned-image";
18
- export declare const ALIGN_TOP_FULL_IMAGE = "top-aligned-full-image";
19
- export declare const ALIGN_BOTTOM_FULL_IMAGE = "bottom-aligned-full-image";
20
- export declare const ALIGN_MIDDLE_FULL_IMAGE = "middle-aligned-full-image";
21
15
  export declare const MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH = 3;
22
16
  export declare const TEXT_COLUMNS: {
23
17
  readonly 1: "1";
@@ -13,12 +13,6 @@ export const ALIGN_LEFT_BIG_IMAGE = 'left-aligned-big-image';
13
13
  export const ALIGN_CARD_CENTER_IMAGE = 'center-card-aligned-image';
14
14
  export const ALIGN_CARD_CENTER = 'center-card-aligned';
15
15
  export const ALIGN_CARD_LEFT_IMAGE = 'left-card-aligned-image';
16
- export const ALIGN_TOP_CARD_IMAGE = 'top-card-aligned-image';
17
- export const ALIGN_BOTTOM_CARD_IMAGE = 'bottom-card-aligned-image';
18
- export const ALIGN_MIDDLE_CARD_IMAGE = 'middle-card-aligned-image';
19
- export const ALIGN_TOP_FULL_IMAGE = 'top-aligned-full-image';
20
- export const ALIGN_BOTTOM_FULL_IMAGE = 'bottom-aligned-full-image';
21
- export const ALIGN_MIDDLE_FULL_IMAGE = 'middle-aligned-full-image';
22
16
  export const MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH = 3;
23
17
  export const TEXT_COLUMNS = {
24
18
  1: '1',
@@ -1,4 +1,4 @@
1
- import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_TOP_CARD_IMAGE, ALIGN_BOTTOM_CARD_IMAGE, ALIGN_MIDDLE_CARD_IMAGE, ALIGN_TOP_FULL_IMAGE, ALIGN_BOTTOM_FULL_IMAGE, ALIGN_MIDDLE_FULL_IMAGE, } from '@brand-page/constants';
1
+ import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, } from '@brand-page/constants';
2
2
  export const bannerAlignDisplayStyleConvertor = {
3
3
  convertBackToMultipleValues: true,
4
4
  convert(value) {
@@ -28,54 +28,6 @@ export const bannerAlignDisplayStyleConvertor = {
28
28
  iconViewBox: '0 0 110 64',
29
29
  dataAttribute: 'data-test-btn-text-only',
30
30
  },
31
- {
32
- title: '',
33
- value: ALIGN_TOP_CARD_IMAGE,
34
- isSelected: value === ALIGN_TOP_CARD_IMAGE,
35
- iconName: 'display-style-banner-10',
36
- iconViewBox: '0 0 110 64',
37
- dataAttribute: 'data-test-btn-top-card-image',
38
- },
39
- {
40
- title: '',
41
- value: ALIGN_BOTTOM_CARD_IMAGE,
42
- isSelected: value === ALIGN_BOTTOM_CARD_IMAGE,
43
- iconName: 'display-style-banner-11',
44
- iconViewBox: '0 0 110 64',
45
- dataAttribute: 'data-test-btn-bottom-card-image',
46
- },
47
- {
48
- title: '',
49
- value: ALIGN_MIDDLE_CARD_IMAGE,
50
- isSelected: value === ALIGN_MIDDLE_CARD_IMAGE,
51
- iconName: 'display-style-banner-12',
52
- iconViewBox: '0 0 110 64',
53
- dataAttribute: 'data-test-btn-middle-card-image',
54
- },
55
- {
56
- title: '',
57
- value: ALIGN_TOP_FULL_IMAGE,
58
- isSelected: value === ALIGN_TOP_FULL_IMAGE,
59
- iconName: 'display-style-banner-13',
60
- iconViewBox: '0 0 110 64',
61
- dataAttribute: 'data-test-btn-top-full-image',
62
- },
63
- {
64
- title: '',
65
- value: ALIGN_BOTTOM_FULL_IMAGE,
66
- isSelected: value === ALIGN_BOTTOM_FULL_IMAGE,
67
- iconName: 'display-style-banner-14',
68
- iconViewBox: '0 0 110 64',
69
- dataAttribute: 'data-test-btn-bottom-full-image',
70
- },
71
- {
72
- title: '',
73
- value: ALIGN_MIDDLE_FULL_IMAGE,
74
- isSelected: value === ALIGN_MIDDLE_FULL_IMAGE,
75
- iconName: 'display-style-banner-15',
76
- iconViewBox: '0 0 110 64',
77
- dataAttribute: 'data-test-btn-middle-full-image',
78
- },
79
31
  {
80
32
  title: '',
81
33
  value: BIG_IMAGE,
@@ -134,13 +86,7 @@ export const bannerAlignDisplayStyleConvertor = {
134
86
  if (!selectedOption ||
135
87
  selectedOption.value === ALIGN_CENTERED ||
136
88
  selectedOption.value === BIG_IMAGE ||
137
- selectedOption.value === ALIGN_CARD_CENTER_IMAGE ||
138
- selectedOption.value === ALIGN_TOP_CARD_IMAGE ||
139
- selectedOption.value === ALIGN_BOTTOM_CARD_IMAGE ||
140
- selectedOption.value === ALIGN_MIDDLE_CARD_IMAGE ||
141
- selectedOption.value === ALIGN_TOP_FULL_IMAGE ||
142
- selectedOption.value === ALIGN_BOTTOM_FULL_IMAGE ||
143
- selectedOption.value === ALIGN_MIDDLE_FULL_IMAGE) {
89
+ selectedOption.value === ALIGN_CARD_CENTER_IMAGE) {
144
90
  textAlign = 'center';
145
91
  }
146
92
  return {