pds-dev-kit-web 1.9.14 → 1.9.15
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/GlobalStyle.js +1 -1
- package/dist/src/common/components/Navigations/ContextTextLabelNav.d.ts +1 -2
- package/dist/src/common/components/Navigations/ContextTextLabelNav.js +1 -1
- package/dist/src/common/decorators/withFormProvider.js +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +10 -7
- package/dist/src/desktop/components/AdminListHeader/AdminListHeader.js +5 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PageMenuItemNav.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/utils.js +1 -0
- package/dist/src/desktop/components/PageTitleTextGroup/CompoundButton.d.ts +12 -0
- package/dist/src/desktop/components/PageTitleTextGroup/CompoundButton.js +71 -0
- package/dist/src/desktop/components/PageTitleTextGroup/PageTitleTextGroup.d.ts +9 -3
- package/dist/src/desktop/components/PageTitleTextGroup/PageTitleTextGroup.js +21 -5
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +7 -7
- package/dist/src/desktop/components/TextLabel/TextLabel.js +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +10 -7
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +7 -7
- package/dist/storybook-static/{main.12d33990.iframe.bundle.js → main.7cdd8d73.iframe.bundle.js} +29 -29
- package/package.json +1 -1
- package/release-note.md +15 -3
- /package/dist/storybook-static/{main.12d33990.iframe.bundle.d.ts → main.7cdd8d73.iframe.bundle.d.ts} +0 -0
package/dist/src/GlobalStyle.js
CHANGED
|
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var styled_components_1 = require("styled-components");
|
|
8
|
-
var GlobalStyle = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\
|
|
8
|
+
var GlobalStyle = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nhtml {\n height: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n width: 100%;\n }\n\n body {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n height: 100%;\n margin: 0;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n width: 100%;\n }\n\n body::-webkit-scrollbar {\n display: none; /* Chrome, Safari, Opera */\n }\n\n #root {\n height: 100%;\n width: 100%;\n }\n\n div, span, textarea, ul {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n font-stretch: normal;\n font-style: normal;\n letter-spacing: normal;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n }\n\n div::-webkit-scrollbar, span::-webkit-scrollbar, textarea::-webkit-scrollbar, ul::-webkit-scrollbar {\n display: none; /* Chrome, Safari, Opera */\n }\n\n input {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n font-stretch: normal;\n font-style: normal;\n letter-spacing: normal;\n }\n\n a,\n [type='checkbox'],\n [type='radio'] {\n color: inherit;\n -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);\n text-decoration: none;\n }\n\n code {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n button {\n cursor: pointer;\n font-family: inherit;\n outline: none;\n }\n\ninput:-webkit-autofill,\ninput:-webkit-autofill:hover,\ninput:-webkit-autofill:focus,\ninput:-webkit-autofill:active {\n -webkit-text-fill-color: ", " !important;\n transition: background-color 9999s ease-in-out 0s !important;\n}\n"], ["\nhtml {\n height: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n width: 100%;\n }\n\n body {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n height: 100%;\n margin: 0;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n width: 100%;\n }\n\n body::-webkit-scrollbar {\n display: none; /* Chrome, Safari, Opera */\n }\n\n #root {\n height: 100%;\n width: 100%;\n }\n\n div, span, textarea, ul {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n font-stretch: normal;\n font-style: normal;\n letter-spacing: normal;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n }\n\n div::-webkit-scrollbar, span::-webkit-scrollbar, textarea::-webkit-scrollbar, ul::-webkit-scrollbar {\n display: none; /* Chrome, Safari, Opera */\n }\n\n input {\n font-family: Pretendard JP, -apple-system, BlinkMacSystemFont, Basier Square, Noto Sans KR, Segoe UI, Apple SD Gothic Neo, Roboto, Helvetica Neue, Arial, sans-serif;\n font-stretch: normal;\n font-style: normal;\n letter-spacing: normal;\n }\n\n a,\n [type='checkbox'],\n [type='radio'] {\n color: inherit;\n -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);\n text-decoration: none;\n }\n\n code {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n button {\n cursor: pointer;\n font-family: inherit;\n outline: none;\n }\n\ninput:-webkit-autofill,\ninput:-webkit-autofill:hover,\ninput:-webkit-autofill:focus,\ninput:-webkit-autofill:active {\n -webkit-text-fill-color: ", " !important;\n transition: background-color 9999s ease-in-out 0s !important;\n}\n"])), function (_a) {
|
|
9
9
|
var theme = _a.theme;
|
|
10
10
|
return theme.ui_cpnt_textfield_text_typed;
|
|
11
11
|
});
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { ForwardedRefType } from '../../types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
to: string;
|
|
5
|
-
isActive?: boolean;
|
|
6
5
|
text: string;
|
|
7
6
|
openNewTab: boolean;
|
|
8
7
|
preventLineChange?: boolean;
|
|
9
8
|
onClick?: () => void;
|
|
10
9
|
};
|
|
11
|
-
declare function ContextTextLabelNav({ to, text, openNewTab,
|
|
10
|
+
declare function ContextTextLabelNav({ to, text, openNewTab, preventLineChange, onClick }: Props, ref: ForwardedRefType<HTMLAnchorElement>): JSX.Element;
|
|
12
11
|
export default ContextTextLabelNav;
|
|
@@ -9,7 +9,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
9
9
|
var BoxLayout_1 = require("../BoxLayout");
|
|
10
10
|
var NavLink_1 = __importDefault(require("./NavLink"));
|
|
11
11
|
function ContextTextLabelNav(_a, ref) {
|
|
12
|
-
var to = _a.to, text = _a.text, openNewTab = _a.openNewTab, _b = _a.
|
|
12
|
+
var to = _a.to, text = _a.text, openNewTab = _a.openNewTab, _b = _a.preventLineChange, preventLineChange = _b === void 0 ? false : _b, onClick = _a.onClick;
|
|
13
13
|
return preventLineChange ? (react_1.default.createElement(NavLink_1.default, { onClick: onClick, ref: ref, to: to, openNewTab: openNewTab, style: { minWidth: '100%', width: 'max-content' } },
|
|
14
14
|
react_1.default.createElement(BoxLayout_1.Row, null,
|
|
15
15
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
@@ -23,6 +23,7 @@ var components_1 = require("../components");
|
|
|
23
23
|
var withFormProvider = function (storyFn) {
|
|
24
24
|
var methods = (0, react_hook_form_1.useForm)({ mode: 'onChange' });
|
|
25
25
|
var handleSubmit = function (data) {
|
|
26
|
+
// eslint-disable-next-line no-console
|
|
26
27
|
console.log('submit success', data);
|
|
27
28
|
};
|
|
28
29
|
return (react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
@@ -5,6 +5,7 @@ export declare type TextFieldBaseProps = {
|
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
7
7
|
defaultText?: PDSTextType;
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
8
9
|
validation?: {
|
|
9
10
|
[key: string]: any;
|
|
10
11
|
};
|
|
@@ -38,5 +39,5 @@ export declare type TextFieldBaseProps = {
|
|
|
38
39
|
inputRef?: any;
|
|
39
40
|
[x: string]: any;
|
|
40
41
|
} & Record<string, any>;
|
|
41
|
-
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, inputRef, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
42
|
+
declare function TextFieldBase({ name, hintText, defaultText, textAlign, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, inputRef, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
42
43
|
export default TextFieldBase;
|
|
@@ -52,8 +52,8 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
52
52
|
var common_1 = require("../../../../common");
|
|
53
53
|
var IconButton_1 = require("../../../components/IconButton");
|
|
54
54
|
function TextFieldBase(_a) {
|
|
55
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation,
|
|
56
|
-
var
|
|
55
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
56
|
+
var _s = (0, react_hook_form_1.useFormContext)(), register = _s.register, setValue = _s.setValue, getValues = _s.getValues, clearErrors = _s.clearErrors;
|
|
57
57
|
var timeout;
|
|
58
58
|
(0, react_1.useEffect)(function () {
|
|
59
59
|
return function () { return clearTimeout(timeout); };
|
|
@@ -115,7 +115,7 @@ function TextFieldBase(_a) {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
118
|
-
var
|
|
118
|
+
var _t = register(name, validation), ref = _t.ref, refRest = __rest(_t, ["ref"]);
|
|
119
119
|
(0, react_1.useEffect)(function () {
|
|
120
120
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
121
121
|
return;
|
|
@@ -177,7 +177,7 @@ function TextFieldBase(_a) {
|
|
|
177
177
|
var S_TextFieldBase = function () {
|
|
178
178
|
if (textLineType === 'single') {
|
|
179
179
|
return (react_1.default.createElement(S_InputWrapper, null,
|
|
180
|
-
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
180
|
+
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
181
181
|
ref(e);
|
|
182
182
|
if (inputRef) {
|
|
183
183
|
inputRef.current = e;
|
|
@@ -186,7 +186,7 @@ function TextFieldBase(_a) {
|
|
|
186
186
|
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }))));
|
|
187
187
|
}
|
|
188
188
|
if (textLineType === 'multi') {
|
|
189
|
-
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
189
|
+
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
190
190
|
ref(e);
|
|
191
191
|
if (inputRef) {
|
|
192
192
|
inputRef.current = e;
|
|
@@ -194,7 +194,7 @@ function TextFieldBase(_a) {
|
|
|
194
194
|
} })));
|
|
195
195
|
}
|
|
196
196
|
if (textLineType === 'auto') {
|
|
197
|
-
return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows,
|
|
197
|
+
return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
198
198
|
ref(e);
|
|
199
199
|
if (textAreaRef) {
|
|
200
200
|
textAreaRef.current = e;
|
|
@@ -226,7 +226,7 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
226
226
|
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
227
227
|
}[colorTheme];
|
|
228
228
|
});
|
|
229
|
-
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
229
|
+
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-align: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-align: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
230
230
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
231
231
|
return colorTheme &&
|
|
232
232
|
{
|
|
@@ -243,6 +243,9 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
243
243
|
}, function (_a) {
|
|
244
244
|
var textWeight = _a.textWeight;
|
|
245
245
|
return common_1.fontWeight[textWeight];
|
|
246
|
+
}, function (_a) {
|
|
247
|
+
var textAlign = _a.textAlign;
|
|
248
|
+
return textAlign;
|
|
246
249
|
}, function (_a) {
|
|
247
250
|
var textSize = _a.textSize;
|
|
248
251
|
return common_1.desktopLineHeight[textSize];
|
|
@@ -31,7 +31,11 @@ var defaultPaginationTextArray = [
|
|
|
31
31
|
}
|
|
32
32
|
];
|
|
33
33
|
function AdminListHeader(_a) {
|
|
34
|
-
var _b = _a.headerBarSize, headerBarSize = _b === void 0 ? 'regular' : _b, headerBarTitleText = _a.headerBarTitleText,
|
|
34
|
+
var _b = _a.headerBarSize, headerBarSize = _b === void 0 ? 'regular' : _b, headerBarTitleText = _a.headerBarTitleText,
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
+
_c = _a.itemCountUnit,
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
|
+
itemCountUnit = _c === void 0 ? 15 : _c, _d = _a.currentPage, currentPage = _d === void 0 ? 1 : _d, _e = _a.totalPage, totalPage = _e === void 0 ? 1 : _e, contentText = _a.contentText, filterBar = _a.filterBar, _f = _a.dropdownTextArray, dropdownTextArray = _f === void 0 ? defaultPaginationTextArray : _f, dropdownDefaultValue = _a.dropdownDefaultValue, onChangeCount = _a.onChangeCount, onClickNextButton = _a.onClickNextButton, onClickPrevButton = _a.onClickPrevButton;
|
|
35
39
|
return (react_1.default.createElement(S_AdminListHeader, { "x-pds-name": "AdminListHeader", "x-pds-element-type": "component", "x-pds-device-type": "desktop" },
|
|
36
40
|
react_1.default.createElement(HeaderBar_1.default, { titleText: headerBarTitleText, size: headerBarSize, currentPage: currentPage, totalPage: totalPage, dropdownTextArray: dropdownTextArray, dropdownDefaultValue: dropdownDefaultValue, onChangeDropdown: onChangeCount, onClickIBtn1: onClickNextButton, onClickIBtn2: onClickPrevButton }),
|
|
37
41
|
headerBarTitleText && !contentText && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
@@ -56,7 +56,7 @@ function InternalLinkMenuItemNav(_a) {
|
|
|
56
56
|
return (react_1.default.createElement(IconNav_1.default, { onClick: onClickNav, to: internalPath, iconName: menu.iconName, openNewTab: false }));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { onClick: onClickNav,
|
|
59
|
+
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { onClick: onClickNav, preventLineChange: true, openNewTab: false, to: internalPath, text: menu.name })) : (react_1.default.createElement(Navigations_1.TextLabelNav, { onClick: onClickNav, isActive: isActive, preventLineChange: true, openNewTab: false, to: internalPath, text: menu.name }));
|
|
60
60
|
}
|
|
61
61
|
function getInternalLink(basePath, url) {
|
|
62
62
|
var _a = new URL(url), pathname = _a.pathname, search = _a.search;
|
|
@@ -46,6 +46,6 @@ function PAppMenuItemNav(_a) {
|
|
|
46
46
|
return (react_1.default.createElement(IconNav_1.default, { to: basePath + "/" + menu.pAppCode, iconName: menu.iconName, openNewTab: false }));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, {
|
|
49
|
+
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: basePath + "/" + menu.pAppCode, text: menu.name })) : (react_1.default.createElement(Navigations_1.TextLabelNav, { isActive: isActive, preventLineChange: true, openNewTab: false, to: basePath + "/" + menu.pAppCode, text: menu.name }));
|
|
50
50
|
}
|
|
51
51
|
exports.default = PAppMenuItemNav;
|
|
@@ -46,6 +46,6 @@ function PageMenuItemNav(_a) {
|
|
|
46
46
|
return (react_1.default.createElement(IconNav_1.default, { to: basePath + "/pages/" + menu.slug, iconName: menu.iconName, openNewTab: false }));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, {
|
|
49
|
+
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: basePath + "/pages/" + menu.slug, text: menu.name })) : (react_1.default.createElement(Navigations_1.TextLabelNav, { isActive: isActive, preventLineChange: true, openNewTab: false, to: basePath + "/pages/" + menu.slug, text: menu.name }));
|
|
50
50
|
}
|
|
51
51
|
exports.default = PageMenuItemNav;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
5
|
+
iconFillType?: 'fill' | 'line';
|
|
6
|
+
titleText: PDSTextType;
|
|
7
|
+
contentText: PDSTextType;
|
|
8
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function CompoundButton({ iconName, iconFillType, titleText, contentText, onClick, onMouseDown }: Props): JSX.Element;
|
|
12
|
+
export default CompoundButton;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
32
|
+
var hybrid_1 = require("../../../hybrid");
|
|
33
|
+
var TextLabel_1 = require("../TextLabel");
|
|
34
|
+
function CompoundButton(_a) {
|
|
35
|
+
var iconName = _a.iconName, iconFillType = _a.iconFillType, titleText = _a.titleText, contentText = _a.contentText, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
36
|
+
var handleClick = function (e) {
|
|
37
|
+
if (onClick) {
|
|
38
|
+
onClick(e);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var handleMouseDown = function (e) {
|
|
42
|
+
if (onMouseDown) {
|
|
43
|
+
onMouseDown(e);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return (react_1.default.createElement(S_CompoundButtonWrapper, { onClick: handleClick, onMouseDown: handleMouseDown },
|
|
47
|
+
iconName && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
48
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, fillType: iconFillType, size: 24 }),
|
|
49
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }))),
|
|
50
|
+
titleText && contentText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
51
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, singleLineMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
52
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
53
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: contentText, styleTheme: "body2Bold", singleLineMode: "use", colorTheme: "sysTextSecondary", lineLimit: 1, wordBreak: "break_all" })))));
|
|
54
|
+
}
|
|
55
|
+
var size = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n border-radius: 12px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n height: 40px;\n padding: 0 ", ";\n border-radius: 12px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
|
|
56
|
+
var theme = _a.theme;
|
|
57
|
+
return theme.spacing.spacingE;
|
|
58
|
+
});
|
|
59
|
+
var style = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
60
|
+
var theme = _a.theme;
|
|
61
|
+
return theme.ui_cpnt_button_line_base_hover;
|
|
62
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
63
|
+
var theme = _a.theme;
|
|
64
|
+
return theme.ui_cpnt_button_secondary_on_base_hover;
|
|
65
|
+
}, function (_a) {
|
|
66
|
+
var theme = _a.theme;
|
|
67
|
+
return theme.ui_cpnt_button_secondary_on_base_pressed;
|
|
68
|
+
});
|
|
69
|
+
var S_CompoundButtonWrapper = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n min-width: max-content;\n\n ", "\n ", "\n\n &:focus {\n outline: none;\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n min-width: max-content;\n\n ", "\n ", "\n\n &:focus {\n outline: none;\n }\n"])), style, size);
|
|
70
|
+
exports.default = CompoundButton;
|
|
71
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PDSTextType } from '../../../common';
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
declare type PageTitleTextGroupProps = {
|
|
4
4
|
titleText: PDSTextType;
|
|
5
|
-
|
|
5
|
+
tooltipText?: PDSTextType;
|
|
6
|
+
compoundBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
|
+
compoundBtnIconFillType?: 'fill' | 'line';
|
|
8
|
+
compoundBtnTitleText?: PDSTextType;
|
|
9
|
+
compoundBtnContentText?: PDSTextType;
|
|
10
|
+
displayType?: 'normal' | 'edit_btn' | 'compound_btn';
|
|
6
11
|
btn1State?: 'normal' | 'disabled';
|
|
7
12
|
onClickBtn1?: () => void;
|
|
13
|
+
onClickCompoundBtn?: () => void;
|
|
8
14
|
};
|
|
9
|
-
declare function PageTitleTextGroup({ titleText, displayType, btn1State, onClickBtn1 }: PageTitleTextGroupProps): JSX.Element;
|
|
15
|
+
declare function PageTitleTextGroup({ titleText, tooltipText, compoundBtnIconName, compoundBtnIconFillType, compoundBtnTitleText, compoundBtnContentText, displayType, btn1State, onClickBtn1, onClickCompoundBtn }: PageTitleTextGroupProps): JSX.Element;
|
|
10
16
|
export default PageTitleTextGroup;
|
|
@@ -12,17 +12,33 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
12
12
|
var hybrid_1 = require("../../../hybrid");
|
|
13
13
|
var IconButton_1 = require("../IconButton");
|
|
14
14
|
var TextLabel_1 = require("../TextLabel");
|
|
15
|
+
var CompoundButton_1 = __importDefault(require("./CompoundButton"));
|
|
15
16
|
function PageTitleTextGroup(_a) {
|
|
16
|
-
var titleText = _a.titleText, _b = _a.displayType, displayType = _b === void 0 ? 'normal' : _b, _c = _a.btn1State, btn1State = _c === void 0 ? 'normal' : _c, onClickBtn1 = _a.onClickBtn1;
|
|
17
|
+
var titleText = _a.titleText, tooltipText = _a.tooltipText, compoundBtnIconName = _a.compoundBtnIconName, compoundBtnIconFillType = _a.compoundBtnIconFillType, compoundBtnTitleText = _a.compoundBtnTitleText, compoundBtnContentText = _a.compoundBtnContentText, _b = _a.displayType, displayType = _b === void 0 ? 'normal' : _b, _c = _a.btn1State, btn1State = _c === void 0 ? 'normal' : _c, onClickBtn1 = _a.onClickBtn1, onClickCompoundBtn = _a.onClickCompoundBtn;
|
|
18
|
+
var handleClickBtn1 = function () {
|
|
19
|
+
if (onClickBtn1) {
|
|
20
|
+
onClickBtn1();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var handleClickCompoundBtn = function () {
|
|
24
|
+
if (onClickCompoundBtn) {
|
|
25
|
+
onClickCompoundBtn();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
17
28
|
return (react_1.default.createElement(S_PageTitleTextGroup, { "x-pds-name": "PageTitleTextGroup", "x-pds-element-type": "component", "x-pds-device-type": "desktop" },
|
|
18
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "headingBold" }),
|
|
29
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "headingBold", tooltipText: tooltipText }),
|
|
19
30
|
displayType === 'edit_btn' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
31
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
21
|
-
react_1.default.createElement(IconButton_1.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_edit", iconFillType: "fill", iconColorKey: "ui_cpnt_button_icon_primary", baseColorKey: "ui_cpnt_button_fill_base_transparent", state: btn1State, onClick:
|
|
32
|
+
react_1.default.createElement(IconButton_1.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_edit", iconFillType: "fill", iconColorKey: "ui_cpnt_button_icon_primary", baseColorKey: "ui_cpnt_button_fill_base_transparent", state: btn1State, onClick: handleClickBtn1 }))),
|
|
33
|
+
displayType === 'compound_btn' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
34
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
35
|
+
react_1.default.createElement(S_CompoundButtonWrapper, null,
|
|
36
|
+
react_1.default.createElement(CompoundButton_1.default, { iconName: compoundBtnIconName, iconFillType: compoundBtnIconFillType, titleText: compoundBtnTitleText, contentText: compoundBtnContentText, onClick: handleClickCompoundBtn }))))));
|
|
22
37
|
}
|
|
23
|
-
var S_PageTitleTextGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n height: 40px;\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n height: 40px;\n"])), function (_a) {
|
|
38
|
+
var S_PageTitleTextGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n min-height: 40px;\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n min-height: 40px;\n"])), function (_a) {
|
|
24
39
|
var theme = _a.theme;
|
|
25
40
|
return theme.ui_cpnt_textgroup_base_area;
|
|
26
41
|
});
|
|
42
|
+
var S_CompoundButtonWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-left: auto;\n margin-bottom: auto;\n"], ["\n margin-left: auto;\n margin-bottom: auto;\n"])));
|
|
27
43
|
exports.default = PageTitleTextGroup;
|
|
28
|
-
var templateObject_1;
|
|
44
|
+
var templateObject_1, templateObject_2;
|
|
@@ -5,6 +5,7 @@ export declare type TextFieldProps = {
|
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
7
7
|
defaultText?: PDSTextType;
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
8
9
|
prefixText?: PDSTextType;
|
|
9
10
|
suffixText?: PDSTextType;
|
|
10
11
|
validation?: {
|
|
@@ -40,5 +41,5 @@ export declare type TextFieldProps = {
|
|
|
40
41
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
41
42
|
onTarget?: () => void;
|
|
42
43
|
};
|
|
43
|
-
declare function TextField({ name, hintText, defaultText, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
44
|
+
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
44
45
|
export default TextField;
|
|
@@ -34,7 +34,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
34
34
|
var TextLabel_1 = require("../TextLabel");
|
|
35
35
|
function TextField(_a) {
|
|
36
36
|
var _b;
|
|
37
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation,
|
|
37
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
38
38
|
var basicThemeIconColors = {
|
|
39
39
|
normal: 'ui_cpnt_button_icon_default',
|
|
40
40
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -50,9 +50,9 @@ function TextField(_a) {
|
|
|
50
50
|
read_only: 'ui_cpnt_textfield_icon_colortheme_transparent_readonly',
|
|
51
51
|
disabled: 'ui_cpnt_textfield_icon_colortheme_transparent_disabled'
|
|
52
52
|
};
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
53
|
+
var _t = (0, react_1.useState)(false), isFocused = _t[0], setIsFocused = _t[1];
|
|
54
|
+
var _u = (0, react_hook_form_1.useFormContext)(), register = _u.register, trigger = _u.trigger, errors = _u.formState.errors;
|
|
55
|
+
var _v = register(name, validation), validateOnChange = _v.onChange, validateOnBlur = _v.onBlur;
|
|
56
56
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
57
57
|
var handleClickIBtn1 = function () {
|
|
58
58
|
if (onClickIBtn1) {
|
|
@@ -107,10 +107,10 @@ function TextField(_a) {
|
|
|
107
107
|
}
|
|
108
108
|
var S_TextField = function () {
|
|
109
109
|
if (textLineType === 'multi') {
|
|
110
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
110
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
111
111
|
}
|
|
112
112
|
if (textLineType === 'auto') {
|
|
113
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
113
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
114
114
|
}
|
|
115
115
|
if (textLineType === 'single') {
|
|
116
116
|
var deleteIconColor = 'ui_cpnt_button_icon_disabled';
|
|
@@ -128,7 +128,7 @@ function TextField(_a) {
|
|
|
128
128
|
prefixText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
129
129
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }),
|
|
130
130
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }))),
|
|
131
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }),
|
|
131
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }),
|
|
132
132
|
react_1.default.createElement(S_RightBox, null,
|
|
133
133
|
suffixText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
134
134
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
@@ -391,7 +391,7 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_41 || (templ
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
var S_IconWrapper = styled_components_1.default.div(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"])));
|
|
394
|
-
var S_TooltipWrapper = styled_components_1.default.div(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n z-index:
|
|
394
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n z-index: 400;\n\n ", ";\n\n ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n z-index: 400;\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
395
395
|
var theme = _a.theme;
|
|
396
396
|
return theme.ui_cpnt_contextmenu_base;
|
|
397
397
|
}, function (_a) {
|
|
@@ -5,6 +5,7 @@ export declare type TextFieldBaseProps = {
|
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
7
7
|
defaultText?: PDSTextType;
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
8
9
|
validation?: {
|
|
9
10
|
[key: string]: any;
|
|
10
11
|
};
|
|
@@ -37,5 +38,5 @@ export declare type TextFieldBaseProps = {
|
|
|
37
38
|
onTarget?: () => void;
|
|
38
39
|
[x: string]: any;
|
|
39
40
|
} & Record<string, any>;
|
|
40
|
-
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
41
|
+
declare function TextFieldBase({ name, hintText, defaultText, textAlign, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, autoComplete, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
41
42
|
export default TextFieldBase;
|
|
@@ -52,8 +52,8 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
52
52
|
var common_1 = require("../../../../common");
|
|
53
53
|
var IconButton_1 = require("../../../components/IconButton");
|
|
54
54
|
function TextFieldBase(_a) {
|
|
55
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation,
|
|
56
|
-
var
|
|
55
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.enterSubmitMode, enterSubmitMode = _d === void 0 ? 'none' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _f = _a.inputType, inputType = _f === void 0 ? 'text' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, min = _a.min, max = _a.max, _j = _a.maxLength, maxLength = _j === void 0 ? Infinity : _j, _k = _a.textSize, textSize = _k === void 0 ? 'form2' : _k, _l = _a.textWeight, textWeight = _l === void 0 ? 'normal' : _l, textPadding = _a.textPadding, _m = _a.fieldHeight, fieldHeight = _m === void 0 ? 48 : _m, _o = _a.deleteIconMode, deleteIconMode = _o === void 0 ? 'use' : _o, _p = _a.deleteIconSize, deleteIconSize = _p === void 0 ? 20 : _p, _q = _a.deleteIconColor, deleteIconColor = _q === void 0 ? 'ui_cpnt_button_icon_disabled' : _q, isFocused = _a.isFocused, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "textAlign", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "autoComplete", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
|
|
56
|
+
var _s = (0, react_hook_form_1.useFormContext)(), register = _s.register, setValue = _s.setValue, getValues = _s.getValues, clearErrors = _s.clearErrors;
|
|
57
57
|
var timeout;
|
|
58
58
|
(0, react_1.useEffect)(function () {
|
|
59
59
|
return function () { return clearTimeout(timeout); };
|
|
@@ -115,7 +115,7 @@ function TextFieldBase(_a) {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
var textAreaRef = (0, react_1.useRef)(null);
|
|
118
|
-
var
|
|
118
|
+
var _t = register(name, validation), ref = _t.ref, refRest = __rest(_t, ["ref"]);
|
|
119
119
|
(0, react_1.useEffect)(function () {
|
|
120
120
|
if (textAreaRef === null || textAreaRef.current === null) {
|
|
121
121
|
return;
|
|
@@ -177,14 +177,14 @@ function TextFieldBase(_a) {
|
|
|
177
177
|
var S_TextFieldBase = function () {
|
|
178
178
|
if (textLineType === 'single') {
|
|
179
179
|
return (react_1.default.createElement(S_InputWrapper, null,
|
|
180
|
-
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
|
|
180
|
+
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
|
|
181
181
|
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }))));
|
|
182
182
|
}
|
|
183
183
|
if (textLineType === 'multi') {
|
|
184
|
-
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
|
|
184
|
+
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
|
|
185
185
|
}
|
|
186
186
|
if (textLineType === 'auto') {
|
|
187
|
-
return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows,
|
|
187
|
+
return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, placeholder: hintText, textAlign: textAlign, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, autoComplete: autoComplete, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
188
188
|
ref(e);
|
|
189
189
|
textAreaRef.current = e;
|
|
190
190
|
}, onInput: handleResizeHeight })));
|
|
@@ -211,7 +211,7 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
211
211
|
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
212
212
|
}[colorTheme];
|
|
213
213
|
});
|
|
214
|
-
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
214
|
+
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-align: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-align: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
215
215
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
216
216
|
return colorTheme &&
|
|
217
217
|
{
|
|
@@ -225,6 +225,9 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
225
225
|
}, function (_a) {
|
|
226
226
|
var textWeight = _a.textWeight;
|
|
227
227
|
return common_1.fontWeight[textWeight];
|
|
228
|
+
}, function (_a) {
|
|
229
|
+
var textAlign = _a.textAlign;
|
|
230
|
+
return textAlign;
|
|
228
231
|
}, function (_a) {
|
|
229
232
|
var textSize = _a.textSize;
|
|
230
233
|
return common_1.desktopLineHeight[textSize];
|
|
@@ -5,6 +5,7 @@ export declare type TextFieldProps = {
|
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
7
7
|
defaultText?: PDSTextType;
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
8
9
|
prefixText?: PDSTextType;
|
|
9
10
|
suffixText?: PDSTextType;
|
|
10
11
|
validation?: {
|
|
@@ -40,5 +41,5 @@ export declare type TextFieldProps = {
|
|
|
40
41
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
41
42
|
onTarget?: () => void;
|
|
42
43
|
};
|
|
43
|
-
declare function TextField({ name, hintText, defaultText, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
44
|
+
declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
44
45
|
export default TextField;
|