ps-toolkit-ui 1.21.73 → 1.21.82

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.
Files changed (47) hide show
  1. package/bundles/ps-toolkit-ui.umd.js +160 -122
  2. package/bundles/ps-toolkit-ui.umd.js.map +1 -1
  3. package/bundles/ps-toolkit-ui.umd.min.js +1 -1
  4. package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
  5. package/esm2015/lib/classes/enum.class.js +35 -34
  6. package/esm2015/lib/classes/form.class.js +1 -2
  7. package/esm2015/lib/classes/helper.class.js +1 -2
  8. package/esm2015/lib/classes/modal.class.js +1 -2
  9. package/esm2015/lib/classes/request.class.js +4 -2
  10. package/esm2015/lib/classes/table.class.js +1 -2
  11. package/esm2015/lib/components/accordion/accordion.component.js +1 -2
  12. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +1 -2
  13. package/esm2015/lib/components/form/button/form.button.component.js +1 -2
  14. package/esm2015/lib/components/form/date/form.date.component.js +1 -2
  15. package/esm2015/lib/components/form/file/form.file.component.js +1 -2
  16. package/esm2015/lib/components/form/icon/form.icon.component.js +1 -2
  17. package/esm2015/lib/components/form/index/form.component.js +2 -2
  18. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +1 -2
  19. package/esm2015/lib/components/form/pre/form.pre.component.js +32 -0
  20. package/esm2015/lib/components/form/radio/form.radio.component.js +1 -2
  21. package/esm2015/lib/components/form/select/form.select.component.js +1 -2
  22. package/esm2015/lib/components/form/select/item/form.select.item.component.js +1 -1
  23. package/esm2015/lib/components/form/slide/form.slide.component.js +1 -2
  24. package/esm2015/lib/components/form/star/form.star.component.js +1 -2
  25. package/esm2015/lib/components/form/tag/form.tag.component.js +1 -2
  26. package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -1
  27. package/esm2015/lib/components/form/time/form.time.component.js +1 -2
  28. package/esm2015/lib/components/form/toggle/form.toggle.component.js +1 -1
  29. package/esm2015/lib/components/form/tree/form.tree.component.js +1 -2
  30. package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +1 -2
  31. package/esm2015/lib/components/form/uploader/form.uploader.component.js +1 -2
  32. package/esm2015/lib/components/form/vehicle/form.vehicle.component.js +1 -1
  33. package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +1 -1
  34. package/esm2015/lib/components/header/header.component.js +1 -2
  35. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +1 -2
  36. package/esm2015/lib/components/sidebar/sidebar.component.js +1 -2
  37. package/esm2015/lib/components/table/row/table.row.component.js +1 -2
  38. package/esm2015/lib/components/table/table.component.js +1 -2
  39. package/esm2015/lib/ps-toolkit-ui.module.js +4 -2
  40. package/esm2015/ps-toolkit-ui.js +2 -1
  41. package/fesm2015/ps-toolkit-ui.js +154 -120
  42. package/fesm2015/ps-toolkit-ui.js.map +1 -1
  43. package/lib/classes/enum.class.d.ts +34 -33
  44. package/lib/components/form/pre/form.pre.component.d.ts +8 -0
  45. package/package.json +3 -3
  46. package/ps-toolkit-ui.d.ts +1 -0
  47. package/ps-toolkit-ui.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('jquery'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ckeditor4-angular'), require('file-saver'), require('xlsx'), require('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data')) :
3
- typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'jquery', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ckeditor4-angular', 'file-saver', 'xlsx', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global.$$1, global._, global.moment, global.ng.router, global.rxjs, null, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ckeditor4Angular, global.FileSaver, global.XLSX, global.Highcharts, global.HighchartsExporting, global.HighchartsExportData));
5
- }(this, (function (exports, core, $$1, _, moment, router, rxjs, jqueryUi, forms, common, platformBrowser, ckeditor4Angular, FileSaver, XLSX, Highcharts, HighchartsExporting, HighchartsExportData) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ckeditor4-angular'), require('file-saver'), require('xlsx'), require('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data')) :
3
+ typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ckeditor4-angular', 'file-saver', 'xlsx', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global._, global.moment, global.ng.router, global.rxjs, null, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ckeditor4Angular, global.FileSaver, global.XLSX, global.Highcharts, global.HighchartsExporting, global.HighchartsExportData));
5
+ }(this, (function (exports, core, _, moment, router, rxjs, jqueryUi, forms, common, platformBrowser, ckeditor4Angular, FileSaver, XLSX, Highcharts, HighchartsExporting, HighchartsExportData) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) { return e; } else {
@@ -25,7 +25,6 @@
25
25
  }
26
26
  }
27
27
 
28
- var $__namespace = /*#__PURE__*/_interopNamespace($$1);
29
28
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
30
29
  var Highcharts__namespace = /*#__PURE__*/_interopNamespace(Highcharts);
31
30
  var HighchartsExporting__namespace = /*#__PURE__*/_interopNamespace(HighchartsExporting);
@@ -49,9 +48,9 @@
49
48
  function AccordionComponent() {
50
49
  }
51
50
  AccordionComponent.prototype.toggle = function (e) {
52
- var chOpen = $__namespace(e.target).closest('.accordion').find('.content.open');
51
+ var chOpen = $(e.target).closest('.accordion').find('.content.open');
53
52
  var ocOpen = chOpen.closest('.accordion-item').find('.header > .icon');
54
- var ch = $__namespace(e.target).closest('.accordion-item').find(' > .content');
53
+ var ch = $(e.target).closest('.accordion-item').find(' > .content');
55
54
  var oc = ch.closest('.accordion-item').find(' > .header > .icon');
56
55
  if (ch.hasClass('open')) {
57
56
  ch.removeClass('open');
@@ -464,39 +463,40 @@
464
463
  InputType[InputType["Check"] = 21] = "Check";
465
464
  InputType[InputType["TextArea"] = 22] = "TextArea";
466
465
  InputType[InputType["Label"] = 23] = "Label";
467
- InputType[InputType["Button"] = 24] = "Button";
468
- InputType[InputType["Submit"] = 25] = "Submit";
469
- InputType[InputType["Icon"] = 26] = "Icon";
470
- InputType[InputType["File"] = 27] = "File";
471
- InputType[InputType["Url"] = 28] = "Url";
472
- InputType[InputType["Price"] = 29] = "Price";
473
- InputType[InputType["Radio"] = 30] = "Radio";
474
- InputType[InputType["Tree"] = 31] = "Tree";
475
- InputType[InputType["TreeRadio"] = 32] = "TreeRadio";
476
- InputType[InputType["Plaque"] = 33] = "Plaque";
477
- InputType[InputType["PlaqueM"] = 34] = "PlaqueM";
478
- InputType[InputType["PlaqueF"] = 35] = "PlaqueF";
479
- InputType[InputType["PlaqueG"] = 36] = "PlaqueG";
480
- InputType[InputType["SelectAutoCompletePlaque"] = 37] = "SelectAutoCompletePlaque";
481
- InputType[InputType["SelectAutoCompletePlaqueM"] = 38] = "SelectAutoCompletePlaqueM";
482
- InputType[InputType["SelectAutoCompletePlaqueF"] = 39] = "SelectAutoCompletePlaqueF";
483
- InputType[InputType["SelectAutoCompletePlaqueG"] = 40] = "SelectAutoCompletePlaqueG";
484
- InputType[InputType["BankCard"] = 41] = "BankCard";
485
- InputType[InputType["Constant"] = 42] = "Constant";
486
- InputType[InputType["Hidden"] = 43] = "Hidden";
487
- InputType[InputType["Table"] = 44] = "Table";
488
- InputType[InputType["Tag"] = 45] = "Tag";
489
- InputType[InputType["VehicleSearch"] = 46] = "VehicleSearch";
490
- InputType[InputType["Vehicle"] = 47] = "Vehicle";
491
- InputType[InputType["Finger"] = 48] = "Finger";
492
- InputType[InputType["Color"] = 49] = "Color";
493
- InputType[InputType["Star"] = 50] = "Star";
494
- InputType[InputType["Toggle"] = 51] = "Toggle";
495
- InputType[InputType["BillNumber"] = 52] = "BillNumber";
496
- InputType[InputType["Ckeditor"] = 53] = "Ckeditor";
497
- InputType[InputType["Uploader"] = 54] = "Uploader";
498
- InputType[InputType["Slide"] = 55] = "Slide";
499
- InputType[InputType["Username"] = 56] = "Username";
466
+ InputType[InputType["Pre"] = 24] = "Pre";
467
+ InputType[InputType["Button"] = 25] = "Button";
468
+ InputType[InputType["Submit"] = 26] = "Submit";
469
+ InputType[InputType["Icon"] = 27] = "Icon";
470
+ InputType[InputType["File"] = 28] = "File";
471
+ InputType[InputType["Url"] = 29] = "Url";
472
+ InputType[InputType["Price"] = 30] = "Price";
473
+ InputType[InputType["Radio"] = 31] = "Radio";
474
+ InputType[InputType["Tree"] = 32] = "Tree";
475
+ InputType[InputType["TreeRadio"] = 33] = "TreeRadio";
476
+ InputType[InputType["Plaque"] = 34] = "Plaque";
477
+ InputType[InputType["PlaqueM"] = 35] = "PlaqueM";
478
+ InputType[InputType["PlaqueF"] = 36] = "PlaqueF";
479
+ InputType[InputType["PlaqueG"] = 37] = "PlaqueG";
480
+ InputType[InputType["SelectAutoCompletePlaque"] = 38] = "SelectAutoCompletePlaque";
481
+ InputType[InputType["SelectAutoCompletePlaqueM"] = 39] = "SelectAutoCompletePlaqueM";
482
+ InputType[InputType["SelectAutoCompletePlaqueF"] = 40] = "SelectAutoCompletePlaqueF";
483
+ InputType[InputType["SelectAutoCompletePlaqueG"] = 41] = "SelectAutoCompletePlaqueG";
484
+ InputType[InputType["BankCard"] = 42] = "BankCard";
485
+ InputType[InputType["Constant"] = 43] = "Constant";
486
+ InputType[InputType["Hidden"] = 44] = "Hidden";
487
+ InputType[InputType["Table"] = 45] = "Table";
488
+ InputType[InputType["Tag"] = 46] = "Tag";
489
+ InputType[InputType["VehicleSearch"] = 47] = "VehicleSearch";
490
+ InputType[InputType["Vehicle"] = 48] = "Vehicle";
491
+ InputType[InputType["Finger"] = 49] = "Finger";
492
+ InputType[InputType["Color"] = 50] = "Color";
493
+ InputType[InputType["Star"] = 51] = "Star";
494
+ InputType[InputType["Toggle"] = 52] = "Toggle";
495
+ InputType[InputType["BillNumber"] = 53] = "BillNumber";
496
+ InputType[InputType["Ckeditor"] = 54] = "Ckeditor";
497
+ InputType[InputType["Uploader"] = 55] = "Uploader";
498
+ InputType[InputType["Slide"] = 56] = "Slide";
499
+ InputType[InputType["Username"] = 57] = "Username";
500
500
  })(exports.InputType || (exports.InputType = {}));
501
501
  (function (OperationEnum) {
502
502
  OperationEnum[OperationEnum["All"] = -1] = "All";
@@ -648,7 +648,7 @@
648
648
  configurable: true
649
649
  });
650
650
  HeaderComponent.prototype.showUserDropDown = function (e) {
651
- $__namespace(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
651
+ $(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
652
652
  };
653
653
  return HeaderComponent;
654
654
  }());
@@ -1655,9 +1655,9 @@
1655
1655
  if (e === void 0) { e = true; }
1656
1656
  var id = HelperClass.random(20);
1657
1657
  // tslint:disable-next-line
1658
- $__namespace('#Notifications').append('<div id="' + id + '" class="con"><div class="item ' + (e ? 'error' : 'success') + '"><i class="fas fa-times"></i><div>' + m + '</div></div></div>');
1658
+ $('#Notifications').append('<div id="' + id + '" class="con"><div class="item ' + (e ? 'error' : 'success') + '"><i class="fas fa-times"></i><div>' + m + '</div></div></div>');
1659
1659
  setTimeout(function () {
1660
- var d = $__namespace('#' + id);
1660
+ var d = $('#' + id);
1661
1661
  d.fadeOut(300, function () {
1662
1662
  d.remove();
1663
1663
  });
@@ -1744,7 +1744,7 @@
1744
1744
  if (inp.type === exports.InputType.Text) {
1745
1745
  inp.setValue(s, false);
1746
1746
  setTimeout(function () {
1747
- $__namespace('#' + inp.id + 'TextInput .control').click();
1747
+ $('#' + inp.id + 'TextInput .control').click();
1748
1748
  }, 100);
1749
1749
  }
1750
1750
  if (inp.onBarcodeReaderChange !== null) {
@@ -2018,6 +2018,9 @@
2018
2018
  if (token != null) {
2019
2019
  h.AuthorizationCu = tokenCu;
2020
2020
  }
2021
+ if (this.environment.apiVersion) {
2022
+ h.ApiVersion = this.environment.apiVersion;
2023
+ }
2021
2024
  if (!(data instanceof FormData)) {
2022
2025
  data = HelperClass.jsonToFormData(data);
2023
2026
  }
@@ -2035,7 +2038,7 @@
2035
2038
  if (request != null) {
2036
2039
  request.abort();
2037
2040
  }
2038
- request = $$1.ajax(settings);
2041
+ request = $.ajax(settings);
2039
2042
  request.done(function (response) {
2040
2043
  if (!_this.environment.production) {
2041
2044
  console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
@@ -2887,14 +2890,14 @@
2887
2890
  AccordionRowClass.prototype.toggle = function () {
2888
2891
  var _this = this;
2889
2892
  setTimeout(function () {
2890
- $__namespace('#AccordionRow' + _this.id + ' > .header').click();
2893
+ $('#AccordionRow' + _this.id + ' > .header').click();
2891
2894
  }, 100);
2892
2895
  };
2893
2896
  AccordionRowClass.prototype.open = function () {
2894
2897
  var _this = this;
2895
2898
  setTimeout(function () {
2896
- if (!$__namespace('#AccordionRow' + _this.id + ' > .content').hasClass('open')) {
2897
- $__namespace('#AccordionRow' + _this.id + ' > .header').click();
2899
+ if (!$('#AccordionRow' + _this.id + ' > .content').hasClass('open')) {
2900
+ $('#AccordionRow' + _this.id + ' > .header').click();
2898
2901
  }
2899
2902
  }, 100);
2900
2903
  };
@@ -2935,7 +2938,7 @@
2935
2938
  };
2936
2939
  }
2937
2940
  SidebarItemComponent.prototype.openClose = function (e) {
2938
- var op = $__namespace(e.target).closest('.user-sidebar-item');
2941
+ var op = $(e.target).closest('.user-sidebar-item');
2939
2942
  if (op.hasClass('open')) {
2940
2943
  op.removeClass('open');
2941
2944
  op.find(' > .children').slideUp();
@@ -2968,7 +2971,7 @@
2968
2971
  return false;
2969
2972
  };
2970
2973
  SidebarItemComponent.prototype.closeSidebar = function () {
2971
- $__namespace('#Sidebar').addClass('open').removeClass('close');
2974
+ $('#Sidebar').addClass('open').removeClass('close');
2972
2975
  };
2973
2976
  return SidebarItemComponent;
2974
2977
  }());
@@ -3112,7 +3115,7 @@
3112
3115
  return null;
3113
3116
  };
3114
3117
  SidebarComponent.prototype.toggleSidebar = function () {
3115
- $__namespace('#Sidebar').toggleClass('open').toggleClass('close');
3118
+ $('#Sidebar').toggleClass('open').toggleClass('close');
3116
3119
  };
3117
3120
  return SidebarComponent;
3118
3121
  }());
@@ -3371,14 +3374,14 @@
3371
3374
  configurable: true
3372
3375
  });
