@esfaenza/dashboard-feature 11.2.8 → 11.2.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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('angular-gridster2'), require('@angular/material/progress-bar'), require('@angular/router'), require('@esfaenza/extensions'), require('@esfaenza/localizations'), require('@esfaenza/forms-and-validations'), require('@esfaenza/es-charts'), require('ng-circle-progress'), require('@esfaenza/httpservice'), require('@angular/common/http')) :
3
- typeof define === 'function' && define.amd ? define('@esfaenza/dashboard-feature', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-gridster2', '@angular/material/progress-bar', '@angular/router', '@esfaenza/extensions', '@esfaenza/localizations', '@esfaenza/forms-and-validations', '@esfaenza/es-charts', 'ng-circle-progress', '@esfaenza/httpservice', '@angular/common/http'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['dashboard-feature'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.angularGridster2, global.ng.material.progressBar, global.ng.router, global.extensions, global.localizations, global.formsAndValidations, global.esCharts, global.ngCircleProgress, global.httpservice, global.ng.common.http));
5
- }(this, (function (exports, i0, common, forms, angularGridster2, progressBar, router, extensions, localizations, formsAndValidations, esCharts, ngCircleProgress, httpservice, http) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('angular-gridster2'), require('@angular/material/progress-bar'), require('@angular/router'), require('@esfaenza/extensions'), require('@esfaenza/localizations'), require('@esfaenza/forms-and-validations'), require('@esfaenza/es-charts'), require('ng-circle-progress'), require('@esfaenza/httpservice'), require('@angular/common/http'), require('@esfaenza/es-table')) :
3
+ typeof define === 'function' && define.amd ? define('@esfaenza/dashboard-feature', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-gridster2', '@angular/material/progress-bar', '@angular/router', '@esfaenza/extensions', '@esfaenza/localizations', '@esfaenza/forms-and-validations', '@esfaenza/es-charts', 'ng-circle-progress', '@esfaenza/httpservice', '@angular/common/http', '@esfaenza/es-table'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['dashboard-feature'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.angularGridster2, global.ng.material.progressBar, global.ng.router, global.extensions, global.localizations, global.formsAndValidations, global.esCharts, global.ngCircleProgress, global.httpservice, global.ng.common.http, global.esTable));
5
+ }(this, (function (exports, i0, common, forms, angularGridster2, progressBar, router, extensions, localizations, formsAndValidations, esCharts, ngCircleProgress, httpservice, http, esTable) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Injection Token della stringa che rappresenta il 'locale' nel sistema @es-faenza/localization
@@ -1262,6 +1262,77 @@
1262
1262
  { type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [DSH_OPTIONS,] }] }
1263
1263
  ]; };
1264
1264
 
1265
+ /**
1266
+ * Configurazione della dashboard
1267
+ */
1268
+ var JaceDashboardConfig = /** @class */ (function () {
1269
+ function JaceDashboardConfig() {
1270
+ /**
1271
+ * Id del backend a cui verranno indirizzate le chiamate di questa dashboard.
1272
+ * Deve essere uno di quelli definiti in appsetting.json del FE nella sezione **Backends**.
1273
+ */
1274
+ this.backendId = "default_backend";
1275
+ /**
1276
+ * Se questa dashboard contiene widget che mostrano dati che dipendono dalla data corrente
1277
+ * mostra il controllo (datetimepicker) per variare la data in base a cui mostrare i dati.
1278
+ *
1279
+ * NOTA: showToolbar deve essere a true.
1280
+ *
1281
+ * Default = false
1282
+ */
1283
+ this.showDateInput = false;
1284
+ /**
1285
+ * Mostrare la toolbar in cima alla dashboard che contiene il titolo, il pulsante per salvare il proprio layout personalizzato
1286
+ * e il picker per scegliere la data nel caso che le widget nella dashboard mostrino dati dipendenti dalla data.
1287
+ *
1288
+ * Default = true
1289
+ */
1290
+ this.showToolbar = true;
1291
+ /**
1292
+ * Titolo della dashboard mostrato in cima al layout all'interno della toolbar.
1293
+ *
1294
+ * NOTA: showToolbar deve essere a true.
1295
+ *
1296
+ * Default = undefined
1297
+ */
1298
+ this.dashboardTitle = undefined;
1299
+ //default per gridster
1300
+ this.gridsterConfig = {
1301
+ maxCols: 10,
1302
+ maxRows: 10,
1303
+ minCols: 5,
1304
+ minRows: 6,
1305
+ defaultItemCols: 1,
1306
+ defaultItemRows: 1,
1307
+ disablePushOnDrag: true,
1308
+ draggable: { enabled: true, ignoreContent: true },
1309
+ displayGrid: "onDrag&Resize",
1310
+ gridType: angularGridster2.GridType.Fit,
1311
+ resizable: { enabled: true },
1312
+ /* fixedRowHeight: 164, */
1313
+ setGridSize: true,
1314
+ };
1315
+ }
1316
+ return JaceDashboardConfig;
1317
+ }());
1318
+
1319
+ var JaceDashboardLayoutAppSearch = /** @class */ (function (_super) {
1320
+ __extends(JaceDashboardLayoutAppSearch, _super);
1321
+ function JaceDashboardLayoutAppSearch() {
1322
+ var _this = _super.apply(this, __spread(arguments)) || this;
1323
+ _this.backendid = "default_backend";
1324
+ return _this;
1325
+ }
1326
+ return JaceDashboardLayoutAppSearch;
1327
+ }(esTable.AppSearch));
1328
+
1329
+ //Definizione del layout della dashboard definito dal Backend
1330
+ var JaceDashboardLayoutDetail = /** @class */ (function () {
1331
+ function JaceDashboardLayoutDetail() {
1332
+ }
1333
+ return JaceDashboardLayoutDetail;
1334
+ }());
1335
+
1265
1336
  /**
1266
1337
  * Classe di base astratta per la creazione di Widget custom.
1267
1338
  */
