@fonixtree/magic-design 0.1.84 → 0.1.86

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.
Files changed (95) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +30 -6
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/common/GroupList/index.js +7 -2
  7. package/es/common/ProductModal/SortableImageList/index.js +118 -0
  8. package/es/common/ProductModal/SortableImageList/index.less +3 -0
  9. package/es/common/ProductModal/index.js +40 -27
  10. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  11. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  12. package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  13. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  14. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  15. package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  16. package/es/composite-comp/dito/components/Orders/index.js +84 -0
  17. package/es/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  18. package/es/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  19. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  20. package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  21. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  22. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  23. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  24. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  25. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  26. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  27. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  28. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  29. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  30. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  31. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  32. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  33. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  34. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  35. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  36. package/es/constants/component-types.js +21 -3
  37. package/es/constants/index.js +37 -3
  38. package/es/core/Designer/ConfigPanel/index.js +6 -0
  39. package/es/decorator/compositeDecorator.js +1 -1
  40. package/es/locale/en/en.json +14 -0
  41. package/es/locale/es/es.json +14 -0
  42. package/es/locale/id/id.json +14 -0
  43. package/es/mobx/UserState.js +144 -0
  44. package/es/mobx/index.js +9 -3
  45. package/es/utils/androidUtil.js +13 -2
  46. package/es/utils/commonUtil.js +118 -4
  47. package/es/utils/coreUtil.js +4 -3
  48. package/lib/assets/fonts/magic-box-iconfont.css +30 -6
  49. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  50. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  51. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  52. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  53. package/lib/common/GroupList/index.js +7 -2
  54. package/lib/common/ProductModal/SortableImageList/index.js +118 -0
  55. package/lib/common/ProductModal/SortableImageList/index.less +3 -0
  56. package/lib/common/ProductModal/index.js +40 -27
  57. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  58. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  59. package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  60. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  61. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  62. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  63. package/lib/composite-comp/dito/components/Orders/index.js +84 -0
  64. package/lib/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  65. package/lib/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  66. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  67. package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  68. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  69. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  70. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  71. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  72. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  73. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  74. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  75. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  76. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  77. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  78. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  79. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  80. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  81. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  82. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  83. package/lib/constants/component-types.js +21 -3
  84. package/lib/constants/index.js +37 -3
  85. package/lib/core/Designer/ConfigPanel/index.js +6 -0
  86. package/lib/decorator/compositeDecorator.js +1 -1
  87. package/lib/locale/en/en.json +14 -0
  88. package/lib/locale/es/es.json +14 -0
  89. package/lib/locale/id/id.json +14 -0
  90. package/lib/mobx/UserState.js +144 -0
  91. package/lib/mobx/index.js +9 -3
  92. package/lib/utils/androidUtil.js +13 -2
  93. package/lib/utils/commonUtil.js +118 -4
  94. package/lib/utils/coreUtil.js +4 -3
  95. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
