dattatable 1.5.7 → 1.6.1

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 (35) hide show
  1. package/build/dashboard/footer.js +1 -0
  2. package/build/dashboard/navigation.js +1 -0
  3. package/build/itemForm.d.ts +3 -0
  4. package/build/itemForm.js +6 -5
  5. package/dist/dattatable.js +171 -171
  6. package/dist/dattatable.min.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CanvasForm.html +1 -1
  9. package/docs/classes/Dashboard.html +2 -2
  10. package/docs/classes/DataTable.html +2 -2
  11. package/docs/classes/Documents.html +5 -5
  12. package/docs/classes/FilterSlideout.html +1 -1
  13. package/docs/classes/Footer.html +1 -1
  14. package/docs/classes/Header.html +1 -1
  15. package/docs/classes/InstallationRequired.html +1 -1
  16. package/docs/classes/ItemForm.html +3 -3
  17. package/docs/classes/LoadingDialog.html +1 -1
  18. package/docs/classes/Modal.html +1 -1
  19. package/docs/classes/Navigation.html +1 -1
  20. package/docs/enums/ActionButtonTypes.html +1 -1
  21. package/docs/interfaces/IDashboardProps.html +1 -1
  22. package/docs/interfaces/IDataTable.html +1 -1
  23. package/docs/interfaces/IDataTableProps.html +1 -1
  24. package/docs/interfaces/IDocumentsProps.html +1 -1
  25. package/docs/interfaces/IFilterItem.html +1 -1
  26. package/docs/interfaces/IFilterProps.html +1 -1
  27. package/docs/interfaces/IFooterProps.html +1 -1
  28. package/docs/interfaces/IHeaderProps.html +1 -1
  29. package/docs/interfaces/IItemFormCreateProps.html +1 -1
  30. package/docs/interfaces/IItemFormEditProps.html +1 -1
  31. package/docs/interfaces/IItemFormViewProps.html +1 -1
  32. package/docs/interfaces/IShowDialogProps.html +1 -1
  33. package/docs/modules.html +1 -1
  34. package/package.json +2 -2
  35. package/pnpm-lock.yaml +4 -4
@@ -21,6 +21,7 @@ var Footer = /** @class */ (function () {
21
21
  // Define the default props
22
22
  var props = {
23
23
  el: this._props.el,
24
+ className: "navbar-expand",
24
25
  items: this._props.items,
25
26
  itemsEnd: this._props.itemsEnd
26
27
  };
@@ -23,6 +23,7 @@ var Navigation = /** @class */ (function () {
23
23
  var props = {
24
24
  el: this._props.el,
25
25
  brand: this._props.title,
26
+ className: "navbar-expand",
26
27
  enableSearch: this._props.hideSearch != null ? !this._props.hideSearch : null,
27
28
  items: this._props.items,
28
29
  itemsEnd: this._props.itemsEnd,
@@ -10,6 +10,7 @@ export interface IItemFormCreateProps {
10
10
  onUpdate?: (item?: any) => void;
11
11
  onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
12
12
  useModal?: boolean;
13
+ webUrl?: string;
13
14
  }
14
15
  /** Edit Item Properties */
15
16
  export interface IItemFormEditProps {
@@ -23,6 +24,7 @@ export interface IItemFormEditProps {
23
24
  onUpdate?: (item?: any) => void;
24
25
  onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
25
26
  useModal?: boolean;
27
+ webUrl?: string;
26
28
  }
27
29
  /** View Item Properties */
28
30
  export interface IItemFormViewProps {
@@ -33,6 +35,7 @@ export interface IItemFormViewProps {
33
35
  onSetFooter?: (el: HTMLElement) => void;
34
36
  onSetHeader?: (el: HTMLElement) => void;
35
37
  useModal?: boolean;
38
+ webUrl?: string;
36
39
  }
37
40
  /**
38
41
  * Item Form
package/build/itemForm.js CHANGED
@@ -80,7 +80,7 @@ var ItemForm = /** @class */ (function () {
80
80
  this._updateEvent = props.onUpdate;
81
81
  typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
82
82
  // Load the item
83
- this.load();
83
+ this.load(props.webUrl);
84
84
  };
85
85
  // Edits a task
86
86
  ItemForm.edit = function (props) {
@@ -96,7 +96,7 @@ var ItemForm = /** @class */ (function () {
96
96
  this._updateEvent = props.onUpdate;
97
97
  typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
98
98
  // Load the form
99
- this.load(props.itemId);
99
+ this.load(props.webUrl, props.itemId);
100
100
  };
101
101
  // Views the task
102
102
  ItemForm.view = function (props) {
@@ -109,11 +109,11 @@ var ItemForm = /** @class */ (function () {
109
109
  this._onSetHeader = props.onSetHeader;
110
110
  typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
111
111
  // Load the form
112
- this.load(props.itemId);
112
+ this.load(props.webUrl, props.itemId);
113
113
  };
114
114
  /** private static Methods */
115
115
  // Load the form information
116
- ItemForm.load = function (itemId) {
116
+ ItemForm.load = function (webUrl, itemId) {
117
117
  var _this = this;
118
118
  // Clear the forms
119
119
  this._displayForm = null;
@@ -125,7 +125,8 @@ var ItemForm = /** @class */ (function () {
125
125
  // Set the list form properties
126
126
  var listProps = {
127
127
  listName: this.ListName,
128
- itemId: itemId
128
+ itemId: itemId,
129
+ webUrl: webUrl
129
130
  };
130
131
  // Call the event
131
132
  listProps = this._onGetListInfo ? this._onGetListInfo(listProps) : listProps;