3373
3376
  TableRowComponent.prototype.mouseOut = function (e) {
3374
- $__namespace(e.target).find('.options-con').removeClass('show-group');
3377
+ $(e.target).find('.options-con').removeClass('show-group');
3375
3378
  };
3376
3379
  TableRowComponent.prototype.ngOnInit = function () {
3377
3380
  var _this = this;
3378
3381
  this.row.subTable = this.table.subTable != null ? HelperClass.clone(this.table.subTable) : null;
3379
3382
  this.group = new InputClass(this.table.environment, this.table.l, 'ShowOptions', 'fas fa-ellipsis-vertical', exports.InputType.Icon, 'blue m-h-5 h-25 d-ib va-m f-u');
3380
3383
  this.group.onFocusIn = function (e) {
3381
- $__namespace(e.target).closest('.options-con').addClass('show-group');
3384
+ $(e.target).closest('.options-con').addClass('show-group');
3382
3385
  };
3383
3386
  this.group.onFocusOut = function (e) {
3384
3387
  // $(e.target).closest('.options-con').removeClass('show-group');
@@ -3403,8 +3406,8 @@
3403
3406
  this.showChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'SubsetTitle', 'fad fa-angle-left f-s-22', this.row.Data.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0) || this.row.subTable != null ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
3404
3407
  this.showChildren.onClick = function () {
3405
3408
  var _a, _b;
3406
- if ($__namespace(_this.childrenDiv.nativeElement).is(':visible')) {
3407
- $__namespace(_this.childrenDiv.nativeElement).slideUp();
3409
+ if ($(_this.childrenDiv.nativeElement).is(':visible')) {
3410
+ $(_this.childrenDiv.nativeElement).slideUp();
3408
3411
  _this.showChildren.icon = 'fad fa-angle-left f-s-22';
3409
3412
  }
3410
3413
  else if (_this.table.hasChildren && _this.children.length === 0) {
@@ -3420,11 +3423,11 @@
3420
3423
  ps.Accesses = (_b = (_a = _this.table.permissions.Accesses) === null || _a === void 0 ? void 0 : _a.filter(function (x) { return x.ParentId === acc_1.Id; })) !== null && _b !== void 0 ? _b : [];
3421
3424
  _this.row.subTable.permissions = ps;
3422
3425
  _this.row.subTable.set();
3423
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3426
+ $(_this.childrenDiv.nativeElement).slideDown();
3424
3427
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3425
3428
  }
3426
3429
  else {
3427
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3430
+ $(_this.childrenDiv.nativeElement).slideDown();
3428
3431
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3429
3432
  }
3430
3433
  };
@@ -3446,7 +3449,7 @@
3446
3449
  new RequestClass(this.table.environment, this.table.l).send(this.table.url + ("/" + p), exports.Method.Post, data, this.showChildren, function (result) {
3447
3450
  _this.children = result.List;
3448
3451
  setTimeout(function () {
3449
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3452
+ $(_this.childrenDiv.nativeElement).slideDown();
3450
3453
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3451
3454
  }, 50);
3452
3455
  }, function () { });
@@ -3468,14 +3471,14 @@
3468
3471
  if (this.table.hasChildren) {
3469
3472
  setTimeout(function () {
3470
3473
  // @ts-ignore
3471
- $__namespace(_this.childrenDiv.nativeElement).sortable({
3474
+ $(_this.childrenDiv.nativeElement).sortable({
3472
3475
  axis: 'y',
3473
3476
  items: '.row',
3474
3477
  handle: '> .handle-con > .handle.handle-sortable',
3475
3478
  update: function () {
3476
3479
  var data = [];
3477
3480
  // @ts-ignore
3478
- $__namespace(_this.childrenDiv.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
3481
+ $(_this.childrenDiv.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
3479
3482
  data.push(parseInt(x, 10));
3480
3483
  });
3481
3484
  var p = new PermissionClass();
@@ -3788,7 +3791,7 @@
3788
3791
  };
3789
3792
  TableRowComponent.prototype.selectRow = function (e) {
3790
3793
  if (this.table.withSelect) {
3791
- if ($__namespace(e.target).closest('.handle-con').hasClass('handle-con') || $__namespace(e.target).closest('.options-cell').hasClass('options-cell')) {
3794
+ if ($(e.target).closest('.handle-con').hasClass('handle-con') || $(e.target).closest('.options-cell').hasClass('options-cell')) {
3792
3795
  return;
3793
3796
  }
3794
3797
  var s = this.table.rows.find(function (x) { return x.selected; });
@@ -3803,7 +3806,7 @@
3803
3806
  };
3804
3807
  TableRowComponent.prototype.dblclickRow = function (e) {
3805
3808
  if (this.table.withSelect) {
3806
- if ($__namespace(e.target).closest('.handle-con').hasClass('handle-con') || $__namespace(e.target).closest('.options-cell').hasClass('options-cell')) {
3809
+ if ($(e.target).closest('.handle-con').hasClass('handle-con') || $(e.target).closest('.options-cell').hasClass('options-cell')) {
3807
3810
  return;
3808
3811
  }
3809
3812
  var s = this.table.rows.find(function (x) { return x.selected; });
@@ -3870,8 +3873,8 @@
3870
3873
  if (this.onShow) {
3871
3874
  this.onShow(data);
3872
3875
  }
3873
- $__namespace('body').addClass('open-modal');
3874
- $__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
3876
+ $('body').addClass('open-modal');
3877
+ $('#' + this.id + 'Modal').fadeIn(300, function () {
3875
3878
  if (_this.form != null) {
3876
3879
  if (_this.form.onShowModal) {
3877
3880
  _this.form.onShowModal();
@@ -3882,8 +3885,8 @@
3882
3885
  };
3883
3886
  ModalClass.prototype.hide = function () {
3884
3887
  var _this = this;
3885
- $__namespace('body').removeClass('open-modal');
3886
- $__namespace('#' + this.id + 'Modal').fadeOut(300, function () {
3888
+ $('body').removeClass('open-modal');
3889
+ $('#' + this.id + 'Modal').fadeOut(300, function () {
3887
3890
  if (_this.onHide) {
3888
3891
  _this.onHide();
3889
3892
  }
@@ -3985,7 +3988,7 @@
3985
3988
  _this.table.load(_this.reload);
3986
3989
  };
3987
3990
  this.export.onClick = function () {
3988
- $__namespace(_this.exportDropDown.nativeElement).slideToggle();
3991
+ $(_this.exportDropDown.nativeElement).slideToggle();
3989
3992
  };
3990
3993
  this.pdf.onClick = function () {
3991
3994
  _this.exportTable(exports.TableExportType.Pdf, _this.pdf);
@@ -4000,12 +4003,12 @@
4000
4003
  _this.exportTable(exports.TableExportType.Print, _this.print);
4001
4004
  };
4002
4005
  this.maximum.onClick = function () {
4003
- $__namespace(_this.tableDiv.nativeElement).toggleClass('maximum');
4006
+ $(_this.tableDiv.nativeElement).toggleClass('maximum');
4004
4007
  _this.maximum.icon = _this.maximum.name === 'Minimum' ? 'fad fa-arrows-maximize' : 'fad fa-arrows-minimize';
4005
4008
  _this.maximum.name = _this.maximum.name === 'Minimum' ? 'Maximum' : 'Minimum';
4006
4009
  };
4007
4010
  this.expertSearch.onClick = function () {
4008
- $__namespace(_this.tableDiv.nativeElement).addClass('show-expert-search');
4011
+ $(_this.tableDiv.nativeElement).addClass('show-expert-search');
4009
4012
  };
4010
4013
  this.table.showConfirm = function (l, url, data, accept) {
4011
4014
  _this.confirm.show(l, url, data, accept);
@@ -4067,14 +4070,14 @@
4067
4070
  var _this = this;
4068
4071
  setTimeout(function () {
4069
4072
  // @ts-ignore
4070
- $__namespace(_this.rows.nativeElement).sortable({
4073
+ $(_this.rows.nativeElement).sortable({
4071
4074
  axis: 'y',
4072
4075
  items: '.row',
4073
4076
  handle: '> .handle-con > .handle.handle-sortable',
4074
4077
  update: function () {
4075
4078
  var data = [];
4076
4079
  // @ts-ignore
4077
- $__namespace(_this.rows.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
4080
+ $(_this.rows.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
4078
4081
  data.push(parseInt(x, 10));
4079
4082
  });
4080
4083
  var p = new PermissionClass();
@@ -4112,7 +4115,7 @@
4112
4115
  this.confirm.show(this.table.l(e.action + 'Confirm'), e.url, e.data, e.accept);
4113
4116
  };
4114
4117
  TableComponent.prototype.changeSort = function (e, s) {
4115
- if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {
4118
+ if ($(e.target).closest('.header-search').hasClass('header-search')) {
4116
4119
  return;
4117
4120
  }
4118
4121
  this.table.sortType = this.table.sort === s ? this.table.sortType === 'ASC' ? 'DESC' : null : 'ASC';
@@ -4123,8 +4126,8 @@
4123
4126
  return this.table.optionsActions.filter(function (x) { return x instanceof ModalClass; });
4124
4127
  };
4125
4128
  TableComponent.prototype.hideExpertSearch = function (e) {
4126
- if (this.table.expertSearch && $__namespace(e.target).hasClass('search-form')) {
4127
- $__namespace(this.tableDiv.nativeElement).removeClass('show-expert-search');
4129
+ if (this.table.expertSearch && $(e.target).hasClass('search-form')) {
4130
+ $(this.tableDiv.nativeElement).removeClass('show-expert-search');
4128
4131
  }
4129
4132
  };
4130
4133
  return TableComponent;
@@ -4294,10 +4297,10 @@
4294
4297
  var _this = this;
4295
4298
  var b = this.banks.filter(function (x) { var _a, _b; return x.startWith.includes(((_a = _this.part1.data()) !== null && _a !== void 0 ? _a : '').toString() + ((_b = _this.part2.data()) !== null && _b !== void 0 ? _b : '').toString().substring(0, 2)); });
4296
4299
  if (b.length > 0) {
4297
- $__namespace(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
4300
+ $(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
4298
4301
  }
4299
4302
  else {
4300
- $__namespace(this.inputIcon.nativeElement).addClass('fa-money-check').removeClass(this.banks.map(function (x) { return x.name; }));
4303
+ $(this.inputIcon.nativeElement).addClass('fa-money-check').removeClass(this.banks.map(function (x) { return x.name; }));
4301
4304
  }
4302
4305
  };
4303
4306
  FormBankCardComponent.prototype.changeFocus = function (p, a) {
@@ -4381,7 +4384,7 @@
4381
4384
  };
4382
4385
  };
4383
4386
  FormButtonComponent.prototype.onFocusIn = function () {
4384
- $__namespace(this.inputBase.nativeElement).focus();
4387
+ $(this.inputBase.nativeElement).focus();
4385
4388
  };
4386
4389
  FormButtonComponent.prototype.onClick = function (e) {
4387
4390
  if (e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0) {
@@ -4569,7 +4572,7 @@
4569
4572
  _this.openCalendar();
4570
4573
  };
4571
4574
  this.inp.focusOut = function () {
4572
- $__namespace(_this.inputBase.nativeElement).blur();
4575
+ $(_this.inputBase.nativeElement).blur();
4573
4576
  };
4574
4577
  };
4575
4578
  FormDateComponent.prototype.setInpValue = function (v) {
@@ -4705,16 +4708,16 @@
4705
4708
  };
4706
4709
  FormDateComponent.prototype.openCalendar = function () {
4707
4710
  this.setPosition();
4708
- $__namespace(this.inputBase.nativeElement).focus();
4711
+ $(this.inputBase.nativeElement).focus();
4709
4712
  };
4710
4713
  FormDateComponent.prototype.onKeyDown = function (e) {
4711
4714
  var code = e.keyCode || e.which;
4712
4715
  if (code === 9 || code === 13) {
4713
4716
  e.preventDefault();
4714
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4717
+ $(this.inputDiv.nativeElement).removeClass('top');
4715
4718
  this.changeIndex.emit(code === 9 ? e.shiftKey ? 'ShiftTab' : 'Tab' : e.shiftKey ? 'ShiftEnter' : 'Enter');
4716
4719
  if (!this.inForm) {
4717
- $__namespace(this.inputBase.nativeElement).blur();
4720
+ $(this.inputBase.nativeElement).blur();
4718
4721
  }
4719
4722
  }
4720
4723
  };
@@ -4752,7 +4755,7 @@
4752
4755
  }
4753
4756
  };
4754
4757
  FormDateComponent.prototype.onFocusOut = function () {
4755
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4758
+ $(this.inputDiv.nativeElement).removeClass('top');
4756
4759
  this.inp.search = this.inp.value != null ?
4757
4760
  (this.inp.type === exports.InputType.Year ?
4758
4761
  moment__namespace(this.inp.value, 'jYYYY/jMM/jDD').locale('fa').format('jYYYY') :
@@ -4767,10 +4770,10 @@
4767
4770
  var offsetOfBottom = window.innerHeight - rect.bottom;
4768
4771
  var height = this.inputCalendarDiv.nativeElement.offsetHeight;
4769
4772
  if (offsetOfBottom < height) {
4770
- $__namespace(this.inputDiv.nativeElement).addClass('top');
4773
+ $(this.inputDiv.nativeElement).addClass('top');
4771
4774
  }
4772
4775
  else {
4773
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4776
+ $(this.inputDiv.nativeElement).removeClass('top');
4774
4777
  }
4775
4778
  };
4776
4779
  FormDateComponent.prototype.selectDate = function (d) {
@@ -4786,10 +4789,10 @@
4786
4789
  d.selected = true;
4787
4790
  this.cSearch = this.inp.search;
4788
4791
  setTimeout(function () {
4789
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
4792
+ $(_this.inputDiv.nativeElement).removeClass('top');
4790
4793
  _this.changeIndex.emit('Tab');
4791
4794
  if (!_this.inForm) {
4792
- $__namespace(_this.inputBase.nativeElement).blur();
4795
+ $(_this.inputBase.nativeElement).blur();
4793
4796
  }
4794
4797
  }, 10);
4795
4798
  if (this.inp.onChange) {
@@ -5013,7 +5016,7 @@
5013
5016
  });
5014
5017
  };
5015
5018
  FormFileComponent.prototype.onClick = function () {
5016
- $__namespace(this.inputBase.nativeElement).focus();
5019
+ $(this.inputBase.nativeElement).focus();
5017
5020
  };
5018
5021
  FormFileComponent.prototype.onChange = function (e) {
5019
5022
  var e_1, _a;
@@ -5043,7 +5046,7 @@
5043
5046
  }
5044
5047
  };
5045
5048
  FormFileComponent.prototype.onFocusIn = function () {
5046
- $__namespace(this.inputBase.nativeElement).focus();
5049
+ $(this.inputBase.nativeElement).focus();
5047
5050
  };
5048
5051
  FormFileComponent.prototype.title = function () {
5049
5052
  if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
@@ -5088,7 +5091,7 @@
5088
5091
  };
5089
5092
  FormIconComponent.prototype.onFocusIn = function (e) {
5090
5093
  if (e === void 0) { e = null; }
5091
- $__namespace(this.inputBase.nativeElement).focus();
5094
+ $(this.inputBase.nativeElement).focus();
5092
5095
  if (this.inp.onFocusIn) {
5093
5096
  this.inp.onFocusIn(e);
5094
5097
  }
@@ -5204,7 +5207,7 @@
5204
5207
  FormComponent.decorators = [
5205
5208
  { type: core.Component, args: [{
5206
5209
  selector: 'lib-form',
5207
- template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\" [innerHTML]=\"this.form.l(this.form.subName)\"></div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Username || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.NationalCodeNum || inp.type == type.EconomicNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectSearchRadio || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month || inp.type == type.Year)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-slide (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Slide\" [inp]=\"inp\"></lib-form-slide>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n </span>\r\n </div>\r\n</form>\r\n",
5210
+ template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\" [innerHTML]=\"this.form.l(this.form.subName)\"></div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Username || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.NationalCodeNum || inp.type == type.EconomicNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectSearchRadio || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month || inp.type == type.Year)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-slide (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Slide\" [inp]=\"inp\"></lib-form-slide>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n <lib-form-pre *ngIf=\"inp.visible && inp.type == type.Pre\" [inp]=\"inp\"></lib-form-pre>\r\n </span>\r\n </div>\r\n</form>\r\n",
5208
5211
  styles: [".form{border-radius:var(--border-radius-base);padding:20px;position:relative}.form>.title{font-size:16px;font-weight:var(--font-bold);height:40px}.form>.sub-title,.form>.title{float:right;line-height:30px;margin-bottom:10px;position:relative;text-align:right;width:100%}.form>.sub-title{color:var(--black-light);font-size:12px;font-weight:var(--font-light);height:30px}.form .loading{background-color:#fff;border-radius:var(--border-radius-base);height:100%;right:0;top:0;z-index:104}.form .loading,.form .loading .text{position:absolute;text-align:center;width:100%}.form .loading .text{font-weight:var(--font-bold);height:35px;line-height:35px;top:calc(50% - 20px)}::ng-deep .form .loading .icon{font-size:20px!important;line-height:30px;margin-left:5px;position:relative;top:5px}.form-buttons,.form-error{float:right;width:100%}.form-error{color:var(--red-light);font-size:11px;height:15px;line-height:8px;margin-top:10px;padding:0 10px;position:relative;text-align:center}.form-error .message{float:left;width:calc(100% - 40px)}.form-error .icon{float:right;height:20px;line-height:6px;right:0;top:0;width:40px}.form .inputs{margin:0 -15px}"]
5209
5212
  },] }
5210
5213
  ];
@@ -5246,6 +5249,39 @@
5246
5249
  inp: [{ type: core.Input }]
5247
5250
  };
5248
5251
 
5252
+ var FormPreComponent = /** @class */ (function () {
5253
+ function FormPreComponent() {
5254
+ }
5255
+ FormPreComponent.prototype.ngOnInit = function () {
5256
+ var _this = this;
5257
+ this.inp.setValue = function (v) {
5258
+ _this.inp.value = typeof v === 'string' ? JSON.stringify(v, null, 2) : v;
5259
+ };
5260
+ this.inp.isValid = function () {
5261
+ return true;
5262
+ };
5263
+ this.inp.clear = function () {
5264
+ };
5265
+ };
5266
+ FormPreComponent.prototype.onClick = function () {
5267
+ if (this.inp.onClick) {
5268
+ this.inp.onClick(this.inp);
5269
+ }
5270
+ };
5271
+ return FormPreComponent;
5272
+ }());
5273
+ FormPreComponent.decorators = [
5274
+ { type: core.Component, args: [{
5275
+ selector: 'lib-form-pre',
5276
+ template: "<pre [id]=\"inp.id + 'PreInput'\" (click)=\"onClick()\" #inputDiv [className]=\"'form-input pre w-100' + ' ' + inp.class\" [innerHTML]=\"inp.l(inp.value)\">\r\n</pre>\r\n",
5277
+ styles: [".form-input.pre{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;font-size:12px;line-height:30px;min-height:30px!important;padding:0 15px;position:relative;text-align:center}"]
5278
+ },] }
5279
+ ];
5280
+ FormPreComponent.ctorParameters = function () { return []; };
5281
+ FormPreComponent.propDecorators = {
5282
+ inp: [{ type: core.Input }]
5283
+ };
5284
+
5249
5285
  var FormPlaqueSelectComponent = /** @class */ (function () {
5250
5286
  function FormPlaqueSelectComponent() {
5251
5287
  this.changeIndex = new core.EventEmitter();
@@ -5431,8 +5467,8 @@
5431
5467
  };
5432
5468
  };
5433
5469
  FormPlaqueSelectComponent.prototype.onFocusOutCloseOptions = function (e) {
5434
- if ($__namespace(e.relatedTarget).length !== 0 || $__namespace(e.rangeParent).length !== 0) {
5435
- if (!$__namespace(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$__namespace(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
5470
+ if ($(e.relatedTarget).length !== 0 || $(e.rangeParent).length !== 0) {
5471
+ if (!$(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
5436
5472
  if (this.open) {
5437
5473
  this.closeOptions();
5438
5474
  }
@@ -5468,7 +5504,7 @@
5468
5504
  var _this = this;
5469
5505
  setTimeout(function () {
5470
5506
  _this.open = false;
5471
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
5507
+ $(_this.inputDiv.nativeElement).removeClass('top');
5472
5508
  _this.removeHover();
5473
5509
  if (_this.inp.value === null) {
5474
5510
  _this.inp.search = '';
@@ -5486,10 +5522,10 @@
5486
5522
  var offsetOfBottom = window.innerHeight - rect.bottom;
5487
5523
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
5488
5524
  if (offsetOfBottom < height) {
5489
- $__namespace(this.inputDiv.nativeElement).addClass('top');
5525
+ $(this.inputDiv.nativeElement).addClass('top');
5490
5526
  }
5491
5527
  else {
5492
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
5528
+ $(this.inputDiv.nativeElement).removeClass('top');
5493
5529
  }
5494
5530
  };
5495
5531
  FormPlaqueSelectComponent.prototype.onKeyDown = function (e) {
@@ -6062,7 +6098,7 @@
6062
6098
  }
6063
6099
  };
6064
6100
  FormRadioComponent.prototype.onFocusIn = function () {
6065
- $__namespace(this.inputBase.nativeElement).focus();
6101
+ $(this.inputBase.nativeElement).focus();
6066
6102
  };
6067
6103
  return FormRadioComponent;
6068
6104
  }());
@@ -6187,7 +6223,7 @@
6187
6223
  return d;
6188
6224
  };
6189
6225
  this.inp.focusOut = function () {
6190
- $__namespace(_this.inputBase.nativeElement).blur();
6226
+ $(_this.inputBase.nativeElement).blur();
6191
6227
  };
6192
6228
  if (this.inp.hasBarcodeReader) {
6193
6229
  HelperClass.setBarcodeReader(this.inp);
@@ -6237,7 +6273,7 @@
6237
6273
  FormSelectComponent.prototype.openOptions = function () {
6238
6274
  this.setPosition();
6239
6275
  this.setHoverCenter();
6240
- $__namespace(this.inputBase.nativeElement).focus();
6276
+ $(this.inputBase.nativeElement).focus();
6241
6277
  };
6242
6278
  FormSelectComponent.prototype.onFocusOut = function () {
6243
6279
  this.closeOptions();
@@ -6245,7 +6281,7 @@
6245
6281
  FormSelectComponent.prototype.closeOptions = function () {
6246
6282
  var _this = this;
6247
6283
  setTimeout(function () {
6248
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
6284
+ $(_this.inputDiv.nativeElement).removeClass('top');
6249
6285
  _this.removeHover();
6250
6286
  if (_this.inp.value === null) {
6251
6287
  if (!_this.inp.addNew) {
@@ -6266,10 +6302,10 @@
6266
6302
  var offsetOfBottom = window.innerHeight - rect.bottom;
6267
6303
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
6268
6304
  if (offsetOfBottom < height) {
6269
- $__namespace(this.inputDiv.nativeElement).addClass('top');
6305
+ $(this.inputDiv.nativeElement).addClass('top');
6270
6306
  }
6271
6307
  else {
6272
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
6308
+ $(this.inputDiv.nativeElement).removeClass('top');
6273
6309
  }
6274
6310
  };
6275
6311
  FormSelectComponent.prototype.setOptions = function (r) {
@@ -6289,7 +6325,7 @@
6289
6325
  }
6290
6326
  else if (code === 13) {
6291
6327
  e.preventDefault();
6292
- if ($__namespace(this.inputBase.nativeElement).is(':focus')) {
6328
+ if ($(this.inputBase.nativeElement).is(':focus')) {
6293
6329
  var h = this.getSelectedHover();
6294
6330
  if (!h) {
6295
6331
  if (this.inp.addNew) {
@@ -6313,7 +6349,7 @@
6313
6349
  }
6314
6350
  };
6315
6351
  FormSelectComponent.prototype.toggleOption = function (e) {
6316
- if ((this.inp.multiple || this.inp.type === exports.InputType.SelectSearchRadio) && $__namespace(e.target).closest('.option').hasClass('option')) {
6352
+ if ((this.inp.multiple || this.inp.type === exports.InputType.SelectSearchRadio) && $(e.target).closest('.option').hasClass('option')) {
6317
6353
  return;
6318
6354
  }
6319
6355
  this.openOptions();
@@ -6463,7 +6499,7 @@
6463
6499
  setTimeout(function () {
6464
6500
  _this.changeIndex.emit(i);
6465
6501
  if (!_this.inForm) {
6466
- $__namespace(_this.inputBase.nativeElement).blur();
6502
+ $(_this.inputBase.nativeElement).blur();
6467
6503
  }
6468
6504
  }, 10);
6469
6505
  setTimeout(function () {
@@ -7074,7 +7110,7 @@
7074
7110
  _this.openOptions();
7075
7111
  };
7076
7112
  this.inp.focusOut = function () {
7077
- $__namespace(_this.inputBase.nativeElement).blur();
7113
+ $(_this.inputBase.nativeElement).blur();
7078
7114
  };
7079
7115
  };
7080
7116
  FormTimeComponent.prototype.toggleTime = function () {
@@ -7082,27 +7118,27 @@
7082
7118
  };
7083
7119
  FormTimeComponent.prototype.openOptions = function () {
7084
7120
  this.setPosition();
7085
- $__namespace(this.inputBase.nativeElement).focus();
7121
+ $(this.inputBase.nativeElement).focus();
7086
7122
  };
7087
7123
  FormTimeComponent.prototype.setPosition = function () {
7088
7124
  var rect = this.inputDiv.nativeElement.getBoundingClientRect();
7089
7125
  var offsetOfBottom = window.innerHeight - rect.bottom;
7090
7126
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
7091
7127
  if (offsetOfBottom < height) {
7092
- $__namespace(this.inputDiv.nativeElement).addClass('top');
7128
+ $(this.inputDiv.nativeElement).addClass('top');
7093
7129
  }
7094
7130
  else {
7095
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7131
+ $(this.inputDiv.nativeElement).removeClass('top');
7096
7132
  }
7097
7133
  };
7098
7134
  FormTimeComponent.prototype.onKeyDown = function (e) {
7099
7135
  var code = e.keyCode || e.which;
7100
7136
  if (code === 9 || code === 13) {
7101
7137
  e.preventDefault();
7102
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7138
+ $(this.inputDiv.nativeElement).removeClass('top');
7103
7139
  this.changeIndex.emit(code === 9 ? e.shiftKey ? 'ShiftTab' : 'Tab' : e.shiftKey ? 'ShiftEnter' : 'Enter');
7104
7140
  if (!this.inForm) {
7105
- $__namespace(this.inputBase.nativeElement).blur();
7141
+ $(this.inputBase.nativeElement).blur();
7106
7142
  }
7107
7143
  }
7108
7144
  };
@@ -7125,7 +7161,7 @@
7125
7161
  }
7126
7162
  };
7127
7163
  FormTimeComponent.prototype.onFocusOut = function () {
7128
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7164
+ $(this.inputDiv.nativeElement).removeClass('top');
7129
7165
  this.inp.search = this.inp.value;
7130
7166
  };
7131
7167
  FormTimeComponent.prototype.selectTime = function (v, s) {
@@ -7178,8 +7214,8 @@
7178
7214
  this.item.parent = this.parent;
7179
7215
  };
7180
7216
  FormTreeItemComponent.prototype.openClose = function (e) {
7181
- var ch = $__namespace(e.target).closest('.row-item').find(' > .children');
7182
- var oc = $__namespace(e.target).closest('.row-item').find(' > .open-close');
7217
+ var ch = $(e.target).closest('.row-item').find(' > .children');
7218
+ var oc = $(e.target).closest('.row-item').find(' > .open-close');
7183
7219
  if (ch.hasClass('open')) {
7184
7220
  ch.removeClass('open');
7185
7221
  ch.stop().slideUp();
@@ -7259,7 +7295,7 @@
7259
7295
  }
7260
7296
  };
7261
7297
  FormTreeComponent.prototype.onFocusIn = function () {
7262
- $__namespace(this.inputBase.nativeElement).focus();
7298
+ $(this.inputBase.nativeElement).focus();
7263
7299
  };
7264
7300
  FormTreeComponent.prototype.getSelected = function () {
7265
7301
  var e_1, _a;
@@ -8514,7 +8550,7 @@
8514
8550
  this.onFocusIn();
8515
8551
  };
8516
8552
  FormStarComponent.prototype.onFocusIn = function () {
8517
- $__namespace(this.inputBase.nativeElement).focus();
8553
+ $(this.inputBase.nativeElement).focus();
8518
8554
  };
8519
8555
  FormStarComponent.prototype.onKeyDown = function (e) {
8520
8556
  var code = e.keyCode || e.which;
@@ -8593,7 +8629,7 @@
8593
8629
  }
8594
8630
  };
8595
8631
  FormTagComponent.prototype.onKeyDown = function (e) {
8596
- var v = $__namespace(this.inputBase.nativeElement);
8632
+ var v = $(this.inputBase.nativeElement);
8597
8633
  if (this.inp.onKeyDown) {
8598
8634
  this.inp.onKeyDown(e);
8599
8635
  }
@@ -8616,7 +8652,7 @@
8616
8652
  this.inp.error = null;
8617
8653
  };
8618
8654
  FormTagComponent.prototype.onFocusOut = function () {
8619
- var v = $__namespace(this.inputBase.nativeElement);
8655
+ var v = $(this.inputBase.nativeElement);
8620
8656
  this.setValue(v);
8621
8657
  };
8622
8658
  FormTagComponent.prototype.removeTag = function (t) {
@@ -8903,7 +8939,7 @@
8903
8939
  });
8904
8940
  };
8905
8941
  FormUploaderComponent.prototype.onClick = function () {
8906
- $__namespace(this.inputBase.nativeElement).focus();
8942
+ $(this.inputBase.nativeElement).focus();
8907
8943
  };
8908
8944
  FormUploaderComponent.prototype.onChange = function (e) {
8909
8945
  var e_1, _c;
@@ -8953,7 +8989,7 @@
8953
8989
  }
8954
8990
  };
8955
8991
  FormUploaderComponent.prototype.onFocusIn = function () {
8956
- $__namespace(this.inputBase.nativeElement).focus();
8992
+ $(this.inputBase.nativeElement).focus();
8957
8993
  };
8958
8994
  FormUploaderComponent.prototype.title = function () {
8959
8995
  if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
@@ -9051,7 +9087,7 @@
9051
9087
  }
9052
9088
  };
9053
9089
  FormSlideComponent.prototype.onFocusIn = function () {
9054
- $__namespace(this.inputBase.nativeElement).focus();
9090
+ $(this.inputBase.nativeElement).focus();
9055
9091
  };
9056
9092
  return FormSlideComponent;
9057
9093
  }());
@@ -9093,7 +9129,7 @@
9093
9129
  FormTimeComponent, NotificationComponent, FormFingerComponent, FormVehicleSearchComponent, FormCkeditorComponent, FormUploaderComponent,
9094
9130
  LayoutComponent, LoadingComponent, NotfoundComponent, FormVehicleComponent, FormHiddenComponent, CalendarComponent, FormToggleComponent,
9095
9131
  ClockComponent, ChartComponent, FormTagComponent, ErrorComponent, LoginComponent, FormStarComponent, FormSlideComponent,
9096
- SafeStylePipe, SafeHtmlPipe,
9132
+ SafeStylePipe, SafeHtmlPipe, FormPreComponent
9097
9133
  ],
9098
9134
  imports: [
9099
9135
  common.CommonModule,
@@ -9111,6 +9147,7 @@
9111
9147
  FormTimeComponent, NotificationComponent, FormFingerComponent, FormVehicleSearchComponent, FormCkeditorComponent, FormUploaderComponent,
9112
9148
  LayoutComponent, LoadingComponent, NotfoundComponent, FormVehicleComponent, FormHiddenComponent, CalendarComponent, FormToggleComponent,
9113
9149
  ClockComponent, ChartComponent, FormTagComponent, ErrorComponent, LoginComponent, FormStarComponent, FormSlideComponent,
9150
+ FormPreComponent
9114
9151
  ]
9115
9152
  },] }
9116
9153
  ];
@@ -9685,7 +9722,7 @@
9685
9722
  p.Area = _this.permissions.Area;
9686
9723
  p.Controller = 'print';
9687
9724
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
9688
- var params = $$1.param(_this.searchData(true));
9725
+ var params = $.param(_this.searchData(true));
9689
9726
  var u = _this.getUrl(access.Url);
9690
9727
  window.open('/report' + u + (params ? (u.includes('?') ? '&' : '?') + params : ''), '_blank');
9691
9728
  };
@@ -10317,6 +10354,7 @@
10317
10354
  exports.ɵn = LoginComponent;
10318
10355
  exports.ɵo = SafeStylePipe;
10319
10356
  exports.ɵp = SafeHtmlPipe;
10357
+ exports.ɵq = FormPreComponent;
10320
10358
 
10321
10359
  Object.defineProperty(exports, '__esModule', { value: true });
10322
10360