pds-dev-kit-web 2.0.0-beta.0 → 2.0.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/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +4 -1
- package/dist/src/common/styles/colorSet/index.d.ts +9 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +3 -0
- package/dist/src/desktop/components/AdminList/AdminList.js +22 -8
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +10 -99
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +16 -0
- package/dist/src/desktop/components/BasicListItem/Contents.js +31 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +27 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +19 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +19 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +9 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.js +42 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +13 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/index.d.ts +2 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/index.js +8 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +19 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.js +40 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.d.ts +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +19 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/index.d.ts +2 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/index.js +8 -0
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +10 -99
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +16 -0
- package/dist/src/mobile/components/BasicListItem/Contents.js +31 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +27 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +19 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +19 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +9 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.js +42 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +13 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/index.d.ts +2 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/index.js +8 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +19 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.js +40 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.d.ts +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +19 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/index.d.ts +2 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/index.js +8 -0
- package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +14 -14
- package/dist/src/sub/AdminList/AdminList/AdminList.js +24 -10
- package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +10 -10
- package/dist/src/sub/AdminList/AdminList/HeaderRow.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +2 -2
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +4 -5
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +6 -6
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +2 -2
- package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ChipList.js +1 -1
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +4 -4
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +3 -3
- package/package.json +4 -2
- package/release-note.md +4 -10
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var Radio_1 = require("../../Radio");
|
|
6
|
+
var Radio = function (_a) {
|
|
7
|
+
var id = _a.id, value = _a.value, onChange = _a.onChange;
|
|
8
|
+
var handleRadioClick = function (e) {
|
|
9
|
+
onChange && onChange(e.target.value);
|
|
10
|
+
};
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: id, value: value, onChange: handleRadioClick, checked: id === value }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
12
|
+
};
|
|
13
|
+
exports.default = Radio;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LeftBox = void 0;
|
|
7
|
+
var LeftBox_1 = __importDefault(require("./LeftBox"));
|
|
8
|
+
exports.LeftBox = LeftBox_1.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSTextType } from '../../../../common/types';
|
|
3
|
+
export declare type DescriptionPropTypes = {
|
|
4
|
+
text: PDSTextType;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const Description: React.FC<DescriptionPropTypes>;
|
|
8
|
+
export default Description;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var TextLabel_1 = require("../../TextLabel");
|
|
6
|
+
var Description = function (_a) {
|
|
7
|
+
var text = _a.text, icon = _a.icon;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0), icon && icon] }, void 0));
|
|
9
|
+
};
|
|
10
|
+
exports.default = Description;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type IconButtonPropTypes = {
|
|
4
|
+
iconName: BasicListItemProps['iBtn2IconName'];
|
|
5
|
+
fill: boolean;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const IconButton: React.FC<IconButtonPropTypes>;
|
|
9
|
+
export default IconButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var IconButton_1 = require("../../IconButton");
|
|
13
|
+
var IconButton = function (_a) {
|
|
14
|
+
var iconName = _a.iconName, fill = _a.fill, onClick = _a.onClick;
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iconName, iconFillType: fill ? 'fill' : 'line', baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: onClick, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0));
|
|
16
|
+
};
|
|
17
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
18
|
+
exports.default = IconButton;
|
|
19
|
+
var templateObject_1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type MainButtonPropTypes = {
|
|
4
|
+
text: BasicListItemProps['mBtnText'];
|
|
5
|
+
fill: boolean;
|
|
6
|
+
onClick: BasicListItemProps['onClickMBtn'];
|
|
7
|
+
};
|
|
8
|
+
declare const MainButton: React.FC<MainButtonPropTypes>;
|
|
9
|
+
export default MainButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var MainButton_1 = require("../../MainButton");
|
|
6
|
+
var MainButton = function (_a) {
|
|
7
|
+
var text = _a.text, fill = _a.fill, onClick = _a.onClick;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { text: text, fillType: fill ? 'fill' : 'line', size: "small", onClick: onClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
9
|
+
};
|
|
10
|
+
exports.default = MainButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DescriptionPropTypes } from './Description';
|
|
3
|
+
import type { IconButtonPropTypes } from './IconButton';
|
|
4
|
+
import type { MainButtonPropTypes } from './MainButton';
|
|
5
|
+
import type { SwitchPropTypes } from './Switch';
|
|
6
|
+
declare type RightBoxPropTypes = React.FunctionComponent<{
|
|
7
|
+
hasFixedHeight: boolean;
|
|
8
|
+
}> & {
|
|
9
|
+
Description: React.FC<DescriptionPropTypes>;
|
|
10
|
+
IconButton: React.FC<IconButtonPropTypes>;
|
|
11
|
+
MainButton: React.FC<MainButtonPropTypes>;
|
|
12
|
+
Switch: React.FC<SwitchPropTypes>;
|
|
13
|
+
};
|
|
14
|
+
declare const RightBox: RightBoxPropTypes;
|
|
15
|
+
export default RightBox;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
23
|
+
var Description_1 = __importDefault(require("./Description"));
|
|
24
|
+
var IconButton_1 = __importDefault(require("./IconButton"));
|
|
25
|
+
var MainButton_1 = __importDefault(require("./MainButton"));
|
|
26
|
+
var Switch_1 = __importDefault(require("./Switch"));
|
|
27
|
+
var RightBox = function (_a) {
|
|
28
|
+
var children = _a.children, hasFixedHeight = _a.hasFixedHeight;
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(S_RightBox, __assign({ hasFixedHeight: hasFixedHeight }, { children: children }), void 0));
|
|
30
|
+
};
|
|
31
|
+
var S_RightBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"], ["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"])), function (_a) {
|
|
32
|
+
var hasFixedHeight = _a.hasFixedHeight;
|
|
33
|
+
return (hasFixedHeight ? '40px' : 'auto');
|
|
34
|
+
});
|
|
35
|
+
RightBox.Description = Description_1.default;
|
|
36
|
+
RightBox.IconButton = IconButton_1.default;
|
|
37
|
+
RightBox.MainButton = MainButton_1.default;
|
|
38
|
+
RightBox.Switch = Switch_1.default;
|
|
39
|
+
exports.default = RightBox;
|
|
40
|
+
var templateObject_1;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type SwitchPropTypes = {
|
|
4
|
+
name: string;
|
|
5
|
+
state: BasicListItemProps['switchState'];
|
|
6
|
+
status: BasicListItemProps['switchStatus'];
|
|
7
|
+
onClick: BasicListItemProps['onClickSwitch'];
|
|
8
|
+
};
|
|
9
|
+
declare const Switch: React.FC<SwitchPropTypes>;
|
|
10
|
+
export default Switch;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var components_1 = require("../../../../hybrid/components");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Switch = function (_a) {
|
|
14
|
+
var name = _a.name, state = _a.state, status = _a.status, onClick = _a.onClick;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(S_SwitchWrapper, { children: [(0, jsx_runtime_1.jsx)(components_1.Switch, { name: name, state: state, status: status, onClick: onClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
16
|
+
};
|
|
17
|
+
var S_SwitchWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"])));
|
|
18
|
+
exports.default = Switch;
|
|
19
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RightBox = void 0;
|
|
7
|
+
var RightBox_1 = __importDefault(require("./RightBox"));
|
|
8
|
+
exports.RightBox = RightBox_1.default;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BulkActionBar } from '../BulkActionBar';
|
|
3
3
|
import type { ToolBar } from '../ToolBar';
|
|
4
|
-
import type {
|
|
4
|
+
import type { PDSTextType } from '../../../common/types';
|
|
5
5
|
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
6
|
declare type Props = {
|
|
7
7
|
selectionMode?: 'none' | 'single' | 'multi';
|
|
8
8
|
headerRowMode?: 'none' | 'use';
|
|
9
|
-
column2HeaderText:
|
|
10
|
-
column3HeaderText?:
|
|
9
|
+
column2HeaderText: PDSTextType;
|
|
10
|
+
column3HeaderText?: PDSTextType;
|
|
11
11
|
column3Width?: ColumnWidthType;
|
|
12
|
-
column4HeaderText?:
|
|
12
|
+
column4HeaderText?: PDSTextType;
|
|
13
13
|
column4Width?: ColumnWidthType;
|
|
14
|
-
column5HeaderText?:
|
|
14
|
+
column5HeaderText?: PDSTextType;
|
|
15
15
|
column5Width?: ColumnWidthType;
|
|
16
|
-
column6HeaderText?:
|
|
16
|
+
column6HeaderText?: PDSTextType;
|
|
17
17
|
column6Width?: ColumnWidthType;
|
|
18
|
-
column7HeaderText?:
|
|
18
|
+
column7HeaderText?: PDSTextType;
|
|
19
19
|
column7Width?: ColumnWidthType;
|
|
20
|
-
column8HeaderText?:
|
|
20
|
+
column8HeaderText?: PDSTextType;
|
|
21
21
|
column8Width?: ColumnWidthType;
|
|
22
|
-
column9HeaderText?:
|
|
22
|
+
column9HeaderText?: PDSTextType;
|
|
23
23
|
column9Width?: ColumnWidthType;
|
|
24
|
-
column10HeaderText?:
|
|
24
|
+
column10HeaderText?: PDSTextType;
|
|
25
25
|
column10Width?: ColumnWidthType;
|
|
26
26
|
quickActionBtnMode?: 'none' | 'btn_amount1' | 'btn_amount2' | 'btn_amount3';
|
|
27
|
-
quickActionBtn1Text?:
|
|
28
|
-
quickActionBtn2Text?:
|
|
29
|
-
quickActionBtn3Text?:
|
|
27
|
+
quickActionBtn1Text?: PDSTextType;
|
|
28
|
+
quickActionBtn2Text?: PDSTextType;
|
|
29
|
+
quickActionBtn3Text?: PDSTextType;
|
|
30
30
|
quickActionBtnType?: 'hover' | 'fix';
|
|
31
|
-
emptyText?:
|
|
31
|
+
emptyText?: PDSTextType;
|
|
32
32
|
scrollMode?: 'infinite' | 'none' | 'page';
|
|
33
33
|
scrollVisibleType?: 'moving' | 'hidden' | 'visible';
|
|
34
34
|
headerRowCheckboxName?: string;
|
|
@@ -49,19 +49,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
49
49
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
50
50
|
var react_1 = __importStar(require("react"));
|
|
51
51
|
var react_hook_form_1 = require("react-hook-form");
|
|
52
|
-
var components_1 = require("
|
|
53
|
-
var components_2 = require("
|
|
52
|
+
var components_1 = require("../../../desktop/components");
|
|
53
|
+
var components_2 = require("../../../hybrid/components");
|
|
54
54
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
55
55
|
var HeaderRow_1 = __importDefault(require("./HeaderRow"));
|
|
56
56
|
function AdminList(_a) {
|
|
57
|
-
var
|
|
57
|
+
var _b;
|
|
58
|
+
var toolBar = _a.toolBar, bulkActionBar = _a.bulkActionBar, _c = _a.selectionMode, selectionMode = _c === void 0 ? 'multi' : _c, _d = _a.headerRowMode, headerRowMode = _d === void 0 ? 'use' : _d, column2HeaderText = _a.column2HeaderText, column3HeaderText = _a.column3HeaderText, _e = _a.column3Width, column3Width = _e === void 0 ? 'small' : _e, column4HeaderText = _a.column4HeaderText, _f = _a.column4Width, column4Width = _f === void 0 ? 'small' : _f, column5HeaderText = _a.column5HeaderText, _g = _a.column5Width, column5Width = _g === void 0 ? 'small' : _g, column6HeaderText = _a.column6HeaderText, _h = _a.column6Width, column6Width = _h === void 0 ? 'small' : _h, column7HeaderText = _a.column7HeaderText, _j = _a.column7Width, column7Width = _j === void 0 ? 'small' : _j, column8HeaderText = _a.column8HeaderText, _k = _a.column8Width, column8Width = _k === void 0 ? 'small' : _k, column9HeaderText = _a.column9HeaderText, _l = _a.column9Width, column9Width = _l === void 0 ? 'small' : _l, column10HeaderText = _a.column10HeaderText, _m = _a.column10Width, column10Width = _m === void 0 ? 'small' : _m, _o = _a.quickActionBtnMode, quickActionBtnMode = _o === void 0 ? 'btn_amount2' : _o, quickActionBtn1Text = _a.quickActionBtn1Text, quickActionBtn2Text = _a.quickActionBtn2Text, quickActionBtn3Text = _a.quickActionBtn3Text, _p = _a.quickActionBtnType, quickActionBtnType = _p === void 0 ? 'fix' : _p, emptyText = _a.emptyText, _q = _a.scrollMode, scrollMode = _q === void 0 ? 'infinite' : _q, _r = _a.scrollVisibleType, scrollVisibleType = _r === void 0 ? 'moving' : _r, selectedIds = _a.selectedIds, maintainIds = _a.maintainIds, children = _a.children, _s = _a.headerRowCheckboxName, headerRowCheckboxName = _s === void 0 ? 'all' : _s, _t = _a.flexibleHideInfoMode, flexibleHideInfoMode = _t === void 0 ? 'use' : _t, onClickQuickActionBtn1 = _a.onClickQuickActionBtn1, onClickQuickActionBtn2 = _a.onClickQuickActionBtn2, onClickQuickActionBtn3 = _a.onClickQuickActionBtn3, onSelect = _a.onSelect;
|
|
58
59
|
var selectAllMethods = (0, react_hook_form_1.useForm)();
|
|
59
60
|
var checkboxMethods = (0, react_hook_form_1.useForm)();
|
|
60
61
|
var isAllCheckboxSelected = (0, react_hook_form_1.useWatch)({
|
|
61
62
|
name: headerRowCheckboxName,
|
|
62
63
|
control: selectAllMethods.control
|
|
63
64
|
});
|
|
64
|
-
var
|
|
65
|
+
var _u = (0, react_1.useState)(false), isBulkActionBarOpen = _u[0], setIsBulkActionBarOpen = _u[1];
|
|
66
|
+
var childrenPropIds = [];
|
|
67
|
+
if (children && Array.isArray(children)) {
|
|
68
|
+
childrenPropIds = (_b = react_1.default.Children.map(children, function (child) {
|
|
69
|
+
if (react_1.default.isValidElement(child)) {
|
|
70
|
+
return child.props.id;
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
})) === null || _b === void 0 ? void 0 : _b.filter(Boolean);
|
|
74
|
+
}
|
|
65
75
|
/**
|
|
66
76
|
* @when AdminListItem이 선택되었을 때
|
|
67
77
|
* @expected 벌크액션바 활성화 여부와 체크박스 선택 여부를 결정합니다.
|
|
@@ -72,7 +82,7 @@ function AdminList(_a) {
|
|
|
72
82
|
}
|
|
73
83
|
if (!selectedIds.length) {
|
|
74
84
|
checkboxMethods.reset();
|
|
75
|
-
selectAllMethods.
|
|
85
|
+
selectAllMethods.setValue(headerRowCheckboxName, false);
|
|
76
86
|
if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
|
|
77
87
|
setIsBulkActionBarOpen(true);
|
|
78
88
|
maintainIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
|
|
@@ -89,19 +99,23 @@ function AdminList(_a) {
|
|
|
89
99
|
}
|
|
90
100
|
setIsBulkActionBarOpen(true);
|
|
91
101
|
selectedIds.forEach(function (val) { return checkboxMethods.setValue(val.toString(), true); });
|
|
102
|
+
// NOTE Children에 포함된 요소의 id와 선택되어 있는 id를 비교해 전체 체크박스의 상태를 변경합니다.
|
|
103
|
+
var hasAllIds = childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.every(function (id) {
|
|
104
|
+
return selectedIds.some(function (selectedId) { return selectedId === id; });
|
|
105
|
+
});
|
|
106
|
+
selectAllMethods.setValue(headerRowCheckboxName, hasAllIds ? true : false);
|
|
92
107
|
}, [selectedIds, maintainIds]);
|
|
93
108
|
var handleSelectAllCheckbox = function () {
|
|
94
|
-
var
|
|
95
|
-
var basicIds = allIds.filter(function (id) { return !(maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(id)); });
|
|
109
|
+
var basicIds = childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.filter(function (id) { return !(maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.includes(id)); });
|
|
96
110
|
if (!isAllCheckboxSelected) {
|
|
97
|
-
|
|
98
|
-
if (onSelect) {
|
|
111
|
+
childrenPropIds === null || childrenPropIds === void 0 ? void 0 : childrenPropIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
|
|
112
|
+
if (onSelect && basicIds) {
|
|
99
113
|
onSelect(basicIds);
|
|
100
114
|
}
|
|
101
115
|
return;
|
|
102
116
|
}
|
|
103
117
|
if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
|
|
104
|
-
basicIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), false); });
|
|
118
|
+
basicIds === null || basicIds === void 0 ? void 0 : basicIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), false); });
|
|
105
119
|
if (onSelect) {
|
|
106
120
|
onSelect([]);
|
|
107
121
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSTextType } from '../../../common/types';
|
|
3
3
|
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
selectionMode: 'none' | 'single' | 'multi';
|
|
6
|
-
column2HeaderText?:
|
|
7
|
-
column3HeaderText?:
|
|
6
|
+
column2HeaderText?: PDSTextType;
|
|
7
|
+
column3HeaderText?: PDSTextType;
|
|
8
8
|
column3HeaderWidth?: ColumnWidthType;
|
|
9
|
-
column4HeaderText?:
|
|
9
|
+
column4HeaderText?: PDSTextType;
|
|
10
10
|
column4HeaderWidth?: ColumnWidthType;
|
|
11
|
-
column5HeaderText?:
|
|
11
|
+
column5HeaderText?: PDSTextType;
|
|
12
12
|
column5HeaderWidth?: ColumnWidthType;
|
|
13
|
-
column6HeaderText?:
|
|
13
|
+
column6HeaderText?: PDSTextType;
|
|
14
14
|
column6HeaderWidth?: ColumnWidthType;
|
|
15
|
-
column7HeaderText?:
|
|
15
|
+
column7HeaderText?: PDSTextType;
|
|
16
16
|
column7HeaderWidth?: ColumnWidthType;
|
|
17
|
-
column8HeaderText?:
|
|
17
|
+
column8HeaderText?: PDSTextType;
|
|
18
18
|
column8HeaderWidth?: ColumnWidthType;
|
|
19
|
-
column9HeaderText?:
|
|
19
|
+
column9HeaderText?: PDSTextType;
|
|
20
20
|
column9HeaderWidth?: ColumnWidthType;
|
|
21
|
-
column10HeaderText?:
|
|
21
|
+
column10HeaderText?: PDSTextType;
|
|
22
22
|
column10HeaderWidth?: ColumnWidthType;
|
|
23
23
|
quickActionBtnType?: 'hover' | 'fix';
|
|
24
24
|
quickActionButtonCount?: number;
|
|
@@ -35,8 +35,8 @@ 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 components_1 = require("
|
|
39
|
-
var components_2 = require("
|
|
38
|
+
var components_1 = require("../../../desktop/components");
|
|
39
|
+
var components_2 = require("../../../hybrid/components");
|
|
40
40
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
41
41
|
function HeaderRow(_a) {
|
|
42
42
|
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'multi' : _b, column2HeaderText = _a.column2HeaderText, column3HeaderText = _a.column3HeaderText, _c = _a.column3HeaderWidth, column3HeaderWidth = _c === void 0 ? 'small' : _c, column4HeaderText = _a.column4HeaderText, _d = _a.column4HeaderWidth, column4HeaderWidth = _d === void 0 ? 'small' : _d, column5HeaderText = _a.column5HeaderText, _e = _a.column5HeaderWidth, column5HeaderWidth = _e === void 0 ? 'small' : _e, column6HeaderText = _a.column6HeaderText, _f = _a.column6HeaderWidth, column6HeaderWidth = _f === void 0 ? 'small' : _f, column7HeaderText = _a.column7HeaderText, _g = _a.column7HeaderWidth, column7HeaderWidth = _g === void 0 ? 'small' : _g, column8HeaderText = _a.column8HeaderText, _h = _a.column8HeaderWidth, column8HeaderWidth = _h === void 0 ? 'small' : _h, column9HeaderText = _a.column9HeaderText, _j = _a.column9HeaderWidth, column9HeaderWidth = _j === void 0 ? 'small' : _j, column10HeaderText = _a.column10HeaderText, _k = _a.column10HeaderWidth, column10HeaderWidth = _k === void 0 ? 'small' : _k, _l = _a.quickActionBtnType, quickActionBtnType = _l === void 0 ? 'fix' : _l, _m = _a.quickActionButtonCount, quickActionButtonCount = _m === void 0 ? 2 : _m, _o = _a.headerRowCheckboxName, headerRowCheckboxName = _o === void 0 ? 'all' : _o, _p = _a.flexibleHideInfoMode, flexibleHideInfoMode = _p === void 0 ? 'use' : _p, onClickSelectAllCheckbox = _a.onClickSelectAllCheckbox;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType, PDSValueOption } from '
|
|
2
|
+
import type { PDSTextType, PDSValueOption } from '../../../common/types';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
headerBarSize?: 'regular' | 'small';
|
|
@@ -19,8 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
-
var components_1 = require("
|
|
23
|
-
var components_2 = require("
|
|
22
|
+
var components_1 = require("../../../desktop/components");
|
|
23
|
+
var components_2 = require("../../../hybrid/components");
|
|
24
24
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
25
|
var HeaderBar_1 = __importDefault(require("./HeaderBar"));
|
|
26
26
|
var defaultPaginationTextArray = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSTextType, PDSValueOption } from '
|
|
2
|
+
import type { PDSTextType, PDSValueOption } from '../../../common/types';
|
|
3
3
|
import type { TFunctionResult } from 'i18next';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
titleText?: TFunctionResult;
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var react_i18next_1 = require("react-i18next");
|
|
39
|
-
var components_1 = require("
|
|
40
|
-
var components_2 = require("
|
|
39
|
+
var components_1 = require("../../../desktop/components");
|
|
40
|
+
var components_2 = require("../../../hybrid/components");
|
|
41
41
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
42
42
|
function HeaderBar(_a) {
|
|
43
43
|
var titleText = _a.titleText, tooltipText = _a.tooltipText, _b = _a.size, size = _b === void 0 ? 'regular' : _b, _c = _a.currentPage, currentPage = _c === void 0 ? 1 : _c, _d = _a.totalPage, totalPage = _d === void 0 ? 1 : _d, dropdownTextArray = _a.dropdownTextArray, dropdownDefaultValue = _a.dropdownDefaultValue, onChangeDropdown = _a.onChangeDropdown, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PDSTextType } from '
|
|
3
|
-
import type { TFunctionResult } from 'i18next';
|
|
2
|
+
import type { PDSTextType } from '../../../common/types';
|
|
4
3
|
declare type ColumnWidthType = 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
4
|
declare type ColumnTextType = 'normal' | 'active' | 'active2' | 'inactive' | 'report' | 'report2';
|
|
6
5
|
export declare type AdminListItemProps = {
|
|
@@ -38,9 +37,9 @@ export declare type AdminListItemProps = {
|
|
|
38
37
|
column10TextWidth?: ColumnWidthType;
|
|
39
38
|
column10TextStyleTheme?: ColumnTextType;
|
|
40
39
|
quickActionBtnMode?: 'none' | 'btn_amount1' | 'btn_amount2' | 'btn_amount3';
|
|
41
|
-
quickActionBtn1Text?:
|
|
42
|
-
quickActionBtn2Text?:
|
|
43
|
-
quickActionBtn3Text?:
|
|
40
|
+
quickActionBtn1Text?: PDSTextType;
|
|
41
|
+
quickActionBtn2Text?: PDSTextType;
|
|
42
|
+
quickActionBtn3Text?: PDSTextType;
|
|
44
43
|
quickActionBtnType?: 'hover' | 'fix';
|
|
45
44
|
quickActionBtn1State?: 'normal' | 'disabled';
|
|
46
45
|
quickActionBtn2State?: 'normal' | 'disabled';
|
|
@@ -37,9 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var react_1 = require("react");
|
|
39
39
|
var react_hook_form_1 = require("react-hook-form");
|
|
40
|
-
var transitionStyle_1 = require("
|
|
41
|
-
var components_1 = require("
|
|
42
|
-
var components_2 = require("
|
|
40
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
41
|
+
var components_1 = require("../../../desktop/components");
|
|
42
|
+
var components_2 = require("../../../hybrid/components");
|
|
43
43
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
44
44
|
var AdminListItem = (0, react_1.forwardRef)(function (_a, ref) {
|
|
45
45
|
var _b = _a.rowSize, rowSize = _b === void 0 ? 'medium' : _b, _c = _a.selectionMode, selectionMode = _c === void 0 ? 'multi' : _c, _d = _a.column2Type, column2Type = _d === void 0 ? 'image_text' : _d, imageSrc = _a.imageSrc, _e = _a.imageShapeType, imageShapeType = _e === void 0 ? 'rectangle' : _e, _f = _a.imageScaleType, imageScaleType = _f === void 0 ? 'cover' : _f, _g = _a.imageRadius, imageRadius = _g === void 0 ? 8 : _g, _h = _a.imageRatio, imageRatio = _h === void 0 ? '16_9' : _h, column2Text = _a.column2Text, column3Text = _a.column3Text, _j = _a.column3TextWidth, column3TextWidth = _j === void 0 ? 'small' : _j, _k = _a.column3TextStyleTheme, column3TextStyleTheme = _k === void 0 ? 'normal' : _k, column4Text = _a.column4Text, _l = _a.column4TextWidth, column4TextWidth = _l === void 0 ? 'small' : _l, _m = _a.column4TextStyleTheme, column4TextStyleTheme = _m === void 0 ? 'normal' : _m, column5Text = _a.column5Text, _o = _a.column5TextWidth, column5TextWidth = _o === void 0 ? 'small' : _o, _p = _a.column5TextStyleTheme, column5TextStyleTheme = _p === void 0 ? 'normal' : _p, column6Text = _a.column6Text, _q = _a.column6TextWidth, column6TextWidth = _q === void 0 ? 'small' : _q, _r = _a.column6TextStyleTheme, column6TextStyleTheme = _r === void 0 ? 'normal' : _r, column7Text = _a.column7Text, _s = _a.column7TextWidth, column7TextWidth = _s === void 0 ? 'small' : _s, _t = _a.column7TextStyleTheme, column7TextStyleTheme = _t === void 0 ? 'normal' : _t, column8Text = _a.column8Text, _u = _a.column8TextWidth, column8TextWidth = _u === void 0 ? 'small' : _u, _v = _a.column8TextStyleTheme, column8TextStyleTheme = _v === void 0 ? 'normal' : _v, column9Text = _a.column9Text, _w = _a.column9TextWidth, column9TextWidth = _w === void 0 ? 'small' : _w, _x = _a.column9TextStyleTheme, column9TextStyleTheme = _x === void 0 ? 'normal' : _x, column10Text = _a.column10Text, _y = _a.column10TextWidth, column10TextWidth = _y === void 0 ? 'small' : _y, _z = _a.column10TextStyleTheme, column10TextStyleTheme = _z === void 0 ? 'normal' : _z, _0 = _a.quickActionBtnMode, quickActionBtnMode = _0 === void 0 ? 'btn_amount2' : _0, quickActionBtn1Text = _a.quickActionBtn1Text, quickActionBtn2Text = _a.quickActionBtn2Text, quickActionBtn3Text = _a.quickActionBtn3Text, _1 = _a.quickActionBtnType, quickActionBtnType = _1 === void 0 ? 'fix' : _1, _2 = _a.quickActionBtn1State, quickActionBtn1State = _2 === void 0 ? 'normal' : _2, _3 = _a.quickActionBtn2State, quickActionBtn2State = _3 === void 0 ? 'normal' : _3, _4 = _a.quickActionBtn3State, quickActionBtn3State = _4 === void 0 ? 'normal' : _4, _5 = _a.selectedState, selectedState = _5 === void 0 ? 'basic' : _5, id = _a.id, _6 = _a.flexibleHideInfoMode, flexibleHideInfoMode = _6 === void 0 ? 'use' : _6, onClickQuickActionBtn1 = _a.onClickQuickActionBtn1, onClickQuickActionBtn2 = _a.onClickQuickActionBtn2, onClickQuickActionBtn3 = _a.onClickQuickActionBtn3, onClickItem = _a.onClickItem;
|
|
@@ -152,7 +152,7 @@ var AdminListItem = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
return ((0, jsx_runtime_1.jsxs)(S_AdminListItem, __assign({ "x-pds-name": "AdminListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", ref: ref, rowSize: rowSize, onClick: handleClick, isSelected: isSelected, quickActionBtnType: quickActionBtnType, flexibleHideInfoMode: flexibleHideInfoMode }, { children: [(0, jsx_runtime_1.jsx)(S_SelectionColumn, __assign({ rowSize: rowSize }, { children: selectionMode === 'multi' && ((0, jsx_runtime_1.jsx)(S_Selection, { children: (0, jsx_runtime_1.jsx)(components_1.Checkbox, { name: id.toString(), state: selectedState === 'maintain' ? 'disabled' : 'normal' }, void 0) }, void 0)) }), void 0), (0, jsx_runtime_1.jsxs)(S_ImageColumn, __assign({ rowSize: rowSize }, { children: [column2Type === 'image_text' && (rowSize === 'high' || rowSize === 'medium') && ((0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ rowSize: rowSize }, { children: (0, jsx_runtime_1.jsx)(components_2.ImageView, { src: imageSrc, shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: imageScaleType, radius: imageShapeType === 'round' ? imageRadius : undefined, backgroundFillMode: "use" }, void 0) }), void 0)), (rowSize === 'low' || rowSize === 'medium') && ((0, jsx_runtime_1.jsx)(S_RowTextWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column2Text, styleTheme: "body2Bold", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 2 }, void 0) }, void 0)), rowSize === 'high' && ((0, jsx_runtime_1.jsx)(S_HighTextWrapper, __assign({ ref: contentRef, hasScroll: hasScroll }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column2Text, styleTheme: "body2Bold", colorTheme: "sysTextPrimary" }, void 0) }), void 0))] }), void 0), column3Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column3TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column3Text, styleTheme: column3TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column3TextStyleTheme)
|
|
155
|
+
return ((0, jsx_runtime_1.jsxs)(S_AdminListItem, __assign({ "x-pds-name": "AdminListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", ref: ref, rowSize: rowSize, onClick: handleClick, isSelected: isSelected, quickActionBtnType: quickActionBtnType, flexibleHideInfoMode: flexibleHideInfoMode }, { children: [(0, jsx_runtime_1.jsx)(S_SelectionColumn, __assign({ rowSize: rowSize }, { children: selectionMode === 'multi' && ((0, jsx_runtime_1.jsx)(S_Selection, { children: (0, jsx_runtime_1.jsx)(components_1.Checkbox, { name: id.toString(), state: selectedState === 'maintain' ? 'disabled' : 'normal' }, void 0) }, void 0)) }), void 0), (0, jsx_runtime_1.jsxs)(S_ImageColumn, __assign({ rowSize: rowSize }, { children: [column2Type === 'image_text' && (rowSize === 'high' || rowSize === 'medium') && ((0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ rowSize: rowSize }, { children: (0, jsx_runtime_1.jsx)(components_2.ImageView, { src: imageSrc, shapeType: imageShapeType, width: imageWidth, ratio: imageRatio, scaleType: imageScaleType, radius: imageShapeType === 'round' ? imageRadius : undefined, backgroundFillMode: "use" }, void 0) }), void 0)), (rowSize === 'low' || rowSize === 'medium') && ((0, jsx_runtime_1.jsx)(S_RowTextWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column2Text, styleTheme: "body2Bold", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 2 }, void 0) }, void 0)), rowSize === 'high' && ((0, jsx_runtime_1.jsx)(S_HighTextWrapper, __assign({ ref: contentRef, hasScroll: hasScroll }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column2Text, styleTheme: "body2Bold", colorTheme: "sysTextPrimary" }, void 0) }), void 0))] }), void 0), column3Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column3TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column3Text, styleTheme: column3TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column3TextStyleTheme) }, void 0) }), void 0)), column4Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column4TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column4Text, styleTheme: column4TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column4TextStyleTheme) }, void 0) }), void 0)), column5Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column5TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column5Text, styleTheme: column5TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column5TextStyleTheme) }, void 0) }), void 0)), column6Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column6TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column6Text, styleTheme: column6TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column6TextStyleTheme) }, void 0) }), void 0)), column7Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column7TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column7Text, styleTheme: column7TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column7TextStyleTheme) }, void 0) }), void 0)), column8Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column8TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column8Text, styleTheme: column8TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column8TextStyleTheme) }, void 0) }), void 0)), column9Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column9TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column9Text, styleTheme: column9TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column9TextStyleTheme) }, void 0) }), void 0)), column10Text && ((0, jsx_runtime_1.jsx)(S_Column, __assign({ columnSize: column10TextWidth, className: "hidableColumn" }, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: column10Text, styleTheme: column10TextStyleTheme === 'normal' ? 'body2Regular' : 'body2Bold', colorTheme: getColumnColorTheme(column10TextStyleTheme) }, void 0) }), void 0)), quickActionBtnMode !== 'none' && ((0, jsx_runtime_1.jsx)(S_QuickActionButtonBox, __assign({ quickActionBtnType: quickActionBtnType }, { children: quickActionButtons() }), void 0)), quickActionBtnType === 'hover' && (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f", spacingType: "width" }, void 0)] }), void 0));
|
|
156
156
|
});
|
|
157
157
|
var highRow = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 200px;\n max-height: 200px;\n"], ["\n height: 200px;\n max-height: 200px;\n"])));
|
|
158
158
|
var mediumRow = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100px;\n max-height: 100px;\n"], ["\n height: 100px;\n max-height: 100px;\n"])));
|
|
@@ -160,7 +160,7 @@ var lowRow = (0, styled_components_1.css)(templateObject_3 || (templateObject_3
|
|
|
160
160
|
var smallColumnWidth = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 56px;\n"], ["\n width: 56px;\n"])));
|
|
161
161
|
var mediumColumnWidth = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 80px;\n"], ["\n width: 80px;\n"])));
|
|
162
162
|
var largeColumnWidth = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 144px;\n"], ["\n width: 144px;\n"])));
|
|
163
|
-
var xlargeColumnWidth = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width:
|
|
163
|
+
var xlargeColumnWidth = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 240px;\n"], ["\n width: 240px;\n"])));
|
|
164
164
|
var fixedColumn = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
|
|
165
165
|
var hoverColumn = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
166
166
|
var hoverQuickActionBtnBox = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: none;\n height: 100%;\n position: absolute;\n right: 0;\n"], ["\n align-items: center;\n background-color: ", ";\n display: none;\n height: 100%;\n position: absolute;\n right: 0;\n"])), function (_a) {
|
|
@@ -248,7 +248,7 @@ var S_SelectionColumn = styled_components_1.default.div(templateObject_24 || (te
|
|
|
248
248
|
var hoverAdminListItem = (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n align-items: center;\n position: relative;\n"], ["\n align-items: center;\n position: relative;\n"])));
|
|
249
249
|
var fixedAdminListItem = (0, styled_components_1.css)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n justify-content: space-between;\n"], ["\n justify-content: space-between;\n"])));
|
|
250
250
|
var flexibleHideColumnStyle = (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n @media only screen and (max-width: 1400px) {\n .hidableColumn {\n display: none;\n }\n }\n"], ["\n @media only screen and (max-width: 1400px) {\n .hidableColumn {\n display: none;\n }\n }\n"])));
|
|
251
|
-
var S_AdminListItem = styled_components_1.default.div(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n padding-left: ", ";\n\n ", "\n\n ", ";\n ", "\n\n :hover {\n background-color: ", ";\n\n ", " {\n display: ", ";\n visibility: visible;\n }\n }\n\n &:last-child {\n margin-bottom: 88px;\n }\n\n ", "\n"], ["\n background-color: ", ";\n display: flex;\n padding-left: ", ";\n\n ", "\n\n ", ";\n ", "\n\n :hover {\n background-color: ", ";\n\n ", " {\n display: ", ";\n visibility: visible;\n }\n }\n\n &:last-child {\n margin-bottom: 88px;\n }\n\n ", "\n"])), function (_a) {
|
|
251
|
+
var S_AdminListItem = styled_components_1.default.div(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n padding-left: ", ";\n\n ", "\n\n ", ";\n ", "\n\n :hover {\n background-color: ", ";\n\n ", " {\n display: ", ";\n visibility: visible;\n }\n }\n\n &:last-child {\n margin-bottom: 88px;\n }\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n padding-left: ", ";\n\n ", "\n\n ", ";\n ", "\n\n :hover {\n background-color: ", ";\n\n ", " {\n display: ", ";\n visibility: visible;\n }\n }\n\n &:last-child {\n margin-bottom: 88px;\n }\n\n ", "\n"])), function (_a) {
|
|
252
252
|
var theme = _a.theme, isSelected = _a.isSelected;
|
|
253
253
|
return isSelected ? theme.ui_cpnt_datatable_base_selected : theme.ui_cpnt_datatable_base_default;
|
|
254
254
|
}, function (_a) {
|
|
@@ -9,8 +9,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
var react_i18next_1 = require("react-i18next");
|
|
12
|
-
var components_1 = require("
|
|
13
|
-
var components_2 = require("
|
|
12
|
+
var components_1 = require("../../../desktop/components");
|
|
13
|
+
var components_2 = require("../../../hybrid/components");
|
|
14
14
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
15
15
|
function BulkActionBar(_a) {
|
|
16
16
|
var itemCount = _a.itemCount, _b = _a.dropdownMode, dropdownMode = _b === void 0 ? 'dropdown_amount1' : _b, dropdown1Value = _a.dropdown1Value, dropdown2Value = _a.dropdown2Value, dropdown3Value = _a.dropdown3Value, dropdown1DefaultText = _a.dropdown1DefaultText, dropdown2DefaultText = _a.dropdown2DefaultText, dropdown3DefaultText = _a.dropdown3DefaultText, dropdown1HintText = _a.dropdown1HintText, dropdown2HintText = _a.dropdown2HintText, dropdown3HintText = _a.dropdown3HintText, dropdown1ValueArray = _a.dropdown1ValueArray, dropdown2ValueArray = _a.dropdown2ValueArray, dropdown3ValueArray = _a.dropdown3ValueArray, tBtnMode = _a.tBtnMode, tBtn1Text = _a.tBtn1Text, tBtn2Text = _a.tBtn2Text, tBtn3Text = _a.tBtn3Text, onChangeDropdown1 = _a.onChangeDropdown1, onChangeDropdown2 = _a.onChangeDropdown2, onChangeDropdown3 = _a.onChangeDropdown3, onClickTBtn1 = _a.onClickTBtn1, onClickTBtn2 = _a.onClickTBtn2, onClickTBtn3 = _a.onClickTBtn3;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
var components_1 = require("
|
|
11
|
+
var components_1 = require("../../../desktop/components");
|
|
12
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
13
|
function ChipList(_a) {
|
|
14
14
|
var textArray = _a.textArray, value = _a.value, onClickChip = _a.onClickChip;
|
|
@@ -37,10 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var react_1 = require("react");
|
|
39
39
|
var react_hook_form_1 = require("react-hook-form");
|
|
40
|
-
var styles_1 = require("
|
|
41
|
-
var components_1 = require("
|
|
42
|
-
var components_2 = require("
|
|
43
|
-
var components_3 = require("
|
|
40
|
+
var styles_1 = require("../../../common/styles");
|
|
41
|
+
var components_1 = require("../../../desktop/common/components");
|
|
42
|
+
var components_2 = require("../../../desktop/components");
|
|
43
|
+
var components_3 = require("../../../hybrid/components");
|
|
44
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
45
|
function SearchField(_a) {
|
|
46
46
|
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.responsiveMode, responsiveMode = _b === void 0 ? 'none' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, customWidth = _a.customWidth, onTarget = _a.onTarget, onClickArrowIBtn = _a.onClickArrowIBtn, onClickSearchIBtn = _a.onClickSearchIBtn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '
|
|
2
|
+
import type { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '../../../common/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
searchFieldHintText?: PDSTextType;
|
|
5
5
|
searchFieldDefaultText?: PDSTextType;
|
|
@@ -21,9 +21,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
var react_1 = require("react");
|
|
23
23
|
var react_hook_form_1 = require("react-hook-form");
|
|
24
|
-
var components_1 = require("
|
|
25
|
-
var components_2 = require("
|
|
26
|
-
var components_3 = require("
|
|
24
|
+
var components_1 = require("../../../common/components");
|
|
25
|
+
var components_2 = require("../../../desktop/components");
|
|
26
|
+
var components_3 = require("../../../hybrid/components");
|
|
27
27
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
28
28
|
var ChipList_1 = __importDefault(require("./ChipList"));
|
|
29
29
|
var SearchField_1 = __importDefault(require("./SearchField"));
|