dattatable 2.10.84 → 2.10.86
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/build/common/itemForm.d.ts +1 -0
- package/build/common/itemForm.js +24 -0
- package/build/dashboard/accordion.d.ts +1 -1
- package/build/dashboard/accordion.js +1 -2
- package/build/dashboard/tiles.d.ts +1 -1
- package/build/dashboard/tiles.js +1 -2
- package/dist/dattatable.js +581 -581
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +6 -5
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -122,6 +122,7 @@ export declare class ItemForm {
|
|
|
122
122
|
static renderFooter(elForm: HTMLElement): void;
|
|
123
123
|
static view(props: IItemFormViewProps): PromiseLike<void>;
|
|
124
124
|
/** Private Methods */
|
|
125
|
+
private static clearProps;
|
|
125
126
|
private static load;
|
|
126
127
|
private static renderDisplayForm;
|
|
127
128
|
private static renderEditForm;
|
package/build/common/itemForm.js
CHANGED
|
@@ -99,6 +99,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
99
99
|
// Creates a new task
|
|
100
100
|
ItemForm.create = function (props) {
|
|
101
101
|
if (props === void 0) { props = {}; }
|
|
102
|
+
// Clear the properties
|
|
103
|
+
this.clearProps();
|
|
102
104
|
// Set the properties
|
|
103
105
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.New;
|
|
104
106
|
this._elForm = props.elForm;
|
|
@@ -121,6 +123,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
121
123
|
};
|
|
122
124
|
// Edits a task
|
|
123
125
|
ItemForm.edit = function (props) {
|
|
126
|
+
// Clear the properties
|
|
127
|
+
this.clearProps();
|
|
124
128
|
// Set the properties
|
|
125
129
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Edit;
|
|
126
130
|
this._elForm = props.elForm;
|
|
@@ -162,6 +166,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
162
166
|
};
|
|
163
167
|
// Views the task
|
|
164
168
|
ItemForm.view = function (props) {
|
|
169
|
+
// Clear the properties
|
|
170
|
+
this.clearProps();
|
|
165
171
|
// Set the properties
|
|
166
172
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Display;
|
|
167
173
|
this._elForm = props.elForm;
|
|
@@ -179,6 +185,24 @@ var ItemForm = /** @class */ (function () {
|
|
|
179
185
|
return this.load(props.webUrl, props.itemId);
|
|
180
186
|
};
|
|
181
187
|
/** Private Methods */
|
|
188
|
+
// Clears the properties
|
|
189
|
+
ItemForm.clearProps = function () {
|
|
190
|
+
this._elForm = null;
|
|
191
|
+
this._onCreateEditForm = null;
|
|
192
|
+
this._onCreateViewForm = null;
|
|
193
|
+
this._onFormButtonsRendering = null;
|
|
194
|
+
this._onFormRendered = null;
|
|
195
|
+
this._onGetListInfo = null;
|
|
196
|
+
this._onResetForm = null;
|
|
197
|
+
this._onSetFooter = null;
|
|
198
|
+
this._onSetHeader = null;
|
|
199
|
+
this._onShowForm = null;
|
|
200
|
+
this._onSave = null;
|
|
201
|
+
this._onValidation = null;
|
|
202
|
+
this._requestDigest = null;
|
|
203
|
+
this._tabInfo = null;
|
|
204
|
+
this._updateEvent = null;
|
|
205
|
+
};
|
|
182
206
|
// Load the form information
|
|
183
207
|
ItemForm.load = function (webUrl, itemId) {
|
|
184
208
|
var _this = this;
|
|
@@ -32,7 +32,7 @@ export declare class Accordion implements IAccordion {
|
|
|
32
32
|
private _props;
|
|
33
33
|
constructor(props: IAccordionProps);
|
|
34
34
|
private clearItem;
|
|
35
|
-
filter(values
|
|
35
|
+
filter(values: string[]): void;
|
|
36
36
|
private generateItem;
|
|
37
37
|
refresh(items?: any[]): void;
|
|
38
38
|
private render;
|
|
@@ -27,8 +27,7 @@ var Accordion = /** @class */ (function () {
|
|
|
27
27
|
};
|
|
28
28
|
// Filters the accordion
|
|
29
29
|
Accordion.prototype.filter = function (values) {
|
|
30
|
-
|
|
31
|
-
this._activeFilterValue = values.join('|');
|
|
30
|
+
this._activeFilterValue = values ? values.join('|') : "";
|
|
32
31
|
// Parse all accordion items
|
|
33
32
|
var items = this._props.el.querySelectorAll(".accordion-item");
|
|
34
33
|
for (var i = 0; i < items.length; i++) {
|
|
@@ -41,7 +41,7 @@ export declare class Tiles implements ITiles {
|
|
|
41
41
|
private _pagination;
|
|
42
42
|
private _props;
|
|
43
43
|
constructor(props: ITilesProps);
|
|
44
|
-
filter(values
|
|
44
|
+
filter(values: string[]): void;
|
|
45
45
|
private generateCard;
|
|
46
46
|
refresh(items?: any[]): void;
|
|
47
47
|
private render;
|
package/build/dashboard/tiles.js
CHANGED
|
@@ -19,8 +19,7 @@ var Tiles = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
// Filters the tile
|
|
21
21
|
Tiles.prototype.filter = function (values) {
|
|
22
|
-
|
|
23
|
-
this._activeFilterValue = values.join('|');
|
|
22
|
+
this._activeFilterValue = values ? values.join('|') : "";
|
|
24
23
|
// Parse all tile
|
|
25
24
|
var tiles = this._props.el.querySelectorAll(".card");
|
|
26
25
|
for (var i = 0; i < tiles.length; i++) {
|