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.
Files changed (30) hide show
  1. package/dist/components/atoms/UserSelector/UserSelector.stories.js +1 -1
  2. package/dist/components/atoms/UserSelector/index.js +4 -2
  3. package/dist/components/molecules/RowItem/styles.js +1 -1
  4. package/dist/components/molecules/StatusAsignationInfo/FinancedCompanies.js +1 -1
  5. package/dist/components/organisms/GridProducts/GridProducts.stories.js +102 -615
  6. package/dist/components/organisms/GridProducts/index.js +2 -2
  7. package/dist/components/organisms/InputGroup/index.js +30 -30
  8. package/dist/components/organisms/Table/styles.js +1 -1
  9. package/dist/components/pages/MultipleEdition/MultipleEdition.stories.js +1 -1
  10. package/dist/components/pages/MultipleEdition/saveData.js +19 -9
  11. package/dist/components/pages/MultipleEdition/styles.js +1 -1
  12. package/dist/components/pages/MultipleEdition/utils.js +153 -61
  13. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -72
  14. package/dist/components/pages/RetailerProductEdition/index.js +63 -19
  15. package/package.json +1 -1
  16. package/src/components/atoms/UserSelector/UserSelector.stories.js +1 -1
  17. package/src/components/atoms/UserSelector/index.js +7 -1
  18. package/src/components/molecules/RowItem/styles.js +1 -0
  19. package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +43 -501
  20. package/src/components/molecules/StatusAsignationInfo/index.js +2 -3
  21. package/src/components/organisms/GridProducts/GridProducts.stories.js +107 -682
  22. package/src/components/organisms/GridProducts/index.js +2 -2
  23. package/src/components/organisms/InputGroup/index.js +47 -62
  24. package/src/components/organisms/Table/styles.js +5 -1
  25. package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +1 -1
  26. package/src/components/pages/MultipleEdition/saveData.js +6 -7
  27. package/src/components/pages/MultipleEdition/styles.js +1 -7
  28. package/src/components/pages/MultipleEdition/utils.js +24 -47
  29. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +79 -72
  30. 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: "auditor",
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
- onAssign(product, user.id_user, assignationTarget, target, concept);
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 = [300, 300, 301, 301, 302, 302, 303, 303, 304, 304, 305, 305, 306, 306, 307, 307, 308, 308, 309, 309, 310, 310, 311, 311, 312, 312, 313, 313, 314, 314, 315, 315, 316, 316, 317, 317, 318, 318, 319, 319, 320, 320, 321, 321, 322, 322, 323, 323, 324, 324, 325, 325, 326, 326, 327, 327, 328, 328, 329, 329, 330, 330, 331, 331, 332, 332, 333, 333, 334, 334, 335, 335, 336, 336, 337, 337, 338, 338, 339, 339, 340, 340, 341, 341, 342, 342, 343, 343, 344, 344, 345, 345, 346, 346, 347, 347, 348, 348, 349, 349, 350, 350, 351, 351, 352, 352, 353, 353, 354, 354, 355, 355, 356, 356, 357, 357, 358, 358, 359, 359, 360, 360, 361, 361, 362, 362, 363, 363, 364, 364, 365, 365, 366, 366, 367, 367, 368, 368, 369, 369, 370, 370, 371, 371, 372, 372, 373, 373, 374, 374, 375, 375, 376, 376, 377, 377, 378, 378, 379, 379, 380, 380, 381, 381, 382, 382, 383, 383, 384, 384, 385, 385, 386, 386, 387, 387, 388, 388, 389, 389, 390, 390, 391, 391, 392, 392, 393, 393, 394, 394, 395, 395, 396, 396, 397, 397, 398, 398, 399, 399, 400, 400, 401, 401, 402, 402, 403, 403, 404, 404, 405, 405, 406, 406, 407, 407, 408, 408, 409, 409, 410, 410, 411, 411, 412, 412, 413, 413, 414, 414, 415, 415, 416, 416, 417, 417, 418, 418, 419, 419, 420, 420, 421, 421, 422, 422, 423, 423, 424, 424, 425, 425, 426, 426, 427, 427, 428, 428, 429, 429, 430, 430, 431, 431, 432, 432, 433, 433, 434, 434, 435, 435, 436, 436, 437, 437, 438, 438, 439, 439, 440, 440, 441, 441, 442, 442, 443, 443, 444, 444, 445, 445, 446, 446, 447, 447, 448, 448, 449, 449, 450, 450, 451, 451, 452, 452, 453, 453, 454, 454, 455, 455, 456, 456, 457, 457, 458, 458, 459, 459, 460, 460, 461, 461, 462, 462, 463, 463, 464, 464, 465, 465, 466, 466, 467, 467, 468, 468, 469, 469, 470, 470, 471, 471, 472, 472, 473, 473, 474, 474, 475, 475, 476, 476, 477, 477, 478, 478, 479, 479, 480, 480, 481, 481, 482, 482, 483, 483, 484, 484, 485, 485, 486, 486, 487, 487, 488, 488, 489, 489, 490, 490, 491, 491, 492, 492, 493, 493, 494, 494, 495, 495, 496, 496, 497, 497, 498, 498, 499, 499, 500, 500, 501, 501, 502, 502, 503, 503, 504, 504, 505, 505, 506, 506, 507, 507, 508, 508, 509, 509, 510, 510, 511, 511, 512, 512, 513, 513, 514, 514, 515, 515, 516, 516, 517, 517, 518, 518, 519, 519, 520, 520, 521, 521, 522, 522, 523, 523, 524, 524, 525, 525, 526, 526, 527, 527, 528, 528, 529, 529, 530, 530, 531, 531, 532, 532, 533, 533, 534, 534, 535, 535, 536, 536, 537, 537, 538, 538, 539, 539, 540, 540, 541, 541, 542, 542, 543, 543, 544, 544, 545, 545, 546, 546, 547, 547, 548, 548, 549, 549];
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;