ps-toolkit-ui 1.4.51 → 1.4.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('jquery'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('highcharts')) :
3
- typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'jquery', 'lodash', 'jalali-moment', '@angular/router', '@angular/forms', '@angular/common', '@angular/platform-browser', 'highcharts'], 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.ng.forms, global.ng.common, global.ng.platformBrowser, global.Highcharts));
5
- }(this, (function (exports, core, $$1, _, moment, router, forms, common, platformBrowser, Highcharts) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('jquery'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('jquery-ui-dist/jquery-ui/sortable'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('highcharts')) :
3
+ typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'jquery', 'lodash', 'jalali-moment', '@angular/router', 'jquery-ui-dist/jquery-ui/sortable', '@angular/forms', '@angular/common', '@angular/platform-browser', 'highcharts'], 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, null, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.Highcharts));
5
+ }(this, (function (exports, core, $$1, _, moment, router, sortable, forms, common, platformBrowser, Highcharts) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) { return e; } else {
@@ -2586,7 +2586,7 @@
2586
2586
  inp.tooltip = option.Name;
2587
2587
  inp.onChange = function () {
2588
2588
  _this.row.Data[option.Action] = !inp.data();
2589
- new RequestClass(_this.table.environment, _this.table.l).send(option.url.replace('{}', _this.row.Data.Id), exports.Method.Post, null, null, function () {
2589
+ new RequestClass(_this.table.environment, _this.table.l).send(option.Url.replace('{}', _this.row.Data.Id), exports.Method.Post, null, null, function () {
2590
2590
  });
2591
2591
  };
2592
2592
  inp.displayLabel = false;
@@ -3087,22 +3087,40 @@
3087
3087
  TableComponent.prototype.setSortable = function () {
3088
3088
  var _this = this;
3089
3089
  setTimeout(function () {
3090
+ console.log(1111);
3090
3091
  // @ts-ignore
3091
- $__namespace(_this.rows.nativeElement).sortable({
3092
+ $__namespace('.table .body').sortable({
3092
3093
  axis: 'y',
3093
- items: 'tr',
3094
+ items: '.row-con',
3094
3095
  update: function () {
3095
3096
  var data = [];
3096
3097
  // @ts-ignore
3097
3098
  $__namespace(_this.rows.nativeElement).sortable('toArray').forEach(function (x) { return data.push(x); });
3098
- new RequestClass(_this.table.l).send(_this.table.url + 'Sort', exports.Method.Post, { Ids: data }, null, function () {
3099
- if (_this.table.onSort) {
3100
- _this.table.onSort();
3101
- }
3102
- });
3099
+ // new RequestClass(this.table.l).send(this.table.url + 'Sort', Method.Post, {Ids: data}, null, () => {
3100
+ // if (this.table.onSort){
3101
+ // this.table.onSort();
3102
+ // }
3103
+ // });
3103
3104
  }
3104
3105
  }).disableSelection();
3105
3106
  }, 500);
3107
+ // setTimeout(() => {
3108
+ // // @ts-ignore
3109
+ // $(this.rows.nativeElement).sortable({
3110
+ // axis: 'y',
3111
+ // items: 'tr',
3112
+ // update: () => {
3113
+ // const data = [];
3114
+ // // @ts-ignore
3115
+ // $(this.rows.nativeElement).sortable('toArray').forEach(x => data.push(x));
3116
+ // new RequestClass(this.table.l).send(this.table.url + 'Sort', Method.Post, {Ids: data}, null, () => {
3117
+ // if (this.table.onSort){
3118
+ // this.table.onSort();
3119
+ // }
3120
+ // });
3121
+ // }
3122
+ // }).disableSelection();
3123
+ // }, 500);
3106
3124
  };
3107
3125
  TableComponent.prototype.getRows = function () {
3108
3126
  var c = this.table.rows.filter(function (x) { return !x.Data.ParentId; });