pds-dev-kit-web-test 2.5.444 → 2.5.447
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/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/services/i18n/resources/en.json +1 -29
- package/dist/src/common/services/i18n/resources/es.json +1 -28
- package/dist/src/common/services/i18n/resources/fil.json +1 -28
- package/dist/src/common/services/i18n/resources/index.d.ts +0 -194
- package/dist/src/common/services/i18n/resources/ja.json +1 -29
- package/dist/src/common/services/i18n/resources/ko.json +1 -29
- package/dist/src/common/services/i18n/resources/zh-cn.json +1 -29
- package/dist/src/common/services/i18n/resources/zh-tw.json +1 -29
- package/dist/src/common/styles/colorSet/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/common/utils/dateHelper.d.ts +0 -3
- package/dist/src/common/utils/dateHelper.js +0 -37
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
- package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/mock_composition.js +1606 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1111 -0
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
- package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
- package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -960
- package/dist/src/sub/DynamicLayout/mocks.js +4286 -6
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +121 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +61 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +87 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +182 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +234 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +139 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +190 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +128 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +230 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +67 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +138 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +173 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +87 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +235 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +63 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +186 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +163 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +31 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +7 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +10 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +60 -17
- package/package.json +3 -2
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +0 -13
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +0 -48
- package/dist/src/desktop/components/Calendar/Calendar.d.ts +0 -4
- package/dist/src/desktop/components/Calendar/Calendar.js +0 -379
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +0 -7
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +0 -48
- package/dist/src/desktop/components/Calendar/DailyView.d.ts +0 -17
- package/dist/src/desktop/components/Calendar/DailyView.js +0 -82
- package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +0 -26
- package/dist/src/desktop/components/Calendar/MonthlyView.js +0 -222
- package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +0 -16
- package/dist/src/desktop/components/Calendar/ScheduleItem.js +0 -49
- package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +0 -21
- package/dist/src/desktop/components/Calendar/WeeklyView.js +0 -100
- package/dist/src/desktop/components/Calendar/YearlyView.d.ts +0 -11
- package/dist/src/desktop/components/Calendar/YearlyView.js +0 -71
- package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +0 -24
- package/dist/src/desktop/components/Calendar/calendarUtils.js +0 -108
- package/dist/src/desktop/components/Calendar/constants.d.ts +0 -1
- package/dist/src/desktop/components/Calendar/constants.js +0 -31
- package/dist/src/desktop/components/Calendar/index.d.ts +0 -10
- package/dist/src/desktop/components/Calendar/index.js +0 -37
- package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +0 -16
- package/dist/src/desktop/components/Calendar/timeFormatUtils.js +0 -45
- package/dist/src/desktop/components/Calendar/types.d.ts +0 -60
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
- /package/dist/src/{desktop/components/Calendar/types.js → sub/DynamicLayout/compositionActionTypes.js} +0 -0
|
@@ -16,8 +16,8 @@ export type CB_STYLE_PROP_PADDING_BASE = {
|
|
|
16
16
|
};
|
|
17
17
|
export type CB_LAYOUT_PROP_PADDING_SPECS = CB_STYLE_PROP_PADDING_BASE & {
|
|
18
18
|
CB_LAYOUT_PROP_PADDING_SPEC_PADDING: CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ;
|
|
19
|
-
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ | undefined;
|
|
19
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ | undefined | null;
|
|
20
20
|
CB_LAYOUT_PROP_PADDING_SPEC_FIX: boolean;
|
|
21
|
-
'CB_LAYOUT_PROP_PADDING_SPEC_FIX:MOBILE': boolean | undefined;
|
|
21
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_FIX:MOBILE': boolean | undefined | null;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ICompositionJsonProperties } from '../../../../DynamicLayout/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
compositionProps: ICompositionJsonProperties['data']['CB_PLACEMENT_PROP_COMPOSITION'];
|
|
5
|
+
};
|
|
6
|
+
declare function parseCompositionPlacement({ isMobile, compositionProps }: Props): {
|
|
7
|
+
minHeight: number | null;
|
|
8
|
+
maxHeight: number | null;
|
|
9
|
+
minWidth: number | null;
|
|
10
|
+
maxWidth: number | null;
|
|
11
|
+
rows: number;
|
|
12
|
+
columns: number;
|
|
13
|
+
};
|
|
14
|
+
export default parseCompositionPlacement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function parseCompositionPlacement(_a) {
|
|
4
|
+
var _b, _c, _d, _e, _f, _g;
|
|
5
|
+
var isMobile = _a.isMobile, compositionProps = _a.compositionProps;
|
|
6
|
+
var CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT, CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT, CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH, CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH, CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS, CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS = compositionProps.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS;
|
|
7
|
+
if (isMobile) {
|
|
8
|
+
return {
|
|
9
|
+
minHeight: (_b = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT:MOBILE']) !== null && _b !== void 0 ? _b : CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT,
|
|
10
|
+
maxHeight: (_c = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT:MOBILE']) !== null && _c !== void 0 ? _c : CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT,
|
|
11
|
+
minWidth: (_d = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH:MOBILE']) !== null && _d !== void 0 ? _d : CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH,
|
|
12
|
+
maxWidth: (_e = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH:MOBILE']) !== null && _e !== void 0 ? _e : CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH,
|
|
13
|
+
rows: (_f = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE']) !== null && _f !== void 0 ? _f : CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS,
|
|
14
|
+
columns: (_g = compositionProps['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE']) !== null && _g !== void 0 ? _g : CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
minHeight: CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT,
|
|
19
|
+
maxHeight: CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT,
|
|
20
|
+
minWidth: CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH,
|
|
21
|
+
maxWidth: CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH,
|
|
22
|
+
rows: CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS,
|
|
23
|
+
columns: CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.default = parseCompositionPlacement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Device, JsonPropertiesParserResult } from './types';
|
|
2
|
-
import type { ISectionJsonProperties } from '../../../../DynamicLayout/types';
|
|
3
|
-
export default function parseJsonProperties(properties: ISectionJsonProperties['data'] | undefined, device: Device): JsonPropertiesParserResult;
|
|
2
|
+
import type { ICompositionJsonProperties, ISectionJsonProperties } from '../../../../DynamicLayout/types';
|
|
3
|
+
export default function parseJsonProperties(properties: ISectionJsonProperties['data'] | ICompositionJsonProperties['data'] | undefined, device: Device): JsonPropertiesParserResult;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentBlock } from '../types';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { PlaceRestrictionType } from '../../../../DynamicLayout/types';
|
|
3
|
+
import type { ZOrder } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
4
|
+
export declare function parsePlacement(components: ComponentBlock[], zOrders: ZOrder, placementRestriction?: PlaceRestrictionType): {
|
|
4
5
|
sm: {
|
|
5
6
|
i: string;
|
|
6
7
|
x: number;
|
|
@@ -9,6 +10,8 @@ export declare function parsePlacement(components: ComponentBlock[], zOrders: ZO
|
|
|
9
10
|
h: number;
|
|
10
11
|
z: number;
|
|
11
12
|
autoResize: boolean;
|
|
13
|
+
minH: number;
|
|
14
|
+
minW: number;
|
|
12
15
|
}[];
|
|
13
16
|
lg: {
|
|
14
17
|
i: string;
|
|
@@ -18,6 +21,8 @@ export declare function parsePlacement(components: ComponentBlock[], zOrders: ZO
|
|
|
18
21
|
h: number;
|
|
19
22
|
z: number;
|
|
20
23
|
autoResize: boolean;
|
|
24
|
+
minH: number;
|
|
25
|
+
minW: number;
|
|
21
26
|
}[];
|
|
22
27
|
};
|
|
23
28
|
export default parsePlacement;
|
|
@@ -12,13 +12,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.parsePlacement = void 0;
|
|
14
14
|
var types_1 = require("../types");
|
|
15
|
-
function parsePlacement(components, zOrders) {
|
|
15
|
+
function parsePlacement(components, zOrders, placementRestriction) {
|
|
16
16
|
if (!zOrders) {
|
|
17
17
|
console.error('Z-ORDER NOT FOUND');
|
|
18
18
|
}
|
|
19
19
|
return components.reduce(function (acc, cur) {
|
|
20
20
|
var id = cur.id, jsonProperties = cur.jsonProperties, componentBlockCode = cur.componentBlockCode;
|
|
21
|
-
var _a = parsePropPlacement(jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, id, componentBlockCode, zOrders), mobileLayout = _a.mobileLayout, desktopLayout = _a.desktopLayout;
|
|
21
|
+
var _a = parsePropPlacement(jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, id, componentBlockCode, zOrders, placementRestriction ? placementRestriction[componentBlockCode] : undefined), mobileLayout = _a.mobileLayout, desktopLayout = _a.desktopLayout;
|
|
22
22
|
return {
|
|
23
23
|
sm: __spreadArray(__spreadArray([], acc.sm, true), [mobileLayout], false),
|
|
24
24
|
lg: __spreadArray(__spreadArray([], acc.lg, true), [desktopLayout], false)
|
|
@@ -26,7 +26,8 @@ function parsePlacement(components, zOrders) {
|
|
|
26
26
|
}, { sm: [], lg: [] });
|
|
27
27
|
}
|
|
28
28
|
exports.parsePlacement = parsePlacement;
|
|
29
|
-
function parsePropPlacement(props, id, cbCode, zOrders) {
|
|
29
|
+
function parsePropPlacement(props, id, cbCode, zOrders, cbRestriction) {
|
|
30
|
+
var _a, _b, _c, _d;
|
|
30
31
|
var desktopLayout = {
|
|
31
32
|
i: id.toString(),
|
|
32
33
|
x: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX,
|
|
@@ -34,7 +35,9 @@ function parsePropPlacement(props, id, cbCode, zOrders) {
|
|
|
34
35
|
w: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS,
|
|
35
36
|
h: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS,
|
|
36
37
|
z: zOrders.desktop[id],
|
|
37
|
-
autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT
|
|
38
|
+
autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT || cbCode === types_1.CB_ALL_CODES.CB_LIST,
|
|
39
|
+
minH: (_a = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _a !== void 0 ? _a : 1,
|
|
40
|
+
minW: (_b = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.columnWMin) !== null && _b !== void 0 ? _b : 1
|
|
38
41
|
};
|
|
39
42
|
var mobileLayout = {
|
|
40
43
|
i: id.toString(),
|
|
@@ -43,7 +46,9 @@ function parsePropPlacement(props, id, cbCode, zOrders) {
|
|
|
43
46
|
w: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'],
|
|
44
47
|
h: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'],
|
|
45
48
|
z: zOrders.mobile[id],
|
|
46
|
-
autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT
|
|
49
|
+
autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT || cbCode === types_1.CB_ALL_CODES.CB_LIST,
|
|
50
|
+
minH: (_c = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _c !== void 0 ? _c : 1,
|
|
51
|
+
minW: (_d = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.mobileColumnWMin) !== null && _d !== void 0 ? _d : 1
|
|
47
52
|
};
|
|
48
53
|
return {
|
|
49
54
|
mobileLayout: mobileLayout,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CB_LAYOUT_PROP_KEYS } from './layoutPropParsers/types';
|
|
2
2
|
import { CB_STYLE_PROP_KEYS } from './stylePropParsers/types';
|
|
3
|
-
import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_VIDEOPLAYER_PROPERTIES_TYPE } from './types';
|
|
3
|
+
import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_LIST_PROPERTIES_TYPE, CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, CB_SLIDEBANNER_PROPERTIES_TYPE, CB_VIDEOPLAYER_PROPERTIES_TYPE } from './types';
|
|
4
4
|
export type specTypes = CB_LAYOUT_PROP_KEYS | CB_STYLE_PROP_KEYS;
|
|
5
|
-
export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_VIDEOPLAYER_PROPERTIES_TYPE, device: Device): ParserResult;
|
|
5
|
+
export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_LIST_PROPERTIES_TYPE | CB_CONTENTSCAROUSEL_PROPERTIES_TYPE | CB_SLIDEBANNER_PROPERTIES_TYPE | CB_VIDEOPLAYER_PROPERTIES_TYPE, device: Device): ParserResult;
|
|
@@ -1,22 +1,30 @@
|
|
|
1
|
+
import type { CB_STYLE_PROP_CONTENTSCAROUSEL_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsCarousel/types';
|
|
2
|
+
import type { CB_STYLE_PROP_CONTENTSLIST_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsList/types';
|
|
3
|
+
import type { CB_STYLE_PROP_SLIDEBANNER_SPECS } from '../components/ComponentBlock/componentBlocks/SlideBanner/types';
|
|
1
4
|
import type { CB_TWITTER_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Twitter/types';
|
|
2
|
-
import type { CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER,
|
|
5
|
+
import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS, CB_CONTENT_PROP_CONTENTSLIST, CB_CONTENT_PROP_VIDEO } from '../components/ComponentBlock/componentBlocks/types';
|
|
3
6
|
import type { CB_CONTENT_PROP_YOUTUBE_TYPE, CB_STYLE_PROP_BGCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Youtube/types';
|
|
4
7
|
import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './contentPropParsers/parseContentVisibility';
|
|
5
8
|
import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './effectPropParsers/parseEffectPropEntAnim';
|
|
6
9
|
import type { CB_LAYOUT_PROP_ARRANGE_SPECS } from './layoutPropParsers/parseLayoutPropArrange';
|
|
7
10
|
import type { CB_LAYOUT_PROP_PADDING_SPECS } from './layoutPropParsers/parseLayoutPropPadding';
|
|
8
11
|
import type { NamedLayoutPropType } from './layoutPropParsers/types';
|
|
12
|
+
import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './stylePropParsers/parseStylePropBgOverlay';
|
|
9
13
|
import type { CB_STYLE_PROP_BORDER_SPECS } from './stylePropParsers/parseStylePropBorder';
|
|
10
14
|
import type { CB_STYLE_PROP_DIVIDER_SPECS } from './stylePropParsers/parseStylePropDivider';
|
|
11
15
|
import type { CB_STYLE_PROP_IMAGE_SPECS } from './stylePropParsers/parseStylePropImage';
|
|
12
16
|
import type { CB_STYLE_PROP_TEXT_OPACITY_SPECS } from './stylePropParsers/parseStylePropOpacity';
|
|
13
17
|
import type { CB_STYLE_PROP_SHADOW_SPECS } from './stylePropParsers/parseStylePropShadow';
|
|
14
18
|
import type { NamedStylePropType } from './stylePropParsers/types';
|
|
19
|
+
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '../../../../DynamicLayout/types';
|
|
15
20
|
import type { CSSProperties } from 'react';
|
|
16
21
|
export type STRING_PLAIN = string;
|
|
17
22
|
export type ENUM_STRING = string;
|
|
18
23
|
export type NUMBER_INTEGER = number;
|
|
19
24
|
export type STRING_8DIGIT_HEX = string;
|
|
25
|
+
export type CCB_VALUE_TYPE = 'VALUE' | 'DATA';
|
|
26
|
+
export type CB_VALUE_TYPE = 'VALUE' | 'DELEGATEDDATA' | 'QUERYDATA';
|
|
27
|
+
export type SECTION_VALUE_TYPE = 'VALUE' | 'QUERYDATA';
|
|
20
28
|
export type CB_GENERAL_PROPERTIES_TYPE = {
|
|
21
29
|
CB_PLACEMENT_PROP_PLACEMENT: CB_PLACEMENT_PROP_SPECS;
|
|
22
30
|
CB_CONTENT_PROP_HOVER: {
|
|
@@ -34,8 +42,6 @@ export type CB_PLACEMENT_PROP_SPECS = {
|
|
|
34
42
|
'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE': number;
|
|
35
43
|
CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX: number;
|
|
36
44
|
'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE': number;
|
|
37
|
-
'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LATEST_LOCKED_STARTY:MOBILE': number;
|
|
38
|
-
'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LOCKSTATUS:MOBILE': 'LOCKED' | 'FALLBACK_TO_SYNC' | undefined;
|
|
39
45
|
};
|
|
40
46
|
export type CB_TEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
41
47
|
CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
|
|
@@ -122,6 +128,49 @@ export type CB_YOUTUBE_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
|
122
128
|
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
123
129
|
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
124
130
|
};
|
|
131
|
+
export type CB_CONTENTSCAROUSEL_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
132
|
+
CB_CONTENT_PROP_CONTENTSCAROUSEL: CB_CONTENT_PROP_CONTENTSCAROUSEL;
|
|
133
|
+
CB_STYLE_PROP_CONTENTSCAROUSEL: CB_STYLE_PROP_CONTENTSCAROUSEL_SPECS;
|
|
134
|
+
CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
|
|
135
|
+
CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
|
|
136
|
+
CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
|
|
137
|
+
CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
138
|
+
CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
139
|
+
CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
140
|
+
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
141
|
+
CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
|
|
142
|
+
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
143
|
+
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
144
|
+
CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
|
|
145
|
+
};
|
|
146
|
+
export type CB_SLIDEBANNER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
147
|
+
CB_CONTENT_PROP_SLIDEBANNER: CB_CONTENT_PROP_SLIDEBANNER;
|
|
148
|
+
CB_STYLE_PROP_SLIDEBANNER: CB_STYLE_PROP_SLIDEBANNER_SPECS;
|
|
149
|
+
CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
|
|
150
|
+
CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
|
|
151
|
+
CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
|
|
152
|
+
CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
153
|
+
CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
154
|
+
CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
155
|
+
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
156
|
+
CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
|
|
157
|
+
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
158
|
+
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
159
|
+
};
|
|
160
|
+
export type CB_LIST_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
161
|
+
CB_CONTENT_PROP_CONTENTSLIST: CB_CONTENT_PROP_CONTENTSLIST;
|
|
162
|
+
CB_STYLE_PROP_CONTENTSLIST: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
|
163
|
+
CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
|
|
164
|
+
CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
|
|
165
|
+
CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
|
|
166
|
+
CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
167
|
+
CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
168
|
+
CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
169
|
+
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
170
|
+
CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
|
|
171
|
+
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
172
|
+
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
173
|
+
};
|
|
125
174
|
export type CB_VIDEOPLAYER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
126
175
|
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
127
176
|
CB_CONTENT_PROP_VIDEO: CB_CONTENT_PROP_VIDEO;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ISection } from '../types';
|
|
3
|
-
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
3
|
+
import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
|
|
4
4
|
export type LayoutsType = {
|
|
5
5
|
sm: Layout;
|
|
6
6
|
lg: Layout;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { TypeOfSectionAction } from './sectionActionTypes';
|
|
2
|
-
import type { ComponentBlock } from './sections/CustomSection/types';
|
|
2
|
+
import type { CB_ALL_CODES, ComponentBlock } from './sections/CustomSection/types';
|
|
3
3
|
import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './sections/CustomSection/util/contentPropParsers/parseContentVisibility';
|
|
4
4
|
import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim';
|
|
5
5
|
import type { CB_LAYOUT_PROP_PADDING_SPECS } from './sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding';
|
|
6
6
|
import type { CB_STYLE_PROP_BGCOLOR_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgColor';
|
|
7
7
|
import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay';
|
|
8
|
-
import type {
|
|
8
|
+
import type { CCB_VALUE_TYPE } from './sections/CustomSection/util/types';
|
|
9
|
+
import type { Block, ZOrder } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
9
10
|
import type { Ref } from 'react';
|
|
10
11
|
export { TypeOfSectionAction };
|
|
11
12
|
export type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM';
|
|
@@ -235,6 +236,20 @@ export type DynamicLayoutProps = {
|
|
|
235
236
|
shortcutKeyMode?: CustomSectionShortcutKeysType;
|
|
236
237
|
dynamicLayoutRef?: Ref<CustomSectionImperativeHandleRef>;
|
|
237
238
|
zoomScale?: number;
|
|
239
|
+
queryData?: QueryData;
|
|
240
|
+
placementRestriction?: PlaceRestrictionType;
|
|
241
|
+
};
|
|
242
|
+
export type PlaceRestrictionValue = {
|
|
243
|
+
columnWInit: number;
|
|
244
|
+
columnWMin: number;
|
|
245
|
+
mobileColumnWMax: number;
|
|
246
|
+
mobileColumnWMin: number;
|
|
247
|
+
rowHInit: number;
|
|
248
|
+
rowHMin: number;
|
|
249
|
+
};
|
|
250
|
+
export type PlaceRestrictionType = Record<CB_ALL_CODES, PlaceRestrictionValue>;
|
|
251
|
+
export type QueryData = {
|
|
252
|
+
[key: string]: Array<Record<string, unknown>>;
|
|
238
253
|
};
|
|
239
254
|
export type NavHandlerAction = {
|
|
240
255
|
openNewTab: boolean;
|
|
@@ -344,6 +359,7 @@ export type CB_STYLE_PROP_BGMEDIA_SPECS_BASE = {
|
|
|
344
359
|
CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT: string;
|
|
345
360
|
CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME: number;
|
|
346
361
|
CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR: string;
|
|
362
|
+
CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
347
363
|
};
|
|
348
364
|
export type CB_STYLE_PROP_BGMEDIA_SPECS = CB_STYLE_PROP_BGMEDIA_SPECS_BASE & {
|
|
349
365
|
'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:HOVER': number | null | undefined;
|
|
@@ -377,25 +393,16 @@ export type CB_STYLE_PROP_BGMEDIA_SPECS = CB_STYLE_PROP_BGMEDIA_SPECS_BASE & {
|
|
|
377
393
|
'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:HOVER'?: string | null;
|
|
378
394
|
'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:MOBILE'?: string | null;
|
|
379
395
|
'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:MOBILE:HOVER'?: string | null;
|
|
396
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:HOVER'?: CCB_VALUE_TYPE | null;
|
|
397
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:MOBILE'?: CCB_VALUE_TYPE | null;
|
|
398
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:MOBILE:HOVER'?: CCB_VALUE_TYPE | null;
|
|
380
399
|
};
|
|
381
400
|
export interface IComposition {
|
|
382
401
|
id: number;
|
|
383
402
|
administrativeTitle?: string;
|
|
384
|
-
|
|
385
|
-
order: number;
|
|
386
|
-
manifest: {
|
|
387
|
-
schema: TypeOfSectionManifestSchema;
|
|
388
|
-
availableProperties: Array<KeyOfSectionProperties>;
|
|
389
|
-
availableStyles: Array<KeyOfSectionStyles>;
|
|
390
|
-
availableTemplates: Array<TypeofSectionTemplate>;
|
|
391
|
-
} | Record<string, never>;
|
|
392
|
-
template: TypeofSectionTemplate;
|
|
393
|
-
properties: ISectionProperties;
|
|
394
|
-
styles: ISectionStyles;
|
|
395
|
-
dynamicLayoutSectionItems: Array<IItem> | null;
|
|
403
|
+
isDefault: boolean;
|
|
396
404
|
insertedAt: string;
|
|
397
405
|
updatedAt: string;
|
|
398
|
-
type: TypeOfSectionType;
|
|
399
406
|
program?: 'MEMBERSHIP_DISPLAY';
|
|
400
407
|
programData?: {
|
|
401
408
|
mdid: string;
|
|
@@ -409,6 +416,42 @@ export interface IComposition {
|
|
|
409
416
|
};
|
|
410
417
|
};
|
|
411
418
|
};
|
|
412
|
-
componentBlocks
|
|
413
|
-
jsonProperties
|
|
419
|
+
componentBlocks: ComponentBlock[];
|
|
420
|
+
jsonProperties: ICompositionJsonProperties;
|
|
421
|
+
compositionCode: string;
|
|
422
|
+
compositionTemplateCode: string;
|
|
423
|
+
dynamicLayoutComponentBlockId: number;
|
|
414
424
|
}
|
|
425
|
+
export type ICompositionJsonProperties = {
|
|
426
|
+
data: {
|
|
427
|
+
CB_CONTENT_PROP_COMPOSITIONSMARTARRANGE: {
|
|
428
|
+
CB_CONTENT_PROP_COMPOSITIONSMARTARRANGE_SPEC_MANUAL: null;
|
|
429
|
+
};
|
|
430
|
+
CB_CONTENT_PROP_HOVER: {
|
|
431
|
+
CB_CONTENT_PROP_HOVER_SPEC_MUSE: boolean;
|
|
432
|
+
};
|
|
433
|
+
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
434
|
+
CB_PLACEMENT_PROP_COMPOSITION: {
|
|
435
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS: number;
|
|
436
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE': number | null;
|
|
437
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT: number | null;
|
|
438
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT:MOBILE': number | null;
|
|
439
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH: number | null;
|
|
440
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH:MOBILE': number | null;
|
|
441
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT: number | null;
|
|
442
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT:MOBILE': number | null;
|
|
443
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH: number | null;
|
|
444
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH:MOBILE': number | null;
|
|
445
|
+
CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS: number;
|
|
446
|
+
'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE': number | null;
|
|
447
|
+
};
|
|
448
|
+
CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
449
|
+
CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
450
|
+
CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
451
|
+
};
|
|
452
|
+
zOrders: ZOrder;
|
|
453
|
+
pedigree: SectionPedigree;
|
|
454
|
+
currentVersion: string;
|
|
455
|
+
minVersion: string;
|
|
456
|
+
version: string;
|
|
457
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pds-dev-kit-web-test",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.447",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"lottie-react": "^2.3.1",
|
|
24
24
|
"nuka-carousel": "^4.8.4",
|
|
25
25
|
"publ-echo": "^0.0.119",
|
|
26
|
+
"publ-echo-test": "^0.0.231",
|
|
26
27
|
"react-hook-form": "^7.28.1",
|
|
27
28
|
"react-i18next": "^11.12.0",
|
|
28
29
|
"react-router-dom": "^5.2.0",
|
|
29
30
|
"react-scripts": "4.0.3",
|
|
30
31
|
"smoothscroll-polyfill": "^0.4.4",
|
|
31
32
|
"styled-components": "^5.2.1",
|
|
32
|
-
"swiper": "^
|
|
33
|
+
"swiper": "^9.4.1",
|
|
33
34
|
"tsc-init": "^2.1.0",
|
|
34
35
|
"web-vitals": "^1.1.2"
|
|
35
36
|
},
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Schedule, displayAllDayScheduleMode } from './types';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
interface AllDaySchedulesSectionProps {
|
|
4
|
-
calendarDates: Date[];
|
|
5
|
-
displayAllDayScheduleMode?: displayAllDayScheduleMode;
|
|
6
|
-
getSchedulesForDate: (date: Date) => Schedule[];
|
|
7
|
-
renderScheduleItem: (schedule: Schedule, extraProps?: any) => React.ReactNode;
|
|
8
|
-
handleDateDragOver: (date: Date, e: React.DragEvent) => void;
|
|
9
|
-
handleDateDragLeave: () => void;
|
|
10
|
-
handleDateDrop: (date: Date, e: React.DragEvent) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const AllDaySchedulesSection: React.FC<AllDaySchedulesSectionProps>;
|
|
13
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.AllDaySchedulesSection = void 0;
|
|
22
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
-
var react_i18next_1 = require("react-i18next");
|
|
24
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
|
-
var TextLabel_1 = require("../TextLabel");
|
|
26
|
-
var calendarUtils_1 = require("./calendarUtils");
|
|
27
|
-
var AllDaySchedulesSection = function (_a) {
|
|
28
|
-
var calendarDates = _a.calendarDates, _b = _a.displayAllDayScheduleMode, displayAllDayScheduleMode = _b === void 0 ? 'use' : _b, getSchedulesForDate = _a.getSchedulesForDate, renderScheduleItem = _a.renderScheduleItem, handleDateDragOver = _a.handleDateDragOver, handleDateDragLeave = _a.handleDateDragLeave, handleDateDrop = _a.handleDateDrop;
|
|
29
|
-
var t = (0, react_i18next_1.useTranslation)().t;
|
|
30
|
-
if (displayAllDayScheduleMode === 'none') {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(S_WeeklyAllDaySection, { children: [(0, jsx_runtime_1.jsx)(S_AllDayLabel, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption1Regular", colorTheme: "sysTextTertiary", text: t('calendar_all_day') }) }), (0, jsx_runtime_1.jsx)(S_WeeklyAllDayGrid, { children: calendarDates.map(function (date, index) {
|
|
34
|
-
var allDaySchedules = getSchedulesForDate(date).filter(function (e) {
|
|
35
|
-
return (0, calendarUtils_1.calculateIsAllDay)(new Date(e.startDate), new Date(e.endDate));
|
|
36
|
-
});
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(S_WeeklyAllDayCell, __assign({ onDragOver: function (e) { return handleDateDragOver(date, e); }, onDragLeave: handleDateDragLeave, onDrop: function (e) { return handleDateDrop(date, e); } }, { children: allDaySchedules.map(function (schedule) { return renderScheduleItem(schedule); }) }), index));
|
|
38
|
-
}) })] }));
|
|
39
|
-
};
|
|
40
|
-
exports.AllDaySchedulesSection = AllDaySchedulesSection;
|
|
41
|
-
var S_WeeklyAllDaySection = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-bottom: 1px solid ", ";\n display: grid;\n grid-template-columns: 80px repeat(7, 1fr);\n min-height: 60px;\n"], ["\n border-bottom: 1px solid ", ";\n display: grid;\n grid-template-columns: 80px repeat(7, 1fr);\n min-height: 60px;\n"])), function (_a) {
|
|
42
|
-
var theme = _a.theme;
|
|
43
|
-
return theme.ui_cpnt_divider;
|
|
44
|
-
});
|
|
45
|
-
var S_AllDayLabel = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n padding: 8px;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n padding: 8px;\n"])));
|
|
46
|
-
var S_WeeklyAllDayGrid = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"])));
|
|
47
|
-
var S_WeeklyAllDayCell = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n gap: 2px;\n padding: 4px;\n"], ["\n align-items: center;\n display: flex;\n gap: 2px;\n padding: 4px;\n"])));
|
|
48
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|