@rolster/react-components 18.12.9 → 18.12.10
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/cjs/assets/{index-7UzJ6VgT.css → index-VcI5p9dK.css} +54 -3
- package/dist/cjs/index.js +49 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-7UzJ6VgT.css → index-VcI5p9dK.css} +54 -3
- package/dist/es/index.js +49 -33
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/ButtonAction/ButtonAction.d.ts +1 -1
- package/dist/esm/components/atoms/Input/Input.css +0 -2
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.css +44 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.d.ts +7 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js +6 -0
- package/dist/esm/components/atoms/ProgressCircular/ProgressCircular.js.map +1 -0
- package/dist/esm/components/atoms/index.d.ts +1 -0
- package/dist/esm/components/atoms/index.js +1 -0
- package/dist/esm/components/atoms/index.js.map +1 -1
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.css +7 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.d.ts +12 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js +8 -0
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js.map +1 -0
- package/dist/esm/components/molecules/DayRangePicker/DayRangePicker.js +4 -4
- package/dist/esm/components/molecules/DayRangePicker/DayRangePicker.js.map +1 -1
- package/dist/esm/components/molecules/index.d.ts +1 -0
- package/dist/esm/components/molecules/index.js +1 -0
- package/dist/esm/components/molecules/index.js.map +1 -1
- package/dist/esm/components/organisms/DateField/DateField.js +4 -3
- package/dist/esm/components/organisms/DateField/DateField.js.map +1 -1
- package/dist/esm/components/organisms/DatePicker/DatePicker.js +6 -6
- package/dist/esm/components/organisms/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.css +1 -1
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.js +2 -2
- package/dist/esm/components/organisms/DateRangeField/DateRangeField.js.map +1 -1
- package/dist/esm/components/organisms/DateRangePicker/DateRangePicker.js +5 -5
- package/dist/esm/components/organisms/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/esm/helpers/date-picker.d.ts +1 -1
- package/dist/esm/helpers/date-picker.js +7 -3
- package/dist/esm/helpers/date-picker.js.map +1 -1
- package/dist/esm/helpers/date-range-picker.d.ts +1 -1
- package/dist/esm/helpers/date-range-picker.js +10 -8
- package/dist/esm/helpers/date-range-picker.js.map +1 -1
- package/dist/esm/helpers/day-picker.js +6 -4
- package/dist/esm/helpers/day-picker.js.map +1 -1
- package/package.json +6 -6
|
@@ -423,7 +423,6 @@
|
|
|
423
423
|
--pvt-value-opacity: 1;
|
|
424
424
|
--pvt-component-font-color: transparent;
|
|
425
425
|
position: relative;
|
|
426
|
-
float: left;
|
|
427
426
|
width: 100%;
|
|
428
427
|
}
|
|
429
428
|
.rls-input--focused {
|
|
@@ -435,7 +434,6 @@
|
|
|
435
434
|
}
|
|
436
435
|
.rls-input__component {
|
|
437
436
|
position: relative;
|
|
438
|
-
float: left;
|
|
439
437
|
width: 100%;
|
|
440
438
|
height: var(--rls-input-height);
|
|
441
439
|
line-height: var(--rls-input-height);
|
|
@@ -640,6 +638,51 @@
|
|
|
640
638
|
}
|
|
641
639
|
}
|
|
642
640
|
|
|
641
|
+
.rls-progress-circular {
|
|
642
|
+
position: relative;
|
|
643
|
+
width: var(--rls-progress-circular-dimension);
|
|
644
|
+
height: var(--rls-progress-circular-dimension);
|
|
645
|
+
padding: var(--sizing-x2);
|
|
646
|
+
box-sizing: border-box;
|
|
647
|
+
stroke: var(--color-rolster-500);
|
|
648
|
+
}
|
|
649
|
+
.rls-progress-circular__svg {
|
|
650
|
+
height: 100%;
|
|
651
|
+
width: 100%;
|
|
652
|
+
transform: rotate(990deg);
|
|
653
|
+
animation: progress-circular-svg 3500ms linear infinite;
|
|
654
|
+
}
|
|
655
|
+
.rls-progress-circular__circle {
|
|
656
|
+
fill: none;
|
|
657
|
+
stroke-width: 4px;
|
|
658
|
+
stroke: inherit;
|
|
659
|
+
stroke-dasharray: 65;
|
|
660
|
+
stroke-dashoffset: 65;
|
|
661
|
+
opacity: 1;
|
|
662
|
+
animation: progress-circular-circle 1750ms var(--standard-curve) infinite;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
@keyframes progress-circular-svg {
|
|
666
|
+
0% {
|
|
667
|
+
transform: rotate(0deg);
|
|
668
|
+
}
|
|
669
|
+
50% {
|
|
670
|
+
transform: rotate(180deg);
|
|
671
|
+
}
|
|
672
|
+
100% {
|
|
673
|
+
transform: rotate(360deg);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
@keyframes progress-circular-circle {
|
|
678
|
+
50% {
|
|
679
|
+
stroke-dashoffset: 0;
|
|
680
|
+
}
|
|
681
|
+
100% {
|
|
682
|
+
stroke-dashoffset: -65;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
643
686
|
.rls-radiobutton {
|
|
644
687
|
--pvt-component-transform: scale(0);
|
|
645
688
|
position: relative;
|
|
@@ -897,6 +940,14 @@
|
|
|
897
940
|
white-space: var(--rls-ballot-subtitle-white-space);
|
|
898
941
|
}
|
|
899
942
|
|
|
943
|
+
.rls-button-progress {
|
|
944
|
+
--rls-progress-circular-dimension: var(--sizing-x16);
|
|
945
|
+
position: relative;
|
|
946
|
+
display: flex;
|
|
947
|
+
justify-content: center;
|
|
948
|
+
align-items: center;
|
|
949
|
+
}
|
|
950
|
+
|
|
900
951
|
.rls-button-toggle {
|
|
901
952
|
width: auto;
|
|
902
953
|
}
|
|
@@ -2040,7 +2091,7 @@
|
|
|
2040
2091
|
cursor: default;
|
|
2041
2092
|
border: none;
|
|
2042
2093
|
outline: none;
|
|
2043
|
-
color: var(--
|
|
2094
|
+
color: var(--rls-input-font-color);
|
|
2044
2095
|
background: transparent;
|
|
2045
2096
|
font-size: var(--input-font-size);
|
|
2046
2097
|
font-weight: var(--font-weight-medium);
|
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useRef, useEffect, createContext } from 'react';
|
|
3
3
|
import { currencyFormat, PartialSealed } from '@rolster/helpers-advanced';
|
|
4
|
-
import {
|
|
4
|
+
import { getDaysOfMonth, getDateWeight, assignDayInDate, DAY_LABELS, dateFormatTemplate, dateIsBetween, DateRange, normalizeMinTime, dateIsBefore, Month, MONTH_NAMES, dateIsAfter, assignYearInDate, assignMonthInDate } from '@rolster/helpers-date';
|
|
5
5
|
import { hasPattern } from '@rolster/helpers-string';
|
|
6
6
|
import { i18n } from '@rolster/i18n';
|
|
7
7
|
import ReactDOM from 'react-dom';
|
|
@@ -185,6 +185,10 @@ function RlsProgressBar({ indeterminate, percentage, rlsTheme }) {
|
|
|
185
185
|
return (jsx("div", { className: renderClassStatus('rls-progress-bar', { indeterminate }), "rls-theme": rlsTheme, children: jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage || 0}%` } }) }));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
function RlsProgressCircular({ rlsTheme }) {
|
|
189
|
+
return (jsx("div", { className: "rls-progress-circular", "rls-theme": rlsTheme, children: jsx("svg", { className: "rls-progress-circular__svg", viewBox: "0 0 36 36", children: jsx("circle", { className: "rls-progress-circular__circle", cx: "18", cy: "18", r: "12" }) }) }));
|
|
190
|
+
}
|
|
191
|
+
|
|
188
192
|
function RlsRadioButton({ checked, disabled, rlsTheme, onClick }) {
|
|
189
193
|
return (jsx("div", { className: renderClassStatus('rls-radiobutton', { checked, disabled }), onClick: onClick, "rls-theme": rlsTheme, children: jsx("div", { className: "rls-radiobutton__component" }) }));
|
|
190
194
|
}
|
|
@@ -214,6 +218,10 @@ function RlsBallot({ bordered, children, img, initials, skeleton, subtitle, rlsT
|
|
|
214
218
|
return (jsxs("div", { className: renderClassStatus('rls-ballot', { bordered, skeleton }), "rls-theme": rlsTheme, children: [(img || initials) && (jsxs(RlsAvatar, { skeleton: skeleton, children: [img && jsx("img", { src: img }), initials && jsx("span", { children: initials })] })), jsxs("div", { className: "rls-ballot__component", children: [jsx("label", { className: "rls-ballot__title", children: jsx(RlsSkeletonText, { active: skeleton, children: children }) }), subtitle && (jsx("label", { className: "rls-ballot__subtitle", children: jsx(RlsSkeletonText, { active: skeleton, children: subtitle }) }))] })] }));
|
|
215
219
|
}
|
|
216
220
|
|
|
221
|
+
function RlsButtonProgress({ icon, disabled, onClick, progressing, rlsTheme }) {
|
|
222
|
+
return (jsxs("div", { className: renderClassStatus('rls-button-progress', { progressing }), "rls-theme": rlsTheme, children: [!progressing && (jsx(RlsButtonAction, { icon: icon, onClick: onClick, disabled: disabled })), progressing && jsx(RlsProgressCircular, {})] }));
|
|
223
|
+
}
|
|
224
|
+
|
|
217
225
|
function RlsButtonToggle({ onAction, options, type, automatic, disabled, rlsTheme }) {
|
|
218
226
|
const componentRef = useRef(null);
|
|
219
227
|
const [firstAction] = options;
|
|
@@ -296,7 +304,7 @@ class DayPickerFactory {
|
|
|
296
304
|
createRightWeeks() {
|
|
297
305
|
const dayStart = this.date.getDay();
|
|
298
306
|
const rightWeeks = [];
|
|
299
|
-
const dayCount =
|
|
307
|
+
const dayCount = getDaysOfMonth(this.date.getFullYear(), this.date.getMonth());
|
|
300
308
|
let days = [];
|
|
301
309
|
let countDaysWeek = 1;
|
|
302
310
|
let day = 8 - dayStart;
|
|
@@ -335,12 +343,14 @@ class DayPickerFactory {
|
|
|
335
343
|
}
|
|
336
344
|
minOverflowDay(day) {
|
|
337
345
|
return this.minDate
|
|
338
|
-
?
|
|
346
|
+
? getDateWeight(assignDayInDate(this.date, day)) <
|
|
347
|
+
getDateWeight(this.minDate)
|
|
339
348
|
: false;
|
|
340
349
|
}
|
|
341
350
|
maxOverflowDay(day) {
|
|
342
351
|
return this.maxDate
|
|
343
|
-
?
|
|
352
|
+
? getDateWeight(assignDayInDate(this.date, day)) >
|
|
353
|
+
getDateWeight(this.maxDate)
|
|
344
354
|
: false;
|
|
345
355
|
}
|
|
346
356
|
}
|
|
@@ -417,7 +427,7 @@ class DateRangePickerFactory {
|
|
|
417
427
|
createRightWeeks() {
|
|
418
428
|
const rightWeeks = [];
|
|
419
429
|
const dayStart = this.date.getDay();
|
|
420
|
-
const dayCount =
|
|
430
|
+
const dayCount = getDaysOfMonth(this.date.getFullYear(), this.date.getMonth());
|
|
421
431
|
let days = [];
|
|
422
432
|
let countDaysWeek = 1;
|
|
423
433
|
let day = 8 - dayStart;
|
|
@@ -456,19 +466,21 @@ class DateRangePickerFactory {
|
|
|
456
466
|
day === date.getDate());
|
|
457
467
|
}
|
|
458
468
|
isRangedFromDate(day) {
|
|
459
|
-
return
|
|
469
|
+
return dateIsBetween(this.range.minDate, this.range.maxDate, assignDayInDate(this.date, day));
|
|
460
470
|
}
|
|
461
471
|
overflowDay(day) {
|
|
462
472
|
return this.minOverflowDay(day) || this.maxOverflowDay(day);
|
|
463
473
|
}
|
|
464
474
|
minOverflowDay(day) {
|
|
465
475
|
return this.minDate
|
|
466
|
-
?
|
|
476
|
+
? getDateWeight(assignDayInDate(this.date, day)) <
|
|
477
|
+
getDateWeight(this.minDate)
|
|
467
478
|
: false;
|
|
468
479
|
}
|
|
469
480
|
maxOverflowDay(day) {
|
|
470
481
|
return this.maxDate
|
|
471
|
-
?
|
|
482
|
+
? getDateWeight(assignDayInDate(this.date, day)) >
|
|
483
|
+
getDateWeight(this.maxDate)
|
|
472
484
|
: false;
|
|
473
485
|
}
|
|
474
486
|
createDayRangeState(day) {
|
|
@@ -482,9 +494,9 @@ class DateRangePickerFactory {
|
|
|
482
494
|
};
|
|
483
495
|
}
|
|
484
496
|
}
|
|
485
|
-
function
|
|
486
|
-
const minFormat =
|
|
487
|
-
const maxFormat =
|
|
497
|
+
function rangeFormatTemplate(range) {
|
|
498
|
+
const minFormat = dateFormatTemplate(range.minDate, DATE_RANGE_FORMAT);
|
|
499
|
+
const maxFormat = dateFormatTemplate(range.maxDate, DATE_RANGE_FORMAT);
|
|
488
500
|
return `${minFormat} - ${maxFormat}`;
|
|
489
501
|
}
|
|
490
502
|
function createRangePicker(props) {
|
|
@@ -507,15 +519,15 @@ function RlsDayRangePicker({ date, disabled: disabledPicker, formControl, maxDat
|
|
|
507
519
|
}));
|
|
508
520
|
}, [range, date, minDate, maxDate]);
|
|
509
521
|
function onChange(value) {
|
|
510
|
-
const newDate =
|
|
511
|
-
const newRange =
|
|
522
|
+
const newDate = assignDayInDate(initialDate, value);
|
|
523
|
+
const newRange = dateIsBefore(newDate, sourceDate.current)
|
|
512
524
|
? new DateRange(sourceDate.current, newDate)
|
|
513
525
|
: new DateRange(newDate, sourceDate.current);
|
|
514
526
|
sourceDate.current = newDate;
|
|
515
527
|
setRange(newRange);
|
|
516
528
|
formControl?.setState(newRange);
|
|
517
529
|
}
|
|
518
|
-
return (jsxs("div", { className: "rls-day-range-picker", "rls-theme": rlsTheme, children: [jsx("div", { className: "rls-day-range-picker__title", children:
|
|
530
|
+
return (jsxs("div", { className: "rls-day-range-picker", "rls-theme": rlsTheme, children: [jsx("div", { className: "rls-day-range-picker__title", children: dateFormatTemplate(sourceDate.current, DATE_RANGE_FORMAT) }), jsx("div", { className: "rls-day-range-picker__header", children: DAY_LABELS().map((title, index) => (jsx("label", { className: "rls-day-range-picker__label", children: title }, index))) }), jsx("div", { className: "rls-day-range-picker__component", children: weeks.map(({ days }, index) => (jsx("div", { className: "rls-day-range-picker__week", children: days.map(({ disabled, end, forbidden, source, ranged, value }, index) => (jsx("div", { className: renderClassStatus('rls-day-range-picker__day', {
|
|
519
531
|
disabled: disabled || disabledPicker,
|
|
520
532
|
end,
|
|
521
533
|
forbidden,
|
|
@@ -1564,6 +1576,13 @@ function RlsDatatable({ children, datatable, footer, header, rlsTheme, summary }
|
|
|
1564
1576
|
}), "rls-theme": rlsTheme, children: [jsxs("table", { children: [header && jsx("thead", { className: "rls-datatable__thead", children: header }), jsx("tbody", { ref: datatable?.bodyRef, className: "rls-datatable__tbody", children: children })] }), summary && jsx("div", { className: "rls-datatable__tsummary", children: summary }), footer && jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));
|
|
1565
1577
|
}
|
|
1566
1578
|
|
|
1579
|
+
var PickerListenerType;
|
|
1580
|
+
(function (PickerListenerType) {
|
|
1581
|
+
PickerListenerType["Select"] = "PickerSelect";
|
|
1582
|
+
PickerListenerType["Now"] = "PickerNow";
|
|
1583
|
+
PickerListenerType["Cancel"] = "PickerCancel";
|
|
1584
|
+
})(PickerListenerType || (PickerListenerType = {}));
|
|
1585
|
+
|
|
1567
1586
|
const controlIsValid = (props) => {
|
|
1568
1587
|
const { state, validators } = props;
|
|
1569
1588
|
return validators.reduce((errors, validator) => {
|
|
@@ -1660,15 +1679,12 @@ function useReactControl(controlProps, controlValidators) {
|
|
|
1660
1679
|
return useControl(controlProps, controlValidators);
|
|
1661
1680
|
}
|
|
1662
1681
|
|
|
1663
|
-
|
|
1664
|
-
(
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
function verifyDateRange(date, min, max) {
|
|
1671
|
-
return min && before(min, date) ? min : max && after(max, date) ? max : date;
|
|
1682
|
+
function dateIsRange(date, min, max) {
|
|
1683
|
+
return min && dateIsBefore(min, date)
|
|
1684
|
+
? min
|
|
1685
|
+
: max && dateIsAfter(max, date)
|
|
1686
|
+
? max
|
|
1687
|
+
: date;
|
|
1672
1688
|
}
|
|
1673
1689
|
|
|
1674
1690
|
const FORMAT_DESCRIPTION = '{dw}, {mx} {dd} de {aa}';
|
|
@@ -1698,25 +1714,25 @@ function RlsDatePicker({ automatic, date, formControl, disabled, maxDate, minDat
|
|
|
1698
1714
|
const monthControl = useReactControl(dateInitial.getMonth());
|
|
1699
1715
|
const [value, setValue] = useState(dateInitial);
|
|
1700
1716
|
const [{ day, month, year }, setVisibility] = useState(VISIBILITY$1.DAY);
|
|
1701
|
-
const title =
|
|
1717
|
+
const title = dateFormatTemplate(value, FORMAT_DESCRIPTION);
|
|
1702
1718
|
useEffect(() => {
|
|
1703
1719
|
setValue((prevValue) => {
|
|
1704
1720
|
return typeof yearControl.state === 'number'
|
|
1705
|
-
?
|
|
1721
|
+
? dateIsRange(assignYearInDate(prevValue, yearControl.state), minDate, maxDate)
|
|
1706
1722
|
: prevValue;
|
|
1707
1723
|
});
|
|
1708
1724
|
}, [yearControl.state]);
|
|
1709
1725
|
useEffect(() => {
|
|
1710
1726
|
setValue((prevValue) => {
|
|
1711
1727
|
return typeof monthControl.state === 'number'
|
|
1712
|
-
?
|
|
1728
|
+
? dateIsRange(assignMonthInDate(prevValue, monthControl.state), minDate, maxDate)
|
|
1713
1729
|
: prevValue;
|
|
1714
1730
|
});
|
|
1715
1731
|
}, [monthControl.state]);
|
|
1716
1732
|
useEffect(() => {
|
|
1717
1733
|
setValue((prevValue) => {
|
|
1718
1734
|
return typeof dayControl.state === 'number'
|
|
1719
|
-
?
|
|
1735
|
+
? dateIsRange(assignDayInDate(prevValue, dayControl.state), minDate, maxDate)
|
|
1720
1736
|
: prevValue;
|
|
1721
1737
|
});
|
|
1722
1738
|
}, [dayControl.state]);
|
|
@@ -1768,7 +1784,7 @@ function RlsDateField({ children, date, disabled, formControl, maxDate, minDate,
|
|
|
1768
1784
|
const [show, setShow] = useState(false);
|
|
1769
1785
|
const [description, setDescription] = useState('');
|
|
1770
1786
|
useEffect(() => {
|
|
1771
|
-
setDescription(value ?
|
|
1787
|
+
setDescription(value ? dateFormatTemplate(value, DATE_RANGE_FORMAT) : '');
|
|
1772
1788
|
}, [value]);
|
|
1773
1789
|
function onClickInput() {
|
|
1774
1790
|
setShow(true);
|
|
@@ -1835,14 +1851,14 @@ function RlsDateRangePicker({ automatic, date: datePicker, disabled, formControl
|
|
|
1835
1851
|
useEffect(() => {
|
|
1836
1852
|
setDate((prevValue) => {
|
|
1837
1853
|
return typeof yearControl.state === 'number'
|
|
1838
|
-
?
|
|
1854
|
+
? assignYearInDate(prevValue, yearControl.state)
|
|
1839
1855
|
: prevValue;
|
|
1840
1856
|
});
|
|
1841
1857
|
}, [yearControl.state]);
|
|
1842
1858
|
useEffect(() => {
|
|
1843
1859
|
setDate((prevValue) => {
|
|
1844
1860
|
return typeof monthControl.state === 'number'
|
|
1845
|
-
?
|
|
1861
|
+
? assignMonthInDate(prevValue, monthControl.state)
|
|
1846
1862
|
: prevValue;
|
|
1847
1863
|
});
|
|
1848
1864
|
}, [monthControl.state]);
|
|
@@ -1872,7 +1888,7 @@ function RlsDateRangePicker({ automatic, date: datePicker, disabled, formControl
|
|
|
1872
1888
|
onListener({ type: PickerListenerType.Select, value });
|
|
1873
1889
|
}
|
|
1874
1890
|
}
|
|
1875
|
-
return (jsxs("div", { className: "rls-date-range-picker", "rls-theme": rlsTheme, children: [jsxs("div", { className: "rls-date-range-picker__header", children: [jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--description", children: jsx("span", { onClick: onVisibilityDay, children:
|
|
1891
|
+
return (jsxs("div", { className: "rls-date-range-picker", "rls-theme": rlsTheme, children: [jsxs("div", { className: "rls-date-range-picker__header", children: [jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--description", children: jsx("span", { onClick: onVisibilityDay, children: rangeFormatTemplate(value) }) }), jsx("div", { className: "rls-date-range-picker__title rls-date-range-picker__title--year", children: jsx("span", { onClick: onVisibilityYear, children: yearControl.state }) }), jsx(RlsMonthTitlePicker, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: year, type: month ? 'year' : 'month', onClick: onVisibilityMonth })] }), jsxs("div", { className: renderClassStatus('rls-date-range-picker__component', {
|
|
1876
1892
|
year,
|
|
1877
1893
|
day,
|
|
1878
1894
|
month
|
|
@@ -1889,7 +1905,7 @@ function RlsDateRangeField({ children, date: datePicker, disabled, formControl,
|
|
|
1889
1905
|
const [show, setShow] = useState(false);
|
|
1890
1906
|
const [description, setDescription] = useState('');
|
|
1891
1907
|
useEffect(() => {
|
|
1892
|
-
setDescription(value ?
|
|
1908
|
+
setDescription(value ? rangeFormatTemplate(value) : '');
|
|
1893
1909
|
}, [value]);
|
|
1894
1910
|
function onClickInput() {
|
|
1895
1911
|
setShow(true);
|
|
@@ -2109,5 +2125,5 @@ function RlsApplication({ children }) {
|
|
|
2109
2125
|
return (jsxs(RlsContext.Provider, { value: { confirmation, snackbar }, children: [jsx("div", { className: "rls-app__body", children: children }), RlsSnackbar, RlsConfirmation] }));
|
|
2110
2126
|
}
|
|
2111
2127
|
|
|
2112
|
-
export { ConfirmationResult, ListCollection, RlsAmount, RlsApplication, RlsAutocompleteField, RlsAutocompleteFieldTemplate, RlsAvatar, RlsBadge, RlsBallot, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsCheckBoxLabel, RlsConfirmation, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableHeader, RlsDatatableInfo, RlsDatatableTitle, RlsDatatableTotals, RlsDateField, RlsDatePicker, RlsDateRangeField, RlsDateRangePicker, RlsDayPicker, RlsDayRangePicker, RlsFormNavigation, RlsIcon, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputText, RlsLabel, RlsMessageIcon, RlsModal, RlsMoneyField, RlsMonthPicker, RlsMonthTitlePicker, RlsNumberField, RlsPagination, RlsPasswordField, RlsPoster, RlsProgressBar, RlsRadioButton, RlsRadioButtonLabel, RlsSearchInput, RlsSelectField, RlsSelectFieldTemplate, RlsSkeleton, RlsSkeletonText, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsSwitchLabel, RlsTabularText, RlsTextField, RlsToolbar, RlsYearPicker, renderClassStatus, useConfirmationService, useDatatable, useListControl, useSnackbarService };
|
|
2128
|
+
export { ConfirmationResult, ListCollection, RlsAmount, RlsApplication, RlsAutocompleteField, RlsAutocompleteFieldTemplate, RlsAvatar, RlsBadge, RlsBallot, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsCheckBoxLabel, RlsConfirmation, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableHeader, RlsDatatableInfo, RlsDatatableTitle, RlsDatatableTotals, RlsDateField, RlsDatePicker, RlsDateRangeField, RlsDateRangePicker, RlsDayPicker, RlsDayRangePicker, RlsFormNavigation, RlsIcon, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputText, RlsLabel, RlsMessageIcon, RlsModal, RlsMoneyField, RlsMonthPicker, RlsMonthTitlePicker, RlsNumberField, RlsPagination, RlsPasswordField, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsRadioButtonLabel, RlsSearchInput, RlsSelectField, RlsSelectFieldTemplate, RlsSkeleton, RlsSkeletonText, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsSwitchLabel, RlsTabularText, RlsTextField, RlsToolbar, RlsYearPicker, renderClassStatus, useConfirmationService, useDatatable, useListControl, useSnackbarService };
|
|
2113
2129
|
//# sourceMappingURL=index.js.map
|