ps-toolkit-ui 1.21.69 → 1.21.79

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 (39) hide show
  1. package/bundles/ps-toolkit-ui.umd.js +89 -88
  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/form.class.js +1 -2
  6. package/esm2015/lib/classes/helper.class.js +1 -2
  7. package/esm2015/lib/classes/modal.class.js +1 -2
  8. package/esm2015/lib/classes/request.class.js +1 -2
  9. package/esm2015/lib/classes/table.class.js +1 -2
  10. package/esm2015/lib/components/accordion/accordion.component.js +1 -2
  11. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +1 -2
  12. package/esm2015/lib/components/form/button/form.button.component.js +1 -2
  13. package/esm2015/lib/components/form/date/form.date.component.js +1 -2
  14. package/esm2015/lib/components/form/file/form.file.component.js +1 -2
  15. package/esm2015/lib/components/form/icon/form.icon.component.js +1 -2
  16. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +1 -2
  17. package/esm2015/lib/components/form/radio/form.radio.component.js +4 -3
  18. package/esm2015/lib/components/form/select/form.select.component.js +1 -2
  19. package/esm2015/lib/components/form/select/item/form.select.item.component.js +1 -1
  20. package/esm2015/lib/components/form/slide/form.slide.component.js +1 -2
  21. package/esm2015/lib/components/form/star/form.star.component.js +1 -2
  22. package/esm2015/lib/components/form/tag/form.tag.component.js +1 -2
  23. package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -1
  24. package/esm2015/lib/components/form/time/form.time.component.js +1 -2
  25. package/esm2015/lib/components/form/toggle/form.toggle.component.js +1 -1
  26. package/esm2015/lib/components/form/tree/form.tree.component.js +1 -2
  27. package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +1 -2
  28. package/esm2015/lib/components/form/uploader/form.uploader.component.js +1 -2
  29. package/esm2015/lib/components/form/vehicle/form.vehicle.component.js +1 -1
  30. package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +1 -1
  31. package/esm2015/lib/components/header/header.component.js +1 -2
  32. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +1 -2
  33. package/esm2015/lib/components/sidebar/sidebar.component.js +1 -2
  34. package/esm2015/lib/components/table/row/table.row.component.js +1 -2
  35. package/esm2015/lib/components/table/table.component.js +1 -2
  36. package/fesm2015/ps-toolkit-ui.js +85 -85
  37. package/fesm2015/ps-toolkit-ui.js.map +1 -1
  38. package/package.json +3 -3
  39. 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');
@@ -648,7 +647,7 @@
648
647
  configurable: true
649
648
  });
650
649
  HeaderComponent.prototype.showUserDropDown = function (e) {
651
- $__namespace(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
650
+ $(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
652
651
  };
653
652
  return HeaderComponent;
654
653
  }());
@@ -1655,9 +1654,9 @@
1655
1654
  if (e === void 0) { e = true; }
1656
1655
  var id = HelperClass.random(20);
1657
1656
  // 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>');
