ecomlab-components-next 0.1.177 → 0.1.178
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.
|
@@ -76,11 +76,11 @@ var ModalCrm = function ModalCrm(_ref) {
|
|
|
76
76
|
return selectedValue !== null && selectedValue !== void 0 && selectedValue.label ? "".concat(key, "=\u0422\u0438\u043F \u043F\u0430\u0440\u0442\u043D\u0435\u0440\u0430: ").concat(selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.label, " // ").concat(value) : "".concat(key, "=").concat(value);
|
|
77
77
|
} else return "".concat(key, "=").concat(value);
|
|
78
78
|
})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.join('&');
|
|
79
|
-
var testUrl = "https://
|
|
79
|
+
var testUrl = "https://apps0.ecomru.ru:4447/api/crm/deals/create?step_id=135&author=438&responsible=438&name=\u0417\u0430\u044F\u0432\u043A\u0430&".concat(queries, "&token=").concat(bitrixToken);
|
|
80
80
|
fetch(testUrl).then(function (res) {
|
|
81
81
|
return res.json();
|
|
82
82
|
}).then(function (json) {
|
|
83
|
-
if (json
|
|
83
|
+
if (json) {
|
|
84
84
|
setsuccessfulResponse(true);
|
|
85
85
|
}
|
|
86
86
|
})["catch"](function (err) {
|
|
@@ -8,77 +8,25 @@ var _addonActions = require("@storybook/addon-actions");
|
|
|
8
8
|
var _ModalCrm = _interopRequireDefault(require("./ModalCrm"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
var formStubData = [{
|
|
11
|
-
id: '
|
|
12
|
-
placeholder: 'Название лида',
|
|
13
|
-
hidden: true,
|
|
14
|
-
value: 'Лид клиент',
|
|
15
|
-
inputType: 'text',
|
|
16
|
-
type: 'input',
|
|
17
|
-
required: true
|
|
18
|
-
}, {
|
|
19
|
-
id: 'FIELDS[NAME]',
|
|
11
|
+
id: 'f_20',
|
|
20
12
|
placeholder: 'Имя',
|
|
21
13
|
inputType: 'text',
|
|
22
14
|
type: 'input',
|
|
23
15
|
required: true
|
|
24
16
|
}, {
|
|
25
|
-
id: '
|
|
17
|
+
id: 'f_21',
|
|
26
18
|
placeholder: 'Фамилия',
|
|
27
19
|
inputType: 'text',
|
|
28
20
|
type: 'input'
|
|
29
21
|
}, {
|
|
30
|
-
id: '
|
|
31
|
-
placeholder: 'Email',
|
|
32
|
-
inputType: 'email',
|
|
33
|
-
type: 'input',
|
|
34
|
-
required: true
|
|
35
|
-
}, {
|
|
36
|
-
id: 'FIELDS[EMAIL][0][VALUE_TYPE]',
|
|
37
|
-
placeholder: 'Тип email',
|
|
38
|
-
inputType: 'text',
|
|
39
|
-
type: 'input'
|
|
40
|
-
}, {
|
|
41
|
-
id: 'FIELDS[UF_CRM_1499876148]',
|
|
42
|
-
placeholder: 'Ваша свера деятельности',
|
|
43
|
-
inputType: 'dropdown',
|
|
44
|
-
type: 'dropdown',
|
|
45
|
-
required: true,
|
|
46
|
-
options_prop: [{
|
|
47
|
-
label: 'Рекламное агентство',
|
|
48
|
-
value: '455'
|
|
49
|
-
}, {
|
|
50
|
-
label: 'WEB студия',
|
|
51
|
-
value: '457'
|
|
52
|
-
}, {
|
|
53
|
-
label: 'Интегратор',
|
|
54
|
-
value: '459'
|
|
55
|
-
}, {
|
|
56
|
-
label: 'Партнер 1С',
|
|
57
|
-
value: '461'
|
|
58
|
-
}, {
|
|
59
|
-
label: 'Другое',
|
|
60
|
-
value: '463'
|
|
61
|
-
}]
|
|
62
|
-
}, {
|
|
63
|
-
id: 'FIELDS[PHONE][0][VALUE]',
|
|
22
|
+
id: 'f_22',
|
|
64
23
|
placeholder: 'Номер телефона',
|
|
65
|
-
inputType: 'tel',
|
|
66
|
-
type: 'input',
|
|
67
|
-
required: true
|
|
68
|
-
}, {
|
|
69
|
-
id: 'FIELDS[PHONE][0][VALUE_TYPE]',
|
|
70
|
-
placeholder: 'Тип номера',
|
|
71
24
|
inputType: 'text',
|
|
72
25
|
type: 'input'
|
|
73
|
-
}, {
|
|
74
|
-
id: 'FIELDS[COMMENTS]',
|
|
75
|
-
placeholder: 'Комментарий',
|
|
76
|
-
inputType: 'text',
|
|
77
|
-
type: 'textarea'
|
|
78
26
|
}];
|
|
79
27
|
var formStubTitle = 'Заголовок формы';
|
|
80
28
|
var formStubSubTitle = 'Подзаголовок формы';
|
|
81
|
-
var formStubBitrixToken = '
|
|
29
|
+
var formStubBitrixToken = 'gAAAAABob30rcRGWTm90d29c1tWqpKtC18lyKrjaPOGupuVUV6EOvdVZOunHCmgxkCfyF3qmgh0n-k36lY-Kw00Gnh5kzqFJvg==';
|
|
82
30
|
var _default = exports["default"] = {
|
|
83
31
|
title: 'Components/ModalCrm',
|
|
84
32
|
component: _ModalCrm["default"],
|