contentoh-components-library 21.5.19 → 21.5.21
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/components/atoms/UserSelector/UserSelector.stories.js +1 -1
- package/dist/components/atoms/UserSelector/index.js +4 -2
- package/dist/components/molecules/RowItem/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/FinancedCompanies.js +1 -1
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +102 -615
- package/dist/components/organisms/GridProducts/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +30 -30
- package/dist/components/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/MultipleEdition.stories.js +1 -1
- package/dist/components/pages/MultipleEdition/saveData.js +19 -9
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +153 -61
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -72
- package/dist/components/pages/RetailerProductEdition/index.js +63 -19
- package/package.json +1 -1
- package/src/components/atoms/UserSelector/UserSelector.stories.js +1 -1
- package/src/components/atoms/UserSelector/index.js +7 -1
- package/src/components/molecules/RowItem/styles.js +1 -0
- package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +43 -501
- package/src/components/molecules/StatusAsignationInfo/index.js +2 -3
- package/src/components/organisms/GridProducts/GridProducts.stories.js +107 -682
- package/src/components/organisms/GridProducts/index.js +2 -2
- package/src/components/organisms/InputGroup/index.js +47 -62
- package/src/components/organisms/Table/styles.js +5 -1
- package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +1 -1
- package/src/components/pages/MultipleEdition/saveData.js +6 -7
- package/src/components/pages/MultipleEdition/styles.js +1 -7
- package/src/components/pages/MultipleEdition/utils.js +24 -47
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +79 -72
- package/src/components/pages/RetailerProductEdition/index.js +93 -29
|
@@ -27,7 +27,7 @@ var UserSelectorDefault = Template.bind({});
|
|
|
27
27
|
exports.UserSelectorDefault = UserSelectorDefault;
|
|
28
28
|
UserSelectorDefault.args = {
|
|
29
29
|
searchLabel: "Buscar auditor",
|
|
30
|
-
index: "
|
|
30
|
+
index: "datasheet",
|
|
31
31
|
usersArray: [{
|
|
32
32
|
name: "José",
|
|
33
33
|
last_name: "Castañeda",
|
|
@@ -32,7 +32,8 @@ var UserSelector = function UserSelector(_ref) {
|
|
|
32
32
|
product = _ref.product,
|
|
33
33
|
assignationTarget = _ref.assignationTarget,
|
|
34
34
|
target = _ref.target,
|
|
35
|
-
concept = _ref.concept
|
|
35
|
+
concept = _ref.concept,
|
|
36
|
+
index = _ref.index;
|
|
36
37
|
|
|
37
38
|
var _useState = (0, _react.useState)([]),
|
|
38
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -76,7 +77,8 @@ var UserSelector = function UserSelector(_ref) {
|
|
|
76
77
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
78
|
className: "user-item",
|
|
78
79
|
onClick: function onClick() {
|
|
79
|
-
|
|
80
|
+
console.log("onAss", product, user.id_user, " ", assignationTarget, " ", target, index);
|
|
81
|
+
onAssign(product, user.id_user, assignationTarget, target, index);
|
|
80
82
|
},
|
|
81
83
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
82
84
|
image: (0, _data.getProfilePicture)(user.id_user, 26, 26),
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: calc(100% - 36px);\n overflow: auto;\n min-width: fit-content;\n\n .row-container {\n display: flex;\n cursor: pointer;\n &:hover {\n background-color: #fafafa;\n }\n\n .chk-container {\n width: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n .chk-item {\n width: 16px;\n height: 16px;\n }\n }\n }\n"])));
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: calc(100% - 36px);\n overflow: auto;\n min-width: fit-content;\n\n .row-container {\n display: flex;\n cursor: pointer;\n align-items: center;\n &:hover {\n background-color: #fafafa;\n }\n\n .chk-container {\n width: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n .chk-item {\n width: 16px;\n height: 16px;\n }\n }\n }\n"])));
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.FinancedCompanies = void 0;
|
|
7
|
-
var FinancedCompanies = [
|
|
7
|
+
var FinancedCompanies = [162, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 819, 820, 832, 840, 841, 843, 844, 846, 847, 849, 850, 852, 853, 854, 855, 856, 888, 894, 949, 963, 964, 965, 969, 995, 997, 1000, 1002, 1003, 1005, 1009, 1014, 1016, 1021, 1043, 1046, 1048, 1049, 1051, 1052, 1054, 1057, 1061, 1062, 1067, 1097, 1104, 1110, 1124, 1134, 1136, 1140, 1143, 1144, 1154, 1156, 1159, 1162, 1164, 1165, 1168, 1170, 1172, 1173, 1174, 1175, 1176, 1178, 1179, 1180, 1182, 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1195, 1196, 1199, 1200, 1201, 1202, 1203, 1204, 1206, 1207, 1210, 1223, 1253];
|
|
8
8
|
exports.FinancedCompanies = FinancedCompanies;
|