ps-toolkit-ui 1.17.97 → 1.17.99
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 +28 -17
- 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/classes/helper.class.js +1 -15
- package/esm2015/lib/classes/table.class.js +25 -1
- package/fesm2015/ps-toolkit-ui.js +25 -14
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +0 -2
- package/package.json +1 -1
- 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('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'jquery', 'lodash', 'jalali-moment', 'jquery-ui-dist/jquery-ui', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global.$$1, global._, global.moment,
|
|
5
|
-
}(this, (function (exports, core, $$1, _, moment,
|
|
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('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data'), require('file-saver'), require('xlsx')) :
|
|
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', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data', 'file-saver', 'xlsx'], 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.Highcharts, global.HighchartsExporting, global.HighchartsExportData, global.FileSaver, global.XLSX));
|
|
5
|
+
}(this, (function (exports, core, $$1, _, moment, router, rxjs, jqueryUi, forms, common, platformBrowser, ckeditor4Angular, Highcharts, HighchartsExporting, HighchartsExportData, FileSaver, XLSX) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) { return e; } else {
|
|
@@ -1839,19 +1839,6 @@
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return formData;
|
|
1841
1841
|
};
|
|
1842
|
-
HelperClass.sortable = function (elm, opt) {
|
|
1843
|
-
// @ts-ignore
|
|
1844
|
-
elm.sortable({
|
|
1845
|
-
axis: opt.axis,
|
|
1846
|
-
items: opt.items,
|
|
1847
|
-
handle: opt.handle,
|
|
1848
|
-
update: function () {
|
|
1849
|
-
if (opt.update) {
|
|
1850
|
-
opt.update();
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
1842
|
return HelperClass;
|
|
1856
1843
|
}());
|
|
1857
1844
|
|
|
@@ -9467,6 +9454,30 @@
|
|
|
9467
9454
|
window.open('/report' + _this.getUrl(access.Url) + (params ? '?' + params : ''), '_blank');
|
|
9468
9455
|
};
|
|
9469
9456
|
}
|
|
9457
|
+
else if (access.InputAction === exports.PermissionInputActionEnum.Modal) {
|
|
9458
|
+
accessInp.modal = this_1.optionsActions.find(function (x) { return x.name === access.Action; });
|
|
9459
|
+
accessInp.onClick = function () {
|
|
9460
|
+
if (accessInp.modal.table) {
|
|
9461
|
+
var p = new PermissionClass();
|
|
9462
|
+
p.Area = _this.permissions.Area;
|
|
9463
|
+
p.Controller = _this.permissions.Controller;
|
|
9464
|
+
p.Action = access.Action;
|
|
9465
|
+
accessInp.modal.table.permissions = p;
|
|
9466
|
+
if (accessInp.modal.table.form) {
|
|
9467
|
+
accessInp.modal.table.form.url = access.Url;
|
|
9468
|
+
accessInp.modal.table.form.baseUrl = access.Url;
|
|
9469
|
+
}
|
|
9470
|
+
accessInp.modal.table.set();
|
|
9471
|
+
}
|
|
9472
|
+
if (accessInp.modal.form) {
|
|
9473
|
+
accessInp.modal.form.name = access.Name;
|
|
9474
|
+
accessInp.modal.form.url = access.Url;
|
|
9475
|
+
accessInp.modal.form.onSuccessBase = function () {
|
|
9476
|
+
accessInp.modal.hide();
|
|
9477
|
+
};
|
|
9478
|
+
}
|
|
9479
|
+
};
|
|
9480
|
+
}
|
|
9470
9481
|
else if (access.InputAction === exports.PermissionInputActionEnum.OnClick) {
|
|
9471
9482
|
accessInp.onClick = function (btn) {
|
|
9472
9483
|
_this.optionsActions.find(function (x) { return x.name === access.Action; }).onClick(btn);
|