11
+
12
+ var _locale = require("../../../../locale");
13
+
14
+ var _common = require("../../../../common");
15
+
16
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
+
18
+ var _coreUtil = require("../../../../utils/coreUtil");
19
+
20
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var PersonalInformationConfig =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(PersonalInformationConfig, _super);
54
+
55
+ function PersonalInformationConfig() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.getContentPanel = function () {
59
+ var data = _this.props.data;
60
+ var source = [{
61
+ key: 1,
62
+ name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
63
+ metaOption: data.login
64
+ }];
65
+ return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
66
+ headerSize: "middle",
67
+ onRefresh: function onRefresh() {
68
+ return (0, _coreUtil.renderPreview)();
69
+ },
70
+ source: source,
71
+ type: "switch"
72
+ });
73
+ };
74
+
75
+ return _this;
76
+ }
77
+
78
+ PersonalInformationConfig.prototype.render = function () {
79
+ var data = this.props.data;
80
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
81
+ divider: "bold",
82
+ headerSize: "large",
83
+ source: [{
84
+ key: 'PersonalInformation1',
85
+ name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
86
+ value: this.getContentPanel()
87
+ }, {
88
+ key: 'PersonalInformation2',
89
+ name: (0, _locale.i18n)('Content'),
90
+ value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
91
+ maxNum: 4,
92
+ source: data.groupSource
93
+ }),
94
+ metaOption: data.groupSource
95
+ }, {
96
+ key: 'PersonalInformation3',
97
+ name: (0, _locale.i18n)('SPACING'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
99
+ data: data.spacing
100
+ })
101
+ }, {
102
+ key: 'PersonalInformation4',
103
+ name: (0, _locale.i18n)('BACKGROUND'),
104
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
105
+ data: data.background
106
+ })
107
+ }]
108
+ }));
109
+ };
110
+
111
+ PersonalInformationConfig.defaultProps = {
112
+ data: {}
113
+ };
114
+ return PersonalInformationConfig;
115
+ }(_react["default"].Component);
116
+
117
+ var _default = PersonalInformationConfig;
118
+ exports["default"] = _default;
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
11
+
12
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
13
+
14
+ var _common = require("../../../../common");
15
+
16
+ var _coreUtil = require("../../../../utils/coreUtil");
17
+
18
+ var _locale = require("../../../../locale");
19
+
20
+ require("./index.less");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var CommonFunctionsSecondConfig =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(CommonFunctionsSecondConfig, _super);
54
+
55
+ function CommonFunctionsSecondConfig() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {};
59
+
60
+ _this.selfRender = function () {
61
+ (0, _coreUtil.renderPreview)();
62
+
63
+ _this.setState({});
64
+ };
65
+
66
+ _this.getContentPanel = function (data) {
67
+ var source = [{
68
+ key: 'secondContent1',
69
+ name: (0, _locale.i18n)('Icon'),
70
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
71
+ data: data.image
72
+ }),
73
+ metaOption: data.image
74
+ }, {
75
+ key: 'secondContent2',
76
+ name: /*#__PURE__*/_react["default"].createElement("span", {
77
+ dangerouslySetInnerHTML: {
78
+ __html: data.title.text
79
+ }
80
+ }),
81
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
82
+ data: data.title
83
+ }),
84
+ metaOption: data.title
85
+ }];
86
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
87
+ headerSize: "middle",
88
+ onRefresh: function onRefresh() {
89
+ return (0, _coreUtil.renderPreview)();
90
+ },
91
+ showActiveColor: true,
92
+ source: source,
93
+ type: "switch"
94
+ }));
95
+ };
96
+
97
+ return _this;
98
+ }
99
+
100
+ CommonFunctionsSecondConfig.prototype.render = function () {
101
+ var panelProps = this.props.panelProps;
102
+ return /*#__PURE__*/_react["default"].createElement("div", {
103
+ className: "common_functions_second_conf_wrap"
104
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
105
+ divider: "bold",
106
+ headerSize: "large",
107
+ source: [{
108
+ key: 'secondConfig1',
109
+ name: (0, _locale.i18n)('CONTENT'),
110
+ value: this.getContentPanel(panelProps, true)
111
+ }]
112
+ }));
113
+ };
114
+
115
+ CommonFunctionsSecondConfig.defaultProps = {
116
+ panelProps: {}
117
+ };
118
+ return CommonFunctionsSecondConfig;
119
+ }(_react["default"].Component);
120
+
121
+ var _default = CommonFunctionsSecondConfig;
122
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ .common_functions_second_conf_wrap {}
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
13
+
14
+ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
15
+
16
+ var _common = require("../../../../common");
17
+
18
+ var _coreUtil = require("../../../../utils/coreUtil");
19
+
20
+ var _index = require("../../../../constants/index");
21
+
22
+ var _locale = require("../../../../locale");
23
+
24
+ require("./index.less");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var OrdersSecondConfig =
55
+ /** @class */
56
+ function (_super) {
57
+ __extends(OrdersSecondConfig, _super);
58
+
59
+ function OrdersSecondConfig() {
60
+ var _this = _super !== null && _super.apply(this, arguments) || this;
61
+
62
+ _this.state = {};
63
+
64
+ _this.selfRender = function () {
65
+ (0, _coreUtil.renderPreview)();
66
+
67
+ _this.setState({});
68
+ };
69
+
70
+ _this.getContentPanel = function (data) {
71
+ var source = [{
72
+ key: 'secondContent1',
73
+ name: (0, _locale.i18n)('Icon'),
74
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
75
+ data: data.image
76
+ }),
77
+ metaOption: data.image
78
+ }, {
79
+ key: 'secondContent2',
80
+ name: /*#__PURE__*/_react["default"].createElement("span", {
81
+ dangerouslySetInnerHTML: {
82
+ __html: data.title.text
83
+ }
84
+ }),
85
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
86
+ data: data.title
87
+ }),
88
+ metaOption: data.title
89
+ }];
90
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
91
+ headerSize: "middle",
92
+ onRefresh: function onRefresh() {
93
+ return (0, _coreUtil.renderPreview)();
94
+ },
95
+ showActiveColor: true,
96
+ source: source,
97
+ type: "switch"
98
+ }), /*#__PURE__*/_react["default"].createElement("div", {
99
+ className: "sourceOfAmount"
100
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
101
+ title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
102
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
103
+ onChange: function onChange(v) {
104
+ data.sourceType = v;
105
+ data.title.text = v;
106
+
107
+ _this.selfRender();
108
+ },
109
+ value: data.sourceType
110
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
111
+ value: _index.orderStatusType.PAY
112
+ }, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
113
+ value: _index.orderStatusType.SHIP
114
+ }, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
115
+ value: _index.orderStatusType.RECEIVE
116
+ }, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
117
+ value: _index.orderStatusType.DONE
118
+ }, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
119
+ value: _index.orderStatusType.CANCELLED
120
+ }, (0, _locale.i18n)('CANCELLED'))))));
121
+ };
122
+
123
+ return _this;
124
+ }
125
+
126
+ OrdersSecondConfig.prototype.render = function () {
127
+ var panelProps = this.props.panelProps;
128
+ return /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "orders_second_conf_wrap"
130
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
131
+ divider: "bold",
132
+ headerSize: "large",
133
+ source: [{
134
+ key: 'secondConfig1',
135
+ name: (0, _locale.i18n)('CONTENT'),
136
+ value: this.getContentPanel(panelProps, true)
137
+ }]
138
+ }));
139
+ };
140
+
141
+ OrdersSecondConfig.defaultProps = {
142
+ panelProps: {}
143
+ };
144
+ return OrdersSecondConfig;
145
+ }(_react["default"].Component);
146
+
147
+ var _default = OrdersSecondConfig;
148
+ exports["default"] = _default;
@@ -0,0 +1,9 @@
1
+ .orders_second_conf_wrap {
2
+
3
+ .sourceOfAmount {
4
+ border-top: 1px dashed #D2D9E5;
5
+ border-bottom: 1px dashed #D2D9E5;
6
+ padding-top: 20px;
7
+ padding-bottom: 10px;
8
+ }
9
+ }
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
13
+
14
+ var _common = require("../../../../common");
15
+
16
+ var _coreUtil = require("../../../../utils/coreUtil");
17
+
18
+ var _locale = require("../../../../locale");
19
+
20
+ var _index = require("../../../../constants/index");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var PersonalInfoSecondConfig =
53
+ /** @class */
54
+ function (_super) {
55
+ __extends(PersonalInfoSecondConfig, _super);
56
+
57
+ function PersonalInfoSecondConfig() {
58
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59
+
60
+ _this.state = {};
61
+
62
+ _this.selfRender = function () {
63
+ (0, _coreUtil.renderPreview)();
64
+
65
+ _this.setState({});
66
+ };
67
+
68
+ _this.getContentPanel = function (data) {
69
+ var source = [{
70
+ key: 'secondContent1',
71
+ name: /*#__PURE__*/_react["default"].createElement("span", {
72
+ dangerouslySetInnerHTML: {
73
+ __html: data.title.text
74
+ }
75
+ }),
76
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
77
+ data: data.title
78
+ }),
79
+ metaOption: data.title
80
+ }, {
81
+ key: 'secondContent2',
82
+ name: (0, _locale.i18n)('Number'),
83
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
84
+ data: data.number
85
+ }),
86
+ metaOption: data.number
87
+ }];
88
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
89
+ headerSize: "middle",
90
+ onRefresh: function onRefresh() {
91
+ return (0, _coreUtil.renderPreview)();
92
+ },
93
+ showActiveColor: true,
94
+ source: source,
95
+ type: "switch"
96
+ }), /*#__PURE__*/_react["default"].createElement("div", {
97
+ className: "sourceOfAmount"
98
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
99
+ title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
100
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
101
+ onChange: function onChange(v) {
102
+ data.sourceType = v;
103
+
104
+ _this.selfRender();
105
+ },
106
+ value: data.sourceType
107
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
108
+ value: _index.personalInfoType.WISHLIST
109
+ }, (0, _locale.i18n)('WISHLIST')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
110
+ value: _index.personalInfoType.STORES
111
+ }, (0, _locale.i18n)('STORES')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
112
+ value: _index.personalInfoType.VOUCHERS
113
+ }, (0, _locale.i18n)('VOUCHERS')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
114
+ value: _index.personalInfoType.VIEWED
115
+ }, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
116
+ };
117
+
118
+ return _this;
119
+ }
120
+
121
+ PersonalInfoSecondConfig.prototype.render = function () {
122
+ var panelProps = this.props.panelProps;
123
+ return /*#__PURE__*/_react["default"].createElement("div", {
124
+ className: "personal_info_second_conf_wrap"
125
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
126
+ divider: "bold",
127
+ headerSize: "large",
128
+ source: [{
129
+ key: 'secondConfig1',
130
+ name: (0, _locale.i18n)('CONTENT'),
131
+ value: this.getContentPanel(panelProps, true)
132
+ }]
133
+ }));
134
+ };
135
+
136
+ PersonalInfoSecondConfig.defaultProps = {
137
+ panelProps: {}
138
+ };
139
+ return PersonalInfoSecondConfig;
140
+ }(_react["default"].Component);
141
+
142
+ var _default = PersonalInfoSecondConfig;
143
+ exports["default"] = _default;
@@ -0,0 +1,9 @@
1
+ .personal_info_second_conf_wrap {
2
+
3
+ .sourceOfAmount {
4
+ border-top: 1px dashed #D2D9E5;
5
+ border-bottom: 1px dashed #D2D9E5;
6
+ padding-top: 20px;
7
+ padding-bottom: 10px;
8
+ }
9
+ }
@@ -51,6 +51,12 @@ var _MenuNavigation = _interopRequireDefault(require("../composite-comp/dito/com
51
51
 
52
52
  var _HeadNavigation = _interopRequireDefault(require("../composite-comp/dito/components/HeadNavigation"));
53
53
 
54
+ var _PersonalInformation = _interopRequireDefault(require("../composite-comp/dito/components/PersonalInformation"));
55
+
56
+ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/Orders"));
57
+
58
+ var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
59
+
54
60
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
55
61
 
56
62
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -97,6 +103,12 @@ var _MenuNavigationConfig = _interopRequireDefault(require("../composite-comp/di
97
103
 
98
104
  var _HeadNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/HeadNavigationConfig"));
99
105
 
106
+ var _PersonalInformationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PersonalInformationConfig"));
107
+
108
+ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/OrdersConfig"));
109
+
110
+ var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
111
+
100
112
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
101
113
 
102
114
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -129,6 +141,12 @@ var _MenuNavigationSecondConfig = _interopRequireDefault(require("../composite-c
129
141
 
130
142
  var _HeadNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/HeadNavigationSecondConfig"));
131
143
 
144
+ var _PersonalInformationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PersonalInformationSecondConfig"));
145
+
146
+ var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/OrdersSecondConfig"));
147
+
148
+ var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
149
+
132
150
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
133
151
 
134
152
  var _a, _b, _c; // 组件
@@ -137,17 +155,17 @@ var _a, _b, _c; // 组件
137
155
  /**
138
156
  * 渲染组件索引
139
157
  */
140
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
158
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
141
159
  /**
142
160
  * 一级配置面板索引
143
161
  */
144
162
 
145
163
  exports.componentMap = componentMap;
146
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
164
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
147
165
  /**
148
166
  * 二级配置面板索引
149
167
  */
150
168
 
151
169
  exports.configPanelMap = configPanelMap;
152
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
170
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
153
171
  exports.secondConfigPanelMap = secondConfigPanelMap;