dattatable 2.0.5 → 2.0.6
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/itemForm.js +4 -0
- package/dist/dattatable.js +427 -427
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Comments.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +5 -5
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/enums/ActionButtonTypes.html +1 -1
- package/docs/interfaces/ICommentsItem.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +1 -1
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormTab.html +1 -1
- package/docs/interfaces/IItemFormTabInfo.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
package/build/itemForm.js
CHANGED
|
@@ -213,8 +213,10 @@ var ItemForm = /** @class */ (function () {
|
|
|
213
213
|
// Ensure the element exists
|
|
214
214
|
el = el || document.createElement("div");
|
|
215
215
|
// Set the form properties
|
|
216
|
+
var displayAttachments = tab ? tab.fields && tab.fields.indexOf("Attachments") >= 0 : true;
|
|
216
217
|
var props = {
|
|
217
218
|
el: el,
|
|
219
|
+
displayAttachments: displayAttachments,
|
|
218
220
|
info: this._info,
|
|
219
221
|
rowClassName: "mb-3",
|
|
220
222
|
includeFields: tab ? tab.fields : null,
|
|
@@ -238,8 +240,10 @@ var ItemForm = /** @class */ (function () {
|
|
|
238
240
|
// Ensure the element exists
|
|
239
241
|
el = el || document.createElement("div");
|
|
240
242
|
// Set the form properties
|
|
243
|
+
var displayAttachments = tab ? tab.fields && tab.fields.indexOf("Attachments") >= 0 : true;
|
|
241
244
|
var props = {
|
|
242
245
|
el: el,
|
|
246
|
+
displayAttachments: displayAttachments,
|
|
243
247
|
info: this._info,
|
|
244
248
|
rowClassName: "mb-3",
|
|
245
249
|
controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit,
|