pds-dev-kit-web 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +11 -5
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +11 -5
- package/dist/src/common/styles/colorSet/SemanticColor.json +4 -2
- package/dist/src/common/styles/colorSet/UIColor.json +7 -1
- package/dist/src/common/styles/colorSet/index.d.ts +652 -632
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +6 -0
- package/dist/src/common/types/components.d.ts +7 -1
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +13 -13
- package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +13 -13
- package/dist/src/desktop/components/AdminListHeader/AdminListHeader.d.ts +4 -4
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +4 -4
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +4 -4
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +4 -4
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +1 -3
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +4 -4
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +4 -4
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +13 -13
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +18 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +18 -1
- package/package.json +1 -1
- package/release-note.md +15 -3
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
+
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
8
9
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
10
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
10
|
-
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
+
UIColor: UIColor_json_1.default,
|
|
13
14
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
-
PaletteColor_light: PaletteColor_light_json_1.default
|
|
15
|
-
UIColor: UIColor_json_1.default
|
|
15
|
+
PaletteColor_light: PaletteColor_light_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -800,4 +800,10 @@ export interface UITheme {
|
|
|
800
800
|
ui_100: string;
|
|
801
801
|
ui_101: string;
|
|
802
802
|
ui_102: string;
|
|
803
|
+
ui_editor_layout_header: string;
|
|
804
|
+
ui_editor_layout_navigation_panel: string;
|
|
805
|
+
ui_editor_layout_canvas_area: string;
|
|
806
|
+
ui_editor_layout_control_panel: string;
|
|
807
|
+
ui_editor_layout_property_panel: string;
|
|
808
|
+
ui_editor_layout_navigation_panel_section_item_area_normal: string;
|
|
803
809
|
}
|
|
@@ -10,13 +10,19 @@ export declare type PDSTabItemOption = {
|
|
|
10
10
|
isActive: boolean;
|
|
11
11
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type ContextMenuItemValueOption = {
|
|
14
14
|
text?: PDSTextType;
|
|
15
15
|
value: string | number | null | boolean;
|
|
16
16
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
17
17
|
iconFillType?: 'fill' | 'line';
|
|
18
|
+
};
|
|
19
|
+
export declare type DropdownValueOption = ContextMenuItemValueOption & {
|
|
18
20
|
state?: 'normal' | 'disabled';
|
|
19
21
|
};
|
|
22
|
+
export declare type AdminListDropdownValueOption = {
|
|
23
|
+
text: DropdownValueOption['text'];
|
|
24
|
+
value: DropdownValueOption['value'];
|
|
25
|
+
};
|
|
20
26
|
export declare type BasicButtonGroupValueOption = {
|
|
21
27
|
iconName: FillIconNameKeys | LineIconNameKeys;
|
|
22
28
|
iconFillType?: 'fill' | 'line';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AdminListDropdownValueOption } from '../../../common';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
5
|
declare type Props = {
|
|
@@ -23,18 +23,18 @@ declare type Props = {
|
|
|
23
23
|
column10HeaderText?: TFunctionResult;
|
|
24
24
|
column10Width?: ColumnWidthType;
|
|
25
25
|
dropdownMode?: 'none' | 'dropdown_amount1' | 'dropdown_amount2' | 'dropdown_amount3';
|
|
26
|
-
dropdown1Value?:
|
|
27
|
-
dropdown2Value?:
|
|
28
|
-
dropdown3Value?:
|
|
29
|
-
dropdown1DefaultText?:
|
|
30
|
-
dropdown2DefaultText?:
|
|
31
|
-
dropdown3DefaultText?:
|
|
26
|
+
dropdown1Value?: AdminListDropdownValueOption;
|
|
27
|
+
dropdown2Value?: AdminListDropdownValueOption;
|
|
28
|
+
dropdown3Value?: AdminListDropdownValueOption;
|
|
29
|
+
dropdown1DefaultText?: AdminListDropdownValueOption;
|
|
30
|
+
dropdown2DefaultText?: AdminListDropdownValueOption;
|
|
31
|
+
dropdown3DefaultText?: AdminListDropdownValueOption;
|
|
32
32
|
dropdown1HintText?: TFunctionResult;
|
|
33
33
|
dropdown2HintText?: TFunctionResult;
|
|
34
34
|
dropdown3HintText?: TFunctionResult;
|
|
35
|
-
dropdown1ValueArray?:
|
|
36
|
-
dropdown2ValueArray?:
|
|
37
|
-
dropdown3ValueArray?:
|
|
35
|
+
dropdown1ValueArray?: AdminListDropdownValueOption[];
|
|
36
|
+
dropdown2ValueArray?: AdminListDropdownValueOption[];
|
|
37
|
+
dropdown3ValueArray?: AdminListDropdownValueOption[];
|
|
38
38
|
quickActionBtnMode?: 'none' | 'btn_amount1' | 'btn_amount2' | 'btn_amount3';
|
|
39
39
|
quickActionBtn1Text?: TFunctionResult;
|
|
40
40
|
quickActionBtn2Text?: TFunctionResult;
|
|
@@ -49,9 +49,9 @@ declare type Props = {
|
|
|
49
49
|
scrollVisibleType?: 'moving' | 'hidden' | 'visible';
|
|
50
50
|
headerRowCheckboxName?: string;
|
|
51
51
|
flexibleHideInfoMode?: 'use' | 'none';
|
|
52
|
-
onChangeDropdown1?: (value:
|
|
53
|
-
onChangeDropdown2?: (value:
|
|
54
|
-
onChangeDropdown3?: (value:
|
|
52
|
+
onChangeDropdown1?: (value: AdminListDropdownValueOption) => void;
|
|
53
|
+
onChangeDropdown2?: (value: AdminListDropdownValueOption) => void;
|
|
54
|
+
onChangeDropdown3?: (value: AdminListDropdownValueOption) => void;
|
|
55
55
|
onClickTBtn1?: () => void;
|
|
56
56
|
onClickTBtn2?: () => void;
|
|
57
57
|
onClickTBtn3?: () => void;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { AdminListDropdownValueOption } from '../../../common/types';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
itemCount?: number;
|
|
6
6
|
dropdownMode: 'none' | 'dropdown_amount1' | 'dropdown_amount2' | 'dropdown_amount3';
|
|
7
|
-
dropdown1Value?:
|
|
8
|
-
dropdown2Value?:
|
|
9
|
-
dropdown3Value?:
|
|
10
|
-
dropdown1DefaultText?:
|
|
11
|
-
dropdown2DefaultText?:
|
|
12
|
-
dropdown3DefaultText?:
|
|
7
|
+
dropdown1Value?: AdminListDropdownValueOption;
|
|
8
|
+
dropdown2Value?: AdminListDropdownValueOption;
|
|
9
|
+
dropdown3Value?: AdminListDropdownValueOption;
|
|
10
|
+
dropdown1DefaultText?: AdminListDropdownValueOption;
|
|
11
|
+
dropdown2DefaultText?: AdminListDropdownValueOption;
|
|
12
|
+
dropdown3DefaultText?: AdminListDropdownValueOption;
|
|
13
13
|
dropdown1HintText?: TFunctionResult;
|
|
14
14
|
dropdown2HintText?: TFunctionResult;
|
|
15
15
|
dropdown3HintText?: TFunctionResult;
|
|
16
|
-
dropdown1ValueArray?:
|
|
17
|
-
dropdown2ValueArray?:
|
|
18
|
-
dropdown3ValueArray?:
|
|
16
|
+
dropdown1ValueArray?: AdminListDropdownValueOption[];
|
|
17
|
+
dropdown2ValueArray?: AdminListDropdownValueOption[];
|
|
18
|
+
dropdown3ValueArray?: AdminListDropdownValueOption[];
|
|
19
19
|
tBtnMode?: 'none' | 'tbtn_amount1' | 'tbtn_amount2' | 'tbtn_amount3';
|
|
20
20
|
tBtn1Text?: TFunctionResult;
|
|
21
21
|
tBtn2Text?: TFunctionResult;
|
|
22
22
|
tBtn3Text?: TFunctionResult;
|
|
23
|
-
onChangeDropdown1?: (value:
|
|
24
|
-
onChangeDropdown2?: (value:
|
|
25
|
-
onChangeDropdown3?: (value:
|
|
23
|
+
onChangeDropdown1?: (value: AdminListDropdownValueOption) => void;
|
|
24
|
+
onChangeDropdown2?: (value: AdminListDropdownValueOption) => void;
|
|
25
|
+
onChangeDropdown3?: (value: AdminListDropdownValueOption) => void;
|
|
26
26
|
onClickTBtn1?: () => void;
|
|
27
27
|
onClickTBtn2?: () => void;
|
|
28
28
|
onClickTBtn3?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { AdminListDropdownValueOption } from '../../../common';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
headerBarSize?: 'regular' | 'small';
|
|
@@ -8,9 +8,9 @@ declare type Props = {
|
|
|
8
8
|
totalPage?: number;
|
|
9
9
|
contentText?: TFunctionResult;
|
|
10
10
|
filterBar?: React.ReactNode;
|
|
11
|
-
dropdownTextArray?:
|
|
12
|
-
dropdownDefaultValue?:
|
|
13
|
-
onChangeCount?: (option:
|
|
11
|
+
dropdownTextArray?: AdminListDropdownValueOption[];
|
|
12
|
+
dropdownDefaultValue?: AdminListDropdownValueOption;
|
|
13
|
+
onChangeCount?: (option: AdminListDropdownValueOption) => void;
|
|
14
14
|
onClickNextButton?: () => void;
|
|
15
15
|
onClickPrevButton?: () => void;
|
|
16
16
|
/** @deprecated v1.5 totalPage를 받아오기 때문에 deprecated 될 예정입니다. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { AdminListDropdownValueOption } from '../../../common/types';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
titleText?: TFunctionResult;
|
|
6
6
|
size?: 'regular' | 'small';
|
|
7
7
|
currentPage?: number;
|
|
8
8
|
totalPage?: number;
|
|
9
|
-
dropdownTextArray:
|
|
10
|
-
dropdownDefaultValue?:
|
|
11
|
-
onChangeDropdown?: (option:
|
|
9
|
+
dropdownTextArray: AdminListDropdownValueOption[];
|
|
10
|
+
dropdownDefaultValue?: AdminListDropdownValueOption;
|
|
11
|
+
onChangeDropdown?: (option: AdminListDropdownValueOption) => void;
|
|
12
12
|
onClickIBtn1?: () => void;
|
|
13
13
|
onClickIBtn2?: () => void;
|
|
14
14
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType
|
|
3
|
-
import type {
|
|
2
|
+
import type { PDSTextType } from '../../../common';
|
|
3
|
+
import type { ContextMenuItemValueOption } from '../../../common/types';
|
|
4
4
|
export declare type ContextMenuItemProps = {
|
|
5
|
-
option?:
|
|
5
|
+
option?: ContextMenuItemValueOption;
|
|
6
6
|
size?: 'large' | 'medium' | 'small';
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
state?: 'normal' | 'disabled';
|
|
9
9
|
displayType?: 'text_only' | 'icon_only' | 'icon_text';
|
|
10
|
-
onClick?: (value:
|
|
10
|
+
onClick?: (value: ContextMenuItemValueOption | string | number | boolean) => void;
|
|
11
11
|
/** @deprecated option 필드를 대신 사용하세요. */
|
|
12
12
|
text?: PDSTextType;
|
|
13
13
|
/** @deprecated option 필드를 대신 사용하세요. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType
|
|
3
|
-
import type {
|
|
2
|
+
import type { PDSTextType } from '../../../common';
|
|
3
|
+
import type { ContextMenuItemValueOption } from '../../../common/types';
|
|
4
4
|
export declare type ContextMenuItemProps = {
|
|
5
|
-
option?:
|
|
5
|
+
option?: ContextMenuItemValueOption;
|
|
6
6
|
size?: 'large' | 'medium' | 'small';
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
state?: 'normal' | 'disabled';
|
|
9
9
|
displayType?: 'text_only' | 'icon_only' | 'icon_text';
|
|
10
|
-
onClick?: (value:
|
|
10
|
+
onClick?: (value: ContextMenuItemValueOption | string | number | boolean) => void;
|
|
11
11
|
/** @deprecated option 필드를 대신 사용하세요. */
|
|
12
12
|
text?: PDSTextType;
|
|
13
13
|
/** @deprecated option 필드를 대신 사용하세요. */
|
|
@@ -67,9 +67,7 @@ function ContextMenuItem(_a) {
|
|
|
67
67
|
}
|
|
68
68
|
return 'ui_cpnt_dropdown_display_icon_normal';
|
|
69
69
|
};
|
|
70
|
-
return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, onClick: handleClick, selected: isSelected, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') &&
|
|
71
|
-
option &&
|
|
72
|
-
'iconName' in option && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { size: size === 'small' ? 20 : 24, iconName: option.iconName, fillType: option.iconFillType, colorKey: getIconColorKey() }, void 0) }, void 0)), (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.text) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.text || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0)] }, void 0))] }), void 0));
|
|
70
|
+
return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, onClick: handleClick, selected: isSelected, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.iconName) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { size: size === 'small' ? 20 : 24, iconName: option.iconName, fillType: option.iconFillType, colorKey: getIconColorKey() }, void 0) }, void 0)), (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.text) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.text || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0)] }, void 0))] }), void 0));
|
|
73
71
|
}
|
|
74
72
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
75
73
|
var theme = _a.theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType,
|
|
2
|
+
import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
headerBarSize?: 'regular' | 'small';
|
|
5
5
|
headerBarTitleText?: PDSTextType;
|
|
@@ -7,9 +7,9 @@ declare type Props = {
|
|
|
7
7
|
currentPage?: number;
|
|
8
8
|
totalPage?: number;
|
|
9
9
|
contentText?: PDSTextType;
|
|
10
|
-
dropdownTextArray?:
|
|
11
|
-
dropdownDefaultValue?:
|
|
12
|
-
onChangeCount?: (option:
|
|
10
|
+
dropdownTextArray?: AdminListDropdownValueOption[];
|
|
11
|
+
dropdownDefaultValue?: AdminListDropdownValueOption;
|
|
12
|
+
onChangeCount?: (option: AdminListDropdownValueOption) => void;
|
|
13
13
|
onClickNextBtn?: () => void;
|
|
14
14
|
onClickPrevBtn?: () => void;
|
|
15
15
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType,
|
|
2
|
+
import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
titleText?: PDSTextType;
|
|
5
5
|
tooltipText?: PDSTextType;
|
|
6
6
|
size?: 'regular' | 'small';
|
|
7
7
|
currentPage?: number;
|
|
8
8
|
totalPage?: number;
|
|
9
|
-
dropdownTextArray:
|
|
10
|
-
dropdownDefaultValue?:
|
|
11
|
-
onChangeDropdown?: (option:
|
|
9
|
+
dropdownTextArray: AdminListDropdownValueOption[];
|
|
10
|
+
dropdownDefaultValue?: AdminListDropdownValueOption;
|
|
11
|
+
onChangeDropdown?: (option: AdminListDropdownValueOption) => void;
|
|
12
12
|
onClickIBtn1?: () => void;
|
|
13
13
|
onClickIBtn2?: () => void;
|
|
14
14
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType,
|
|
2
|
+
import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
itemCount?: number;
|
|
5
5
|
dropdownMode?: 'none' | 'dropdown_amount1' | 'dropdown_amount2' | 'dropdown_amount3';
|
|
6
|
-
dropdown1Value?:
|
|
7
|
-
dropdown2Value?:
|
|
8
|
-
dropdown3Value?:
|
|
9
|
-
dropdown1DefaultText?:
|
|
10
|
-
dropdown2DefaultText?:
|
|
11
|
-
dropdown3DefaultText?:
|
|
6
|
+
dropdown1Value?: AdminListDropdownValueOption;
|
|
7
|
+
dropdown2Value?: AdminListDropdownValueOption;
|
|
8
|
+
dropdown3Value?: AdminListDropdownValueOption;
|
|
9
|
+
dropdown1DefaultText?: AdminListDropdownValueOption;
|
|
10
|
+
dropdown2DefaultText?: AdminListDropdownValueOption;
|
|
11
|
+
dropdown3DefaultText?: AdminListDropdownValueOption;
|
|
12
12
|
dropdown1HintText?: PDSTextType;
|
|
13
13
|
dropdown2HintText?: PDSTextType;
|
|
14
14
|
dropdown3HintText?: PDSTextType;
|
|
15
|
-
dropdown1ValueArray?:
|
|
16
|
-
dropdown2ValueArray?:
|
|
17
|
-
dropdown3ValueArray?:
|
|
15
|
+
dropdown1ValueArray?: AdminListDropdownValueOption[];
|
|
16
|
+
dropdown2ValueArray?: AdminListDropdownValueOption[];
|
|
17
|
+
dropdown3ValueArray?: AdminListDropdownValueOption[];
|
|
18
18
|
tBtnMode?: 'none' | 'tbtn_amount1' | 'tbtn_amount2' | 'tbtn_amount3';
|
|
19
19
|
tBtn1Text?: PDSTextType;
|
|
20
20
|
tBtn2Text?: PDSTextType;
|
|
21
21
|
tBtn3Text?: PDSTextType;
|
|
22
|
-
onChangeDropdown1?: (value:
|
|
23
|
-
onChangeDropdown2?: (value:
|
|
24
|
-
onChangeDropdown3?: (value:
|
|
22
|
+
onChangeDropdown1?: (value: AdminListDropdownValueOption) => void;
|
|
23
|
+
onChangeDropdown2?: (value: AdminListDropdownValueOption) => void;
|
|
24
|
+
onChangeDropdown3?: (value: AdminListDropdownValueOption) => void;
|
|
25
25
|
onClickTBtn1?: () => void;
|
|
26
26
|
onClickTBtn2?: () => void;
|
|
27
27
|
onClickTBtn3?: () => void;
|
|
@@ -7,6 +7,23 @@ var Section_1 = require("../../../../../components/Section");
|
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
9
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var checkInvalidUrl = function (url) {
|
|
11
|
+
try {
|
|
12
|
+
// eslint-disable-next-line no-new
|
|
13
|
+
new URL(url);
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var generateSrc = function (src) {
|
|
21
|
+
var isInvalidUrl = checkInvalidUrl(src);
|
|
22
|
+
if (isInvalidUrl) {
|
|
23
|
+
return 'about:blank';
|
|
24
|
+
}
|
|
25
|
+
return src + "?cache=" + new Date().getTime();
|
|
26
|
+
};
|
|
10
27
|
var onIframeLoad = function (event) {
|
|
11
28
|
if (sectionActionHandler) {
|
|
12
29
|
sectionActionHandler({
|
|
@@ -15,6 +32,6 @@ function TemplateA() {
|
|
|
15
32
|
});
|
|
16
33
|
}
|
|
17
34
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: generateSrc(section.properties.multiPurposeUrl), style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts allow-popups", onLoad: onIframeLoad }, void 0));
|
|
19
36
|
}
|
|
20
37
|
exports.default = TemplateA;
|
|
@@ -7,6 +7,23 @@ var Section_1 = require("../../../../../components/Section");
|
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
9
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var checkInvalidUrl = function (url) {
|
|
11
|
+
try {
|
|
12
|
+
// eslint-disable-next-line no-new
|
|
13
|
+
new URL(url);
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var generateSrc = function (src) {
|
|
21
|
+
var isInvalidUrl = checkInvalidUrl(src);
|
|
22
|
+
if (isInvalidUrl) {
|
|
23
|
+
return 'about:blank';
|
|
24
|
+
}
|
|
25
|
+
return src + "?cache=" + new Date().getTime();
|
|
26
|
+
};
|
|
10
27
|
var onIframeLoad = function (event) {
|
|
11
28
|
if (sectionActionHandler) {
|
|
12
29
|
sectionActionHandler({
|
|
@@ -15,6 +32,6 @@ function TemplateA() {
|
|
|
15
32
|
});
|
|
16
33
|
}
|
|
17
34
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: generateSrc(section.properties.multiPurposeUrl), style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts", onLoad: onIframeLoad }, void 0));
|
|
19
36
|
}
|
|
20
37
|
exports.default = TemplateA;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.1.
|
|
3
|
-
##
|
|
2
|
+
## [v2.1.6]
|
|
3
|
+
## daily|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
|
+
### Package
|
|
6
|
+
* type
|
|
7
|
+
* BasicButtonGroupValueOption export 처리
|
|
8
|
+
* ContextMenuItemValueOption export 처리
|
|
9
|
+
* DropdownValueOption export 처리
|
|
10
|
+
* AdminListDropdownValueOption export 처리'
|
|
11
|
+
### Components
|
|
12
|
+
* AdminList
|
|
13
|
+
* Dropdown을 사용하는 부분의 type 변경
|
|
14
|
+
* ContextMenuItem
|
|
15
|
+
* option과 onClick의 type 변경
|
|
5
16
|
### Color
|
|
6
|
-
* 컬러 키 값 23.07.
|
|
17
|
+
* 컬러 키 값 23.07.12 18시 11분 기준 싱크
|
|
18
|
+
|