dattatable 2.7.3 → 2.7.5

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 (53) hide show
  1. package/build/common/list.js +2 -3
  2. package/build/dashboard/index.d.ts +1 -0
  3. package/build/dashboard/index.js +1 -0
  4. package/build/dashboard/navigation.d.ts +1 -0
  5. package/build/dashboard/navigation.js +1 -1
  6. package/dist/dattatable.js +443 -443
  7. package/dist/dattatable.min.js +1 -1
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/AuditLog.html +13 -13
  10. package/docs/classes/CanvasForm.html +17 -17
  11. package/docs/classes/Comments.html +12 -12
  12. package/docs/classes/Dashboard.html +17 -17
  13. package/docs/classes/DataTable.html +11 -11
  14. package/docs/classes/Documents.html +45 -45
  15. package/docs/classes/FilterSlideout.html +14 -14
  16. package/docs/classes/Footer.html +4 -4
  17. package/docs/classes/Header.html +4 -4
  18. package/docs/classes/InstallationRequired.html +12 -12
  19. package/docs/classes/ItemForm.html +47 -47
  20. package/docs/classes/List.html +47 -47
  21. package/docs/classes/LoadingDialog.html +12 -12
  22. package/docs/classes/Modal.html +26 -26
  23. package/docs/classes/Navigation.html +6 -6
  24. package/docs/classes/Timeout.html +7 -7
  25. package/docs/enums/ActionButtonTypes.html +6 -6
  26. package/docs/functions/formatBytes.html +1 -1
  27. package/docs/functions/formatDateValue.html +1 -1
  28. package/docs/functions/formatTimeValue.html +1 -1
  29. package/docs/functions/getFileExt.html +1 -1
  30. package/docs/interfaces/IAuditLogItem.html +9 -9
  31. package/docs/interfaces/IAuditLogItemCreation.html +7 -7
  32. package/docs/interfaces/IAuditLogProps.html +5 -5
  33. package/docs/interfaces/IAuditLogViewProps.html +6 -6
  34. package/docs/interfaces/ICommentsItem.html +6 -6
  35. package/docs/interfaces/IDashboardProps.html +17 -15
  36. package/docs/interfaces/IDataTable.html +7 -7
  37. package/docs/interfaces/IDataTableProps.html +6 -6
  38. package/docs/interfaces/IDocumentsProps.html +25 -25
  39. package/docs/interfaces/IFilterItem.html +5 -5
  40. package/docs/interfaces/IFilterProps.html +4 -4
  41. package/docs/interfaces/IFooterProps.html +6 -6
  42. package/docs/interfaces/IHeaderProps.html +5 -5
  43. package/docs/interfaces/IInstallProps.html +4 -4
  44. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  45. package/docs/interfaces/IItemFormEditProps.html +15 -15
  46. package/docs/interfaces/IItemFormTab.html +8 -8
  47. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  48. package/docs/interfaces/IItemFormViewProps.html +12 -12
  49. package/docs/interfaces/IListProps.html +11 -11
  50. package/docs/interfaces/IShowDialogProps.html +7 -7
  51. package/docs/variables/DattaTable.html +1 -1
  52. package/package.json +2 -2
  53. package/pnpm-lock.yaml +7 -7
@@ -52,15 +52,14 @@ var List = /** @class */ (function () {
52
52
  this._onInitialized = props.onInitialized;
53
53
  this._onItemsLoaded = props.onItemsLoaded;
54
54
  this._onLoadFormError = props.onLoadFormError;
55
+ this._onRefreshItems = props.onRefreshItems;
55
56
  this._onResetForm = props.onResetForm;
56
57
  this._viewName = props.viewName;
57
58
  this._webUrl = props.webUrl || gd_sprest_bs_1.ContextInfo.webServerRelativeUrl;
58
59
  // Load the list information
59
60
  this.init().then(function () {
60
61
  // Load the items
61
- _this.loadItems().then(function (items) {
62
- // Set the items
63
- _this._items = items;
62
+ _this.loadItems().then(function () {
64
63
  // Call the event
65
64
  _this._onInitialized ? _this._onInitialized() : null;
66
65
  // Call the items loaded event
@@ -28,6 +28,7 @@ export interface IDashboardProps {
28
28
  hideNavigation?: boolean;
29
29
  hideSubNavigation?: boolean;
30
30
  navigation?: {
31
+ searchPlaceholder?: string;
31
32
  showFilter?: boolean;
32
33
  showSearch?: boolean;
33
34
  title?: string | HTMLElement;
@@ -105,6 +105,7 @@ var Dashboard = /** @class */ (function () {
105
105
  // Call the event
106
106
  navProps_1.onShowFilter ? navProps_1.onShowFilter() : null;
107
107
  },
108
+ searchPlaceholder: navProps_1.searchPlaceholder
108
109
  });
109
110
  }
110
111
  // See if we are hiding the header
@@ -14,6 +14,7 @@ interface INavProps {
14
14
  onSearchRendered?: (el: HTMLElement) => void;
15
15
  onShowFilter?: () => void;
16
16
  onSearch?: (value: string) => void;
17
+ searchPlaceholder?: string;
17
18
  title: string | HTMLElement;
18
19
  }
19
20
  /**
@@ -30,7 +30,7 @@ var Navigation = /** @class */ (function () {
30
30
  hideButton: true,
31
31
  onChange: this._props.onSearch,
32
32
  onSearch: this._props.onSearch,
33
- placeholder: "Search this app",
33
+ placeholder: this._props.searchPlaceholder || "Search this app",
34
34
  }
35
35
  };
36
36
  // Call the rendering event