@@ -1275,10 +1346,8 @@
1275
1346
  }
1276
1347
  BaseWidgetComponent.prototype.setWidgetModel = function (dshBackendId, widgetModel) {
1277
1348
  this.model = widgetModel;
1278
- if (dshBackendId != "default_backend") {
1279
- if (this.model.backendid === undefined || this.model.backendid == "default_backend")
1280
- this.model.backendid = dshBackendId;
1281
- }
1349
+ if (this.model.backendid === undefined || this.model.backendid == "default_backend")
1350
+ this.model.backendid = dshBackendId;
1282
1351
  this.refreshData();
1283
1352
  };
1284
1353
  BaseWidgetComponent.prototype.ngOnInit = function () { };
@@ -1347,60 +1416,6 @@
1347
1416
  { type: undefined, decorators: [{ type: i0.Inject, args: [DSH_DATA_SERVICE,] }] }
1348
1417
  ]; };
1349
1418
 
1350
- /**
1351
- * Configurazione della dashboard
1352
- */
1353
- var JaceDashboardConfig = /** @class */ (function () {
1354
- function JaceDashboardConfig() {
1355
- /**
1356
- * Id del backend a cui verranno indirizzate le chiamate di questa dashboard.
1357
- * Deve essere uno di quelli definiti in appsetting.json del FE nella sezione **Backends**.
1358
- */
1359
- this.backendId = "default_backend";
1360
- /**
1361
- * Se questa dashboard contiene widget che mostrano dati che dipendono dalla data corrente
1362
- * mostra il controllo (datetimepicker) per variare la data in base a cui mostrare i dati.
1363
- *
1364
- * NOTA: showToolbar deve essere a true.
1365
- *
1366
- * Default = false
1367
- */
1368
- this.showDateInput = false;
1369
- /**
1370
- * Mostrare la toolbar in cima alla dashboard che contiene il titolo, il pulsante per salvare il proprio layout personalizzato
1371
- * e il picker per scegliere la data nel caso che le widget nella dashboard mostrino dati dipendenti dalla data.
1372
- *
1373
- * Default = true
1374
- */
1375
- this.showToolbar = true;
1376
- /**
1377
- * Titolo della dashboard mostrato in cima al layout all'interno della toolbar.
1378
- *
1379
- * NOTA: showToolbar deve essere a true.
1380
- *
1381
- * Default = undefined
1382
- */
1383
- this.dashboardTitle = undefined;
1384
- //default per gridster
1385
- this.gridsterConfig = {
1386
- maxCols: 10,
1387
- maxRows: 10,
1388
- minCols: 5,
1389
- minRows: 6,
1390
- defaultItemCols: 1,
1391
- defaultItemRows: 1,
1392
- disablePushOnDrag: true,
1393
- draggable: { enabled: true, ignoreContent: true },
1394
- displayGrid: "onDrag&Resize",
1395
- gridType: angularGridster2.GridType.Fit,
1396
- resizable: { enabled: true },
1397
- /* fixedRowHeight: 164, */
1398
- setGridSize: true,
1399
- };
1400
- }
1401
- return JaceDashboardConfig;
1402
- }());
1403
-
1404
1419
  (function (JaceWidgetTypes) {
1405
1420
  JaceWidgetTypes["CHART"] = "CHART";
1406
1421
  JaceWidgetTypes["COUNTER"] = "COUNTER";
@@ -1422,17 +1437,21 @@
1422
1437
  exports.DSH_DATA_SERVICE = DSH_DATA_SERVICE;
1423
1438
  exports.DSH_LOCALE = DSH_LOCALE;
1424
1439
  exports.DashboardComponent = DashboardComponent;
1440
+ exports.DashboardFeatureAPIDataService = DashboardFeatureAPIDataService;
1425
1441
  exports.DashboardFeatureModule = DashboardFeatureModule;
1426
1442
  exports.DashboardWidgetFactory = DashboardWidgetFactory;
1427
1443
  exports.DefaultDashboardModuleOptions = DefaultDashboardModuleOptions;
1428
1444
  exports.JaceChartWidgetComponent = JaceChartWidgetComponent;
1429
1445
  exports.JaceCounterWidgetComponent = JaceCounterWidgetComponent;
1430
1446
  exports.JaceDashboardConfig = JaceDashboardConfig;
1447
+ exports.JaceDashboardLayoutAppSearch = JaceDashboardLayoutAppSearch;
1448
+ exports.JaceDashboardLayoutDetail = JaceDashboardLayoutDetail;
1431
1449
  exports.JaceListWidgetComponent = JaceListWidgetComponent;
1432
1450
  exports.JaceMultiprogWidgetComponent = JaceMultiprogWidgetComponent;
1451
+ exports.JaceWidgetInstanceDetail = JaceWidgetInstanceDetail;
1452
+ exports.SaveJaceDashboardLayoutDTO = SaveJaceDashboardLayoutDTO;
1433
1453
  exports.ɵa = DashboardLoc;
1434
1454
  exports.ɵb = DSH_OPTIONS;
1435
- exports.ɵc = DashboardFeatureAPIDataService;
1436
1455
 
1437
1456
  Object.defineProperty(exports, '__esModule', { value: true });
1438
1457