dattatable 1.7.6 → 1.7.9
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/canvas.js +3 -0
- package/build/common/modal.js +10 -0
- package/build/dashboard/table.d.ts +1 -1
- package/build/dashboard/table.js +1 -0
- package/build/itemForm.d.ts +28 -3
- package/build/itemForm.js +284 -151
- package/build/styles.js +1 -1
- package/dist/dattatable.js +663 -663
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CanvasForm.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 +4 -4
- 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/index.html +3 -2
- 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 +3 -0
- package/docs/interfaces/IItemFormTabInfo.html +3 -0
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +4 -4
- package/pnpm-lock.yaml +94 -72
package/build/itemForm.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.ItemForm = void 0;
|
|
4
15
|
var gd_sprest_bs_1 = require("gd-sprest-bs");
|
|
@@ -19,12 +30,12 @@ var ItemForm = /** @class */ (function () {
|
|
|
19
30
|
configurable: true
|
|
20
31
|
});
|
|
21
32
|
Object.defineProperty(ItemForm, "DisplayForm", {
|
|
22
|
-
get: function () { return this.
|
|
33
|
+
get: function () { return this._displayForms[0]; },
|
|
23
34
|
enumerable: false,
|
|
24
35
|
configurable: true
|
|
25
36
|
});
|
|
26
37
|
Object.defineProperty(ItemForm, "EditForm", {
|
|
27
|
-
get: function () { return this.
|
|
38
|
+
get: function () { return this._editForms[0]; },
|
|
28
39
|
enumerable: false,
|
|
29
40
|
configurable: true
|
|
30
41
|
});
|
|
@@ -70,6 +81,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
70
81
|
if (props === void 0) { props = {}; }
|
|
71
82
|
// Set the properties
|
|
72
83
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.New;
|
|
84
|
+
this._info = props.info;
|
|
73
85
|
this._onCreateEditForm = props.onCreateEditForm;
|
|
74
86
|
this._onFormButtonsRendering = props.onFormButtonsRendering;
|
|
75
87
|
this._onGetListInfo = props.onGetListInfo;
|
|
@@ -77,6 +89,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
77
89
|
this._onSetFooter = props.onSetFooter;
|
|
78
90
|
this._onSetHeader = props.onSetHeader;
|
|
79
91
|
this._onValidation = props.onValidation;
|
|
92
|
+
this._tabInfo = props.tabInfo;
|
|
80
93
|
this._updateEvent = props.onUpdate;
|
|
81
94
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
82
95
|
// Load the item
|
|
@@ -86,6 +99,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
86
99
|
ItemForm.edit = function (props) {
|
|
87
100
|
// Set the properties
|
|
88
101
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Edit;
|
|
102
|
+
this._info = props.info;
|
|
89
103
|
this._onCreateEditForm = props.onCreateEditForm;
|
|
90
104
|
this._onFormButtonsRendering = props.onFormButtonsRendering;
|
|
91
105
|
this._onGetListInfo = props.onGetListInfo;
|
|
@@ -93,203 +107,323 @@ var ItemForm = /** @class */ (function () {
|
|
|
93
107
|
this._onSetFooter = props.onSetFooter;
|
|
94
108
|
this._onSetHeader = props.onSetHeader;
|
|
95
109
|
this._onValidation = props.onValidation;
|
|
110
|
+
this._tabInfo = props.tabInfo;
|
|
96
111
|
this._updateEvent = props.onUpdate;
|
|
97
112
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
98
113
|
// Load the form
|
|
99
114
|
this.load(props.webUrl, props.itemId);
|
|
100
115
|
};
|
|
116
|
+
// Loads the form information
|
|
117
|
+
ItemForm.loadFormInfo = function (props) {
|
|
118
|
+
var _this = this;
|
|
119
|
+
// Return a promise
|
|
120
|
+
return new Promise(function (resolve) {
|
|
121
|
+
// Load the form info
|
|
122
|
+
gd_sprest_bs_1.Helper.ListForm.create(props).then(function (info) {
|
|
123
|
+
// Save the information
|
|
124
|
+
_this._info = info;
|
|
125
|
+
// Resolve the request
|
|
126
|
+
resolve();
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
101
130
|
// Views the task
|
|
102
131
|
ItemForm.view = function (props) {
|
|
103
132
|
// Set the properties
|
|
104
133
|
this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Display;
|
|
134
|
+
this._info = props.info;
|
|
105
135
|
this._onCreateViewForm = props.onCreateViewForm;
|
|
106
136
|
this._onFormButtonsRendering = props.onFormButtonsRendering;
|
|
107
137
|
this._onGetListInfo = props.onGetListInfo;
|
|
108
138
|
this._onSetFooter = props.onSetFooter;
|
|
109
139
|
this._onSetHeader = props.onSetHeader;
|
|
140
|
+
this._tabInfo = props.tabInfo;
|
|
110
141
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
111
142
|
// Load the form
|
|
112
143
|
this.load(props.webUrl, props.itemId);
|
|
113
144
|
};
|
|
114
|
-
/**
|
|
145
|
+
/** Private Methods */
|
|
115
146
|
// Load the form information
|
|
116
147
|
ItemForm.load = function (webUrl, itemId) {
|
|
117
148
|
var _this = this;
|
|
118
149
|
// Clear the forms
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
150
|
+
this._displayForms = [];
|
|
151
|
+
this._editForms = [];
|
|
121
152
|
// Show a loading dialog
|
|
122
153
|
common_1.LoadingDialog.setHeader("Loading the Item");
|
|
123
154
|
common_1.LoadingDialog.setBody("This will close after the form is loaded...");
|
|
124
155
|
common_1.LoadingDialog.show();
|
|
125
|
-
// Set the list form properties
|
|
126
|
-
var listProps = {
|
|
127
|
-
listName: this.ListName,
|
|
128
|
-
itemId: itemId,
|
|
129
|
-
webUrl: webUrl
|
|
130
|
-
};
|
|
131
|
-
// Call the event
|
|
132
|
-
listProps = this._onGetListInfo ? this._onGetListInfo(listProps) : listProps;
|
|
133
156
|
// Load the form information
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
// Add styling if not using a modal
|
|
159
|
-
if (!_this._useModal) {
|
|
160
|
-
elButtons.classList.add("float-end");
|
|
161
|
-
elButtons.style.padding = "1rem 0";
|
|
157
|
+
(function () {
|
|
158
|
+
// Return a promise
|
|
159
|
+
return new Promise(function (resolve) {
|
|
160
|
+
// See if the info already exists
|
|
161
|
+
if (_this._info) {
|
|
162
|
+
// Resolve the request
|
|
163
|
+
resolve();
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
// Set the list form properties
|
|
167
|
+
var listProps = {
|
|
168
|
+
listName: _this.ListName,
|
|
169
|
+
itemId: itemId,
|
|
170
|
+
webUrl: webUrl
|
|
171
|
+
};
|
|
172
|
+
// Call the event
|
|
173
|
+
listProps = _this._onGetListInfo ? _this._onGetListInfo(listProps) : listProps;
|
|
174
|
+
// Load the form info
|
|
175
|
+
gd_sprest_bs_1.Helper.ListForm.create(listProps).then(function (info) {
|
|
176
|
+
// Save the information
|
|
177
|
+
_this._info = info;
|
|
178
|
+
// Resolve the request
|
|
179
|
+
resolve();
|
|
180
|
+
});
|
|
162
181
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
182
|
+
});
|
|
183
|
+
})().then(function () {
|
|
184
|
+
// Render the form
|
|
185
|
+
_this.renderForm();
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
// Renders the display form
|
|
189
|
+
ItemForm.renderDisplayForm = function (el, tab) {
|
|
190
|
+
// Ensure the element exists
|
|
191
|
+
el = el || document.createElement("div");
|
|
192
|
+
// Set the form properties
|
|
193
|
+
var props = {
|
|
194
|
+
el: el,
|
|
195
|
+
info: this._info,
|
|
196
|
+
rowClassName: "mb-3",
|
|
197
|
+
includeFields: tab.fields,
|
|
198
|
+
onFormRendered: function (form) {
|
|
199
|
+
/* Remove the bottom margin from the last row of the form */
|
|
200
|
+
form.el.lastChild.classList.remove("mb-3");
|
|
177
201
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
202
|
+
};
|
|
203
|
+
// Call the event if it exists
|
|
204
|
+
props = this._onCreateViewForm ? this._onCreateViewForm(props) : props;
|
|
205
|
+
// Render the display form
|
|
206
|
+
var form = gd_sprest_bs_1.Components.ListForm.renderDisplayForm(props);
|
|
207
|
+
this._displayForms.push(form);
|
|
208
|
+
// Return the form element
|
|
209
|
+
return el;
|
|
210
|
+
};
|
|
211
|
+
// Renders the edit form
|
|
212
|
+
ItemForm.renderEditForm = function (el, tab) {
|
|
213
|
+
// Ensure the element exists
|
|
214
|
+
el = el || document.createElement("div");
|
|
215
|
+
// Set the form properties
|
|
216
|
+
var props = {
|
|
217
|
+
el: el,
|
|
218
|
+
info: this._info,
|
|
219
|
+
rowClassName: "mb-3",
|
|
220
|
+
controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit,
|
|
221
|
+
includeFields: tab.fields,
|
|
222
|
+
onFormRendered: function (form) {
|
|
190
223
|
/* Remove the bottom margin from the last row of the form */
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
224
|
+
form.el.lastChild.classList.remove("mb-3");
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
// Call the event if it exists
|
|
228
|
+
props = this._onCreateEditForm ? this._onCreateEditForm(props) : props;
|
|
229
|
+
// Render the edit form
|
|
230
|
+
var form = gd_sprest_bs_1.Components.ListForm.renderEditForm(props);
|
|
231
|
+
this._editForms.push(form);
|
|
232
|
+
// Return the form element
|
|
233
|
+
return el;
|
|
234
|
+
};
|
|
235
|
+
// Renders the footer
|
|
236
|
+
ItemForm.renderFooter = function () {
|
|
237
|
+
var _this = this;
|
|
238
|
+
// Render the form buttons
|
|
239
|
+
var elButtons = document.createElement("div");
|
|
240
|
+
// Add styling if not using a modal
|
|
241
|
+
if (!this._useModal) {
|
|
242
|
+
elButtons.classList.add("float-end");
|
|
243
|
+
elButtons.style.padding = "1rem 0";
|
|
244
|
+
}
|
|
245
|
+
// Append the create/update button
|
|
246
|
+
this._useModal ? common_1.Modal.setFooter(elButtons) : common_1.CanvasForm.BodyElement.appendChild(elButtons);
|
|
247
|
+
// See if we are rendering a display form
|
|
248
|
+
if (this.IsDisplay) {
|
|
249
|
+
// Call the item form button rendering event
|
|
250
|
+
var formButtons = [];
|
|
251
|
+
formButtons = this._onFormButtonsRendering ? this._onFormButtonsRendering(formButtons) : formButtons;
|
|
252
|
+
// Render the form buttons
|
|
253
|
+
formButtons && formButtons.length > 0 ? gd_sprest_bs_1.Components.ButtonGroup({
|
|
254
|
+
el: elButtons,
|
|
255
|
+
buttons: formButtons
|
|
256
|
+
}) : null;
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
// Call the item form button rendering event
|
|
260
|
+
var formButtons = [{
|
|
261
|
+
text: this.IsNew ? "Create" : "Update",
|
|
262
|
+
type: gd_sprest_bs_1.Components.ButtonTypes.OutlinePrimary,
|
|
263
|
+
onClick: function () { _this.save(); }
|
|
264
|
+
}];
|
|
265
|
+
formButtons = this._onFormButtonsRendering ? this._onFormButtonsRendering(formButtons) : formButtons;
|
|
266
|
+
// Render the form buttons
|
|
267
|
+
formButtons && formButtons.length > 0 ? gd_sprest_bs_1.Components.ButtonGroup({
|
|
268
|
+
el: elButtons,
|
|
269
|
+
buttons: formButtons
|
|
270
|
+
}) : null;
|
|
271
|
+
}
|
|
272
|
+
// Call the footer event
|
|
273
|
+
this._onSetFooter ? this._onSetFooter(this._useModal ? common_1.Modal.FooterElement : elButtons) : null;
|
|
274
|
+
};
|
|
275
|
+
// Renders the form
|
|
276
|
+
ItemForm.renderForm = function () {
|
|
277
|
+
// Set the header
|
|
278
|
+
(this._useModal ? common_1.Modal : common_1.CanvasForm).setHeader('<h5 class="m-0">' + (this._info.item ? this._info.item.Title : "Create Item") + '</h5>');
|
|
279
|
+
// Call the header event
|
|
280
|
+
this._onSetHeader ? this._onSetHeader(this._useModal ? common_1.Modal.HeaderElement : common_1.CanvasForm.HeaderElement) : null;
|
|
281
|
+
// See if we are rendering tabs
|
|
282
|
+
if (this._tabInfo) {
|
|
283
|
+
// Render the tabs
|
|
284
|
+
this.renderTabs();
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
// Render the form based on the type
|
|
288
|
+
var elForm = this.IsDisplay ? this.renderDisplayForm() : this.renderEditForm();
|
|
289
|
+
// Update the body
|
|
290
|
+
(this._useModal ? common_1.Modal : common_1.CanvasForm).setBody(elForm);
|
|
291
|
+
}
|
|
292
|
+
// Render the footer
|
|
293
|
+
this.renderFooter();
|
|
294
|
+
// Close the dialog
|
|
295
|
+
common_1.LoadingDialog.hide();
|
|
296
|
+
// Show the form
|
|
297
|
+
(this._useModal ? common_1.Modal : common_1.CanvasForm).show();
|
|
298
|
+
};
|
|
299
|
+
// Generates a tab
|
|
300
|
+
ItemForm.renderTabs = function () {
|
|
301
|
+
var _this = this;
|
|
302
|
+
var tabs = [];
|
|
303
|
+
// Parse the tabs to render
|
|
304
|
+
for (var i = 0; i < this._tabInfo.tabs.length; i++) {
|
|
305
|
+
var tabInfo = this._tabInfo.tabs[i];
|
|
306
|
+
// Generate the tab
|
|
307
|
+
var tab = {
|
|
308
|
+
data: tabInfo,
|
|
309
|
+
isActive: i == 0,
|
|
310
|
+
tabName: tabInfo.title,
|
|
311
|
+
onRender: function (el, item) {
|
|
312
|
+
// Render the form
|
|
313
|
+
_this.IsDisplay ? _this.renderDisplayForm(el, item.data) : _this.renderEditForm(el, item.data);
|
|
314
|
+
// Call the event
|
|
315
|
+
var tab = item.data;
|
|
316
|
+
tab.onRendered ? tab.onRendered(el, item) : null;
|
|
198
317
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
onClick: function () { _this.save(_this._editForm); }
|
|
206
|
-
}];
|
|
207
|
-
formButtons = _this._onFormButtonsRendering ? _this._onFormButtonsRendering(formButtons) : formButtons;
|
|
208
|
-
// Render the form buttons
|
|
209
|
-
formButtons && formButtons.length > 0 ? gd_sprest_bs_1.Components.ButtonGroup({
|
|
210
|
-
el: elButtons,
|
|
211
|
-
buttons: formButtons
|
|
212
|
-
}) : null;
|
|
213
|
-
// Call the footer event
|
|
214
|
-
_this._onSetFooter ? _this._onSetFooter(_this._useModal ? common_1.Modal.FooterElement : elButtons) : null;
|
|
215
|
-
// Update the body
|
|
216
|
-
(_this._useModal ? common_1.Modal : common_1.CanvasForm).setBody(el);
|
|
318
|
+
};
|
|
319
|
+
// Call the rendering event
|
|
320
|
+
tab = tabInfo.onRendering ? tabInfo.onRendering(tab) : tab;
|
|
321
|
+
if (tab) {
|
|
322
|
+
// Append the tab
|
|
323
|
+
tabs.push(tab);
|
|
217
324
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
325
|
+
}
|
|
326
|
+
// Render the tabs
|
|
327
|
+
return gd_sprest_bs_1.Components.ListGroup({
|
|
328
|
+
el: this.UseModal ? common_1.Modal.BodyElement : common_1.CanvasForm.BodyElement,
|
|
329
|
+
colWidth: this._tabInfo.isVertical ? 4 : 12,
|
|
330
|
+
isTabs: true,
|
|
331
|
+
isHorizontal: this._tabInfo.isVertical != true,
|
|
332
|
+
items: tabs
|
|
333
|
+
}).el;
|
|
223
334
|
};
|
|
224
335
|
// Saves the edit form
|
|
225
336
|
ItemForm.save = function (form) {
|
|
226
337
|
var _this = this;
|
|
227
|
-
if (form === void 0) { form = this.
|
|
228
|
-
|
|
229
|
-
|
|
338
|
+
if (form === void 0) { form = this._editForms[0]; }
|
|
339
|
+
var forms = form ? [form] : this._editForms;
|
|
340
|
+
var values = {};
|
|
341
|
+
// Display a loading dialog
|
|
342
|
+
common_1.LoadingDialog.setHeader("Validation");
|
|
343
|
+
common_1.LoadingDialog.setBody("Validating the form...");
|
|
344
|
+
common_1.LoadingDialog.show();
|
|
345
|
+
// Validate the forms
|
|
346
|
+
var isValid = true;
|
|
347
|
+
gd_sprest_bs_1.Helper.Executor(forms, function (form) {
|
|
348
|
+
// Return a promise
|
|
349
|
+
return new Promise(function (resolve) {
|
|
350
|
+
// Validate the form
|
|
351
|
+
_this.validate(form).then(
|
|
352
|
+
// Valid
|
|
353
|
+
function () {
|
|
354
|
+
// Update the values
|
|
355
|
+
values = __assign(__assign({}, values), form.getValues());
|
|
356
|
+
// Resolve the request
|
|
357
|
+
resolve(null);
|
|
358
|
+
},
|
|
359
|
+
// Not Valid
|
|
360
|
+
function () {
|
|
361
|
+
// Set the flag
|
|
362
|
+
isValid = false;
|
|
363
|
+
// Resolve the request
|
|
364
|
+
resolve(null);
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
}).then(
|
|
230
368
|
// Success
|
|
231
369
|
function () {
|
|
232
|
-
//
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
//
|
|
255
|
-
|
|
370
|
+
// See if the form(s) are valid
|
|
371
|
+
if (isValid) {
|
|
372
|
+
// Call the custom validation event
|
|
373
|
+
_this.validate(values).then(
|
|
374
|
+
// Valid
|
|
375
|
+
function () {
|
|
376
|
+
// Update the loading dialog
|
|
377
|
+
common_1.LoadingDialog.setHeader("Saving the Item");
|
|
378
|
+
common_1.LoadingDialog.setBody((_this.IsNew ? "Creating" : "Updating") + " the Item");
|
|
379
|
+
// Saves the item
|
|
380
|
+
var saveItem = function (values) {
|
|
381
|
+
// Save the item
|
|
382
|
+
form.save(values).then(function (item) {
|
|
383
|
+
// Call the update event
|
|
384
|
+
_this._updateEvent ? _this._updateEvent(item) : null;
|
|
385
|
+
// Close the dialogs
|
|
386
|
+
(_this._useModal ? common_1.Modal : common_1.CanvasForm).hide();
|
|
387
|
+
common_1.LoadingDialog.hide();
|
|
388
|
+
});
|
|
389
|
+
};
|
|
390
|
+
// Call the save event
|
|
391
|
+
values = _this._onSave ? _this._onSave(values) : values;
|
|
392
|
+
// See if the onSave event returned a promise
|
|
393
|
+
if (values && typeof (values["then"]) === "function") {
|
|
394
|
+
// Wait for the promise to complete
|
|
395
|
+
values["then"](function (values) {
|
|
396
|
+
// Save the item
|
|
397
|
+
saveItem(values);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
// Save the item
|
|
402
|
+
saveItem(values);
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
// Not Valid
|
|
406
|
+
function () {
|
|
407
|
+
// Do nothing
|
|
256
408
|
});
|
|
257
409
|
}
|
|
258
410
|
else {
|
|
259
|
-
//
|
|
260
|
-
|
|
411
|
+
// Close the dialog
|
|
412
|
+
common_1.LoadingDialog.hide();
|
|
261
413
|
}
|
|
262
|
-
},
|
|
263
|
-
// Error
|
|
264
|
-
function () {
|
|
265
|
-
// Do Nothing
|
|
266
414
|
});
|
|
267
415
|
};
|
|
268
416
|
// Validates the form
|
|
269
|
-
ItemForm.validate = function (
|
|
417
|
+
ItemForm.validate = function (values) {
|
|
270
418
|
var _this = this;
|
|
271
419
|
// Return a promise
|
|
272
420
|
return new Promise(function (resolve, reject) {
|
|
273
|
-
var isValid =
|
|
274
|
-
// Display a loading dialog
|
|
275
|
-
common_1.LoadingDialog.setHeader("Validation");
|
|
276
|
-
common_1.LoadingDialog.setBody("Validating the form...");
|
|
277
|
-
common_1.LoadingDialog.show();
|
|
278
|
-
// Ensure it's valid
|
|
279
|
-
if (!isValid) {
|
|
280
|
-
// Close the dialog
|
|
281
|
-
common_1.LoadingDialog.hide();
|
|
282
|
-
// Reject the request
|
|
283
|
-
reject();
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
421
|
+
var isValid = true;
|
|
286
422
|
// Call the validation event
|
|
287
|
-
var returnVal = _this._onValidation ? _this._onValidation(
|
|
423
|
+
var returnVal = _this._onValidation ? _this._onValidation(values) : null;
|
|
288
424
|
if (returnVal && typeof (returnVal.then) === "function") {
|
|
289
425
|
// Wait for the promise to complete
|
|
290
426
|
returnVal.then(function (isValid) {
|
|
291
|
-
// Close the dialog
|
|
292
|
-
common_1.LoadingDialog.hide();
|
|
293
427
|
// Resolve the request
|
|
294
428
|
isValid ? resolve() : reject();
|
|
295
429
|
});
|
|
@@ -299,8 +433,6 @@ var ItemForm = /** @class */ (function () {
|
|
|
299
433
|
// Update the flag
|
|
300
434
|
isValid = returnVal;
|
|
301
435
|
}
|
|
302
|
-
// Close the dialog
|
|
303
|
-
common_1.LoadingDialog.hide();
|
|
304
436
|
// Resolve the request
|
|
305
437
|
isValid ? resolve() : reject();
|
|
306
438
|
}
|
|
@@ -314,11 +446,12 @@ var ItemForm = /** @class */ (function () {
|
|
|
314
446
|
ItemForm._onSetHeader = null;
|
|
315
447
|
ItemForm._onSave = null;
|
|
316
448
|
ItemForm._onValidation = null;
|
|
449
|
+
ItemForm._tabInfo = null;
|
|
317
450
|
ItemForm._updateEvent = null;
|
|
318
451
|
// Display Form
|
|
319
|
-
ItemForm.
|
|
452
|
+
ItemForm._displayForms = null;
|
|
320
453
|
// Edit Form
|
|
321
|
-
ItemForm.
|
|
454
|
+
ItemForm._editForms = null;
|
|
322
455
|
// Form Information
|
|
323
456
|
ItemForm._info = null;
|
|
324
457
|
// Form Modes
|
package/build/styles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t,a,e,d,l,r,o,i,b,n,s,c,p,h,f={309:(t,a,e)=>{e.d(a,{Z:()=>r});var d=e(218),l=e.n(d)()((function(t){return t[1]}));l.push([t.id,'table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable td.dt-control{text-align:center;cursor:pointer}table.dataTable td.dt-control:before{height:1em;width:1em;margin-top:-9px;display:inline-block;color:white;border:.15em solid white;border-radius:1em;box-shadow:0 0 .2em #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:"Courier New",Courier,monospace;line-height:1em;content:"+";background-color:#31b131}table.dataTable tr.dt-hasChild td.dt-control:before{content:"-";background-color:#d33333}/*! Bootstrap 5 integration for DataTables\n *\n * ©2020 SpryMedia Ltd, all rights reserved.\n * License: MIT datatables.net/license/mit\n */table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important;border-spacing:0}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:.85em}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap;justify-content:flex-end}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable>thead>tr>th:active,table.dataTable>thead>tr>td:active{outline:none}table.dataTable>thead>tr>th:not(.sorting_disabled),table.dataTable>thead>tr>td:not(.sorting_disabled){padding-right:30px}table.dataTable>thead .sorting,table.dataTable>thead .sorting_asc,table.dataTable>thead .sorting_desc,table.dataTable>thead .sorting_asc_disabled,table.dataTable>thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable>thead .sorting:before,table.dataTable>thead .sorting:after,table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_asc:after,table.dataTable>thead .sorting_desc:before,table.dataTable>thead .sorting_desc:after,table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_asc_disabled:after,table.dataTable>thead .sorting_desc_disabled:before,table.dataTable>thead .sorting_desc_disabled:after{position:absolute;bottom:.5em;display:block;opacity:.3}table.dataTable>thead .sorting:before,table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_desc:before,table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_desc_disabled:before{right:1em;content:"↑"}table.dataTable>thead .sorting:after,table.dataTable>thead .sorting_asc:after,table.dataTable>thead .sorting_desc:after,table.dataTable>thead .sorting_asc_disabled:after,table.dataTable>thead .sorting_desc_disabled:after{right:.5em;content:"↓"}table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_desc:after{opacity:1}table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_desc_disabled:after{opacity:0}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:before,div.dataTables_scrollBody>table>thead .sorting_asc:before,div.dataTables_scrollBody>table>thead .sorting_desc:before,div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody tr:first-child th,div.dataTables_scrollBody>table>tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}div.dataTables_wrapper div.dataTables_paginate ul.pagination{justify-content:center !important}}table.dataTable.table-sm>thead>tr>th:not(.sorting_disabled){padding-right:20px}table.dataTable.table-sm .sorting:before,table.dataTable.table-sm .sorting_asc:before,table.dataTable.table-sm .sorting_desc:before{top:5px;right:.85em}table.dataTable.table-sm .sorting:after,table.dataTable.table-sm .sorting_asc:after,table.dataTable.table-sm .sorting_desc:after{top:5px}table.table-bordered.dataTable{border-right-width:0}table.table-bordered.dataTable thead tr:first-child th,table.table-bordered.dataTable thead tr:first-child td{border-top-width:1px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:first-child,table.table-bordered.dataTable th:first-child,table.table-bordered.dataTable td:first-child,table.table-bordered.dataTable td:first-child{border-left-width:1px}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:1px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-bottom-width:1px}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1){--bs-table-accent-bg: transparent}table.dataTable.table-striped>tbody>tr.odd{--bs-table-accent-bg: var(--bs-table-striped-bg)}\n',""]);const r=l},778:(t,a,e)=>{e.d(a,{Z:()=>i});var d=e(218),l=e.n(d),r=e(309),o=l()((function(t){return t[1]}));o.i(r.Z),o.push([t.id,".bs .img-flip-x{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.bs .img-flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}#footer nav{background-color:#fff !important;padding:0 !important}#loading-dialog{left:50%;top:50%;position:absolute;transform:translate(-50%, -50%);width:80vw;z-index:2010}#loading-dialog div.d-flex{align-items:center;background-color:#fff;border-radius:.3rem;border:1px solid rgba(0,0,0,.2);background-clip:padding-box;margin:30vh 30vw}#loading-dialog div.d-flex div[role=status]{color:#0078d4 !important;height:3rem;width:3rem}#loading-dialog-backdrop{background-color:#000;height:100vh;left:0px;opacity:.5;position:fixed;top:0px;width:100vw;z-index:2000}#footer nav div.container-fluid,#navigation nav div.container-fluid,#sub-navigation nav div.container-fluid{padding-right:.75rem}#sub-navigation nav.sub-nav{background-color:rgba(0,0,0,.05) !important;border:3px solid #dee2e6;border-top:0}",""]);const i=o},218:t=>{t.exports=function(t){var a=[];return a.toString=function(){return this.map((function(a){var e=t(a);return a[2]?"@media ".concat(a[2]," {").concat(e,"}"):e})).join("")},a.i=function(t,e,d){"string"==typeof t&&(t=[[null,t,""]]);var l={};if(d)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(l[o]=!0)}for(var i=0;i<t.length;i++){var b=[].concat(t[i]);d&&l[b[0]]||(e&&(b[2]?b[2]="".concat(e," and ").concat(b[2]):b[2]=e),a.push(b))}},a}},590:t=>{var a=[];function e(t){for(var e=-1,d=0;d<a.length;d++)if(a[d].identifier===t){e=d;break}return e}function d(t,d){for(var r={},o=[],i=0;i<t.length;i++){var b=t[i],n=d.base?b[0]+d.base:b[0],s=r[n]||0,c="".concat(n," ").concat(s);r[n]=s+1;var p=e(c),h={css:b[1],media:b[2],sourceMap:b[3],supports:b[4],layer:b[5]};if(-1!==p)a[p].references++,a[p].updater(h);else{var f=l(h,d);d.byIndex=i,a.splice(i,0,{identifier:c,updater:f,references:1})}o.push(c)}return o}function l(t,a){var e=a.domAPI(a);return e.update(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap&&a.supports===t.supports&&a.layer===t.layer)return;e.update(t=a)}else e.remove()}}t.exports=function(t,l){var r=d(t=t||[],l=l||{});return function(t){t=t||[];for(var o=0;o<r.length;o++){var i=e(r[o]);a[i].references--}for(var b=d(t,l),n=0;n<r.length;n++){var s=e(r[n]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}r=b}}},804:t=>{var a={};t.exports=function(t,e){var d=function(t){if(void 0===a[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}a[t]=e}return a[t]}(t);if(!d)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");d.appendChild(e)}},980:t=>{t.exports=function(t){var a=document.createElement("style");return t.setAttributes(a,t.attributes),t.insert(a,t.options),a}},98:(t,a,e)=>{t.exports=function(t){var a=e.nc;a&&t.setAttribute("nonce",a)}},937:t=>{t.exports=function(t){var a=t.insertStyleElement(t);return{update:function(e){!function(t,a,e){var d="";e.supports&&(d+="@supports (".concat(e.supports,") {")),e.media&&(d+="@media ".concat(e.media," {"));var l=void 0!==e.layer;l&&(d+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),d+=e.css,l&&(d+="}"),e.media&&(d+="}"),e.supports&&(d+="}");var r=e.sourceMap;r&&"undefined"!=typeof btoa&&(d+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),a.styleTagTransform(d,t,a.options)}(a,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(a)}}}},776:t=>{t.exports=function(t,a){if(a.styleSheet)a.styleSheet.cssText=t;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(t))}}}},g={};function T(t){var a=g[t];if(void 0!==a)return a.exports;var e=g[t]={id:t,exports:{}};return f[t](e,e.exports,T),e.exports}T.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return T.d(a,{a}),a},T.d=(t,a)=>{for(var e in a)T.o(a,e)&&!T.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},T.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),t=T(590),a=T.n(t),e=T(937),d=T.n(e),l=T(804),r=T.n(l),o=T(98),i=T.n(o),b=T(980),n=T.n(b),s=T(776),c=T.n(s),p=T(778),(h={}).styleTagTransform=c(),h.setAttributes=i(),h.insert=r().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=n(),a()(p.Z,h),p.Z&&p.Z.locals&&p.Z.locals})();
|
|
1
|
+
(()=>{"use strict";var t,a,e,d,l,r,o,i,b,n,s,c,p,h,f={309:(t,a,e)=>{e.d(a,{Z:()=>r});var d=e(218),l=e.n(d)()((function(t){return t[1]}));l.push([t.id,'table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable td.dt-control{text-align:center;cursor:pointer}table.dataTable td.dt-control:before{height:1em;width:1em;margin-top:-9px;display:inline-block;color:white;border:.15em solid white;border-radius:1em;box-shadow:0 0 .2em #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:"Courier New",Courier,monospace;line-height:1em;content:"+";background-color:#31b131}table.dataTable tr.dt-hasChild td.dt-control:before{content:"-";background-color:#d33333}/*! Bootstrap 5 integration for DataTables\n *\n * ©2020 SpryMedia Ltd, all rights reserved.\n * License: MIT datatables.net/license/mit\n */table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important;border-spacing:0}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:.85em}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap;justify-content:flex-end}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable>thead>tr>th:active,table.dataTable>thead>tr>td:active{outline:none}table.dataTable>thead>tr>th:not(.sorting_disabled),table.dataTable>thead>tr>td:not(.sorting_disabled){padding-right:30px}table.dataTable>thead .sorting,table.dataTable>thead .sorting_asc,table.dataTable>thead .sorting_desc,table.dataTable>thead .sorting_asc_disabled,table.dataTable>thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable>thead .sorting:before,table.dataTable>thead .sorting:after,table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_asc:after,table.dataTable>thead .sorting_desc:before,table.dataTable>thead .sorting_desc:after,table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_asc_disabled:after,table.dataTable>thead .sorting_desc_disabled:before,table.dataTable>thead .sorting_desc_disabled:after{position:absolute;bottom:.5em;display:block;opacity:.3}table.dataTable>thead .sorting:before,table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_desc:before,table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_desc_disabled:before{right:1em;content:"↑"}table.dataTable>thead .sorting:after,table.dataTable>thead .sorting_asc:after,table.dataTable>thead .sorting_desc:after,table.dataTable>thead .sorting_asc_disabled:after,table.dataTable>thead .sorting_desc_disabled:after{right:.5em;content:"↓"}table.dataTable>thead .sorting_asc:before,table.dataTable>thead .sorting_desc:after{opacity:1}table.dataTable>thead .sorting_asc_disabled:before,table.dataTable>thead .sorting_desc_disabled:after{opacity:0}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:before,div.dataTables_scrollBody>table>thead .sorting_asc:before,div.dataTables_scrollBody>table>thead .sorting_desc:before,div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody tr:first-child th,div.dataTables_scrollBody>table>tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}div.dataTables_wrapper div.dataTables_paginate ul.pagination{justify-content:center !important}}table.dataTable.table-sm>thead>tr>th:not(.sorting_disabled){padding-right:20px}table.dataTable.table-sm .sorting:before,table.dataTable.table-sm .sorting_asc:before,table.dataTable.table-sm .sorting_desc:before{top:5px;right:.85em}table.dataTable.table-sm .sorting:after,table.dataTable.table-sm .sorting_asc:after,table.dataTable.table-sm .sorting_desc:after{top:5px}table.table-bordered.dataTable{border-right-width:0}table.table-bordered.dataTable thead tr:first-child th,table.table-bordered.dataTable thead tr:first-child td{border-top-width:1px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:first-child,table.table-bordered.dataTable th:first-child,table.table-bordered.dataTable td:first-child,table.table-bordered.dataTable td:first-child{border-left-width:1px}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:1px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-bottom-width:1px}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1){--bs-table-accent-bg: transparent}table.dataTable.table-striped>tbody>tr.odd{--bs-table-accent-bg: var(--bs-table-striped-bg)}\n',""]);const r=l},115:(t,a,e)=>{e.d(a,{Z:()=>i});var d=e(218),l=e.n(d),r=e(309),o=l()((function(t){return t[1]}));o.i(r.Z),o.push([t.id,".bs .img-flip-x{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.bs .img-flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}#footer nav{background-color:#fff !important;padding:0 !important}#loading-dialog{left:50%;top:50%;position:absolute;transform:translate(-50%, -50%);width:80vw;z-index:2010}#loading-dialog div.d-flex{align-items:center;background-color:#fff;border-radius:.3rem;border:1px solid rgba(0,0,0,.2);background-clip:padding-box;margin:30vh 30vw}#loading-dialog div.d-flex div[role=status]{color:#0078d4 !important;height:3rem;width:3rem}#loading-dialog-backdrop{background-color:#000;height:100vh;left:0px;opacity:.5;position:fixed;top:0px;width:100vw;z-index:2000}#footer nav div.container-fluid,#navigation nav div.container-fluid,#sub-navigation nav div.container-fluid{padding-right:.75rem}#sub-navigation nav.sub-nav{background-color:rgba(0,0,0,.05) !important;border:3px solid #dee2e6;border-top:0}",""]);const i=o},218:t=>{t.exports=function(t){var a=[];return a.toString=function(){return this.map((function(a){var e=t(a);return a[2]?"@media ".concat(a[2]," {").concat(e,"}"):e})).join("")},a.i=function(t,e,d){"string"==typeof t&&(t=[[null,t,""]]);var l={};if(d)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(l[o]=!0)}for(var i=0;i<t.length;i++){var b=[].concat(t[i]);d&&l[b[0]]||(e&&(b[2]?b[2]="".concat(e," and ").concat(b[2]):b[2]=e),a.push(b))}},a}},590:t=>{var a=[];function e(t){for(var e=-1,d=0;d<a.length;d++)if(a[d].identifier===t){e=d;break}return e}function d(t,d){for(var r={},o=[],i=0;i<t.length;i++){var b=t[i],n=d.base?b[0]+d.base:b[0],s=r[n]||0,c="".concat(n," ").concat(s);r[n]=s+1;var p=e(c),h={css:b[1],media:b[2],sourceMap:b[3],supports:b[4],layer:b[5]};if(-1!==p)a[p].references++,a[p].updater(h);else{var f=l(h,d);d.byIndex=i,a.splice(i,0,{identifier:c,updater:f,references:1})}o.push(c)}return o}function l(t,a){var e=a.domAPI(a);return e.update(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap&&a.supports===t.supports&&a.layer===t.layer)return;e.update(t=a)}else e.remove()}}t.exports=function(t,l){var r=d(t=t||[],l=l||{});return function(t){t=t||[];for(var o=0;o<r.length;o++){var i=e(r[o]);a[i].references--}for(var b=d(t,l),n=0;n<r.length;n++){var s=e(r[n]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}r=b}}},804:t=>{var a={};t.exports=function(t,e){var d=function(t){if(void 0===a[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}a[t]=e}return a[t]}(t);if(!d)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");d.appendChild(e)}},980:t=>{t.exports=function(t){var a=document.createElement("style");return t.setAttributes(a,t.attributes),t.insert(a,t.options),a}},98:(t,a,e)=>{t.exports=function(t){var a=e.nc;a&&t.setAttribute("nonce",a)}},937:t=>{t.exports=function(t){var a=t.insertStyleElement(t);return{update:function(e){!function(t,a,e){var d="";e.supports&&(d+="@supports (".concat(e.supports,") {")),e.media&&(d+="@media ".concat(e.media," {"));var l=void 0!==e.layer;l&&(d+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),d+=e.css,l&&(d+="}"),e.media&&(d+="}"),e.supports&&(d+="}");var r=e.sourceMap;r&&"undefined"!=typeof btoa&&(d+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),a.styleTagTransform(d,t,a.options)}(a,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(a)}}}},776:t=>{t.exports=function(t,a){if(a.styleSheet)a.styleSheet.cssText=t;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(t))}}}},g={};function T(t){var a=g[t];if(void 0!==a)return a.exports;var e=g[t]={id:t,exports:{}};return f[t](e,e.exports,T),e.exports}T.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return T.d(a,{a}),a},T.d=(t,a)=>{for(var e in a)T.o(a,e)&&!T.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},T.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),t=T(590),a=T.n(t),e=T(937),d=T.n(e),l=T(804),r=T.n(l),o=T(98),i=T.n(o),b=T(980),n=T.n(b),s=T(776),c=T.n(s),p=T(115),(h={}).styleTagTransform=c(),h.setAttributes=i(),h.insert=r().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=n(),a()(p.Z,h),p.Z&&p.Z.locals&&p.Z.locals})();
|