pds-dev-kit-web-test 2.6.2 → 2.6.4
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 +5 -5
- package/dist/index.js +5 -7
- package/dist/src/common/assets/icons/fill/Gift.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Gift.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +3 -1
- package/dist/src/common/assets/icons/line/Gift.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Gift.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +3 -1
- package/dist/src/common/types/index.d.ts +1 -1
- package/dist/src/common/types/index.js +1 -1
- package/dist/src/common/types/{LocalizedContent.d.ts → multilingual.d.ts} +5 -6
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +5 -4
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +53 -3
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.d.ts +5 -3
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.js +51 -3
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +3 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +21 -10
- package/dist/src/desktop/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -1
- package/dist/src/desktop/components/TextField/TextField.js +22 -11
- package/dist/src/desktop/components/index.d.ts +1 -2
- package/dist/src/desktop/components/index.js +1 -3
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +1 -3
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +13 -0
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +206 -0
- package/dist/src/desktop/panels/MultilingualModal/index.d.ts +1 -0
- package/dist/src/desktop/panels/{LocalizedContentModal → MultilingualModal}/index.js +2 -2
- package/dist/src/desktop/panels/index.d.ts +2 -2
- package/dist/src/desktop/panels/index.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +5 -3
- package/package.json +1 -1
- package/release-note.md +3 -3
- package/dist/src/common/styles/editorContentStyle.d.ts +0 -1
- package/dist/src/common/styles/editorContentStyle.js +0 -76
- package/dist/src/desktop/components/LocalizedButton/LocalizedButton.d.ts +0 -8
- package/dist/src/desktop/components/LocalizedButton/LocalizedButton.js +0 -44
- package/dist/src/desktop/components/LocalizedButton/index.d.ts +0 -1
- package/dist/src/desktop/components/LocalizedButton/index.js +0 -8
- package/dist/src/desktop/panels/LocalizedContentModal/LocalizedContentModal.d.ts +0 -24
- package/dist/src/desktop/panels/LocalizedContentModal/LocalizedContentModal.js +0 -81
- package/dist/src/desktop/panels/LocalizedContentModal/index.d.ts +0 -1
- /package/dist/src/common/types/{LocalizedContent.js → multilingual.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -8,20 +8,20 @@ export { AdminListItemTransition, InputTransition, ButtonTransition } from './sr
|
|
8
8
|
export { Form };
|
9
9
|
import { Divider, Icon, ImageView, LinearProgress, LottieIcon, Spacing, Switch } from './src/hybrid';
|
10
10
|
export { Divider, Icon, ImageView, LinearProgress, LottieIcon, Spacing, Switch };
|
11
|
-
import { LayoutWF, WFContainersBox, LayoutWH, WHContainersBox, LayoutWS, WSGlobalMenuContainer, WSContainersBox, LayoutWT, WTGlobalMenuContainer, WTContainersBox, D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicButtonGroup, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_BoxItem, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopHeaderBar, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_LottieReactionButton, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_SegmentedButtonGroup, D_Select, D_Slider, D_Snackbar, D_StatusBlock, D_TextButton, D_PriceTextField, D_TextField, D_TextLabel, D_PriceTextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab, D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopBasicModalWithTab, DesktopBasicModalWithTabInfoType, D_DesktopHeadlessModal, D_DesktopTutorialModal, DesktopTutorialModalInfoType, D_SectionSheet, D_Calendar
|
11
|
+
import { LayoutWF, WFContainersBox, LayoutWH, WHContainersBox, LayoutWS, WSGlobalMenuContainer, WSContainersBox, LayoutWT, WTGlobalMenuContainer, WTContainersBox, D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicButtonGroup, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_BoxItem, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopHeaderBar, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_LottieReactionButton, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_RichTextEditor, D_SegmentedButtonGroup, D_Select, D_Slider, D_Snackbar, D_StatusBlock, D_TextButton, D_PriceTextField, D_TextField, D_TextLabel, D_PriceTextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab, D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopBasicModalWithTab, DesktopBasicModalWithTabInfoType, D_DesktopHeadlessModal, D_DesktopTutorialModal, DesktopTutorialModalInfoType, D_SectionSheet, D_Calendar } from './src/desktop';
|
12
12
|
export { LayoutWF, WFContainersBox };
|
13
13
|
export { LayoutWH, WHContainersBox };
|
14
14
|
export { LayoutWS, WSGlobalMenuContainer, WSContainersBox };
|
15
15
|
export { LayoutWT, WTGlobalMenuContainer, WTContainersBox };
|
16
|
-
export { D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicButtonGroup, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_BoxItem, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopHeaderBar, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_LottieReactionButton, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_SegmentedButtonGroup, D_Select, D_Slider, D_Snackbar, D_StatusBlock, D_TextButton, D_PriceTextField, D_TextField, D_TextLabel, D_PriceTextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab, D_Calendar
|
17
|
-
export { D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopBasicModalWithTab, D_DesktopHeadlessModal, D_DesktopTutorialModal,
|
16
|
+
export { D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicButtonGroup, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_BoxItem, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopHeaderBar, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_LottieReactionButton, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_RichTextEditor, D_SegmentedButtonGroup, D_Select, D_Slider, D_Snackbar, D_StatusBlock, D_TextButton, D_PriceTextField, D_TextField, D_TextLabel, D_PriceTextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab, D_Calendar };
|
17
|
+
export { D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopBasicModalWithTab, D_DesktopHeadlessModal, D_DesktopTutorialModal, D_SectionSheet };
|
18
18
|
export type { DesktopBasicModalWithTabInfoType, DesktopTutorialModalInfoType };
|
19
|
-
import { LayoutMF, MFContainersBox, LayoutMM, MMNavigationContainer, MMContainersBox, LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox, LayoutMS, MSNavigationContainer, MSContainersBox, M_BasicButtonGroup, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_BoxItem, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_DatePicker, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_LottieReactionButton, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_SegmentedButtonGroup, M_Select, M_Slider, M_Snackbar, M_StatusBlock, M_TextButton, M_PriceTextField, M_TextField, M_TextLabel, M_PriceTextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton, M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet
|
19
|
+
import { LayoutMF, MFContainersBox, LayoutMM, MMNavigationContainer, MMContainersBox, LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox, LayoutMS, MSNavigationContainer, MSContainersBox, M_BasicButtonGroup, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_BoxItem, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_DatePicker, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_LottieReactionButton, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_RichTextEditor, M_SegmentedButtonGroup, M_Select, M_Slider, M_Snackbar, M_StatusBlock, M_TextButton, M_PriceTextField, M_TextField, M_TextLabel, M_PriceTextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton, M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet } from './src/mobile';
|
20
20
|
export { LayoutMF, MFContainersBox };
|
21
21
|
export { LayoutMM, MMNavigationContainer, MMContainersBox };
|
22
22
|
export { LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox };
|
23
23
|
export { LayoutMS, MSNavigationContainer, MSContainersBox };
|
24
|
-
export { M_BasicButtonGroup, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_BoxItem, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_DatePicker, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_LottieReactionButton, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_SegmentedButtonGroup, M_Select, M_Slider, M_Snackbar, M_StatusBlock, M_TextButton, M_PriceTextField, M_TextField, M_TextLabel, M_PriceTextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton
|
24
|
+
export { M_BasicButtonGroup, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_BoxItem, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_DatePicker, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_LottieReactionButton, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_RichTextEditor, M_SegmentedButtonGroup, M_Select, M_Slider, M_Snackbar, M_StatusBlock, M_TextButton, M_PriceTextField, M_TextField, M_TextLabel, M_PriceTextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
25
25
|
export { M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet };
|
26
26
|
import { DynamicLayout } from './src/sub';
|
27
27
|
export { DynamicLayout };
|
package/dist/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.LayoutWF = exports.Switch = exports.Spacing = exports.LottieIcon = exports.LinearProgress = exports.ImageView = exports.Icon = exports.Divider = exports.Form = exports.ButtonTransition = exports.InputTransition = exports.AdminListItemTransition = exports.scaleBounceOutIncludeTranslate02 = exports.scaleBounceInIncludeTranslate02 = exports.scaleBounceOutIncludeTranslate = exports.scaleBounceInIncludeTranslate = exports.scaleBounceOut02 = exports.scaleBounceOut = exports.scaleBounceIn02 = exports.scaleBounceIn = exports.gelatine = exports.scaleDownIncludeTranslate = exports.scaleUpIncludeTranslate = exports.scaleDown = exports.scaleUp = exports.glow = exports.fadeOut = exports.fadeIn = exports.modalOverlayOffAni = exports.modalOverlayOnAni = exports.modalOffAni = exports.modalOnAni = exports.dialogOverlayOffAni = exports.dialogOverlayOnAni = exports.dialogOffAni = exports.dialogOnAni = exports.theme = exports.customTheme = exports.uiColors = exports.spacing = exports.boxShadow = exports.mobileEditorLineHeight = exports.mobileEditorFontSize = exports.mobileLineHeight = exports.mobileFontSize = exports.desktopEditorLineHeight = exports.desktopEditorFontSize = exports.desktopLineHeight = exports.desktopFontSize = exports.fontWeight = void 0;
|
4
|
-
exports.
|
5
|
-
exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BoxItem = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.M_BasicButtonGroup = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = exports.D_SectionSheet = exports.
|
6
|
-
exports.ToolBar = exports.BulkActionBar = exports.AdminListItem = exports.AdminListHeader = exports.AdminList = exports.DynamicLayout = exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.
|
4
|
+
exports.D_Slider = exports.D_Select = exports.D_SegmentedButtonGroup = exports.D_RichTextEditor = exports.D_ReactionButton = exports.D_Radio = exports.D_PageTitleTextGroup = exports.D_MainButton = exports.D_LottieReactionButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_HorizontalFormGroup = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DynamicDesktopNavBarTemplates = exports.D_DynamicDesktopNavBar = exports.D_Dropdown = exports.D_DesktopTabBar = exports.D_DesktopHeaderBar = exports.D_DesktopAlertDialog = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_ChatList = exports.D_ChatBubbleListItem = exports.D_CardList = exports.D_Card = exports.D_BoxItem = exports.D_BodyTextGroup = exports.D_BlogTextField = exports.D_BasicListItem = exports.D_BasicList = exports.D_BasicFormGroup = exports.D_BasicChatListItem = exports.D_BasicButtonGroup = exports.D_AdminListItem = exports.D_AdminListHeader = exports.D_AdminList = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WHContainersBox = exports.LayoutWH = exports.WFContainersBox = void 0;
|
5
|
+
exports.M_DatePicker = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BoxItem = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.M_BasicButtonGroup = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = exports.D_SectionSheet = exports.D_DesktopTutorialModal = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModalWithTab = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_Calendar = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_PriceTextLabel = exports.D_TextLabel = exports.D_TextField = exports.D_PriceTextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_Snackbar = void 0;
|
6
|
+
exports.ToolBar = exports.BulkActionBar = exports.AdminListItem = exports.AdminListHeader = exports.AdminList = exports.DynamicLayout = exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_PriceTextLabel = exports.M_TextLabel = exports.M_TextField = exports.M_PriceTextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Snackbar = exports.M_Slider = exports.M_Select = exports.M_SegmentedButtonGroup = exports.M_RichTextEditor = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_LottieReactionButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_FloatingActionButton = exports.M_Dropdown = void 0;
|
7
7
|
/* eslint-disable import/order */
|
8
8
|
/* eslint-disable import/first */
|
9
9
|
// common
|
@@ -114,6 +114,7 @@ Object.defineProperty(exports, "D_MainButton", { enumerable: true, get: function
|
|
114
114
|
Object.defineProperty(exports, "D_PageTitleTextGroup", { enumerable: true, get: function () { return desktop_1.D_PageTitleTextGroup; } });
|
115
115
|
Object.defineProperty(exports, "D_Radio", { enumerable: true, get: function () { return desktop_1.D_Radio; } });
|
116
116
|
Object.defineProperty(exports, "D_ReactionButton", { enumerable: true, get: function () { return desktop_1.D_ReactionButton; } });
|
117
|
+
Object.defineProperty(exports, "D_RichTextEditor", { enumerable: true, get: function () { return desktop_1.D_RichTextEditor; } });
|
117
118
|
Object.defineProperty(exports, "D_SegmentedButtonGroup", { enumerable: true, get: function () { return desktop_1.D_SegmentedButtonGroup; } });
|
118
119
|
Object.defineProperty(exports, "D_Select", { enumerable: true, get: function () { return desktop_1.D_Select; } });
|
119
120
|
Object.defineProperty(exports, "D_Slider", { enumerable: true, get: function () { return desktop_1.D_Slider; } });
|
@@ -138,9 +139,6 @@ Object.defineProperty(exports, "D_DesktopHeadlessModal", { enumerable: true, get
|
|
138
139
|
Object.defineProperty(exports, "D_DesktopTutorialModal", { enumerable: true, get: function () { return desktop_1.D_DesktopTutorialModal; } });
|
139
140
|
Object.defineProperty(exports, "D_SectionSheet", { enumerable: true, get: function () { return desktop_1.D_SectionSheet; } });
|
140
141
|
Object.defineProperty(exports, "D_Calendar", { enumerable: true, get: function () { return desktop_1.D_Calendar; } });
|
141
|
-
Object.defineProperty(exports, "D_RichTextEditor", { enumerable: true, get: function () { return desktop_1.D_RichTextEditor; } });
|
142
|
-
Object.defineProperty(exports, "D_LocalizedContentModal", { enumerable: true, get: function () { return desktop_1.D_LocalizedContentModal; } });
|
143
|
-
Object.defineProperty(exports, "LocalizedButton", { enumerable: true, get: function () { return desktop_1.LocalizedButton; } });
|
144
142
|
// mobile
|
145
143
|
var mobile_1 = require("./src/mobile");
|
146
144
|
Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return mobile_1.LayoutMF; } });
|
@@ -184,6 +182,7 @@ Object.defineProperty(exports, "M_MobileHeaderBar", { enumerable: true, get: fun
|
|
184
182
|
Object.defineProperty(exports, "M_MobileTabBar", { enumerable: true, get: function () { return mobile_1.M_MobileTabBar; } });
|
185
183
|
Object.defineProperty(exports, "M_Radio", { enumerable: true, get: function () { return mobile_1.M_Radio; } });
|
186
184
|
Object.defineProperty(exports, "M_ReactionButton", { enumerable: true, get: function () { return mobile_1.M_ReactionButton; } });
|
185
|
+
Object.defineProperty(exports, "M_RichTextEditor", { enumerable: true, get: function () { return mobile_1.M_RichTextEditor; } });
|
187
186
|
Object.defineProperty(exports, "M_SegmentedButtonGroup", { enumerable: true, get: function () { return mobile_1.M_SegmentedButtonGroup; } });
|
188
187
|
Object.defineProperty(exports, "M_Select", { enumerable: true, get: function () { return mobile_1.M_Select; } });
|
189
188
|
Object.defineProperty(exports, "M_Slider", { enumerable: true, get: function () { return mobile_1.M_Slider; } });
|
@@ -201,7 +200,6 @@ Object.defineProperty(exports, "M_AnnotationSheet", { enumerable: true, get: fun
|
|
201
200
|
Object.defineProperty(exports, "M_ContentSheet", { enumerable: true, get: function () { return mobile_1.M_ContentSheet; } });
|
202
201
|
Object.defineProperty(exports, "M_MobileBasicModal", { enumerable: true, get: function () { return mobile_1.M_MobileBasicModal; } });
|
203
202
|
Object.defineProperty(exports, "M_SectionSheet", { enumerable: true, get: function () { return mobile_1.M_SectionSheet; } });
|
204
|
-
Object.defineProperty(exports, "M_RichTextEditor", { enumerable: true, get: function () { return mobile_1.M_RichTextEditor; } });
|
205
203
|
// sub
|
206
204
|
// dynamicLayout
|
207
205
|
var sub_1 = require("./src/sub");
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
14
|
+
var t = {};
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
16
|
+
t[p] = s[p];
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
20
|
+
t[p[i]] = s[p[i]];
|
21
|
+
}
|
22
|
+
return t;
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
26
|
+
var Gift = function (_a) {
|
27
|
+
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
28
|
+
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsxs)("g", __assign({ fill: "none" }, { children: [(0, jsx_runtime_1.jsx)("path", { stroke: color, strokeWidth: "2", d: "M14.7435,3.0896 C15.3015,2.3966 16.2405,2.0886 17.1355,2.3756 C18.3065,2.7506 18.9475,3.9956 18.5725,5.1676 C18.2765,6.0906 17.4285,6.6696 16.5245,6.7056 L14.0885,6.8386 L12.3581175,6.94762172 L12.3973,6.997 L11.9921175,6.97062172 L11.6005,6.9966 L11.6381175,6.94762172 L9.9103,6.838 L7.4733,6.706 C6.5693,6.67 5.7223,6.091 5.4263,5.167 C5.0513,3.996 5.6913,2.751 6.8623,2.376 C7.7583,2.089 8.6963,2.397 9.2553,3.09 L11.9981175,6.50062172 Z M11.9991,5.9648 L11.9991,20.8798" }), (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M19.0069,6.4449 C20.9399,6.4449 22.5069,8.0119 22.5069,9.9449 L22.5069,11.6379 C22.5069,12.3566198 22.1275815,12.987185 21.5579445,13.339768 L21.5573,18.5922 C21.5573,20.5252 19.9903,22.0922 18.0573,22.0922 L5.9413,22.0922 C4.0083,22.0922 2.4413,20.5252 2.4413,18.5922 L2.44061969,13.3399663 C1.87078479,12.9874215 1.4909,12.3567545 1.4909,11.6379 L1.4909,9.9449 C1.4909,8.0119 3.0589,6.4449 4.9909,6.4449 Z M19.5569,13.6379 L4.4409,13.6379 L4.4413,18.5922 C4.4413,19.3705529 5.03745225,20.0124907 5.79706308,20.0853195 L5.9413,20.0922 L18.0573,20.0922 C18.8843,20.0922 19.5573,19.4192 19.5573,18.5922 L19.5569,13.6379 Z M19.0069,8.4449 L4.9909,8.4449 C4.1639,8.4449 3.4909,9.1179 3.4909,9.9449 L3.4909,11.6239 L20.5069,11.6239 L20.5069,9.9449 C20.5069,9.16654706 19.9107478,8.52460934 19.1511369,8.45178052 L19.0069,8.4449 Z" })] })) })));
|
29
|
+
};
|
30
|
+
exports.default = Gift;
|
@@ -166,5 +166,6 @@ declare const fillIcons: {
|
|
166
166
|
readonly ic_video_stop: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
167
167
|
readonly ic_cam: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
168
168
|
readonly ic_cam_off: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
169
|
+
readonly ic_gift: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
169
170
|
};
|
170
171
|
export default fillIcons;
|
@@ -61,6 +61,7 @@ var Envelope_1 = __importDefault(require("./Envelope"));
|
|
61
61
|
var Eye_1 = __importDefault(require("./Eye"));
|
62
62
|
var EyeClose_1 = __importDefault(require("./EyeClose"));
|
63
63
|
var Face_1 = __importDefault(require("./Face"));
|
64
|
+
var Gift_1 = __importDefault(require("./Gift"));
|
64
65
|
var Group_1 = __importDefault(require("./Group"));
|
65
66
|
var Heart_1 = __importDefault(require("./Heart"));
|
66
67
|
var HelpWindow_1 = __importDefault(require("./HelpWindow"));
|
@@ -335,6 +336,7 @@ var fillIcons = {
|
|
335
336
|
ic_send_to_back_arrow: SendToBackArrow_1.default,
|
336
337
|
ic_video_stop: VideoStop_1.default,
|
337
338
|
ic_cam: Cam_1.default,
|
338
|
-
ic_cam_off: CamOff_1.default
|
339
|
+
ic_cam_off: CamOff_1.default,
|
340
|
+
ic_gift: Gift_1.default
|
339
341
|
};
|
340
342
|
exports.default = fillIcons;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
14
|
+
var t = {};
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
16
|
+
t[p] = s[p];
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
20
|
+
t[p[i]] = s[p[i]];
|
21
|
+
}
|
22
|
+
return t;
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
26
|
+
var Gift = function (_a) {
|
27
|
+
var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
|
28
|
+
return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsxs)("g", __assign({ fill: "none" }, { children: [(0, jsx_runtime_1.jsx)("path", { stroke: color, strokeWidth: "1.5", d: "M14.7435,3.0896 C15.3015,2.3966 16.2405,2.0886 17.1355,2.3756 C18.3065,2.7506 18.9475,3.9956 18.5725,5.1676 C18.2765,6.0906 17.4285,6.6696 16.5245,6.7056 L14.0885,6.8386 L12.3581175,6.94762172 L12.3973,6.997 L11.9921175,6.97062172 L11.6005,6.9966 L11.6381175,6.94762172 L9.9103,6.838 L7.4733,6.706 C6.5693,6.67 5.7223,6.091 5.4263,5.167 C5.0513,3.996 5.6913,2.751 6.8623,2.376 C7.7583,2.089 8.6963,2.397 9.2553,3.09 L11.9981175,6.50062172 Z M11.9991,5.9648 L11.9991,20.8798" }), (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M19.0068,6.4449 C20.9398,6.4449 22.5068,8.0119 22.5068,9.9449 L22.5068,11.1159 C22.5068,11.8346198 22.1274815,12.465185 21.5578445,12.817768 L21.5573,18.5922 C21.5573,20.5252 19.9903,22.0922 18.0573,22.0922 L5.9413,22.0922 C4.0083,22.0922 2.4413,20.5252 2.4413,18.5922 L2.44075546,12.817768 C1.87111853,12.465185 1.4918,11.8346198 1.4918,11.1159 L1.4918,9.9449 C1.4918,8.0119 3.0588,6.4449 4.9918,6.4449 Z M20.0573,13.1242 L3.9413,13.1242 L3.9413,18.5922 C3.9413,19.6952 4.8383,20.5922 5.9413,20.5922 L18.0573,20.5922 C19.1603,20.5922 20.0573,19.6952 20.0573,18.5922 L20.0573,13.1242 Z M19.0068,7.9449 L4.9918,7.9449 C3.8888,7.9449 2.9918,8.8419 2.9918,9.9449 L2.9918,11.1159 C2.9918,11.3919 3.2158,11.6159 3.4918,11.6159 L20.5068,11.6159 C20.7828,11.6159 21.0068,11.3919 21.0068,11.1159 L21.0068,9.9449 C21.0068,8.8419 20.1098,7.9449 19.0068,7.9449 Z" })] })) })));
|
29
|
+
};
|
30
|
+
exports.default = Gift;
|
@@ -326,5 +326,6 @@ declare const lineIcons: {
|
|
326
326
|
readonly ic_video_stop: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
327
327
|
readonly ic_cam: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
328
328
|
readonly ic_cam_off: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
329
|
+
readonly ic_gift: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
|
329
330
|
};
|
330
331
|
export default lineIcons;
|
@@ -103,6 +103,7 @@ var Face_1 = __importDefault(require("./Face"));
|
|
103
103
|
var Filter_1 = __importDefault(require("./Filter"));
|
104
104
|
var Folder_1 = __importDefault(require("./Folder"));
|
105
105
|
var Ghost_1 = __importDefault(require("./Ghost"));
|
106
|
+
var Gift_1 = __importDefault(require("./Gift"));
|
106
107
|
var Group_1 = __importDefault(require("./Group"));
|
107
108
|
var Heart_1 = __importDefault(require("./Heart"));
|
108
109
|
var HeartCare_1 = __importDefault(require("./HeartCare"));
|
@@ -655,6 +656,7 @@ var lineIcons = {
|
|
655
656
|
ic_send_to_back_arrow: SendToBackArrow_1.default,
|
656
657
|
ic_video_stop: VideoStop_1.default,
|
657
658
|
ic_cam: Cam_1.default,
|
658
|
-
ic_cam_off: CamOff_1.default
|
659
|
+
ic_cam_off: CamOff_1.default,
|
660
|
+
ic_gift: Gift_1.default
|
659
661
|
};
|
660
662
|
exports.default = lineIcons;
|
@@ -19,4 +19,4 @@ __exportStar(require("./styled-components"), exports);
|
|
19
19
|
__exportStar(require("./text"), exports);
|
20
20
|
__exportStar(require("./uiColors"), exports);
|
21
21
|
__exportStar(require("./components"), exports);
|
22
|
-
__exportStar(require("./
|
22
|
+
__exportStar(require("./multilingual"), exports);
|
@@ -1,17 +1,16 @@
|
|
1
|
-
import type { RichEditorConfig } from '../../desktop/panels/LocalizedContentModal/LocalizedContentModal';
|
2
1
|
type LanguageCode = 'en' | 'ko' | 'ja' | 'zh' | 'zh-Hant' | 'fr' | 'de' | 'es' | 'it' | 'pt' | 'ru' | 'vi' | 'th' | 'id' | 'ms' | 'ar' | 'tr' | 'pl' | 'nl' | 'sv' | 'fi' | 'no' | 'da' | 'he' | 'hi' | 'bn' | 'ta' | 'el' | 'cs' | 'ro';
|
3
|
-
type
|
4
|
-
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
2
|
+
type MultilingualConfig = {
|
5
3
|
textFieldLineType?: 'single' | 'multi' | 'auto' | 'tinyeditor';
|
6
4
|
originalText?: string;
|
7
5
|
initialValues?: {
|
8
6
|
[key in LanguageCode]?: string;
|
9
7
|
};
|
10
8
|
visibleLanguages?: LanguageCode[];
|
11
|
-
|
12
|
-
|
9
|
+
readonlyLanguages?: LanguageCode[];
|
10
|
+
hiddenInputId: string;
|
13
11
|
onApply?: (values: {
|
14
12
|
[key in LanguageCode]?: string;
|
15
13
|
}) => void;
|
14
|
+
onTinyEditorAction?: () => void;
|
16
15
|
};
|
17
|
-
export type { LanguageCode,
|
16
|
+
export type { LanguageCode, MultilingualConfig };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
3
|
-
import type { PDSTextType } from '../../../common/types';
|
2
|
+
import type { PDSTextType, MultilingualConfig } from '../../../common/types';
|
4
3
|
type BasicFormGroupProps = {
|
5
4
|
titleStyleTheme?: 'headingBold' | 'leadParaBold' | 'subTitleBold';
|
6
5
|
headerSize?: 'small' | 'medium' | 'large' | 'rlarge';
|
@@ -9,7 +8,9 @@ type BasicFormGroupProps = {
|
|
9
8
|
captionText?: PDSTextType;
|
10
9
|
inputForm?: JSX.Element;
|
11
10
|
titleRequirementMode?: 'use' | 'none';
|
12
|
-
|
11
|
+
multilingualBtnMode?: 'use' | 'none';
|
12
|
+
multilingualBtnState?: 'normal' | 'disabled';
|
13
|
+
multilingualConfig?: MultilingualConfig;
|
13
14
|
};
|
14
|
-
declare function BasicFormGroup({ titleStyleTheme, headerSize, titleText, descText, captionText, inputForm, titleRequirementMode,
|
15
|
+
declare function BasicFormGroup({ titleStyleTheme, headerSize, titleText, descText, captionText, inputForm, titleRequirementMode, multilingualBtnMode, multilingualBtnState, multilingualConfig }: BasicFormGroupProps): JSX.Element;
|
15
16
|
export default BasicFormGroup;
|
@@ -19,12 +19,58 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
22
|
+
var react_1 = require("react");
|
23
|
+
var MultilingualModal_1 = __importDefault(require("../../panels/MultilingualModal"));
|
22
24
|
var components_1 = require("../../../hybrid/components");
|
23
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
26
|
+
var IconButton_1 = require("../IconButton");
|
24
27
|
var TextLabel_1 = require("../TextLabel");
|
25
28
|
function BasicFormGroup(_a) {
|
26
|
-
var _b = _a.titleStyleTheme, titleStyleTheme = _b === void 0 ? 'subTitleBold' : _b, _c = _a.headerSize, headerSize = _c === void 0 ? 'rlarge' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, inputForm = _a.inputForm, _d = _a.titleRequirementMode, titleRequirementMode = _d === void 0 ? 'none' : _d,
|
27
|
-
|
29
|
+
var _b = _a.titleStyleTheme, titleStyleTheme = _b === void 0 ? 'subTitleBold' : _b, _c = _a.headerSize, headerSize = _c === void 0 ? 'rlarge' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, inputForm = _a.inputForm, _d = _a.titleRequirementMode, titleRequirementMode = _d === void 0 ? 'none' : _d, _e = _a.multilingualBtnMode, multilingualBtnMode = _e === void 0 ? 'none' : _e, _f = _a.multilingualBtnState, multilingualBtnState = _f === void 0 ? 'normal' : _f, multilingualConfig = _a.multilingualConfig;
|
30
|
+
var _g = (0, react_1.useState)(false), isMultiLanguageModalOpen = _g[0], setIsMultiLanguageModalOpen = _g[1];
|
31
|
+
var _h = (0, react_1.useState)(false), hasMultilingualValues = _h[0], setHasMultilingualValues = _h[1];
|
32
|
+
var _j = (0, react_1.useState)(function () {
|
33
|
+
return JSON.stringify((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues) || {});
|
34
|
+
}), hiddenInputValue = _j[0], setHiddenInputValue = _j[1];
|
35
|
+
// hiddenInput의 값이 있는지 확인하는 함수
|
36
|
+
var checkMultilingualValues = function () {
|
37
|
+
try {
|
38
|
+
var values = JSON.parse(hiddenInputValue || '{}');
|
39
|
+
var hasValues = Object.values(values).some(function (value) { return value && value.toString().trim() !== ''; });
|
40
|
+
setHasMultilingualValues(hasValues);
|
41
|
+
}
|
42
|
+
catch (_a) {
|
43
|
+
setHasMultilingualValues(false);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
// initialValues가 변경될 때 hiddenInputValue 업데이트
|
47
|
+
(0, react_1.useEffect)(function () {
|
48
|
+
var newValue = JSON.stringify((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues) || {});
|
49
|
+
setHiddenInputValue(newValue);
|
50
|
+
}, [multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues]);
|
51
|
+
// hiddenInputValue가 변경될 때마다 체크
|
52
|
+
(0, react_1.useEffect)(function () {
|
53
|
+
checkMultilingualValues();
|
54
|
+
}, [hiddenInputValue]);
|
55
|
+
var handleLanguageButtonClick = function () {
|
56
|
+
// TinyEditor 모드일 때는 모달을 열지 않고 onTinyEditorAction 실행
|
57
|
+
if ((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.textFieldLineType) === 'tinyeditor') {
|
58
|
+
if (multilingualConfig.onTinyEditorAction) {
|
59
|
+
multilingualConfig.onTinyEditorAction();
|
60
|
+
}
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
setIsMultiLanguageModalOpen(true);
|
64
|
+
};
|
65
|
+
var handleLanguageModalClose = function () {
|
66
|
+
setIsMultiLanguageModalOpen(false);
|
67
|
+
};
|
68
|
+
var handleHiddenInputUpdate = function (newValue) {
|
69
|
+
setHiddenInputValue(newValue);
|
70
|
+
};
|
71
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ "x-pds-name": "BasicFormGroup", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [titleText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(S_TitleTextWrapper, __assign({ "$headerSize": headerSize }, { children: [(0, jsx_runtime_1.jsxs)(S_TitleText, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: "sysTextPrimary" }), titleRequirementMode === 'use' && ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_requirement", size: 16, fillType: "line", colorKey: "ui_cpnt_icon_sys_error_01" }) }))] }), multilingualBtnMode === 'use' && ((0, jsx_runtime_1.jsx)(S_MultilingualButtonWrapper, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconFillType: "line", iconName: "ic_translate", baseSize: "small", shapeType: "round", baseColorKey: "ui_cpnt_button_fill_base_default", iconColorKey: hasMultilingualValues
|
72
|
+
? 'ui_cpnt_button_icon_primary'
|
73
|
+
: 'ui_cpnt_icon_sys_grey_02', state: multilingualBtnState, onClick: multilingualBtnState === 'normal' ? handleLanguageButtonClick : undefined }) }))] })), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" })] })), multilingualBtnMode === 'use' && multilingualConfig && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "hidden", id: "hiddenInput_".concat(multilingualConfig.hiddenInputId), name: multilingualConfig.hiddenInputId, value: hiddenInputValue }), (0, jsx_runtime_1.jsx)(MultilingualModal_1.default, { isOpen: isMultiLanguageModalOpen, onClose: handleLanguageModalClose, config: multilingualConfig, onHiddenInputUpdate: handleHiddenInputUpdate })] })), descText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: descText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_d" })] })), inputForm, captionText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: "sysTextPrimary" })] }))] })));
|
28
74
|
}
|
29
75
|
var S_TitleTextWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n width: ", ";\n"], ["\n align-items: center;\n display: flex;\n justify-content: space-between;\n width: ", ";\n"])), function (_a) {
|
30
76
|
var $headerSize = _a.$headerSize;
|
@@ -42,5 +88,9 @@ var S_IconWrapper = styled_components_1.default.div(templateObject_3 || (templat
|
|
42
88
|
var theme = _a.theme;
|
43
89
|
return theme.spacing.spacingA;
|
44
90
|
});
|
91
|
+
var S_MultilingualButtonWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-left: ", ";\n"], ["\n align-items: center;\n display: flex;\n margin-left: ", ";\n"])), function (_a) {
|
92
|
+
var theme = _a.theme;
|
93
|
+
return theme.spacing.spacingB;
|
94
|
+
});
|
45
95
|
exports.default = BasicFormGroup;
|
46
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
96
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { PDSTextType } from '../../../common';
|
3
|
-
import type {
|
3
|
+
import type { MultilingualConfig } from '../../../common/types';
|
4
4
|
type BodyTextGroupProps = {
|
5
5
|
titleStyleTheme?: 'headingBold' | 'leadParaBold' | 'subTitleBold';
|
6
6
|
headerSize?: 'small' | 'medium' | 'large' | 'rlarge';
|
@@ -11,7 +11,9 @@ type BodyTextGroupProps = {
|
|
11
11
|
descTextWordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
|
12
12
|
contentTextWordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
|
13
13
|
contentFontWeight?: 'regular' | 'bold';
|
14
|
-
|
14
|
+
multilingualBtnMode?: 'use' | 'none';
|
15
|
+
multilingualBtnState?: 'normal' | 'disabled';
|
16
|
+
multilingualConfig?: MultilingualConfig;
|
15
17
|
};
|
16
|
-
declare function BodyTextGroup({ titleStyleTheme, headerSize, titleText, descText, contentText, titleTextWordBreak, descTextWordBreak, contentTextWordBreak, contentFontWeight,
|
18
|
+
declare function BodyTextGroup({ titleStyleTheme, headerSize, titleText, descText, contentText, titleTextWordBreak, descTextWordBreak, contentTextWordBreak, contentFontWeight, multilingualBtnMode, multilingualBtnState, multilingualConfig }: BodyTextGroupProps): JSX.Element;
|
17
19
|
export default BodyTextGroup;
|
@@ -19,12 +19,56 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
22
|
+
var react_1 = require("react");
|
23
|
+
var panels_1 = require("../../panels");
|
22
24
|
var styled_components_1 = __importDefault(require("styled-components"));
|
23
25
|
var hybrid_1 = require("../../../hybrid");
|
26
|
+
var IconButton_1 = require("../IconButton");
|
24
27
|
var TextLabel_1 = require("../TextLabel");
|
25
28
|
function BodyTextGroup(_a) {
|
26
|
-
var _b = _a.titleStyleTheme, titleStyleTheme = _b === void 0 ? 'subTitleBold' : _b, _c = _a.headerSize, headerSize = _c === void 0 ? 'rlarge' : _c, titleText = _a.titleText, descText = _a.descText, contentText = _a.contentText, _d = _a.titleTextWordBreak, titleTextWordBreak = _d === void 0 ? 'keep_all' : _d, _e = _a.descTextWordBreak, descTextWordBreak = _e === void 0 ? 'keep_all' : _e, _f = _a.contentTextWordBreak, contentTextWordBreak = _f === void 0 ? 'keep_all' : _f, _g = _a.contentFontWeight, contentFontWeight = _g === void 0 ? 'regular' : _g,
|
27
|
-
|
29
|
+
var _b = _a.titleStyleTheme, titleStyleTheme = _b === void 0 ? 'subTitleBold' : _b, _c = _a.headerSize, headerSize = _c === void 0 ? 'rlarge' : _c, titleText = _a.titleText, descText = _a.descText, contentText = _a.contentText, _d = _a.titleTextWordBreak, titleTextWordBreak = _d === void 0 ? 'keep_all' : _d, _e = _a.descTextWordBreak, descTextWordBreak = _e === void 0 ? 'keep_all' : _e, _f = _a.contentTextWordBreak, contentTextWordBreak = _f === void 0 ? 'keep_all' : _f, _g = _a.contentFontWeight, contentFontWeight = _g === void 0 ? 'regular' : _g, _h = _a.multilingualBtnMode, multilingualBtnMode = _h === void 0 ? 'none' : _h, _j = _a.multilingualBtnState, multilingualBtnState = _j === void 0 ? 'normal' : _j, multilingualConfig = _a.multilingualConfig;
|
30
|
+
var _k = (0, react_1.useState)(false), isMultiLanguageModalOpen = _k[0], setIsMultiLanguageModalOpen = _k[1];
|
31
|
+
var _l = (0, react_1.useState)(false), hasMultilingualValues = _l[0], setHasMultilingualValues = _l[1];
|
32
|
+
var _m = (0, react_1.useState)(function () {
|
33
|
+
return JSON.stringify((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues) || {});
|
34
|
+
}), hiddenInputValue = _m[0], setHiddenInputValue = _m[1];
|
35
|
+
// hiddenInput의 값이 있는지 확인하는 함수
|
36
|
+
var checkMultilingualValues = function () {
|
37
|
+
try {
|
38
|
+
var values = JSON.parse(hiddenInputValue || '{}');
|
39
|
+
var hasValues = Object.values(values).some(function (value) { return value && value.toString().trim() !== ''; });
|
40
|
+
setHasMultilingualValues(hasValues);
|
41
|
+
}
|
42
|
+
catch (_a) {
|
43
|
+
setHasMultilingualValues(false);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
// initialValues가 변경될 때 hiddenInputValue 업데이트
|
47
|
+
(0, react_1.useEffect)(function () {
|
48
|
+
var newValue = JSON.stringify((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues) || {});
|
49
|
+
setHiddenInputValue(newValue);
|
50
|
+
}, [multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.initialValues]);
|
51
|
+
// hiddenInputValue가 변경될 때마다 체크
|
52
|
+
(0, react_1.useEffect)(function () {
|
53
|
+
checkMultilingualValues();
|
54
|
+
}, [hiddenInputValue]);
|
55
|
+
var handleLanguageButtonClick = function () {
|
56
|
+
// TinyEditor 모드일 때는 모달을 열지 않고 onTinyEditorAction 실행
|
57
|
+
if ((multilingualConfig === null || multilingualConfig === void 0 ? void 0 : multilingualConfig.textFieldLineType) === 'tinyeditor') {
|
58
|
+
if (multilingualConfig.onTinyEditorAction) {
|
59
|
+
multilingualConfig.onTinyEditorAction();
|
60
|
+
}
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
setIsMultiLanguageModalOpen(true);
|
64
|
+
};
|
65
|
+
var handleLanguageModalClose = function () {
|
66
|
+
setIsMultiLanguageModalOpen(false);
|
67
|
+
};
|
68
|
+
var handleHiddenInputUpdate = function (newValue) {
|
69
|
+
setHiddenInputValue(newValue);
|
70
|
+
};
|
71
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ "x-pds-name": "BodyTextGroup", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsxs)(S_TitleTextWrapper, __assign({ "$headerSize": headerSize }, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, wordBreak: titleTextWordBreak, styleTheme: titleStyleTheme, colorTheme: "sysTextPrimary" }), multilingualBtnMode === 'use' && ((0, jsx_runtime_1.jsx)(S_MultilingualButtonWrapper, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconFillType: "line", iconName: "ic_translate", baseSize: "small", shapeType: "round", baseColorKey: "ui_cpnt_button_fill_base_default", iconColorKey: hasMultilingualValues ? 'ui_cpnt_button_icon_primary' : 'ui_cpnt_icon_sys_grey_02', state: multilingualBtnState, onClick: multilingualBtnState === 'normal' ? handleLanguageButtonClick : undefined }) }))] })), multilingualBtnMode === 'use' && multilingualConfig && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "hidden", id: "hiddenInput_".concat(multilingualConfig.hiddenInputId), name: multilingualConfig.hiddenInputId, value: hiddenInputValue }), (0, jsx_runtime_1.jsx)(panels_1.MultilingualModal, { isOpen: isMultiLanguageModalOpen, onClose: handleLanguageModalClose, config: multilingualConfig, onHiddenInputUpdate: handleHiddenInputUpdate })] })), descText && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: descText, wordBreak: descTextWordBreak, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" })] })), contentText && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: contentText, wordBreak: contentTextWordBreak, styleTheme: contentFontWeight === 'regular' ? 'body2Regular' : 'body2Bold', colorTheme: "sysTextPrimary" })] }))] })));
|
28
72
|
}
|
29
73
|
var S_TitleTextWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n width: ", ";\n"], ["\n align-items: center;\n display: flex;\n justify-content: space-between;\n width: ", ";\n"])), function (_a) {
|
30
74
|
var $headerSize = _a.$headerSize;
|
@@ -37,5 +81,9 @@ var S_TitleTextWrapper = styled_components_1.default.div(templateObject_1 || (te
|
|
37
81
|
if ($headerSize === 'rlarge')
|
38
82
|
return '100%';
|
39
83
|
});
|
84
|
+
var S_MultilingualButtonWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-left: ", ";\n"], ["\n align-items: center;\n display: flex;\n margin-left: ", ";\n"])), function (_a) {
|
85
|
+
var theme = _a.theme;
|
86
|
+
return theme.spacing.spacingB;
|
87
|
+
});
|
40
88
|
exports.default = BodyTextGroup;
|
41
|
-
var templateObject_1;
|
89
|
+
var templateObject_1, templateObject_2;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Path } from 'react-hook-form';
|
3
3
|
import type { PDSTextType, IFormValues } from '../../../common';
|
4
|
+
import type { ScrollVisibleType } from '../../../common/styles/scroll/scrollbarStyle';
|
4
5
|
export type EditApplyTextFieldProps = {
|
5
6
|
name: Path<IFormValues>;
|
6
7
|
hintText?: PDSTextType;
|
@@ -21,6 +22,7 @@ export type EditApplyTextFieldProps = {
|
|
21
22
|
maxLength?: number;
|
22
23
|
min?: number;
|
23
24
|
customWidth?: string;
|
25
|
+
scrollVisibleType?: ScrollVisibleType;
|
24
26
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
25
27
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
26
28
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
@@ -30,5 +32,5 @@ export type EditApplyTextFieldProps = {
|
|
30
32
|
/** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
|
31
33
|
onClickSubmitBtn?: (...args: any) => any;
|
32
34
|
};
|
33
|
-
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, customWidth, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
35
|
+
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, customWidth, scrollVisibleType, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
34
36
|
export default EditApplyTextField;
|
@@ -49,11 +49,11 @@ var components_1 = require("../../common/components");
|
|
49
49
|
var IconButton_1 = require("../IconButton");
|
50
50
|
function EditApplyTextField(_a) {
|
51
51
|
var _b;
|
52
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, _f = _a.textLineType, textLineType = _f === void 0 ? 'single' : _f, _g = _a.multiRows, multiRows = _g === void 0 ? 8 : _g, _h = _a.autoMinRows, autoMinRows = _h === void 0 ? 8 : _h, autoMaxRows = _a.autoMaxRows, _j = _a.inputType, inputType = _j === void 0 ? 'text' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, getInputValue = _a.getInputValue, onBlur = _a.onBlur, onChange = _a.onChange, onClickSubmitBtn = _a.onClickSubmitBtn, onFocus = _a.onFocus, onTarget = _a.onTarget;
|
53
|
-
var
|
54
|
-
var
|
55
|
-
var
|
56
|
-
var
|
52
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, _f = _a.textLineType, textLineType = _f === void 0 ? 'single' : _f, _g = _a.multiRows, multiRows = _g === void 0 ? 8 : _g, _h = _a.autoMinRows, autoMinRows = _h === void 0 ? 8 : _h, autoMaxRows = _a.autoMaxRows, _j = _a.inputType, inputType = _j === void 0 ? 'text' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _l = _a.scrollVisibleType, scrollVisibleType = _l === void 0 ? 'visible' : _l, getInputValue = _a.getInputValue, onBlur = _a.onBlur, onChange = _a.onChange, onClickSubmitBtn = _a.onClickSubmitBtn, onFocus = _a.onFocus, onTarget = _a.onTarget;
|
53
|
+
var _m = (0, react_hook_form_1.useFormContext)(), register = _m.register, setValue = _m.setValue, trigger = _m.trigger, watch = _m.watch, reset = _m.reset, _o = _m.formState, errors = _o.errors, isSubmitSuccessful = _o.isSubmitSuccessful;
|
54
|
+
var _p = (0, react_1.useState)(false), isFocused = _p[0], setIsFocused = _p[1];
|
55
|
+
var _q = (0, react_1.useState)(false), isOpen = _q[0], setIsOpen = _q[1];
|
56
|
+
var _r = (0, react_1.useState)(defaultText !== null && defaultText !== void 0 ? defaultText : ''), prevValue = _r[0], setPrevValue = _r[1];
|
57
57
|
var ref = (0, react_1.useRef)();
|
58
58
|
var currentValue = watch(name);
|
59
59
|
var validateOnChange = register(name, validation).onChange;
|
@@ -160,7 +160,7 @@ function EditApplyTextField(_a) {
|
|
160
160
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: "use", textLineType: "single", inputType: inputType, state: state, min: min, max: max, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange, onKeyDown: handleKeyDown, inputRef: ref }) }));
|
161
161
|
}
|
162
162
|
};
|
163
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_EditApplyTextFieldWrapper, __assign({ "x-pds-name": "EditApplyTextField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsxs)(S_EditApplyTextField, { children: [(0, jsx_runtime_1.jsx)(S_S_TextFieldBaseWrapper, __assign({ size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, customWidth: customWidth }, { children: S_TextFieldBase() })), isOpen === true && ((0, jsx_runtime_1.jsxs)(S_ButtonBox, { children: [(0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_xmark", fillType: "line", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_white", borderColorKey: "ui_cpnt_button_line_border_default", tabIndex: -1, onMouseDown: handleCancel }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleMouseDown, type: "submit" })] }))] }), ((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (0, jsx_runtime_1.jsx)(S_Error, __assign({ isFocused: isFocused }, { children: errors[name].message }))] })) }));
|
163
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_EditApplyTextFieldWrapper, __assign({ "x-pds-name": "EditApplyTextField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsxs)(S_EditApplyTextField, { children: [(0, jsx_runtime_1.jsx)(S_S_TextFieldBaseWrapper, __assign({ size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, customWidth: customWidth, scrollVisibleType: scrollVisibleType }, { children: S_TextFieldBase() })), isOpen === true && ((0, jsx_runtime_1.jsxs)(S_ButtonBox, { children: [(0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_xmark", fillType: "line", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_white", borderColorKey: "ui_cpnt_button_line_border_default", tabIndex: -1, onMouseDown: handleCancel }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleMouseDown, type: "submit" })] }))] }), ((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (0, jsx_runtime_1.jsx)(S_Error, __assign({ isFocused: isFocused }, { children: errors[name].message }))] })) }));
|
164
164
|
}
|
165
165
|
var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n\n ", "\n"], ["\n width: ", ";\n\n ", "\n"])), function (_a) {
|
166
166
|
var size = _a.size, responsiveMode = _a.responsiveMode;
|
@@ -246,7 +246,7 @@ var normalActionColor = (0, styled_components_1.css)(templateObject_10 || (templ
|
|
246
246
|
var theme = _a.theme;
|
247
247
|
return theme.ui_cpnt_textfield_base_pressed;
|
248
248
|
});
|
249
|
-
var S_S_TextFieldBaseWrapper = styled_components_1.default.div(
|
249
|
+
var S_S_TextFieldBaseWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __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"], ["\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"])), function (_a) {
|
250
250
|
var state = _a.state;
|
251
251
|
return (state === 'disabled' ? 'not-allowed' : 'text');
|
252
252
|
}, function (_a) {
|
@@ -271,8 +271,19 @@ var S_S_TextFieldBaseWrapper = styled_components_1.default.div(templateObject_11
|
|
271
271
|
}, transitionStyle_1.InputTransition, function (_a) {
|
272
272
|
var state = _a.state;
|
273
273
|
return state === 'normal' && normalActionColor;
|
274
|
+
}, function (_a) {
|
275
|
+
var textLineType = _a.textLineType, scrollVisibleType = _a.scrollVisibleType;
|
276
|
+
return textLineType === 'multi' &&
|
277
|
+
scrollVisibleType === 'visible' && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n textarea::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n textarea::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n textarea {\n scrollbar-width: auto;\n }\n "], ["\n textarea::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n textarea::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n textarea {\n scrollbar-width: auto;\n }\n "])), function (_a) {
|
278
|
+
var theme = _a.theme;
|
279
|
+
return theme.ui_container_scroll;
|
280
|
+
});
|
281
|
+
}, function (_a) {
|
282
|
+
var textLineType = _a.textLineType, scrollVisibleType = _a.scrollVisibleType;
|
283
|
+
return textLineType === 'multi' &&
|
284
|
+
scrollVisibleType === 'hidden' && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n textarea::-webkit-scrollbar {\n background: transparent;\n display: block;\n width: 0px;\n }\n textarea {\n scrollbar-width: auto;\n }\n "], ["\n textarea::-webkit-scrollbar {\n background: transparent;\n display: block;\n width: 0px;\n }\n textarea {\n scrollbar-width: auto;\n }\n "])));
|
274
285
|
});
|
275
|
-
var S_Error = styled_components_1.default.div(
|
286
|
+
var S_Error = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
|
276
287
|
var theme = _a.theme;
|
277
288
|
return theme.ui_cpnt_textfield_text_error;
|
278
289
|
}, function (_a) {
|
@@ -291,6 +302,6 @@ var S_Error = styled_components_1.default.div(templateObject_12 || (templateObje
|
|
291
302
|
var theme = _a.theme;
|
292
303
|
return theme.spacing.spacingA;
|
293
304
|
});
|
294
|
-
var S_ButtonBox = styled_components_1.default.div(
|
305
|
+
var S_ButtonBox = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n bottom: -36px;\n display: flex;\n position: absolute;\n right: 0;\n z-index: 1;\n"], ["\n bottom: -36px;\n display: flex;\n position: absolute;\n right: 0;\n z-index: 1;\n"])));
|
295
306
|
exports.default = EditApplyTextField;
|
296
|
-
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;
|
307
|
+
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;
|
@@ -254,7 +254,7 @@ function RichTextEditor(_a) {
|
|
254
254
|
}
|
255
255
|
} }), validationText] }), isFileValidationAlertDialogOpen && ((0, jsx_runtime_1.jsx)(DesktopAlertDialog_1.DesktopAlertDialog, { contentText: fileSizeValidationText, tBtn1Text: t('str_confirm'), onClickTBtn1: function () { return setIsFilValidationAlertDialogOpen(false); } }))] }));
|
256
256
|
}
|
257
|
-
var S_Editor = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-height: 500px;\n position: relative;\n\n .tox-statusbar__wordcount {\n visibility: hidden;\n }\n
|
257
|
+
var S_Editor = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-height: 500px;\n position: relative;\n\n .tox-statusbar__wordcount {\n visibility: hidden;\n }\n"], ["\n min-height: 500px;\n position: relative;\n\n .tox-statusbar__wordcount {\n visibility: hidden;\n }\n"])));
|
258
258
|
var S_LoadingWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n z-index: 1000;\n"], ["\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n z-index: 1000;\n"])));
|
259
259
|
var S_Error = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"])), function (_a) {
|
260
260
|
var theme = _a.theme;
|