ui-kit-ck-consultant 0.5.148 → 0.5.152
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.css +104 -0
- package/dist/index.js +356 -93
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +351 -94
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -382,7 +382,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
382
382
|
}, "*") : '') : '', this.props.ignore !== true ? /*#__PURE__*/React.createElement("select", {
|
383
383
|
className: style$5.form_select,
|
384
384
|
onChange: this.props.onChange,
|
385
|
-
value: this.props.value,
|
385
|
+
value: this.props.value ? this.props.value : "DEFAULT",
|
386
386
|
name: this.props.name,
|
387
387
|
required: this.props.required,
|
388
388
|
disabled: this.props.disabled,
|
@@ -399,7 +399,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
399
399
|
}) : '') : /*#__PURE__*/React.createElement("select", {
|
400
400
|
className: style$5.form_select,
|
401
401
|
onChange: this.props.onChange,
|
402
|
-
value: this.props.value,
|
402
|
+
value: this.props.value ? this.props.value : "DEFAULT",
|
403
403
|
name: this.props.name,
|
404
404
|
required: this.props.required,
|
405
405
|
disabled: this.props.disabled
|
@@ -1415,7 +1415,129 @@ var TabsCustomArrowMenu = /*#__PURE__*/function (_React$Component) {
|
|
1415
1415
|
return TabsCustomArrowMenu;
|
1416
1416
|
}(React.Component);
|
1417
1417
|
|
1418
|
-
var style$h = {"
|
1418
|
+
var style$h = {"tabs_edit":"_23a7-","tabs_edit_header":"_3zdac","tabs_edit_body":"_2cxzo","noCard":"_2WKxa","tabs_edit_menu":"_MFel7","active":"_32WLP","disabled":"_Eq4pW","tabs_edit_item":"_1lUyF"};
|
1419
|
+
|
1420
|
+
var TabsEdit = /*#__PURE__*/function (_React$Component) {
|
1421
|
+
_inheritsLoose(TabsEdit, _React$Component);
|
1422
|
+
|
1423
|
+
function TabsEdit() {
|
1424
|
+
return _React$Component.apply(this, arguments) || this;
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
var _proto = TabsEdit.prototype;
|
1428
|
+
|
1429
|
+
_proto.render = function render() {
|
1430
|
+
return /*#__PURE__*/React.createElement("div", {
|
1431
|
+
className: classNames$1(style$h.tabs_edit, this.props.className)
|
1432
|
+
}, this.props.children);
|
1433
|
+
};
|
1434
|
+
|
1435
|
+
return TabsEdit;
|
1436
|
+
}(React.Component);
|
1437
|
+
|
1438
|
+
var TabsEditHeader = /*#__PURE__*/function (_React$Component) {
|
1439
|
+
_inheritsLoose(TabsEditHeader, _React$Component);
|
1440
|
+
|
1441
|
+
function TabsEditHeader() {
|
1442
|
+
return _React$Component.apply(this, arguments) || this;
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
var _proto = TabsEditHeader.prototype;
|
1446
|
+
|
1447
|
+
_proto.render = function render() {
|
1448
|
+
var _this = this;
|
1449
|
+
|
1450
|
+
return /*#__PURE__*/React.createElement("div", {
|
1451
|
+
className: classNames$1(style$h.tabs_edit_header, this.props.className)
|
1452
|
+
}, /*#__PURE__*/React.createElement("div", null, this.props.children), /*#__PURE__*/React.createElement("div", {
|
1453
|
+
cl: true
|
1454
|
+
}, /*#__PURE__*/React.createElement("div", {
|
1455
|
+
className: "cursor-pointer",
|
1456
|
+
style: {
|
1457
|
+
backgroundColor: 'var(--secondary-color)',
|
1458
|
+
display: 'flex',
|
1459
|
+
width: '40px',
|
1460
|
+
height: '40px',
|
1461
|
+
margin: 'auto',
|
1462
|
+
borderRadius: '10px'
|
1463
|
+
},
|
1464
|
+
onClick: function onClick() {
|
1465
|
+
return _this.props.onClickAdd ? _this.props.onClickAdd() : null;
|
1466
|
+
}
|
1467
|
+
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
1468
|
+
className: "m-auto white",
|
1469
|
+
icon: faPlus
|
1470
|
+
}))));
|
1471
|
+
};
|
1472
|
+
|
1473
|
+
return TabsEditHeader;
|
1474
|
+
}(React.Component);
|
1475
|
+
|
1476
|
+
var TabsEditBody = /*#__PURE__*/function (_React$Component) {
|
1477
|
+
_inheritsLoose(TabsEditBody, _React$Component);
|
1478
|
+
|
1479
|
+
function TabsEditBody() {
|
1480
|
+
return _React$Component.apply(this, arguments) || this;
|
1481
|
+
}
|
1482
|
+
|
1483
|
+
var _proto = TabsEditBody.prototype;
|
1484
|
+
|
1485
|
+
_proto.render = function render() {
|
1486
|
+
var _classNames;
|
1487
|
+
|
1488
|
+
var tabsBodyClass = classNames$1((_classNames = {}, _classNames[style$h.tabs_edit_body] = true, _classNames[style$h.noCard] = !!this.props.noCard, _classNames[this.props.className] = !!this.props.className, _classNames));
|
1489
|
+
return /*#__PURE__*/React.createElement("div", {
|
1490
|
+
className: tabsBodyClass
|
1491
|
+
}, this.props.children);
|
1492
|
+
};
|
1493
|
+
|
1494
|
+
return TabsEditBody;
|
1495
|
+
}(React.Component);
|
1496
|
+
|
1497
|
+
var TabsEditItem = /*#__PURE__*/function (_React$Component) {
|
1498
|
+
_inheritsLoose(TabsEditItem, _React$Component);
|
1499
|
+
|
1500
|
+
function TabsEditItem() {
|
1501
|
+
return _React$Component.apply(this, arguments) || this;
|
1502
|
+
}
|
1503
|
+
|
1504
|
+
var _proto = TabsEditItem.prototype;
|
1505
|
+
|
1506
|
+
_proto.render = function render() {
|
1507
|
+
var _classNames;
|
1508
|
+
|
1509
|
+
var tabsItemClass = classNames$1((_classNames = {}, _classNames[style$h.tabs_edit_item] = true, _classNames[style$h.active] = !!this.props.active, _classNames[this.props.className] = !!this.props.className, _classNames));
|
1510
|
+
return /*#__PURE__*/React.createElement("div", {
|
1511
|
+
className: tabsItemClass
|
1512
|
+
}, this.props.children);
|
1513
|
+
};
|
1514
|
+
|
1515
|
+
return TabsEditItem;
|
1516
|
+
}(React.Component);
|
1517
|
+
|
1518
|
+
var TabsEditMenu = /*#__PURE__*/function (_React$Component) {
|
1519
|
+
_inheritsLoose(TabsEditMenu, _React$Component);
|
1520
|
+
|
1521
|
+
function TabsEditMenu() {
|
1522
|
+
return _React$Component.apply(this, arguments) || this;
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
var _proto = TabsEditMenu.prototype;
|
1526
|
+
|
1527
|
+
_proto.render = function render() {
|
1528
|
+
var _classNames;
|
1529
|
+
|
1530
|
+
var tabsMenuClass = classNames$1((_classNames = {}, _classNames[style$h.tabs_edit_menu] = true, _classNames[style$h.active] = !!this.props.active, _classNames[style$h.disabled] = !!this.props.disabled, _classNames[this.props.className] = !!this.props.className, _classNames));
|
1531
|
+
return /*#__PURE__*/React.createElement("div", {
|
1532
|
+
className: tabsMenuClass,
|
1533
|
+
onClick: this.props.onClick
|
1534
|
+
}, /*#__PURE__*/React.createElement("span", null, this.props.title));
|
1535
|
+
};
|
1536
|
+
|
1537
|
+
return TabsEditMenu;
|
1538
|
+
}(React.Component);
|
1539
|
+
|
1540
|
+
var style$i = {"sidebar":"_2rooA","small":"_3Hv0y","mobile":"_1t5Wi","sidebar_header":"_2MRnG","sidebar_icon":"_1r537","button_hide":"_1OTTJ","sidebar_user":"_3iI4T","sidebar_user_icon":"_3wuAJ","sidebar_user_text":"_mb_54","sidebar_user_title":"_236yM","sidebar_user_subtitle":"_1z9F0","sidebar_body":"_1hv_V","sidebar_button":"_1iy27","sidebar_button_dropdown":"_1ZHFn","active":"_BPuzP","disabled":"_2BDmo","sidebar_button_second":"_2X9HU"};
|
1419
1541
|
|
1420
1542
|
var Sidebar = /*#__PURE__*/function (_React$Component) {
|
1421
1543
|
_inheritsLoose(Sidebar, _React$Component);
|
@@ -1561,43 +1683,43 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
1561
1683
|
_classNames2,
|
1562
1684
|
_this3 = this;
|
1563
1685
|
|
1564
|
-
var sidebarClass = classNames$1((_classNames = {}, _classNames[style$
|
1686
|
+
var sidebarClass = classNames$1((_classNames = {}, _classNames[style$i.small] = !!this.state.isHide, _classNames[style$i.mobile] = !!this.state.isMobile, _classNames), style$i.sidebar, this.props.className);
|
1565
1687
|
return /*#__PURE__*/React.createElement("div", {
|
1566
1688
|
className: sidebarClass
|
1567
1689
|
}, /*#__PURE__*/React.createElement("div", {
|
1568
|
-
className: style$
|
1690
|
+
className: style$i.sidebar_header
|
1569
1691
|
}, /*#__PURE__*/React.createElement("div", {
|
1570
|
-
className: style$
|
1692
|
+
className: style$i.sidebar_icon
|
1571
1693
|
}, this.props.icon ? /*#__PURE__*/React.createElement("img", {
|
1572
1694
|
alt: "icon",
|
1573
1695
|
src: this.props.icon
|
1574
1696
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
1575
|
-
className: style$
|
1697
|
+
className: style$i.button_hide,
|
1576
1698
|
onClick: this.handleHideClick
|
1577
1699
|
}, this.state.isHide ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
1578
1700
|
icon: faCaretRight
|
1579
1701
|
}) : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
1580
1702
|
icon: faCaretLeft
|
1581
1703
|
}))), /*#__PURE__*/React.createElement("div", {
|
1582
|
-
className: style$
|
1704
|
+
className: style$i.sidebar_user
|
1583
1705
|
}, this.props.picture ? /*#__PURE__*/React.createElement("div", {
|
1584
|
-
className: style$
|
1706
|
+
className: style$i.sidebar_user_icon
|
1585
1707
|
}, /*#__PURE__*/React.createElement("img", {
|
1586
1708
|
src: this.props.picture,
|
1587
1709
|
alt: 'profile'
|
1588
1710
|
})) : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
1589
1711
|
className: classNames$1((_classNames2 = {
|
1590
1712
|
'm-auto': this.state.isHide === true
|
1591
|
-
}, _classNames2[style$
|
1713
|
+
}, _classNames2[style$i.sidebar_user_icon] = true, _classNames2)),
|
1592
1714
|
icon: faUser
|
1593
1715
|
}), this.state.isHide === false ? /*#__PURE__*/React.createElement("div", {
|
1594
|
-
className: style$
|
1716
|
+
className: style$i.sidebar_user_text
|
1595
1717
|
}, /*#__PURE__*/React.createElement("span", {
|
1596
|
-
className: style$
|
1718
|
+
className: style$i.sidebar_user_title
|
1597
1719
|
}, this.props.title), /*#__PURE__*/React.createElement("span", {
|
1598
|
-
className: style$
|
1720
|
+
className: style$i.sidebar_user_subtitle
|
1599
1721
|
}, this.props.subtitle)) : null), /*#__PURE__*/React.createElement("div", {
|
1600
|
-
className: style$
|
1722
|
+
className: style$i.sidebar_body
|
1601
1723
|
}, this.state.views.map(function (element, idx) {
|
1602
1724
|
if (element.path && element.isHide !== true) {
|
1603
1725
|
var _classNames3;
|
@@ -1609,7 +1731,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
1609
1731
|
_this3.handleChangeViewClick(element.path, idx);
|
1610
1732
|
}
|
1611
1733
|
},
|
1612
|
-
className: classNames$1(style$
|
1734
|
+
className: classNames$1(style$i.sidebar_button, (_classNames3 = {}, _classNames3[style$i.active] = !!element.active, _classNames3[style$i.disabled] = !!element.disabled, _classNames3))
|
1613
1735
|
}, element.icon, /*#__PURE__*/React.createElement("span", null, element.name));
|
1614
1736
|
} else if (element.isHide !== true) {
|
1615
1737
|
var _classNames4;
|
@@ -1620,7 +1742,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
1620
1742
|
onClick: function onClick() {
|
1621
1743
|
return _this3.handleDropdownClick(idx);
|
1622
1744
|
},
|
1623
|
-
className: classNames$1(style$
|
1745
|
+
className: classNames$1(style$i.sidebar_button_dropdown, (_classNames4 = {}, _classNames4[style$i.active] = !!element.active, _classNames4[style$i.disabled] = !!element.disabled, _classNames4))
|
1624
1746
|
}, element.icon, /*#__PURE__*/React.createElement("span", null, element.name), element.active === true ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
1625
1747
|
icon: faCaretDown
|
1626
1748
|
}) : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
@@ -1637,7 +1759,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
1637
1759
|
_this3.handleChangeViewClick(elementDropdown.path, idx, idxDropdown);
|
1638
1760
|
}
|
1639
1761
|
},
|
1640
|
-
className: classNames$1(style$
|
1762
|
+
className: classNames$1(style$i.sidebar_button, style$i.sidebar_button_second, (_classNames5 = {}, _classNames5[style$i.active] = !!elementDropdown.active, _classNames5[style$i.disabled] = !!elementDropdown.disabled, _classNames5))
|
1641
1763
|
}, elementDropdown.icon, /*#__PURE__*/React.createElement("span", null, elementDropdown.name)));
|
1642
1764
|
}
|
1643
1765
|
});
|
@@ -1649,7 +1771,7 @@ var Sidebar = /*#__PURE__*/function (_React$Component) {
|
|
1649
1771
|
return Sidebar;
|
1650
1772
|
}(React.Component);
|
1651
1773
|
|
1652
|
-
var style$
|
1774
|
+
var style$j = {"doughnut_chart":"_3cUhz","text_doughnut_chart":"_3w6lM","text":"_2BjzU","number":"_25cuD","pie_chart":"_1uhd5","pie_chart_text":"_1U4br","bar_chart":"_2f4FH","bar_chart_text":"_2WPFA"};
|
1653
1775
|
|
1654
1776
|
var DoughnutChart = /*#__PURE__*/function (_React$Component) {
|
1655
1777
|
_inheritsLoose(DoughnutChart, _React$Component);
|
@@ -1689,7 +1811,7 @@ var DoughnutChart = /*#__PURE__*/function (_React$Component) {
|
|
1689
1811
|
}]
|
1690
1812
|
};
|
1691
1813
|
return /*#__PURE__*/React.createElement("div", {
|
1692
|
-
className: classNames$1(style$
|
1814
|
+
className: classNames$1(style$j.doughnut_chart, this.props.className)
|
1693
1815
|
}, /*#__PURE__*/React.createElement(Doughnut, {
|
1694
1816
|
id: this.props.text,
|
1695
1817
|
data: data,
|
@@ -1715,17 +1837,17 @@ var DoughnutChart = /*#__PURE__*/function (_React$Component) {
|
|
1715
1837
|
}
|
1716
1838
|
}
|
1717
1839
|
}), /*#__PURE__*/React.createElement("div", {
|
1718
|
-
className: style$
|
1840
|
+
className: style$j.text_doughnut_chart
|
1719
1841
|
}, /*#__PURE__*/React.createElement("p", {
|
1720
1842
|
style: {
|
1721
1843
|
color: this.getColor(num, max)
|
1722
1844
|
},
|
1723
|
-
className: style$
|
1845
|
+
className: style$j.number
|
1724
1846
|
}, num, unit), /*#__PURE__*/React.createElement("p", {
|
1725
1847
|
style: {
|
1726
1848
|
color: this.getColor(num, max)
|
1727
1849
|
},
|
1728
|
-
className: style$
|
1850
|
+
className: style$j.text
|
1729
1851
|
}, text)));
|
1730
1852
|
};
|
1731
1853
|
|
@@ -1888,9 +2010,9 @@ var BarChart = /*#__PURE__*/function (_React$Component) {
|
|
1888
2010
|
datasets: this.createDatasets(this.props.dataSet.length)
|
1889
2011
|
};
|
1890
2012
|
return /*#__PURE__*/React.createElement("div", {
|
1891
|
-
className: classNames(style$
|
2013
|
+
className: classNames(style$j.bar_chart, this.props.className)
|
1892
2014
|
}, /*#__PURE__*/React.createElement("div", {
|
1893
|
-
className: style$
|
2015
|
+
className: style$j.bar_chart_text
|
1894
2016
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
|
1895
2017
|
style: {
|
1896
2018
|
position: 'relative',
|
@@ -2075,9 +2197,9 @@ var RadarChart = /*#__PURE__*/function (_Component) {
|
|
2075
2197
|
datasets: this.createDatasets(this.props.dataSet.length)
|
2076
2198
|
};
|
2077
2199
|
return /*#__PURE__*/React.createElement("div", {
|
2078
|
-
className: classNames(style$
|
2200
|
+
className: classNames(style$j.bar_chart, this.props.className)
|
2079
2201
|
}, /*#__PURE__*/React.createElement("div", {
|
2080
|
-
className: style$
|
2202
|
+
className: style$j.bar_chart_text
|
2081
2203
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
|
2082
2204
|
style: {
|
2083
2205
|
position: 'relative',
|
@@ -2141,9 +2263,9 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2141
2263
|
var _this = this;
|
2142
2264
|
|
2143
2265
|
return /*#__PURE__*/React.createElement("div", {
|
2144
|
-
className: classNames(style$
|
2266
|
+
className: classNames(style$j.pie_chart, this.props.className)
|
2145
2267
|
}, /*#__PURE__*/React.createElement("div", {
|
2146
|
-
className: style$
|
2268
|
+
className: style$j.pie_chart_text
|
2147
2269
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
|
2148
2270
|
style: {
|
2149
2271
|
position: 'relative',
|
@@ -2339,9 +2461,9 @@ var HorizontalBarChart = /*#__PURE__*/function (_React$Component) {
|
|
2339
2461
|
datasets: this.createDatasets(this.props.dataSet.length)
|
2340
2462
|
};
|
2341
2463
|
return /*#__PURE__*/React.createElement("div", {
|
2342
|
-
className: classNames(style$
|
2464
|
+
className: classNames(style$j.bar_chart, this.props.className)
|
2343
2465
|
}, /*#__PURE__*/React.createElement("div", {
|
2344
|
-
className: style$
|
2466
|
+
className: style$j.bar_chart_text
|
2345
2467
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
|
2346
2468
|
style: {
|
2347
2469
|
position: 'relative',
|
@@ -2379,7 +2501,7 @@ var HorizontalBarChart = /*#__PURE__*/function (_React$Component) {
|
|
2379
2501
|
return HorizontalBarChart;
|
2380
2502
|
}(React.Component);
|
2381
2503
|
|
2382
|
-
var style$
|
2504
|
+
var style$k = {"progress_bar_container":"_bHyVu","bar":"_XOUj6","custom_progress":"_jBsK1"};
|
2383
2505
|
|
2384
2506
|
var ProgressBar = /*#__PURE__*/function (_React$Component) {
|
2385
2507
|
_inheritsLoose(ProgressBar, _React$Component);
|
@@ -2458,12 +2580,12 @@ var ProgressBar = /*#__PURE__*/function (_React$Component) {
|
|
2458
2580
|
var max = this.props.max ? this.props.max : 100;
|
2459
2581
|
var value = this.props.value ? this.props.value : 0;
|
2460
2582
|
return /*#__PURE__*/React.createElement("div", {
|
2461
|
-
className: classNames$1(style$
|
2583
|
+
className: classNames$1(style$k.progress_bar_container, this.props.className)
|
2462
2584
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("div", {
|
2463
|
-
className: style$
|
2585
|
+
className: style$k.bar,
|
2464
2586
|
ref: this.refProgress
|
2465
2587
|
}, /*#__PURE__*/React.createElement("div", {
|
2466
|
-
className: classNames$1(style$
|
2588
|
+
className: classNames$1(style$k.custom_progress, this.getColor(value, max)),
|
2467
2589
|
style: {
|
2468
2590
|
width: this.state.width
|
2469
2591
|
}
|
@@ -2473,7 +2595,7 @@ var ProgressBar = /*#__PURE__*/function (_React$Component) {
|
|
2473
2595
|
return ProgressBar;
|
2474
2596
|
}(React.Component);
|
2475
2597
|
|
2476
|
-
var style$
|
2598
|
+
var style$l = {"loader_container":"_3me5z","loader_element":"_2CYNt","loader":"_3ysPX","grow":"_971Mp"};
|
2477
2599
|
|
2478
2600
|
var Loader = /*#__PURE__*/function (_React$Component) {
|
2479
2601
|
_inheritsLoose(Loader, _React$Component);
|
@@ -2495,18 +2617,18 @@ var Loader = /*#__PURE__*/function (_React$Component) {
|
|
2495
2617
|
_proto.render = function render() {
|
2496
2618
|
if (!this.props.show) return null;
|
2497
2619
|
return /*#__PURE__*/React.createElement("div", {
|
2498
|
-
className: classNames$1(style$
|
2620
|
+
className: classNames$1(style$l.loader_container, this.props.className)
|
2499
2621
|
}, /*#__PURE__*/React.createElement("div", {
|
2500
|
-
className: classNames$1(style$
|
2622
|
+
className: classNames$1(style$l.loader_element, this.props.classNameChildren)
|
2501
2623
|
}, /*#__PURE__*/React.createElement("div", {
|
2502
|
-
className: style$
|
2624
|
+
className: style$l.loader
|
2503
2625
|
}, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)), this.props.message ? /*#__PURE__*/React.createElement("p", null, this.props.message) : null));
|
2504
2626
|
};
|
2505
2627
|
|
2506
2628
|
return Loader;
|
2507
2629
|
}(React.Component);
|
2508
2630
|
|
2509
|
-
var style$
|
2631
|
+
var style$m = {"icon":"_3s1Vv"};
|
2510
2632
|
|
2511
2633
|
var Icon = /*#__PURE__*/function (_React$Component) {
|
2512
2634
|
_inheritsLoose(Icon, _React$Component);
|
@@ -2538,7 +2660,7 @@ var Icon = /*#__PURE__*/function (_React$Component) {
|
|
2538
2660
|
fontSize: this.props.size ? this.props.size + 'px' : 'none'
|
2539
2661
|
}
|
2540
2662
|
}, this.props.icon({
|
2541
|
-
className: classNames$1(style$
|
2663
|
+
className: classNames$1(style$m.icon),
|
2542
2664
|
color: this.state.colorStyle
|
2543
2665
|
}));
|
2544
2666
|
};
|
@@ -2546,7 +2668,7 @@ var Icon = /*#__PURE__*/function (_React$Component) {
|
|
2546
2668
|
return Icon;
|
2547
2669
|
}(React.Component);
|
2548
2670
|
|
2549
|
-
var style$
|
2671
|
+
var style$n = {"paginationContainer":"_25d6Y","pagination":"_2mqrQ","active":"_13Qaa","disabled":"_11Sql"};
|
2550
2672
|
|
2551
2673
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
2552
2674
|
_inheritsLoose(Pagination, _React$Component);
|
@@ -2559,11 +2681,11 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
2559
2681
|
|
2560
2682
|
_proto.render = function render() {
|
2561
2683
|
return /*#__PURE__*/React.createElement("div", {
|
2562
|
-
className: classNames$1(style$
|
2684
|
+
className: classNames$1(style$n.paginationContainer, this.props.className)
|
2563
2685
|
}, /*#__PURE__*/React.createElement(PaginationCMP, {
|
2564
|
-
innerClass: style$
|
2565
|
-
activeClass: style$
|
2566
|
-
disabledClass: style$
|
2686
|
+
innerClass: style$n.pagination,
|
2687
|
+
activeClass: style$n.active,
|
2688
|
+
disabledClass: style$n.disabled,
|
2567
2689
|
activePage: this.props.activePage,
|
2568
2690
|
itemsCountPerPage: this.props.itemsCountPerPage,
|
2569
2691
|
totalItemsCount: this.props.totalItemsCount,
|
@@ -2684,7 +2806,7 @@ var PaginationClass = /*#__PURE__*/function () {
|
|
2684
2806
|
return PaginationClass;
|
2685
2807
|
}();
|
2686
2808
|
|
2687
|
-
var style$
|
2809
|
+
var style$o = {"FormDragDropFile_container":"_2tyK_","btn_close_drag_drop":"_1shfD","dropzone_multiple_container":"_HCj8R","background_text":"_2NB9V","dropzone_multiple_items":"_c3Txp","dropzone_multiple_item":"_WAS8S","delete_item_container":"_34DnJ"};
|
2688
2810
|
|
2689
2811
|
var Dropzone = /*#__PURE__*/function (_React$Component) {
|
2690
2812
|
_inheritsLoose(Dropzone, _React$Component);
|
@@ -2799,7 +2921,7 @@ var Dropzone = /*#__PURE__*/function (_React$Component) {
|
|
2799
2921
|
var _this3 = this;
|
2800
2922
|
|
2801
2923
|
return /*#__PURE__*/React.createElement("div", {
|
2802
|
-
className: classNames$1(style$
|
2924
|
+
className: classNames$1(style$o.FormDragDropFile_container, this.props.className)
|
2803
2925
|
}, /*#__PURE__*/React.createElement(DropzoneCMP, {
|
2804
2926
|
className: classNames$1(this.props.classNameChildren),
|
2805
2927
|
onDrop: function onDrop(acceptedFiles) {
|
@@ -2815,7 +2937,7 @@ var Dropzone = /*#__PURE__*/function (_React$Component) {
|
|
2815
2937
|
borderColor: _this3.state.borderColor
|
2816
2938
|
}
|
2817
2939
|
}, /*#__PURE__*/React.createElement("div", {
|
2818
|
-
className: style$
|
2940
|
+
className: style$o.btn_close_drag_drop,
|
2819
2941
|
style: {
|
2820
2942
|
display: _this3.state.styleBtnClose
|
2821
2943
|
}
|
@@ -2857,12 +2979,12 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
2857
2979
|
_this.getFileComponent = function (idx) {
|
2858
2980
|
return /*#__PURE__*/React.createElement("div", {
|
2859
2981
|
key: idx,
|
2860
|
-
className: classNames$1(style$
|
2982
|
+
className: classNames$1(style$o.dropzone_multiple_item, 'not-click'),
|
2861
2983
|
onClick: function onClick() {
|
2862
2984
|
return _this.handleDeleteFile(idx);
|
2863
2985
|
}
|
2864
2986
|
}, /*#__PURE__*/React.createElement("div", {
|
2865
|
-
className: classNames$1(style$
|
2987
|
+
className: classNames$1(style$o.delete_item_container)
|
2866
2988
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
2867
2989
|
icon: faTrash
|
2868
2990
|
})), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
@@ -2991,7 +3113,7 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
2991
3113
|
var getRootProps = _ref.getRootProps,
|
2992
3114
|
getInputProps = _ref.getInputProps;
|
2993
3115
|
return /*#__PURE__*/React.createElement("section", {
|
2994
|
-
className: classNames$1(style$
|
3116
|
+
className: classNames$1(style$o.dropzone_multiple_container, _this2.props.className)
|
2995
3117
|
}, /*#__PURE__*/React.createElement("div", _extends({}, getRootProps({
|
2996
3118
|
onClick: function onClick(e) {
|
2997
3119
|
if (_this2.hasParentClass(e.target, e.currentTarget, 'not-click')) {
|
@@ -2999,9 +3121,9 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
2999
3121
|
}
|
3000
3122
|
}
|
3001
3123
|
}), {
|
3002
|
-
className: classNames$1(style$
|
3124
|
+
className: classNames$1(style$o.dropzone_multiple_items)
|
3003
3125
|
}), !_this2.state.files.length ? /*#__PURE__*/React.createElement("span", {
|
3004
|
-
className: classNames$1(style$
|
3126
|
+
className: classNames$1(style$o.background_text)
|
3005
3127
|
}, "Glisser et d\xE9poser vos fichiers ou cliquer pour en s\xE9lectionner...", ' ', _this2.props.extensions ? "Formats accept\xE9s : " + _this2.props.extensions.join(', ') : '') : null, /*#__PURE__*/React.createElement("input", getInputProps()), _this2.state.files.map(function (file, idx) {
|
3006
3128
|
return _this2.getFileComponent(idx);
|
3007
3129
|
})));
|
@@ -3011,7 +3133,7 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3011
3133
|
return DropzoneMultiple;
|
3012
3134
|
}(React.Component);
|
3013
3135
|
|
3014
|
-
var style$
|
3136
|
+
var style$p = {"status":"_2qV1W"};
|
3015
3137
|
|
3016
3138
|
var Status = /*#__PURE__*/function (_React$Component) {
|
3017
3139
|
_inheritsLoose(Status, _React$Component);
|
@@ -3024,7 +3146,7 @@ var Status = /*#__PURE__*/function (_React$Component) {
|
|
3024
3146
|
|
3025
3147
|
_proto.render = function render() {
|
3026
3148
|
return /*#__PURE__*/React.createElement("div", {
|
3027
|
-
className: classNames(style$
|
3149
|
+
className: classNames(style$p.status, this.props.className),
|
3028
3150
|
style: this.props.style
|
3029
3151
|
}, this.props.text);
|
3030
3152
|
};
|
@@ -3032,7 +3154,7 @@ var Status = /*#__PURE__*/function (_React$Component) {
|
|
3032
3154
|
return Status;
|
3033
3155
|
}(React.Component);
|
3034
3156
|
|
3035
|
-
var style$
|
3157
|
+
var style$q = {"alert_container":"_361mk","alert":"_22nl5","alert_element":"_2fV2F","alert_element_icon":"_1UPB2"};
|
3036
3158
|
|
3037
3159
|
var AlertContainer = /*#__PURE__*/function (_React$Component) {
|
3038
3160
|
_inheritsLoose(AlertContainer, _React$Component);
|
@@ -3045,7 +3167,7 @@ var AlertContainer = /*#__PURE__*/function (_React$Component) {
|
|
3045
3167
|
|
3046
3168
|
_proto.render = function render() {
|
3047
3169
|
return /*#__PURE__*/React.createElement("div", {
|
3048
|
-
className: style$
|
3170
|
+
className: style$q.alert_container
|
3049
3171
|
}, this.props.children);
|
3050
3172
|
};
|
3051
3173
|
|
@@ -3073,7 +3195,7 @@ var Alert = /*#__PURE__*/function (_React$Component) {
|
|
3073
3195
|
|
3074
3196
|
_proto.render = function render() {
|
3075
3197
|
return /*#__PURE__*/React.createElement("div", {
|
3076
|
-
className: classNames$1(style$
|
3198
|
+
className: classNames$1(style$q.alert, this.props.backgroundColor)
|
3077
3199
|
}, /*#__PURE__*/React.createElement("span", {
|
3078
3200
|
className: this.props.textColor
|
3079
3201
|
}, this.props.text));
|
@@ -3093,18 +3215,18 @@ var AlertElement = /*#__PURE__*/function (_React$Component) {
|
|
3093
3215
|
|
3094
3216
|
_proto.render = function render() {
|
3095
3217
|
return /*#__PURE__*/React.createElement("div", {
|
3096
|
-
className: classNames$1(style$
|
3218
|
+
className: classNames$1(style$q.alert_element, this.props.backgroundColor)
|
3097
3219
|
}, /*#__PURE__*/React.createElement("span", {
|
3098
3220
|
className: this.props.textColor
|
3099
3221
|
}, this.props.children), /*#__PURE__*/React.createElement("span", {
|
3100
|
-
className: classNames$1(style$
|
3222
|
+
className: classNames$1(style$q.alert_element_icon, this.props.textColor)
|
3101
3223
|
}, this.props.icon));
|
3102
3224
|
};
|
3103
3225
|
|
3104
3226
|
return AlertElement;
|
3105
3227
|
}(React.Component);
|
3106
3228
|
|
3107
|
-
var style$
|
3229
|
+
var style$r = {"component":"_2wEDs","display-chips":"_1soMq","chips":"_1bGM-","buttonIcon":"_EFdFp"};
|
3108
3230
|
|
3109
3231
|
var Chips = /*#__PURE__*/function (_Component) {
|
3110
3232
|
_inheritsLoose(Chips, _Component);
|
@@ -3174,15 +3296,15 @@ var Chips = /*#__PURE__*/function (_Component) {
|
|
3174
3296
|
var _this2 = this;
|
3175
3297
|
|
3176
3298
|
return /*#__PURE__*/React.createElement("div", {
|
3177
|
-
className: classNames$1(style$
|
3299
|
+
className: classNames$1(style$r.component)
|
3178
3300
|
}, /*#__PURE__*/React.createElement("div", {
|
3179
|
-
className: classNames$1(style$
|
3301
|
+
className: classNames$1(style$r['display-chips'])
|
3180
3302
|
}, this.state.chipsList.length > 0 ? this.state.chipsList.map(function (chips, idx) {
|
3181
3303
|
return /*#__PURE__*/React.createElement("div", {
|
3182
3304
|
key: idx,
|
3183
|
-
className: classNames$1(style$
|
3305
|
+
className: classNames$1(style$r.chips)
|
3184
3306
|
}, /*#__PURE__*/React.createElement("div", null, chips.text), /*#__PURE__*/React.createElement(ButtonIcon, {
|
3185
|
-
className: classNames$1(style$
|
3307
|
+
className: classNames$1(style$r.buttonIcon),
|
3186
3308
|
onClick: function onClick() {
|
3187
3309
|
return _this2.handleClick(chips);
|
3188
3310
|
}
|
@@ -3203,7 +3325,7 @@ var Chips = /*#__PURE__*/function (_Component) {
|
|
3203
3325
|
return Chips;
|
3204
3326
|
}(Component);
|
3205
3327
|
|
3206
|
-
var style$
|
3328
|
+
var style$s = {"listing_horizontal_container":"_64Nqe","listing_horizontal":"_2RiQY","listing_horizontal_icon":"_3CtDc","listing_green":"_2R0Mr","listing_orange":"_3V863","listing_horizontal_text":"_3cuTE","listing_horizontal_separator":"_1RaCo","listing_vertical_container":"_3dZW8","listing_vertical":"_wYzrK","listing_vertical_left":"_uTVeE","listing_vertical_right":"_3v-1E","listing_vertical_separator":"_1VFRz"};
|
3207
3329
|
|
3208
3330
|
var ListingVerticalItem = /*#__PURE__*/function (_React$Component) {
|
3209
3331
|
_inheritsLoose(ListingVerticalItem, _React$Component);
|
@@ -3217,15 +3339,15 @@ var ListingVerticalItem = /*#__PURE__*/function (_React$Component) {
|
|
3217
3339
|
_proto.render = function render() {
|
3218
3340
|
var _classNames;
|
3219
3341
|
|
3220
|
-
var listingClass = classNames$1((_classNames = {}, _classNames[style$
|
3342
|
+
var listingClass = classNames$1((_classNames = {}, _classNames[style$s.listing_vertical] = true, _classNames[style$s.listing_green] = !!this.props.green, _classNames[style$s.listing_orange] = !!this.props.orange, _classNames));
|
3221
3343
|
return /*#__PURE__*/React.createElement("div", {
|
3222
3344
|
className: listingClass
|
3223
3345
|
}, /*#__PURE__*/React.createElement("div", {
|
3224
|
-
className: style$
|
3346
|
+
className: style$s.listing_vertical_left
|
3225
3347
|
}, this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
3226
3348
|
icon: faCheck
|
3227
3349
|
}) : ''), /*#__PURE__*/React.createElement("div", {
|
3228
|
-
className: style$
|
3350
|
+
className: style$s.listing_vertical_right
|
3229
3351
|
}, /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
|
3230
3352
|
};
|
3231
3353
|
|
@@ -3243,7 +3365,7 @@ var ListingVerticalSeparator = /*#__PURE__*/function (_React$Component) {
|
|
3243
3365
|
|
3244
3366
|
_proto.render = function render() {
|
3245
3367
|
return /*#__PURE__*/React.createElement("div", {
|
3246
|
-
className: style$
|
3368
|
+
className: style$s.listing_vertical_separator
|
3247
3369
|
}, /*#__PURE__*/React.createElement("span", null, "|"));
|
3248
3370
|
};
|
3249
3371
|
|
@@ -3293,7 +3415,7 @@ var ListingVertical = /*#__PURE__*/function (_React$Component) {
|
|
3293
3415
|
|
3294
3416
|
_proto.render = function render() {
|
3295
3417
|
return /*#__PURE__*/React.createElement("div", {
|
3296
|
-
className: style$
|
3418
|
+
className: style$s.listing_vertical_container
|
3297
3419
|
}, this.getData());
|
3298
3420
|
};
|
3299
3421
|
|
@@ -3312,15 +3434,15 @@ var ListingHorizontalItem = /*#__PURE__*/function (_React$Component) {
|
|
3312
3434
|
_proto.render = function render() {
|
3313
3435
|
var _classNames;
|
3314
3436
|
|
3315
|
-
var listingClass = classNames$1((_classNames = {}, _classNames[style$
|
3437
|
+
var listingClass = classNames$1((_classNames = {}, _classNames[style$s.listing_horizontal] = true, _classNames[style$s.listing_green] = !!this.props.green, _classNames[style$s.listing_orange] = !!this.props.orange, _classNames));
|
3316
3438
|
return /*#__PURE__*/React.createElement("div", {
|
3317
3439
|
className: listingClass
|
3318
3440
|
}, /*#__PURE__*/React.createElement("div", {
|
3319
|
-
className: style$
|
3441
|
+
className: style$s.listing_horizontal_icon
|
3320
3442
|
}, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
3321
3443
|
icon: faCheck
|
3322
3444
|
}) : ''), /*#__PURE__*/React.createElement("div", {
|
3323
|
-
className: style$
|
3445
|
+
className: style$s.listing_horizontal_text
|
3324
3446
|
}, /*#__PURE__*/React.createElement("span", null, this.props.date), /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
|
3325
3447
|
};
|
3326
3448
|
|
@@ -3338,7 +3460,7 @@ var ListingHorizontalSeparator = /*#__PURE__*/function (_React$Component) {
|
|
3338
3460
|
|
3339
3461
|
_proto.render = function render() {
|
3340
3462
|
return /*#__PURE__*/React.createElement("div", {
|
3341
|
-
className: style$
|
3463
|
+
className: style$s.listing_horizontal_separator,
|
3342
3464
|
style: {
|
3343
3465
|
width: this.props.width
|
3344
3466
|
}
|
@@ -3388,7 +3510,7 @@ var ListingHorizontal = /*#__PURE__*/function (_React$Component) {
|
|
3388
3510
|
_proto.render = function render() {
|
3389
3511
|
var separatorWidth = (this.props.data.length > 0 ? (this.props.data.length - 1) * 140 : 0) + "px";
|
3390
3512
|
return /*#__PURE__*/React.createElement("div", {
|
3391
|
-
className: style$
|
3513
|
+
className: style$s.listing_horizontal_container
|
3392
3514
|
}, /*#__PURE__*/React.createElement(ListingHorizontalSeparator, {
|
3393
3515
|
width: separatorWidth
|
3394
3516
|
}), this.getData());
|
@@ -3397,7 +3519,7 @@ var ListingHorizontal = /*#__PURE__*/function (_React$Component) {
|
|
3397
3519
|
return ListingHorizontal;
|
3398
3520
|
}(React.Component);
|
3399
3521
|
|
3400
|
-
var style$
|
3522
|
+
var style$t = {"dropdown":"_1ofQJ","dropdown_first":"_2kN79","space":"_SCby-","dropdown_menu":"_2Y_fS","show":"_3nBzR"};
|
3401
3523
|
|
3402
3524
|
var Dropdown = /*#__PURE__*/function (_Component) {
|
3403
3525
|
_inheritsLoose(Dropdown, _Component);
|
@@ -3418,18 +3540,18 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
3418
3540
|
var _classNames,
|
3419
3541
|
_this2 = this;
|
3420
3542
|
|
3421
|
-
var dropdownMenuClass = classNames$1((_classNames = {}, _classNames[style$
|
3543
|
+
var dropdownMenuClass = classNames$1((_classNames = {}, _classNames[style$t.dropdown_menu] = true, _classNames[style$t.show] = !this.state.isHide, _classNames));
|
3422
3544
|
return /*#__PURE__*/React.createElement("div", {
|
3423
|
-
className: classNames$1(style$
|
3545
|
+
className: classNames$1(style$t.dropdown)
|
3424
3546
|
}, /*#__PURE__*/React.createElement("div", {
|
3425
|
-
className: classNames$1(style$
|
3547
|
+
className: classNames$1(style$t.dropdown_first),
|
3426
3548
|
onClick: function onClick() {
|
3427
3549
|
return _this2.setState({
|
3428
3550
|
isHide: !_this2.state.isHide
|
3429
3551
|
});
|
3430
3552
|
}
|
3431
3553
|
}, this.props.title ? /*#__PURE__*/React.createElement("span", null, this.props.title) : /*#__PURE__*/React.createElement(Fragment, null), this.props.title && this.props.icon ? /*#__PURE__*/React.createElement("div", {
|
3432
|
-
className: classNames$1(style$
|
3554
|
+
className: classNames$1(style$t.space)
|
3433
3555
|
}) : /*#__PURE__*/React.createElement(Fragment, null), this.props.icon ? this.props.icon : /*#__PURE__*/React.createElement(Fragment, null)), /*#__PURE__*/React.createElement("div", {
|
3434
3556
|
className: dropdownMenuClass
|
3435
3557
|
}, this.props.data.map(function (element) {
|
@@ -3440,7 +3562,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
3440
3562
|
return Dropdown;
|
3441
3563
|
}(Component);
|
3442
3564
|
|
3443
|
-
var style$
|
3565
|
+
var style$u = {"error_full":"_2yA72","error_center":"_29Plu","error_center_group":"_38Iim","error_title":"_1G6Al","error_code":"_1aeC7","error_text":"_QYnsV"};
|
3444
3566
|
|
3445
3567
|
var Error404 = /*#__PURE__*/function (_React$Component) {
|
3446
3568
|
_inheritsLoose(Error404, _React$Component);
|
@@ -3459,15 +3581,15 @@ var Error404 = /*#__PURE__*/function (_React$Component) {
|
|
3459
3581
|
var _this2 = this;
|
3460
3582
|
|
3461
3583
|
return /*#__PURE__*/React.createElement("div", {
|
3462
|
-
className: classNames$1(style$
|
3584
|
+
className: classNames$1(style$u.error_full)
|
3463
3585
|
}, /*#__PURE__*/React.createElement("div", {
|
3464
|
-
className: classNames$1(style$
|
3586
|
+
className: classNames$1(style$u.error_center)
|
3465
3587
|
}, /*#__PURE__*/React.createElement("div", {
|
3466
|
-
className: classNames$1(style$
|
3588
|
+
className: classNames$1(style$u.error_center_group)
|
3467
3589
|
}, /*#__PURE__*/React.createElement("h3", {
|
3468
|
-
className: classNames$1(style$
|
3590
|
+
className: classNames$1(style$u.error_title)
|
3469
3591
|
}, "Page not found"), /*#__PURE__*/React.createElement("h1", {
|
3470
|
-
className: classNames$1(style$
|
3592
|
+
className: classNames$1(style$u.error_code)
|
3471
3593
|
}, /*#__PURE__*/React.createElement("span", {
|
3472
3594
|
style: {
|
3473
3595
|
'text-shadow': '-8px 0 0 #fff'
|
@@ -3481,7 +3603,7 @@ var Error404 = /*#__PURE__*/function (_React$Component) {
|
|
3481
3603
|
'text-shadow': '-8px 0 0 #fff'
|
3482
3604
|
}
|
3483
3605
|
}, "4"))), /*#__PURE__*/React.createElement("h2", {
|
3484
|
-
className: classNames$1(style$
|
3606
|
+
className: classNames$1(style$u.error_text)
|
3485
3607
|
}, this.props.text ? this.props.text : "La page n'existe pas"), /*#__PURE__*/React.createElement(Button, {
|
3486
3608
|
onClick: function onClick() {
|
3487
3609
|
return _this2.props.onBack ? _this2.props.onBack() : window.history.back();
|
@@ -3612,7 +3734,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3612
3734
|
return Cookie;
|
3613
3735
|
}(React.Component);
|
3614
3736
|
|
3615
|
-
var style$
|
3737
|
+
var style$v = {"footer":"_2OnkF"};
|
3616
3738
|
|
3617
3739
|
var Footer = /*#__PURE__*/function (_React$Component) {
|
3618
3740
|
_inheritsLoose(Footer, _React$Component);
|
@@ -3629,7 +3751,7 @@ var Footer = /*#__PURE__*/function (_React$Component) {
|
|
3629
3751
|
|
3630
3752
|
_proto.render = function render() {
|
3631
3753
|
return /*#__PURE__*/React.createElement("div", {
|
3632
|
-
className: style$
|
3754
|
+
className: style$v.footer
|
3633
3755
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("img", {
|
3634
3756
|
src: this.props.logo
|
3635
3757
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
|
@@ -3646,7 +3768,7 @@ var Footer = /*#__PURE__*/function (_React$Component) {
|
|
3646
3768
|
return Footer;
|
3647
3769
|
}(React.Component);
|
3648
3770
|
|
3649
|
-
var style$
|
3771
|
+
var style$w = {"switch_container":"_3iRjz","switch":"_zCJtD"};
|
3650
3772
|
|
3651
3773
|
var Switch = /*#__PURE__*/function (_React$Component) {
|
3652
3774
|
_inheritsLoose(Switch, _React$Component);
|
@@ -3667,11 +3789,11 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
3667
3789
|
var _this2 = this;
|
3668
3790
|
|
3669
3791
|
return /*#__PURE__*/React.createElement("div", {
|
3670
|
-
className: classNames$1(style$
|
3792
|
+
className: classNames$1(style$w.switch_container, this.props.className)
|
3671
3793
|
}, this.props.title ? /*#__PURE__*/React.createElement("span", {
|
3672
3794
|
className: this.props.classNameTitle
|
3673
3795
|
}, this.props.title) : null, /*#__PURE__*/React.createElement("div", {
|
3674
|
-
className: classNames$1(style$
|
3796
|
+
className: classNames$1(style$w["switch"])
|
3675
3797
|
}, /*#__PURE__*/React.createElement("div", {
|
3676
3798
|
onClick: function onClick() {
|
3677
3799
|
return _this2.setState({
|
@@ -3702,5 +3824,140 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
3702
3824
|
return Switch;
|
3703
3825
|
}(React.Component);
|
3704
3826
|
|
3705
|
-
|
3827
|
+
var Gauge = /*#__PURE__*/function (_React$Component) {
|
3828
|
+
_inheritsLoose(Gauge, _React$Component);
|
3829
|
+
|
3830
|
+
function Gauge(props) {
|
3831
|
+
var _this;
|
3832
|
+
|
3833
|
+
_this = _React$Component.call(this, props) || this;
|
3834
|
+
_this.state = {
|
3835
|
+
position: 0
|
3836
|
+
};
|
3837
|
+
return _this;
|
3838
|
+
}
|
3839
|
+
|
3840
|
+
var _proto = Gauge.prototype;
|
3841
|
+
|
3842
|
+
_proto.componentDidMount = function componentDidMount() {
|
3843
|
+
if (this.props.position) {
|
3844
|
+
this.setState({
|
3845
|
+
position: this.props.position
|
3846
|
+
});
|
3847
|
+
}
|
3848
|
+
};
|
3849
|
+
|
3850
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3851
|
+
if (prevProps.position !== this.props.position && this.props.position !== this.state.position) {
|
3852
|
+
this.setState({
|
3853
|
+
position: this.props.position
|
3854
|
+
});
|
3855
|
+
}
|
3856
|
+
};
|
3857
|
+
|
3858
|
+
_proto.render = function render() {
|
3859
|
+
var _this2 = this;
|
3860
|
+
|
3861
|
+
return /*#__PURE__*/React.createElement("div", {
|
3862
|
+
className: this.props.className
|
3863
|
+
}, /*#__PURE__*/React.createElement("span", {
|
3864
|
+
style: {
|
3865
|
+
display: 'inline-block',
|
3866
|
+
fontSize: '14px',
|
3867
|
+
fontWeight: 'bold',
|
3868
|
+
color: 'var(--black)',
|
3869
|
+
marginBottom: '16px'
|
3870
|
+
}
|
3871
|
+
}, this.props.title), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
3872
|
+
style: {
|
3873
|
+
position: 'relative',
|
3874
|
+
width: '100%',
|
3875
|
+
height: '22px',
|
3876
|
+
backgroundImage: this.props.colors.length === 3 ? "linear-gradient(to right, " + this.props.colors[0] + " 0%, " + this.props.colors[1] + " 50%, " + this.props.colors[2] + " 100%)" : "linear-gradient(to right, " + this.props.colors[0] + ", " + this.props.colors[1] + ")",
|
3877
|
+
borderRadius: '8px'
|
3878
|
+
},
|
3879
|
+
onClick: function onClick(e) {
|
3880
|
+
var currentTargetRect = e.currentTarget.getBoundingClientRect();
|
3881
|
+
var width = currentTargetRect.width;
|
3882
|
+
var positionX = e.pageX - currentTargetRect.left;
|
3883
|
+
var step = _this2.props.step ? _this2.props.step : 1;
|
3884
|
+
var position = positionX * 100 / width - positionX * 100 / width % step;
|
3885
|
+
|
3886
|
+
_this2.setState({
|
3887
|
+
position: position
|
3888
|
+
}, function () {
|
3889
|
+
return _this2.props.onChange ? _this2.props.onChange(position) : null;
|
3890
|
+
});
|
3891
|
+
}
|
3892
|
+
}, this.props.min ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("span", {
|
3893
|
+
style: {
|
3894
|
+
position: 'absolute',
|
3895
|
+
left: this.props.min + '%',
|
3896
|
+
transform: 'translateX(-50%)',
|
3897
|
+
textAlign: 'center',
|
3898
|
+
top: '-18px',
|
3899
|
+
fontSize: '10px'
|
3900
|
+
}
|
3901
|
+
}, "MIN"), /*#__PURE__*/React.createElement("div", {
|
3902
|
+
style: {
|
3903
|
+
position: 'absolute',
|
3904
|
+
width: '4px',
|
3905
|
+
height: '28px',
|
3906
|
+
borderRadius: '4px',
|
3907
|
+
top: '-3px',
|
3908
|
+
backgroundColor: 'black',
|
3909
|
+
left: this.props.min + '%',
|
3910
|
+
transform: 'translateX(-50%)'
|
3911
|
+
}
|
3912
|
+
})) : null, this.props.max ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("span", {
|
3913
|
+
style: {
|
3914
|
+
position: 'absolute',
|
3915
|
+
left: this.props.max + '%',
|
3916
|
+
transform: 'translateX(-50%)',
|
3917
|
+
textAlign: 'center',
|
3918
|
+
top: '-18px',
|
3919
|
+
fontSize: '10px'
|
3920
|
+
}
|
3921
|
+
}, "MAX"), /*#__PURE__*/React.createElement("div", {
|
3922
|
+
style: {
|
3923
|
+
position: 'absolute',
|
3924
|
+
width: '4px',
|
3925
|
+
height: '28px',
|
3926
|
+
borderRadius: '4px',
|
3927
|
+
top: '-3px',
|
3928
|
+
backgroundColor: 'black',
|
3929
|
+
left: this.props.max + '%',
|
3930
|
+
transform: 'translateX(-50%)'
|
3931
|
+
}
|
3932
|
+
})) : null, this.props.noText ? null : /*#__PURE__*/React.createElement("span", {
|
3933
|
+
style: {
|
3934
|
+
position: 'absolute',
|
3935
|
+
left: this.state.position + '%',
|
3936
|
+
transform: 'translateX(-50%)',
|
3937
|
+
textAlign: 'center',
|
3938
|
+
top: '-16px',
|
3939
|
+
fontSize: '10px',
|
3940
|
+
fontWeight: 'bold',
|
3941
|
+
transition: '0.3s'
|
3942
|
+
}
|
3943
|
+
}, parseInt(this.state.position), "%"), /*#__PURE__*/React.createElement("div", {
|
3944
|
+
className: "cursor-pointer",
|
3945
|
+
style: {
|
3946
|
+
position: 'absolute',
|
3947
|
+
bottom: '-6px',
|
3948
|
+
width: 0,
|
3949
|
+
height: 0,
|
3950
|
+
borderLeft: '10px solid transparent',
|
3951
|
+
borderRight: '10px solid transparent',
|
3952
|
+
borderBottom: '18px solid black',
|
3953
|
+
transform: 'translateX(-50%)',
|
3954
|
+
left: this.state.position + '%'
|
3955
|
+
}
|
3956
|
+
}))));
|
3957
|
+
};
|
3958
|
+
|
3959
|
+
return Gauge;
|
3960
|
+
}(React.Component);
|
3961
|
+
|
3962
|
+
export { Alert, AlertContainer, AlertElement, BarChart, Button, ButtonIcon, Card, CardColor, CardStatistics, CardTabs, Chips, Cookie, DoughnutChart, Dropdown, Dropzone, DropzoneMultiple, Error404, FloatActionButton, FloatActionButtonItem, Footer, FormCheckbox, FormInput, FormRadio, FormRange, FormSelect, FormTextarea, FullModal, Gauge, Header, HorizontalBarChart, Icon, ListingHorizontal, ListingVertical, Loader, Modal, Nav, Pagination, PaginationClass, PieChart, ProgressBar, RadarChart, Sidebar, Signature, Slider, Status, Switch, Table, Tabs, TabsBody, TabsCustom, TabsCustomArrowCustom as TabsCustomArrow, TabsCustomArrowBody, TabsCustomArrowHeader, TabsCustomArrowItem, TabsCustomArrowMenu, TabsCustomBody, TabsCustomHeader, TabsCustomItem, TabsCustomMenu, TabsEdit, TabsEditBody, TabsEditHeader, TabsEditItem, TabsEditMenu, TabsHeader, TabsItem, TabsMenu, Tbody, Td, Th, Thead, Tr };
|
3706
3963
|
//# sourceMappingURL=index.modern.js.map
|