@rolster/react-components 18.26.2 → 18.26.4
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-Da99wzhq.css → index-CV_br95-.css} +22 -18
- package/dist/cjs/index.js +26 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-Da99wzhq.css → index-CV_br95-.css} +22 -18
- package/dist/es/index.js +26 -18
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.css +2 -2
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.css.map +1 -1
- package/dist/esm/components/atoms/Button/Button.css +1 -1
- package/dist/esm/components/atoms/CheckBox/CheckBox.css +1 -1
- package/dist/esm/components/atoms/CheckBox/CheckBox.css.map +1 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.css +1 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.css.map +1 -1
- package/dist/esm/components/atoms/SkeletonText/SkeletonText.js +1 -1
- package/dist/esm/components/atoms/SkeletonText/SkeletonText.js.map +1 -1
- package/dist/esm/components/atoms/Switch/Switch.css +1 -1
- package/dist/esm/components/atoms/Switch/Switch.css.map +1 -1
- package/dist/esm/components/molecules/Alert/Alert.css +1 -1
- package/dist/esm/components/molecules/Ballot/Ballot.css +3 -3
- package/dist/esm/components/molecules/Ballot/Ballot.css.map +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css +3 -2
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.css.map +1 -1
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css +3 -2
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.css.map +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css +2 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.css.map +1 -1
- package/dist/esm/components/organisms/Confirmation/Confirmation.css +4 -3
- package/dist/esm/components/organisms/Confirmation/Confirmation.css.map +1 -1
- package/dist/esm/components/organisms/PickerDate/PickerDate.js +1 -1
- package/dist/esm/components/organisms/PickerDate/PickerDate.js.map +1 -1
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js +1 -1
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js.map +1 -1
- package/dist/esm/helpers/language.js +23 -15
- package/dist/esm/helpers/language.js.map +1 -1
- package/package.json +4 -4
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
color: inherit;
|
|
155
155
|
line-height: inherit;
|
|
156
156
|
font-weight: var(--pvt-label-font-weight);
|
|
157
|
-
font-size: var(--pvt-label
|
|
158
|
-
letter-spacing: var(--pvt-label
|
|
157
|
+
font-size: var(--pvt-label-font-size);
|
|
158
|
+
letter-spacing: var(--pvt-label-letter-spacing);
|
|
159
159
|
}
|
|
160
160
|
.rls-breadcrumb__label:first-child::before {
|
|
161
161
|
display: none;
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
--pvt-outline-background: var(--rls-app-color-050);
|
|
225
225
|
--pvt-outline-font-color: var(--rls-app-color-500);
|
|
226
226
|
--pvt-outline-border: var(--rls-app-border-1-300);
|
|
227
|
-
--pvt-flat-background: var(--rls-theme-color-
|
|
227
|
+
--pvt-flat-background: var(--rls-theme-color-100);
|
|
228
228
|
--pvt-flat-font-color: var(--rls-theme-color-500);
|
|
229
229
|
--pvt-flat-border: none;
|
|
230
230
|
--pvt-stroked-background: var(--rls-app-color-050);
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
.rls-checkbox--checked {
|
|
526
526
|
--rlc-icon-color: var(--rls-app-color-050);
|
|
527
527
|
--pvt-component-background: var(--rls-theme-color-200);
|
|
528
|
-
background: var(--rls-theme-
|
|
528
|
+
background: var(--rls-theme-gradient-500);
|
|
529
529
|
border: var(--rls-theme-border-1-500);
|
|
530
530
|
}
|
|
531
531
|
.rls-checkbox--disabled {
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
cursor: var(--rlc-radiobutton-cursor, initial);
|
|
966
966
|
}
|
|
967
967
|
.rls-radiobutton--checked {
|
|
968
|
-
--pvt-component-background: var(--rls-app-
|
|
968
|
+
--pvt-component-background: var(--rls-app-gradient-050);
|
|
969
969
|
background: var(--rls-theme-color-500);
|
|
970
970
|
border: var(--rls-theme-border-1-500);
|
|
971
971
|
}
|
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
--pvt-element-radius: var(--rls-sizing-x4);
|
|
1038
1038
|
}
|
|
1039
1039
|
.rls-switch--checked {
|
|
1040
|
-
--pvt-component-background: var(--rls-theme-
|
|
1040
|
+
--pvt-component-background: var(--rls-theme-gradient-500);
|
|
1041
1041
|
--pvt-element-left: calc(
|
|
1042
1042
|
100% - var(--pvt-element-width) - var(--rls-sizing-x2)
|
|
1043
1043
|
);
|
|
@@ -1074,7 +1074,7 @@
|
|
|
1074
1074
|
.rls-alert {
|
|
1075
1075
|
--pvt-icon-background: var(--rls-app-color-600);
|
|
1076
1076
|
--pvt-icon-color: var(--rls-app-color-050);
|
|
1077
|
-
--pvt-content-font-color: var(--rls-app-color-
|
|
1077
|
+
--pvt-content-font-color: var(--rls-app-color-500);
|
|
1078
1078
|
position: relative;
|
|
1079
1079
|
display: flex;
|
|
1080
1080
|
column-gap: var(--rls-sizing-x6);
|
|
@@ -1152,7 +1152,7 @@
|
|
|
1152
1152
|
display: flex;
|
|
1153
1153
|
overflow: hidden;
|
|
1154
1154
|
flex-direction: column;
|
|
1155
|
-
row-gap: var(--rlc-ballot-component-row-gap, var(--rls-sizing-
|
|
1155
|
+
row-gap: var(--rlc-ballot-component-row-gap, var(--rls-sizing-x1));
|
|
1156
1156
|
}
|
|
1157
1157
|
.rls-ballot .rls-avatar + .rls-ballot__component {
|
|
1158
1158
|
width: calc(100% - var(--rlc-avatar-width) - var(--rls-sizing-x4));
|
|
@@ -1185,10 +1185,10 @@
|
|
|
1185
1185
|
);
|
|
1186
1186
|
position: relative;
|
|
1187
1187
|
width: var(--rlc-ballot-subtitle-width, 100%);
|
|
1188
|
-
color: var(--rls-app-color-
|
|
1188
|
+
color: var(--rls-app-color-500);
|
|
1189
1189
|
font-weight: var(
|
|
1190
1190
|
--rlc-ballot-subtitle-font-weight,
|
|
1191
|
-
var(--rls-font-weight-
|
|
1191
|
+
var(--rls-font-weight-medium)
|
|
1192
1192
|
);
|
|
1193
1193
|
font-size: var(--rls-ballot-subtitle-font-size);
|
|
1194
1194
|
letter-spacing: var(--pvt-subtitle-letter-spacing);
|
|
@@ -1353,7 +1353,8 @@
|
|
|
1353
1353
|
} /*# sourceMappingURL=FieldText.css.map */
|
|
1354
1354
|
|
|
1355
1355
|
.rls-label-checkbox {
|
|
1356
|
-
--rlc-
|
|
1356
|
+
--rlc-checkbox-cursor: pointer;
|
|
1357
|
+
--rlc-ballot-padding: 0rem;
|
|
1357
1358
|
--pvt-text-opacity: 1;
|
|
1358
1359
|
--pvt-text-height: var(--rls-sizing-x12);
|
|
1359
1360
|
--pvt-text-overflow: hidden;
|
|
@@ -1384,7 +1385,7 @@
|
|
|
1384
1385
|
font-weight: var(--rls-font-weight-medium);
|
|
1385
1386
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1386
1387
|
line-height: var(--pvt-text-height);
|
|
1387
|
-
color: var(--rlc-label-checkbox-font-color, var(--rls-app-color-
|
|
1388
|
+
color: var(--rlc-label-checkbox-font-color, var(--rls-app-color-500));
|
|
1388
1389
|
user-select: none;
|
|
1389
1390
|
opacity: var(--pvt-text-opacity);
|
|
1390
1391
|
}
|
|
@@ -1396,7 +1397,8 @@
|
|
|
1396
1397
|
} /*# sourceMappingURL=LabelCheckBox.css.map */
|
|
1397
1398
|
|
|
1398
1399
|
.rls-label-radiobutton {
|
|
1399
|
-
--rlc-
|
|
1400
|
+
--rlc-radiobutton-cursor: pointer;
|
|
1401
|
+
--rlc-ballot-padding: 0rem;
|
|
1400
1402
|
--pvt-text-opacity: 1;
|
|
1401
1403
|
--pvt-text-height: var(--rls-sizing-x12);
|
|
1402
1404
|
--pvt-text-overflow: hidden;
|
|
@@ -1427,7 +1429,7 @@
|
|
|
1427
1429
|
font-weight: var(--rls-font-weight-medium);
|
|
1428
1430
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1429
1431
|
line-height: var(--pvt-text-height);
|
|
1430
|
-
color: var(--rlc-label-radiobutton-font-color, var(--rls-app-color-
|
|
1432
|
+
color: var(--rlc-label-radiobutton-font-color, var(--rls-app-color-500));
|
|
1431
1433
|
user-select: none;
|
|
1432
1434
|
opacity: var(--pvt-text-opacity);
|
|
1433
1435
|
}
|
|
@@ -1440,6 +1442,7 @@
|
|
|
1440
1442
|
|
|
1441
1443
|
.rls-label-switch {
|
|
1442
1444
|
--rlc-switch-cursor: pointer;
|
|
1445
|
+
--rlc-ballot-padding: 0rem;
|
|
1443
1446
|
--pvt-text-opacity: 1;
|
|
1444
1447
|
--pvt-text-height: var(--rls-sizing-x12);
|
|
1445
1448
|
--pvt-text-overflow: hidden;
|
|
@@ -1470,7 +1473,7 @@
|
|
|
1470
1473
|
font-weight: var(--rls-font-weight-medium);
|
|
1471
1474
|
letter-spacing: var(--rls-label-letter-spacing);
|
|
1472
1475
|
line-height: var(--pvt-text-height);
|
|
1473
|
-
color: var(--rlc-label-switch-font-color, var(--rls-app-color-
|
|
1476
|
+
color: var(--rlc-label-switch-font-color, var(--rls-app-color-500));
|
|
1474
1477
|
user-select: none;
|
|
1475
1478
|
opacity: var(--pvt-text-opacity);
|
|
1476
1479
|
}
|
|
@@ -2237,7 +2240,7 @@
|
|
|
2237
2240
|
position: absolute;
|
|
2238
2241
|
display: flex;
|
|
2239
2242
|
width: calc(100% - var(--rls-sizing-x16));
|
|
2240
|
-
max-width:
|
|
2243
|
+
max-width: 180rem;
|
|
2241
2244
|
height: var(--pvt-component-height);
|
|
2242
2245
|
flex-direction: column;
|
|
2243
2246
|
row-gap: var(--rls-sizing-x8);
|
|
@@ -2303,13 +2306,14 @@
|
|
|
2303
2306
|
.rls-confirmation__footer {
|
|
2304
2307
|
position: relative;
|
|
2305
2308
|
width: 100%;
|
|
2306
|
-
padding: var(--rls-sizing-x4) var(--rls-sizing-
|
|
2309
|
+
padding: var(--rls-sizing-x4) var(--rls-sizing-x12) 0rem var(--rls-sizing-x12);
|
|
2307
2310
|
box-sizing: border-box;
|
|
2308
2311
|
}
|
|
2309
2312
|
.rls-confirmation__actions {
|
|
2313
|
+
--rlc-button-width: 100%;
|
|
2310
2314
|
position: relative;
|
|
2311
|
-
width: 100%;
|
|
2312
2315
|
display: flex;
|
|
2316
|
+
width: 100%;
|
|
2313
2317
|
flex-direction: row-reverse;
|
|
2314
2318
|
justify-content: center;
|
|
2315
2319
|
column-gap: var(--rls-sizing-x8);
|
package/dist/es/index.js
CHANGED
|
@@ -1646,7 +1646,7 @@ function RlsRadioButton({ checked, disabled, identifier, rlsTheme, onClick }) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
1648
|
function RlsSkeletonText({ active, children, rlsTheme }) {
|
|
1649
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, {})) : (jsxRuntimeExports.jsx("
|
|
1649
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, {})) : (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text__value", children: children })) }));
|
|
1650
1650
|
}
|
|
1651
1651
|
|
|
1652
1652
|
function RlsSwitch({ checked, capsule, disabled, identifier, onClick, rlsTheme }) {
|
|
@@ -1721,10 +1721,11 @@ function RlsContent({ children, identifier, rlsTheme }) {
|
|
|
1721
1721
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__content", "rls-theme": rlsTheme, children: children }));
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
|
-
const
|
|
1724
|
+
const errors = {
|
|
1725
1725
|
es: {
|
|
1726
1726
|
alphabetic: 'Campo solo permite caracteres',
|
|
1727
1727
|
alphanumber: 'Campo solo permite caracteres y número',
|
|
1728
|
+
checked: 'Campo debe ser seleccionado',
|
|
1728
1729
|
decimal: 'Campo debe ser número decimal',
|
|
1729
1730
|
defined: 'Campo debe estar definido',
|
|
1730
1731
|
email: 'Campo debe ser correo electrónico',
|
|
@@ -1735,18 +1736,19 @@ const errorsDictionary = {
|
|
|
1735
1736
|
maxValue: 'Campo debe tener un valor máximo de {thanValue}',
|
|
1736
1737
|
minValue: 'Campo debe tener un valor mínimo de {thanValue}',
|
|
1737
1738
|
nickname: 'Campo inválido para nombre de usuario',
|
|
1738
|
-
|
|
1739
|
+
onlyNumber: 'Campo debe ser númerico',
|
|
1739
1740
|
password: 'Campo no permitido para password',
|
|
1740
|
-
reqlength: 'Campo debe tener {length} caracter(es)',
|
|
1741
1741
|
required: 'Campo es requerido',
|
|
1742
1742
|
strMinlength: 'Campo debe tener mínimo {length} caracter(es)',
|
|
1743
1743
|
strMaxlength: 'Campo debe tener máximo {length} caracter(es)',
|
|
1744
|
+
strReqLength: 'Campo debe tener {length} caracter(es)',
|
|
1744
1745
|
textonly: 'Campo solo permite caracteres (sin espacio)',
|
|
1745
1746
|
_unknown: 'Campo inválido {error}'
|
|
1746
1747
|
},
|
|
1747
1748
|
en: {
|
|
1748
1749
|
alphabetic: 'Field only allows characters',
|
|
1749
1750
|
alphanumber: 'Field only allows characters and number',
|
|
1751
|
+
checked: 'Field must be selected',
|
|
1750
1752
|
decimal: 'Field must be decimal number',
|
|
1751
1753
|
defined: 'Field must be defined',
|
|
1752
1754
|
email: 'Field must be email',
|
|
@@ -1757,9 +1759,9 @@ const errorsDictionary = {
|
|
|
1757
1759
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1758
1760
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1759
1761
|
nickname: 'Invalid field for username',
|
|
1760
|
-
|
|
1762
|
+
onlyNumber: 'Field must be numeric',
|
|
1761
1763
|
password: 'Field not allowed for password',
|
|
1762
|
-
|
|
1764
|
+
strReqLength: 'Field must be {length} characters',
|
|
1763
1765
|
required: 'Field is required',
|
|
1764
1766
|
strMinlength: 'Field must have minimum {length} characters',
|
|
1765
1767
|
strMaxlength: 'Field must have maximum {length} characters',
|
|
@@ -1769,6 +1771,7 @@ const errorsDictionary = {
|
|
|
1769
1771
|
fr: {
|
|
1770
1772
|
alphabetic: 'Field only allows characters',
|
|
1771
1773
|
alphanumber: 'Field only allows characters and number',
|
|
1774
|
+
checked: 'Field must be selected',
|
|
1772
1775
|
decimal: 'Field must be decimal number',
|
|
1773
1776
|
defined: 'Field must be defined',
|
|
1774
1777
|
email: 'Field must be email',
|
|
@@ -1779,9 +1782,9 @@ const errorsDictionary = {
|
|
|
1779
1782
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1780
1783
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1781
1784
|
nickname: 'Invalid field for username',
|
|
1782
|
-
|
|
1785
|
+
onlyNumber: 'Field must be numeric',
|
|
1783
1786
|
password: 'Field not allowed for password',
|
|
1784
|
-
|
|
1787
|
+
strReqLength: 'Field must be {length} characters',
|
|
1785
1788
|
required: 'Field is required',
|
|
1786
1789
|
strMinlength: 'Field must have minimum {length} characters',
|
|
1787
1790
|
strMaxlength: 'Field must have maximum {length} characters',
|
|
@@ -1791,6 +1794,7 @@ const errorsDictionary = {
|
|
|
1791
1794
|
pt: {
|
|
1792
1795
|
alphabetic: 'Field only allows characters',
|
|
1793
1796
|
alphanumber: 'Field only allows characters and number',
|
|
1797
|
+
checked: 'Field must be selected',
|
|
1794
1798
|
decimal: 'Field must be decimal number',
|
|
1795
1799
|
defined: 'Field must be defined',
|
|
1796
1800
|
email: 'Field must be email',
|
|
@@ -1801,21 +1805,25 @@ const errorsDictionary = {
|
|
|
1801
1805
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1802
1806
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1803
1807
|
nickname: 'Invalid field for username',
|
|
1804
|
-
|
|
1808
|
+
onlyNumber: 'Field must be numeric',
|
|
1805
1809
|
password: 'Field not allowed for password',
|
|
1806
|
-
|
|
1810
|
+
strReqLength: 'Field must be {length} characters',
|
|
1807
1811
|
required: 'Field is required',
|
|
1808
|
-
strMinlength: 'Field must have minimum {
|
|
1809
|
-
strMaxlength: 'Field must have maximum {
|
|
1812
|
+
strMinlength: 'Field must have minimum {length} characters',
|
|
1813
|
+
strMaxlength: 'Field must have maximum {length} characters',
|
|
1810
1814
|
textonly: 'Field only allows characters (no space)',
|
|
1811
1815
|
_unknown: 'Invalid field {error}'
|
|
1812
1816
|
}
|
|
1813
1817
|
};
|
|
1814
|
-
let _msgErrorsI18n = i18n(
|
|
1818
|
+
let _msgErrorsI18n = i18n(errors);
|
|
1815
1819
|
function setErrorsI18n(dictionary) {
|
|
1816
|
-
_msgErrorsI18n = i18n(Object.entries(
|
|
1817
|
-
|
|
1818
|
-
|
|
1820
|
+
_msgErrorsI18n = i18n(Object.entries(errors).reduce((errors, [key, value]) => {
|
|
1821
|
+
// Merge keys from dictionary in errors i18n
|
|
1822
|
+
errors[key] = {
|
|
1823
|
+
...value,
|
|
1824
|
+
...dictionary[key]
|
|
1825
|
+
};
|
|
1826
|
+
return errors;
|
|
1819
1827
|
}, {}));
|
|
1820
1828
|
}
|
|
1821
1829
|
function msgErrorsI18n(key, language, interpolators) {
|
|
@@ -3012,7 +3020,7 @@ function RlsPickerDate({ automatic, date, disabled, formControl, maxDate, minDat
|
|
|
3012
3020
|
value
|
|
3013
3021
|
});
|
|
3014
3022
|
}, [formControl, value, onListener]);
|
|
3015
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDay, { formControl: dayControl, date: _date, month: monthControl.value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, date: _date, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, date: _date, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), !automatic && (jsxRuntimeExports.jsx("div", { className: "rls-picker-date__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "
|
|
3023
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDay, { formControl: dayControl, date: _date, month: monthControl.value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, date: _date, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, date: _date, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), !automatic && (jsxRuntimeExports.jsx("div", { className: "rls-picker-date__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--today", children: jsxRuntimeExports.jsx(RlsButtonAction, { icon: "calendar", onClick: onToday, disabled: itIsDisabledToday }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "gradient", onClick: onSelect, children: labels.dateActionSelect }) })] }) }))] }));
|
|
3016
3024
|
}
|
|
3017
3025
|
|
|
3018
3026
|
function RlsFieldDate({ children, date, disabled, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: _value }) {
|
|
@@ -3137,7 +3145,7 @@ function RlsPickerDateRange({ automatic, date: _picker, disabled, formControl, m
|
|
|
3137
3145
|
formControl?.setValue(value);
|
|
3138
3146
|
onListener && onListener({ event: PickerListenerEvent.Select, value });
|
|
3139
3147
|
}, [formControl, value, onListener]);
|
|
3140
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: rangeControl, date: date, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), jsxRuntimeExports.jsx("div", { className: classNameFooter, children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "
|
|
3148
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: rangeControl, date: date, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), jsxRuntimeExports.jsx("div", { className: classNameFooter, children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date-range__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "gradient", onClick: onSelect, children: labels.dateActionSelect }) })] }) })] }));
|
|
3141
3149
|
}
|
|
3142
3150
|
|
|
3143
3151
|
function RlsFieldDateRange({ children, date: _date, disabled, formControl, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: _value }) {
|