@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/cjs/index.js
CHANGED
|
@@ -1648,7 +1648,7 @@ function RlsRadioButton({ checked, disabled, identifier, rlsTheme, onClick }) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
function RlsSkeletonText({ active, children, rlsTheme }) {
|
|
1651
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-skeleton-text", "rls-theme": rlsTheme, children: active ? (jsxRuntimeExports.jsx(RlsSkeleton, {})) : (jsxRuntimeExports.jsx("
|
|
1651
|
+
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 })) }));
|
|
1652
1652
|
}
|
|
1653
1653
|
|
|
1654
1654
|
function RlsSwitch({ checked, capsule, disabled, identifier, onClick, rlsTheme }) {
|
|
@@ -1723,10 +1723,11 @@ function RlsContent({ children, identifier, rlsTheme }) {
|
|
|
1723
1723
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__content", "rls-theme": rlsTheme, children: children }));
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
|
-
const
|
|
1726
|
+
const errors = {
|
|
1727
1727
|
es: {
|
|
1728
1728
|
alphabetic: 'Campo solo permite caracteres',
|
|
1729
1729
|
alphanumber: 'Campo solo permite caracteres y número',
|
|
1730
|
+
checked: 'Campo debe ser seleccionado',
|
|
1730
1731
|
decimal: 'Campo debe ser número decimal',
|
|
1731
1732
|
defined: 'Campo debe estar definido',
|
|
1732
1733
|
email: 'Campo debe ser correo electrónico',
|
|
@@ -1737,18 +1738,19 @@ const errorsDictionary = {
|
|
|
1737
1738
|
maxValue: 'Campo debe tener un valor máximo de {thanValue}',
|
|
1738
1739
|
minValue: 'Campo debe tener un valor mínimo de {thanValue}',
|
|
1739
1740
|
nickname: 'Campo inválido para nombre de usuario',
|
|
1740
|
-
|
|
1741
|
+
onlyNumber: 'Campo debe ser númerico',
|
|
1741
1742
|
password: 'Campo no permitido para password',
|
|
1742
|
-
reqlength: 'Campo debe tener {length} caracter(es)',
|
|
1743
1743
|
required: 'Campo es requerido',
|
|
1744
1744
|
strMinlength: 'Campo debe tener mínimo {length} caracter(es)',
|
|
1745
1745
|
strMaxlength: 'Campo debe tener máximo {length} caracter(es)',
|
|
1746
|
+
strReqLength: 'Campo debe tener {length} caracter(es)',
|
|
1746
1747
|
textonly: 'Campo solo permite caracteres (sin espacio)',
|
|
1747
1748
|
_unknown: 'Campo inválido {error}'
|
|
1748
1749
|
},
|
|
1749
1750
|
en: {
|
|
1750
1751
|
alphabetic: 'Field only allows characters',
|
|
1751
1752
|
alphanumber: 'Field only allows characters and number',
|
|
1753
|
+
checked: 'Field must be selected',
|
|
1752
1754
|
decimal: 'Field must be decimal number',
|
|
1753
1755
|
defined: 'Field must be defined',
|
|
1754
1756
|
email: 'Field must be email',
|
|
@@ -1759,9 +1761,9 @@ const errorsDictionary = {
|
|
|
1759
1761
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1760
1762
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1761
1763
|
nickname: 'Invalid field for username',
|
|
1762
|
-
|
|
1764
|
+
onlyNumber: 'Field must be numeric',
|
|
1763
1765
|
password: 'Field not allowed for password',
|
|
1764
|
-
|
|
1766
|
+
strReqLength: 'Field must be {length} characters',
|
|
1765
1767
|
required: 'Field is required',
|
|
1766
1768
|
strMinlength: 'Field must have minimum {length} characters',
|
|
1767
1769
|
strMaxlength: 'Field must have maximum {length} characters',
|
|
@@ -1771,6 +1773,7 @@ const errorsDictionary = {
|
|
|
1771
1773
|
fr: {
|
|
1772
1774
|
alphabetic: 'Field only allows characters',
|
|
1773
1775
|
alphanumber: 'Field only allows characters and number',
|
|
1776
|
+
checked: 'Field must be selected',
|
|
1774
1777
|
decimal: 'Field must be decimal number',
|
|
1775
1778
|
defined: 'Field must be defined',
|
|
1776
1779
|
email: 'Field must be email',
|
|
@@ -1781,9 +1784,9 @@ const errorsDictionary = {
|
|
|
1781
1784
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1782
1785
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1783
1786
|
nickname: 'Invalid field for username',
|
|
1784
|
-
|
|
1787
|
+
onlyNumber: 'Field must be numeric',
|
|
1785
1788
|
password: 'Field not allowed for password',
|
|
1786
|
-
|
|
1789
|
+
strReqLength: 'Field must be {length} characters',
|
|
1787
1790
|
required: 'Field is required',
|
|
1788
1791
|
strMinlength: 'Field must have minimum {length} characters',
|
|
1789
1792
|
strMaxlength: 'Field must have maximum {length} characters',
|
|
@@ -1793,6 +1796,7 @@ const errorsDictionary = {
|
|
|
1793
1796
|
pt: {
|
|
1794
1797
|
alphabetic: 'Field only allows characters',
|
|
1795
1798
|
alphanumber: 'Field only allows characters and number',
|
|
1799
|
+
checked: 'Field must be selected',
|
|
1796
1800
|
decimal: 'Field must be decimal number',
|
|
1797
1801
|
defined: 'Field must be defined',
|
|
1798
1802
|
email: 'Field must be email',
|
|
@@ -1803,21 +1807,25 @@ const errorsDictionary = {
|
|
|
1803
1807
|
minValue: 'Field must have a minimum value of {thanValue}',
|
|
1804
1808
|
maxValue: 'Field must have a maximum value of {thanValue}',
|
|
1805
1809
|
nickname: 'Invalid field for username',
|
|
1806
|
-
|
|
1810
|
+
onlyNumber: 'Field must be numeric',
|
|
1807
1811
|
password: 'Field not allowed for password',
|
|
1808
|
-
|
|
1812
|
+
strReqLength: 'Field must be {length} characters',
|
|
1809
1813
|
required: 'Field is required',
|
|
1810
|
-
strMinlength: 'Field must have minimum {
|
|
1811
|
-
strMaxlength: 'Field must have maximum {
|
|
1814
|
+
strMinlength: 'Field must have minimum {length} characters',
|
|
1815
|
+
strMaxlength: 'Field must have maximum {length} characters',
|
|
1812
1816
|
textonly: 'Field only allows characters (no space)',
|
|
1813
1817
|
_unknown: 'Invalid field {error}'
|
|
1814
1818
|
}
|
|
1815
1819
|
};
|
|
1816
|
-
let _msgErrorsI18n = i18n.i18n(
|
|
1820
|
+
let _msgErrorsI18n = i18n.i18n(errors);
|
|
1817
1821
|
function setErrorsI18n(dictionary) {
|
|
1818
|
-
_msgErrorsI18n = i18n.i18n(Object.entries(
|
|
1819
|
-
|
|
1820
|
-
|
|
1822
|
+
_msgErrorsI18n = i18n.i18n(Object.entries(errors).reduce((errors, [key, value]) => {
|
|
1823
|
+
// Merge keys from dictionary in errors i18n
|
|
1824
|
+
errors[key] = {
|
|
1825
|
+
...value,
|
|
1826
|
+
...dictionary[key]
|
|
1827
|
+
};
|
|
1828
|
+
return errors;
|
|
1821
1829
|
}, {}));
|
|
1822
1830
|
}
|
|
1823
1831
|
function msgErrorsI18n(key, language, interpolators) {
|
|
@@ -3014,7 +3022,7 @@ function RlsPickerDate({ automatic, date, disabled, formControl, maxDate, minDat
|
|
|
3014
3022
|
value
|
|
3015
3023
|
});
|
|
3016
3024
|
}, [formControl, value, onListener]);
|
|
3017
|
-
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: "
|
|
3025
|
+
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 }) })] }) }))] }));
|
|
3018
3026
|
}
|
|
3019
3027
|
|
|
3020
3028
|
function RlsFieldDate({ children, date, disabled, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: _value }) {
|
|
@@ -3139,7 +3147,7 @@ function RlsPickerDateRange({ automatic, date: _picker, disabled, formControl, m
|
|
|
3139
3147
|
formControl?.setValue(value);
|
|
3140
3148
|
onListener && onListener({ event: components.PickerListenerEvent.Select, value });
|
|
3141
3149
|
}, [formControl, value, onListener]);
|
|
3142
|
-
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: "
|
|
3150
|
+
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 }) })] }) })] }));
|
|
3143
3151
|
}
|
|
3144
3152
|
|
|
3145
3153
|
function RlsFieldDateRange({ children, date: _date, disabled, formControl, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: _value }) {
|