1657
+ $('#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
1658
  setTimeout(function () {
1660
- var d = $__namespace('#' + id);
1659
+ var d = $('#' + id);
1661
1660
  d.fadeOut(300, function () {
1662
1661
  d.remove();
1663
1662
  });
@@ -1744,7 +1743,7 @@
1744
1743
  if (inp.type === exports.InputType.Text) {
1745
1744
  inp.setValue(s, false);
1746
1745
  setTimeout(function () {
1747
- $__namespace('#' + inp.id + 'TextInput .control').click();
1746
+ $('#' + inp.id + 'TextInput .control').click();
1748
1747
  }, 100);
1749
1748
  }
1750
1749
  if (inp.onBarcodeReaderChange !== null) {
@@ -2035,7 +2034,7 @@
2035
2034
  if (request != null) {
2036
2035
  request.abort();
2037
2036
  }
2038
- request = $$1.ajax(settings);
2037
+ request = $.ajax(settings);
2039
2038
  request.done(function (response) {
2040
2039
  if (!_this.environment.production) {
2041
2040
  console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
@@ -2887,14 +2886,14 @@
2887
2886
  AccordionRowClass.prototype.toggle = function () {
2888
2887
  var _this = this;
2889
2888
  setTimeout(function () {
2890
- $__namespace('#AccordionRow' + _this.id + ' > .header').click();
2889
+ $('#AccordionRow' + _this.id + ' > .header').click();
2891
2890
  }, 100);
2892
2891
  };
2893
2892
  AccordionRowClass.prototype.open = function () {
2894
2893
  var _this = this;
2895
2894
  setTimeout(function () {
2896
- if (!$__namespace('#AccordionRow' + _this.id + ' > .content').hasClass('open')) {
2897
- $__namespace('#AccordionRow' + _this.id + ' > .header').click();
2895
+ if (!$('#AccordionRow' + _this.id + ' > .content').hasClass('open')) {
2896
+ $('#AccordionRow' + _this.id + ' > .header').click();
2898
2897
  }
2899
2898
  }, 100);
2900
2899
  };
@@ -2935,7 +2934,7 @@
2935
2934
  };
2936
2935
  }
2937
2936
  SidebarItemComponent.prototype.openClose = function (e) {
2938
- var op = $__namespace(e.target).closest('.user-sidebar-item');
2937
+ var op = $(e.target).closest('.user-sidebar-item');
2939
2938
  if (op.hasClass('open')) {
2940
2939
  op.removeClass('open');
2941
2940
  op.find(' > .children').slideUp();
@@ -2968,7 +2967,7 @@
2968
2967
  return false;
2969
2968
  };
2970
2969
  SidebarItemComponent.prototype.closeSidebar = function () {
2971
- $__namespace('#Sidebar').addClass('open').removeClass('close');
2970
+ $('#Sidebar').addClass('open').removeClass('close');
2972
2971
  };
2973
2972
  return SidebarItemComponent;
2974
2973
  }());
@@ -3112,7 +3111,7 @@
3112
3111
  return null;
3113
3112
  };
3114
3113
  SidebarComponent.prototype.toggleSidebar = function () {
3115
- $__namespace('#Sidebar').toggleClass('open').toggleClass('close');
3114
+ $('#Sidebar').toggleClass('open').toggleClass('close');
3116
3115
  };
3117
3116
  return SidebarComponent;
3118
3117
  }());
@@ -3371,14 +3370,14 @@
3371
3370
  configurable: true
3372
3371
  });
3373
3372
  TableRowComponent.prototype.mouseOut = function (e) {
3374
- $__namespace(e.target).find('.options-con').removeClass('show-group');
3373
+ $(e.target).find('.options-con').removeClass('show-group');
3375
3374
  };
