pds-dev-kit-web-test 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +10 -2
- package/dist/src/common/assets/icons/fill/BellNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BellNotification.js +36 -0
- package/dist/src/common/assets/icons/fill/ChatNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ChatNotification.js +36 -0
- package/dist/src/common/assets/icons/fill/HelpWindow.js +1 -1
- package/dist/src/common/assets/icons/fill/Question.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +2 -0
- package/dist/src/common/assets/icons/fill/index.js +4 -0
- package/dist/src/common/assets/icons/line/BellNotification.js +2 -2
- package/dist/src/common/assets/icons/line/BookingExtension.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BookingExtension.js +36 -0
- package/dist/src/common/assets/icons/line/ChatNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatNotification.js +36 -0
- package/dist/src/common/assets/icons/line/Question.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/services/i18n/i18n.js +10 -4
- package/dist/src/common/services/i18n/resources/en.json +0 -6835
- package/dist/src/common/services/i18n/resources/es.json +0 -6835
- package/dist/src/common/services/i18n/resources/fil.json +9 -0
- package/dist/src/common/services/i18n/resources/index.d.ts +11 -41012
- package/dist/src/common/services/i18n/resources/index.js +8 -5
- package/dist/src/common/services/i18n/resources/ja.json +9 -0
- package/dist/src/common/services/i18n/resources/ko.json +0 -6835
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -0
- package/dist/src/common/services/i18n/resources/zh-tw.json +0 -6835
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +24 -2
- package/dist/src/common/styles/colorSet/index.d.ts +305 -267
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +22 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +7 -3
- package/dist/src/desktop/components/AdminList/BulkActionBar.js +1 -2
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +1 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +4 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +26 -2
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +6 -4
- package/dist/src/desktop/components/PageTitleTextGroup/DateButton.d.ts +10 -0
- package/dist/src/desktop/components/PageTitleTextGroup/DateButton.js +69 -0
- package/dist/src/desktop/components/PageTitleTextGroup/PageTitleTextGroup.d.ts +6 -2
- package/dist/src/desktop/components/PageTitleTextGroup/PageTitleTextGroup.js +21 -5
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +38 -12
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +9 -4
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +2 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +3 -3
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +39 -9
- package/dist/src/desktop/index.d.ts +3 -2
- package/dist/src/desktop/index.js +2 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +8 -12
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/SideTab.d.ts +8 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/SideTab.js +48 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/index.d.ts +1 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/index.js +8 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/index.d.ts +2 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/index.js +5 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +18 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +153 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/index.d.ts +3 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/index.js +8 -0
- package/dist/src/desktop/panels/index.d.ts +3 -1
- package/dist/src/desktop/panels/index.js +3 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +6 -2
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +29 -7
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +9 -4
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +30 -6
- package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +54 -0
- package/dist/src/sub/AdminList/AdminList/AdminList.js +226 -0
- package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +30 -0
- package/dist/src/sub/AdminList/AdminList/HeaderRow.js +98 -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 +53 -0
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +17 -0
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +89 -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 +282 -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 +51 -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 +29 -0
- package/dist/src/sub/AdminList/ToolBar/SearchField.d.ts +15 -0
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +259 -0
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +25 -0
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +118 -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/DynamicLayout/components/Section/Section.js +1 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +30 -13
- package/dist/src/sub/index.d.ts +1 -0
- package/dist/src/sub/index.js +11 -1
- package/dist/storybook-static/{0.69b174ef.iframe.bundle.js → 0.9bb7767d.iframe.bundle.js} +7 -7
- package/dist/storybook-static/{4.32dc09b1.iframe.bundle.js → 4.ed983a0a.iframe.bundle.js} +69 -69
- package/dist/storybook-static/{5.c1637fa3.iframe.bundle.js → 5.949eb428.iframe.bundle.js} +13 -13
- package/dist/storybook-static/{6.9d79e5b5.iframe.bundle.js → 6.e34350b7.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.b309bb58.iframe.bundle.js → 7.f7cfb88e.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{main.9a5b3a3c.iframe.bundle.d.ts → main.f16a77cc.iframe.bundle.d.ts} +52 -46
- package/dist/storybook-static/{main.9a5b3a3c.iframe.bundle.js → main.f16a77cc.iframe.bundle.js} +991 -839
- package/dist/storybook-static/{runtime~main.b6fc2c86.iframe.bundle.js → runtime~main.b5a58837.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.0fbc3a5b.iframe.bundle.js → vendors~main.ed405a26.iframe.bundle.js} +419 -419
- package/package.json +1 -2
- package/release-note.md +10 -5
- package/dist/src/common/services/i18n/resources/jp.json +0 -6844
- package/dist/src/common/services/i18n/resources/zh-zh.json +0 -6844
- /package/dist/storybook-static/{0.69b174ef.iframe.bundle.d.ts → 0.9bb7767d.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{4.32dc09b1.iframe.bundle.d.ts → 4.ed983a0a.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{5.c1637fa3.iframe.bundle.d.ts → 5.949eb428.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{6.9d79e5b5.iframe.bundle.d.ts → 6.e34350b7.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{7.b309bb58.iframe.bundle.d.ts → 7.f7cfb88e.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{runtime~main.b6fc2c86.iframe.bundle.d.ts → runtime~main.b5a58837.iframe.bundle.d.ts} +0 -0
- /package/dist/storybook-static/{vendors~main.0fbc3a5b.iframe.bundle.d.ts → vendors~main.ed405a26.iframe.bundle.d.ts} +0 -0
|
@@ -0,0 +1,259 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
var react_1 = __importStar(require("react"));
|
|
27
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
28
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
29
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
30
|
+
var components_1 = require("../../../desktop/common/components");
|
|
31
|
+
var components_2 = require("../../../desktop/components");
|
|
32
|
+
var hybrid_1 = require("../../../hybrid");
|
|
33
|
+
function SearchField(_a) {
|
|
34
|
+
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;
|
|
35
|
+
var _d = (0, react_1.useState)(false), isFocused = _d[0], setIsFocused = _d[1];
|
|
36
|
+
var textFieldBaseRef = (0, react_1.useRef)(null);
|
|
37
|
+
var _e = (0, react_hook_form_1.useFormContext)(), register = _e.register, getValues = _e.getValues, reset = _e.reset, trigger = _e.trigger;
|
|
38
|
+
var validateOnBlur = register(name).onBlur;
|
|
39
|
+
var handleFocus = function () {
|
|
40
|
+
setIsFocused(true);
|
|
41
|
+
};
|
|
42
|
+
var handleArrowIBtnClick = function () {
|
|
43
|
+
reset();
|
|
44
|
+
if (onClickArrowIBtn) {
|
|
45
|
+
onClickArrowIBtn();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var handleSearchIBtnClick = function () {
|
|
49
|
+
var searchValue = getValues(name);
|
|
50
|
+
if (onClickSearchIBtn) {
|
|
51
|
+
onClickSearchIBtn(searchValue);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var handleBlur = function (e) {
|
|
55
|
+
validateOnBlur(e);
|
|
56
|
+
setIsFocused(false);
|
|
57
|
+
trigger(name);
|
|
58
|
+
};
|
|
59
|
+
var handleTarget = function () {
|
|
60
|
+
if (onTarget) {
|
|
61
|
+
onTarget();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return (react_1.default.createElement(S_SearchFieldBox, { "x-pds-name": "SearchField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
65
|
+
react_1.default.createElement(S_SearchFieldWrapper, { size: size, textLineType: "single", isFocused: isFocused, state: "normal", colorTheme: "none", responsiveMode: responsiveMode, customWidth: customWidth },
|
|
66
|
+
react_1.default.createElement(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_arrow_left", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleArrowIBtnClick }),
|
|
67
|
+
react_1.default.createElement(components_1.TextFieldBase, { inputRef: textFieldBaseRef, name: name, size: size, hintText: hintText, defaultText: defaultText, enterSubmitMode: "use", textLineType: "single", textSize: "form2", textWeight: "normal", textPadding: "0 0 0 8px", deleteIconMode: "use", deleteIconSize: size === 'large' ? 20 : 16, deleteIconColor: "ui_cpnt_button_icon_disabled", isFocused: isFocused, onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: register('searchField').onChange }),
|
|
68
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
69
|
+
react_1.default.createElement(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_search", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchIBtnClick }))));
|
|
70
|
+
}
|
|
71
|
+
var S_SearchFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
72
|
+
var size = _a.size;
|
|
73
|
+
return size &&
|
|
74
|
+
{
|
|
75
|
+
small: 'width: 188px;',
|
|
76
|
+
medium: 'width: 188px;',
|
|
77
|
+
large: 'width: 432px;'
|
|
78
|
+
}[size];
|
|
79
|
+
}, function (_a) {
|
|
80
|
+
var responsiveMode = _a.responsiveMode;
|
|
81
|
+
return responsiveMode === 'use' && 'width: 100%';
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var customWidth = _a.customWidth;
|
|
84
|
+
return customWidth && "width: " + customWidth + ";";
|
|
85
|
+
});
|
|
86
|
+
var multi = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: auto;\n padding: 14px;\n"], ["\n height: auto;\n padding: 14px;\n"])));
|
|
87
|
+
var auto = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"], ["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"])), function (_a) {
|
|
88
|
+
var theme = _a.theme;
|
|
89
|
+
return (46 -
|
|
90
|
+
Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
|
|
91
|
+
2;
|
|
92
|
+
}, function (_a) {
|
|
93
|
+
var theme = _a.theme;
|
|
94
|
+
return (46 -
|
|
95
|
+
Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
|
|
96
|
+
2;
|
|
97
|
+
});
|
|
98
|
+
var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n padding-right: ", ";\n width: 188px;\n"], ["\n border-radius: 10px;\n height: 32px;\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
|
|
99
|
+
var theme = _a.theme;
|
|
100
|
+
return theme.spacing.spacingB;
|
|
101
|
+
});
|
|
102
|
+
var medium = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 40px;\n padding-right: ", ";\n width: 188px;\n"], ["\n height: 40px;\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
|
|
103
|
+
var theme = _a.theme;
|
|
104
|
+
return theme.spacing.spacingB;
|
|
105
|
+
});
|
|
106
|
+
var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 48px;\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"], ["\n height: 48px;\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"])), function (_a) {
|
|
107
|
+
var theme = _a.theme;
|
|
108
|
+
return theme.spacing.spacingB;
|
|
109
|
+
}, function (_a) {
|
|
110
|
+
var textLineType = _a.textLineType;
|
|
111
|
+
return textLineType === 'multi' && multi;
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var textLineType = _a.textLineType;
|
|
114
|
+
return textLineType === 'auto' && auto;
|
|
115
|
+
});
|
|
116
|
+
var normal = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
|
|
117
|
+
var theme = _a.theme;
|
|
118
|
+
return theme.ui_cpnt_textfield_base_normal;
|
|
119
|
+
}, function (_a) {
|
|
120
|
+
var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
|
|
121
|
+
if (isError)
|
|
122
|
+
return theme.ui_cpnt_textfield_border_error;
|
|
123
|
+
if (isFocused)
|
|
124
|
+
return theme.ui_cpnt_textfield_border_focus;
|
|
125
|
+
return theme.ui_cpnt_textfield_border_normal;
|
|
126
|
+
});
|
|
127
|
+
var read_only = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
128
|
+
var theme = _a.theme;
|
|
129
|
+
return theme.ui_cpnt_textfield_base_disabled;
|
|
130
|
+
}, function (_a) {
|
|
131
|
+
var theme = _a.theme;
|
|
132
|
+
return theme.ui_cpnt_textfield_border_disabled;
|
|
133
|
+
});
|
|
134
|
+
var disabled = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
135
|
+
var theme = _a.theme;
|
|
136
|
+
return theme.ui_cpnt_textfield_base_disabled;
|
|
137
|
+
}, function (_a) {
|
|
138
|
+
var theme = _a.theme;
|
|
139
|
+
return theme.ui_cpnt_textfield_border_disabled;
|
|
140
|
+
});
|
|
141
|
+
var dark_normal = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
|
|
142
|
+
var theme = _a.theme;
|
|
143
|
+
return theme.ui_cpnt_textfield_base_darktheme_normal;
|
|
144
|
+
}, function (_a) {
|
|
145
|
+
var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
|
|
146
|
+
if (isError)
|
|
147
|
+
return theme.ui_cpnt_textfield_border_darktheme_error;
|
|
148
|
+
if (isFocused)
|
|
149
|
+
return theme.ui_cpnt_textfield_border_darktheme_focus;
|
|
150
|
+
return theme.ui_cpnt_textfield_border_darktheme_normal;
|
|
151
|
+
});
|
|
152
|
+
var dark_read_only = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
153
|
+
var theme = _a.theme;
|
|
154
|
+
return theme.ui_cpnt_textfield_base_darktheme_disabled;
|
|
155
|
+
}, function (_a) {
|
|
156
|
+
var theme = _a.theme;
|
|
157
|
+
return theme.ui_cpnt_textfield_border_darktheme_normal;
|
|
158
|
+
});
|
|
159
|
+
var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
160
|
+
var theme = _a.theme;
|
|
161
|
+
return theme.ui_cpnt_textfield_base_darktheme_disabled;
|
|
162
|
+
}, function (_a) {
|
|
163
|
+
var theme = _a.theme;
|
|
164
|
+
return theme.ui_cpnt_textfield_border_darktheme_normal;
|
|
165
|
+
});
|
|
166
|
+
var transparent_normal = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
|
|
167
|
+
var theme = _a.theme;
|
|
168
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_normal;
|
|
169
|
+
}, function (_a) {
|
|
170
|
+
var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
|
|
171
|
+
if (isError)
|
|
172
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_error;
|
|
173
|
+
if (isFocused)
|
|
174
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_focus;
|
|
175
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_normal;
|
|
176
|
+
});
|
|
177
|
+
var transparent_read_only = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
178
|
+
var theme = _a.theme;
|
|
179
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_readonly;
|
|
180
|
+
}, function (_a) {
|
|
181
|
+
var theme = _a.theme;
|
|
182
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_readonly;
|
|
183
|
+
});
|
|
184
|
+
var transparent_disabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
185
|
+
var theme = _a.theme;
|
|
186
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_disabled;
|
|
187
|
+
}, function (_a) {
|
|
188
|
+
var theme = _a.theme;
|
|
189
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_disabled;
|
|
190
|
+
});
|
|
191
|
+
var backgroundHoverColor = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
192
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
193
|
+
switch (colorTheme) {
|
|
194
|
+
case 'none':
|
|
195
|
+
return theme.ui_cpnt_textfield_base_hover;
|
|
196
|
+
case 'dark':
|
|
197
|
+
return theme.ui_cpnt_textfield_base_hover_darktheme;
|
|
198
|
+
case 'transparent':
|
|
199
|
+
return theme.ui_cpnt_textfield_base_hover_transparent;
|
|
200
|
+
default:
|
|
201
|
+
return theme.ui_cpnt_textfield_base_hover;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
205
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
206
|
+
switch (colorTheme) {
|
|
207
|
+
case 'none':
|
|
208
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
209
|
+
case 'dark':
|
|
210
|
+
return theme.ui_cpnt_textfield_base_pressed_darktheme;
|
|
211
|
+
case 'transparent':
|
|
212
|
+
return theme.ui_cpnt_textfield_base_pressed_transparent;
|
|
213
|
+
default:
|
|
214
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
|
|
218
|
+
var S_SearchFieldWrapper = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"])), function (_a) {
|
|
219
|
+
var state = _a.state;
|
|
220
|
+
return (state === 'disabled' ? 'not-allowed' : 'text');
|
|
221
|
+
}, function (_a) {
|
|
222
|
+
var size = _a.size;
|
|
223
|
+
return size &&
|
|
224
|
+
{
|
|
225
|
+
small: small,
|
|
226
|
+
medium: medium,
|
|
227
|
+
large: large
|
|
228
|
+
}[size];
|
|
229
|
+
}, function (_a) {
|
|
230
|
+
var state = _a.state, colorTheme = _a.colorTheme;
|
|
231
|
+
if (state) {
|
|
232
|
+
switch (colorTheme) {
|
|
233
|
+
case 'none': {
|
|
234
|
+
return { normal: normal, read_only: read_only, disabled: disabled }[state];
|
|
235
|
+
}
|
|
236
|
+
case 'dark': {
|
|
237
|
+
return { normal: dark_normal, read_only: dark_read_only, disabled: dark_disabled }[state];
|
|
238
|
+
}
|
|
239
|
+
case 'transparent': {
|
|
240
|
+
return {
|
|
241
|
+
normal: transparent_normal,
|
|
242
|
+
read_only: transparent_read_only,
|
|
243
|
+
disabled: transparent_disabled
|
|
244
|
+
}[state];
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}, transitionStyle_1.InputTransition, function (_a) {
|
|
249
|
+
var state = _a.state;
|
|
250
|
+
return state === 'normal' && normalActionColor;
|
|
251
|
+
}, function (_a) {
|
|
252
|
+
var responsiveMode = _a.responsiveMode;
|
|
253
|
+
return responsiveMode === 'use' && 'width: 100%';
|
|
254
|
+
}, function (_a) {
|
|
255
|
+
var customWidth = _a.customWidth;
|
|
256
|
+
return customWidth && "width: " + customWidth + ";";
|
|
257
|
+
});
|
|
258
|
+
exports.default = SearchField;
|
|
259
|
+
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, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '../../../common';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
searchFieldHintText?: PDSTextType;
|
|
5
|
+
searchFieldDefaultText?: PDSTextType;
|
|
6
|
+
chipTextArray?: PDSValueOption[];
|
|
7
|
+
chipValue?: PDSValueOption;
|
|
8
|
+
searchMode?: 'none' | 'use';
|
|
9
|
+
chipMode?: 'none' | 'use';
|
|
10
|
+
iBtnMode?: 'none' | 'iBtn_amount1' | 'iBtn_amount2' | 'iBtn_amount3';
|
|
11
|
+
iBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
12
|
+
iBtn1IconFillType?: 'fill' | 'line';
|
|
13
|
+
iBtn2IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
14
|
+
iBtn2IconFillType?: 'fill' | 'line';
|
|
15
|
+
iBtn3IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
16
|
+
iBtn3IconFillType?: 'fill' | 'line';
|
|
17
|
+
onClickChip?: (option: PDSValueOption) => void;
|
|
18
|
+
onClickSearchIBtn?: (value: string) => void;
|
|
19
|
+
onEnterKeyDown?: (value: string) => void;
|
|
20
|
+
onClickIBtn1?: () => void;
|
|
21
|
+
onClickIBtn2?: () => void;
|
|
22
|
+
onClickIBtn3?: () => void;
|
|
23
|
+
};
|
|
24
|
+
declare function ToolBar({ searchFieldHintText, searchFieldDefaultText, chipTextArray, chipValue, searchMode, chipMode, iBtnMode, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, iBtn3IconName, iBtn3IconFillType, onClickChip, onClickSearchIBtn, onEnterKeyDown, onClickIBtn1, onClickIBtn2, onClickIBtn3 }: Props): JSX.Element;
|
|
25
|
+
export default ToolBar;
|
|
@@ -0,0 +1,118 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
var react_1 = __importStar(require("react"));
|
|
41
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
42
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
43
|
+
var common_1 = require("../../../common");
|
|
44
|
+
var components_1 = require("../../../desktop/components");
|
|
45
|
+
var hybrid_1 = require("../../../hybrid");
|
|
46
|
+
var ChipList_1 = __importDefault(require("./ChipList"));
|
|
47
|
+
var SearchField_1 = __importDefault(require("./SearchField"));
|
|
48
|
+
function ToolBar(_a) {
|
|
49
|
+
var searchFieldHintText = _a.searchFieldHintText, searchFieldDefaultText = _a.searchFieldDefaultText, chipTextArray = _a.chipTextArray, chipValue = _a.chipValue, _b = _a.searchMode, searchMode = _b === void 0 ? 'none' : _b, _c = _a.chipMode, chipMode = _c === void 0 ? 'none' : _c, _d = _a.iBtnMode, iBtnMode = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, iBtn2IconName = _a.iBtn2IconName, _f = _a.iBtn2IconFillType, iBtn2IconFillType = _f === void 0 ? 'line' : _f, iBtn3IconName = _a.iBtn3IconName, _g = _a.iBtn3IconFillType, iBtn3IconFillType = _g === void 0 ? 'line' : _g, onClickChip = _a.onClickChip, onClickSearchIBtn = _a.onClickSearchIBtn, onEnterKeyDown = _a.onEnterKeyDown, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickIBtn3 = _a.onClickIBtn3;
|
|
50
|
+
var _h = (0, react_1.useState)(!!searchFieldDefaultText), isShowSearchField = _h[0], setIsShowSearchField = _h[1];
|
|
51
|
+
var methods = (0, react_hook_form_1.useForm)();
|
|
52
|
+
var handleSubmit = methods.handleSubmit;
|
|
53
|
+
var onSubmit = function (_a) {
|
|
54
|
+
var searchField = _a.searchField;
|
|
55
|
+
if (onEnterKeyDown) {
|
|
56
|
+
onEnterKeyDown(searchField);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var handleArrowIBtnClick = function () {
|
|
60
|
+
setIsShowSearchField(false);
|
|
61
|
+
};
|
|
62
|
+
var handleSearchIBtnClick = function (value) {
|
|
63
|
+
if (onClickSearchIBtn) {
|
|
64
|
+
onClickSearchIBtn(value);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var handleSearchFieldShowIBtnClick = function () {
|
|
68
|
+
setIsShowSearchField(function (prev) { return !prev; });
|
|
69
|
+
};
|
|
70
|
+
var handleChipClick = function (option) {
|
|
71
|
+
if (onClickChip) {
|
|
72
|
+
onClickChip(option);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
var handleIBtn1Click = function () {
|
|
76
|
+
if (onClickIBtn1) {
|
|
77
|
+
onClickIBtn1();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var handleIBtn2Click = function () {
|
|
81
|
+
if (onClickIBtn2) {
|
|
82
|
+
onClickIBtn2();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var handleIBtn3Click = function () {
|
|
86
|
+
if (onClickIBtn3) {
|
|
87
|
+
onClickIBtn3();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
91
|
+
react_1.default.createElement(S_ToolBarBox, null,
|
|
92
|
+
react_1.default.createElement(S_FilterBox, null, isShowSearchField ? (react_1.default.createElement(react_1.default.Fragment, null, searchMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
93
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e", spacingType: "width" }),
|
|
94
|
+
react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
95
|
+
react_1.default.createElement(common_1.Form, { onSubmit: handleSubmit(onSubmit) },
|
|
96
|
+
react_1.default.createElement(SearchField_1.default, { name: "searchField", hintText: searchFieldHintText, defaultText: searchFieldDefaultText, onClickArrowIBtn: handleArrowIBtnClick, onClickSearchIBtn: handleSearchIBtnClick, customWidth: "424px" }))))))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
97
|
+
searchMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
98
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
99
|
+
react_1.default.createElement(components_1.IconButton, { fillType: "fill", baseSize: "small", iconSize: 24, shapeType: "rectangle", iconName: "ic_search", iconFillType: "fill", iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchFieldShowIBtnClick }))),
|
|
100
|
+
chipMode === 'use' && chipTextArray && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
101
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
102
|
+
react_1.default.createElement(ChipList_1.default, { textArray: chipTextArray, value: chipValue, onClickChip: handleChipClick })))))),
|
|
103
|
+
react_1.default.createElement(S_IconButtonBox, null, iBtnMode !== 'none' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
104
|
+
iBtnMode === 'iBtn_amount3' && iBtn3IconName && (react_1.default.createElement(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn3IconName, iconFillType: iBtn3IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn3Click })),
|
|
105
|
+
(iBtnMode === 'iBtn_amount2' || iBtnMode === 'iBtn_amount3') && iBtn2IconName && (react_1.default.createElement(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn2IconName, iconFillType: iBtn2IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn2Click })),
|
|
106
|
+
iBtn1IconName && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
107
|
+
react_1.default.createElement(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn1IconName, iconFillType: iBtn1IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn1Click }),
|
|
108
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }))))))),
|
|
109
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
110
|
+
}
|
|
111
|
+
var S_ToolBarBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
112
|
+
var S_FilterBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
113
|
+
var S_IconButtonBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n\n & > :not(:first-child) {\n margin-left: ", ";\n }\n"], ["\n display: flex;\n\n & > :not(:first-child) {\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
114
|
+
var theme = _a.theme;
|
|
115
|
+
return theme.spacing.spacingB;
|
|
116
|
+
});
|
|
117
|
+
exports.default = ToolBar;
|
|
118
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToolBar } from './ToolBar';
|
|
@@ -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.ToolBar = void 0;
|
|
7
|
+
var ToolBar_1 = require("./ToolBar");
|
|
8
|
+
Object.defineProperty(exports, "ToolBar", { enumerable: true, get: function () { return __importDefault(ToolBar_1).default; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolBar = exports.BulkActionBar = exports.AdminListItem = exports.AdminListHeader = exports.AdminList = void 0;
|
|
4
|
+
var AdminList_1 = require("./AdminList");
|
|
5
|
+
Object.defineProperty(exports, "AdminList", { enumerable: true, get: function () { return AdminList_1.AdminList; } });
|
|
6
|
+
var AdminListHeader_1 = require("./AdminListHeader");
|
|
7
|
+
Object.defineProperty(exports, "AdminListHeader", { enumerable: true, get: function () { return AdminListHeader_1.AdminListHeader; } });
|
|
8
|
+
var AdminListItem_1 = require("./AdminListItem");
|
|
9
|
+
Object.defineProperty(exports, "AdminListItem", { enumerable: true, get: function () { return AdminListItem_1.AdminListItem; } });
|
|
10
|
+
var BulkActionBar_1 = require("./BulkActionBar");
|
|
11
|
+
Object.defineProperty(exports, "BulkActionBar", { enumerable: true, get: function () { return BulkActionBar_1.BulkActionBar; } });
|
|
12
|
+
var ToolBar_1 = require("./ToolBar");
|
|
13
|
+
Object.defineProperty(exports, "ToolBar", { enumerable: true, get: function () { return ToolBar_1.ToolBar; } });
|
|
@@ -86,7 +86,7 @@ function Background() {
|
|
|
86
86
|
if (backgroundMediaType !== 'YOUTUBE')
|
|
87
87
|
return;
|
|
88
88
|
setYoutubeSize(getResponsiveYoutubeSize());
|
|
89
|
-
}, [getResponsiveYoutubeSize]);
|
|
89
|
+
}, [getResponsiveYoutubeSize, backgroundMediaSrc]);
|
|
90
90
|
(0, react_1.useEffect)(function () {
|
|
91
91
|
if (backgroundMediaType !== 'YOUTUBE')
|
|
92
92
|
return;
|
|
@@ -85,6 +85,13 @@ function YouTubeIframe(_a) {
|
|
|
85
85
|
});
|
|
86
86
|
(_a = event.target) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
87
87
|
}, []);
|
|
88
|
+
var handleCrossOriginError = (0, react_1.useCallback)(function () {
|
|
89
|
+
if (!playerRef.current)
|
|
90
|
+
return;
|
|
91
|
+
playerRef.current.destroy();
|
|
92
|
+
setError(null);
|
|
93
|
+
onYouTubeIframeAPIReady();
|
|
94
|
+
}, [playerRef.current, setError]);
|
|
88
95
|
var onYouTubeIframeAPIReady = (0, react_1.useCallback)(function () {
|
|
89
96
|
if (!videoId || !PLAYER_ID) {
|
|
90
97
|
return;
|
|
@@ -147,22 +154,32 @@ function YouTubeIframe(_a) {
|
|
|
147
154
|
if (!playerRef.current)
|
|
148
155
|
return;
|
|
149
156
|
if (!videoId) {
|
|
150
|
-
|
|
157
|
+
try {
|
|
158
|
+
(_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.stopVideo();
|
|
159
|
+
}
|
|
160
|
+
catch (_b) {
|
|
161
|
+
handleCrossOriginError();
|
|
162
|
+
}
|
|
151
163
|
return;
|
|
152
164
|
}
|
|
153
165
|
if (videoId !== prevVideoId) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
try {
|
|
167
|
+
playerRef.current.loadVideoById({
|
|
168
|
+
videoId: videoId,
|
|
169
|
+
playerVars: {
|
|
170
|
+
playsinline: 1,
|
|
171
|
+
autoplay: 1,
|
|
172
|
+
controls: 0,
|
|
173
|
+
iv_load_policy: 3,
|
|
174
|
+
listType: 'playlist',
|
|
175
|
+
playlist: videoId,
|
|
176
|
+
loop: 1
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
catch (_c) {
|
|
181
|
+
handleCrossOriginError();
|
|
182
|
+
}
|
|
166
183
|
}
|
|
167
184
|
}, [playerRef, videoId, prevVideoId, onYouTubeIframeAPIReady]);
|
|
168
185
|
/**
|
package/dist/src/sub/index.d.ts
CHANGED
package/dist/src/sub/index.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
2
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
13
|
exports.DynamicLayout = void 0;
|
|
4
|
-
// NOTE: 이름은 변경될 수 있습니다.
|
|
5
14
|
var DynamicLayout_1 = require("./DynamicLayout");
|
|
6
15
|
Object.defineProperty(exports, "DynamicLayout", { enumerable: true, get: function () { return DynamicLayout_1.DynamicLayout; } });
|
|
16
|
+
__exportStar(require("./AdminList"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(window.webpackJsonp = window.webpackJsonp || []).push([[0], {
|
|
1
|
+
(window.webpackJsonp = window.webpackJsonp || []).push([[0], { 2223: function (module, exports) { var hasElementType = "undefined" != typeof Element, hasMap = "function" == typeof Map, hasSet = "function" == typeof Set, hasArrayBuffer = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView; function equal(a, b) { if (a === b)
|
|
2
2
|
return !0; if (a && b && "object" == typeof a && "object" == typeof b) {
|
|
3
3
|
if (a.constructor !== b.constructor)
|
|
4
4
|
return !1;
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
if ((error.message || "").match(/stack|recursion/i))
|
|
63
63
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
64
64
|
throw error;
|
|
65
|
-
} }; },
|
|
65
|
+
} }; }, 2224: function (module, exports, __webpack_require__) {
|
|
66
66
|
"use strict";
|
|
67
67
|
var warning = function () { };
|
|
68
68
|
module.exports = warning;
|
|
69
|
-
},
|
|
69
|
+
}, 702: function (module, __webpack_exports__, __webpack_require__) {
|
|
70
70
|
"use strict";
|
|
71
71
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, "WithTooltipPure", (function () { return WithTooltip_WithTooltipPure; })), __webpack_require__.d(__webpack_exports__, "WithToolTipState", (function () { return WithTooltip_WithToolTipState; })), __webpack_require__.d(__webpack_exports__, "WithTooltip", (function () { return WithTooltip_WithToolTipState; }));
|
|
72
72
|
__webpack_require__(16), __webpack_require__(45), __webpack_require__(26), __webpack_require__(7), __webpack_require__(19), __webpack_require__(12), __webpack_require__(10), __webpack_require__(21), __webpack_require__(15), __webpack_require__(17), __webpack_require__(9), __webpack_require__(30), __webpack_require__(18), __webpack_require__(54);
|
|
73
|
-
var react = __webpack_require__(0), react_default = __webpack_require__.n(react), esm = __webpack_require__(3), global_window = __webpack_require__(11), window_default = __webpack_require__.n(global_window), objectWithoutPropertiesLoose = __webpack_require__(118), esm_extends = __webpack_require__(23), inheritsLoose = __webpack_require__(
|
|
73
|
+
var react = __webpack_require__(0), react_default = __webpack_require__.n(react), esm = __webpack_require__(3), global_window = __webpack_require__(11), window_default = __webpack_require__.n(global_window), objectWithoutPropertiesLoose = __webpack_require__(118), esm_extends = __webpack_require__(23), inheritsLoose = __webpack_require__(61), react_dom = __webpack_require__(60), ManagerReferenceNodeContext = react.createContext(), ManagerReferenceNodeSetterContext = react.createContext();
|
|
74
74
|
function Manager(_ref) { var children = _ref.children, _React$useState = react.useState(null), referenceNode = _React$useState[0], setReferenceNode = _React$useState[1], hasUnmounted = react.useRef(!1); react.useEffect((function () { return function () { hasUnmounted.current = !0; }; }), []); var handleSetReferenceNode = react.useCallback((function (node) { hasUnmounted.current || setReferenceNode(node); }), []); return react.createElement(ManagerReferenceNodeContext.Provider, { value: referenceNode }, react.createElement(ManagerReferenceNodeSetterContext.Provider, { value: handleSetReferenceNode }, children)); }
|
|
75
75
|
var unwrapArray = function unwrapArray(arg) { return Array.isArray(arg) ? arg[0] : arg; }, safeInvoke = function safeInvoke(fn) { if ("function" == typeof fn) {
|
|
76
76
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
|
|
@@ -227,12 +227,12 @@
|
|
|
227
227
|
} }, requiresIfExists: ["offset"] }, { name: "arrow", enabled: !0, phase: "main", fn: function arrow(_ref) { var _state$modifiersData$, state = _ref.state, name = _ref.name, options = _ref.options, arrowElement = state.elements.arrow, popperOffsets = state.modifiersData.popperOffsets, basePlacement = getBasePlacement(state.placement), axis = getMainAxisFromPlacement(basePlacement), len = [left, right].indexOf(basePlacement) >= 0 ? "height" : "width"; if (arrowElement && popperOffsets) {
|
|
228
228
|
var paddingObject = function toPaddingObject(padding, state) { return mergePaddingObject("number" != typeof (padding = "function" == typeof padding ? padding(Object.assign({}, state.rects, { placement: state.placement })) : padding) ? padding : expandToHashMap(padding, basePlacements)); }(options.padding, state), arrowRect = getLayoutRect(arrowElement), minProp = "y" === axis ? enums_top : left, maxProp = "y" === axis ? bottom : right, endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len], startDiff = popperOffsets[axis] - state.rects.reference[axis], arrowOffsetParent = getOffsetParent(arrowElement), clientSize = arrowOffsetParent ? "y" === axis ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0, centerToReference = endDiff / 2 - startDiff / 2, min = paddingObject[minProp], max = clientSize - arrowRect[len] - paddingObject[maxProp], center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, offset = within(min, center, max), axisProp = axis;
|
|
229
229
|
state.modifiersData[name] = ((_state$modifiersData$ = {})[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
230
|
-
} }, effect: function arrow_effect(_ref2) { var state = _ref2.state, _options$element = _ref2.options.element, arrowElement = void 0 === _options$element ? "[data-popper-arrow]" : _options$element; null != arrowElement && ("string" != typeof arrowElement || (arrowElement = state.elements.popper.querySelector(arrowElement))) && contains(state.elements.popper, arrowElement) && (state.elements.arrow = arrowElement); }, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }, { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: function hide(_ref) { var state = _ref.state, name = _ref.name, referenceRect = state.rects.reference, popperRect = state.rects.popper, preventedOffsets = state.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state, { elementContext: "reference" }), popperAltOverflow = detectOverflow(state, { altBoundary: !0 }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); state.modifiersData[name] = { referenceClippingOffsets: referenceClippingOffsets, popperEscapeOffsets: popperEscapeOffsets, isReferenceHidden: isReferenceHidden, hasPopperEscaped: hasPopperEscaped }, state.attributes.popper = Object.assign({}, state.attributes.popper, { "data-popper-reference-hidden": isReferenceHidden, "data-popper-escaped": hasPopperEscaped }); } }] }), react_fast_compare = __webpack_require__(
|
|
230
|
+
} }, effect: function arrow_effect(_ref2) { var state = _ref2.state, _options$element = _ref2.options.element, arrowElement = void 0 === _options$element ? "[data-popper-arrow]" : _options$element; null != arrowElement && ("string" != typeof arrowElement || (arrowElement = state.elements.popper.querySelector(arrowElement))) && contains(state.elements.popper, arrowElement) && (state.elements.arrow = arrowElement); }, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }, { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: function hide(_ref) { var state = _ref.state, name = _ref.name, referenceRect = state.rects.reference, popperRect = state.rects.popper, preventedOffsets = state.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state, { elementContext: "reference" }), popperAltOverflow = detectOverflow(state, { altBoundary: !0 }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); state.modifiersData[name] = { referenceClippingOffsets: referenceClippingOffsets, popperEscapeOffsets: popperEscapeOffsets, isReferenceHidden: isReferenceHidden, hasPopperEscaped: hasPopperEscaped }, state.attributes.popper = Object.assign({}, state.attributes.popper, { "data-popper-reference-hidden": isReferenceHidden, "data-popper-escaped": hasPopperEscaped }); } }] }), react_fast_compare = __webpack_require__(2223), react_fast_compare_default = __webpack_require__.n(react_fast_compare), EMPTY_MODIFIERS = [], NOOP = function NOOP() { }, NOOP_PROMISE = function NOOP_PROMISE() { return Promise.resolve(null); }, Popper_EMPTY_MODIFIERS = [];
|
|
231
231
|
function Popper(_ref) { var _ref$placement = _ref.placement, placement = void 0 === _ref$placement ? "bottom" : _ref$placement, _ref$strategy = _ref.strategy, strategy = void 0 === _ref$strategy ? "absolute" : _ref$strategy, _ref$modifiers = _ref.modifiers, modifiers = void 0 === _ref$modifiers ? Popper_EMPTY_MODIFIERS : _ref$modifiers, referenceElement = _ref.referenceElement, onFirstUpdate = _ref.onFirstUpdate, innerRef = _ref.innerRef, children = _ref.children, referenceNode = react.useContext(ManagerReferenceNodeContext), _React$useState = react.useState(null), popperElement = _React$useState[0], setPopperElement = _React$useState[1], _React$useState2 = react.useState(null), arrowElement = _React$useState2[0], setArrowElement = _React$useState2[1]; react.useEffect((function () { setRef(innerRef, popperElement); }), [innerRef, popperElement]); var options = react.useMemo((function () { return { placement: placement, strategy: strategy, onFirstUpdate: onFirstUpdate, modifiers: [].concat(modifiers, [{ name: "arrow", enabled: null != arrowElement, options: { element: arrowElement } }]) }; }), [placement, strategy, onFirstUpdate, modifiers, arrowElement]), _usePopper = function usePopper(referenceElement, popperElement, options) { void 0 === options && (options = {}); var prevOptions = react.useRef(null), optionsWithDefaults = { onFirstUpdate: options.onFirstUpdate, placement: options.placement || "bottom", strategy: options.strategy || "absolute", modifiers: options.modifiers || EMPTY_MODIFIERS }, _React$useState = react.useState({ styles: { popper: { position: optionsWithDefaults.strategy, left: "0", top: "0" }, arrow: { position: "absolute" } }, attributes: {} }), state = _React$useState[0], setState = _React$useState[1], updateStateModifier = react.useMemo((function () { return { name: "updateState", enabled: !0, phase: "write", fn: function fn(_ref) { var state = _ref.state, elements = Object.keys(state.elements); setState({ styles: fromEntries(elements.map((function (element) { return [element, state.styles[element] || {}]; }))), attributes: fromEntries(elements.map((function (element) { return [element, state.attributes[element]]; }))) }); }, requires: ["computeStyles"] }; }), []), popperOptions = react.useMemo((function () { var newOptions = { onFirstUpdate: optionsWithDefaults.onFirstUpdate, placement: optionsWithDefaults.placement, strategy: optionsWithDefaults.strategy, modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, { name: "applyStyles", enabled: !1 }]) }; return react_fast_compare_default()(prevOptions.current, newOptions) ? prevOptions.current || newOptions : (prevOptions.current = newOptions, newOptions); }), [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]), popperInstanceRef = react.useRef(); return useIsomorphicLayoutEffect((function () { popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions); }), [popperOptions]), useIsomorphicLayoutEffect((function () { if (null != referenceElement && null != popperElement) {
|
|
232
232
|
var popperInstance = (options.createPopper || popper_createPopper)(referenceElement, popperElement, popperOptions);
|
|
233
233
|
return popperInstanceRef.current = popperInstance, function () { popperInstance.destroy(), popperInstanceRef.current = null; };
|
|
234
234
|
} }), [referenceElement, popperElement, options.createPopper]), { state: popperInstanceRef.current ? popperInstanceRef.current.state : null, styles: state.styles, attributes: state.attributes, update: popperInstanceRef.current ? popperInstanceRef.current.update : null, forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null }; }(referenceElement || referenceNode, popperElement, options), state = _usePopper.state, styles = _usePopper.styles, forceUpdate = _usePopper.forceUpdate, update = _usePopper.update, childrenProps = react.useMemo((function () { return { ref: setPopperElement, style: styles.popper, placement: state ? state.placement : placement, hasPopperEscaped: state && state.modifiersData.hide ? state.modifiersData.hide.hasPopperEscaped : null, isReferenceHidden: state && state.modifiersData.hide ? state.modifiersData.hide.isReferenceHidden : null, arrowProps: { style: styles.arrow, ref: setArrowElement }, forceUpdate: forceUpdate || NOOP, update: update || NOOP_PROMISE }; }), [setPopperElement, setArrowElement, placement, state, styles, update, forceUpdate]); return unwrapArray(children)(childrenProps); }
|
|
235
|
-
var warning = __webpack_require__(
|
|
235
|
+
var warning = __webpack_require__(2224), warning_default = __webpack_require__.n(warning);
|
|
236
236
|
function Reference(_ref) { var children = _ref.children, innerRef = _ref.innerRef, setReferenceNode = react.useContext(ManagerReferenceNodeSetterContext), refHandler = react.useCallback((function (node) { setRef(innerRef, node), safeInvoke(setReferenceNode, node); }), [innerRef, setReferenceNode]); return react.useEffect((function () { return function () { return setRef(innerRef, null); }; })), react.useEffect((function () { warning_default()(Boolean(setReferenceNode), "`Reference` should not be used outside of a `Manager` component."); }), [setReferenceNode]), unwrapArray(children)({ ref: refHandler }); }
|
|
237
237
|
var TooltipContext = react_default.a.createContext({}), callAll = function callAll() { for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++)
|
|
238
238
|
fns[_key] = arguments[_key]; return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
style.transform = "translate3d(" + x + "px, " + y + "px, 0";
|
|
259
259
|
} return react_default.a.createElement(react_popper_tooltip_Tooltip, Object(esm_extends.a)({ arrowProps: arrowProps, closeOnReferenceHidden: closeOnReferenceHidden, isReferenceHidden: isReferenceHidden, placement: placement, update: update, style: style, tooltip: tooltip, trigger: trigger, mutationObserverOptions: mutationObserverOptions }, { clearScheduled: _this2.clearScheduled, hideTooltip: _this2.hideTooltip, innerRef: ref })); })); return react_default.a.createElement(Manager, null, react_default.a.createElement(Reference, { innerRef: getTriggerRef }, (function (_ref4) { var ref = _ref4.ref; return children({ getTriggerProps: _this2.getTriggerProps, triggerRef: ref }); })), this.getState() && (usePortal ? Object(react_dom.createPortal)(popper, portalContainer) : popper)); }, _proto.isControlled = function isControlled() { return void 0 !== this.props.tooltipShown; }, _proto.getState = function getState() { return this.isControlled() ? this.props.tooltipShown : this.state.tooltipShown; }, _proto.isTriggeredBy = function isTriggeredBy(event) { var trigger = this.props.trigger; return trigger === event || Array.isArray(trigger) && trigger.includes(event); }, TooltipTrigger; }(react.Component);
|
|
260
260
|
react_popper_tooltip_TooltipTrigger.defaultProps = { closeOnReferenceHidden: !0, defaultTooltipShown: !1, delayHide: 0, delayShow: 0, followCursor: !1, onVisibilityChange: function noop() { }, placement: "right", portalContainer: canUseDOM() ? document.body : null, trigger: "hover", usePortal: canUseDOM(), mutationObserverOptions: { childList: !0, subtree: !0 }, modifiers: [] };
|
|
261
|
-
var react_popper_tooltip = react_popper_tooltip_TooltipTrigger, memoizerific = (__webpack_require__(
|
|
261
|
+
var react_popper_tooltip = react_popper_tooltip_TooltipTrigger, memoizerific = (__webpack_require__(86), __webpack_require__(32), __webpack_require__(180), __webpack_require__(24), __webpack_require__(167)), memoizerific_default = __webpack_require__.n(memoizerific), utils = __webpack_require__(114);
|
|
262
262
|
function _extends() { return _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) {
|
|
263
263
|
var source = arguments[i];
|
|
264
264
|
for (var key in source)
|