cronapp-framework-js 3.0.0-SP.30 → 3.0.0-SP.32
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/css/themes/custom/aquamarine/custom-aquamarine.css +1 -0
- package/css/themes/custom/cerulean/custom-cerulean.css +1 -0
- package/css/themes/custom/cosmo/custom-cosmo.css +1 -0
- package/css/themes/custom/cyborg/custom-cyborg.css +1 -0
- package/css/themes/custom/darkly/custom-darkly.css +1 -0
- package/css/themes/custom/dsgov/custom-dsgov.css +1 -0
- package/css/themes/custom/flatly/custom-flatly.css +1 -0
- package/css/themes/custom/fuse/custom-fuse.css +1 -0
- package/css/themes/custom/journal/custom-journal.css +1 -0
- package/css/themes/custom/krypton/custom-krypton.css +83 -20
- package/css/themes/custom/krypton/grid-krypton.css +4 -3
- package/css/themes/custom/lumen/custom-lumen.css +1 -0
- package/css/themes/custom/material/custom-material.css +1 -0
- package/css/themes/custom/material-round/custom-material-round.css +1 -0
- package/css/themes/custom/materialui/custom-materialui.css +1 -0
- package/css/themes/custom/navigator/custom-navigator.css +33 -1
- package/css/themes/custom/paper/custom-paper.css +1 -0
- package/css/themes/custom/readable/custom-readable.css +1 -0
- package/css/themes/custom/sandstone/custom-sandstone.css +1 -0
- package/css/themes/custom/simplex/custom-simplex.css +1 -0
- package/css/themes/custom/slate/custom-slate.css +1 -0
- package/css/themes/custom/spacelab/custom-spacelab.css +1 -0
- package/css/themes/custom/superhero/custom-superhero.css +1 -0
- package/css/themes/custom/theme-general/menu-vertical-retratil.css +1 -1
- package/css/themes/custom/united/custom-united.css +1 -0
- package/css/themes/custom/yeti/custom-yeti.css +1 -0
- package/dist/components/js/format.min.js +1 -1
- package/dist/components/js/jquery.inputmask.bundle.js +1 -1
- package/dist/css/themes/custom/aquamarine/custom-aquamarine.css +1 -1
- package/dist/css/themes/custom/cerulean/custom-cerulean.css +1 -1
- package/dist/css/themes/custom/cosmo/custom-cosmo.css +1 -1
- package/dist/css/themes/custom/cyborg/custom-cyborg.css +1 -1
- package/dist/css/themes/custom/darkly/custom-darkly.css +1 -1
- package/dist/css/themes/custom/dsgov/custom-dsgov.css +1 -1
- package/dist/css/themes/custom/flatly/custom-flatly.css +1 -1
- package/dist/css/themes/custom/fuse/custom-fuse.css +1 -1
- package/dist/css/themes/custom/journal/custom-journal.css +1 -1
- package/dist/css/themes/custom/krypton/custom-krypton.css +1 -1
- package/dist/css/themes/custom/krypton/grid-krypton.css +1 -1
- package/dist/css/themes/custom/lumen/custom-lumen.css +1 -1
- package/dist/css/themes/custom/material/custom-material.css +1 -1
- package/dist/css/themes/custom/material-round/custom-material-round.css +1 -1
- package/dist/css/themes/custom/materialui/custom-materialui.css +1 -1
- package/dist/css/themes/custom/navigator/custom-navigator.css +1 -1
- package/dist/css/themes/custom/paper/custom-paper.css +1 -1
- package/dist/css/themes/custom/readable/custom-readable.css +1 -1
- package/dist/css/themes/custom/sandstone/custom-sandstone.css +1 -1
- package/dist/css/themes/custom/simplex/custom-simplex.css +1 -1
- package/dist/css/themes/custom/slate/custom-slate.css +1 -1
- package/dist/css/themes/custom/spacelab/custom-spacelab.css +1 -1
- package/dist/css/themes/custom/superhero/custom-superhero.css +1 -1
- package/dist/css/themes/custom/theme-general/menu-vertical-retratil.css +1 -1
- package/dist/css/themes/custom/united/custom-united.css +1 -1
- package/dist/css/themes/custom/yeti/custom-yeti.css +1 -1
- package/dist/js/controllers.js +1 -1
- package/js/controllers.js +2 -0
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
/* Menus - Sizes and Distances */
|
|
40
40
|
--menuVerticalWidth: 270px;
|
|
41
|
+
--menuVerticalCollapsedWidth: 225px;
|
|
41
42
|
--menuSideSize: 20px;
|
|
42
43
|
--menuItemBarSize: 6px;
|
|
43
44
|
--menuElementOverallPadding: 10px;
|
|
@@ -408,8 +409,7 @@
|
|
|
408
409
|
--borderPanelStable: transparent;
|
|
409
410
|
--borderPanelRoyal: transparent;
|
|
410
411
|
--borderPanelDark: transparent;
|
|
411
|
-
|
|
412
|
-
/* === End - Variables used exclusively in the color palette property === */
|
|
412
|
+
/* === End - Variables used exclusively in the color palette property === */
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
/* Button */
|
|
@@ -598,6 +598,10 @@ div[data-component^='crn-textinputicon'] .k-button {
|
|
|
598
598
|
|
|
599
599
|
.siginPanel .titulo_card {
|
|
600
600
|
color: var(--textColorDefault40, #f0f0f0);
|
|
601
|
+
display: flex;
|
|
602
|
+
justify-content: center;
|
|
603
|
+
width: 620px;
|
|
604
|
+
align-items: center;
|
|
601
605
|
}
|
|
602
606
|
|
|
603
607
|
.login-view label,
|
|
@@ -643,7 +647,6 @@ div[data-component="crn-button"] {
|
|
|
643
647
|
display: block;
|
|
644
648
|
margin-right: auto;
|
|
645
649
|
margin-left: auto;
|
|
646
|
-
min-width: 600px;
|
|
647
650
|
}
|
|
648
651
|
|
|
649
652
|
/* Combo Botões*/
|
|
@@ -915,7 +918,6 @@ textarea.k-textbox {
|
|
|
915
918
|
margin: 0;
|
|
916
919
|
min-width: auto;
|
|
917
920
|
}
|
|
918
|
-
|
|
919
921
|
/*----End cookies----*/
|
|
920
922
|
|
|
921
923
|
#crn-image-login img[src="node_modules/cronapp-framework-js/img/cronapp-logo-login.png"],
|
|
@@ -1112,7 +1114,6 @@ textarea.k-textbox {
|
|
|
1112
1114
|
color: var(--textColor70, #838383);
|
|
1113
1115
|
}
|
|
1114
1116
|
|
|
1115
|
-
|
|
1116
1117
|
/* Colors*/
|
|
1117
1118
|
.color-default {
|
|
1118
1119
|
color: var(--colorDefault40, #262c32);
|
|
@@ -1205,6 +1206,11 @@ textarea.k-textbox {
|
|
|
1205
1206
|
}
|
|
1206
1207
|
|
|
1207
1208
|
/*Tabela simples*/
|
|
1209
|
+
.table>thead>tr.info>th {
|
|
1210
|
+
background: var(--backgroundColor10, #f0f0f0);
|
|
1211
|
+
color: var(--textColor70, #434343);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1208
1214
|
table:focus {
|
|
1209
1215
|
color: var(--textColorPrimary40, #f0f0f0);
|
|
1210
1216
|
}
|
|
@@ -1292,7 +1298,6 @@ btn k-button btn-block btn-default btn-fab {
|
|
|
1292
1298
|
background: var(--colorDark40, #000000);
|
|
1293
1299
|
color: var(--textColorDark40, #f0f0f0);
|
|
1294
1300
|
}
|
|
1295
|
-
|
|
1296
1301
|
/* ---End variables checkbox--- */
|
|
1297
1302
|
|
|
1298
1303
|
/*Agendador*/
|
|
@@ -1360,6 +1365,10 @@ btn k-button btn-block btn-default btn-fab {
|
|
|
1360
1365
|
border-color: unset;
|
|
1361
1366
|
}
|
|
1362
1367
|
|
|
1368
|
+
.ng-scope.k-grid.k-widget.k-display-block {
|
|
1369
|
+
background: transparent;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1363
1372
|
.k-scheduler-toolbar .k-link,
|
|
1364
1373
|
cron-scheduler a.k-link,
|
|
1365
1374
|
cron-scheduler .k-link:link {
|
|
@@ -1459,20 +1468,29 @@ div.k-window-content {
|
|
|
1459
1468
|
resize: vertical;
|
|
1460
1469
|
border-bottom: 1px solid #f0f0f0;
|
|
1461
1470
|
background: transparent;
|
|
1471
|
+
color: var(--textColorPrimary40, #f0f0f0);
|
|
1462
1472
|
border-radius: 0px;
|
|
1463
1473
|
}
|
|
1464
1474
|
|
|
1475
|
+
.k-scheduler-dayview div:not(.k-scheduler-header) .k-today:not(.k-nonwork-hour) {
|
|
1476
|
+
color: var(--textColorTexts, #14202a);
|
|
1477
|
+
background: var(--backgroundColor10, #f0f0f0);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1465
1480
|
textarea.k-textbox,
|
|
1466
1481
|
textarea.k-textbox:focus,
|
|
1467
1482
|
textarea.k-textbox:hover {
|
|
1468
1483
|
border: 0;
|
|
1469
1484
|
border-bottom: none;
|
|
1470
1485
|
border-radius: 20px;
|
|
1471
|
-
color: var(--textColorDefault40, #f0f0f0);
|
|
1472
|
-
background: var(--backgroundColor30, #546270);
|
|
1473
1486
|
margin: 0;
|
|
1474
1487
|
}
|
|
1475
1488
|
|
|
1489
|
+
.form-control .k-textbox .ng-valid .ng-valid-maxlength .ng-not-empty .ng-dirty .ng-valid-parse .ng-touched {
|
|
1490
|
+
background: var(--backgroundColor10, #f0f0f0);
|
|
1491
|
+
color: var(--textColor70, #434343);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1476
1494
|
.k-edit-form-container .k-edit-buttons {
|
|
1477
1495
|
background: var(--backgroundColor30, #546270);
|
|
1478
1496
|
}
|
|
@@ -1504,7 +1522,7 @@ body .k-datetimepicker .k-select,
|
|
|
1504
1522
|
border-radius: 0px;
|
|
1505
1523
|
}
|
|
1506
1524
|
|
|
1507
|
-
/*
|
|
1525
|
+
/*Botão fuso evento*/
|
|
1508
1526
|
.k-scheduler-edit-form .k-edit-field .k-button {
|
|
1509
1527
|
background: linear-gradient(180deg, var(--colorPrimary40, #197fdd) 0%, var(--colorPrimary70, #09467f) 100%);
|
|
1510
1528
|
color: var(--textColorPrimay40, #f0f0f0);
|
|
@@ -1524,7 +1542,7 @@ body .k-datetimepicker .k-select,
|
|
|
1524
1542
|
color: var(--textColorPrimay40, #f0f0f0);
|
|
1525
1543
|
}
|
|
1526
1544
|
|
|
1527
|
-
/* ----
|
|
1545
|
+
/* ---- Final botões ----*/
|
|
1528
1546
|
|
|
1529
1547
|
.k-i-arrow-60-down:before {
|
|
1530
1548
|
color: var(--colorPrimary70, #09467f);
|
|
@@ -1550,7 +1568,7 @@ body .k-datetimepicker .k-select,
|
|
|
1550
1568
|
background: var(--colorPrimary70, #09467f);
|
|
1551
1569
|
}
|
|
1552
1570
|
|
|
1553
|
-
/*
|
|
1571
|
+
/*Botão Cancelar/Excluir Evento*/
|
|
1554
1572
|
.k-scheduler-edit-form .k-edit-buttons .k-scheduler-delete,
|
|
1555
1573
|
.k-edit-form-container .k-edit-buttons .k-scheduler-cancel {
|
|
1556
1574
|
background: linear-gradient(180deg, var(--colorDanger40, #f03a3a) 0%, var(--colorDanger70, #832020) 100%);
|
|
@@ -1580,6 +1598,29 @@ body .k-datetimepicker .k-select,
|
|
|
1580
1598
|
}
|
|
1581
1599
|
|
|
1582
1600
|
/*Calendario Agendador*/
|
|
1601
|
+
td .k-calendar .k-today.k-state-selected,
|
|
1602
|
+
.k-calendar .k-state-focused,
|
|
1603
|
+
.gridcell {
|
|
1604
|
+
background: linear-gradient(180deg, var(--colorPrimary40, #197fdd) 0%, var(--colorPrimary70, #09467f) 100%);
|
|
1605
|
+
color: var(--textColorDefault40, #f0f0f0);
|
|
1606
|
+
box-shadow: none;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.k-calendar .k-today.k-state-selected {
|
|
1610
|
+
background: var(--colorPrimary60, #125da2);
|
|
1611
|
+
color: var(--textColorPrimary40, #f0f0f0);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.k-calendar td.k-state-focused a.k-link {
|
|
1615
|
+
background: transparent;
|
|
1616
|
+
color: var(--textColorDefault40, #f0f0f0);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.k-calendar .k-state-focused,
|
|
1620
|
+
.k-calendar td.k-state-focused {
|
|
1621
|
+
box-shadow: unset;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1583
1624
|
.k-scheduler-navigation .k-i-arrow-60-right {
|
|
1584
1625
|
color: var(--textColorTexts, #14202a);
|
|
1585
1626
|
}
|
|
@@ -1676,6 +1717,12 @@ td.k-state-focused.k-state-selected .k-link {
|
|
|
1676
1717
|
.k-edit-form-container .k-edit-buttons .k-scheduler-canceltimezone:active {
|
|
1677
1718
|
background: var(--colorDanger60, #7e2121);
|
|
1678
1719
|
}
|
|
1720
|
+
|
|
1721
|
+
.k-calendar .k-today.k-state-selected,
|
|
1722
|
+
.k-calendar .k-today.k-state-selected>.k-link {
|
|
1723
|
+
background: var(--backgroundColor20, #a3a3a3);
|
|
1724
|
+
border-color: transparent;
|
|
1725
|
+
}
|
|
1679
1726
|
/* --------*/
|
|
1680
1727
|
|
|
1681
1728
|
.k-widget.k-multiselect.cronMultiSelect.k-multiselect-clearable {
|
|
@@ -1754,51 +1801,67 @@ td.k-state-focused.k-state-selected .k-link {
|
|
|
1754
1801
|
}
|
|
1755
1802
|
|
|
1756
1803
|
/*Default*/
|
|
1757
|
-
.k-radio:checked+.k-radio-label:before,
|
|
1804
|
+
.k-radio:checked+.k-radio-label:before,
|
|
1805
|
+
.option-default .k-radio:checked+.k-radio-label:before {
|
|
1806
|
+
background: var(--colorDefault40, #262c32);
|
|
1758
1807
|
border-color: var(--colorDefault40, #262c32);
|
|
1759
1808
|
}
|
|
1760
1809
|
|
|
1761
1810
|
/*Primary*/
|
|
1762
|
-
.option-primary .k-radio:checked+.k-radio-label:
|
|
1811
|
+
.option-primary .k-radio-label:after, .option-primary .k-radio:checked+.k-radio-label:after {
|
|
1812
|
+
background: var(--colorPrimary40, #197fdd);
|
|
1763
1813
|
border-color: var(--colorPrimary40, #197fdd);
|
|
1764
1814
|
}
|
|
1765
1815
|
|
|
1766
1816
|
/*Success*/
|
|
1767
|
-
.option-success .k-radio:checked+.k-radio-label:
|
|
1817
|
+
.option-success .k-radio-label:after, .option-success .k-radio:checked+.k-radio-label:after {
|
|
1818
|
+
background: var(--colorSuccess40, #2ffc2b);
|
|
1768
1819
|
border-color: var(--colorSuccess40, #2ffc2b);
|
|
1769
1820
|
}
|
|
1770
1821
|
|
|
1822
|
+
|
|
1771
1823
|
/*Info*/
|
|
1772
|
-
.option-info .k-radio:checked+.k-radio-label:
|
|
1824
|
+
.option-info .k-radio-label:after, .option-info .k-radio:checked+.k-radio-label:after {
|
|
1825
|
+
background: var(--colorCalm40, #44e1d8);
|
|
1773
1826
|
border-color: var(--colorCalm40, #44e1d8);
|
|
1774
1827
|
}
|
|
1775
1828
|
|
|
1776
1829
|
/*Warning*/
|
|
1777
|
-
.option-warning .k-radio:checked+.k-radio-label:
|
|
1830
|
+
.option-warning .k-radio-label:after, .option-warning .k-radio:checked+.k-radio-label:after {
|
|
1831
|
+
background: var(--colorWarning40, #f58d11);
|
|
1778
1832
|
border-color: var(--colorWarning40, #f58d11);
|
|
1779
1833
|
}
|
|
1780
1834
|
|
|
1781
1835
|
/*Danger*/
|
|
1782
|
-
.option-danger .k-radio:checked+.k-radio-label:
|
|
1836
|
+
.option-danger .k-radio-label:after, .option-danger .k-radio:checked+.k-radio-label:after {
|
|
1837
|
+
background: var(--colorDanger40, #f03a3a);
|
|
1783
1838
|
border-color: var(--colorDanger40, #f03a3a);
|
|
1784
1839
|
}
|
|
1785
1840
|
|
|
1786
1841
|
/*Light*/
|
|
1787
|
-
.option-light .k-radio:checked+.k-radio-label:
|
|
1842
|
+
.option-light .k-radio-label:after, .option-light .k-radio:checked+.k-radio-label:after {
|
|
1843
|
+
background: var(--colorLight40, #8da0b2);
|
|
1788
1844
|
border-color: var(--colorLight40, #8da0b2);
|
|
1789
1845
|
}
|
|
1790
1846
|
|
|
1791
1847
|
/*Stable*/
|
|
1792
|
-
.option-stable .k-radio:checked+.k-radio-label:
|
|
1848
|
+
.option-stable .k-radio-label:after, .option-stable .k-radio:checked+.k-radio-label:after {
|
|
1849
|
+
background: var(--colorStable40, #818181);
|
|
1793
1850
|
border-color: var(--colorStable40, #818181);
|
|
1794
1851
|
}
|
|
1795
1852
|
|
|
1796
1853
|
/*Royal*/
|
|
1797
|
-
.option-royal .k-radio:checked+.k-radio-label:
|
|
1854
|
+
.option-royal .k-radio-label:after, .option-royal .k-radio:checked+.k-radio-label:after {
|
|
1855
|
+
background: var(--colorRoyal40, #0e3760);
|
|
1798
1856
|
border-color: var(--colorRoyal40, #0e3760);
|
|
1799
1857
|
}
|
|
1800
1858
|
|
|
1801
1859
|
/*Dark*/
|
|
1860
|
+
.option-dark .k-radio-label:after, .option-dark .k-radio:checked+.k-radio-label:after {
|
|
1861
|
+
background: var(--colorDark40, #000000);
|
|
1862
|
+
border-color: var(--colorDark40, #000000);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1802
1865
|
.option-dark .k-radio:checked+.k-radio-label:before {
|
|
1803
1866
|
border-color: var(--colorDark40, #000000);
|
|
1804
1867
|
}
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
color: var(--textColor40, #f0f0f0);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.k-grid-header:first-child th.k-header:first-child, .k-rtl thead.k-grid-header th.k-header:last-child, thead.k-grid-header th.k-header:first-child {
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
.k-filter-menu .k-button+.k-button,
|
|
20
24
|
.btn,
|
|
21
25
|
.k-button.k-default,
|
|
@@ -240,7 +244,6 @@
|
|
|
240
244
|
outline-offset: -2px;
|
|
241
245
|
}
|
|
242
246
|
|
|
243
|
-
|
|
244
247
|
/* Modal Notification*/
|
|
245
248
|
.k-dialog-buttongroup .k-button.k-primary {
|
|
246
249
|
background: linear-gradient(180deg, var(--colorPrimary40, #197fdd) 0%, var(--colorPrimary70, #09467f) 100%);
|
|
@@ -471,7 +474,6 @@ input#cron-crn-enterprise-combobox-773856.k-input.cronSelect {
|
|
|
471
474
|
background: var(--backgroundColor10, #f0f0f0);
|
|
472
475
|
}
|
|
473
476
|
|
|
474
|
-
|
|
475
477
|
.k-popup {
|
|
476
478
|
background: var(--backgroundColor30, #546270);
|
|
477
479
|
color: var(--textColorDefault40, #f0f0f0);
|
|
@@ -540,7 +542,6 @@ cron-grid .k-tooltip span:before {
|
|
|
540
542
|
color: var(--textColor40, #f0f0f0);
|
|
541
543
|
}
|
|
542
544
|
|
|
543
|
-
|
|
544
545
|
.k-dropdown-wrap.k-state-defaul:focus,
|
|
545
546
|
.k-dropdown-wrap.k-state-defaul:hover,
|
|
546
547
|
.k-dropdown-wrap.k-state-defaul:active {
|
|
@@ -18,6 +18,13 @@
|
|
|
18
18
|
margin: 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.main-view-vertical {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: calc(100vw - var(--menuVerticalCollapsedWidth, 225px) - 4vw);
|
|
24
|
+
margin-left: calc(225px + 2vw);
|
|
25
|
+
margin-top: 5.5vh;
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
@media only screen and (min-width: 768px) {
|
|
22
29
|
.main-view-vertical {
|
|
23
30
|
display: inline-block;
|
|
@@ -190,7 +197,7 @@
|
|
|
190
197
|
}
|
|
191
198
|
|
|
192
199
|
@media only screen and (max-width: 400px) {
|
|
193
|
-
.main-view {
|
|
200
|
+
.main-view.main-view-horizontal {
|
|
194
201
|
padding: 0px !important;
|
|
195
202
|
margin: 0px;
|
|
196
203
|
width: 100% !important;
|
|
@@ -198,8 +205,33 @@
|
|
|
198
205
|
.k-scheduler-phone {
|
|
199
206
|
overflow-y: auto !important;
|
|
200
207
|
}
|
|
208
|
+
|
|
209
|
+
#main-nav-bar > nav {
|
|
210
|
+
margin-top: 0px !important;
|
|
211
|
+
}
|
|
201
212
|
}
|
|
202
213
|
|
|
214
|
+
@media only screen and (max-width: 767px) {
|
|
215
|
+
.crn-navigator-vertical {
|
|
216
|
+
height: 100%;
|
|
217
|
+
position: fixed;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
#navbar, #navbar2 {
|
|
221
|
+
overflow-x: hidden;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* adjusting the margin of the retractable menu submenu */
|
|
225
|
+
.crn-navigator-retratil .dropdown-menu .dropdown-submenu {
|
|
226
|
+
margin-left: 25px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/*hide the retractable menu arrow, as there is no space to "detach" */
|
|
230
|
+
#main-nav-bar > label {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
}
|
|
203
235
|
|
|
204
236
|
/**** Changing scroll bar ****/
|
|
205
237
|
.crn-navigator-vertical::-webkit-scrollbar {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module?module.exports=e():t.format=e()}(this,function(){return function(t,e){
|
|
1
|
+
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module?module.exports=e():t.format=e()}(this,function(){return function(t,e){if(!t||isNaN(+e))return e;var n,i,r,s,l,o=t.length,f=t.search(/[0-9\-\+#]/),h=0<f?t.substring(0,f):"",g=t.split("").reverse().join(""),u=g.search(/[0-9\-\+#]/),d=o-u,a=t.substring(d,1+d),c=d+("."===a||","===a?1:0),a=0<u?t.substring(c,o):"",u=(e="-"===(t=t.substring(f,c)).charAt(0)?-e:+e)<0?e=-e:0,p=(f=t.match(/[^\d\-\+#]/g))&&f[f.length-1]||".",b=f&&f[1]&&f[0]||",";if(t=t.split(p),e=+(e=e.toFixed(t[1]&&t[1].length))+"",s=t[1]&&t[1].lastIndexOf("0"),(!(r=e.split("."))[1]||r[1]&&r[1].length<=s)&&(e=(+e).toFixed(s+1)),s=t[0].split(b),t[0]=s.join(""),-1<(n=t[0]&&t[0].indexOf("0")))for(;r[0].length<t[0].length-n;)r[0]="0"+r[0];else 0==+r[0]&&(r[0]="");if((e=e.split("."))[0]=r[0],i=s[1]&&s[s.length-1].length){for(g="",d=(l=e[0]).length%i,o=l.length,c=0;c<o;c++)g+=l.charAt(c),!((c-d+1)%i)&&c<o-i&&(g+=b);e[0]=g}return e[1]=t[1]&&e[1]?p+e[1]:"",h+((u="0"!==(f=e.join(""))&&""!==f?u:!1)?"-":"")+f+a}});
|