@rolster/react-components 18.18.3 → 18.20.2
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-DLCk3aif.css → index-DYtIRACv.css} +15 -0
- package/dist/cjs/index.js +284 -293
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/assets/{index-DLCk3aif.css → index-DYtIRACv.css} +15 -0
- package/dist/es/index.js +285 -295
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Avatar/Avatar.js +2 -2
- package/dist/esm/components/atoms/Avatar/Avatar.js.map +1 -1
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/components/atoms/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/esm/components/atoms/Button/Button.css +15 -0
- package/dist/esm/components/atoms/Button/Button.d.ts +1 -1
- package/dist/esm/components/atoms/Button/Button.js +2 -2
- package/dist/esm/components/atoms/Button/Button.js.map +1 -1
- package/dist/esm/components/atoms/CheckBox/CheckBox.js +2 -2
- package/dist/esm/components/atoms/CheckBox/CheckBox.js.map +1 -1
- package/dist/esm/components/atoms/Icon/Icon.js +2 -2
- package/dist/esm/components/atoms/Icon/Icon.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.js +13 -15
- package/dist/esm/components/atoms/Input/Input.js.map +1 -1
- package/dist/esm/components/atoms/InputMoney/InputMoney.js +3 -3
- package/dist/esm/components/atoms/InputMoney/InputMoney.js.map +1 -1
- package/dist/esm/components/atoms/InputNumber/InputNumber.js +3 -3
- package/dist/esm/components/atoms/InputNumber/InputNumber.js.map +1 -1
- package/dist/esm/components/atoms/InputPassword/InputPassword.js +9 -9
- package/dist/esm/components/atoms/InputPassword/InputPassword.js.map +1 -1
- package/dist/esm/components/atoms/InputSearch/InputSearch.js +5 -5
- package/dist/esm/components/atoms/InputSearch/InputSearch.js.map +1 -1
- package/dist/esm/components/atoms/InputText/InputText.js +3 -3
- package/dist/esm/components/atoms/InputText/InputText.js.map +1 -1
- package/dist/esm/components/atoms/Poster/Poster.js +2 -2
- package/dist/esm/components/atoms/Poster/Poster.js.map +1 -1
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +2 -2
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/esm/components/atoms/RadioButton/RadioButton.js +2 -2
- package/dist/esm/components/atoms/RadioButton/RadioButton.js.map +1 -1
- package/dist/esm/components/atoms/Switch/Switch.js +2 -2
- package/dist/esm/components/atoms/Switch/Switch.js.map +1 -1
- package/dist/esm/components/atoms/TabularText/TabularText.js +8 -3
- package/dist/esm/components/atoms/TabularText/TabularText.js.map +1 -1
- package/dist/esm/components/molecules/Ballot/Ballot.js +2 -2
- package/dist/esm/components/molecules/Ballot/Ballot.js.map +1 -1
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js +2 -2
- package/dist/esm/components/molecules/ButtonProgress/ButtonProgress.js.map +1 -1
- package/dist/esm/components/molecules/ButtonToggle/ButtonToggle.js +10 -10
- package/dist/esm/components/molecules/ButtonToggle/ButtonToggle.js.map +1 -1
- package/dist/esm/components/molecules/FieldMoney/FieldMoney.js +2 -2
- package/dist/esm/components/molecules/FieldMoney/FieldMoney.js.map +1 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js +2 -2
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js.map +1 -1
- package/dist/esm/components/molecules/FieldPassword/FieldPassword.js +6 -6
- package/dist/esm/components/molecules/FieldPassword/FieldPassword.js.map +1 -1
- package/dist/esm/components/molecules/FieldText/FieldText.js +2 -2
- package/dist/esm/components/molecules/FieldText/FieldText.js.map +1 -1
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js +8 -11
- package/dist/esm/components/molecules/LabelCheckBox/LabelCheckBox.js.map +1 -1
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js +5 -5
- package/dist/esm/components/molecules/LabelRadioButton/LabelRadioButton.js.map +1 -1
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js +11 -11
- package/dist/esm/components/molecules/LabelSwitch/LabelSwitch.js.map +1 -1
- package/dist/esm/components/molecules/Pagination/Pagination.js +2 -2
- package/dist/esm/components/molecules/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/molecules/PickerDay/PickerDay.js +1 -1
- package/dist/esm/components/molecules/PickerDay/PickerDay.js.map +1 -1
- package/dist/esm/components/molecules/PickerDayRange/PickerDayRange.js +1 -1
- package/dist/esm/components/molecules/PickerDayRange/PickerDayRange.js.map +1 -1
- package/dist/esm/components/molecules/PickerMonth/PickerMonth.js +1 -1
- package/dist/esm/components/molecules/PickerMonth/PickerMonth.js.map +1 -1
- package/dist/esm/components/molecules/PickerYear/PickerYear.js +1 -1
- package/dist/esm/components/molecules/PickerYear/PickerYear.js.map +1 -1
- package/dist/esm/components/organisms/Card/Card.js +2 -2
- package/dist/esm/components/organisms/Card/Card.js.map +1 -1
- package/dist/esm/components/organisms/Confirmation/Confirmation.js +2 -2
- package/dist/esm/components/organisms/Confirmation/Confirmation.js.map +1 -1
- package/dist/esm/components/organisms/Datatable/Datatable.js +7 -7
- package/dist/esm/components/organisms/Datatable/Datatable.js.map +1 -1
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocomplete.d.ts +4 -3
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocomplete.js +9 -10
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocomplete.js.map +1 -1
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocompleteController.d.ts +5 -5
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocompleteController.js +8 -8
- package/dist/esm/components/organisms/FieldAutocomplete/FieldAutocompleteController.js.map +1 -1
- package/dist/esm/components/organisms/FieldDate/FieldDate.js +2 -2
- package/dist/esm/components/organisms/FieldDate/FieldDate.js.map +1 -1
- package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.js +5 -2
- package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.js.map +1 -1
- package/dist/esm/components/organisms/FieldSelect/FieldSelect.d.ts +4 -3
- package/dist/esm/components/organisms/FieldSelect/FieldSelect.js +8 -9
- package/dist/esm/components/organisms/FieldSelect/FieldSelect.js.map +1 -1
- package/dist/esm/components/organisms/FieldSelect/FieldSelectController.d.ts +5 -5
- package/dist/esm/components/organisms/FieldSelect/FieldSelectController.js +8 -8
- package/dist/esm/components/organisms/FieldSelect/FieldSelectController.js.map +1 -1
- package/dist/esm/components/organisms/FormNavigation/FormNavigation.js +2 -2
- package/dist/esm/components/organisms/FormNavigation/FormNavigation.js.map +1 -1
- package/dist/esm/components/organisms/Modal/Modal.js +2 -2
- package/dist/esm/components/organisms/Modal/Modal.js.map +1 -1
- package/dist/esm/components/organisms/PickerDate/PickerDate.js +2 -2
- package/dist/esm/components/organisms/PickerDate/PickerDate.js.map +1 -1
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js +4 -3
- package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js.map +1 -1
- package/dist/esm/components/organisms/Snackbar/Snackbar.js +2 -2
- package/dist/esm/components/organisms/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/controllers/ListController.d.ts +4 -3
- package/dist/esm/controllers/ListController.js +48 -52
- package/dist/esm/controllers/ListController.js.map +1 -1
- package/dist/esm/controllers/RenderClassStatusController.d.ts +2 -0
- package/dist/esm/controllers/RenderClassStatusController.js +10 -0
- package/dist/esm/controllers/RenderClassStatusController.js.map +1 -0
- package/dist/esm/controllers/index.d.ts +1 -0
- package/dist/esm/controllers/index.js +1 -0
- package/dist/esm/controllers/index.js.map +1 -1
- package/dist/esm/definitions.d.ts +10 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/helpers/css.d.ts +2 -3
- package/dist/esm/helpers/css.js +3 -3
- package/dist/esm/helpers/css.js.map +1 -1
- package/package.json +5 -7
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import require$$0, { useState,
|
|
1
|
+
import require$$0, { useState, useEffect, useRef, useCallback, createContext } from 'react';
|
|
2
2
|
import { currencyFormat, itIsDefined, PartialSealed } from '@rolster/commons';
|
|
3
|
+
import { ListCollection, locationListCanTop, navigationListFromInput, navigationListFromElement, PaginationController, verifyDayPicker, createDayPicker, createDayRangePicker, verifyMonthPicker, createMonthPicker, monthLimitTemplate, createYearPicker, verifyYearPicker, createAutocompleteStore, verifyDateRange, dateOutRange, PickerListenerEvent } from '@rolster/components';
|
|
3
4
|
import { dateFormatTemplate, DAY_LABELS, DateRange, normalizeMinTime, assignDayInDate, dateIsBefore, MONTH_NAMES, Month, assignYearInDate, assignMonthInDate } from '@rolster/dates';
|
|
4
|
-
import { PaginationController, verifyDayPicker, createDayPicker, createDayRangePicker, verifyMonthPicker, createMonthPicker, monthLimitTemplate, createYearPicker, verifyYearPicker, ListCollection, locationListCanTop, navigationListFromInput, navigationListFromElement, createAutocompleteStore, verifyDateRange, dateOutRange, PickerListenerEvent } from '@rolster/components';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { i18n } from '@rolster/i18n';
|
|
7
7
|
import { useReactControl } from '@rolster/react-forms';
|
|
@@ -25,8 +25,8 @@ var hasRequiredReactJsxRuntime_production_min;
|
|
|
25
25
|
function requireReactJsxRuntime_production_min () {
|
|
26
26
|
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
27
27
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
28
|
-
var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key
|
|
29
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
28
|
+
var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
|
|
29
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
30
30
|
return reactJsxRuntime_production_min;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -756,11 +756,6 @@ function requireReactJsxRuntime_development () {
|
|
|
756
756
|
};
|
|
757
757
|
var specialPropKeyWarningShown;
|
|
758
758
|
var specialPropRefWarningShown;
|
|
759
|
-
var didWarnAboutStringRefs;
|
|
760
|
-
|
|
761
|
-
{
|
|
762
|
-
didWarnAboutStringRefs = {};
|
|
763
|
-
}
|
|
764
759
|
|
|
765
760
|
function hasValidRef(config) {
|
|
766
761
|
{
|
|
@@ -792,15 +787,7 @@ function requireReactJsxRuntime_development () {
|
|
|
792
787
|
|
|
793
788
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
794
789
|
{
|
|
795
|
-
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self
|
|
796
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
797
|
-
|
|
798
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
799
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
800
|
-
|
|
801
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
790
|
+
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
|
|
804
791
|
}
|
|
805
792
|
}
|
|
806
793
|
|
|
@@ -1357,20 +1344,156 @@ var jsxRuntimeExports = jsxRuntime.exports;
|
|
|
1357
1344
|
|
|
1358
1345
|
const className = 'rls-tabular-text';
|
|
1359
1346
|
const pointers = ['.', ','];
|
|
1360
|
-
function
|
|
1347
|
+
function getCharClass(char) {
|
|
1361
1348
|
return pointers.includes(char)
|
|
1362
1349
|
? `${className}__pointer`
|
|
1363
1350
|
: `${className}__char`;
|
|
1364
1351
|
}
|
|
1365
1352
|
function RlsTabularText({ value }) {
|
|
1366
|
-
|
|
1353
|
+
const [codes, setCodes] = useState(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}));
|
|
1354
|
+
useEffect(() => {
|
|
1355
|
+
setCodes(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: value?.split('').map((char, index) => (jsxRuntimeExports.jsx("span", { className: getCharClass(char), children: char }, index))) }));
|
|
1356
|
+
}, [value]);
|
|
1357
|
+
return jsxRuntimeExports.jsx("div", { className: "rls-tabular-text", children: codes });
|
|
1367
1358
|
}
|
|
1368
1359
|
|
|
1369
1360
|
function RlsAmount({ value, decimals, rlsTheme, symbol }) {
|
|
1370
1361
|
return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsx(RlsTabularText, { value: currencyFormat({ value, decimals }) })] }));
|
|
1371
1362
|
}
|
|
1372
1363
|
|
|
1373
|
-
function
|
|
1364
|
+
function createObserver(options) {
|
|
1365
|
+
const { setScrolleable, table } = options;
|
|
1366
|
+
const observer = new ResizeObserver(() => {
|
|
1367
|
+
const scrollHeight = table.scrollHeight || 0;
|
|
1368
|
+
const clientHeight = table.clientHeight || 0;
|
|
1369
|
+
setScrolleable(scrollHeight > clientHeight);
|
|
1370
|
+
});
|
|
1371
|
+
observer.observe(table);
|
|
1372
|
+
return observer;
|
|
1373
|
+
}
|
|
1374
|
+
function useDatatable() {
|
|
1375
|
+
const [scrolleable, setScrolleable] = useState(false);
|
|
1376
|
+
const tableRef = useRef(null);
|
|
1377
|
+
useEffect(() => {
|
|
1378
|
+
const observer = tableRef?.current &&
|
|
1379
|
+
createObserver({ setScrolleable, table: tableRef?.current });
|
|
1380
|
+
return () => {
|
|
1381
|
+
observer?.disconnect();
|
|
1382
|
+
};
|
|
1383
|
+
}, []);
|
|
1384
|
+
return { scrolleable, tableRef };
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
function useListController(props) {
|
|
1388
|
+
const { suggestions, automatic, formControl, reference } = props;
|
|
1389
|
+
const listIsOpen = useRef(false);
|
|
1390
|
+
const contentRef = useRef(null);
|
|
1391
|
+
const listRef = useRef(null);
|
|
1392
|
+
const inputRef = useRef(null);
|
|
1393
|
+
const [collection, setCollection] = useState(new ListCollection(suggestions));
|
|
1394
|
+
const [state, refreshState] = useState({
|
|
1395
|
+
focused: false,
|
|
1396
|
+
higher: false,
|
|
1397
|
+
value: '',
|
|
1398
|
+
modalIsVisible: false
|
|
1399
|
+
});
|
|
1400
|
+
const position = useRef(0);
|
|
1401
|
+
const valueProtected = useRef();
|
|
1402
|
+
const changeValueInternal = useRef(false);
|
|
1403
|
+
useEffect(() => {
|
|
1404
|
+
function onCloseSuggestions({ target }) {
|
|
1405
|
+
!contentRef?.current?.contains(target) &&
|
|
1406
|
+
refreshState((state) => ({ ...state, modalIsVisible: false }));
|
|
1407
|
+
}
|
|
1408
|
+
document.addEventListener('click', onCloseSuggestions);
|
|
1409
|
+
return () => {
|
|
1410
|
+
document.removeEventListener('click', onCloseSuggestions);
|
|
1411
|
+
};
|
|
1412
|
+
}, []);
|
|
1413
|
+
useEffect(() => {
|
|
1414
|
+
if (!listIsOpen.current && state.modalIsVisible) {
|
|
1415
|
+
listIsOpen.current = true;
|
|
1416
|
+
}
|
|
1417
|
+
if (listIsOpen.current && !state.modalIsVisible) {
|
|
1418
|
+
formControl?.touch();
|
|
1419
|
+
}
|
|
1420
|
+
refreshState((state) => ({
|
|
1421
|
+
...state,
|
|
1422
|
+
higher: locationListCanTop(contentRef.current, listRef.current)
|
|
1423
|
+
}));
|
|
1424
|
+
}, [state.modalIsVisible]);
|
|
1425
|
+
useEffect(() => {
|
|
1426
|
+
setCollection(new ListCollection(suggestions, reference));
|
|
1427
|
+
}, [suggestions]);
|
|
1428
|
+
useEffect(() => {
|
|
1429
|
+
if (!changeValueInternal.current) {
|
|
1430
|
+
if (formControl?.value) {
|
|
1431
|
+
const element = collection.find(formControl.value);
|
|
1432
|
+
if (!element) {
|
|
1433
|
+
valueProtected.current = formControl.value;
|
|
1434
|
+
automatic
|
|
1435
|
+
? setFormValue(collection.value[0], true)
|
|
1436
|
+
: setFormValue(undefined);
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
refreshState((state) => ({ ...state, value: element.description }));
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
else if (valueProtected.current) {
|
|
1443
|
+
const element = collection.find(valueProtected.current);
|
|
1444
|
+
element && setFormValue(element);
|
|
1445
|
+
}
|
|
1446
|
+
else {
|
|
1447
|
+
automatic && setFormValue(collection.value[0], true);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
changeValueInternal.current = false;
|
|
1451
|
+
}, [collection, formControl?.value]);
|
|
1452
|
+
const setState = useCallback((state) => {
|
|
1453
|
+
refreshState((_state) => ({ ..._state, ...state }));
|
|
1454
|
+
}, []);
|
|
1455
|
+
const setFormValue = useCallback((element, initialValue = false) => {
|
|
1456
|
+
refreshState((_state) => ({
|
|
1457
|
+
..._state,
|
|
1458
|
+
value: element?.description || ''
|
|
1459
|
+
}));
|
|
1460
|
+
changeValueInternal.current = true;
|
|
1461
|
+
initialValue
|
|
1462
|
+
? formControl?.setInitialValue(element?.value)
|
|
1463
|
+
: formControl?.setValue(element?.value);
|
|
1464
|
+
}, [formControl]);
|
|
1465
|
+
const navigationInput = useCallback((event) => {
|
|
1466
|
+
if (state.modalIsVisible) {
|
|
1467
|
+
const _position = navigationListFromInput({
|
|
1468
|
+
content: contentRef.current,
|
|
1469
|
+
event: event,
|
|
1470
|
+
list: listRef.current
|
|
1471
|
+
});
|
|
1472
|
+
position.current = _position ?? 0;
|
|
1473
|
+
}
|
|
1474
|
+
}, [state.modalIsVisible]);
|
|
1475
|
+
const navigationElement = useCallback((event) => {
|
|
1476
|
+
position.current = navigationListFromElement({
|
|
1477
|
+
content: contentRef.current,
|
|
1478
|
+
event: event,
|
|
1479
|
+
input: inputRef.current,
|
|
1480
|
+
list: listRef.current,
|
|
1481
|
+
position: position.current
|
|
1482
|
+
});
|
|
1483
|
+
}, [state.modalIsVisible]);
|
|
1484
|
+
return {
|
|
1485
|
+
...state,
|
|
1486
|
+
contentRef,
|
|
1487
|
+
inputRef,
|
|
1488
|
+
listRef,
|
|
1489
|
+
navigationElement,
|
|
1490
|
+
navigationInput,
|
|
1491
|
+
setFormValue,
|
|
1492
|
+
setState
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
function renderClassStatus(base, status = {}, additionals) {
|
|
1374
1497
|
const resultClass = [base];
|
|
1375
1498
|
Object.entries(status).forEach(([name, value]) => {
|
|
1376
1499
|
if (value) {
|
|
@@ -1379,20 +1502,12 @@ function renderClassStatus(base, status = {}, aditionals) {
|
|
|
1379
1502
|
: resultClass.push(`${base}--${name}`);
|
|
1380
1503
|
}
|
|
1381
1504
|
});
|
|
1382
|
-
if (
|
|
1383
|
-
resultClass.push(
|
|
1505
|
+
if (additionals) {
|
|
1506
|
+
resultClass.push(additionals);
|
|
1384
1507
|
}
|
|
1385
1508
|
return resultClass.join(' ');
|
|
1386
1509
|
}
|
|
1387
1510
|
|
|
1388
|
-
function RlsAvatar({ children, rounded, skeleton, rlsTheme }) {
|
|
1389
|
-
return (jsxRuntimeExports.jsx("div", { className: renderClassStatus('rls-avatar', { rounded, skeleton }), "rls-theme": rlsTheme, children: children }));
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
function RlsBadge({ children, rlsTheme }) {
|
|
1393
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-badge", "rls-theme": rlsTheme, children: children }));
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
1511
|
const DATE_RANGE_FORMAT = '{dd}/{mx}/{aa}';
|
|
1397
1512
|
|
|
1398
1513
|
function rangeFormatTemplate({ maxDate, minDate }) {
|
|
@@ -1401,18 +1516,34 @@ function rangeFormatTemplate({ maxDate, minDate }) {
|
|
|
1401
1516
|
return `${minFormat} - ${maxFormat}`;
|
|
1402
1517
|
}
|
|
1403
1518
|
|
|
1519
|
+
function useRenderClassStatus(base, status = {}, additionals) {
|
|
1520
|
+
const [className, setClassName] = useState('');
|
|
1521
|
+
useEffect(() => {
|
|
1522
|
+
setClassName(renderClassStatus(base, status, additionals));
|
|
1523
|
+
}, [base, Object.values(status), additionals]);
|
|
1524
|
+
return className;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
function RlsAvatar({ children, rounded, skeleton, rlsTheme }) {
|
|
1528
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-avatar', { rounded, skeleton }), "rls-theme": rlsTheme, children: children }));
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
function RlsBadge({ children, rlsTheme }) {
|
|
1532
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-badge", "rls-theme": rlsTheme, children: children }));
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1404
1535
|
function RlsBreadcrumb({ labels }) {
|
|
1405
|
-
return (jsxRuntimeExports.jsx("div", { className: "rls-breadcrumb", children: labels.map(({ label, onClick }, index) => (jsxRuntimeExports.jsx("label", { className: "rls-breadcrumb__label", onClick: onClick, children: jsxRuntimeExports.jsx("a", { className:
|
|
1536
|
+
return (jsxRuntimeExports.jsx("div", { className: "rls-breadcrumb", children: labels.map(({ label, onClick }, index) => (jsxRuntimeExports.jsx("label", { className: "rls-breadcrumb__label", onClick: onClick, children: jsxRuntimeExports.jsx("a", { className: useRenderClassStatus('rls-breadcrumb__label__a', {
|
|
1406
1537
|
actionable: !!onClick
|
|
1407
1538
|
}), children: label }) }, index))) }));
|
|
1408
1539
|
}
|
|
1409
1540
|
|
|
1410
1541
|
function RlsIcon({ value, skeleton }) {
|
|
1411
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
1542
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-icon', { skeleton }), children: jsxRuntimeExports.jsx("i", { className: `rls-icon-${value}` }) }));
|
|
1412
1543
|
}
|
|
1413
1544
|
|
|
1414
1545
|
function RlsButton({ type, children, disabled, identifier, prefixIcon, suffixIcon, rlsTheme, onClick }) {
|
|
1415
|
-
return (jsxRuntimeExports.jsx("button", { id: identifier, className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className:
|
|
1546
|
+
return (jsxRuntimeExports.jsx("button", { id: identifier, className: "rls-button", onClick: onClick, "rls-theme": rlsTheme, disabled: disabled, children: jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-button__content', { type }), children: [prefixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: prefixIcon }), children && jsxRuntimeExports.jsx("div", { className: "rls-button__label", children: children }), suffixIcon && jsxRuntimeExports.jsx(RlsIcon, { value: suffixIcon })] }) }));
|
|
1416
1547
|
}
|
|
1417
1548
|
|
|
1418
1549
|
function RlsButtonAction({ icon, disabled, identifier, onClick, tooltip }) {
|
|
@@ -1420,7 +1551,7 @@ function RlsButtonAction({ icon, disabled, identifier, onClick, tooltip }) {
|
|
|
1420
1551
|
}
|
|
1421
1552
|
|
|
1422
1553
|
function RlsCheckBox({ checked, disabled, identifier, onClick, rlsTheme }) {
|
|
1423
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className:
|
|
1554
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-checkbox', { checked, disabled }), onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-checkbox__component" }) }));
|
|
1424
1555
|
}
|
|
1425
1556
|
function RlsCheckBoxControl({ formControl, disabled, identifier, rlsTheme }) {
|
|
1426
1557
|
return (jsxRuntimeExports.jsx(RlsCheckBox, { identifier: identifier, checked: !!formControl.value, disabled: disabled, onClick: () => {
|
|
@@ -1430,22 +1561,20 @@ function RlsCheckBoxControl({ formControl, disabled, identifier, rlsTheme }) {
|
|
|
1430
1561
|
|
|
1431
1562
|
function RlsInput({ children, disabled, formControl, identifier, onValue, placeholder, type, value }) {
|
|
1432
1563
|
const [focused, setFocused] = useState(false);
|
|
1433
|
-
|
|
1434
|
-
|
|
1564
|
+
const onChange = useCallback((event) => {
|
|
1565
|
+
const value = type === 'number' ? +event.target.value : event.target.value;
|
|
1435
1566
|
onValue && onValue(value);
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
}
|
|
1440
|
-
function onFocus() {
|
|
1567
|
+
formControl?.setValue(value);
|
|
1568
|
+
}, [formControl, onValue]);
|
|
1569
|
+
const onFocus = useCallback(() => {
|
|
1441
1570
|
formControl?.focus();
|
|
1442
|
-
setFocused(true);
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1571
|
+
setFocused(() => true);
|
|
1572
|
+
}, [formControl]);
|
|
1573
|
+
const onBlur = useCallback(() => {
|
|
1445
1574
|
formControl?.blur();
|
|
1446
|
-
setFocused(false);
|
|
1447
|
-
}
|
|
1448
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1575
|
+
setFocused(() => false);
|
|
1576
|
+
}, [formControl]);
|
|
1577
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-input', {
|
|
1449
1578
|
focused: formControl?.focused ?? focused,
|
|
1450
1579
|
disabled: formControl?.disabled || disabled
|
|
1451
1580
|
}), children: [jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input__component", autoComplete: "off", type: type ?? 'text', placeholder: placeholder, disabled: formControl?.disabled || disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange, value: formControl?.value || value || '' }), jsxRuntimeExports.jsx("span", { className: "rls-input__value", children: children })] }));
|
|
@@ -1453,36 +1582,36 @@ function RlsInput({ children, disabled, formControl, identifier, onValue, placeh
|
|
|
1453
1582
|
|
|
1454
1583
|
function RlsInputMoney({ decimals, disabled, formControl, identifier, onValue, placeholder, symbol, value }) {
|
|
1455
1584
|
const [valueInput, setValueInput] = useState(value || 0);
|
|
1456
|
-
|
|
1585
|
+
const onValueInput = useCallback((value) => {
|
|
1457
1586
|
!formControl && setValueInput(value);
|
|
1458
1587
|
onValue && onValue(value);
|
|
1459
|
-
}
|
|
1588
|
+
}, [formControl, onValue]);
|
|
1460
1589
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-money", children: jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, type: "number", value: value, disabled: disabled, placeholder: placeholder, onValue: onValueInput, children: jsxRuntimeExports.jsx(RlsAmount, { value: formControl?.value ?? value ?? valueInput, symbol: symbol, decimals: decimals }) }) }));
|
|
1461
1590
|
}
|
|
1462
1591
|
|
|
1463
1592
|
function RlsInputNumber({ disabled, formControl, identifier, onValue, placeholder, value }) {
|
|
1464
1593
|
const [valueInput, setValueInput] = useState(value ?? 0);
|
|
1465
|
-
|
|
1594
|
+
const onValueInput = useCallback((value) => {
|
|
1466
1595
|
!formControl && setValueInput(value);
|
|
1467
1596
|
onValue && onValue(value);
|
|
1468
|
-
}
|
|
1597
|
+
}, [formControl, onValue]);
|
|
1469
1598
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-number", children: jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, type: "number", value: value, disabled: disabled, placeholder: placeholder, onValue: onValueInput, children: formControl?.value ?? value ?? valueInput }) }));
|
|
1470
1599
|
}
|
|
1471
1600
|
|
|
1472
1601
|
function RlsInputPassword({ disabled, formControl, identifier, onValue, placeholder, type }) {
|
|
1473
1602
|
const [focused, setFocused] = useState(false);
|
|
1474
|
-
|
|
1603
|
+
const onChange = useCallback((event) => {
|
|
1475
1604
|
formControl?.setValue(event.target.value);
|
|
1476
1605
|
onValue && onValue(event.target.value);
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1606
|
+
}, [formControl, onValue]);
|
|
1607
|
+
const onFocus = useCallback(() => {
|
|
1479
1608
|
formControl?.focus();
|
|
1480
|
-
setFocused(true);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1609
|
+
setFocused(() => true);
|
|
1610
|
+
}, [formControl]);
|
|
1611
|
+
const onBlur = useCallback(() => {
|
|
1483
1612
|
formControl?.blur();
|
|
1484
|
-
setFocused(false);
|
|
1485
|
-
}
|
|
1613
|
+
setFocused(() => false);
|
|
1614
|
+
}, [formControl]);
|
|
1486
1615
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: renderClassStatus('rls-input-password', {
|
|
1487
1616
|
focused: formControl?.focused ?? focused,
|
|
1488
1617
|
disabled: formControl?.disabled || disabled
|
|
@@ -1491,18 +1620,18 @@ function RlsInputPassword({ disabled, formControl, identifier, onValue, placehol
|
|
|
1491
1620
|
|
|
1492
1621
|
function RlsInputSearch({ formControl, identifier, onSearch, placeholder }) {
|
|
1493
1622
|
const [value, setValue] = useState('');
|
|
1494
|
-
|
|
1495
|
-
!formControl && setValue(value);
|
|
1496
|
-
}
|
|
1497
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-input-search", children: [jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, placeholder: placeholder, onValue:
|
|
1623
|
+
const onValue = useCallback((value) => {
|
|
1624
|
+
!formControl && setValue(() => value);
|
|
1625
|
+
}, [formControl]);
|
|
1626
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-input-search", children: [jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, placeholder: placeholder, onValue: onValue, children: formControl?.value ?? value }), onSearch && jsxRuntimeExports.jsx(RlsButtonAction, { icon: "search", onClick: onSearch })] }));
|
|
1498
1627
|
}
|
|
1499
1628
|
|
|
1500
1629
|
function RlsInputText({ disabled, formControl, identifier, onValue, placeholder, value }) {
|
|
1501
1630
|
const [valueInput, setValueInput] = useState(value ?? '');
|
|
1502
|
-
|
|
1631
|
+
const onValueInput = useCallback((value) => {
|
|
1503
1632
|
!formControl && setValueInput(value);
|
|
1504
1633
|
onValue && onValue(value);
|
|
1505
|
-
}
|
|
1634
|
+
}, [formControl, onValue]);
|
|
1506
1635
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-input-text", children: jsxRuntimeExports.jsx(RlsInput, { formControl: formControl, type: "text", value: value, disabled: disabled, placeholder: placeholder, onValue: onValueInput, children: formControl?.value ?? value ?? valueInput }) }));
|
|
1507
1636
|
}
|
|
1508
1637
|
|
|
@@ -1515,11 +1644,11 @@ function RlsMessageIcon({ icon, children, rlsTheme }) {
|
|
|
1515
1644
|
}
|
|
1516
1645
|
|
|
1517
1646
|
function RlsPoster({ children, contrast, outline, rlsTheme }) {
|
|
1518
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
1647
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-poster', { contrast, outline }), "rls-theme": rlsTheme, children: children }));
|
|
1519
1648
|
}
|
|
1520
1649
|
|
|
1521
1650
|
function RlsProgressBar({ indeterminate, percentage, rlsTheme }) {
|
|
1522
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
1651
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-progress-bar', { indeterminate }), "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-progress-bar__component", style: { width: `${percentage || 0}%` } }) }));
|
|
1523
1652
|
}
|
|
1524
1653
|
|
|
1525
1654
|
function RlsProgressCircular({ rlsTheme }) {
|
|
@@ -1527,7 +1656,7 @@ function RlsProgressCircular({ rlsTheme }) {
|
|
|
1527
1656
|
}
|
|
1528
1657
|
|
|
1529
1658
|
function RlsRadioButton({ checked, disabled, identifier, rlsTheme, onClick }) {
|
|
1530
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className:
|
|
1659
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-radiobutton', { checked, disabled }), onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-radiobutton__component" }) }));
|
|
1531
1660
|
}
|
|
1532
1661
|
|
|
1533
1662
|
function RlsSkeleton({ rlsTheme }) {
|
|
@@ -1539,7 +1668,7 @@ function RlsSkeletonText({ active, children, rlsTheme }) {
|
|
|
1539
1668
|
}
|
|
1540
1669
|
|
|
1541
1670
|
function RlsSwitch({ checked, disabled, identifier, onClick, rlsTheme }) {
|
|
1542
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className:
|
|
1671
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-switch', { checked, disabled }), onClick: onClick, "rls-theme": rlsTheme, children: jsxRuntimeExports.jsxs("div", { className: "rls-switch__component", children: [jsxRuntimeExports.jsx("div", { className: "rls-switch__component__element" }), jsxRuntimeExports.jsx("div", { className: "rls-switch__component__bar" })] }) }));
|
|
1543
1672
|
}
|
|
1544
1673
|
function RlsSwitchControl({ formControl, disabled, identifier, rlsTheme }) {
|
|
1545
1674
|
return (jsxRuntimeExports.jsx(RlsSwitch, { identifier: identifier, checked: formControl.value || false, disabled: disabled, onClick: () => {
|
|
@@ -1548,11 +1677,11 @@ function RlsSwitchControl({ formControl, disabled, identifier, rlsTheme }) {
|
|
|
1548
1677
|
}
|
|
1549
1678
|
|
|
1550
1679
|
function RlsBallot({ bordered, children, img, initials, skeleton, subtitle, rlsTheme }) {
|
|
1551
|
-
return (jsxRuntimeExports.jsxs("div", { className:
|
|
1680
|
+
return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-ballot', { bordered, skeleton }), "rls-theme": rlsTheme, children: [(img || initials) && (jsxRuntimeExports.jsxs(RlsAvatar, { skeleton: skeleton, children: [img && jsxRuntimeExports.jsx("img", { src: img }), initials && jsxRuntimeExports.jsx("span", { children: initials })] })), jsxRuntimeExports.jsxs("div", { className: "rls-ballot__component", children: [jsxRuntimeExports.jsx("label", { className: "rls-ballot__title", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: children }) }), subtitle && (jsxRuntimeExports.jsx("label", { className: "rls-ballot__subtitle", children: jsxRuntimeExports.jsx(RlsSkeletonText, { active: skeleton, children: jsxRuntimeExports.jsx("span", { children: subtitle }) }) }))] })] }));
|
|
1552
1681
|
}
|
|
1553
1682
|
|
|
1554
1683
|
function RlsButtonProgress({ icon, disabled, onClick, progressing, rlsTheme }) {
|
|
1555
|
-
return (jsxRuntimeExports.jsxs("div", { className:
|
|
1684
|
+
return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-button-progress', { progressing }), "rls-theme": rlsTheme, children: [!progressing && (jsxRuntimeExports.jsx(RlsButtonAction, { icon: icon, onClick: onClick, disabled: disabled })), progressing && jsxRuntimeExports.jsx(RlsProgressCircular, {})] }));
|
|
1556
1685
|
}
|
|
1557
1686
|
|
|
1558
1687
|
function RlsButtonToggle({ onAction, options, type, automatic, disabled, rlsTheme }) {
|
|
@@ -1569,17 +1698,17 @@ function RlsButtonToggle({ onAction, options, type, automatic, disabled, rlsThem
|
|
|
1569
1698
|
document.removeEventListener('click', onCloseMenu);
|
|
1570
1699
|
};
|
|
1571
1700
|
}, []);
|
|
1572
|
-
|
|
1573
|
-
setVisible((
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
setAction(action);
|
|
1577
|
-
setVisible(false);
|
|
1701
|
+
const onClickMenu = useCallback(() => {
|
|
1702
|
+
setVisible((visible) => !visible);
|
|
1703
|
+
}, []);
|
|
1704
|
+
const onSelectAction = useCallback((action) => {
|
|
1705
|
+
setAction(() => action);
|
|
1706
|
+
setVisible(() => false);
|
|
1578
1707
|
automatic && onAction(action.value);
|
|
1579
|
-
}
|
|
1708
|
+
}, [onAction, automatic]);
|
|
1580
1709
|
return (jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle", ref: componentRef, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-button-toggle__content", children: [action && (jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__action", children: jsxRuntimeExports.jsx(RlsButton, { disabled: disabled, type: type, onClick: () => {
|
|
1581
1710
|
onAction(action.value);
|
|
1582
|
-
}, children: action.label }) })), jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__icon", children: jsxRuntimeExports.jsx(RlsButton, { type: type, prefixIcon: "arrow-ios-down", disabled: disabled, onClick: onClickMenu }) })] }), jsxRuntimeExports.jsx("div", { className:
|
|
1711
|
+
}, children: action.label }) })), jsxRuntimeExports.jsx("div", { className: "rls-button-toggle__icon", children: jsxRuntimeExports.jsx(RlsButton, { type: type, prefixIcon: "arrow-ios-down", disabled: disabled, onClick: onClickMenu }) })] }), jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-button-toggle__list', {
|
|
1583
1712
|
visible,
|
|
1584
1713
|
hide: !visible
|
|
1585
1714
|
}), children: jsxRuntimeExports.jsx("ul", { children: options.map((action, index) => (jsxRuntimeExports.jsx("li", { className: "truncate", onClick: () => {
|
|
@@ -1593,7 +1722,7 @@ function RlsMessageFormError({ className, formControl }) {
|
|
|
1593
1722
|
|
|
1594
1723
|
function RlsFieldMoney({ children, decimals, disabled, formControl, identifier, msgErrorDisabled, onValue, placeholder, symbol, rlsTheme, value }) {
|
|
1595
1724
|
const _disabled = formControl?.disabled || disabled;
|
|
1596
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1725
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-field-box', {
|
|
1597
1726
|
focused: formControl?.focused && !_disabled,
|
|
1598
1727
|
error: formControl?.wrong,
|
|
1599
1728
|
disabled: _disabled
|
|
@@ -1602,7 +1731,7 @@ function RlsFieldMoney({ children, decimals, disabled, formControl, identifier,
|
|
|
1602
1731
|
|
|
1603
1732
|
function RlsFieldNumber({ children, disabled, formControl, identifier, msgErrorDisabled, onValue, placeholder, rlsTheme, value }) {
|
|
1604
1733
|
const _disabled = formControl?.disabled || disabled;
|
|
1605
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1734
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-field-box', {
|
|
1606
1735
|
focused: formControl?.focused && !_disabled,
|
|
1607
1736
|
error: formControl?.wrong,
|
|
1608
1737
|
disabled: _disabled
|
|
@@ -1611,11 +1740,11 @@ function RlsFieldNumber({ children, disabled, formControl, identifier, msgErrorD
|
|
|
1611
1740
|
|
|
1612
1741
|
function RlsFieldPassword({ children, disabled, formControl, identifier, msgErrorDisabled, placeholder, rlsTheme }) {
|
|
1613
1742
|
const [password, setPassword] = useState(true);
|
|
1614
|
-
|
|
1615
|
-
setPassword(!password);
|
|
1616
|
-
}
|
|
1743
|
+
const onToggleInput = useCallback(() => {
|
|
1744
|
+
setPassword((password) => !password);
|
|
1745
|
+
}, []);
|
|
1617
1746
|
const _disabled = formControl?.disabled || disabled;
|
|
1618
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1747
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus(' rls-field-box', {
|
|
1619
1748
|
focused: formControl?.focused && !_disabled,
|
|
1620
1749
|
error: formControl?.wrong,
|
|
1621
1750
|
disabled: _disabled
|
|
@@ -1624,7 +1753,7 @@ function RlsFieldPassword({ children, disabled, formControl, identifier, msgErro
|
|
|
1624
1753
|
|
|
1625
1754
|
function RlsFieldText({ children, disabled, formControl, identifier, msgErrorDisabled, onValue, placeholder, rlsTheme, value }) {
|
|
1626
1755
|
const _disabled = formControl?.disabled || disabled;
|
|
1627
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1756
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-field-box', {
|
|
1628
1757
|
focused: formControl?.focused && !_disabled,
|
|
1629
1758
|
error: formControl?.wrong,
|
|
1630
1759
|
disabled: _disabled
|
|
@@ -1636,15 +1765,12 @@ function RlsLabelCheckBox({ children, disabled, extended, identifier, formContro
|
|
|
1636
1765
|
useEffect(() => {
|
|
1637
1766
|
setChecked(!!formControl?.value);
|
|
1638
1767
|
}, [formControl?.value]);
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
formControl?.setValue(!formControl.value)
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: renderClassStatus('rls-label-checkbox', {
|
|
1768
|
+
const onToggle = useCallback(() => {
|
|
1769
|
+
formControl
|
|
1770
|
+
? formControl?.setValue(!formControl.value)
|
|
1771
|
+
: setChecked((checked) => !checked);
|
|
1772
|
+
}, [formControl]);
|
|
1773
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-label-checkbox', {
|
|
1648
1774
|
disabled,
|
|
1649
1775
|
extended
|
|
1650
1776
|
}), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-checkbox__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsCheckBox, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-checkbox__text", children: children })] }));
|
|
@@ -1655,10 +1781,10 @@ function RlsLabelRadioButton({ children, disabled, extended, identifier, formCon
|
|
|
1655
1781
|
useEffect(() => {
|
|
1656
1782
|
setChecked(formControl?.value === value);
|
|
1657
1783
|
}, [formControl?.value]);
|
|
1658
|
-
|
|
1784
|
+
const onSelect = useCallback(() => {
|
|
1659
1785
|
formControl && formControl?.setValue(value);
|
|
1660
|
-
}
|
|
1661
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className:
|
|
1786
|
+
}, [formControl, value]);
|
|
1787
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-label-radiobutton', {
|
|
1662
1788
|
disabled,
|
|
1663
1789
|
extended
|
|
1664
1790
|
}), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-radiobutton__component", onClick: onSelect, children: jsxRuntimeExports.jsx(RlsRadioButton, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-radiobutton__text", children: children })] }));
|
|
@@ -1669,15 +1795,15 @@ function RlsLabelSwitch({ children, disabled, extended, identifier, formControl,
|
|
|
1669
1795
|
useEffect(() => {
|
|
1670
1796
|
setChecked(!!formControl?.value);
|
|
1671
1797
|
}, [formControl?.value]);
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
formControl?.setValue(!formControl.value)
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1798
|
+
const onToggle = useCallback(() => {
|
|
1799
|
+
formControl
|
|
1800
|
+
? formControl?.setValue(!formControl.value)
|
|
1801
|
+
: setChecked((checked) => !checked);
|
|
1802
|
+
}, [formControl]);
|
|
1803
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: useRenderClassStatus('rls-label-switch', {
|
|
1804
|
+
disabled,
|
|
1805
|
+
extended
|
|
1806
|
+
}), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-label-switch__component", onClick: onToggle, children: jsxRuntimeExports.jsx(RlsSwitch, { checked: checked, disabled: disabled }) }), jsxRuntimeExports.jsx("label", { className: "rls-label-switch__text", children: children })] }));
|
|
1681
1807
|
}
|
|
1682
1808
|
|
|
1683
1809
|
function RlsPagination({ suggestions, count, filter, onPagination }) {
|
|
@@ -1729,7 +1855,7 @@ function RlsPagination({ suggestions, count, filter, onPagination }) {
|
|
|
1729
1855
|
refreshPagination(controller.current.goLastPage());
|
|
1730
1856
|
}
|
|
1731
1857
|
return (jsxRuntimeExports.jsxs("div", { className: "rls-pagination", children: [jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goFirstPagination, disabled: template.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-left" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goPreviousPagination, disabled: template.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-left" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-pagination__pages", children: template.pages.map((page, index) => {
|
|
1732
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
1858
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-pagination__page', {
|
|
1733
1859
|
active: page.active
|
|
1734
1860
|
}), onClick: () => {
|
|
1735
1861
|
goToPagination(page);
|
|
@@ -1963,7 +2089,7 @@ function RlsToolbar({ actions, children, subtitle }) {
|
|
|
1963
2089
|
}
|
|
1964
2090
|
|
|
1965
2091
|
function RlsCard({ children, outline, rlsTheme }) {
|
|
1966
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
2092
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-card', { outline }), "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-card__content", children: children }) }));
|
|
1967
2093
|
}
|
|
1968
2094
|
|
|
1969
2095
|
const reactI18n = i18n({
|
|
@@ -1996,7 +2122,7 @@ class ConfirmationResult extends PartialSealed {
|
|
|
1996
2122
|
}
|
|
1997
2123
|
}
|
|
1998
2124
|
function RlsConfirmation({ approved, content, reject, rlsTheme, subtitle, title, visible }) {
|
|
1999
|
-
return (jsxRuntimeExports.jsxs("div", { className:
|
|
2125
|
+
return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-confirmation', { visible }), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__header", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-confirmation__title", children: title }), subtitle && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__subtitle", children: subtitle }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__body", children: content && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__message", children: content })) }), (approved || reject) && (jsxRuntimeExports.jsx("div", { className: "rls-confirmation__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-confirmation__actions", children: [approved && (jsxRuntimeExports.jsx(RlsButton, { identifier: approved.identifier, type: "raised", onClick: approved.onClick, children: approved.label })), reject && (jsxRuntimeExports.jsx(RlsButton, { identifier: reject.identifier, type: "outline", onClick: reject.onClick, children: reject.label }))] }) }))] }), jsxRuntimeExports.jsx("div", { className: "rls-confirmation__backdrop" })] }));
|
|
2000
2126
|
}
|
|
2001
2127
|
function useConfirmationService() {
|
|
2002
2128
|
const [config, setConfig] = useState({});
|
|
@@ -2042,162 +2168,26 @@ function RlsDatatableHeader({ children, identifier }) {
|
|
|
2042
2168
|
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: "rls-datatable__header", children: children }));
|
|
2043
2169
|
}
|
|
2044
2170
|
function RlsDatatableTitle({ children, className, control, identifier }) {
|
|
2045
|
-
return (jsxRuntimeExports.jsx("th", { id: identifier, className:
|
|
2171
|
+
return (jsxRuntimeExports.jsx("th", { id: identifier, className: useRenderClassStatus('rls-datatable__title', { control }, className).trim(), children: children }));
|
|
2046
2172
|
}
|
|
2047
2173
|
function RlsDatatableRecord({ children, className, error, identifier, info, successs, warning }) {
|
|
2048
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className:
|
|
2174
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: useRenderClassStatus('rls-datatable__record', { error, info, successs, warning }, className).trim(), children: children }));
|
|
2049
2175
|
}
|
|
2050
2176
|
function RlsDatatableTotals({ children, className, error, identifier, info, successs, warning }) {
|
|
2051
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className:
|
|
2177
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-datatable__totals', { error, info, successs, warning }, className).trim(), children: children }));
|
|
2052
2178
|
}
|
|
2053
2179
|
function RlsDatatableCell({ children, className, control, identifier, overflow }) {
|
|
2054
|
-
return (jsxRuntimeExports.jsx("th", { id: identifier, className:
|
|
2180
|
+
return (jsxRuntimeExports.jsx("th", { id: identifier, className: useRenderClassStatus('rls-datatable__cell', { control, overflow }, className).trim(), children: children }));
|
|
2055
2181
|
}
|
|
2056
2182
|
function RlsDatatableData({ children, className, control, identifier, overflow }) {
|
|
2057
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className:
|
|
2183
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-datatable__data', { control, overflow }, className).trim(), children: children }));
|
|
2058
2184
|
}
|
|
2059
2185
|
function RlsDatatable({ children, datatable, footer, header, identifier, rlsTheme, summary }) {
|
|
2060
|
-
return (jsxRuntimeExports.jsxs("div", { className:
|
|
2186
|
+
return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-datatable', {
|
|
2061
2187
|
scrolleable: datatable?.scrolleable
|
|
2062
2188
|
}), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("table", { id: identifier, children: [header && jsxRuntimeExports.jsx("thead", { className: "rls-datatable__thead", children: header }), jsxRuntimeExports.jsx("tbody", { ref: datatable?.tableRef, className: "rls-datatable__tbody", children: children })] }), summary && jsxRuntimeExports.jsx("div", { className: "rls-datatable__tsummary", children: summary }), footer && jsxRuntimeExports.jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));
|
|
2063
2189
|
}
|
|
2064
2190
|
|
|
2065
|
-
function createObserver(options) {
|
|
2066
|
-
const { setScrolleable, table } = options;
|
|
2067
|
-
const observer = new ResizeObserver(() => {
|
|
2068
|
-
const scrollHeight = table.scrollHeight || 0;
|
|
2069
|
-
const clientHeight = table.clientHeight || 0;
|
|
2070
|
-
setScrolleable(scrollHeight > clientHeight);
|
|
2071
|
-
});
|
|
2072
|
-
observer.observe(table);
|
|
2073
|
-
return observer;
|
|
2074
|
-
}
|
|
2075
|
-
function useDatatable() {
|
|
2076
|
-
const [scrolleable, setScrolleable] = useState(false);
|
|
2077
|
-
const tableRef = useRef(null);
|
|
2078
|
-
useEffect(() => {
|
|
2079
|
-
const observer = tableRef?.current &&
|
|
2080
|
-
createObserver({ setScrolleable, table: tableRef?.current });
|
|
2081
|
-
return () => {
|
|
2082
|
-
observer?.disconnect();
|
|
2083
|
-
};
|
|
2084
|
-
}, []);
|
|
2085
|
-
return { scrolleable, tableRef };
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
function useListController(props) {
|
|
2089
|
-
const { suggestions, automatic, formControl, value } = props;
|
|
2090
|
-
const listIsOpen = useRef(false);
|
|
2091
|
-
const contentRef = useRef(null);
|
|
2092
|
-
const listRef = useRef(null);
|
|
2093
|
-
const inputRef = useRef(null);
|
|
2094
|
-
const [state, setState] = useState({
|
|
2095
|
-
focused: false,
|
|
2096
|
-
higher: false,
|
|
2097
|
-
value: '',
|
|
2098
|
-
modalIsVisible: false
|
|
2099
|
-
});
|
|
2100
|
-
const collection = useRef(new ListCollection([]));
|
|
2101
|
-
const position = useRef(0);
|
|
2102
|
-
const _protected = useRef();
|
|
2103
|
-
useEffect(() => {
|
|
2104
|
-
function onCloseSuggestions({ target }) {
|
|
2105
|
-
!contentRef?.current?.contains(target) &&
|
|
2106
|
-
setState((state) => ({ ...state, modalIsVisible: false }));
|
|
2107
|
-
}
|
|
2108
|
-
document.addEventListener('click', onCloseSuggestions);
|
|
2109
|
-
return () => {
|
|
2110
|
-
document.removeEventListener('click', onCloseSuggestions);
|
|
2111
|
-
};
|
|
2112
|
-
}, []);
|
|
2113
|
-
useEffect(() => {
|
|
2114
|
-
if (!listIsOpen.current && state.modalIsVisible) {
|
|
2115
|
-
listIsOpen.current = true;
|
|
2116
|
-
}
|
|
2117
|
-
if (listIsOpen.current && !state.modalIsVisible) {
|
|
2118
|
-
formControl?.touch();
|
|
2119
|
-
}
|
|
2120
|
-
setState((state) => ({
|
|
2121
|
-
...state,
|
|
2122
|
-
higher: locationListCanTop(contentRef.current, listRef.current)
|
|
2123
|
-
}));
|
|
2124
|
-
}, [state.modalIsVisible]);
|
|
2125
|
-
useEffect(() => {
|
|
2126
|
-
collection.current = new ListCollection(suggestions);
|
|
2127
|
-
refresh(collection.current, formControl?.value, automatic);
|
|
2128
|
-
}, [suggestions]);
|
|
2129
|
-
useEffect(() => {
|
|
2130
|
-
refresh(collection.current, formControl?.value);
|
|
2131
|
-
}, [formControl?.value]);
|
|
2132
|
-
function refresh(collection, state, automatic) {
|
|
2133
|
-
if (!state) {
|
|
2134
|
-
!refreshWithProtected(collection, automatic) &&
|
|
2135
|
-
refreshState({ value: '' });
|
|
2136
|
-
return undefined;
|
|
2137
|
-
}
|
|
2138
|
-
const element = collection.find(state);
|
|
2139
|
-
if (element) {
|
|
2140
|
-
_protected.current = undefined;
|
|
2141
|
-
return refreshState({ value: element.description });
|
|
2142
|
-
}
|
|
2143
|
-
if (!refreshWithProtected(collection, automatic)) {
|
|
2144
|
-
_protected.current = state;
|
|
2145
|
-
setFormValue(value);
|
|
2146
|
-
refreshState({ value: '' });
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
function refreshWithProtected(collection, automatic) {
|
|
2150
|
-
if (automatic && collection.value[0]) {
|
|
2151
|
-
formControl?.setInitialValue(collection.value[0].value);
|
|
2152
|
-
return true;
|
|
2153
|
-
}
|
|
2154
|
-
if (_protected.current) {
|
|
2155
|
-
const element = collection.find(_protected.current);
|
|
2156
|
-
if (element) {
|
|
2157
|
-
formControl?.setValue(_protected.current);
|
|
2158
|
-
_protected.current = undefined;
|
|
2159
|
-
return true;
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
return false;
|
|
2163
|
-
}
|
|
2164
|
-
function refreshState(state) {
|
|
2165
|
-
setState((currentState) => ({ ...currentState, ...state }));
|
|
2166
|
-
}
|
|
2167
|
-
const setFormValue = useCallback((value) => {
|
|
2168
|
-
formControl?.setValue(value);
|
|
2169
|
-
}, [formControl]);
|
|
2170
|
-
function navigationInput(event) {
|
|
2171
|
-
if (state.modalIsVisible) {
|
|
2172
|
-
const newPosition = navigationListFromInput({
|
|
2173
|
-
content: contentRef.current,
|
|
2174
|
-
event: event,
|
|
2175
|
-
list: listRef.current
|
|
2176
|
-
});
|
|
2177
|
-
position.current = newPosition ?? 0;
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
function navigationElement(event) {
|
|
2181
|
-
position.current = navigationListFromElement({
|
|
2182
|
-
content: contentRef.current,
|
|
2183
|
-
event: event,
|
|
2184
|
-
input: inputRef.current,
|
|
2185
|
-
list: listRef.current,
|
|
2186
|
-
position: position.current
|
|
2187
|
-
});
|
|
2188
|
-
}
|
|
2189
|
-
return {
|
|
2190
|
-
...state,
|
|
2191
|
-
contentRef,
|
|
2192
|
-
inputRef,
|
|
2193
|
-
listRef,
|
|
2194
|
-
navigationElement,
|
|
2195
|
-
navigationInput,
|
|
2196
|
-
setFormValue,
|
|
2197
|
-
setState: refreshState
|
|
2198
|
-
};
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
2191
|
const DURATION_ANIMATION$1 = 240;
|
|
2202
2192
|
const MAX_ELEMENTS = 6;
|
|
2203
2193
|
function useFieldAutocomplete(props) {
|
|
@@ -2240,8 +2230,8 @@ function useFieldAutocomplete(props) {
|
|
|
2240
2230
|
}
|
|
2241
2231
|
function onClickAction() {
|
|
2242
2232
|
if (controller.value) {
|
|
2243
|
-
controller.setState({ modalIsVisible: false
|
|
2244
|
-
controller.setFormValue(
|
|
2233
|
+
controller.setState({ modalIsVisible: false });
|
|
2234
|
+
controller.setFormValue(undefined);
|
|
2245
2235
|
props.onValue && props.onValue(props.value);
|
|
2246
2236
|
}
|
|
2247
2237
|
else {
|
|
@@ -2263,17 +2253,17 @@ function useFieldAutocomplete(props) {
|
|
|
2263
2253
|
: controller.navigationElement(event);
|
|
2264
2254
|
};
|
|
2265
2255
|
}
|
|
2266
|
-
function onChange(
|
|
2256
|
+
function onChange(element) {
|
|
2267
2257
|
const { onSelect, onValue } = props;
|
|
2268
2258
|
if (onSelect) {
|
|
2269
2259
|
controller.setState({ modalIsVisible: false });
|
|
2270
|
-
value && onSelect(value);
|
|
2260
|
+
element.value && onSelect(element.value);
|
|
2271
2261
|
}
|
|
2272
2262
|
else {
|
|
2273
|
-
controller.setState({ modalIsVisible: false
|
|
2274
|
-
controller.setFormValue(
|
|
2263
|
+
controller.setState({ modalIsVisible: false });
|
|
2264
|
+
controller.setFormValue(element);
|
|
2275
2265
|
}
|
|
2276
|
-
onValue && onValue(value);
|
|
2266
|
+
onValue && onValue(element.value);
|
|
2277
2267
|
}
|
|
2278
2268
|
function refreshCoincidences(pattern, reboot = false) {
|
|
2279
2269
|
const { collection, store } = createAutocompleteStore({
|
|
@@ -2286,8 +2276,8 @@ function useFieldAutocomplete(props) {
|
|
|
2286
2276
|
setCoincidences(collection.slice(0, MAX_ELEMENTS));
|
|
2287
2277
|
}
|
|
2288
2278
|
return {
|
|
2279
|
+
...controller,
|
|
2289
2280
|
coincidences,
|
|
2290
|
-
controller,
|
|
2291
2281
|
onBlurInput,
|
|
2292
2282
|
onClickAction,
|
|
2293
2283
|
onClickBackdrop,
|
|
@@ -2303,20 +2293,19 @@ function useFieldAutocomplete(props) {
|
|
|
2303
2293
|
|
|
2304
2294
|
function RlsFieldAutocompleteTemplate(props) {
|
|
2305
2295
|
const autocomplete = useFieldAutocomplete(props);
|
|
2306
|
-
const { controller } = autocomplete;
|
|
2307
2296
|
const { render, children, formControl, msgErrorDisabled, onSearch, placeholder, rlsTheme, searching } = props;
|
|
2308
2297
|
const _disabled = formControl?.disabled || props.disabled;
|
|
2309
|
-
const className =
|
|
2310
|
-
focused:
|
|
2298
|
+
const className = useRenderClassStatus('rls-field-box', {
|
|
2299
|
+
focused: autocomplete.focused && !_disabled,
|
|
2311
2300
|
error: formControl?.wrong,
|
|
2312
2301
|
disabled: _disabled,
|
|
2313
|
-
selected: !!
|
|
2302
|
+
selected: !!autocomplete.value
|
|
2314
2303
|
}, 'rls-field-list rls-field-autocomplete');
|
|
2315
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref:
|
|
2316
|
-
visible:
|
|
2317
|
-
higher:
|
|
2318
|
-
hide: !
|
|
2319
|
-
}), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref:
|
|
2304
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: autocomplete.value, onClick: autocomplete.onClickControl }), jsxRuntimeExports.jsx("button", { className: "rls-field-list__action", disabled: _disabled, onClick: autocomplete.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: autocomplete.value ? 'trash-2' : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-field-list__suggestions', {
|
|
2305
|
+
visible: autocomplete.modalIsVisible,
|
|
2306
|
+
higher: autocomplete.higher,
|
|
2307
|
+
hide: !autocomplete.modalIsVisible
|
|
2308
|
+
}), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: autocomplete.listRef, className: "rls-field-list__ul", children: [jsxRuntimeExports.jsxs("div", { className: "rls-field-list__ul__search", children: [jsxRuntimeExports.jsx("input", { ref: autocomplete.inputRef, className: "rls-field-list__ul__control", type: "text", placeholder: reactI18n('listInputPlaceholder'), value: autocomplete.pattern, onChange: (event) => {
|
|
2320
2309
|
autocomplete.setPattern(event.target.value);
|
|
2321
2310
|
}, disabled: _disabled || searching, onFocus: autocomplete.onFocusInput, onBlur: autocomplete.onBlurInput, onKeyDown: autocomplete.onKeydownInput }), onSearch && (jsxRuntimeExports.jsx("button", { disabled: _disabled || searching, onClick: () => {
|
|
2322
2311
|
onSearch(autocomplete.pattern);
|
|
@@ -2327,7 +2316,7 @@ function RlsFieldAutocomplete(props) {
|
|
|
2327
2316
|
}
|
|
2328
2317
|
|
|
2329
2318
|
function RlsModal({ children, overflow, visible, rlsTheme }) {
|
|
2330
|
-
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className:
|
|
2319
|
+
return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-modal', { overflow, visible }), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop" })] }), document.body);
|
|
2331
2320
|
}
|
|
2332
2321
|
|
|
2333
2322
|
const FORMAT_TITLE = '{dw}, {mx} {dd} de {aa}';
|
|
@@ -2383,7 +2372,7 @@ function RlsPickerDate({ automatic, date, disabled, formControl, maxDate, minDat
|
|
|
2383
2372
|
formControl?.setValue(value);
|
|
2384
2373
|
onListener && onListener({ event: PickerListenerEvent.Select, value });
|
|
2385
2374
|
}
|
|
2386
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title rls-picker-date__title--description", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: dateFormatTemplate(dateInitial, FORMAT_TITLE) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title rls-picker-date__title--year", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityYear, children: yearControl.value }) }), jsxRuntimeExports.jsx(RlsPickerMonthTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityMonth })] }), jsxRuntimeExports.jsxs("div", { className:
|
|
2375
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title rls-picker-date__title--description", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: dateFormatTemplate(dateInitial, FORMAT_TITLE) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title rls-picker-date__title--year", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityYear, children: yearControl.value }) }), jsxRuntimeExports.jsx(RlsPickerMonthTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityMonth })] }), jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-picker-date__component', {
|
|
2387
2376
|
day: visibility === 'DAY',
|
|
2388
2377
|
month: visibility === 'MONTH',
|
|
2389
2378
|
year: visibility === 'YEAR'
|
|
@@ -2425,7 +2414,7 @@ function RlsFieldDate({ children, date, disabled, formControl, format, identifie
|
|
|
2425
2414
|
? dateFormatTemplate(value, format || FORMAT_DATE)
|
|
2426
2415
|
: '';
|
|
2427
2416
|
const _disabled = formControl?.disabled || disabled;
|
|
2428
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className:
|
|
2417
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-field-box', { disabled: _disabled }), children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date__control", type: "text", value: valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: _disabled }), jsxRuntimeExports.jsx("button", { className: "rls-field-date__action", onClick: onClickAction, disabled: disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: value ? 'trash-2' : 'calendar' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModal, { visible: modalIsVisible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDate, { formControl: formControl, date: date, disabled: _disabled, maxDate: maxDate, minDate: minDate, onListener: ({ event, value }) => {
|
|
2429
2418
|
event !== PickerListenerEvent.Cancel && onChange(value);
|
|
2430
2419
|
formControl?.touch();
|
|
2431
2420
|
setModalIsVisible(false);
|
|
@@ -2475,11 +2464,11 @@ function RlsPickerDateRange({ automatic, date: datePicker, disabled, formControl
|
|
|
2475
2464
|
formControl?.setValue(value);
|
|
2476
2465
|
onListener && onListener({ event: PickerListenerEvent.Select, value });
|
|
2477
2466
|
}
|
|
2478
|
-
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("div", { className: "rls-picker-date-range__title rls-picker-date-range__title--description", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: rangeFormatTemplate(value) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title rls-picker-date-range__title--year", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityYear, children: yearControl.value }) }), jsxRuntimeExports.jsx(RlsPickerMonthTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityMonth })] }), jsxRuntimeExports.jsxs("div", { className:
|
|
2467
|
+
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("div", { className: "rls-picker-date-range__title rls-picker-date-range__title--description", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: rangeFormatTemplate(value) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__title rls-picker-date-range__title--year", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityYear, children: yearControl.value }) }), jsxRuntimeExports.jsx(RlsPickerMonthTitle, { monthControl: monthControl, yearControl: yearControl, date: date, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: visibility === 'MONTH' ? 'year' : 'month', onClick: onVisibilityMonth })] }), jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-picker-date-range__component', {
|
|
2479
2468
|
day: visibility === 'DAY',
|
|
2480
2469
|
month: visibility === 'MONTH',
|
|
2481
2470
|
year: visibility === 'YEAR'
|
|
2482
|
-
}), children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: dayControl, 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:
|
|
2471
|
+
}), children: [jsxRuntimeExports.jsx(RlsPickerDayRange, { formControl: dayControl, 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: useRenderClassStatus('rls-picker-date-range__footer', {
|
|
2483
2472
|
automatic
|
|
2484
2473
|
}), 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: "ghost", onClick: onCancel, children: reactI18n('dateActionCancel') }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date-range__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "raised", onClick: onSelect, children: reactI18n('dateActionSelect') }) })] }) })] }));
|
|
2485
2474
|
}
|
|
@@ -2506,7 +2495,9 @@ function RlsFieldDateRange({ children, date: datePicker, disabled, formControl,
|
|
|
2506
2495
|
onValue && onValue(value);
|
|
2507
2496
|
}
|
|
2508
2497
|
const _disabled = formControl?.disabled || disabled;
|
|
2509
|
-
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className:
|
|
2498
|
+
return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date-range", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-field-box', {
|
|
2499
|
+
disabled: _disabled
|
|
2500
|
+
}), children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date-range__control", type: "text", value: value ? rangeFormatTemplate(value) : '', readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: _disabled }), jsxRuntimeExports.jsx("button", { className: "rls-field-date-range__action", onClick: onClickAction, disabled: _disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: value ? 'trash-2' : 'calendar' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModal, { visible: modalIsVisible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerDateRange, { formControl: formControl, date: currentDate, disabled: _disabled, maxDate: maxDate, minDate: minDate, onListener: ({ event, value }) => {
|
|
2510
2501
|
event !== PickerListenerEvent.Cancel && onChange(value);
|
|
2511
2502
|
formControl?.touch();
|
|
2512
2503
|
setModalIsVisible(false);
|
|
@@ -2542,8 +2533,8 @@ function useFieldSelect(props) {
|
|
|
2542
2533
|
function onClickAction() {
|
|
2543
2534
|
const removable = !props.unremovable && !!controller.value;
|
|
2544
2535
|
if (removable) {
|
|
2545
|
-
controller.setState({ modalIsVisible: false
|
|
2546
|
-
controller.setFormValue(
|
|
2536
|
+
controller.setState({ modalIsVisible: false });
|
|
2537
|
+
controller.setFormValue(undefined);
|
|
2547
2538
|
props.onValue && props.onValue(props.value);
|
|
2548
2539
|
}
|
|
2549
2540
|
else {
|
|
@@ -2567,21 +2558,21 @@ function useFieldSelect(props) {
|
|
|
2567
2558
|
: controller.navigationElement(event);
|
|
2568
2559
|
};
|
|
2569
2560
|
}
|
|
2570
|
-
function onChange(
|
|
2561
|
+
function onChange(element) {
|
|
2571
2562
|
const { onSelect, onValue } = props;
|
|
2572
2563
|
controller.inputRef?.current?.focus();
|
|
2573
2564
|
if (onSelect) {
|
|
2574
2565
|
controller.setState({ modalIsVisible: false });
|
|
2575
|
-
value && onSelect(value);
|
|
2566
|
+
element.value && onSelect(element.value);
|
|
2576
2567
|
}
|
|
2577
2568
|
else {
|
|
2578
|
-
controller.setFormValue(
|
|
2579
|
-
controller.setState({ modalIsVisible: false
|
|
2569
|
+
controller.setFormValue(element);
|
|
2570
|
+
controller.setState({ modalIsVisible: false });
|
|
2580
2571
|
}
|
|
2581
|
-
onValue && onValue(value);
|
|
2572
|
+
onValue && onValue(element.value);
|
|
2582
2573
|
}
|
|
2583
2574
|
return {
|
|
2584
|
-
controller,
|
|
2575
|
+
...controller,
|
|
2585
2576
|
onBlurInput,
|
|
2586
2577
|
onClickAction,
|
|
2587
2578
|
onClickBackdrop,
|
|
@@ -2595,26 +2586,25 @@ function useFieldSelect(props) {
|
|
|
2595
2586
|
|
|
2596
2587
|
function RlsFieldSelectTemplate(props) {
|
|
2597
2588
|
const select = useFieldSelect(props);
|
|
2598
|
-
const { controller } = select;
|
|
2599
2589
|
const { render, suggestions, children, formControl, msgErrorDisabled, placeholder, rlsTheme, unremovable } = props;
|
|
2600
2590
|
const _disabled = formControl?.disabled || props.disabled;
|
|
2601
|
-
const className =
|
|
2602
|
-
focused:
|
|
2591
|
+
const className = useRenderClassStatus('rls-field-box', {
|
|
2592
|
+
focused: select.focused && !_disabled,
|
|
2603
2593
|
error: formControl?.wrong,
|
|
2604
2594
|
disabled: _disabled
|
|
2605
2595
|
}, 'rls-field-list rls-field-select');
|
|
2606
|
-
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref:
|
|
2607
|
-
visible:
|
|
2608
|
-
higher:
|
|
2609
|
-
hide: !
|
|
2610
|
-
}), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref:
|
|
2596
|
+
return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { ref: select.inputRef, className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: select.value, onFocus: select.onFocusInput, onBlur: select.onBlurInput, onClick: select.onClickInput, onKeyDown: select.onKeydownInput }), jsxRuntimeExports.jsx("button", { className: 'rls-field-list__action', disabled: _disabled, onClick: select.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: !unremovable && !!select.value ? 'close' : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-field-list__suggestions', {
|
|
2597
|
+
visible: select.modalIsVisible,
|
|
2598
|
+
higher: select.higher,
|
|
2599
|
+
hide: !select.modalIsVisible
|
|
2600
|
+
}), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: select.listRef, className: "rls-field-list__ul", children: [suggestions.map((element, index) => (jsxRuntimeExports.jsx("li", { className: "rls-field-list__element", tabIndex: -1, onClick: select.onClickElement(element), onKeyDown: select.onKeydownElement(element), children: render(element) }, index))), !suggestions.length && (jsxRuntimeExports.jsx("li", { className: "rls-field-list__empty", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-list__empty__description", children: [jsxRuntimeExports.jsx("label", { className: "rls-label-bold truncate", children: reactI18n('listEmptyTitle') }), jsxRuntimeExports.jsx("p", { className: "rls-caption-regular", children: reactI18n('listEmptyDescription') })] }) }))] }) }), jsxRuntimeExports.jsx("div", { className: "rls-field-list__backdrop", onClick: select.onClickBackdrop })] })] }));
|
|
2611
2601
|
}
|
|
2612
2602
|
function RlsFieldSelect(props) {
|
|
2613
2603
|
return (jsxRuntimeExports.jsx(RlsFieldSelectTemplate, { ...props, render: (element) => (jsxRuntimeExports.jsx(RlsBallot, { subtitle: element.subtitle, img: element.img, initials: element.initials, children: jsxRuntimeExports.jsx("span", { children: element.title }) })) }));
|
|
2614
2604
|
}
|
|
2615
2605
|
|
|
2616
2606
|
function RlsFormNavigation({ children, visible, rlsTheme }) {
|
|
2617
|
-
return (jsxRuntimeExports.jsx("div", { className:
|
|
2607
|
+
return (jsxRuntimeExports.jsx("div", { className: useRenderClassStatus('rls-form-navigation', { visible }), "rls-theme": rlsTheme, children: jsxRuntimeExports.jsx("div", { className: "rls-form-navigation__body", children: children }) }));
|
|
2618
2608
|
}
|
|
2619
2609
|
|
|
2620
2610
|
const DURATION_ANIMATION = 240;
|
|
@@ -2633,7 +2623,7 @@ function calculateDuration({ length }) {
|
|
|
2633
2623
|
return duration + DURATION_RESET;
|
|
2634
2624
|
}
|
|
2635
2625
|
function RlsSnackbar({ content, icon, title, visible, rlsTheme }) {
|
|
2636
|
-
return (jsxRuntimeExports.jsxs("div", { className:
|
|
2626
|
+
return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-snackbar', { visible }), "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-snackbar__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__component", children: [title && jsxRuntimeExports.jsx("div", { className: "rls-snackbar__title", children: title }), jsxRuntimeExports.jsx("div", { className: "rls-snackbar__content", children: content })] })] }));
|
|
2637
2627
|
}
|
|
2638
2628
|
function useSnackbarService() {
|
|
2639
2629
|
const [config, setConfig] = useState({});
|
|
@@ -2682,5 +2672,5 @@ function RlsApplication({ children }) {
|
|
|
2682
2672
|
}), children: [children, RlsSnackbar] }), RlsConfirmation] }));
|
|
2683
2673
|
}
|
|
2684
2674
|
|
|
2685
|
-
export { ConfirmationResult, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldDate, RlsFieldDateRange, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsPagination, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerMonthTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsTabularText, RlsToolbar, rangeFormatTemplate, renderClassStatus, useConfirmationService, useDatatable, useListController, useSnackbarService };
|
|
2675
|
+
export { ConfirmationResult, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldDate, RlsFieldDateRange, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsPagination, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerMonthTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsTabularText, RlsToolbar, rangeFormatTemplate, renderClassStatus, useConfirmationService, useDatatable, useListController, useRenderClassStatus, useSnackbarService };
|
|
2686
2676
|
//# sourceMappingURL=index.js.map
|