@dilicorp/ui 0.2.38 → 0.2.40

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.
Files changed (32) hide show
  1. package/dist/atoms/col.d.ts +1 -2
  2. package/dist/components/multi-step/multi-step.d.ts +18 -0
  3. package/dist/components/multi-step/multi-step.js +45 -0
  4. package/dist/components/page-list/filters/filter-async-select-group/filter-async-select.d.ts +29 -0
  5. package/dist/components/page-list/filters/filter-async-select-group/filter-async-select.js +28 -0
  6. package/dist/components/page-list/filters/filter-async-select-group/filter-group.d.ts +22 -0
  7. package/dist/components/page-list/filters/filter-async-select-group/filter-group.js +53 -0
  8. package/dist/components/page-list/filters/filter-async-select-group/index.d.ts +47 -0
  9. package/dist/components/page-list/filters/filter-async-select-group/index.js +6 -0
  10. package/dist/components/page-list/filters/filter-async-select.d.ts +4 -0
  11. package/dist/components/page-list/filters/filter-async-select.js +5 -6
  12. package/dist/components/page-list/filters/filter-datepicker.d.ts +4 -0
  13. package/dist/components/page-list/filters/filter-datepicker.js +5 -6
  14. package/dist/components/page-list/filters/filter-input.d.ts +4 -0
  15. package/dist/components/page-list/filters/filter-input.js +9 -11
  16. package/dist/components/page-list/filters/filter-select-group.d.ts +4 -0
  17. package/dist/components/page-list/filters/filter-select-group.js +5 -6
  18. package/dist/components/page-list/filters/filter-select.d.ts +4 -0
  19. package/dist/components/page-list/filters/filter-select.js +5 -6
  20. package/dist/components/page-list/filters/index.d.ts +1 -0
  21. package/dist/components/page-list/filters/index.js +1 -0
  22. package/dist/components/page-list/page-list-filters.d.ts +7 -3
  23. package/dist/components/page-list/page-list-get-filters.d.ts +7 -2
  24. package/dist/components/page-list/page-list-get-filters.js +12 -8
  25. package/dist/components/page-list/page-list-header.d.ts +9 -0
  26. package/dist/components/page-list/page-list-header.js +5 -0
  27. package/dist/components/page-list/page-list.js +3 -1
  28. package/dist/css/style.min.css +2 -2
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.js +2 -0
  31. package/dist/molecules/panel/panel.d.ts +1 -1
  32. package/package.json +1 -1
@@ -16,9 +16,10 @@ export const PageList = (props) => {
16
16
  const totalRecords = (meta === null || meta === void 0 ? void 0 : meta.to) ? (meta.to - meta.from) + 1 : 0;
17
17
  const history = useLocation();
18
18
  const search = uriHelper.parse(history.search);
19
+ const header = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListHeader'; }) : null;
19
20
  const filterList = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListFilters'; }) : null;
20
21
  const configList = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListConfigDropdown'; }) : null;
21
- const restList = Array.isArray(children) ? children === null || children === void 0 ? void 0 : children.filter(child => child !== filterList && child !== configList) : children;
22
+ const restList = Array.isArray(children) ? children === null || children === void 0 ? void 0 : children.filter(child => child !== filterList && child !== configList && child !== header) : children;
22
23
  if (loading) {
23
24
  return (React.createElement("div", { className: "my-5" },
24
25
  React.createElement(Spinner, null)));
@@ -41,6 +42,7 @@ export const PageList = (props) => {
41
42
  addButton.label,
42
43
  React.createElement(Icon, { icon: "fa-plus", pluxee: true, className: "ms-1" }))),
43
44
  Boolean((Array.isArray(extraButtons) ? extraButtons : extraButtons.items).length) && (React.createElement(Dropdown, { outline: true, color: "primary", align: "right", label: Array.isArray(extraButtons) ? React.createElement(Icon, { icon: "faEllipsisH" }) : extraButtons.label, items: Array.isArray(extraButtons) ? extraButtons : extraButtons.items })))))),
45
+ Boolean(header) && header,
44
46
  !!customizeFilter && customizeFilter,
45
47
  !customizeFilter && filterList && (React.createElement(PageListGetFilters, { filterList: filterList, search: search, filter: filter, key: JSON.stringify(history) }, configList)),
46
48
  React.createElement("div", null, restList),