ps-toolkit-ui 1.4.56 → 1.4.57
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.
- package/bundles/ps-toolkit-ui.umd.js +9 -25
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/row/table.row.component.js +4 -2
- package/esm2015/lib/components/table/table.component.js +10 -26
- package/fesm2015/ps-toolkit-ui.js +9 -25
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/table/row/table.row.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2558,7 +2558,8 @@
|
|
|
2558
2558
|
// @ts-ignore
|
|
2559
2559
|
$__namespace(_this.childrenDiv.nativeElement).sortable({
|
|
2560
2560
|
axis: 'y',
|
|
2561
|
-
|
|
2561
|
+
items: '.row-con',
|
|
2562
|
+
handle: '> .row > .handle > .handle-sortable',
|
|
2562
2563
|
update: function () {
|
|
2563
2564
|
var data = [];
|
|
2564
2565
|
// @ts-ignore
|
|
@@ -3087,40 +3088,23 @@
|
|
|
3087
3088
|
TableComponent.prototype.setSortable = function () {
|
|
3088
3089
|
var _this = this;
|
|
3089
3090
|
setTimeout(function () {
|
|
3090
|
-
console.log(1111);
|
|
3091
3091
|
// @ts-ignore
|
|
3092
|
-
$__namespace(
|
|
3092
|
+
$__namespace(_this.rows.nativeElement).sortable({
|
|
3093
3093
|
axis: 'y',
|
|
3094
3094
|
items: '.row-con',
|
|
3095
|
+
handle: '> .row > .handle > .handle-sortable',
|
|
3095
3096
|
update: function () {
|
|
3096
3097
|
var data = [];
|
|
3097
3098
|
// @ts-ignore
|
|
3098
3099
|
$__namespace(_this.rows.nativeElement).sortable('toArray').forEach(function (x) { return data.push(x); });
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3100
|
+
new RequestClass(_this.table.l).send(_this.table.url + 'Sort', exports.Method.Post, { Ids: data }, null, function () {
|
|
3101
|
+
if (_this.table.onSort) {
|
|
3102
|
+
_this.table.onSort();
|
|
3103
|
+
}
|
|
3104
|
+
});
|
|
3104
3105
|
}
|
|
3105
3106
|
}).disableSelection();
|
|
3106
3107
|
}, 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);
|
|
3124
3108
|
};
|
|
3125
3109
|
TableComponent.prototype.getRows = function () {
|
|
3126
3110
|
var c = this.table.rows.filter(function (x) { return !x.Data.ParentId; });
|