3376
3375
  TableRowComponent.prototype.ngOnInit = function () {
3377
3376
  var _this = this;
3378
3377
  this.row.subTable = this.table.subTable != null ? HelperClass.clone(this.table.subTable) : null;
3379
3378
  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
3379
  this.group.onFocusIn = function (e) {
3381
- $__namespace(e.target).closest('.options-con').addClass('show-group');
3380
+ $(e.target).closest('.options-con').addClass('show-group');
3382
3381
  };
3383
3382
  this.group.onFocusOut = function (e) {
3384
3383
  // $(e.target).closest('.options-con').removeClass('show-group');
@@ -3403,8 +3402,8 @@
3403
3402
  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
3403
  this.showChildren.onClick = function () {
3405
3404
  var _a, _b;
3406
- if ($__namespace(_this.childrenDiv.nativeElement).is(':visible')) {
3407
- $__namespace(_this.childrenDiv.nativeElement).slideUp();
3405
+ if ($(_this.childrenDiv.nativeElement).is(':visible')) {
3406
+ $(_this.childrenDiv.nativeElement).slideUp();
3408
3407
  _this.showChildren.icon = 'fad fa-angle-left f-s-22';
3409
3408
  }
3410
3409
  else if (_this.table.hasChildren && _this.children.length === 0) {
@@ -3420,11 +3419,11 @@
3420
3419
  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
3420
  _this.row.subTable.permissions = ps;
3422
3421
  _this.row.subTable.set();
3423
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3422
+ $(_this.childrenDiv.nativeElement).slideDown();
3424
3423
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3425
3424
  }
3426
3425
  else {
3427
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3426
+ $(_this.childrenDiv.nativeElement).slideDown();
3428
3427
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3429
3428
  }
3430
3429
  };
@@ -3446,7 +3445,7 @@
3446
3445
  new RequestClass(this.table.environment, this.table.l).send(this.table.url + ("/" + p), exports.Method.Post, data, this.showChildren, function (result) {
3447
3446
  _this.children = result.List;
3448
3447
  setTimeout(function () {
3449
- $__namespace(_this.childrenDiv.nativeElement).slideDown();
3448
+ $(_this.childrenDiv.nativeElement).slideDown();
3450
3449
  _this.showChildren.icon = 'fad fa-angle-down f-s-22';
3451
3450
  }, 50);
3452
3451
  }, function () { });
@@ -3468,14 +3467,14 @@
3468
3467
  if (this.table.hasChildren) {
3469
3468
  setTimeout(function () {
3470
3469
  // @ts-ignore
3471
- $__namespace(_this.childrenDiv.nativeElement).sortable({
3470
+ $(_this.childrenDiv.nativeElement).sortable({
3472
3471
  axis: 'y',
3473
3472
  items: '.row',
3474
3473
  handle: '> .handle-con > .handle.handle-sortable',
3475
3474
  update: function () {
3476
3475
  var data = [];
3477
3476
  // @ts-ignore
3478
- $__namespace(_this.childrenDiv.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
3477
+ $(_this.childrenDiv.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
3479
3478
  data.push(parseInt(x, 10));
3480
3479
  });
3481
3480
  var p = new PermissionClass();
@@ -3788,7 +3787,7 @@
3788
3787
  };
3789
3788
  TableRowComponent.prototype.selectRow = function (e) {
3790
3789
  if (this.table.withSelect) {
3791
- if ($__namespace(e.target).closest('.handle-con').hasClass('handle-con') || $__namespace(e.target).closest('.options-cell').hasClass('options-cell')) {
3790
+ if ($(e.target).closest('.handle-con').hasClass('handle-con') || $(e.target).closest('.options-cell').hasClass('options-cell')) {
3792
3791
  return;
3793
3792
  }
3794
3793
  var s = this.table.rows.find(function (x) { return x.selected; });
@@ -3803,7 +3802,7 @@
3803
3802
  };
3804
3803
  TableRowComponent.prototype.dblclickRow = function (e) {
3805
3804
  if (this.table.withSelect) {
3806
- if ($__namespace(e.target).closest('.handle-con').hasClass('handle-con') || $__namespace(e.target).closest('.options-cell').hasClass('options-cell')) {
3805
+ if ($(e.target).closest('.handle-con').hasClass('handle-con') || $(e.target).closest('.options-cell').hasClass('options-cell')) {
3807
3806
  return;
3808
3807
  }
3809
3808
  var s = this.table.rows.find(function (x) { return x.selected; });
@@ -3870,8 +3869,8 @@
3870
3869
  if (this.onShow) {
3871
3870
  this.onShow(data);
3872
3871
  }
3873
- $__namespace('body').addClass('open-modal');
3874
- $__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
3872
+ $('body').addClass('open-modal');
3873
+ $('#' + this.id + 'Modal').fadeIn(300, function () {
3875
3874
  if (_this.form != null) {
3876
3875
  if (_this.form.onShowModal) {
3877
3876
  _this.form.onShowModal();
@@ -3882,8 +3881,8 @@
3882
3881
  };
3883
3882
  ModalClass.prototype.hide = function () {
3884
3883
  var _this = this;
3885
- $__namespace('body').removeClass('open-modal');
3886
- $__namespace('#' + this.id + 'Modal').fadeOut(300, function () {
3884
+ $('body').removeClass('open-modal');
3885
+ $('#' + this.id + 'Modal').fadeOut(300, function () {
3887
3886
  if (_this.onHide) {
3888
3887
  _this.onHide();
3889
3888
  }
@@ -3985,7 +3984,7 @@
3985
3984
  _this.table.load(_this.reload);
3986
3985
  };
3987
3986
  this.export.onClick = function () {
3988
- $__namespace(_this.exportDropDown.nativeElement).slideToggle();
3987
+ $(_this.exportDropDown.nativeElement).slideToggle();
3989
3988
  };
3990
3989
  this.pdf.onClick = function () {
3991
3990
  _this.exportTable(exports.TableExportType.Pdf, _this.pdf);
@@ -4000,12 +3999,12 @@
4000
3999
  _this.exportTable(exports.TableExportType.Print, _this.print);
4001
4000
  };
4002
4001
  this.maximum.onClick = function () {
4003
- $__namespace(_this.tableDiv.nativeElement).toggleClass('maximum');
4002
+ $(_this.tableDiv.nativeElement).toggleClass('maximum');
4004
4003
  _this.maximum.icon = _this.maximum.name === 'Minimum' ? 'fad fa-arrows-maximize' : 'fad fa-arrows-minimize';
4005
4004
  _this.maximum.name = _this.maximum.name === 'Minimum' ? 'Maximum' : 'Minimum';
4006
4005
  };
4007
4006
  this.expertSearch.onClick = function () {
4008
- $__namespace(_this.tableDiv.nativeElement).addClass('show-expert-search');
4007
+ $(_this.tableDiv.nativeElement).addClass('show-expert-search');
4009
4008
  };
4010
4009
  this.table.showConfirm = function (l, url, data, accept) {
4011
4010
  _this.confirm.show(l, url, data, accept);
@@ -4067,14 +4066,14 @@
4067
4066
  var _this = this;
4068
4067
  setTimeout(function () {
4069
4068
  // @ts-ignore
4070
- $__namespace(_this.rows.nativeElement).sortable({
4069
+ $(_this.rows.nativeElement).sortable({
4071
4070
  axis: 'y',
4072
4071
  items: '.row',
4073
4072
  handle: '> .handle-con > .handle.handle-sortable',
4074
4073
  update: function () {
4075
4074
  var data = [];
4076
4075
  // @ts-ignore
4077
- $__namespace(_this.rows.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
4076
+ $(_this.rows.nativeElement).sortable('toArray', { attribute: 'data-id' }).forEach(function (x) {
4078
4077
  data.push(parseInt(x, 10));
4079
4078
  });
4080
4079
  var p = new PermissionClass();
@@ -4112,7 +4111,7 @@
4112
4111
  this.confirm.show(this.table.l(e.action + 'Confirm'), e.url, e.data, e.accept);
4113
4112
  };
4114
4113
  TableComponent.prototype.changeSort = function (e, s) {
4115
- if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {
4114
+ if ($(e.target).closest('.header-search').hasClass('header-search')) {
4116
4115
  return;
4117
4116
  }
4118
4117
  this.table.sortType = this.table.sort === s ? this.table.sortType === 'ASC' ? 'DESC' : null : 'ASC';
@@ -4123,8 +4122,8 @@
4123
4122
  return this.table.optionsActions.filter(function (x) { return x instanceof ModalClass; });
4124
4123
  };
4125
4124
  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');
4125
+ if (this.table.expertSearch && $(e.target).hasClass('search-form')) {
4126
+ $(this.tableDiv.nativeElement).removeClass('show-expert-search');
4128
4127
  }
4129
4128
  };
4130
4129
  return TableComponent;
@@ -4294,10 +4293,10 @@
4294
4293
  var _this = this;
4295
4294
  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
4295
  if (b.length > 0) {
4297
- $__namespace(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
4296
+ $(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
4298
4297
  }
4299
4298
  else {
4300
- $__namespace(this.inputIcon.nativeElement).addClass('fa-money-check').removeClass(this.banks.map(function (x) { return x.name; }));
4299
+ $(this.inputIcon.nativeElement).addClass('fa-money-check').removeClass(this.banks.map(function (x) { return x.name; }));
4301
4300
  }
4302
4301
  };
4303
4302
  FormBankCardComponent.prototype.changeFocus = function (p, a) {
@@ -4381,7 +4380,7 @@
4381
4380
  };
4382
4381
  };
4383
4382
  FormButtonComponent.prototype.onFocusIn = function () {
4384
- $__namespace(this.inputBase.nativeElement).focus();
4383
+ $(this.inputBase.nativeElement).focus();
4385
4384
  };
4386
4385
  FormButtonComponent.prototype.onClick = function (e) {
4387
4386
  if (e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0) {
@@ -4569,7 +4568,7 @@
4569
4568
  _this.openCalendar();
4570
4569
  };
4571
4570
  this.inp.focusOut = function () {
4572
- $__namespace(_this.inputBase.nativeElement).blur();
4571
+ $(_this.inputBase.nativeElement).blur();
4573
4572
  };
4574
4573
  };
4575
4574
  FormDateComponent.prototype.setInpValue = function (v) {
@@ -4705,16 +4704,16 @@
4705
4704
  };
4706
4705
  FormDateComponent.prototype.openCalendar = function () {
4707
4706
  this.setPosition();
4708
- $__namespace(this.inputBase.nativeElement).focus();
4707
+ $(this.inputBase.nativeElement).focus();
4709
4708
  };
4710
4709
  FormDateComponent.prototype.onKeyDown = function (e) {
4711
4710
  var code = e.keyCode || e.which;
4712
4711
  if (code === 9 || code === 13) {
4713
4712
  e.preventDefault();
4714
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4713
+ $(this.inputDiv.nativeElement).removeClass('top');
4715
4714
  this.changeIndex.emit(code === 9 ? e.shiftKey ? 'ShiftTab' : 'Tab' : e.shiftKey ? 'ShiftEnter' : 'Enter');
4716
4715
  if (!this.inForm) {
4717
- $__namespace(this.inputBase.nativeElement).blur();
4716
+ $(this.inputBase.nativeElement).blur();
4718
4717
  }
4719
4718
  }
4720
4719
  };
@@ -4752,7 +4751,7 @@
4752
4751
  }
4753
4752
  };
4754
4753
  FormDateComponent.prototype.onFocusOut = function () {
4755
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4754
+ $(this.inputDiv.nativeElement).removeClass('top');
4756
4755
  this.inp.search = this.inp.value != null ?
4757
4756
  (this.inp.type === exports.InputType.Year ?
4758
4757
  moment__namespace(this.inp.value, 'jYYYY/jMM/jDD').locale('fa').format('jYYYY') :
@@ -4767,10 +4766,10 @@
4767
4766
  var offsetOfBottom = window.innerHeight - rect.bottom;
4768
4767
  var height = this.inputCalendarDiv.nativeElement.offsetHeight;
4769
4768
  if (offsetOfBottom < height) {
4770
- $__namespace(this.inputDiv.nativeElement).addClass('top');
4769
+ $(this.inputDiv.nativeElement).addClass('top');
4771
4770
  }
4772
4771
  else {
4773
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
4772
+ $(this.inputDiv.nativeElement).removeClass('top');
4774
4773
  }
4775
4774
  };
4776
4775
  FormDateComponent.prototype.selectDate = function (d) {
@@ -4786,10 +4785,10 @@
4786
4785
  d.selected = true;
4787
4786
  this.cSearch = this.inp.search;
4788
4787
  setTimeout(function () {
4789
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
4788
+ $(_this.inputDiv.nativeElement).removeClass('top');
4790
4789
  _this.changeIndex.emit('Tab');
4791
4790
  if (!_this.inForm) {
4792
- $__namespace(_this.inputBase.nativeElement).blur();
4791
+ $(_this.inputBase.nativeElement).blur();
4793
4792
  }
4794
4793
  }, 10);
4795
4794
  if (this.inp.onChange) {
@@ -5013,7 +5012,7 @@
5013
5012
  });
5014
5013
  };
5015
5014
  FormFileComponent.prototype.onClick = function () {
5016
- $__namespace(this.inputBase.nativeElement).focus();
5015
+ $(this.inputBase.nativeElement).focus();
5017
5016
  };
5018
5017
  FormFileComponent.prototype.onChange = function (e) {
5019
5018
  var e_1, _a;
@@ -5043,7 +5042,7 @@
5043
5042
  }
5044
5043
  };
5045
5044
  FormFileComponent.prototype.onFocusIn = function () {
5046
- $__namespace(this.inputBase.nativeElement).focus();
5045
+ $(this.inputBase.nativeElement).focus();
5047
5046
  };
5048
5047
  FormFileComponent.prototype.title = function () {
5049
5048
  if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
@@ -5088,7 +5087,7 @@
5088
5087
  };
5089
5088
  FormIconComponent.prototype.onFocusIn = function (e) {
5090
5089
  if (e === void 0) { e = null; }
5091
- $__namespace(this.inputBase.nativeElement).focus();
5090
+ $(this.inputBase.nativeElement).focus();
5092
5091
  if (this.inp.onFocusIn) {
5093
5092
  this.inp.onFocusIn(e);
5094
5093
  }
@@ -5431,8 +5430,8 @@
5431
5430
  };
5432
5431
  };
5433
5432
  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')) {
5433
+ if ($(e.relatedTarget).length !== 0 || $(e.rangeParent).length !== 0) {
5434
+ if (!$(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
5436
5435
  if (this.open) {
5437
5436
  this.closeOptions();
5438
5437
  }
@@ -5468,7 +5467,7 @@
5468
5467
  var _this = this;
5469
5468
  setTimeout(function () {
5470
5469
  _this.open = false;
5471
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
5470
+ $(_this.inputDiv.nativeElement).removeClass('top');
5472
5471
  _this.removeHover();
5473
5472
  if (_this.inp.value === null) {
5474
5473
  _this.inp.search = '';
@@ -5486,10 +5485,10 @@
5486
5485
  var offsetOfBottom = window.innerHeight - rect.bottom;
5487
5486
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
5488
5487
  if (offsetOfBottom < height) {
5489
- $__namespace(this.inputDiv.nativeElement).addClass('top');
5488
+ $(this.inputDiv.nativeElement).addClass('top');
5490
5489
  }
5491
5490
  else {
5492
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
5491
+ $(this.inputDiv.nativeElement).removeClass('top');
5493
5492
  }
5494
5493
  };
5495
5494
  FormPlaqueSelectComponent.prototype.onKeyDown = function (e) {
@@ -6009,7 +6008,9 @@
6009
6008
  }
6010
6009
  _this.onChange(isEdit);
6011
6010
  };
6012
- this.inp.setValue(this.inp.value, false);
6011
+ if (this.inp.default != null) {
6012
+ this.inp.setValue(this.inp.default, true);
6013
+ }
6013
6014
  this.inp.isValid = function () {
6014
6015
  _this.inp.error = null;
6015
6016
  if (_this.inp.required && _this.inp.value === null) {
@@ -6060,7 +6061,7 @@
6060
6061
  }
6061
6062
  };
6062
6063
  FormRadioComponent.prototype.onFocusIn = function () {
6063
- $__namespace(this.inputBase.nativeElement).focus();
6064
+ $(this.inputBase.nativeElement).focus();
6064
6065
  };
6065
6066
  return FormRadioComponent;
6066
6067
  }());
@@ -6185,7 +6186,7 @@
6185
6186
  return d;
6186
6187
  };
6187
6188
  this.inp.focusOut = function () {
6188
- $__namespace(_this.inputBase.nativeElement).blur();
6189
+ $(_this.inputBase.nativeElement).blur();
6189
6190
  };
6190
6191
  if (this.inp.hasBarcodeReader) {
6191
6192
  HelperClass.setBarcodeReader(this.inp);
@@ -6235,7 +6236,7 @@
6235
6236
  FormSelectComponent.prototype.openOptions = function () {
6236
6237
  this.setPosition();
6237
6238
  this.setHoverCenter();
6238
- $__namespace(this.inputBase.nativeElement).focus();
6239
+ $(this.inputBase.nativeElement).focus();
6239
6240
  };
6240
6241
  FormSelectComponent.prototype.onFocusOut = function () {
6241
6242
  this.closeOptions();
@@ -6243,7 +6244,7 @@
6243
6244
  FormSelectComponent.prototype.closeOptions = function () {
6244
6245
  var _this = this;
6245
6246
  setTimeout(function () {
6246
- $__namespace(_this.inputDiv.nativeElement).removeClass('top');
6247
+ $(_this.inputDiv.nativeElement).removeClass('top');
6247
6248
  _this.removeHover();
6248
6249
  if (_this.inp.value === null) {
6249
6250
  if (!_this.inp.addNew) {
@@ -6264,10 +6265,10 @@
6264
6265
  var offsetOfBottom = window.innerHeight - rect.bottom;
6265
6266
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
6266
6267
  if (offsetOfBottom < height) {
6267
- $__namespace(this.inputDiv.nativeElement).addClass('top');
6268
+ $(this.inputDiv.nativeElement).addClass('top');
6268
6269
  }
6269
6270
  else {
6270
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
6271
+ $(this.inputDiv.nativeElement).removeClass('top');
6271
6272
  }
6272
6273
  };
6273
6274
  FormSelectComponent.prototype.setOptions = function (r) {
@@ -6287,7 +6288,7 @@
6287
6288
  }
6288
6289
  else if (code === 13) {
6289
6290
  e.preventDefault();
6290
- if ($__namespace(this.inputBase.nativeElement).is(':focus')) {
6291
+ if ($(this.inputBase.nativeElement).is(':focus')) {
6291
6292
  var h = this.getSelectedHover();
6292
6293
  if (!h) {
6293
6294
  if (this.inp.addNew) {
@@ -6311,7 +6312,7 @@
6311
6312
  }
6312
6313
  };
6313
6314
  FormSelectComponent.prototype.toggleOption = function (e) {
6314
- if ((this.inp.multiple || this.inp.type === exports.InputType.SelectSearchRadio) && $__namespace(e.target).closest('.option').hasClass('option')) {
6315
+ if ((this.inp.multiple || this.inp.type === exports.InputType.SelectSearchRadio) && $(e.target).closest('.option').hasClass('option')) {
6315
6316
  return;
6316
6317
  }
6317
6318
  this.openOptions();
@@ -6461,7 +6462,7 @@
6461
6462
  setTimeout(function () {
6462
6463
  _this.changeIndex.emit(i);
6463
6464
  if (!_this.inForm) {
6464
- $__namespace(_this.inputBase.nativeElement).blur();
6465
+ $(_this.inputBase.nativeElement).blur();
6465
6466
  }
6466
6467
  }, 10);
6467
6468
  setTimeout(function () {
@@ -7072,7 +7073,7 @@
7072
7073
  _this.openOptions();
7073
7074
  };
7074
7075
  this.inp.focusOut = function () {
7075
- $__namespace(_this.inputBase.nativeElement).blur();
7076
+ $(_this.inputBase.nativeElement).blur();
7076
7077
  };
7077
7078
  };
7078
7079
  FormTimeComponent.prototype.toggleTime = function () {
@@ -7080,27 +7081,27 @@
7080
7081
  };
7081
7082
  FormTimeComponent.prototype.openOptions = function () {
7082
7083
  this.setPosition();
7083
- $__namespace(this.inputBase.nativeElement).focus();
7084
+ $(this.inputBase.nativeElement).focus();
7084
7085
  };
7085
7086
  FormTimeComponent.prototype.setPosition = function () {
7086
7087
  var rect = this.inputDiv.nativeElement.getBoundingClientRect();
7087
7088
  var offsetOfBottom = window.innerHeight - rect.bottom;
7088
7089
  var height = this.inputOptionsDiv.nativeElement.offsetHeight;
7089
7090
  if (offsetOfBottom < height) {
7090
- $__namespace(this.inputDiv.nativeElement).addClass('top');
7091
+ $(this.inputDiv.nativeElement).addClass('top');
7091
7092
  }
7092
7093
  else {
7093
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7094
+ $(this.inputDiv.nativeElement).removeClass('top');
7094
7095
  }
7095
7096
  };
7096
7097
  FormTimeComponent.prototype.onKeyDown = function (e) {
7097
7098
  var code = e.keyCode || e.which;
7098
7099
  if (code === 9 || code === 13) {
7099
7100
  e.preventDefault();
7100
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7101
+ $(this.inputDiv.nativeElement).removeClass('top');
7101
7102
  this.changeIndex.emit(code === 9 ? e.shiftKey ? 'ShiftTab' : 'Tab' : e.shiftKey ? 'ShiftEnter' : 'Enter');
7102
7103
  if (!this.inForm) {
7103
- $__namespace(this.inputBase.nativeElement).blur();
7104
+ $(this.inputBase.nativeElement).blur();
7104
7105
  }
7105
7106
  }
7106
7107
  };
@@ -7123,7 +7124,7 @@
7123
7124
  }
7124
7125
  };
7125
7126
  FormTimeComponent.prototype.onFocusOut = function () {
7126
- $__namespace(this.inputDiv.nativeElement).removeClass('top');
7127
+ $(this.inputDiv.nativeElement).removeClass('top');
7127
7128
  this.inp.search = this.inp.value;
7128
7129
  };
7129
7130
  FormTimeComponent.prototype.selectTime = function (v, s) {
@@ -7176,8 +7177,8 @@
7176
7177
  this.item.parent = this.parent;
7177
7178
  };
7178
7179
  FormTreeItemComponent.prototype.openClose = function (e) {
7179
- var ch = $__namespace(e.target).closest('.row-item').find(' > .children');
7180
- var oc = $__namespace(e.target).closest('.row-item').find(' > .open-close');
7180
+ var ch = $(e.target).closest('.row-item').find(' > .children');
7181
+ var oc = $(e.target).closest('.row-item').find(' > .open-close');
7181
7182
  if (ch.hasClass('open')) {
7182
7183
  ch.removeClass('open');
7183
7184
  ch.stop().slideUp();
@@ -7257,7 +7258,7 @@
7257
7258
  }
7258
7259
  };
7259
7260
  FormTreeComponent.prototype.onFocusIn = function () {
7260
- $__namespace(this.inputBase.nativeElement).focus();
7261
+ $(this.inputBase.nativeElement).focus();
7261
7262
  };
7262
7263
  FormTreeComponent.prototype.getSelected = function () {
7263
7264
  var e_1, _a;
@@ -8512,7 +8513,7 @@
8512
8513
  this.onFocusIn();
8513
8514
  };
8514
8515
  FormStarComponent.prototype.onFocusIn = function () {
8515
- $__namespace(this.inputBase.nativeElement).focus();
8516
+ $(this.inputBase.nativeElement).focus();
8516
8517
  };
8517
8518
  FormStarComponent.prototype.onKeyDown = function (e) {
8518
8519
  var code = e.keyCode || e.which;
@@ -8591,7 +8592,7 @@
8591
8592
  }
8592
8593
  };
8593
8594
  FormTagComponent.prototype.onKeyDown = function (e) {
8594
- var v = $__namespace(this.inputBase.nativeElement);
8595
+ var v = $(this.inputBase.nativeElement);
8595
8596
  if (this.inp.onKeyDown) {
8596
8597
  this.inp.onKeyDown(e);
8597
8598
  }
@@ -8614,7 +8615,7 @@
8614
8615
  this.inp.error = null;
8615
8616
  };
8616
8617
  FormTagComponent.prototype.onFocusOut = function () {
8617
- var v = $__namespace(this.inputBase.nativeElement);
8618
+ var v = $(this.inputBase.nativeElement);
8618
8619
  this.setValue(v);
8619
8620
  };
8620
8621
  FormTagComponent.prototype.removeTag = function (t) {
@@ -8901,7 +8902,7 @@
8901
8902
  });
8902
8903
  };
8903
8904
  FormUploaderComponent.prototype.onClick = function () {
8904
- $__namespace(this.inputBase.nativeElement).focus();
8905
+ $(this.inputBase.nativeElement).focus();
8905
8906
  };
8906
8907
  FormUploaderComponent.prototype.onChange = function (e) {
8907
8908
  var e_1, _c;
@@ -8951,7 +8952,7 @@
8951
8952
  }
8952
8953
  };
8953
8954
  FormUploaderComponent.prototype.onFocusIn = function () {
8954
- $__namespace(this.inputBase.nativeElement).focus();
8955
+ $(this.inputBase.nativeElement).focus();
8955
8956
  };
8956
8957
  FormUploaderComponent.prototype.title = function () {
8957
8958
  if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
@@ -9049,7 +9050,7 @@
9049
9050
  }
9050
9051
  };
9051
9052
  FormSlideComponent.prototype.onFocusIn = function () {
9052
- $__namespace(this.inputBase.nativeElement).focus();
9053
+ $(this.inputBase.nativeElement).focus();
9053
9054
  };
9054
9055
  return FormSlideComponent;
9055
9056
  }());
@@ -9683,7 +9684,7 @@
9683
9684
  p.Area = _this.permissions.Area;
9684
9685
  p.Controller = 'print';
9685
9686
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
9686
- var params = $$1.param(_this.searchData(true));
9687
+ var params = $.param(_this.searchData(true));
9687
9688
  var u = _this.getUrl(access.Url);
9688
9689
  window.open('/report' + u + (params ? (u.includes('?') ? '&' : '?') + params : ''), '_blank');
9689
9690
  };