techsbcn-storybook 0.12.7 → 0.13.0
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/components/fields/SelectFieldComponent/SelectAsyncField.d.ts +3 -3
- package/dist/components/fields/SelectFieldComponent/SelectField.d.ts +2 -2
- package/dist/components/tables/SimpleTableComponent/SimpleTableComponent.d.ts +2 -1
- package/dist/components/tables/TableComponent/TableComponent.d.ts +1 -0
- package/dist/data/enums/ActiveStatus.d.ts +2 -2
- package/dist/interfaces/search/SearchFilters.d.ts +1 -0
- package/dist/techsbcn-storybook.cjs.development.js +205 -26
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +205 -26
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/fields/SelectFieldComponent/SelectAsyncField.tsx +3 -3
- package/src/components/fields/SelectFieldComponent/SelectField.tsx +2 -2
- package/src/components/forms/ChangePasswordForm.tsx +18 -0
- package/src/components/forms/LoginForm.tsx +18 -0
- package/src/components/forms/ResetPasswordForm.tsx +12 -0
- package/src/components/tables/SearchComponent/SearchComponent.tsx +22 -20
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.scss +6 -3
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.tsx +14 -10
- package/src/components/tables/TableComponent/TableComponent.scss +9 -3
- package/src/components/tables/TableComponent/TableComponent.tsx +11 -7
- package/src/components/wrappers/LinearProgressComponent/LinearProgressComponent.scss +1 -1
- package/src/components/wrappers/LinearProgressComponent/LinearProgressComponent.tsx +2 -2
- package/src/data/SelectMock.tsx +1 -1
- package/src/data/Values.tsx +4 -4
- package/src/data/enums/ActiveStatus.tsx +2 -2
- package/src/interfaces/search/SearchFilters.tsx +8 -0
- package/src/stories/Tables/Tables.stories.tsx +10 -11
- package/src/styles/Globals.scss +0 -3
|
@@ -8,9 +8,9 @@ interface SelectAsyncFieldProps {
|
|
|
8
8
|
isMulti?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
onChange?: (value:
|
|
12
|
-
onChangeValue?: (value:
|
|
13
|
-
onChangeOption?: (value:
|
|
11
|
+
onChange?: (value: any, name: string) => void;
|
|
12
|
+
onChangeValue?: (value: any) => void;
|
|
13
|
+
onChangeOption?: (value: any, label: string) => void;
|
|
14
14
|
searchPromise: (filters: SearchFilters) => Promise<any>;
|
|
15
15
|
invalid?: boolean;
|
|
16
16
|
isClearable?: boolean;
|
|
@@ -8,8 +8,8 @@ interface SelectFieldProps {
|
|
|
8
8
|
isMulti?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
onChange?: (value:
|
|
12
|
-
onChangeValue?: (value:
|
|
11
|
+
onChange?: (value: any, name: string) => void;
|
|
12
|
+
onChangeValue?: (value: any) => void;
|
|
13
13
|
invalid?: boolean;
|
|
14
14
|
isClearable?: boolean;
|
|
15
15
|
helperText?: string;
|
|
@@ -13,8 +13,9 @@ interface SimpleTableComponentProps {
|
|
|
13
13
|
};
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
onClickRow?: (id: number) => void;
|
|
16
|
+
onClickRowData?: (row: any) => void;
|
|
16
17
|
isCheckTable?: {
|
|
17
|
-
|
|
18
|
+
noCheckAllItems?: boolean;
|
|
18
19
|
rowsChecked?: number[];
|
|
19
20
|
onCheckedAction?: (ids: number[]) => void;
|
|
20
21
|
onCheckedSingleAction?: (id: number) => void;
|
|
@@ -16,6 +16,7 @@ interface TableComponentProps {
|
|
|
16
16
|
baseFilters: SearchFilters;
|
|
17
17
|
onFiltersChange?: (filters: SearchFilters) => void;
|
|
18
18
|
onClickRow?: (id: number) => void;
|
|
19
|
+
onClickRowData?: (row: any) => void;
|
|
19
20
|
isCheckTable?: {
|
|
20
21
|
rowsChecked?: number[];
|
|
21
22
|
onCheckedAction?: (ids: number[]) => void;
|
|
@@ -136,7 +136,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
136
136
|
}, React__default.createElement(material.Grid, {
|
|
137
137
|
item: true,
|
|
138
138
|
xs: props.actions ? 6 : 12,
|
|
139
|
-
md: 4
|
|
139
|
+
md: props.searchBar ? 4 : props.actions ? 6 : 12
|
|
140
140
|
}, React__default.createElement(material.Box, {
|
|
141
141
|
px: 1,
|
|
142
142
|
className: (props.enableAfter ? 'main-background-color-after' : '') + " title"
|
|
@@ -191,10 +191,10 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
191
191
|
}))) : React__default.createElement(material.Box, {
|
|
192
192
|
ml: "auto",
|
|
193
193
|
className: "wrapper-actions"
|
|
194
|
-
}, ActionsList(props.actions)))), React__default.createElement(material.Grid, {
|
|
194
|
+
}, ActionsList(props.actions)))), (props.searchBar || props.filters || props.actions) && React__default.createElement(material.Grid, {
|
|
195
195
|
item: true,
|
|
196
196
|
xs: 12,
|
|
197
|
-
md: props.actions ? 8 : 7
|
|
197
|
+
md: props.actions && props.searchBar ? 8 : props.actions ? 6 : 7
|
|
198
198
|
}, React__default.createElement(material.Box, {
|
|
199
199
|
display: "flex",
|
|
200
200
|
alignItems: "center"
|
|
@@ -240,15 +240,19 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
240
240
|
})))));
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
var css_248z$2 = ".linear-progress-component {\n position: relative;\n height: 4px;\n z-index: 0;\n overflow: hidden;\n}\n.linear-progress-component .MuiLinearProgress-root {\n background-color: transparent !important;\n}\n.linear-progress-component .linear-progress-main-color
|
|
243
|
+
var css_248z$2 = ".linear-progress-component {\n position: relative;\n height: 4px;\n z-index: 0;\n overflow: hidden;\n}\n.linear-progress-component .MuiLinearProgress-root {\n background-color: transparent !important;\n}\n.linear-progress-component .linear-progress-main-color {\n position: absolute;\n left: 0;\n bottom: 0;\n top: 0;\n width: 100%;\n filter: blur(8px);\n}";
|
|
244
244
|
styleInject(css_248z$2);
|
|
245
245
|
|
|
246
246
|
var LinearProgressComponent = function LinearProgressComponent() {
|
|
247
247
|
return React__default.createElement(material.Box, {
|
|
248
248
|
className: "linear-progress-component"
|
|
249
249
|
}, React__default.createElement(material.Box, {
|
|
250
|
-
className: "linear-progress-main-color
|
|
251
|
-
}), React__default.createElement(material.LinearProgress,
|
|
250
|
+
className: "linear-progress-main-color main-background-color"
|
|
251
|
+
}), React__default.createElement(material.LinearProgress, {
|
|
252
|
+
classes: {
|
|
253
|
+
bar: 'main-background-color'
|
|
254
|
+
}
|
|
255
|
+
}));
|
|
252
256
|
};
|
|
253
257
|
|
|
254
258
|
var css_248z$3 = ".main-wrapper-component {\n background-color: white;\n box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);\n}\n.main-wrapper-component .main-background-color-after {\n position: relative;\n}\n.main-wrapper-component .main-background-color-after:after {\n content: \"\";\n position: absolute;\n left: -17px;\n top: -4px;\n width: 4px;\n height: 30px;\n}\n.main-wrapper-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.main-wrapper-component .wrapper-actions .btn-action .MuiButton-root {\n width: max-content;\n}\n.main-wrapper-component .wrapper-actions .btn-action svg {\n font-size: 40px;\n}";
|
|
@@ -284,7 +288,7 @@ var MainWrapperComponent = function MainWrapperComponent(props) {
|
|
|
284
288
|
})) : React__default.createElement(React__default.Fragment, null))));
|
|
285
289
|
};
|
|
286
290
|
|
|
287
|
-
var css_248z$4 = ".table-component .paper-container {\n box-shadow: none;\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root {\n padding: 0 !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root:hover {\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .Mui-checked {\n color: rgba(0, 0, 0, 0.54) !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-indeterminate {\n color: #212529 !important;\n}\n.table-component .paper-container .table-container {\n max-height: 68vh;\n border-bottom: 1px solid black;\n}\n.table-component .paper-container .table-container .table-column:first-child {\n border-radius: 5px 0 0 5px;\n}\n.table-component .paper-container .table-container .table-column:last-child {\n border-right: none !important;\n border-radius: 0 5px 5px 0;\n}\n.table-component .paper-container .table-container .table-column {\n font-weight: bold;\n font-size: 1rem !important;\n padding: 10px !important;\n border-top: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n border-bottom: 2px solid #e0e0e0;\n}\n.table-component .paper-container .table-container .table-column .table-header-cell {\n color: black;\n padding: 0px 10px 0px 10px !important;\n}\n.table-component .paper-container .table-container .table-rows.row-click {\n cursor: pointer;\n}\n.table-component .paper-container .table-container .table-rows.row-click:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n padding: 6px !important;\n overflow: hidden;\n}\n.table-component .paper-container .table-container .table-rows .img-table {\n width: 100%;\n height: 110px;\n}\n.table-component .paper-container .table-container .table-rows .img-table img {\n object-fit: contain;\n}\n.table-component .paper-container .table-container .table-rows .actions {\n float: right;\n}\n.table-component .paper-container .table-container .table-rows .btn-action {\n color: rgba(0, 0, 0, 0.54);\n display: inline-block;\n text-decoration: none;\n font-size: 1.6em !important;\n padding: 0px 7px;\n cursor: pointer;\n}\n.table-component .paper-container .MuiTable-root.loading {\n opacity: 0.5;\n}\n.table-component .paper-container .MuiTable-root.loading .MuiCircularProgress-root {\n width: 80px !important;\n height: 80px !important;\n position: absolute;\n left: 0;\n right: 0;\n top: 5px;\n margin: auto;\n color: grey;\n}\n.table-component .paper-container .MuiTablePagination-root {\n overflow: unset;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiToolbar-root {\n justify-content: center !important;\n flex-wrap: wrap;\n padding: 0px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiTablePagination-spacer {\n flex: 0 !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page {\n border-radius: 0px;\n margin: 1px;\n color: white !important;\n background-color: #3f4d67;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page.Mui-selected {\n background-color: #3299C7;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li button {\n padding: 14px;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-child(2) .MuiPaginationItem-page {\n border-radius: 5px 0 0 5px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-last-child(2) .MuiPaginationItem-page {\n border-radius: 0 5px 5px 0 !important;\n}\n@media (max-width: 992px) {\n .table-component .paper-container .table-container {\n max-height: 60vh;\n border-top: 1px solid #cccccc;\n }\n .table-component .paper-container .table-container .MuiTable-root {\n border-collapse: collapse !important;\n }\n .table-component .paper-container .table-container .MuiTableHead-root {\n display: none !important;\n }\n .table-component .paper-container .table-container .table-rows {\n border-bottom: 2px solid #cccccc;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n width:
|
|
291
|
+
var css_248z$4 = ".table-component .paper-container {\n box-shadow: none;\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root {\n padding: 0 !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root:hover {\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .Mui-checked {\n color: rgba(0, 0, 0, 0.54) !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-indeterminate {\n color: #212529 !important;\n}\n.table-component .paper-container .table-container {\n max-height: 68vh;\n border-bottom: 1px solid black;\n}\n.table-component .paper-container .table-container .table-column:first-child {\n border-radius: 5px 0 0 5px;\n}\n.table-component .paper-container .table-container .table-column:last-child {\n border-right: none !important;\n border-radius: 0 5px 5px 0;\n}\n.table-component .paper-container .table-container .table-column {\n font-weight: bold;\n font-size: 1rem !important;\n padding: 10px !important;\n border-top: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n border-bottom: 2px solid #e0e0e0;\n}\n.table-component .paper-container .table-container .table-column .table-header-cell {\n color: black;\n padding: 0px 10px 0px 10px !important;\n}\n.table-component .paper-container .table-container .table-rows.row-click {\n cursor: pointer;\n}\n.table-component .paper-container .table-container .table-rows.row-click:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-component .paper-container .table-container .table-rows.Mui-selected {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-component .paper-container .table-container .table-rows .Mui-selected {\n background-color: transparent !important;\n}\n.table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n padding: 6px !important;\n overflow: hidden;\n}\n.table-component .paper-container .table-container .table-rows .img-table {\n width: 100%;\n height: 110px;\n}\n.table-component .paper-container .table-container .table-rows .img-table img {\n object-fit: contain;\n}\n.table-component .paper-container .table-container .table-rows .actions {\n float: right;\n}\n.table-component .paper-container .table-container .table-rows .btn-action {\n color: rgba(0, 0, 0, 0.54);\n display: inline-block;\n text-decoration: none;\n font-size: 1.6em !important;\n padding: 0px 7px;\n cursor: pointer;\n}\n.table-component .paper-container .MuiTable-root.loading {\n opacity: 0.5;\n}\n.table-component .paper-container .MuiTable-root.loading .MuiCircularProgress-root {\n width: 80px !important;\n height: 80px !important;\n position: absolute;\n left: 0;\n right: 0;\n top: 5px;\n margin: auto;\n color: grey;\n}\n.table-component .paper-container .MuiTablePagination-root {\n overflow: unset;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiToolbar-root {\n justify-content: center !important;\n flex-wrap: wrap;\n padding: 0px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiTablePagination-spacer {\n flex: 0 !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page {\n border-radius: 0px;\n margin: 1px;\n color: white !important;\n background-color: #3f4d67;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page.Mui-selected {\n background-color: #3299C7;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li button {\n padding: 14px;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-child(2) .MuiPaginationItem-page {\n border-radius: 5px 0 0 5px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-last-child(2) .MuiPaginationItem-page {\n border-radius: 0 5px 5px 0 !important;\n}\n@media (max-width: 992px) {\n .table-component .paper-container .table-container {\n max-height: 60vh;\n border-top: 1px solid #cccccc;\n }\n .table-component .paper-container .table-container .MuiTable-root {\n border-collapse: collapse !important;\n }\n .table-component .paper-container .table-container .MuiTableHead-root {\n display: none !important;\n }\n .table-component .paper-container .table-container .table-rows {\n border-bottom: 2px solid #cccccc;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n width: auto;\n border-bottom: none !important;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell {\n font-size: 1rem;\n vertical-align: top;\n width: 50%;\n height: auto;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell + div {\n display: inline-block;\n }\n .table-component .paper-container .table-container .table-rows .table-cell {\n display: block !important;\n }\n .table-component .paper-container .table-container .table-rows .format-value {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: 50%;\n max-width: 299px;\n }\n}";
|
|
288
292
|
styleInject(css_248z$4);
|
|
289
293
|
|
|
290
294
|
var css_248z$5 = ".text-field-component .MuiFormLabel-root {\n color: #666666 !important;\n font-size: calc(12pt + (14 - 12) * calc(100vw - 300px)/1300) !important;\n transform: translate(0, 0.5px) scale(0.85);\n transform-origin: top left;\n text-overflow: initial !important;\n}\n.text-field-component .MuiFormLabel-root + .MuiInputBase-formControl {\n margin-top: 25px !important;\n}\n.text-field-component .MuiInputBase-root.no-border {\n border: none !important;\n padding: 0 !important;\n width: fit-content !important;\n}\n.text-field-component .MuiInputBase-root {\n color: #666666 !important;\n border: 1px solid grey;\n padding: 0.43rem 0.87rem;\n background-color: white !important;\n border-radius: 3px !important;\n}\n.text-field-component .MuiInputBase-root.Mui-error {\n border: 1px solid #F24726 !important;\n}\n.text-field-component .MuiInputBase-root:not(.Mui-disabled):hover {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root.Mui-focused {\n border: 1px solid #3299C7;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input {\n color: #666666 !important;\n background-color: white !important;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input::placeholder {\n text-overflow: ellipsis !important;\n color: #666666 !important;\n opacity: 1;\n}\n.text-field-component .MuiInputBase-root .Mui-disabled {\n -webkit-text-fill-color: #666666 !important;\n}\n.text-field-component .MuiFormHelperText-root {\n padding: 0 !important;\n font-size: 0.85rem !important;\n color: #666666;\n}";
|
|
@@ -392,8 +396,9 @@ var TableComponent = function TableComponent(props) {
|
|
|
392
396
|
if (props.onFiltersChange) props.onFiltersChange(newFilters);
|
|
393
397
|
};
|
|
394
398
|
|
|
395
|
-
var handleRowClick = function handleRowClick(
|
|
396
|
-
if (props.onClickRow) props.onClickRow(id);
|
|
399
|
+
var handleRowClick = function handleRowClick(row) {
|
|
400
|
+
if (props.onClickRow) props.onClickRow(row.id);
|
|
401
|
+
if (props.onClickRowData) props.onClickRowData(row);
|
|
397
402
|
};
|
|
398
403
|
|
|
399
404
|
var createSortHandler = function createSortHandler(orderBy) {
|
|
@@ -631,7 +636,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
631
636
|
}))), props.rows && props.rows.length > 0 ? props.rows.map(function (row, index) {
|
|
632
637
|
var rowColor = props.rowsColorColumn && ObjectbyString(row, props.rowsColorColumn.columnName) === props.rowsColorColumn.columnValue ? "row-color-" + props.rowsColorColumn.columnValue : '';
|
|
633
638
|
return React__default.createElement(_.TableRow, {
|
|
634
|
-
className: "table-rows " + rowColor + " " + (props.onClickRow ? 'row-click' : ''),
|
|
639
|
+
className: "table-rows " + rowColor + " " + (props.onClickRow || props.onClickRowData ? 'row-click' : ''),
|
|
635
640
|
role: "checkbox",
|
|
636
641
|
tabIndex: -1,
|
|
637
642
|
key: row.id || index
|
|
@@ -648,7 +653,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
648
653
|
}
|
|
649
654
|
},
|
|
650
655
|
onClick: function onClick() {
|
|
651
|
-
return !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row
|
|
656
|
+
return !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row) : '';
|
|
652
657
|
}
|
|
653
658
|
}, React__default.createElement(_.Hidden, {
|
|
654
659
|
mdUp: true
|
|
@@ -694,7 +699,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
694
699
|
}, formatValue(value, column)) : column.isBoolean ? React__default.createElement(_.Box, {
|
|
695
700
|
className: (column.isBoolean.hasColor ? (column.isBoolean.enumSuffix ? value.toString().toLowerCase() + "-" + column.isBoolean.enumSuffix.toLowerCase() : value.toString().toLowerCase()) + "-boolean-color" : '') + " format-value"
|
|
696
701
|
}, formatValue(value, column)) : React__default.createElement(_.Box, {
|
|
697
|
-
className: "format-value
|
|
702
|
+
className: "" + (column.isImage ? '' : 'format-value')
|
|
698
703
|
}, formatValue(value, column)));
|
|
699
704
|
}));
|
|
700
705
|
}) : !props.loading ? React__default.createElement(_.TableRow, null, React__default.createElement(_.TableCell, {
|
|
@@ -747,11 +752,11 @@ TableComponent.defaultProps = {
|
|
|
747
752
|
showTotalCount: true
|
|
748
753
|
};
|
|
749
754
|
|
|
750
|
-
var css_248z$6 = ".table-simple-component .paper-container {\n box-shadow: none;\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-root {\n padding: 0 !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-root:hover {\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .checkbox-cell .Mui-checked {\n color: rgba(0, 0, 0, 0.54) !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-indeterminate {\n color: #212529 !important;\n}\n.table-simple-component .paper-container .table-container {\n max-height: 68vh;\n border-bottom: 1px solid black;\n}\n.table-simple-component .paper-container .table-container .table-column:first-child {\n border-radius: 5px 0 0 5px;\n}\n.table-simple-component .paper-container .table-container .table-column:last-child {\n border-right: none !important;\n border-radius: 0 5px 5px 0;\n}\n.table-simple-component .paper-container .table-container .table-column {\n font-weight: bold;\n font-size: 1rem !important;\n padding: 10px !important;\n border-top: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n border-bottom: 2px solid #e0e0e0;\n}\n.table-simple-component .paper-container .table-container .table-column .table-header-cell {\n color: black;\n padding: 0px 10px 0px 10px !important;\n}\n.table-simple-component .paper-container .table-container .table-rows.row-click {\n cursor: pointer;\n}\n.table-simple-component .paper-container .table-container .table-rows.row-click:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-simple-component .paper-container .table-container .table-rows .Mui-selected {\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root {\n padding: 6px !important;\n overflow: hidden;\n}\n.table-simple-component .paper-container .table-container .table-rows .img-table {\n width: 100%;\n height: 110px;\n}\n.table-simple-component .paper-container .table-container .table-rows .img-table img {\n object-fit: contain;\n}\n.table-simple-component .paper-container .table-container .table-rows .actions {\n float: right;\n}\n.table-simple-component .paper-container .table-container .table-rows .btn-action {\n color: rgba(0, 0, 0, 0.54);\n display: inline-block;\n text-decoration: none;\n font-size: 1.6em !important;\n padding: 0px 7px;\n cursor: pointer;\n}\n.table-simple-component .paper-container .MuiTable-root.loading {\n opacity: 0.5;\n}\n.table-simple-component .paper-container .MuiTable-root.loading .MuiCircularProgress-root {\n width: 80px !important;\n height: 80px !important;\n position: absolute;\n left: 0;\n right: 0;\n top: 5px;\n margin: auto;\n color: grey;\n}\n@media (max-width: 992px) {\n .table-simple-component .paper-container .table-container {\n max-height: 60vh;\n border-top: 1px solid #cccccc;\n }\n .table-simple-component .paper-container .table-container .MuiTable-root {\n border-collapse: collapse !important;\n }\n .table-simple-component .paper-container .table-container .MuiTableHead-root {\n display: none !important;\n }\n .table-simple-component .paper-container .table-container .table-rows {\n border-bottom: 2px solid #cccccc;\n }\n .table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root {\n width:
|
|
755
|
+
var css_248z$6 = ".table-simple-component .paper-container {\n box-shadow: none;\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-root {\n padding: 0 !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-root:hover {\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .checkbox-cell .Mui-checked {\n color: rgba(0, 0, 0, 0.54) !important;\n}\n.table-simple-component .paper-container .checkbox-cell .MuiCheckbox-indeterminate {\n color: #212529 !important;\n}\n.table-simple-component .paper-container .table-container {\n max-height: 68vh;\n border-bottom: 1px solid black;\n}\n.table-simple-component .paper-container .table-container .table-column:first-child {\n border-radius: 5px 0 0 5px;\n}\n.table-simple-component .paper-container .table-container .table-column:last-child {\n border-right: none !important;\n border-radius: 0 5px 5px 0;\n}\n.table-simple-component .paper-container .table-container .table-column {\n font-weight: bold;\n font-size: 1rem !important;\n padding: 10px !important;\n border-top: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n border-bottom: 2px solid #e0e0e0;\n}\n.table-simple-component .paper-container .table-container .table-column .table-header-cell {\n color: black;\n padding: 0px 10px 0px 10px !important;\n}\n.table-simple-component .paper-container .table-container .table-rows.row-click {\n cursor: pointer;\n}\n.table-simple-component .paper-container .table-container .table-rows.row-click:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-simple-component .paper-container .table-container .table-rows.Mui-selected {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-simple-component .paper-container .table-container .table-rows .Mui-selected {\n background-color: transparent !important;\n}\n.table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root {\n padding: 6px !important;\n overflow: hidden;\n}\n.table-simple-component .paper-container .table-container .table-rows .img-table {\n width: 100%;\n height: 110px;\n}\n.table-simple-component .paper-container .table-container .table-rows .img-table img {\n object-fit: contain;\n}\n.table-simple-component .paper-container .table-container .table-rows .actions {\n float: right;\n}\n.table-simple-component .paper-container .table-container .table-rows .btn-action {\n color: rgba(0, 0, 0, 0.54);\n display: inline-block;\n text-decoration: none;\n font-size: 1.6em !important;\n padding: 0px 7px;\n cursor: pointer;\n}\n.table-simple-component .paper-container .MuiTable-root.loading {\n opacity: 0.5;\n}\n.table-simple-component .paper-container .MuiTable-root.loading .MuiCircularProgress-root {\n width: 80px !important;\n height: 80px !important;\n position: absolute;\n left: 0;\n right: 0;\n top: 5px;\n margin: auto;\n color: grey;\n}\n@media (max-width: 992px) {\n .table-simple-component .paper-container .table-container {\n max-height: 60vh;\n border-top: 1px solid #cccccc;\n }\n .table-simple-component .paper-container .table-container .MuiTable-root {\n border-collapse: collapse !important;\n }\n .table-simple-component .paper-container .table-container .MuiTableHead-root {\n display: none !important;\n }\n .table-simple-component .paper-container .table-container .table-rows {\n border-bottom: 2px solid #cccccc;\n }\n .table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root {\n width: auto;\n border-bottom: none !important;\n }\n .table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell {\n font-size: 1rem;\n vertical-align: top;\n width: 50%;\n height: auto;\n }\n .table-simple-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell + div {\n display: inline-block;\n }\n .table-simple-component .paper-container .table-container .table-rows .table-cell {\n display: block !important;\n }\n .table-simple-component .paper-container .table-container .table-rows .format-value {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: 50%;\n max-width: 299px;\n }\n}";
|
|
751
756
|
styleInject(css_248z$6);
|
|
752
757
|
|
|
753
758
|
var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
754
|
-
var _props$isCheckTable10, _props$isCheckTable11, _props$isCheckTable12
|
|
759
|
+
var _props$isCheckTable10, _props$isCheckTable11, _props$isCheckTable12;
|
|
755
760
|
|
|
756
761
|
var isSelected = function isSelected(id) {
|
|
757
762
|
var _props$isCheckTable;
|
|
@@ -759,8 +764,9 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
759
764
|
return JSON.parse(JSON.stringify((_props$isCheckTable = props.isCheckTable) == null ? void 0 : _props$isCheckTable.rowsChecked)).indexOf(id) !== -1;
|
|
760
765
|
};
|
|
761
766
|
|
|
762
|
-
var handleRowClick = function handleRowClick(
|
|
763
|
-
if (props.onClickRow) props.onClickRow(id);
|
|
767
|
+
var handleRowClick = function handleRowClick(row) {
|
|
768
|
+
if (props.onClickRow) props.onClickRow(row.id);
|
|
769
|
+
if (props.onClickRowData) props.onClickRowData(row);
|
|
764
770
|
};
|
|
765
771
|
|
|
766
772
|
var onCheckAction = function onCheckAction(event, id) {
|
|
@@ -940,14 +946,14 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
940
946
|
className: "table-simple-component"
|
|
941
947
|
}, React__default.createElement(_.Paper, {
|
|
942
948
|
className: "paper-container"
|
|
943
|
-
},
|
|
949
|
+
}, props.isCheckTable && !props.isCheckTable.noCheckAllItems && React__default.createElement(_.Hidden, {
|
|
944
950
|
mdUp: true
|
|
945
951
|
}, React__default.createElement(_.Box, {
|
|
946
952
|
display: "block",
|
|
947
953
|
className: "checkbox-cell"
|
|
948
954
|
}, React__default.createElement(_.Checkbox, {
|
|
949
|
-
indeterminate: props.rows && JSON.parse(JSON.stringify((_props$
|
|
950
|
-
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify((_props$
|
|
955
|
+
indeterminate: props.rows && JSON.parse(JSON.stringify((_props$isCheckTable10 = props.isCheckTable) == null ? void 0 : _props$isCheckTable10.rowsChecked)).length > 0 && JSON.parse(JSON.stringify((_props$isCheckTable11 = props.isCheckTable) == null ? void 0 : _props$isCheckTable11.rowsChecked)).length < props.rows.length,
|
|
956
|
+
checked: props.rows && props.rows.length > 0 && JSON.parse(JSON.stringify((_props$isCheckTable12 = props.isCheckTable) == null ? void 0 : _props$isCheckTable12.rowsChecked)).length === props.rows.length,
|
|
951
957
|
onChange: handleSelectAllClick
|
|
952
958
|
}))), React__default.createElement(_.TableContainer, {
|
|
953
959
|
className: "table-container"
|
|
@@ -959,7 +965,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
959
965
|
smDown: true
|
|
960
966
|
}, React__default.createElement(_.TableHead, null, React__default.createElement(_.TableRow, null, props.columns.map(function (column) {
|
|
961
967
|
if (column.id) {
|
|
962
|
-
var _props$isCheckTable14, _props$isCheckTable15, _props$isCheckTable16;
|
|
968
|
+
var _props$isCheckTable13, _props$isCheckTable14, _props$isCheckTable15, _props$isCheckTable16;
|
|
963
969
|
|
|
964
970
|
return React__default.createElement(_.TableCell, {
|
|
965
971
|
className: "table-column",
|
|
@@ -969,7 +975,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
969
975
|
minWidth: column.minWidth,
|
|
970
976
|
maxWidth: column.maxWidth
|
|
971
977
|
}
|
|
972
|
-
}, column.isCheck ? React__default.createElement(_.Box, {
|
|
978
|
+
}, column.isCheck && !((_props$isCheckTable13 = props.isCheckTable) != null && _props$isCheckTable13.noCheckAllItems) ? React__default.createElement(_.Box, {
|
|
973
979
|
className: "checkbox-cell"
|
|
974
980
|
}, React__default.createElement(_.Checkbox, {
|
|
975
981
|
indeterminate: props.rows && JSON.parse(JSON.stringify((_props$isCheckTable14 = props.isCheckTable) == null ? void 0 : _props$isCheckTable14.rowsChecked)).length > 0 && JSON.parse(JSON.stringify((_props$isCheckTable15 = props.isCheckTable) == null ? void 0 : _props$isCheckTable15.rowsChecked)).length < props.rows.length,
|
|
@@ -997,7 +1003,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
997
1003
|
var rowColor = props.rowsColorColumn && ObjectbyString(row, props.rowsColorColumn.columnName) === props.rowsColorColumn.columnValue ? "row-color-" + props.rowsColorColumn.columnValue : '';
|
|
998
1004
|
var isRowSelected = ((_props$isCheckTable17 = props.isCheckTable) == null ? void 0 : _props$isCheckTable17.rowsChecked) && isSelected(row.id);
|
|
999
1005
|
return React__default.createElement(_.TableRow, {
|
|
1000
|
-
className: "table-rows " + rowColor + " " + (props.onClickRow ? 'row-click' : ''),
|
|
1006
|
+
className: "table-rows " + rowColor + " " + (props.onClickRow || props.onClickRowData ? 'row-click' : ''),
|
|
1001
1007
|
role: "checkbox",
|
|
1002
1008
|
tabIndex: -1,
|
|
1003
1009
|
selected: isRowSelected,
|
|
@@ -1017,7 +1023,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
1017
1023
|
}
|
|
1018
1024
|
},
|
|
1019
1025
|
onClick: function onClick() {
|
|
1020
|
-
return !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row
|
|
1026
|
+
return !column.action && !column.isCheck && !column.isActiveFunction ? handleRowClick(row) : '';
|
|
1021
1027
|
}
|
|
1022
1028
|
}, React__default.createElement(_.Hidden, {
|
|
1023
1029
|
mdUp: true
|
|
@@ -1065,7 +1071,7 @@ var SimpleTableComponent = function SimpleTableComponent(props) {
|
|
|
1065
1071
|
}, formatValue(value, column)) : column.isBoolean ? React__default.createElement(_.Box, {
|
|
1066
1072
|
className: (column.isBoolean.hasColor ? (column.isBoolean.enumSuffix ? value.toString().toLowerCase() + "-" + column.isBoolean.enumSuffix.toLowerCase() : value.toString().toLowerCase()) + "-boolean-color" : '') + " format-value"
|
|
1067
1073
|
}, formatValue(value, column)) : React__default.createElement(_.Box, {
|
|
1068
|
-
className: "format-value
|
|
1074
|
+
className: "" + (column.isImage ? '' : 'format-value')
|
|
1069
1075
|
}, formatValue(value, column)));
|
|
1070
1076
|
} else return null;
|
|
1071
1077
|
}));
|
|
@@ -2429,8 +2435,14 @@ var LoginForm = function LoginForm(props) {
|
|
|
2429
2435
|
}),
|
|
2430
2436
|
control = _useForm.control,
|
|
2431
2437
|
handleSubmit = _useForm.handleSubmit,
|
|
2438
|
+
getValues = _useForm.getValues,
|
|
2439
|
+
trigger = _useForm.trigger,
|
|
2432
2440
|
errors = _useForm.formState.errors;
|
|
2433
2441
|
|
|
2442
|
+
var onHandleKeyChange = function onHandleKeyChange(event) {
|
|
2443
|
+
if (event.key === 'Enter') props.onClick(getValues());
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2434
2446
|
return React__default.createElement(material.Box, {
|
|
2435
2447
|
m: 2
|
|
2436
2448
|
}, props.topComponent && React__default.createElement(material.Box, {
|
|
@@ -2463,7 +2475,38 @@ var LoginForm = function LoginForm(props) {
|
|
|
2463
2475
|
inputRef: ref,
|
|
2464
2476
|
onChange: function onChange(e) {
|
|
2465
2477
|
_onChange(e);
|
|
2466
|
-
}
|
|
2478
|
+
},
|
|
2479
|
+
onKeyUp: function () {
|
|
2480
|
+
var _onKeyUp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(e) {
|
|
2481
|
+
var result;
|
|
2482
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2483
|
+
while (1) {
|
|
2484
|
+
switch (_context.prev = _context.next) {
|
|
2485
|
+
case 0:
|
|
2486
|
+
_context.next = 2;
|
|
2487
|
+
return trigger();
|
|
2488
|
+
|
|
2489
|
+
case 2:
|
|
2490
|
+
result = _context.sent;
|
|
2491
|
+
|
|
2492
|
+
if (result) {
|
|
2493
|
+
onHandleKeyChange(e);
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
case 4:
|
|
2497
|
+
case "end":
|
|
2498
|
+
return _context.stop();
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
}, _callee);
|
|
2502
|
+
}));
|
|
2503
|
+
|
|
2504
|
+
function onKeyUp(_x) {
|
|
2505
|
+
return _onKeyUp.apply(this, arguments);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
return onKeyUp;
|
|
2509
|
+
}()
|
|
2467
2510
|
});
|
|
2468
2511
|
}
|
|
2469
2512
|
})), React__default.createElement(material.Grid, {
|
|
@@ -2489,6 +2532,37 @@ var LoginForm = function LoginForm(props) {
|
|
|
2489
2532
|
onChange: function onChange(e) {
|
|
2490
2533
|
_onChange2(e);
|
|
2491
2534
|
},
|
|
2535
|
+
onKeyUp: function () {
|
|
2536
|
+
var _onKeyUp2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(e) {
|
|
2537
|
+
var result;
|
|
2538
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2539
|
+
while (1) {
|
|
2540
|
+
switch (_context2.prev = _context2.next) {
|
|
2541
|
+
case 0:
|
|
2542
|
+
_context2.next = 2;
|
|
2543
|
+
return trigger();
|
|
2544
|
+
|
|
2545
|
+
case 2:
|
|
2546
|
+
result = _context2.sent;
|
|
2547
|
+
|
|
2548
|
+
if (result) {
|
|
2549
|
+
onHandleKeyChange(e);
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
case 4:
|
|
2553
|
+
case "end":
|
|
2554
|
+
return _context2.stop();
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
}, _callee2);
|
|
2558
|
+
}));
|
|
2559
|
+
|
|
2560
|
+
function onKeyUp(_x2) {
|
|
2561
|
+
return _onKeyUp2.apply(this, arguments);
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
return onKeyUp;
|
|
2565
|
+
}(),
|
|
2492
2566
|
endIcon: React__default.createElement(material.IconButton, {
|
|
2493
2567
|
"aria-label": "toggle password visibility",
|
|
2494
2568
|
onClick: handleClickShowPassword,
|
|
@@ -2519,6 +2593,8 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
|
|
|
2519
2593
|
}),
|
|
2520
2594
|
handleSubmit = _useForm.handleSubmit,
|
|
2521
2595
|
control = _useForm.control,
|
|
2596
|
+
getValues = _useForm.getValues,
|
|
2597
|
+
trigger = _useForm.trigger,
|
|
2522
2598
|
errors = _useForm.formState.errors;
|
|
2523
2599
|
|
|
2524
2600
|
var _useState = React.useState(false),
|
|
@@ -2533,6 +2609,10 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
|
|
|
2533
2609
|
event.preventDefault();
|
|
2534
2610
|
};
|
|
2535
2611
|
|
|
2612
|
+
var onHandleKeyChange = function onHandleKeyChange(event) {
|
|
2613
|
+
if (event.key === 'Enter') props.onClick(getValues());
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2536
2616
|
return React__default.createElement(_.Box, {
|
|
2537
2617
|
m: 2
|
|
2538
2618
|
}, props.topComponent && React__default.createElement(_.Box, {
|
|
@@ -2566,6 +2646,37 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
|
|
|
2566
2646
|
onChange: function onChange(e) {
|
|
2567
2647
|
_onChange(e);
|
|
2568
2648
|
},
|
|
2649
|
+
onKeyUp: function () {
|
|
2650
|
+
var _onKeyUp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(e) {
|
|
2651
|
+
var result;
|
|
2652
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2653
|
+
while (1) {
|
|
2654
|
+
switch (_context.prev = _context.next) {
|
|
2655
|
+
case 0:
|
|
2656
|
+
_context.next = 2;
|
|
2657
|
+
return trigger();
|
|
2658
|
+
|
|
2659
|
+
case 2:
|
|
2660
|
+
result = _context.sent;
|
|
2661
|
+
|
|
2662
|
+
if (result) {
|
|
2663
|
+
onHandleKeyChange(e);
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
case 4:
|
|
2667
|
+
case "end":
|
|
2668
|
+
return _context.stop();
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
}, _callee);
|
|
2672
|
+
}));
|
|
2673
|
+
|
|
2674
|
+
function onKeyUp(_x) {
|
|
2675
|
+
return _onKeyUp.apply(this, arguments);
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
return onKeyUp;
|
|
2679
|
+
}(),
|
|
2569
2680
|
endIcon: React__default.createElement(_.IconButton, {
|
|
2570
2681
|
"aria-label": "toggle password visibility",
|
|
2571
2682
|
onClick: handleClickShowPassword,
|
|
@@ -2597,6 +2708,37 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
|
|
|
2597
2708
|
onChange: function onChange(e) {
|
|
2598
2709
|
_onChange2(e);
|
|
2599
2710
|
},
|
|
2711
|
+
onKeyUp: function () {
|
|
2712
|
+
var _onKeyUp2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(e) {
|
|
2713
|
+
var result;
|
|
2714
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2715
|
+
while (1) {
|
|
2716
|
+
switch (_context2.prev = _context2.next) {
|
|
2717
|
+
case 0:
|
|
2718
|
+
_context2.next = 2;
|
|
2719
|
+
return trigger();
|
|
2720
|
+
|
|
2721
|
+
case 2:
|
|
2722
|
+
result = _context2.sent;
|
|
2723
|
+
|
|
2724
|
+
if (result) {
|
|
2725
|
+
onHandleKeyChange(e);
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
case 4:
|
|
2729
|
+
case "end":
|
|
2730
|
+
return _context2.stop();
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
}, _callee2);
|
|
2734
|
+
}));
|
|
2735
|
+
|
|
2736
|
+
function onKeyUp(_x2) {
|
|
2737
|
+
return _onKeyUp2.apply(this, arguments);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
return onKeyUp;
|
|
2741
|
+
}(),
|
|
2600
2742
|
endIcon: React__default.createElement(_.IconButton, {
|
|
2601
2743
|
"aria-label": "toggle password visibility",
|
|
2602
2744
|
onClick: handleClickShowPassword,
|
|
@@ -2625,8 +2767,14 @@ var ResetPasswordForm = function ResetPasswordForm(props) {
|
|
|
2625
2767
|
}),
|
|
2626
2768
|
control = _useForm.control,
|
|
2627
2769
|
handleSubmit = _useForm.handleSubmit,
|
|
2770
|
+
getValues = _useForm.getValues,
|
|
2771
|
+
trigger = _useForm.trigger,
|
|
2628
2772
|
errors = _useForm.formState.errors;
|
|
2629
2773
|
|
|
2774
|
+
var onHandleKeyChange = function onHandleKeyChange(event) {
|
|
2775
|
+
if (event.key === 'Enter') props.onClick(getValues());
|
|
2776
|
+
};
|
|
2777
|
+
|
|
2630
2778
|
return React__default.createElement(material.Box, {
|
|
2631
2779
|
m: 2
|
|
2632
2780
|
}, props.topComponent && React__default.createElement(material.Box, {
|
|
@@ -2653,7 +2801,38 @@ var ResetPasswordForm = function ResetPasswordForm(props) {
|
|
|
2653
2801
|
inputRef: ref,
|
|
2654
2802
|
onChange: function onChange(e) {
|
|
2655
2803
|
_onChange(e);
|
|
2656
|
-
}
|
|
2804
|
+
},
|
|
2805
|
+
onKeyUp: function () {
|
|
2806
|
+
var _onKeyUp = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(e) {
|
|
2807
|
+
var result;
|
|
2808
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2809
|
+
while (1) {
|
|
2810
|
+
switch (_context.prev = _context.next) {
|
|
2811
|
+
case 0:
|
|
2812
|
+
_context.next = 2;
|
|
2813
|
+
return trigger();
|
|
2814
|
+
|
|
2815
|
+
case 2:
|
|
2816
|
+
result = _context.sent;
|
|
2817
|
+
|
|
2818
|
+
if (result) {
|
|
2819
|
+
onHandleKeyChange(e);
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
case 4:
|
|
2823
|
+
case "end":
|
|
2824
|
+
return _context.stop();
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
}, _callee);
|
|
2828
|
+
}));
|
|
2829
|
+
|
|
2830
|
+
function onKeyUp(_x) {
|
|
2831
|
+
return _onKeyUp.apply(this, arguments);
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
return onKeyUp;
|
|
2835
|
+
}()
|
|
2657
2836
|
});
|
|
2658
2837
|
}
|
|
2659
2838
|
})), React__default.createElement(material.Box, {
|