pds-dev-kit-web 1.9.22 → 2.0.0-beta.0
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 +1 -0
- package/dist/index.js +8 -1
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +749 -748
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/common/styles/movement/animationStyle.js +8 -8
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +2 -0
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +60 -9
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +4 -0
- package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +47 -0
- package/dist/src/sub/AdminList/AdminList/AdminList.js +221 -0
- package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +30 -0
- package/dist/src/sub/AdminList/AdminList/HeaderRow.js +83 -0
- package/dist/src/sub/AdminList/AdminList/index.d.ts +1 -0
- package/dist/src/sub/AdminList/AdminList/index.js +8 -0
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +18 -0
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +57 -0
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +17 -0
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +82 -0
- package/dist/src/sub/AdminList/AdminListHeader/index.d.ts +1 -0
- package/dist/src/sub/AdminList/AdminListHeader/index.js +8 -0
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +57 -0
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +275 -0
- package/dist/src/sub/AdminList/AdminListItem/index.d.ts +1 -0
- package/dist/src/sub/AdminList/AdminListItem/index.js +8 -0
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +31 -0
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +28 -0
- package/dist/src/sub/AdminList/BulkActionBar/index.d.ts +1 -0
- package/dist/src/sub/AdminList/BulkActionBar/index.js +8 -0
- package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +9 -0
- package/dist/src/sub/AdminList/ToolBar/ChipList.js +32 -0
- package/dist/src/sub/AdminList/ToolBar/SearchField.d.ts +15 -0
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +265 -0
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +26 -0
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +86 -0
- package/dist/src/sub/AdminList/ToolBar/index.d.ts +1 -0
- package/dist/src/sub/AdminList/ToolBar/index.js +8 -0
- package/dist/src/sub/AdminList/index.d.ts +5 -0
- package/dist/src/sub/AdminList/index.js +13 -0
- package/dist/src/sub/index.d.ts +1 -0
- package/dist/src/sub/index.js +11 -1
- package/package.json +1 -1
- package/release-note.md +11 -5
|
@@ -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 PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
8
9
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
10
|
-
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
+
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
13
14
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
-
UIColor: UIColor_json_1.default
|
|
15
|
-
PaletteColor_light: PaletteColor_light_json_1.default
|
|
15
|
+
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.modalOverlayOffAni = exports.modalOverlayOnAni = exports.modalOffAni = exports.modalOnAni = exports.dialogOverlayOffAni = exports.dialogOverlayOnAni = exports.dialogOffAni = exports.dialogOnAni = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var keyframes_1 = require("./keyframes");
|
|
10
|
-
exports.dialogOnAni = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
11
|
-
exports.dialogOffAni = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
12
|
-
exports.dialogOverlayOnAni = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
13
|
-
exports.dialogOverlayOffAni = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
14
|
-
exports.modalOnAni = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
15
|
-
exports.modalOffAni = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
16
|
-
exports.modalOverlayOnAni = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
17
|
-
exports.modalOverlayOffAni = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out
|
|
10
|
+
exports.dialogOnAni = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"], ["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"])), keyframes_1.scaleBounceInIncludeTranslate, keyframes_1.fadeIn);
|
|
11
|
+
exports.dialogOffAni = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"], ["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"])), keyframes_1.scaleBounceOutIncludeTranslate, keyframes_1.fadeOut);
|
|
12
|
+
exports.dialogOverlayOnAni = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out;\n"], ["\n animation: ", " 0.2s ease-in-out;\n"])), keyframes_1.fadeIn);
|
|
13
|
+
exports.dialogOverlayOffAni = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out;\n"], ["\n animation: ", " 0.2s ease-in-out;\n"])), keyframes_1.fadeOut);
|
|
14
|
+
exports.modalOnAni = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"], ["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"])), keyframes_1.scaleBounceInIncludeTranslate02, keyframes_1.fadeIn);
|
|
15
|
+
exports.modalOffAni = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"], ["\n animation: ", " 0.2s ease-in-out, ", " 0.2s ease-in-out;\n transform-origin: 0 0;\n"])), keyframes_1.scaleBounceOutIncludeTranslate02, keyframes_1.fadeOut);
|
|
16
|
+
exports.modalOverlayOnAni = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out;\n"], ["\n animation: ", " 0.2s ease-in-out;\n"])), keyframes_1.fadeIn);
|
|
17
|
+
exports.modalOverlayOffAni = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n animation: ", " 0.2s ease-in-out;\n"], ["\n animation: ", " 0.2s ease-in-out;\n"])), keyframes_1.fadeOut);
|
|
18
18
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -275,7 +275,7 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
275
275
|
}[state];
|
|
276
276
|
}, function (_a) {
|
|
277
277
|
var textPadding = _a.textPadding;
|
|
278
|
-
return textPadding && "padding: " + textPadding;
|
|
278
|
+
return textPadding && "padding: " + textPadding + ";";
|
|
279
279
|
});
|
|
280
280
|
var S_Input = styled_components_1.default.input(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n flex: 1;\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n ", "\n flex: 1;\n line-height: ", ";\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), basicStyle, function (_a) {
|
|
281
281
|
var theme = _a.theme;
|
package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { UiColors } from '../../../../../common';
|
|
|
3
3
|
export declare type ContentsContainerProps = {
|
|
4
4
|
content1?: JSX.Element;
|
|
5
5
|
content2?: JSX.Element;
|
|
6
|
-
layoutType: 'WFA_1' | 'WFA_2' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
|
|
6
|
+
layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
|
|
7
7
|
containerColor?: string;
|
|
8
8
|
areaColor?: string;
|
|
9
9
|
isLoadingContainer1?: boolean;
|
|
@@ -7,6 +7,8 @@ var ContentsContainer = function (_a) {
|
|
|
7
7
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: {
|
|
8
8
|
WFA_1: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_1", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
9
9
|
WFA_2: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_2", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
10
|
+
WFA_3: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_3", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
11
|
+
WFA_4: ((0, jsx_runtime_1.jsx)(variation_1.WFA, { layoutType: "WFA_4", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
10
12
|
WFB_1: ((0, jsx_runtime_1.jsx)(variation_1.WFB, { content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
11
13
|
WFC_1: ((0, jsx_runtime_1.jsx)(variation_1.WFC, { content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
12
14
|
WFD_1: ((0, jsx_runtime_1.jsx)(variation_1.WFD, { layoutType: "WFD_1", content1: content1, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey }, void 0)),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { UiColors } from '../../../../../../common';
|
|
3
3
|
export declare type WFAProps = {
|
|
4
|
-
layoutType: 'WFA_1' | 'WFA_2';
|
|
4
|
+
layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4';
|
|
5
5
|
content1?: JSX.Element;
|
|
6
6
|
containerColor?: string;
|
|
7
7
|
areaColor?: string;
|
|
@@ -35,36 +35,87 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var react_1 = require("react");
|
|
38
39
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
39
40
|
var components_1 = require("../../../../../../common/components");
|
|
40
41
|
var scrollbarStyle_1 = require("../../../../../../common/styles/scroll/scrollbarStyle");
|
|
41
42
|
var WFA = function (_a) {
|
|
42
43
|
var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, isLoadingContainer1 = _a.isLoadingContainer1, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
|
|
43
|
-
|
|
44
|
+
var _b = (0, react_1.useState)(false), hasScroll = _b[0], setHasScroll = _b[1];
|
|
45
|
+
var contentRef = (0, react_1.useRef)(null);
|
|
46
|
+
var handleResize = function () {
|
|
47
|
+
if (!contentRef || !contentRef.current)
|
|
48
|
+
return;
|
|
49
|
+
var _a = contentRef.current, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
|
|
50
|
+
var isTextClamped = scrollHeight > clientHeight;
|
|
51
|
+
setHasScroll(isTextClamped);
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
@when : 헤딩 레이아웃이 적용된 화면에 진입했을때
|
|
55
|
+
@expected : clientHeight와 scrollHeight를 감지하여 hasScroll의 상태를 업데이트 합니다.
|
|
56
|
+
@clear : -
|
|
57
|
+
*/
|
|
58
|
+
(0, react_1.useEffect)(function () {
|
|
59
|
+
handleResize();
|
|
60
|
+
}, []);
|
|
61
|
+
/**
|
|
62
|
+
@when : 브라우저 화면 사이즈가 변경될 때
|
|
63
|
+
@expected : clientHeight와 scrollHeight를 감지하여 hasScroll의 상태를 업데이트 합니다.
|
|
64
|
+
@clear : 이벤트 등록을 해제합니다.
|
|
65
|
+
*/
|
|
66
|
+
(0, react_1.useEffect)(function () {
|
|
67
|
+
window.addEventListener('resize', handleResize);
|
|
68
|
+
return function () {
|
|
69
|
+
window.removeEventListener('resize', handleResize);
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsContainer, __assign({ "x-pds-name": "ContentsContainer", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, containerColor: containerColor, overrideContainer1ColorKey: overrideContainer1ColorKey, hasScroll: hasScroll, ref: contentRef }, { children: isLoadingContainer1 ? ((0, jsx_runtime_1.jsx)(components_1.ThreeBarProgress, {}, void 0)) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_ContentsArea, __assign({ "x-pds-name": "ContentsArea", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA", layoutType: layoutType, areaColor: areaColor }, { children: (0, jsx_runtime_1.jsx)(S_Content1, __assign({ "x-pds-name": "Content1", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WFA" }, { children: content1 }), void 0) }), void 0) }, void 0)) }), void 0) }, void 0));
|
|
44
73
|
};
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
74
|
+
var WFA_1ContainerStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n"], ["\n align-items: flex-start;\n"])));
|
|
75
|
+
var WFA_2ContainerStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start;\n"], ["\n align-items: flex-start;\n"])));
|
|
76
|
+
var WFA_3ContainerStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: flex-start;\n ", "\n"], ["\n align-items: flex-start;\n ", "\n"])), function (_a) {
|
|
77
|
+
var hasScroll = _a.hasScroll;
|
|
78
|
+
return !hasScroll && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
|
|
79
|
+
});
|
|
80
|
+
var WFA_4ContainerStyle = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n ", "\n"], ["\n align-items: flex-start;\n ", "\n"])), function (_a) {
|
|
81
|
+
var hasScroll = _a.hasScroll;
|
|
82
|
+
return !hasScroll && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
|
|
83
|
+
});
|
|
84
|
+
var WFA_1AreaStyle = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 432px;\n"], ["\n width: 432px;\n"])));
|
|
85
|
+
var WFA_2AreaStyle = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: 608px;\n"], ["\n width: 608px;\n"])));
|
|
86
|
+
var WFA_3AreaStyle = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: 432px;\n"], ["\n width: 432px;\n"])));
|
|
87
|
+
var WFA_4AreaStyle = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: 608px;\n"], ["\n width: 608px;\n"])));
|
|
88
|
+
var overrideStyleContainer1 = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
48
89
|
var theme = _a.theme, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
|
|
49
90
|
return overrideContainer1ColorKey && theme[overrideContainer1ColorKey];
|
|
50
91
|
});
|
|
51
|
-
var S_ContentsContainer = styled_components_1.default.div(
|
|
92
|
+
var S_ContentsContainer = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n border-radius: 24px;\n display: flex;\n height: 60vh;\n justify-content: center;\n max-height: 640px;\n overflow-x: hidden;\n overflow-y: overlay;\n width: 864px;\n ", ";\n ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
|
52
93
|
var theme = _a.theme;
|
|
53
94
|
return theme.ui_wizard_contentscontainer01_background;
|
|
95
|
+
}, function (_a) {
|
|
96
|
+
var layoutType = _a.layoutType;
|
|
97
|
+
return ({
|
|
98
|
+
WFA_1: WFA_1ContainerStyle,
|
|
99
|
+
WFA_2: WFA_2ContainerStyle,
|
|
100
|
+
WFA_3: WFA_3ContainerStyle,
|
|
101
|
+
WFA_4: WFA_4ContainerStyle
|
|
102
|
+
}[layoutType]);
|
|
54
103
|
}, function (_a) {
|
|
55
104
|
var containerColor = _a.containerColor;
|
|
56
105
|
return "background-color: " + containerColor;
|
|
57
106
|
}, scrollbarStyle_1.scrollbarWithPaddingStyle, overrideStyleContainer1);
|
|
58
|
-
var S_ContentsArea = styled_components_1.default.div(
|
|
107
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 64px;\n padding-top: 64px;\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
59
108
|
var layoutType = _a.layoutType;
|
|
60
109
|
return ({
|
|
61
110
|
WFA_1: WFA_1AreaStyle,
|
|
62
|
-
WFA_2: WFA_2AreaStyle
|
|
111
|
+
WFA_2: WFA_2AreaStyle,
|
|
112
|
+
WFA_3: WFA_3AreaStyle,
|
|
113
|
+
WFA_4: WFA_4AreaStyle
|
|
63
114
|
}[layoutType]);
|
|
64
115
|
}, function (_a) {
|
|
65
116
|
var areaColor = _a.areaColor;
|
|
66
117
|
return "background-color: " + areaColor;
|
|
67
118
|
});
|
|
68
|
-
var S_Content1 = styled_components_1.default.div(
|
|
119
|
+
var S_Content1 = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
69
120
|
exports.default = WFA;
|
|
70
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
121
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { UiColors } from '../../../../common';
|
|
3
3
|
export declare type ContainersBoxProps = {
|
|
4
|
-
layoutType: 'WFA_1' | 'WFA_2' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
|
|
4
|
+
layoutType: 'WFA_1' | 'WFA_2' | 'WFA_3' | 'WFA_4' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFE_3' | 'WFE_4' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1' | 'WFL_1' | 'WFL_2' | 'WFL_3' | 'WFL_4';
|
|
5
5
|
pageMenuContent?: JSX.Element;
|
|
6
6
|
subMenuContent?: JSX.Element;
|
|
7
7
|
tabMenuContent?: JSX.Element;
|
|
@@ -57,6 +57,8 @@ var ContainersBox = function (_a) {
|
|
|
57
57
|
}[wizardContainerWidthType]) : ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuContent: pageMenuContent }, void 0)) }, void 0)), (0, jsx_runtime_1.jsxs)(S_CenterBox, __assign({ isWizardLayout: isWizardLayout }, { children: [{
|
|
58
58
|
WFA_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
59
59
|
WFA_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
60
|
+
WFA_3: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
61
|
+
WFA_4: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
60
62
|
WFB_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
61
63
|
WFC_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
62
64
|
WFD_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
@@ -88,6 +90,8 @@ var ContainersBox = function (_a) {
|
|
|
88
90
|
}[layoutType], (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [{
|
|
89
91
|
WFA_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
90
92
|
WFA_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
93
|
+
WFA_3: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
94
|
+
WFA_4: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
91
95
|
WFB_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
92
96
|
WFC_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
93
97
|
WFD_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0),
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BulkActionBar } from '../BulkActionBar';
|
|
3
|
+
import type { ToolBar } from '../ToolBar';
|
|
4
|
+
import type { TFunctionResult } from 'i18next';
|
|
5
|
+
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
|
+
declare type Props = {
|
|
7
|
+
selectionMode?: 'none' | 'single' | 'multi';
|
|
8
|
+
headerRowMode?: 'none' | 'use';
|
|
9
|
+
column2HeaderText: TFunctionResult;
|
|
10
|
+
column3HeaderText?: TFunctionResult;
|
|
11
|
+
column3Width?: ColumnWidthType;
|
|
12
|
+
column4HeaderText?: TFunctionResult;
|
|
13
|
+
column4Width?: ColumnWidthType;
|
|
14
|
+
column5HeaderText?: TFunctionResult;
|
|
15
|
+
column5Width?: ColumnWidthType;
|
|
16
|
+
column6HeaderText?: TFunctionResult;
|
|
17
|
+
column6Width?: ColumnWidthType;
|
|
18
|
+
column7HeaderText?: TFunctionResult;
|
|
19
|
+
column7Width?: ColumnWidthType;
|
|
20
|
+
column8HeaderText?: TFunctionResult;
|
|
21
|
+
column8Width?: ColumnWidthType;
|
|
22
|
+
column9HeaderText?: TFunctionResult;
|
|
23
|
+
column9Width?: ColumnWidthType;
|
|
24
|
+
column10HeaderText?: TFunctionResult;
|
|
25
|
+
column10Width?: ColumnWidthType;
|
|
26
|
+
quickActionBtnMode?: 'none' | 'btn_amount1' | 'btn_amount2' | 'btn_amount3';
|
|
27
|
+
quickActionBtn1Text?: TFunctionResult;
|
|
28
|
+
quickActionBtn2Text?: TFunctionResult;
|
|
29
|
+
quickActionBtn3Text?: TFunctionResult;
|
|
30
|
+
quickActionBtnType?: 'hover' | 'fix';
|
|
31
|
+
emptyText?: TFunctionResult;
|
|
32
|
+
scrollMode?: 'infinite' | 'none' | 'page';
|
|
33
|
+
scrollVisibleType?: 'moving' | 'hidden' | 'visible';
|
|
34
|
+
headerRowCheckboxName?: string;
|
|
35
|
+
flexibleHideInfoMode?: 'use' | 'none';
|
|
36
|
+
toolBar?: React.ReactElement<React.ComponentProps<typeof ToolBar>>;
|
|
37
|
+
bulkActionBar?: React.ReactElement<React.ComponentProps<typeof BulkActionBar>>;
|
|
38
|
+
onClickQuickActionBtn1?: (id: number) => void;
|
|
39
|
+
onClickQuickActionBtn2?: (id: number) => void;
|
|
40
|
+
onClickQuickActionBtn3?: (id: number) => void;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
onSelect?: (ids: number[]) => void;
|
|
43
|
+
selectedIds?: number[];
|
|
44
|
+
maintainIds?: number[];
|
|
45
|
+
};
|
|
46
|
+
declare function AdminList({ toolBar, bulkActionBar, selectionMode, headerRowMode, column2HeaderText, column3HeaderText, column3Width, column4HeaderText, column4Width, column5HeaderText, column5Width, column6HeaderText, column6Width, column7HeaderText, column7Width, column8HeaderText, column8Width, column9HeaderText, column9Width, column10HeaderText, column10Width, quickActionBtnMode, quickActionBtn1Text, quickActionBtn2Text, quickActionBtn3Text, quickActionBtnType, emptyText, scrollMode, scrollVisibleType, selectedIds, maintainIds, children, headerRowCheckboxName, flexibleHideInfoMode, onClickQuickActionBtn1, onClickQuickActionBtn2, onClickQuickActionBtn3, onSelect }: Props): JSX.Element;
|
|
47
|
+
export default AdminList;
|
|
@@ -0,0 +1,221 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
37
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
38
|
+
if (ar || !(i in from)) {
|
|
39
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
40
|
+
ar[i] = from[i];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
44
|
+
};
|
|
45
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
46
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
50
|
+
var react_1 = __importStar(require("react"));
|
|
51
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
52
|
+
var components_1 = require("@desktop/components");
|
|
53
|
+
var components_2 = require("@hybrid/components");
|
|
54
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
55
|
+
var HeaderRow_1 = __importDefault(require("./HeaderRow"));
|
|
56
|
+
function AdminList(_a) {
|
|
57
|
+
var toolBar = _a.toolBar, bulkActionBar = _a.bulkActionBar, _b = _a.selectionMode, selectionMode = _b === void 0 ? 'multi' : _b, _c = _a.headerRowMode, headerRowMode = _c === void 0 ? 'use' : _c, column2HeaderText = _a.column2HeaderText, column3HeaderText = _a.column3HeaderText, _d = _a.column3Width, column3Width = _d === void 0 ? 'small' : _d, column4HeaderText = _a.column4HeaderText, _e = _a.column4Width, column4Width = _e === void 0 ? 'small' : _e, column5HeaderText = _a.column5HeaderText, _f = _a.column5Width, column5Width = _f === void 0 ? 'small' : _f, column6HeaderText = _a.column6HeaderText, _g = _a.column6Width, column6Width = _g === void 0 ? 'small' : _g, column7HeaderText = _a.column7HeaderText, _h = _a.column7Width, column7Width = _h === void 0 ? 'small' : _h, column8HeaderText = _a.column8HeaderText, _j = _a.column8Width, column8Width = _j === void 0 ? 'small' : _j, column9HeaderText = _a.column9HeaderText, _k = _a.column9Width, column9Width = _k === void 0 ? 'small' : _k, column10HeaderText = _a.column10HeaderText, _l = _a.column10Width, column10Width = _l === void 0 ? 'small' : _l, _m = _a.quickActionBtnMode, quickActionBtnMode = _m === void 0 ? 'btn_amount2' : _m, quickActionBtn1Text = _a.quickActionBtn1Text, quickActionBtn2Text = _a.quickActionBtn2Text, quickActionBtn3Text = _a.quickActionBtn3Text, _o = _a.quickActionBtnType, quickActionBtnType = _o === void 0 ? 'fix' : _o, emptyText = _a.emptyText, _p = _a.scrollMode, scrollMode = _p === void 0 ? 'infinite' : _p, _q = _a.scrollVisibleType, scrollVisibleType = _q === void 0 ? 'moving' : _q, selectedIds = _a.selectedIds, maintainIds = _a.maintainIds, children = _a.children, _r = _a.headerRowCheckboxName, headerRowCheckboxName = _r === void 0 ? 'all' : _r, _s = _a.flexibleHideInfoMode, flexibleHideInfoMode = _s === void 0 ? 'use' : _s, onClickQuickActionBtn1 = _a.onClickQuickActionBtn1, onClickQuickActionBtn2 = _a.onClickQuickActionBtn2, onClickQuickActionBtn3 = _a.onClickQuickActionBtn3, onSelect = _a.onSelect;
|
|
58
|
+
var selectAllMethods = (0, react_hook_form_1.useForm)();
|
|
59
|
+
var checkboxMethods = (0, react_hook_form_1.useForm)();
|
|
60
|
+
var isAllCheckboxSelected = (0, react_hook_form_1.useWatch)({
|
|
61
|
+
name: headerRowCheckboxName,
|
|
62
|
+
control: selectAllMethods.control
|
|
63
|
+
});
|
|
64
|
+
var _t = (0, react_1.useState)(false), isBulkActionBarOpen = _t[0], setIsBulkActionBarOpen = _t[1];
|
|
65
|
+
/**
|
|
66
|
+
* @when AdminListItem이 선택되었을 때
|
|
67
|
+
* @expected 벌크액션바 활성화 여부와 체크박스 선택 여부를 결정합니다.
|
|
68
|
+
*/
|
|
69
|
+
(0, react_1.useEffect)(function () {
|
|
70
|
+
if (!selectedIds) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (!selectedIds.length) {
|
|
74
|
+
checkboxMethods.reset();
|
|
75
|
+
selectAllMethods.reset();
|
|
76
|
+
if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
|
|
77
|
+
setIsBulkActionBarOpen(true);
|
|
78
|
+
maintainIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
setIsBulkActionBarOpen(false);
|
|
82
|
+
}
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (selectionMode === 'single') {
|
|
86
|
+
checkboxMethods.reset();
|
|
87
|
+
checkboxMethods.setValue(selectedIds[0].toString(), true);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
setIsBulkActionBarOpen(true);
|
|
91
|
+
selectedIds.forEach(function (val) { return checkboxMethods.setValue(val.toString(), true); });
|
|
92
|
+
}, [selectedIds, maintainIds]);
|
|
93
|
+
var handleSelectAllCheckbox = function () {
|
|
94
|
+
var allIds = Object.keys(checkboxMethods.getValues()).map(function (id) { return Number(id); });
|
|
95
|
+
var basicIds = allIds.filter(function (id) { return !(maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(id)); });
|
|
96
|
+
if (!isAllCheckboxSelected) {
|
|
97
|
+
allIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
|
|
98
|
+
if (onSelect) {
|
|
99
|
+
onSelect(basicIds);
|
|
100
|
+
}
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
|
|
104
|
+
basicIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), false); });
|
|
105
|
+
if (onSelect) {
|
|
106
|
+
onSelect([]);
|
|
107
|
+
}
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
checkboxMethods.reset();
|
|
111
|
+
if (onSelect) {
|
|
112
|
+
onSelect([]);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var handleSelectItem = function (id) {
|
|
116
|
+
if (!selectedIds) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
switch (selectionMode) {
|
|
120
|
+
case 'single': {
|
|
121
|
+
if (onSelect) {
|
|
122
|
+
onSelect([id]);
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
case 'multi': {
|
|
127
|
+
if (!selectedIds.includes(id)) {
|
|
128
|
+
checkboxMethods.setValue(id.toString(), true);
|
|
129
|
+
if (onSelect) {
|
|
130
|
+
onSelect(__spreadArray(__spreadArray([], selectedIds, true), [id], false));
|
|
131
|
+
}
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
var filteredId = selectedIds.filter(function (prevId) { return prevId !== id; });
|
|
135
|
+
checkboxMethods.setValue(id.toString(), false);
|
|
136
|
+
if (onSelect) {
|
|
137
|
+
onSelect(filteredId);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var getActionButtonCount = function () {
|
|
143
|
+
switch (quickActionBtnMode) {
|
|
144
|
+
case 'btn_amount1':
|
|
145
|
+
return 1;
|
|
146
|
+
case 'btn_amount2':
|
|
147
|
+
return 2;
|
|
148
|
+
case 'btn_amount3':
|
|
149
|
+
return 3;
|
|
150
|
+
case 'none':
|
|
151
|
+
return 0;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var totalItemCount = (0, react_1.useMemo)(function () {
|
|
155
|
+
if (maintainIds && selectedIds) {
|
|
156
|
+
return maintainIds.length + selectedIds.length;
|
|
157
|
+
}
|
|
158
|
+
return (selectedIds === null || selectedIds === void 0 ? void 0 : selectedIds.length) || 0;
|
|
159
|
+
}, [selectedIds, maintainIds]);
|
|
160
|
+
var childrenWithWidthProps = react_1.default.Children.map(children, function (child) {
|
|
161
|
+
if (react_1.default.isValidElement(child)) {
|
|
162
|
+
return react_1.default.cloneElement(child, {
|
|
163
|
+
column3TextWidth: column3Width,
|
|
164
|
+
column4TextWidth: column4Width,
|
|
165
|
+
column5TextWidth: column5Width,
|
|
166
|
+
column6TextWidth: column6Width,
|
|
167
|
+
column7TextWidth: column7Width,
|
|
168
|
+
column8TextWidth: column8Width,
|
|
169
|
+
column9TextWidth: column9Width,
|
|
170
|
+
column10TextWidth: column10Width,
|
|
171
|
+
quickActionBtnType: quickActionBtnType,
|
|
172
|
+
quickActionBtnMode: quickActionBtnMode,
|
|
173
|
+
quickActionBtn1Text: quickActionBtn1Text,
|
|
174
|
+
quickActionBtn2Text: quickActionBtn2Text,
|
|
175
|
+
quickActionBtn3Text: quickActionBtn3Text,
|
|
176
|
+
onClickQuickActionBtn1: onClickQuickActionBtn1,
|
|
177
|
+
onClickQuickActionBtn2: onClickQuickActionBtn2,
|
|
178
|
+
onClickQuickActionBtn3: onClickQuickActionBtn3,
|
|
179
|
+
selectionMode: selectionMode,
|
|
180
|
+
flexibleHideInfoMode: flexibleHideInfoMode,
|
|
181
|
+
onClickItem: handleSelectItem,
|
|
182
|
+
selectedState: (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(child.props.id)) ? 'maintain' : 'basic'
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
return child;
|
|
186
|
+
});
|
|
187
|
+
return ((0, jsx_runtime_1.jsxs)(S_AdminList, __assign({ "x-pds-name": "AdminList", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [isBulkActionBarOpen
|
|
188
|
+
? react_1.default.isValidElement(bulkActionBar) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: react_1.default.cloneElement(bulkActionBar, {
|
|
189
|
+
itemCount: totalItemCount
|
|
190
|
+
}) }, void 0))
|
|
191
|
+
: toolBar && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [toolBar, (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_d" }, void 0)] }, void 0)), headerRowMode === 'use' && ((0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, __assign({}, selectAllMethods, { children: (0, jsx_runtime_1.jsx)("form", { children: (0, jsx_runtime_1.jsx)(HeaderRow_1.default, { headerRowCheckboxName: headerRowCheckboxName, selectionMode: selectionMode, column2HeaderText: column2HeaderText, column3HeaderText: column3HeaderText, column3HeaderWidth: column3Width, column4HeaderText: column4HeaderText, column4HeaderWidth: column4Width, column5HeaderText: column5HeaderText, column5HeaderWidth: column5Width, column6HeaderText: column6HeaderText, column6HeaderWidth: column6Width, column7HeaderText: column7HeaderText, column7HeaderWidth: column7Width, column8HeaderText: column8HeaderText, column8HeaderWidth: column8Width, column9HeaderText: column9HeaderText, column9HeaderWidth: column9Width, column10HeaderText: column10HeaderText, column10HeaderWidth: column10Width, quickActionBtnType: quickActionBtnType, quickActionButtonCount: getActionButtonCount(), flexibleHideInfoMode: flexibleHideInfoMode, onClickSelectAllCheckbox: handleSelectAllCheckbox }, void 0) }, void 0) }), void 0)), (0, jsx_runtime_1.jsx)(S_ScrollBox, __assign({ scrollMode: scrollMode, scrollVisibleType: scrollVisibleType }, { children: react_1.default.Children.count(children) ? ((0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, __assign({}, checkboxMethods, { children: (0, jsx_runtime_1.jsx)("form", { children: childrenWithWidthProps }, void 0) }), void 0)) : ((0, jsx_runtime_1.jsx)(S_EmptyTextWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: emptyText, colorTheme: "sysTextTertiary", textAlign: "center", styleTheme: "body2Regular" }, void 0) }, void 0)) }), void 0)] }), void 0));
|
|
192
|
+
}
|
|
193
|
+
var scrollInvisible = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &::-webkit-scrollbar {\n all: unset;\n display: block;\n }\n"], ["\n &::-webkit-scrollbar {\n all: unset;\n display: block;\n }\n"])));
|
|
194
|
+
var scrollVisible = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n &::-webkit-scrollbar {\n display: none;\n }\n"])));
|
|
195
|
+
var S_AdminList = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n"])));
|
|
196
|
+
var S_ScrollBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n overflow-y: ", ";\n\n ", "\n"], ["\n flex: 1;\n overflow-y: ", ";\n\n ", "\n"])), function (_a) {
|
|
197
|
+
var scrollMode = _a.scrollMode;
|
|
198
|
+
switch (scrollMode) {
|
|
199
|
+
case 'infinite':
|
|
200
|
+
case 'page': {
|
|
201
|
+
return 'auto';
|
|
202
|
+
}
|
|
203
|
+
case 'none': {
|
|
204
|
+
return 'none';
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}, function (_a) {
|
|
208
|
+
var scrollVisibleType = _a.scrollVisibleType;
|
|
209
|
+
switch (scrollVisibleType) {
|
|
210
|
+
case 'moving':
|
|
211
|
+
case 'visible': {
|
|
212
|
+
return scrollVisible;
|
|
213
|
+
}
|
|
214
|
+
case 'hidden': {
|
|
215
|
+
return scrollInvisible;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
var S_EmptyTextWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-bottom: 88px;\n padding-top: 88px;\n"], ["\n padding-bottom: 88px;\n padding-top: 88px;\n"])));
|
|
220
|
+
exports.default = AdminList;
|
|
221
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TFunctionResult } from 'i18next';
|
|
3
|
+
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
selectionMode: 'none' | 'single' | 'multi';
|
|
6
|
+
column2HeaderText?: TFunctionResult;
|
|
7
|
+
column3HeaderText?: TFunctionResult;
|
|
8
|
+
column3HeaderWidth?: ColumnWidthType;
|
|
9
|
+
column4HeaderText?: TFunctionResult;
|
|
10
|
+
column4HeaderWidth?: ColumnWidthType;
|
|
11
|
+
column5HeaderText?: TFunctionResult;
|
|
12
|
+
column5HeaderWidth?: ColumnWidthType;
|
|
13
|
+
column6HeaderText?: TFunctionResult;
|
|
14
|
+
column6HeaderWidth?: ColumnWidthType;
|
|
15
|
+
column7HeaderText?: TFunctionResult;
|
|
16
|
+
column7HeaderWidth?: ColumnWidthType;
|
|
17
|
+
column8HeaderText?: TFunctionResult;
|
|
18
|
+
column8HeaderWidth?: ColumnWidthType;
|
|
19
|
+
column9HeaderText?: TFunctionResult;
|
|
20
|
+
column9HeaderWidth?: ColumnWidthType;
|
|
21
|
+
column10HeaderText?: TFunctionResult;
|
|
22
|
+
column10HeaderWidth?: ColumnWidthType;
|
|
23
|
+
quickActionBtnType?: 'hover' | 'fix';
|
|
24
|
+
quickActionButtonCount?: number;
|
|
25
|
+
headerRowCheckboxName?: string;
|
|
26
|
+
flexibleHideInfoMode?: 'use' | 'none';
|
|
27
|
+
onClickSelectAllCheckbox?: () => void;
|
|
28
|
+
};
|
|
29
|
+
declare function HeaderRow({ selectionMode, column2HeaderText, column3HeaderText, column3HeaderWidth, column4HeaderText, column4HeaderWidth, column5HeaderText, column5HeaderWidth, column6HeaderText, column6HeaderWidth, column7HeaderText, column7HeaderWidth, column8HeaderText, column8HeaderWidth, column9HeaderText, column9HeaderWidth, column10HeaderText, column10HeaderWidth, quickActionBtnType, quickActionButtonCount, headerRowCheckboxName, flexibleHideInfoMode, onClickSelectAllCheckbox }: Props): JSX.Element;
|
|
30
|
+
export default HeaderRow;
|