pds-dev-kit-web-test 2.5.366 → 2.5.367
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/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +3 -1
- package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
- package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
- package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Radio.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
- package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextLong.js +30 -0
- package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextShort.js +30 -0
- package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +10 -0
- package/dist/src/common/assets/icons/line/index.js +21 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/services/i18n/resources/en.json +9 -1
- package/dist/src/common/services/i18n/resources/es.json +9 -1
- package/dist/src/common/services/i18n/resources/fil.json +9 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
- package/dist/src/common/services/i18n/resources/ja.json +9 -1
- package/dist/src/common/services/i18n/resources/ko.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
- package/dist/src/common/styles/colorSet/UIColor.json +13 -1
- package/dist/src/common/styles/colorSet/index.d.ts +152 -126
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +12 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/common/utils/dateHelper.d.ts +13 -0
- package/dist/src/common/utils/dateHelper.js +87 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +3 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +17 -4
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.js +41 -15
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +3 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +17 -4
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
- package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
- package/dist/src/mobile/components/DatePicker/Day.js +94 -0
- package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
- package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner → mobile/components/DatePicker}/index.js +3 -3
- package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/utils.js +68 -0
- package/dist/src/mobile/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.js +41 -15
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +3 -2
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +2 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +5 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +26 -25
- package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +778 -9
- package/dist/src/sub/DynamicLayout/mocks.js +4239 -4293
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -19
- 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 +2 -154
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -33
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -28
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +11 -48
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +11 -56
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
- 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/parseJsonProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +15 -48
- package/package.json +3 -3
- package/release-note.md +3 -3
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -20
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1132
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -53
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
- package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
- package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
- package/dist/src/sub/DynamicLayout/mock_composition.js +0 -801
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1099
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -2
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -298
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -2
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -320
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -17
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -31
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -169
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -185
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -21
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -94
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -50
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -919
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -90
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -100
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -188
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -357
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -150
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -31
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -169
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -185
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -21
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -94
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -48
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -855
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -80
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
- /package/dist/src/sub/DynamicLayout/{mock_video.d.ts → mock_video_cb.d.ts} +0 -0
- /package/dist/src/sub/DynamicLayout/{mock_video.js → mock_video_cb.js} +0 -0
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CSSProperties } from 'styled-components';
|
3
|
-
import type { IComposition } from '../types';
|
4
|
-
type SectionPropTypes = IComposition & {
|
5
|
-
children?: React.ReactNode;
|
6
|
-
} & {
|
7
|
-
overrideStyles?: CSSProperties;
|
8
|
-
isMobile?: boolean;
|
9
|
-
};
|
10
|
-
declare function CompositionBackground({ children, overrideStyles, isMobile, ...props }: SectionPropTypes): JSX.Element;
|
11
|
-
export default CompositionBackground;
|
@@ -1,45 +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 __rest = (this && this.__rest) || function (s, e) {
|
18
|
-
var t = {};
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
20
|
-
t[p] = s[p];
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
24
|
-
t[p[i]] = s[p[i]];
|
25
|
-
}
|
26
|
-
return t;
|
27
|
-
};
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
30
|
-
};
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
32
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
33
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
34
|
-
var Section_1 = require("../components/Section");
|
35
|
-
var CustomSectionBackground_1 = __importDefault(require("../components/Section/components/CustomSectionBackground"));
|
36
|
-
function CompositionBackground(_a) {
|
37
|
-
var children = _a.children, overrideStyles = _a.overrideStyles, _b = _a.isMobile, isMobile = _b === void 0 ? false : _b, props = __rest(_a, ["children", "overrideStyles", "isMobile"]);
|
38
|
-
return ((0, jsx_runtime_1.jsx)(Section_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ style: overrideStyles, isIframeSection: false }, { children: [(0, jsx_runtime_1.jsx)(CustomSectionBackground_1.default, { isMobile: isMobile }), children] })) })));
|
39
|
-
}
|
40
|
-
var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: center;\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: center;\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
|
41
|
-
var isIframeSection = _a.isIframeSection;
|
42
|
-
return (isIframeSection ? '100%' : 'auto');
|
43
|
-
});
|
44
|
-
exports.default = CompositionBackground;
|
45
|
-
var templateObject_1;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { CB_VALUE_TYPE, CCB_VALUE_TYPE } from '../sections/CustomSection/util/types';
|
3
|
-
import type { IComposition, QueryData } from '../../DynamicLayout/types';
|
4
|
-
export declare function createCompositions({ valueType, queryPath, queryData, compositions }: {
|
5
|
-
valueType: CCB_VALUE_TYPE | CB_VALUE_TYPE;
|
6
|
-
queryPath: string;
|
7
|
-
queryData: QueryData | undefined;
|
8
|
-
compositions: IComposition[];
|
9
|
-
}): JSX.Element[];
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.createCompositions = void 0;
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
19
|
-
require("react");
|
20
|
-
var compositionQueryContext_1 = require("../compositionQueryContext");
|
21
|
-
var Composition_1 = __importDefault(require("./Composition"));
|
22
|
-
function createCompositions(_a) {
|
23
|
-
var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
|
24
|
-
var isQueryDataConnected = valueType === 'DATA' || valueType === 'DELEGATEDDATA';
|
25
|
-
// 직접 입력 유형인 경우
|
26
|
-
if (!isQueryDataConnected) {
|
27
|
-
return compositions
|
28
|
-
.filter(function (composition) { return !composition.isDefault; })
|
29
|
-
.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
|
30
|
-
}
|
31
|
-
if (!compositions.length) {
|
32
|
-
return [(0, jsx_runtime_1.jsx)("div", { children: "EMPTY TEXT" }, "not-found")];
|
33
|
-
}
|
34
|
-
// 데이터 연결 유형이나, 쿼리 데이터나 키가 없는 경우
|
35
|
-
if (!queryPath || !queryData) {
|
36
|
-
return compositions
|
37
|
-
.filter(function (composition) { return composition.isDefault; })
|
38
|
-
.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
|
39
|
-
}
|
40
|
-
var parsedQueryPath = removeFirstSegment(queryPath);
|
41
|
-
var queryDataValue = queryData[parsedQueryPath];
|
42
|
-
var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
|
43
|
-
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 해당 키가 없는 경우
|
44
|
-
if (!queryDataValue) {
|
45
|
-
return [(0, jsx_runtime_1.jsxs)("div", { children: ["NOT FOUND QUERYDATA OR DEFAULT: ", parsedQueryPath] }, "not-found")];
|
46
|
-
}
|
47
|
-
return queryDataValue.map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition)) }), index)); });
|
48
|
-
}
|
49
|
-
exports.createCompositions = createCompositions;
|
50
|
-
function removeFirstSegment(path) {
|
51
|
-
var segments = path.split('/');
|
52
|
-
return segments.slice(1).join('/');
|
53
|
-
}
|
@@ -1,139 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { Layout } from 'publ-echo/dist/lib';
|
3
|
-
import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
|
4
|
-
import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
5
|
-
import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
6
|
-
export type TypeOfCompositionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
7
|
-
export type PayloadCBType = {
|
8
|
-
type: ComponentBlock['type'];
|
9
|
-
blockId: string;
|
10
|
-
cbId: number;
|
11
|
-
workDir: string;
|
12
|
-
};
|
13
|
-
export type PayloadGBType = {
|
14
|
-
type: GroupBlock['type'];
|
15
|
-
blockId: string;
|
16
|
-
childrenBlockIds: string[];
|
17
|
-
childrenCBIds: number[];
|
18
|
-
workDir: string;
|
19
|
-
};
|
20
|
-
export type PayloadBulkType = {
|
21
|
-
type: 'BULK';
|
22
|
-
blockId: 'BULK';
|
23
|
-
childrenBlockIds: string[];
|
24
|
-
childrenCBIds: number[];
|
25
|
-
workDir: string;
|
26
|
-
groupDisabled: boolean;
|
27
|
-
};
|
28
|
-
export type BlockPayloadType = PayloadCBType | PayloadGBType | PayloadBulkType;
|
29
|
-
type ActionHandlerPayload = {
|
30
|
-
'@COMPOSITION/CB_DRAG_START': {
|
31
|
-
layout: Layout;
|
32
|
-
prev?: LayoutItem;
|
33
|
-
item?: LayoutItem;
|
34
|
-
placeholder?: LayoutItem;
|
35
|
-
e?: ResizeEventType;
|
36
|
-
node?: HTMLElement;
|
37
|
-
};
|
38
|
-
'@COMPOSITION/CB_DRAG_STOP': {
|
39
|
-
layout: Layout;
|
40
|
-
prev?: LayoutItem;
|
41
|
-
item?: LayoutItem;
|
42
|
-
placeholder?: LayoutItem;
|
43
|
-
e?: ResizeEventType;
|
44
|
-
node?: HTMLElement;
|
45
|
-
blockId: string;
|
46
|
-
workDir: string;
|
47
|
-
};
|
48
|
-
'@COMPOSITION/CB_RESIZE_STOP': {
|
49
|
-
layout: Layout;
|
50
|
-
prev?: LayoutItem;
|
51
|
-
item?: LayoutItem;
|
52
|
-
placeholder?: LayoutItem;
|
53
|
-
e?: ResizeEventType;
|
54
|
-
node?: HTMLElement;
|
55
|
-
blockId: string;
|
56
|
-
workDir: string;
|
57
|
-
};
|
58
|
-
'@COMPOSITION/CB_AUTO_FIT_CONTENT': {
|
59
|
-
layout: Layout;
|
60
|
-
prev?: LayoutItem;
|
61
|
-
item?: LayoutItem;
|
62
|
-
placeholder?: LayoutItem;
|
63
|
-
e?: ResizeEventType;
|
64
|
-
node?: HTMLElement;
|
65
|
-
details: {
|
66
|
-
hadPaddingChanged: boolean;
|
67
|
-
};
|
68
|
-
blockId: string;
|
69
|
-
workDir: string;
|
70
|
-
};
|
71
|
-
'@COMPOSITION/PLACEMENT_CHANGED': {
|
72
|
-
layout: Layout;
|
73
|
-
layouts: Layouts;
|
74
|
-
};
|
75
|
-
'@COMPOSITION/BLOCK_CLICKED': {
|
76
|
-
block: BlockPayloadType;
|
77
|
-
};
|
78
|
-
'@COMPOSITION/CB_RIGHT_CLICKED': {
|
79
|
-
e: React.MouseEvent;
|
80
|
-
block: BlockPayloadType;
|
81
|
-
};
|
82
|
-
'@COMPOSITION/COMPOSITION_CLICKED': {
|
83
|
-
compositionId: number;
|
84
|
-
};
|
85
|
-
'@COMPOSITION/COMPOSITION_RIGHT_CLICKED': {
|
86
|
-
compositionId: number;
|
87
|
-
e: React.MouseEvent;
|
88
|
-
};
|
89
|
-
'@COMPOSITION/GROUP_RIGHT_CLICKED': {
|
90
|
-
e: React.MouseEvent;
|
91
|
-
block: PayloadGBType;
|
92
|
-
isEditingGroup: boolean;
|
93
|
-
};
|
94
|
-
'@COMPOSITION/BULK_RIGHT_CLICKED': {
|
95
|
-
e: React.MouseEvent;
|
96
|
-
block: PayloadBulkType;
|
97
|
-
};
|
98
|
-
'@COMPOSITION/BULK_CREATED': {
|
99
|
-
message: string;
|
100
|
-
data: LayoutItem;
|
101
|
-
};
|
102
|
-
'@COMPOSITION/BULK_DISMISSED': {
|
103
|
-
message: string;
|
104
|
-
editingGroupBlock: string;
|
105
|
-
};
|
106
|
-
'@COMPOSITION/COLLISION_NOT_FOUND': {
|
107
|
-
message: string;
|
108
|
-
};
|
109
|
-
'@COMPOSITION/ESCAPE_ONE_FROM_BULK': {
|
110
|
-
id: string;
|
111
|
-
};
|
112
|
-
'@COMPOSITION/BULK_DRAG_STOP': {
|
113
|
-
updatedBlocks: UpdatedBlock[];
|
114
|
-
};
|
115
|
-
'@COMPOSITION/GROUP_DRAG_STOP': {
|
116
|
-
updatedBlocks: UpdatedBlock[];
|
117
|
-
workDir: string;
|
118
|
-
};
|
119
|
-
'@COMPOSITION/WORKDIR_CHANGED': {
|
120
|
-
workDir: string;
|
121
|
-
};
|
122
|
-
};
|
123
|
-
export type UpdatedBlock = {
|
124
|
-
blockId: string;
|
125
|
-
cbId: number;
|
126
|
-
x: number;
|
127
|
-
y: number;
|
128
|
-
};
|
129
|
-
type ActionMap<M extends {
|
130
|
-
[index: string]: any;
|
131
|
-
}> = {
|
132
|
-
[Key in keyof M]: M[Key] extends undefined ? {
|
133
|
-
type: Key;
|
134
|
-
} : {
|
135
|
-
type: Key;
|
136
|
-
payload: M[Key];
|
137
|
-
};
|
138
|
-
};
|
139
|
-
export {};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
interface CCBQueryPathContextType {
|
3
|
-
queryData: Record<string, any>;
|
4
|
-
}
|
5
|
-
export declare const CCBQueryPathContext: import("react").Context<CCBQueryPathContextType | undefined>;
|
6
|
-
export declare const useCCBQueryPath: () => CCBQueryPathContextType | null;
|
7
|
-
export declare const CCBQueryPathProvider: import("react").Provider<CCBQueryPathContextType | undefined>;
|
8
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CCBQueryPathProvider = exports.useCCBQueryPath = exports.CCBQueryPathContext = void 0;
|
4
|
-
var react_1 = require("react");
|
5
|
-
exports.CCBQueryPathContext = (0, react_1.createContext)(undefined);
|
6
|
-
var useCCBQueryPath = function () {
|
7
|
-
var context = (0, react_1.useContext)(exports.CCBQueryPathContext);
|
8
|
-
if (!context) {
|
9
|
-
return null;
|
10
|
-
}
|
11
|
-
return context;
|
12
|
-
};
|
13
|
-
exports.useCCBQueryPath = useCCBQueryPath;
|
14
|
-
exports.CCBQueryPathProvider = exports.CCBQueryPathContext.Provider;
|