@smartsoft001/crud-shell-angular 1.1.696 → 1.1.701
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/smartsoft001-crud-shell-angular.umd.js +31 -31
- package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
- package/esm2015/lib/pages/list/list.component.js +4 -4
- package/fesm2015/smartsoft001-crud-shell-angular.js +3 -3
- package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
- package/package.json +6 -6
|
@@ -2204,15 +2204,15 @@
|
|
|
2204
2204
|
this.baseInstance.listOptions = this.listOptions;
|
|
2205
2205
|
};
|
|
2206
2206
|
ListComponent.prototype.ngOnInit = function () {
|
|
2207
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
2207
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2208
2208
|
return __awaiter(this, void 0, void 0, function () {
|
|
2209
|
-
var newFilter, endButtons, compiledComponents,
|
|
2209
|
+
var newFilter, endButtons, compiledComponents, _h, _j;
|
|
2210
2210
|
var _this = this;
|
|
2211
|
-
return __generator(this, function (
|
|
2212
|
-
switch (
|
|
2211
|
+
return __generator(this, function (_k) {
|
|
2212
|
+
switch (_k.label) {
|
|
2213
2213
|
case 0: return [4 /*yield*/, this.pageService.checkPermissions()];
|
|
2214
2214
|
case 1:
|
|
2215
|
-
|
|
2215
|
+
_k.sent();
|
|
2216
2216
|
newFilter = null;
|
|
2217
2217
|
if (((_a = this.config.list) === null || _a === void 0 ? void 0 : _a.resetQuery) === 'beforeInit') {
|
|
2218
2218
|
newFilter = Object.assign({ query: this.config.baseQuery ? __spreadArray([], __read(this.config.baseQuery)) : [], paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter);
|
|
@@ -2225,7 +2225,7 @@
|
|
|
2225
2225
|
? this.config.pagination.limit : null, offset: ((_c = this.searchService.filter) === null || _c === void 0 ? void 0 : _c.offset) || ((_d = this.searchService.filter) === null || _d === void 0 ? void 0 : _d.offset) === 0
|
|
2226
2226
|
? this.searchService.filter.offset : this.config.pagination ? 0 : null, sortBy: ((_e = this.searchService.filter) === null || _e === void 0 ? void 0 : _e.sortBy) ? this.searchService.filter.sortBy : this.config.sort
|
|
2227
2227
|
? this.config.sort["default"] : null, sortDesc: ((_f = this.searchService.filter) === null || _f === void 0 ? void 0 : _f.sortDesc) ? this.searchService.filter.sortDesc : this.config.sort
|
|
2228
|
-
? this.config.sort["defaultDesc"] : null, query:
|
|
2228
|
+
? this.config.sort["defaultDesc"] : null, query: this.config.baseQuery ? __spreadArray([], __read(this.config.baseQuery)) : [] }, this.searchService.filter);
|
|
2229
2229
|
}
|
|
2230
2230
|
this.facade.read(newFilter);
|
|
2231
2231
|
endButtons = this.getEndButtons();
|
|
@@ -2258,17 +2258,17 @@
|
|
|
2258
2258
|
: []))),
|
|
2259
2259
|
})];
|
|
2260
2260
|
case 2:
|
|
2261
|
-
compiledComponents =
|
|
2262
|
-
|
|
2263
|
-
|
|
2261
|
+
compiledComponents = _k.sent();
|
|
2262
|
+
_h = this;
|
|
2263
|
+
_j = {
|
|
2264
2264
|
provider: {
|
|
2265
2265
|
getData: function (filter) {
|
|
2266
2266
|
var global = Object.assign(Object.assign({}, _this.filter), filter);
|
|
2267
2267
|
_this.facade.read(global);
|
|
2268
2268
|
},
|
|
2269
2269
|
onChangeMultiSelected: function (list) { return __awaiter(_this, void 0, void 0, function () {
|
|
2270
|
-
return __generator(this, function (
|
|
2271
|
-
switch (
|
|
2270
|
+
return __generator(this, function (_h) {
|
|
2271
|
+
switch (_h.label) {
|
|
2272
2272
|
case 0:
|
|
2273
2273
|
if (!(list.length && !this.menuService.openedEnd)) return [3 /*break*/, 2];
|
|
2274
2274
|
return [4 /*yield*/, this.menuService.openEnd({
|
|
@@ -2276,14 +2276,14 @@
|
|
|
2276
2276
|
component: MultiselectComponent,
|
|
2277
2277
|
})];
|
|
2278
2278
|
case 1:
|
|
2279
|
-
|
|
2279
|
+
_h.sent();
|
|
2280
2280
|
return [3 /*break*/, 4];
|
|
2281
2281
|
case 2:
|
|
2282
2282
|
if (!(!list.length && this.menuService.openedEnd)) return [3 /*break*/, 4];
|
|
2283
2283
|
return [4 /*yield*/, this.menuService.closeEnd()];
|
|
2284
2284
|
case 3:
|
|
2285
|
-
|
|
2286
|
-
|
|
2285
|
+
_h.sent();
|
|
2286
|
+
_h.label = 4;
|
|
2287
2287
|
case 4:
|
|
2288
2288
|
this.facade.multiSelect(list);
|
|
2289
2289
|
return [2 /*return*/];
|
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
loading$: this.facade.loaded$.pipe(operators.map(function (l) { return !l; })),
|
|
2295
2295
|
},
|
|
2296
2296
|
cellPipe: this.config.list ? this.config.list.cellPipe : null,
|
|
2297
|
-
mode: (
|
|
2297
|
+
mode: (_g = this.config.list) === null || _g === void 0 ? void 0 : _g.mode,
|
|
2298
2298
|
type: this.config.type,
|
|
2299
2299
|
details: this.config.details
|
|
2300
2300
|
? {
|
|
@@ -2350,9 +2350,9 @@
|
|
|
2350
2350
|
},
|
|
2351
2351
|
})];
|
|
2352
2352
|
case 3:
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2353
|
+
_h.listOptions = (_j.pagination = _k.sent(),
|
|
2354
|
+
_j.sort = this.config.sort,
|
|
2355
|
+
_j);
|
|
2356
2356
|
this.cd.detectChanges();
|
|
2357
2357
|
this.initCloseMenu();
|
|
2358
2358
|
this.initTopComponent(compiledComponents);
|
|
@@ -2365,11 +2365,11 @@
|
|
|
2365
2365
|
ListComponent.prototype.initCloseMenu = function () {
|
|
2366
2366
|
var _this = this;
|
|
2367
2367
|
this.router.events.pipe(this.takeUntilDestroy).subscribe(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2368
|
-
return __generator(this, function (
|
|
2369
|
-
switch (
|
|
2368
|
+
return __generator(this, function (_h) {
|
|
2369
|
+
switch (_h.label) {
|
|
2370
2370
|
case 0: return [4 /*yield*/, this.clear()];
|
|
2371
2371
|
case 1:
|
|
2372
|
-
|
|
2372
|
+
_h.sent();
|
|
2373
2373
|
return [2 /*return*/];
|
|
2374
2374
|
}
|
|
2375
2375
|
});
|
|
@@ -2377,11 +2377,11 @@
|
|
|
2377
2377
|
};
|
|
2378
2378
|
ListComponent.prototype.clear = function () {
|
|
2379
2379
|
return __awaiter(this, void 0, void 0, function () {
|
|
2380
|
-
return __generator(this, function (
|
|
2381
|
-
switch (
|
|
2380
|
+
return __generator(this, function (_h) {
|
|
2381
|
+
switch (_h.label) {
|
|
2382
2382
|
case 0: return [4 /*yield*/, this.menuService.closeEnd()];
|
|
2383
2383
|
case 1:
|
|
2384
|
-
|
|
2384
|
+
_h.sent();
|
|
2385
2385
|
this.listOptions = Object.assign(Object.assign({}, this.listOptions), { select: null });
|
|
2386
2386
|
this.facade.multiSelect([]);
|
|
2387
2387
|
return [2 /*return*/];
|
|
@@ -2406,16 +2406,16 @@
|
|
|
2406
2406
|
icon: "checkbox-outline",
|
|
2407
2407
|
text: "multi",
|
|
2408
2408
|
handler: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2409
|
-
return __generator(this, function (
|
|
2410
|
-
switch (
|
|
2409
|
+
return __generator(this, function (_h) {
|
|
2410
|
+
switch (_h.label) {
|
|
2411
2411
|
case 0:
|
|
2412
2412
|
this.listOptions = Object.assign(Object.assign({}, this.listOptions), { select: this.listOptions.select === "multi" ? null : "multi" });
|
|
2413
2413
|
this.facade.multiSelect([]);
|
|
2414
2414
|
if (!this.menuService.openedEnd) return [3 /*break*/, 2];
|
|
2415
2415
|
return [4 /*yield*/, this.menuService.closeEnd()];
|
|
2416
2416
|
case 1:
|
|
2417
|
-
|
|
2418
|
-
|
|
2417
|
+
_h.sent();
|
|
2418
|
+
_h.label = 2;
|
|
2419
2419
|
case 2:
|
|
2420
2420
|
this.cd.detectChanges();
|
|
2421
2421
|
return [2 /*return*/];
|
|
@@ -2430,14 +2430,14 @@
|
|
|
2430
2430
|
icon: "filter-outline",
|
|
2431
2431
|
text: "filters",
|
|
2432
2432
|
handler: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2433
|
-
return __generator(this, function (
|
|
2434
|
-
switch (
|
|
2433
|
+
return __generator(this, function (_h) {
|
|
2434
|
+
switch (_h.label) {
|
|
2435
2435
|
case 0: return [4 /*yield*/, this.menuService.openEnd({
|
|
2436
2436
|
injector: this.injector,
|
|
2437
2437
|
component: FiltersComponent,
|
|
2438
2438
|
})];
|
|
2439
2439
|
case 1:
|
|
2440
|
-
|
|
2440
|
+
_h.sent();
|
|
2441
2441
|
return [2 /*return*/];
|
|
2442
2442
|
}
|
|
2443
2443
|
});
|