@tsed/react-formio 1.9.9 → 1.10.3
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/index.d.ts +1 -1
- package/dist/components/table/components/defaultCellHeader.component.d.ts +1 -1
- package/dist/components/table/index.d.ts +11 -0
- package/dist/components/table/table.component.d.ts +5 -2
- package/dist/index.js +50 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -4
- package/src/components/index.ts +1 -1
- package/src/components/table/components/defaultCellHeader.component.tsx +2 -3
- package/src/components/table/index.ts +11 -0
- package/src/components/table/table.component.tsx +22 -14
- package/dist/components/table/filters/numberRangeColumnFilter.component.d.ts +0 -0
- package/src/components/table/filters/numberRangeColumnFilter.component.tsx +0 -52
package/dist/index.modern.js
CHANGED
|
@@ -1719,9 +1719,9 @@ function Table(props) {
|
|
|
1719
1719
|
pageSize: controlledPageSize || 10,
|
|
1720
1720
|
sortBy: controlledSortBy || []
|
|
1721
1721
|
}),
|
|
1722
|
-
manualPagination: true,
|
|
1723
|
-
manualSortBy: true,
|
|
1724
|
-
manualFilters: true,
|
|
1722
|
+
manualPagination: props.manualPagination === undefined ? true : props.manualPagination,
|
|
1723
|
+
manualSortBy: props.manualSortBy === undefined ? true : props.manualPagination,
|
|
1724
|
+
manualFilters: props.manualFilters === undefined ? true : props.manualFilters,
|
|
1725
1725
|
disableFilters,
|
|
1726
1726
|
filterId,
|
|
1727
1727
|
setFilterId
|
|
@@ -1775,14 +1775,16 @@ function Table(props) {
|
|
|
1775
1775
|
colSpan: colspan
|
|
1776
1776
|
}, cell.getCellProps()), cell.render("Cell"));
|
|
1777
1777
|
}));
|
|
1778
|
-
})) : null), isLoading ? React.createElement(Loader, null) : null, !data.length ? React.createElement(EmptyData, null) : null, !isLoading && data.length && !disablePagination ? React.createElement(
|
|
1778
|
+
})) : null), isLoading ? React.createElement(Loader, null) : null, !data.length ? React.createElement(EmptyData, null) : null, !isLoading && data.length && !disablePagination ? React.createElement("div", {
|
|
1779
|
+
className: "overflow-hidden"
|
|
1780
|
+
}, React.createElement(Pagination$1, Object.assign({}, tableInstance, {
|
|
1779
1781
|
className: "text-sm",
|
|
1780
1782
|
pageIndex: pageIndex,
|
|
1781
1783
|
pageSize: pageSize,
|
|
1782
1784
|
pageSizes: pageSizes,
|
|
1783
1785
|
setPageSize: setPageSize,
|
|
1784
1786
|
i18n: i18n
|
|
1785
|
-
})) : null, children);
|
|
1787
|
+
}))) : null, children);
|
|
1786
1788
|
}
|
|
1787
1789
|
|
|
1788
1790
|
function ActionsTable(_ref) {
|
|
@@ -21901,6 +21903,36 @@ function SubmissionsTable(_ref) {
|
|
|
21901
21903
|
}));
|
|
21902
21904
|
}
|
|
21903
21905
|
|
|
21906
|
+
function SliderColumnFilter({
|
|
21907
|
+
column: {
|
|
21908
|
+
filterValue,
|
|
21909
|
+
setFilter,
|
|
21910
|
+
preFilteredRows,
|
|
21911
|
+
id
|
|
21912
|
+
}
|
|
21913
|
+
}) {
|
|
21914
|
+
const [min, max] = React.useMemo(() => {
|
|
21915
|
+
let min = preFilteredRows.length ? preFilteredRows[0].values[id] : 0;
|
|
21916
|
+
let max = preFilteredRows.length ? preFilteredRows[0].values[id] : 0;
|
|
21917
|
+
preFilteredRows.forEach(row => {
|
|
21918
|
+
min = Math.min(row.values[id], min);
|
|
21919
|
+
max = Math.max(row.values[id], max);
|
|
21920
|
+
});
|
|
21921
|
+
return [min, max];
|
|
21922
|
+
}, [id, preFilteredRows]);
|
|
21923
|
+
return React.createElement(React.Fragment, null, React.createElement("input", {
|
|
21924
|
+
type: 'range',
|
|
21925
|
+
min: min,
|
|
21926
|
+
max: max,
|
|
21927
|
+
value: filterValue || min,
|
|
21928
|
+
onChange: e => {
|
|
21929
|
+
setFilter(parseInt(e.target.value, 10));
|
|
21930
|
+
}
|
|
21931
|
+
}), React.createElement("button", {
|
|
21932
|
+
onClick: () => setFilter(undefined)
|
|
21933
|
+
}, "Off"));
|
|
21934
|
+
}
|
|
21935
|
+
|
|
21904
21936
|
function ButtonTab({
|
|
21905
21937
|
icon,
|
|
21906
21938
|
back,
|
|
@@ -21992,5 +22024,5 @@ Loader.propTypes = {
|
|
|
21992
22024
|
className: PropTypes.string
|
|
21993
22025
|
};
|
|
21994
22026
|
|
|
21995
|
-
export { ACTION, ACTIONS, ACTION_INFO, AUTH, ActionsTable, Alert, ButtonTab, Card, Form, FormAccess, FormAction, FormBuilder, FormControl, FormEdit, FormEditCTAs, FormParameters, FormSettings, FormsTable, InputTags, InputText, Loader, Modal, Pagination, ReactComponent, RemoveModal, Select, SubmissionsTable, Table, Tabs, actionInfoReducer, actionReducer, actionsReducer, authReducer, checkRoleFormAccess, clearActionError, clearFormError, clearSubmissionError, createInitialState$7 as createInitialState, defaultDisplayChoices, defaultFormioReducer, deleteAction, deleteForm, deleteSubmission, failAction, failActionInfo, failActions, failForm, failForms, failSubmission, failSubmissions, failUser, formAccessUser, formReducer, formsReducer, getAccess, getAction, getActionInfo, getActionUrl, getActions, getForm, getFormUrl, getForms, getProjectAccess, getSubmission, getSubmissionUrl, getSubmissions, hasRole, hasRoles, iconClass, initAuth, isAuthorized, logout, logoutUser, oneOfIsActive, projectAccessUser, receiveAction, receiveActionInfo, receiveActions, receiveForm, receiveForms, receiveSubmission, receiveSubmissions, receiveUser, refreshForms, refreshSubmissions, requestAction, requestActionInfo, requestActions, requestForm, requestForms, requestSubmission, requestSubmissions, requestUser, resetAction, resetActionInfo, resetActions, resetForm, resetForms, resetSubmission, resetSubmissions, saveAction, saveForm, saveSubmission, selectAction, selectActionInfo, selectActions, selectAuth, selectAvailableActions, selectError, selectForm, selectForms, selectFormsParameters, selectIsActive, selectIsAuthenticated, selectRoles, selectRoot, selectSubmission, selectSubmissions, selectSubmissionsParameters, selectUser, sendAction, sendForm, sendSubmission, setUser, submissionAccessUser, submissionReducer, submissionsReducer, useModal, useTooltip, userForms, userRoles };
|
|
22027
|
+
export { ACTION, ACTIONS, ACTION_INFO, AUTH, ActionsTable, Alert, ButtonTab, Card, Cell, DefaultArrowSort, DefaultCellHeader, DefaultCellOperations, DefaultColumnFilter, DefaultOperationButton, Form, FormAccess, FormAction, FormBuilder, FormControl, FormEdit, FormEditCTAs, FormParameters, FormSettings, FormsTable, InputTags, InputText, Loader, Modal, Pagination, ReactComponent, RemoveModal, Select, SelectColumnFilter, SliderColumnFilter, SubmissionsTable, Table, Tabs, actionInfoReducer, actionReducer, actionsReducer, authReducer, checkRoleFormAccess, clearActionError, clearFormError, clearSubmissionError, createInitialState$7 as createInitialState, defaultDisplayChoices, defaultFormioReducer, deleteAction, deleteForm, deleteSubmission, failAction, failActionInfo, failActions, failForm, failForms, failSubmission, failSubmissions, failUser, formAccessUser, formReducer, formsReducer, getAccess, getAction, getActionInfo, getActionUrl, getActions, getForm, getFormUrl, getForms, getProjectAccess, getSubmission, getSubmissionUrl, getSubmissions, hasRole, hasRoles, iconClass, initAuth, isAuthorized, logout, logoutUser, oneOfIsActive, projectAccessUser, receiveAction, receiveActionInfo, receiveActions, receiveForm, receiveForms, receiveSubmission, receiveSubmissions, receiveUser, refreshForms, refreshSubmissions, requestAction, requestActionInfo, requestActions, requestForm, requestForms, requestSubmission, requestSubmissions, requestUser, resetAction, resetActionInfo, resetActions, resetForm, resetForms, resetSubmission, resetSubmissions, saveAction, saveForm, saveSubmission, selectAction, selectActionInfo, selectActions, selectAuth, selectAvailableActions, selectError, selectForm, selectForms, selectFormsParameters, selectIsActive, selectIsAuthenticated, selectRoles, selectRoot, selectSubmission, selectSubmissions, selectSubmissionsParameters, selectUser, sendAction, sendForm, sendSubmission, setUser, submissionAccessUser, submissionReducer, submissionsReducer, useModal, useOperations, useTooltip, userForms, userRoles };
|
|
21996
22028
|
//# sourceMappingURL=index.modern.js.map
|