@eqproject/eqp-dynamic-module 0.0.1 → 0.0.2

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.
@@ -41,8 +41,6 @@ import { EqpFiltersModule } from '@eqproject/eqp-filters';
41
41
  import { EqpNumericModule } from '@eqproject/eqp-numeric';
42
42
  import Swal from 'sweetalert2';
43
43
  import { BrowserModule } from '@angular/platform-browser';
44
- import { UtilityHelperService as UtilityHelperService$1 } from 'projects/eqp-dynamic-module/src/lib/services/utilityHelper.services';
45
- import { UtilityHelperService as UtilityHelperService$2, EqpDynamicModuleDialogService as EqpDynamicModuleDialogService$1, FieldTypeEnum as FieldTypeEnum$1, DateTimeTypeEnum as DateTimeTypeEnum$1 } from 'projects/eqp-dynamic-module/src/public-api';
46
44
 
47
45
  var Context = /** @class */ (function () {
48
46
  function Context() {
@@ -2310,7 +2308,7 @@ var ImageFieldTemplateComponent = /** @class */ (function () {
2310
2308
  */
2311
2309
  ImageFieldTemplateComponent.prototype.updateField = function () {
2312
2310
  if (this.field.Formula) {
2313
- this.record[this.field.Name] = UtilityHelperService$1.EvaluateFieldFormula(this.field.Formula, this.record, null);
2311
+ this.record[this.field.Name] = UtilityHelperService.EvaluateFieldFormula(this.field.Formula, this.record, null);
2314
2312
  }
2315
2313
  };
2316
2314
  __decorate([
@@ -2375,7 +2373,7 @@ var ListFormRecordComponent = /** @class */ (function () {
2375
2373
  .push({
2376
2374
  name: action.Name, icon: action.Icon, fn: function (element, index, col) {
2377
2375
  var rec = element;
2378
- var ctx = UtilityHelperService$2.context;
2376
+ var ctx = UtilityHelperService.context;
2379
2377
  eval(action.Action);
2380
2378
  // TODO: salvare le modifiche
2381
2379
  }
@@ -2398,7 +2396,7 @@ var ListFormRecordComponent = /** @class */ (function () {
2398
2396
  */
2399
2397
  ListFormRecordComponent.prototype.duplicateRecord = function (record) {
2400
2398
  var _this = this;
2401
- EqpDynamicModuleDialogService$1.Confirm('Duplicare il record selezionato?', function () {
2399
+ EqpDynamicModuleDialogService.Confirm('Duplicare il record selezionato?', function () {
2402
2400
  var copiedRecord = JSON.parse(JSON.stringify(record));
2403
2401
  if (!isNaN(parseInt(copiedRecord.ID))) {
2404
2402
  copiedRecord.ID = (parseInt(copiedRecord.ID) + 1).toString();
@@ -2417,7 +2415,7 @@ var ListFormRecordComponent = /** @class */ (function () {
2417
2415
  */
2418
2416
  ListFormRecordComponent.prototype.deleteRecord = function (record) {
2419
2417
  var _this = this;
2420
- EqpDynamicModuleDialogService$1.Confirm('Eliminare il record selezionato?', function () {
2418
+ EqpDynamicModuleDialogService.Confirm('Eliminare il record selezionato?', function () {
2421
2419
  _this.values.splice(_this.values.indexOf(record), 1);
2422
2420
  _this.reloadTables();
2423
2421
  }, false, 'Richiesta conferma');
@@ -2452,23 +2450,23 @@ var ListFormRecordComponent = /** @class */ (function () {
2452
2450
  ListFormRecordComponent.prototype.createFieldColumn = function (field) {
2453
2451
  var column = { key: field.Name, display: field.Label };
2454
2452
  switch (field.FieldType) {
2455
- case FieldTypeEnum$1['Booleano']:
2453
+ case FieldTypeEnum['Booleano']:
2456
2454
  column.type = TypeColumn.Boolean;
2457
2455
  column.booleanValues = { false: '<i class="fa fa-times error-color"></i>', true: '<i class="fa fa-check success-color"></i>' };
2458
2456
  column.styles = { flex: "0 0 7%", cellAlignment: CellAlignmentEnum.CENTER };
2459
2457
  break;
2460
- case FieldTypeEnum$1['Data e/o ora']:
2461
- if (field.IsOnlyDate != DateTimeTypeEnum$1['Solo orario']) {
2458
+ case FieldTypeEnum['Data e/o ora']:
2459
+ if (field.IsOnlyDate != DateTimeTypeEnum['Solo orario']) {
2462
2460
  column.type = TypeColumn.Date;
2463
- if (field.IsOnlyDate == DateTimeTypeEnum$1['Data e ora']) {
2461
+ if (field.IsOnlyDate == DateTimeTypeEnum['Data e ora']) {
2464
2462
  column.format = "dd/MM/yyyy HH:mm";
2465
2463
  }
2466
- else if (field.IsOnlyDate == DateTimeTypeEnum$1['Solo data']) {
2464
+ else if (field.IsOnlyDate == DateTimeTypeEnum['Solo data']) {
2467
2465
  column.format = "dd/MM/yyyy";
2468
2466
  }
2469
2467
  }
2470
2468
  break;
2471
- case FieldTypeEnum$1['Campo numerico']:
2469
+ case FieldTypeEnum['Campo numerico']:
2472
2470
  if (field.CurrencySymbol) {
2473
2471
  column.numberPipe = NumberColumnPipe.CURRENCY;
2474
2472
  column.currencyPipeCode = field.CurrencySymbol;
@@ -2477,8 +2475,8 @@ var ListFormRecordComponent = /** @class */ (function () {
2477
2475
  column.numberPipe = NumberColumnPipe.DECIMAL;
2478
2476
  }
2479
2477
  break;
2480
- case FieldTypeEnum$1['Allegato']:
2481
- case FieldTypeEnum$1['Immagine']:
2478
+ case FieldTypeEnum['Allegato']:
2479
+ case FieldTypeEnum['Immagine']:
2482
2480
  column.value = function (element) {
2483
2481
  if (field.IsMultiAttach || (field.AttachDefinition && field.AttachDefinition.IsMultiAttach)) {
2484
2482
  return element[field.Name] != null && element[field.Name].length > 0 ? element[field.Name].map(function (a) { return a.FileName; }).join(", ") : null;
@@ -2490,7 +2488,7 @@ var ListFormRecordComponent = /** @class */ (function () {
2490
2488
  column.isSortable = false;
2491
2489
  column.isSearchable = false;
2492
2490
  break;
2493
- case FieldTypeEnum$1['Elenco generico']:
2491
+ case FieldTypeEnum['Elenco generico']:
2494
2492
  column.value = function (element) {
2495
2493
  if (field.IsMultiChoiche) {
2496
2494
  if (!element[field.Name] || element[field.Name].length == 0) {
@@ -2507,7 +2505,7 @@ var ListFormRecordComponent = /** @class */ (function () {
2507
2505
  column.isSortable = false;
2508
2506
  column.isSearchable = false;
2509
2507
  break;
2510
- case FieldTypeEnum$1['Lookup']:
2508
+ case FieldTypeEnum['Lookup']:
2511
2509
  // TODO
2512
2510
  break;
2513
2511
  }
@@ -2641,7 +2639,7 @@ var AddFormRecordComponent = /** @class */ (function () {
2641
2639
  };
2642
2640
  AddFormRecordComponent.ctorParameters = function () { return [
2643
2641
  { type: ChangeDetectorRef },
2644
- { type: UtilityHelperService$2 }
2642
+ { type: UtilityHelperService }
2645
2643
  ]; };
2646
2644
  __decorate([
2647
2645
  Input()