pds-dev-kit-web 2.2.193 → 2.2.195
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 +6 -6
- package/dist/index.js +6 -2
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/services/i18n/resources/en.json +9 -1
- package/dist/src/common/services/i18n/resources/es.json +9 -1
- package/dist/src/common/services/i18n/resources/fil.json +9 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
- package/dist/src/common/services/i18n/resources/ja.json +9 -1
- package/dist/src/common/services/i18n/resources/ko.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
- package/dist/src/common/types/text.d.ts +2 -0
- package/dist/src/core/pricing/formatter.d.ts +4 -0
- package/dist/src/core/pricing/formatter.js +18 -0
- package/dist/src/core/pricing/index.d.ts +2 -0
- package/dist/src/core/pricing/index.js +18 -0
- package/dist/src/core/pricing/policy.d.ts +26 -0
- package/dist/src/core/pricing/policy.js +98 -0
- package/dist/src/core/pricing/service.d.ts +62 -0
- package/dist/src/core/pricing/service.js +157 -0
- package/dist/src/core/pricing/translator.d.ts +27 -0
- package/dist/src/core/pricing/translator.js +53 -0
- package/dist/src/core/pricing/types.d.ts +19 -0
- package/dist/src/core/pricing/types.js +31 -0
- package/dist/src/core/pricing/validator.d.ts +29 -0
- package/dist/src/core/pricing/validator.js +105 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +3 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +16 -11
- package/dist/src/desktop/components/PriceTextField/PriceTextField.d.ts +41 -0
- package/dist/src/desktop/components/PriceTextField/PriceTextField.js +580 -0
- package/dist/src/desktop/components/PriceTextField/index.d.ts +1 -0
- package/dist/src/desktop/components/PriceTextField/index.js +8 -0
- package/dist/src/desktop/components/PriceTextLabel/PriceTextLabel.d.ts +15 -0
- package/dist/src/desktop/components/PriceTextLabel/PriceTextLabel.js +45 -0
- package/dist/src/desktop/components/PriceTextLabel/index.d.ts +1 -0
- package/dist/src/desktop/components/PriceTextLabel/index.js +8 -0
- 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.d.ts +3 -3
- package/dist/src/desktop/components/index.d.ts +3 -1
- package/dist/src/desktop/components/index.js +6 -2
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +3 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +10 -10
- package/dist/src/mobile/components/PriceTextField/PriceTextField.d.ts +41 -0
- package/dist/src/mobile/components/PriceTextField/PriceTextField.js +570 -0
- package/dist/src/mobile/components/PriceTextField/index.d.ts +1 -0
- package/dist/src/mobile/components/PriceTextField/index.js +8 -0
- package/dist/src/mobile/components/PriceTextLabel/PriceTextLabel.d.ts +15 -0
- package/dist/src/mobile/components/PriceTextLabel/PriceTextLabel.js +45 -0
- package/dist/src/mobile/components/PriceTextLabel/index.d.ts +1 -0
- package/dist/src/mobile/components/PriceTextLabel/index.js +8 -0
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +7 -7
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +3 -3
- package/dist/src/mobile/components/index.d.ts +3 -1
- package/dist/src/mobile/components/index.js +5 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +4 -2
- package/package.json +1 -1
- package/release-note.md +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, PdsDevKitTheme, fontWeight, desktopFontSize, desktopLineHeight, desktopEditorFontSize, desktopEditorLineHeight, mobileFontSize, mobileLineHeight, mobileEditorFontSize, mobileEditorLineHeight, boxShadow, spacing, uiColors, customTheme, theme, Form, PDSIconType, ForwardedRefType, Language, DropdownGroupInfo } from './src/common';
|
|
2
|
-
export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, PDSIconType, ForwardedRefType, Language, DropdownGroupInfo };
|
|
1
|
+
import { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, DesktopFontSize, FontWeight, PDSTextType, TextLabelStyleThemeType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, PdsDevKitTheme, fontWeight, desktopFontSize, desktopLineHeight, desktopEditorFontSize, desktopEditorLineHeight, mobileFontSize, mobileLineHeight, mobileEditorFontSize, mobileEditorLineHeight, boxShadow, spacing, uiColors, customTheme, theme, Form, PDSIconType, ForwardedRefType, Language, DropdownGroupInfo } from './src/common';
|
|
2
|
+
export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, TextLabelStyleThemeType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, PDSIconType, ForwardedRefType, Language, DropdownGroupInfo };
|
|
3
3
|
export { fontWeight, desktopFontSize, desktopLineHeight, desktopEditorFontSize, desktopEditorLineHeight, mobileFontSize, mobileLineHeight, mobileEditorFontSize, mobileEditorLineHeight, boxShadow, spacing, uiColors, customTheme };
|
|
4
4
|
export { theme };
|
|
5
5
|
export { dialogOnAni, dialogOffAni, dialogOverlayOnAni, dialogOverlayOffAni, modalOnAni, modalOffAni, modalOverlayOnAni, modalOverlayOffAni } from './src/common/styles';
|
|
@@ -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_TextField, D_TextLabel, 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 } from './src/desktop';
|
|
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 } 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_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab };
|
|
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 };
|
|
17
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_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton, M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet } from './src/mobile';
|
|
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 } 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_TextField, M_TextLabel, 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_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
|
@@ -2,8 +2,8 @@
|
|
|
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
4
|
exports.D_Snackbar = exports.D_Slider = exports.D_Select = exports.D_SegmentedButtonGroup = 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.
|
|
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_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Snackbar = exports.M_Slider = exports.M_Select = exports.M_SegmentedButtonGroup = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_LottieReactionButton = exports.M_ImageSlide = void 0;
|
|
5
|
+
exports.M_FloatingActionButton = exports.M_Dropdown = 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_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 = 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_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 = void 0;
|
|
7
7
|
/* eslint-disable import/order */
|
|
8
8
|
/* eslint-disable import/first */
|
|
9
9
|
// common
|
|
@@ -120,8 +120,10 @@ Object.defineProperty(exports, "D_Slider", { enumerable: true, get: function ()
|
|
|
120
120
|
Object.defineProperty(exports, "D_Snackbar", { enumerable: true, get: function () { return desktop_1.D_Snackbar; } });
|
|
121
121
|
Object.defineProperty(exports, "D_StatusBlock", { enumerable: true, get: function () { return desktop_1.D_StatusBlock; } });
|
|
122
122
|
Object.defineProperty(exports, "D_TextButton", { enumerable: true, get: function () { return desktop_1.D_TextButton; } });
|
|
123
|
+
Object.defineProperty(exports, "D_PriceTextField", { enumerable: true, get: function () { return desktop_1.D_PriceTextField; } });
|
|
123
124
|
Object.defineProperty(exports, "D_TextField", { enumerable: true, get: function () { return desktop_1.D_TextField; } });
|
|
124
125
|
Object.defineProperty(exports, "D_TextLabel", { enumerable: true, get: function () { return desktop_1.D_TextLabel; } });
|
|
126
|
+
Object.defineProperty(exports, "D_PriceTextLabel", { enumerable: true, get: function () { return desktop_1.D_PriceTextLabel; } });
|
|
125
127
|
Object.defineProperty(exports, "D_UploadIconButton", { enumerable: true, get: function () { return desktop_1.D_UploadIconButton; } });
|
|
126
128
|
Object.defineProperty(exports, "D_UploadMainButton", { enumerable: true, get: function () { return desktop_1.D_UploadMainButton; } });
|
|
127
129
|
Object.defineProperty(exports, "D_UploadTextButton", { enumerable: true, get: function () { return desktop_1.D_UploadTextButton; } });
|
|
@@ -184,8 +186,10 @@ Object.defineProperty(exports, "M_Slider", { enumerable: true, get: function ()
|
|
|
184
186
|
Object.defineProperty(exports, "M_Snackbar", { enumerable: true, get: function () { return mobile_1.M_Snackbar; } });
|
|
185
187
|
Object.defineProperty(exports, "M_StatusBlock", { enumerable: true, get: function () { return mobile_1.M_StatusBlock; } });
|
|
186
188
|
Object.defineProperty(exports, "M_TextButton", { enumerable: true, get: function () { return mobile_1.M_TextButton; } });
|
|
189
|
+
Object.defineProperty(exports, "M_PriceTextField", { enumerable: true, get: function () { return mobile_1.M_PriceTextField; } });
|
|
187
190
|
Object.defineProperty(exports, "M_TextField", { enumerable: true, get: function () { return mobile_1.M_TextField; } });
|
|
188
191
|
Object.defineProperty(exports, "M_TextLabel", { enumerable: true, get: function () { return mobile_1.M_TextLabel; } });
|
|
192
|
+
Object.defineProperty(exports, "M_PriceTextLabel", { enumerable: true, get: function () { return mobile_1.M_PriceTextLabel; } });
|
|
189
193
|
Object.defineProperty(exports, "M_UploadIconButton", { enumerable: true, get: function () { return mobile_1.M_UploadIconButton; } });
|
|
190
194
|
Object.defineProperty(exports, "M_UploadMainButton", { enumerable: true, get: function () { return mobile_1.M_UploadMainButton; } });
|
|
191
195
|
Object.defineProperty(exports, "M_UploadTextButton", { enumerable: true, get: function () { return mobile_1.M_UploadTextButton; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UITheme } from './styles/colorSet/ui-type';
|
|
2
|
-
export { IFormValues, FillIconNameKeys, LineIconNameKeys, ImageIconNameKeys, PDSIconType, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, ForwardedRefType, Language, DropdownGroupInfo } from './types';
|
|
2
|
+
export { IFormValues, FillIconNameKeys, LineIconNameKeys, ImageIconNameKeys, PDSIconType, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, TextLabelStyleThemeType, TextLabelColorThemeType, PDSValueOption, ContextMenuItemValueOption, DropdownValueOption, AdminListDropdownValueOption, BasicButtonGroupValueOption, SegmentedButtonGroupValueOption, UiColors, ForwardedRefType, Language, DropdownGroupInfo } from './types';
|
|
3
3
|
export { fontWeight, desktopFontSize, desktopLineHeight, desktopEditorFontSize, desktopEditorLineHeight, mobileFontSize, mobileLineHeight, mobileEditorFontSize, mobileEditorLineHeight, boxShadow, spacing } from './styles/theme';
|
|
4
4
|
export { uiColors, customTheme } from './styles/ui-colors';
|
|
5
5
|
export { theme } from './styles';
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "Thu",
|
|
34
34
|
"str_3891": "Fri",
|
|
35
35
|
"str_3892": "Sat",
|
|
36
|
-
"str_3893": "Sun"
|
|
36
|
+
"str_3893": "Sun",
|
|
37
|
+
"str_min_price": "Please enter at least {{currency}} {{minPrice}}",
|
|
38
|
+
"str_max_price": "You can enter up to {{currency}} {{maxPrice}}",
|
|
39
|
+
"str_price_unit": "Please enter in increments of {{currency}} {{priceUnit}}",
|
|
40
|
+
"str_please_enter_price": "Please enter the price.",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "KRW",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "USD"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "Thu",
|
|
34
34
|
"str_3891": "Fri",
|
|
35
35
|
"str_3892": "Sat",
|
|
36
|
-
"str_3893": "Sun"
|
|
36
|
+
"str_3893": "Sun",
|
|
37
|
+
"str_min_price": "Ingrese al menos {{minPrice}} {{currency}} o más.",
|
|
38
|
+
"str_max_price": "Puede ingresar hasta {{maxPrice}} {{currency}}.",
|
|
39
|
+
"str_price_unit": "Por favor, introduzca en unidades de {{priceUnit}} {{currency}}.",
|
|
40
|
+
"str_please_enter_price": "Por favor, introduzca un precio.",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "ganó",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "dólares"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "Thu",
|
|
34
34
|
"str_3891": "Fri",
|
|
35
35
|
"str_3892": "Sat",
|
|
36
|
-
"str_3893": "Sun"
|
|
36
|
+
"str_3893": "Sun",
|
|
37
|
+
"str_min_price": "Mangyaring maglagay ng hindi bababa sa {{minPrice}} {{currency}} o higit pa.",
|
|
38
|
+
"str_max_price": "Maaari kang mag-input ng hanggang {{maxPrice}} {{currency}}.",
|
|
39
|
+
"str_price_unit": "Pakipasok sa mga unit ng {{priceUnit}} {{currency}}.",
|
|
40
|
+
"str_please_enter_price": "Mangyaring maglagay ng presyo.",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "nalo",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "dolyar"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -35,6 +35,14 @@ declare const locale: {
|
|
|
35
35
|
str_3891: string;
|
|
36
36
|
str_3892: string;
|
|
37
37
|
str_3893: string;
|
|
38
|
+
str_min_price: string;
|
|
39
|
+
str_max_price: string;
|
|
40
|
+
str_price_unit: string;
|
|
41
|
+
str_please_enter_price: string;
|
|
42
|
+
str_channel_min_price: string;
|
|
43
|
+
str_friendly_currency_won: string;
|
|
44
|
+
str_friendly_currency_jpy: string;
|
|
45
|
+
str_friendly_currency_dollar: string;
|
|
38
46
|
};
|
|
39
47
|
};
|
|
40
48
|
readonly en: {
|
|
@@ -73,6 +81,14 @@ declare const locale: {
|
|
|
73
81
|
str_3891: string;
|
|
74
82
|
str_3892: string;
|
|
75
83
|
str_3893: string;
|
|
84
|
+
str_min_price: string;
|
|
85
|
+
str_max_price: string;
|
|
86
|
+
str_price_unit: string;
|
|
87
|
+
str_please_enter_price: string;
|
|
88
|
+
str_channel_min_price: string;
|
|
89
|
+
str_friendly_currency_won: string;
|
|
90
|
+
str_friendly_currency_jpy: string;
|
|
91
|
+
str_friendly_currency_dollar: string;
|
|
76
92
|
};
|
|
77
93
|
};
|
|
78
94
|
readonly ja: {
|
|
@@ -111,6 +127,14 @@ declare const locale: {
|
|
|
111
127
|
str_3891: string;
|
|
112
128
|
str_3892: string;
|
|
113
129
|
str_3893: string;
|
|
130
|
+
str_min_price: string;
|
|
131
|
+
str_max_price: string;
|
|
132
|
+
str_price_unit: string;
|
|
133
|
+
str_please_enter_price: string;
|
|
134
|
+
str_channel_min_price: string;
|
|
135
|
+
str_friendly_currency_won: string;
|
|
136
|
+
str_friendly_currency_jpy: string;
|
|
137
|
+
str_friendly_currency_dollar: string;
|
|
114
138
|
};
|
|
115
139
|
};
|
|
116
140
|
readonly es: {
|
|
@@ -149,6 +173,14 @@ declare const locale: {
|
|
|
149
173
|
str_3891: string;
|
|
150
174
|
str_3892: string;
|
|
151
175
|
str_3893: string;
|
|
176
|
+
str_min_price: string;
|
|
177
|
+
str_max_price: string;
|
|
178
|
+
str_price_unit: string;
|
|
179
|
+
str_please_enter_price: string;
|
|
180
|
+
str_channel_min_price: string;
|
|
181
|
+
str_friendly_currency_won: string;
|
|
182
|
+
str_friendly_currency_jpy: string;
|
|
183
|
+
str_friendly_currency_dollar: string;
|
|
152
184
|
};
|
|
153
185
|
};
|
|
154
186
|
readonly 'zh-cn': {
|
|
@@ -187,6 +219,14 @@ declare const locale: {
|
|
|
187
219
|
str_3891: string;
|
|
188
220
|
str_3892: string;
|
|
189
221
|
str_3893: string;
|
|
222
|
+
str_min_price: string;
|
|
223
|
+
str_max_price: string;
|
|
224
|
+
str_price_unit: string;
|
|
225
|
+
str_please_enter_price: string;
|
|
226
|
+
str_channel_min_price: string;
|
|
227
|
+
str_friendly_currency_won: string;
|
|
228
|
+
str_friendly_currency_jpy: string;
|
|
229
|
+
str_friendly_currency_dollar: string;
|
|
190
230
|
};
|
|
191
231
|
};
|
|
192
232
|
readonly 'zh-tw': {
|
|
@@ -225,6 +265,14 @@ declare const locale: {
|
|
|
225
265
|
str_3891: string;
|
|
226
266
|
str_3892: string;
|
|
227
267
|
str_3893: string;
|
|
268
|
+
str_min_price: string;
|
|
269
|
+
str_max_price: string;
|
|
270
|
+
str_price_unit: string;
|
|
271
|
+
str_please_enter_price: string;
|
|
272
|
+
str_channel_min_price: string;
|
|
273
|
+
str_friendly_currency_won: string;
|
|
274
|
+
str_friendly_currency_jpy: string;
|
|
275
|
+
str_friendly_currency_dollar: string;
|
|
228
276
|
};
|
|
229
277
|
};
|
|
230
278
|
readonly fil: {
|
|
@@ -263,6 +311,14 @@ declare const locale: {
|
|
|
263
311
|
str_3891: string;
|
|
264
312
|
str_3892: string;
|
|
265
313
|
str_3893: string;
|
|
314
|
+
str_min_price: string;
|
|
315
|
+
str_max_price: string;
|
|
316
|
+
str_price_unit: string;
|
|
317
|
+
str_please_enter_price: string;
|
|
318
|
+
str_channel_min_price: string;
|
|
319
|
+
str_friendly_currency_won: string;
|
|
320
|
+
str_friendly_currency_jpy: string;
|
|
321
|
+
str_friendly_currency_dollar: string;
|
|
266
322
|
};
|
|
267
323
|
};
|
|
268
324
|
};
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "木",
|
|
34
34
|
"str_3891": "金",
|
|
35
35
|
"str_3892": "土",
|
|
36
|
-
"str_3893": "日"
|
|
36
|
+
"str_3893": "日",
|
|
37
|
+
"str_min_price": "最小 {{minPrice}} {{currency}} 以上入力してください。",
|
|
38
|
+
"str_max_price": "最大 {{maxPrice}} {{currency}} まで入力できます。",
|
|
39
|
+
"str_price_unit": "{{priceUnit}} {{currency}}単位で入力してください。",
|
|
40
|
+
"str_please_enter_price": "価格を入力してください。",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "ウォン",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "ドル"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "목",
|
|
34
34
|
"str_3891": "금",
|
|
35
35
|
"str_3892": "토",
|
|
36
|
-
"str_3893": "일"
|
|
36
|
+
"str_3893": "일",
|
|
37
|
+
"str_min_price": "최소 {{minPrice}} {{currency}} 이상 입력해 주세요.",
|
|
38
|
+
"str_max_price": "최대 {{maxPrice}} {{currency}} 까지 입력할 수 있습니다.",
|
|
39
|
+
"str_price_unit": "{{priceUnit}} {{currency}} 단위로 입력해 주세요.",
|
|
40
|
+
"str_please_enter_price": "가격을 입력해 주세요.",
|
|
41
|
+
"str_channel_min_price": "예) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "원",
|
|
43
|
+
"str_friendly_currency_jpy": "엔",
|
|
44
|
+
"str_friendly_currency_dollar": "달러"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "Thu",
|
|
34
34
|
"str_3891": "Fri",
|
|
35
35
|
"str_3892": "Sat",
|
|
36
|
-
"str_3893": "Sun"
|
|
36
|
+
"str_3893": "Sun",
|
|
37
|
+
"str_min_price": "请至少输入{{minPrice}}、{{currency}}或更多。",
|
|
38
|
+
"str_max_price": "最多可以输入{{maxPrice}} {{currency}}。",
|
|
39
|
+
"str_price_unit": "请以{{priceUnit}} {{currency}}为单位输入。",
|
|
40
|
+
"str_please_enter_price": "请输入价格。",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "韩元",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "美元"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"str_3890": "Thu",
|
|
34
34
|
"str_3891": "Fri",
|
|
35
35
|
"str_3892": "Sat",
|
|
36
|
-
"str_3893": "Sun"
|
|
36
|
+
"str_3893": "Sun",
|
|
37
|
+
"str_min_price": "請至少輸入{{minPrice}}、{{currency}}或更多。",
|
|
38
|
+
"str_max_price": "最多可輸入{{maxPrice}} {{currency}}。",
|
|
39
|
+
"str_price_unit": "請以{{priceUnit}} {{currency}}為單位輸入。",
|
|
40
|
+
"str_please_enter_price": "請輸入價格。",
|
|
41
|
+
"str_channel_min_price": "ex) {{channelMinPrice}}",
|
|
42
|
+
"str_friendly_currency_won": "韓元",
|
|
43
|
+
"str_friendly_currency_jpy": "JPY",
|
|
44
|
+
"str_friendly_currency_dollar": "美元"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import type { TFunctionResult } from 'i18next';
|
|
2
2
|
export type PDSTextType = number | TFunctionResult;
|
|
3
|
+
export type TextLabelStyleThemeType = 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form1Bold' | 'form2Regular' | 'form2Bold' | 'blog1Regular';
|
|
4
|
+
export type TextLabelColorThemeType = 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingFormatter = void 0;
|
|
4
|
+
var types_1 = require("./types");
|
|
5
|
+
var PricingFormatter = /** @class */ (function () {
|
|
6
|
+
function PricingFormatter() {
|
|
7
|
+
}
|
|
8
|
+
PricingFormatter.price = function (price) {
|
|
9
|
+
var amount = price.amount, currency = price.currency;
|
|
10
|
+
var decimalDigits = types_1.CURRENCY_MAP[currency].decimalDigits;
|
|
11
|
+
var str = Number(amount).toFixed(decimalDigits);
|
|
12
|
+
return decimalDigits > 0
|
|
13
|
+
? str.replace(/(\d)(?=(\d{3})+\.)/g, '$1,') // 소수점 포함
|
|
14
|
+
: str.replace(/(\d)(?=(\d{3})+$)/g, '$1,'); // 정수 전용, 세 자리 콤마
|
|
15
|
+
};
|
|
16
|
+
return PricingFormatter;
|
|
17
|
+
}());
|
|
18
|
+
exports.PricingFormatter = PricingFormatter;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./service"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CurrencyCode } from './types';
|
|
2
|
+
import type { Currency, Price } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* publ이 지원하는 통화 목록
|
|
5
|
+
*/
|
|
6
|
+
export declare const SUPPORTED_CURRENCIES: readonly [CurrencyCode.KRW, CurrencyCode.USD, CurrencyCode.JPY];
|
|
7
|
+
export type SupportedCurrency = typeof SUPPORTED_CURRENCIES[number];
|
|
8
|
+
export declare const CURRENCY_BY_LOCALE_MAP: Record<string, CurrencyCode>;
|
|
9
|
+
/**
|
|
10
|
+
* 통화 가격 정책
|
|
11
|
+
*/
|
|
12
|
+
export interface CurrencyPricePolicy {
|
|
13
|
+
currency: Currency;
|
|
14
|
+
minPayment: Price;
|
|
15
|
+
minPromotionPayment?: Price;
|
|
16
|
+
maxPayment: Price;
|
|
17
|
+
paymentUnit: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 통화별 기본 가격 정책
|
|
21
|
+
*/
|
|
22
|
+
export declare const DEFAULT_CURRENCY_PRICE_POLICIES: Record<CurrencyCode, CurrencyPricePolicy>;
|
|
23
|
+
/**
|
|
24
|
+
* 별도의 통화별 가격 정책을 보유한 채널 목록
|
|
25
|
+
*/
|
|
26
|
+
export declare const CHANNEL_CURRENCY_PRICE_POLICIES: Record<string, CurrencyPricePolicy>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CHANNEL_CURRENCY_PRICE_POLICIES = exports.DEFAULT_CURRENCY_PRICE_POLICIES = exports.CURRENCY_BY_LOCALE_MAP = exports.SUPPORTED_CURRENCIES = void 0;
|
|
5
|
+
var types_1 = require("./types");
|
|
6
|
+
/**
|
|
7
|
+
* publ이 지원하는 통화 목록
|
|
8
|
+
*/
|
|
9
|
+
exports.SUPPORTED_CURRENCIES = [types_1.CurrencyCode.KRW, types_1.CurrencyCode.USD, types_1.CurrencyCode.JPY];
|
|
10
|
+
exports.CURRENCY_BY_LOCALE_MAP = {
|
|
11
|
+
ko: types_1.CurrencyCode.KRW,
|
|
12
|
+
kr: types_1.CurrencyCode.KRW,
|
|
13
|
+
en: types_1.CurrencyCode.USD,
|
|
14
|
+
us: types_1.CurrencyCode.USD,
|
|
15
|
+
ja: types_1.CurrencyCode.JPY,
|
|
16
|
+
jp: types_1.CurrencyCode.JPY
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 통화별 기본 가격 정책
|
|
20
|
+
*/
|
|
21
|
+
// customMaxAmount ?? (options.currency === CurrencyCode.KRW ? 10000000 : 10000.0);
|
|
22
|
+
exports.DEFAULT_CURRENCY_PRICE_POLICIES = (_a = {},
|
|
23
|
+
_a[types_1.CurrencyCode.KRW] = {
|
|
24
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.KRW],
|
|
25
|
+
minPayment: { amount: 300, currency: types_1.CurrencyCode.KRW },
|
|
26
|
+
maxPayment: { amount: 10000000, currency: types_1.CurrencyCode.KRW },
|
|
27
|
+
paymentUnit: 100
|
|
28
|
+
},
|
|
29
|
+
_a[types_1.CurrencyCode.USD] = {
|
|
30
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.USD],
|
|
31
|
+
minPayment: { amount: 5, currency: types_1.CurrencyCode.USD },
|
|
32
|
+
maxPayment: { amount: 10000.0, currency: types_1.CurrencyCode.USD },
|
|
33
|
+
paymentUnit: 1
|
|
34
|
+
},
|
|
35
|
+
_a[types_1.CurrencyCode.JPY] = {
|
|
36
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.JPY],
|
|
37
|
+
minPayment: { amount: 300, currency: types_1.CurrencyCode.JPY },
|
|
38
|
+
maxPayment: { amount: 10000000, currency: types_1.CurrencyCode.JPY },
|
|
39
|
+
paymentUnit: 100
|
|
40
|
+
},
|
|
41
|
+
_a);
|
|
42
|
+
/**
|
|
43
|
+
* 별도의 통화별 가격 정책을 보유한 채널 목록
|
|
44
|
+
*/
|
|
45
|
+
exports.CHANNEL_CURRENCY_PRICE_POLICIES = {
|
|
46
|
+
// 루시드 드림 채널
|
|
47
|
+
L2NoYW5uZWxzLzMyMDA: {
|
|
48
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.KRW],
|
|
49
|
+
minPayment: { amount: 15000, currency: types_1.CurrencyCode.KRW },
|
|
50
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].maxPayment,
|
|
51
|
+
paymentUnit: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].paymentUnit
|
|
52
|
+
},
|
|
53
|
+
// 이승기 채널
|
|
54
|
+
L2NoYW5uZWxzLzkz: {
|
|
55
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.KRW],
|
|
56
|
+
minPayment: { amount: 5000, currency: types_1.CurrencyCode.KRW },
|
|
57
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].maxPayment,
|
|
58
|
+
paymentUnit: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].paymentUnit
|
|
59
|
+
},
|
|
60
|
+
// publDEV - 앱 채널
|
|
61
|
+
L2NoYW5uZWxzLzExNzQ: {
|
|
62
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.KRW],
|
|
63
|
+
minPayment: { amount: 5000, currency: types_1.CurrencyCode.KRW },
|
|
64
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].maxPayment,
|
|
65
|
+
paymentUnit: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].paymentUnit
|
|
66
|
+
},
|
|
67
|
+
// KAVECON 채널
|
|
68
|
+
L2NoYW5uZWxzLzU4MTQ: {
|
|
69
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.KRW],
|
|
70
|
+
minPayment: { amount: 20000, currency: types_1.CurrencyCode.KRW },
|
|
71
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].maxPayment,
|
|
72
|
+
paymentUnit: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.KRW].paymentUnit
|
|
73
|
+
},
|
|
74
|
+
// 투니모션 채널
|
|
75
|
+
L2NoYW5uZWxzLzE4NTcx: {
|
|
76
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.USD],
|
|
77
|
+
minPayment: { amount: 0.3, currency: types_1.CurrencyCode.USD },
|
|
78
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.USD].maxPayment,
|
|
79
|
+
minPromotionPayment: { amount: 0.1, currency: types_1.CurrencyCode.USD },
|
|
80
|
+
paymentUnit: 0.1
|
|
81
|
+
},
|
|
82
|
+
// DEV 테스트 채널 - webCP 해외 1:100
|
|
83
|
+
L2NoYW5uZWxzLzIyMTM: {
|
|
84
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.USD],
|
|
85
|
+
minPayment: { amount: 0.3, currency: types_1.CurrencyCode.USD },
|
|
86
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.USD].maxPayment,
|
|
87
|
+
minPromotionPayment: { amount: 0.1, currency: types_1.CurrencyCode.USD },
|
|
88
|
+
paymentUnit: 0.1
|
|
89
|
+
},
|
|
90
|
+
// PROD 테스트 채널
|
|
91
|
+
L2NoYW5uZWxzLzE4Nzg0: {
|
|
92
|
+
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.USD],
|
|
93
|
+
minPayment: { amount: 0.3, currency: types_1.CurrencyCode.USD },
|
|
94
|
+
minPromotionPayment: { amount: 0.1, currency: types_1.CurrencyCode.USD },
|
|
95
|
+
maxPayment: exports.DEFAULT_CURRENCY_PRICE_POLICIES[types_1.CurrencyCode.USD].maxPayment,
|
|
96
|
+
paymentUnit: 0.1
|
|
97
|
+
}
|
|
98
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { PricingFormatter } from './formatter';
|
|
2
|
+
import { PricingTranslator } from './translator';
|
|
3
|
+
import { CurrencyCode } from './types';
|
|
4
|
+
import { PricingValidator } from './validator';
|
|
5
|
+
import type { CurrencyPricePolicy, SupportedCurrency } from './policy';
|
|
6
|
+
import type { Currency, ExchangeRateMap, Price } from './types';
|
|
7
|
+
import type { PriceTextField } from '../../desktop/components';
|
|
8
|
+
/**
|
|
9
|
+
* PricingService는 상품의 판매가, 할인, 통화 포맷 등 가격 관련 비즈니스 로직을 처리하는 도메인 서비스입니다
|
|
10
|
+
*/
|
|
11
|
+
export declare class PricingService {
|
|
12
|
+
private static instance;
|
|
13
|
+
static getInstance(): PricingService;
|
|
14
|
+
static format: typeof PricingFormatter;
|
|
15
|
+
static translate: typeof PricingTranslator;
|
|
16
|
+
static validate: typeof PricingValidator;
|
|
17
|
+
private browserLanguage;
|
|
18
|
+
static init(browserLanguage: string): void;
|
|
19
|
+
setBrowserLanguage(locale: string): void;
|
|
20
|
+
static getCurrency(currency: CurrencyCode): Currency;
|
|
21
|
+
/**
|
|
22
|
+
* publ이 지원하는 통화인지 반환합니다
|
|
23
|
+
*/
|
|
24
|
+
static isSupportedCurrency(currency: string): currency is SupportedCurrency;
|
|
25
|
+
/**
|
|
26
|
+
* 채널의 통화 가격 정책을 반환합니다
|
|
27
|
+
*/
|
|
28
|
+
static getCurrencyPricePolicy(channelCode: string, currency: CurrencyCode): CurrencyPricePolicy;
|
|
29
|
+
/**
|
|
30
|
+
* 유저의 선호 통화 기본값을 반환합니다
|
|
31
|
+
*/
|
|
32
|
+
static getDefaultPreferredCurrency(userCountryCode?: string): CurrencyCode;
|
|
33
|
+
/**
|
|
34
|
+
* 환율 변환 유틸리티
|
|
35
|
+
*
|
|
36
|
+
* @param amount 금액 (from 통화 기준)
|
|
37
|
+
* @param from 원래 통화
|
|
38
|
+
* @param to 변환할 대상 통화
|
|
39
|
+
* @param exchangeRates 기준 통화 대비 환율 테이블 (예: { USD: 1, KRW: 1300, EUR: 0.9 })
|
|
40
|
+
* @returns 환산된 금액 (소수점 반올림 포함)
|
|
41
|
+
*/
|
|
42
|
+
static exchangePrice(amount: number, from: CurrencyCode, to: CurrencyCode, exchangeRates: ExchangeRateMap): number;
|
|
43
|
+
/**
|
|
44
|
+
* 기준 통화 상품 가격을 선호 통화 가격으로 변환합니다
|
|
45
|
+
* @param price 기준 통화의 상품 가격
|
|
46
|
+
* @param preferredCurrency 선호 통화
|
|
47
|
+
* @param exchangeRates 기준 통화 대비 환율 테이블
|
|
48
|
+
*/
|
|
49
|
+
static convertToPreferredPrice(price: Price, preferredCurrency: CurrencyCode, exchangeRates: ExchangeRateMap): Price;
|
|
50
|
+
/**
|
|
51
|
+
* 채널 가격 정책 기반의 PriceTextField Props를 반환합니다
|
|
52
|
+
*/
|
|
53
|
+
static getPriceTextFieldProps(channelCode: string, options: {
|
|
54
|
+
currency: CurrencyCode;
|
|
55
|
+
isPromotionPrice?: boolean;
|
|
56
|
+
validation?: {
|
|
57
|
+
useRequiredValidation?: 'none' | 'use';
|
|
58
|
+
customMinAmount?: number;
|
|
59
|
+
customMaxAmount?: number;
|
|
60
|
+
};
|
|
61
|
+
}): Partial<Parameters<typeof PriceTextField>[0]>;
|
|
62
|
+
}
|