@senior-gestao-empresarial/angular-components 7.22.0 → 7.23.1
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/senior-gestao-empresarial-angular-components.umd.js +439 -3
- package/bundles/senior-gestao-empresarial-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js +2 -2
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js.map +1 -1
- package/components/global-filter/global-filter-modal/global-filter-modal.component.d.ts +41 -0
- package/components/global-filter/global-filter.component.d.ts +61 -0
- package/components/global-filter/global-filter.module.d.ts +2 -0
- package/components/global-filter/global-filter.service.d.ts +54 -0
- package/components/global-filter/index.d.ts +3 -0
- package/components/storage/filters-storage.service.d.ts +2 -1
- package/esm2015/components/global-filter/global-filter-modal/global-filter-modal.component.js +124 -0
- package/esm2015/components/global-filter/global-filter.component.js +120 -0
- package/esm2015/components/global-filter/global-filter.module.js +29 -0
- package/esm2015/components/global-filter/global-filter.service.js +74 -0
- package/esm2015/components/global-filter/index.js +4 -0
- package/esm2015/components/storage/filters-storage.service.js +7 -2
- package/esm2015/locale/fallback.js +79 -0
- package/esm2015/public-api.js +3 -1
- package/esm2015/senior-gestao-empresarial-angular-components.js +4 -1
- package/esm5/components/global-filter/global-filter-modal/global-filter-modal.component.js +124 -0
- package/esm5/components/global-filter/global-filter.component.js +135 -0
- package/esm5/components/global-filter/global-filter.module.js +32 -0
- package/esm5/components/global-filter/global-filter.service.js +87 -0
- package/esm5/components/global-filter/index.js +4 -0
- package/esm5/components/storage/filters-storage.service.js +12 -5
- package/esm5/locale/fallback.js +79 -0
- package/esm5/public-api.js +3 -1
- package/esm5/senior-gestao-empresarial-angular-components.js +4 -1
- package/fesm2015/senior-gestao-empresarial-angular-components.js +400 -5
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +435 -7
- package/fesm5/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/locale/fallback.d.ts +78 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/senior-gestao-empresarial-angular-components.d.ts +3 -0
- package/senior-gestao-empresarial-angular-components.metadata.json +1 -1
|
@@ -6,15 +6,15 @@ import { NavigationEnd, PRIMARY_OUTLET, ActivatedRoute, Router, RouterModule } f
|
|
|
6
6
|
import { Subject, throwError, from, of, interval, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
7
7
|
import { takeUntil, filter, catchError, map, takeWhile, switchMap, take, finalize } from 'rxjs/operators';
|
|
8
8
|
import * as moment$2 from 'moment';
|
|
9
|
-
import { FormField, FieldType, ButtonModule, LoadingStateModule } from '@seniorsistemas/angular-components';
|
|
9
|
+
import { FormField, FieldType, ButtonModule, LoadingStateModule, DynamicFormModule } from '@seniorsistemas/angular-components';
|
|
10
10
|
import { HttpParams, HttpClient } from '@angular/common/http';
|
|
11
11
|
import { MessageService } from 'primeng/api';
|
|
12
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
12
|
+
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
13
13
|
import { HttpInterceptorModule } from '@seniorsistemas/platform-components';
|
|
14
14
|
import { TooltipModule } from 'primeng/tooltip';
|
|
15
15
|
import { DialogModule } from 'primeng/dialog';
|
|
16
16
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
17
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
17
|
+
import { FormControl, FormGroup, FormBuilder } from '@angular/forms';
|
|
18
18
|
import { user } from '@seniorsistemas/senior-platform-data';
|
|
19
19
|
import { Client, FrameImpl } from '@stomp/stompjs';
|
|
20
20
|
import * as SockJS from 'sockjs-client';
|
|
@@ -8611,6 +8611,7 @@ var StorageService = /** @class */ (function () {
|
|
|
8611
8611
|
}());
|
|
8612
8612
|
|
|
8613
8613
|
var moment$1 = moment$2; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
8614
|
+
var ERPX_GLOBAL_FILTER_KEY = 'ERPX_GLOBAL_FILTER';
|
|
8614
8615
|
var FiltersStorageService = /** @class */ (function (_super) {
|
|
8615
8616
|
__extends(FiltersStorageService, _super);
|
|
8616
8617
|
function FiltersStorageService() {
|
|
@@ -8636,15 +8637,21 @@ var FiltersStorageService = /** @class */ (function (_super) {
|
|
|
8636
8637
|
});
|
|
8637
8638
|
});
|
|
8638
8639
|
};
|
|
8639
|
-
FiltersStorageService.prototype.getFilters = function (key) {
|
|
8640
|
+
FiltersStorageService.prototype.getFilters = function (key, includeGlobalFilter) {
|
|
8641
|
+
if (includeGlobalFilter === void 0) { includeGlobalFilter = false; }
|
|
8640
8642
|
return __awaiter(this, void 0, void 0, function () {
|
|
8641
|
-
var store;
|
|
8643
|
+
var store, globalStore;
|
|
8642
8644
|
return __generator(this, function (_a) {
|
|
8643
8645
|
switch (_a.label) {
|
|
8644
8646
|
case 0: return [4 /*yield*/, _super.prototype.get.call(this, this.FILTERS_KEY)];
|
|
8645
8647
|
case 1:
|
|
8646
8648
|
store = (_a.sent()) || {};
|
|
8647
|
-
return [
|
|
8649
|
+
if (!includeGlobalFilter) return [3 /*break*/, 3];
|
|
8650
|
+
return [4 /*yield*/, _super.prototype.get.call(this, ERPX_GLOBAL_FILTER_KEY)];
|
|
8651
|
+
case 2:
|
|
8652
|
+
globalStore = (_a.sent()) || {};
|
|
8653
|
+
return [2 /*return*/, __assign(__assign({}, globalStore), store[key])];
|
|
8654
|
+
case 3: return [2 /*return*/, store[key] || {}];
|
|
8648
8655
|
}
|
|
8649
8656
|
});
|
|
8650
8657
|
});
|
|
@@ -9559,9 +9566,430 @@ var ModulesEnum;
|
|
|
9559
9566
|
ModulesEnum["CONTROLADORIA_GERENCIAL"] = "CONTROLADORIA_GERENCIAL";
|
|
9560
9567
|
})(ModulesEnum || (ModulesEnum = {}));
|
|
9561
9568
|
|
|
9569
|
+
var GlobalFilterService = /** @class */ (function () {
|
|
9570
|
+
function GlobalFilterService() {
|
|
9571
|
+
this._showComponent = true;
|
|
9572
|
+
this._excludedRoutes = [];
|
|
9573
|
+
this.filterChangeSubject = new Subject();
|
|
9574
|
+
}
|
|
9575
|
+
/**
|
|
9576
|
+
* Emits a filter change event to all subscribers.
|
|
9577
|
+
* This method should be called whenever the global filter values change
|
|
9578
|
+
* to notify all components listening for filter updates.
|
|
9579
|
+
*
|
|
9580
|
+
* @param event - The filter fields object containing e070emp and e070fil information
|
|
9581
|
+
* @param event.e070emp - e070emp (company) filter value
|
|
9582
|
+
* @param event.e070fil - e070fil (branch) filter value
|
|
9583
|
+
*/
|
|
9584
|
+
GlobalFilterService.prototype.onFilterChange = function (event) {
|
|
9585
|
+
this.filterChangeSubject.next(event);
|
|
9586
|
+
};
|
|
9587
|
+
Object.defineProperty(GlobalFilterService.prototype, "filterChange", {
|
|
9588
|
+
/**
|
|
9589
|
+
* Observable stream of filter changes.
|
|
9590
|
+
* Subscribe to this to receive notifications when the filter changes.
|
|
9591
|
+
*
|
|
9592
|
+
* @returns Observable that emits objects containing e070emp and e070fil filter values
|
|
9593
|
+
*/
|
|
9594
|
+
get: function () {
|
|
9595
|
+
return this.filterChangeSubject.asObservable();
|
|
9596
|
+
},
|
|
9597
|
+
enumerable: true,
|
|
9598
|
+
configurable: true
|
|
9599
|
+
});
|
|
9600
|
+
Object.defineProperty(GlobalFilterService.prototype, "showComponent", {
|
|
9601
|
+
/**
|
|
9602
|
+
* Gets the visibility state of the global filter component.
|
|
9603
|
+
* Use this to determine whether the global filter should be displayed.
|
|
9604
|
+
*
|
|
9605
|
+
* @returns true if the component should be shown, false otherwise
|
|
9606
|
+
*/
|
|
9607
|
+
get: function () {
|
|
9608
|
+
return this._showComponent;
|
|
9609
|
+
},
|
|
9610
|
+
/**
|
|
9611
|
+
* Sets the visibility state of the global filter component.
|
|
9612
|
+
* Use this to programmatically show or hide the global filter.
|
|
9613
|
+
*
|
|
9614
|
+
* @param value - true to show the component, false to hide it
|
|
9615
|
+
*/
|
|
9616
|
+
set: function (value) {
|
|
9617
|
+
this._showComponent = value;
|
|
9618
|
+
},
|
|
9619
|
+
enumerable: true,
|
|
9620
|
+
configurable: true
|
|
9621
|
+
});
|
|
9622
|
+
Object.defineProperty(GlobalFilterService.prototype, "excludedRoutes", {
|
|
9623
|
+
/**
|
|
9624
|
+
* Gets the list of routes where the global filter component should not be displayed.
|
|
9625
|
+
* These routes will automatically hide the global filter component.
|
|
9626
|
+
*
|
|
9627
|
+
* @returns Array of route paths to exclude from displaying the global filter
|
|
9628
|
+
*/
|
|
9629
|
+
get: function () {
|
|
9630
|
+
return this._excludedRoutes;
|
|
9631
|
+
},
|
|
9632
|
+
/**
|
|
9633
|
+
* Sets the routes where the global filter component should not be displayed.
|
|
9634
|
+
* Use this to configure which pages should not show the global filter.
|
|
9635
|
+
*
|
|
9636
|
+
* @param value - Array of route paths to exclude from displaying the global filter
|
|
9637
|
+
*/
|
|
9638
|
+
set: function (value) {
|
|
9639
|
+
this._excludedRoutes = value;
|
|
9640
|
+
},
|
|
9641
|
+
enumerable: true,
|
|
9642
|
+
configurable: true
|
|
9643
|
+
});
|
|
9644
|
+
GlobalFilterService.ɵprov = ɵɵdefineInjectable({ factory: function GlobalFilterService_Factory() { return new GlobalFilterService(); }, token: GlobalFilterService, providedIn: "root" });
|
|
9645
|
+
GlobalFilterService = __decorate([
|
|
9646
|
+
Injectable({ providedIn: 'root' })
|
|
9647
|
+
], GlobalFilterService);
|
|
9648
|
+
return GlobalFilterService;
|
|
9649
|
+
}());
|
|
9650
|
+
|
|
9651
|
+
var GlobalFilterComponent = /** @class */ (function () {
|
|
9652
|
+
function GlobalFilterComponent(storageService, globalFilterService, router, translate) {
|
|
9653
|
+
this.storageService = storageService;
|
|
9654
|
+
this.globalFilterService = globalFilterService;
|
|
9655
|
+
this.router = router;
|
|
9656
|
+
this.translate = translate;
|
|
9657
|
+
/**
|
|
9658
|
+
* Routes that are excluded from the global filter by default.
|
|
9659
|
+
* These routes will not have the global filter applied to them.
|
|
9660
|
+
*/
|
|
9661
|
+
this.defaultExcludedRoutes = ['forbidden', 'main', 'not-found'];
|
|
9662
|
+
this._showComponent = true;
|
|
9663
|
+
this.showModal = false;
|
|
9664
|
+
this.ngUnsubscribe = new Subject();
|
|
9665
|
+
}
|
|
9666
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "mobileTooltip", {
|
|
9667
|
+
/**
|
|
9668
|
+
* Gets a formatted tooltip string for mobile devices.
|
|
9669
|
+
* Concatenates all active field labels and values separated by newlines.
|
|
9670
|
+
*/
|
|
9671
|
+
get: function () {
|
|
9672
|
+
var lines = this.fields
|
|
9673
|
+
.filter(function (filterItem) { return filterItem.value; })
|
|
9674
|
+
.map(function (filterItem) { return filterItem.label + ": " + filterItem.displayText; });
|
|
9675
|
+
return lines.length > 0 ? lines.join('\n') : null;
|
|
9676
|
+
},
|
|
9677
|
+
enumerable: true,
|
|
9678
|
+
configurable: true
|
|
9679
|
+
});
|
|
9680
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "fields", {
|
|
9681
|
+
/**
|
|
9682
|
+
* Gets the current filter field configuration array.
|
|
9683
|
+
*/
|
|
9684
|
+
get: function () {
|
|
9685
|
+
return [
|
|
9686
|
+
{
|
|
9687
|
+
label: this.translate.instant('erpx_fnd.empresa.e_070_emp'),
|
|
9688
|
+
value: this.e070emp,
|
|
9689
|
+
displayText: this.e070emp ? "" + this.e070emp.label : null
|
|
9690
|
+
},
|
|
9691
|
+
{
|
|
9692
|
+
label: this.translate.instant('erpx_fnd.empresa.e_070_fil'),
|
|
9693
|
+
value: this.e070fil,
|
|
9694
|
+
displayText: this.e070fil ? "" + this.e070fil.label : null
|
|
9695
|
+
}
|
|
9696
|
+
];
|
|
9697
|
+
},
|
|
9698
|
+
enumerable: true,
|
|
9699
|
+
configurable: true
|
|
9700
|
+
});
|
|
9701
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "showComponent", {
|
|
9702
|
+
/**
|
|
9703
|
+
* Gets the visibility state of the global filter component.
|
|
9704
|
+
* Considers both the service-level visibility setting and the current route.
|
|
9705
|
+
*/
|
|
9706
|
+
get: function () {
|
|
9707
|
+
return this.globalFilterService.showComponent && this._showComponent;
|
|
9708
|
+
},
|
|
9709
|
+
enumerable: true,
|
|
9710
|
+
configurable: true
|
|
9711
|
+
});
|
|
9712
|
+
GlobalFilterComponent.prototype.ngOnInit = function () {
|
|
9713
|
+
this.loadFiltersFromStorage();
|
|
9714
|
+
this.initializeRouteListener();
|
|
9715
|
+
};
|
|
9716
|
+
GlobalFilterComponent.prototype.ngOnDestroy = function () {
|
|
9717
|
+
this.ngUnsubscribe.next();
|
|
9718
|
+
this.ngUnsubscribe.complete();
|
|
9719
|
+
};
|
|
9720
|
+
/**
|
|
9721
|
+
* Handles the closing of the filter modal and updates field values.
|
|
9722
|
+
* When fields are provided, updates the component state and notifies the GlobalFilterService.
|
|
9723
|
+
*
|
|
9724
|
+
* @param event - Optional filter field values from the modal
|
|
9725
|
+
*/
|
|
9726
|
+
GlobalFilterComponent.prototype.onHide = function (event) {
|
|
9727
|
+
this.showModal = false;
|
|
9728
|
+
if (event) {
|
|
9729
|
+
this.e070emp = event.e070emp;
|
|
9730
|
+
this.e070fil = event.e070fil;
|
|
9731
|
+
this.globalFilterService.onFilterChange(event);
|
|
9732
|
+
}
|
|
9733
|
+
};
|
|
9734
|
+
/**
|
|
9735
|
+
* Loads the previously saved filter values from local storage.
|
|
9736
|
+
* Retrieves the filter data using the ERPX_GLOBAL_FILTER_KEY and applies it
|
|
9737
|
+
* to the component's e070emp and e070fil properties if available.
|
|
9738
|
+
*/
|
|
9739
|
+
GlobalFilterComponent.prototype.loadFiltersFromStorage = function () {
|
|
9740
|
+
var _this = this;
|
|
9741
|
+
this.storageService.get(ERPX_GLOBAL_FILTER_KEY).then(function (filterData) {
|
|
9742
|
+
if (filterData && Object.keys(filterData).length > 0) {
|
|
9743
|
+
_this.e070emp = filterData.e070emp;
|
|
9744
|
+
_this.e070fil = filterData.e070fil;
|
|
9745
|
+
}
|
|
9746
|
+
});
|
|
9747
|
+
};
|
|
9748
|
+
/**
|
|
9749
|
+
* Initializes the route change listener to manage component visibility.
|
|
9750
|
+
* Subscribes to router navigation events and sets the component visibility
|
|
9751
|
+
* based on the current route against excluded routes (default and service-configured).
|
|
9752
|
+
*/
|
|
9753
|
+
GlobalFilterComponent.prototype.initializeRouteListener = function () {
|
|
9754
|
+
var _this = this;
|
|
9755
|
+
this.router.events.pipe(takeUntil(this.ngUnsubscribe), filter(function (event) { return event instanceof NavigationEnd; })).subscribe(function (event) {
|
|
9756
|
+
var excludedRoutes = new RegExp("^/(" + __spread(_this.defaultExcludedRoutes, _this.globalFilterService.excludedRoutes).join('|') + ")(/|$)");
|
|
9757
|
+
var currentRoute = event.urlAfterRedirects;
|
|
9758
|
+
_this._showComponent = !excludedRoutes.test(currentRoute);
|
|
9759
|
+
});
|
|
9760
|
+
};
|
|
9761
|
+
GlobalFilterComponent.ctorParameters = function () { return [
|
|
9762
|
+
{ type: FiltersStorageService },
|
|
9763
|
+
{ type: GlobalFilterService },
|
|
9764
|
+
{ type: Router },
|
|
9765
|
+
{ type: TranslateService }
|
|
9766
|
+
]; };
|
|
9767
|
+
GlobalFilterComponent = __decorate([
|
|
9768
|
+
Component({
|
|
9769
|
+
selector: 'erpx-global-filter',
|
|
9770
|
+
template: "<ng-container *ngIf=\"showComponent\">\n <div class=\"global-filter-mobile\">\n <small class=\"label-title\">\n {{ 'erpx_fnd.empresa.filters' | translate }}\n </small>\n <div>\n <a (click)=\"showModal = true\" class=\"mobile-trigger\" [attr.title]=\"mobileTooltip\">\n <em class=\"fa fa-pencil-square-o\"></em>\n {{ 'erpx_fnd.empresa.company_and_branch' | translate }}\n </a>\n </div>\n </div>\n <div class=\"global-filter-desktop\">\n <div class=\"ui-g\">\n <div class=\"ui-g-6\" *ngFor=\"let field of fields\">\n <small class=\"label-title\">\n {{ field.label }}\n </small>\n <div>\n <a (click)=\"showModal = true\">\n <ng-container *ngIf=\"field.value; else emptyField\">\n <em class=\"fa fa-pencil-square-o\"></em>\n {{ field.displayText }}\n </ng-container>\n </a>\n </div>\n </div>\n </div>\n </div>\n <ng-template #emptyField>\n <em class=\"fa fa-search\"></em>\n {{ 'erpx_fnd.empresa.click_to_select' | translate }}\n </ng-template>\n\n <global-filter-modal *ngIf=\"showModal\"\n [e070emp]=\"e070emp\"\n [e070fil]=\"e070fil\"\n (hideModal)=\"onHide($event)\"\n ></global-filter-modal>\n</ng-container>",
|
|
9771
|
+
styles: [".label-title{color:#999}.global-filter-desktop,.global-filter-mobile{display:block;padding:8px 0}.global-filter-desktop a:hover,.global-filter-mobile a:hover{text-decoration:underline}.global-filter-desktop a .fa,.global-filter-mobile a .fa{margin-right:4px}.global-filter-desktop{display:none}@media (min-width:768px){.global-filter-mobile{display:none}.global-filter-desktop{display:block;width:480px}.global-filter-desktop a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}"]
|
|
9772
|
+
})
|
|
9773
|
+
], GlobalFilterComponent);
|
|
9774
|
+
return GlobalFilterComponent;
|
|
9775
|
+
}());
|
|
9776
|
+
|
|
9777
|
+
var GlobalFilterModalComponent = /** @class */ (function () {
|
|
9778
|
+
function GlobalFilterModalComponent(formBuilder, translate, e070empLookup, e070filLookup, storageService) {
|
|
9779
|
+
this.formBuilder = formBuilder;
|
|
9780
|
+
this.translate = translate;
|
|
9781
|
+
this.e070empLookup = e070empLookup;
|
|
9782
|
+
this.e070filLookup = e070filLookup;
|
|
9783
|
+
this.storageService = storageService;
|
|
9784
|
+
this.hideModal = new EventEmitter();
|
|
9785
|
+
this.isVisible = true;
|
|
9786
|
+
this.ngUnsubscribe = new Subject();
|
|
9787
|
+
}
|
|
9788
|
+
GlobalFilterModalComponent.prototype.ngOnInit = function () {
|
|
9789
|
+
this.createFormGroup();
|
|
9790
|
+
this.createFormField();
|
|
9791
|
+
this.handleFormChanges();
|
|
9792
|
+
};
|
|
9793
|
+
GlobalFilterModalComponent.prototype.ngOnDestroy = function () {
|
|
9794
|
+
this.ngUnsubscribe.next();
|
|
9795
|
+
this.ngUnsubscribe.complete();
|
|
9796
|
+
};
|
|
9797
|
+
/**
|
|
9798
|
+
* Handles the modal closing event.
|
|
9799
|
+
* Hides the modal and emits the optionally provided filter values to the parent component.
|
|
9800
|
+
*
|
|
9801
|
+
* @param value - Optional filter field values to emit when closing the modal
|
|
9802
|
+
*/
|
|
9803
|
+
GlobalFilterModalComponent.prototype.onHide = function (value) {
|
|
9804
|
+
this.isVisible = false;
|
|
9805
|
+
this.hideModal.emit(value);
|
|
9806
|
+
};
|
|
9807
|
+
/**
|
|
9808
|
+
* Saves the current form values and closes the modal.
|
|
9809
|
+
* Stores the filter values in local storage and then triggers the hide event
|
|
9810
|
+
* with the saved values.
|
|
9811
|
+
*/
|
|
9812
|
+
GlobalFilterModalComponent.prototype.onSave = function () {
|
|
9813
|
+
var _this = this;
|
|
9814
|
+
var value = this.formGroup.getRawValue();
|
|
9815
|
+
this.storageService.store(ERPX_GLOBAL_FILTER_KEY, value).then(function () { return _this.onHide(value); });
|
|
9816
|
+
};
|
|
9817
|
+
GlobalFilterModalComponent.prototype.createFormGroup = function () {
|
|
9818
|
+
this.formGroup = this.formBuilder.group({
|
|
9819
|
+
e070emp: [{ value: this.e070emp, disabled: false }],
|
|
9820
|
+
e070fil: [{ value: this.e070fil, disabled: !this.e070emp }],
|
|
9821
|
+
});
|
|
9822
|
+
};
|
|
9823
|
+
GlobalFilterModalComponent.prototype.createFormField = function () {
|
|
9824
|
+
var _this = this;
|
|
9825
|
+
this.formFields = [
|
|
9826
|
+
new FormField(__assign(__assign({}, this.e070empLookup.mountOptions({
|
|
9827
|
+
multiple: false,
|
|
9828
|
+
queryFields: ['e031moe.sigMoe']
|
|
9829
|
+
})), { appendTo: "body", emptyMessage: this.translate.instant('erpx_fnd.empresa.nothing_found') })),
|
|
9830
|
+
new FormField(__assign(__assign({}, this.e070filLookup.mountOptions({
|
|
9831
|
+
multiple: false,
|
|
9832
|
+
lookupFields: [
|
|
9833
|
+
{ name: "codFil", type: FieldType.Integer },
|
|
9834
|
+
{ name: "nomFil", type: FieldType.String },
|
|
9835
|
+
],
|
|
9836
|
+
searchFields: [
|
|
9837
|
+
{ name: "codFil", type: FieldType.Integer },
|
|
9838
|
+
{ name: "nomFil", type: FieldType.String },
|
|
9839
|
+
],
|
|
9840
|
+
searchGridFields: [
|
|
9841
|
+
{ name: "codFil", type: FieldType.Integer },
|
|
9842
|
+
{ name: "nomFil", type: FieldType.String },
|
|
9843
|
+
],
|
|
9844
|
+
entityDependency: [
|
|
9845
|
+
{
|
|
9846
|
+
name: "e070emp",
|
|
9847
|
+
field: "id",
|
|
9848
|
+
value: function () { return _this.formGroup.get("e070emp").value; }
|
|
9849
|
+
},
|
|
9850
|
+
],
|
|
9851
|
+
})), { emptyMessage: this.translate.instant('erpx_fnd.empresa.nothing_found'), appendTo: "body" })),
|
|
9852
|
+
];
|
|
9853
|
+
};
|
|
9854
|
+
GlobalFilterModalComponent.prototype.handleFormChanges = function () {
|
|
9855
|
+
var _this = this;
|
|
9856
|
+
this.formGroup.controls.e070emp.valueChanges
|
|
9857
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
9858
|
+
.subscribe(function (value) {
|
|
9859
|
+
var control = _this.formGroup.get('e070fil');
|
|
9860
|
+
value ? control.enable() : control.disable();
|
|
9861
|
+
control.reset();
|
|
9862
|
+
});
|
|
9863
|
+
};
|
|
9864
|
+
GlobalFilterModalComponent.ctorParameters = function () { return [
|
|
9865
|
+
{ type: FormBuilder },
|
|
9866
|
+
{ type: TranslateService },
|
|
9867
|
+
{ type: E070EmpLookup },
|
|
9868
|
+
{ type: E070FilLookup },
|
|
9869
|
+
{ type: FiltersStorageService }
|
|
9870
|
+
]; };
|
|
9871
|
+
__decorate([
|
|
9872
|
+
Input()
|
|
9873
|
+
], GlobalFilterModalComponent.prototype, "e070emp", void 0);
|
|
9874
|
+
__decorate([
|
|
9875
|
+
Input()
|
|
9876
|
+
], GlobalFilterModalComponent.prototype, "e070fil", void 0);
|
|
9877
|
+
__decorate([
|
|
9878
|
+
Output()
|
|
9879
|
+
], GlobalFilterModalComponent.prototype, "hideModal", void 0);
|
|
9880
|
+
GlobalFilterModalComponent = __decorate([
|
|
9881
|
+
Component({
|
|
9882
|
+
selector: 'global-filter-modal',
|
|
9883
|
+
template: "<p-dialog\n [(visible)]=\"isVisible\"\n [modal]=\"true\"\n (onHide)=\"onHide()\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n [focusOnShow]=\"false\"\n>\n <p-header>\n {{ 'erpx_fnd.empresa.global_filter_header' | translate }}\n </p-header>\n <p class=\"description\">\n {{ 'erpx_fnd.empresa.global_filter_description' | translate }}\n </p>\n <br>\n <s-dynamic-form\n [fields]=\"formFields\" [form]=\"formGroup\"\n ></s-dynamic-form>\n <p-footer>\n <s-button\n [label]=\"'erpx_fnd.empresa.save' | translate\"\n priority=\"primary\"\n (onClick)=\"onSave()\"\n ></s-button>\n <s-button\n [label]=\"'erpx_fnd.empresa.cancel' | translate\"\n priority=\"link\"\n (onClick)=\"onHide()\"\n ></s-button>\n </p-footer>\n</p-dialog>\n",
|
|
9884
|
+
styles: ["\n .description {\n padding: 0px 7px;\n }\n "]
|
|
9885
|
+
})
|
|
9886
|
+
], GlobalFilterModalComponent);
|
|
9887
|
+
return GlobalFilterModalComponent;
|
|
9888
|
+
}());
|
|
9889
|
+
|
|
9890
|
+
var GlobalFilterModule = /** @class */ (function () {
|
|
9891
|
+
function GlobalFilterModule() {
|
|
9892
|
+
}
|
|
9893
|
+
GlobalFilterModule = __decorate([
|
|
9894
|
+
NgModule({
|
|
9895
|
+
imports: [
|
|
9896
|
+
CommonModule,
|
|
9897
|
+
DynamicFormModule,
|
|
9898
|
+
DialogModule,
|
|
9899
|
+
ButtonModule,
|
|
9900
|
+
TranslateModule,
|
|
9901
|
+
ErpLookupsModule,
|
|
9902
|
+
],
|
|
9903
|
+
providers: [FiltersStorageService],
|
|
9904
|
+
declarations: [GlobalFilterComponent, GlobalFilterModalComponent],
|
|
9905
|
+
exports: [GlobalFilterComponent],
|
|
9906
|
+
})
|
|
9907
|
+
], GlobalFilterModule);
|
|
9908
|
+
return GlobalFilterModule;
|
|
9909
|
+
}());
|
|
9910
|
+
|
|
9911
|
+
var fallback = {
|
|
9912
|
+
"erpx_fnd.empresa.lookup_e070emp": "Empresa",
|
|
9913
|
+
"erpx_fnd.empresa.lookup_e070emp_search_title": "Consultar empresa",
|
|
9914
|
+
"erpx_fnd.empresa.lookup_e070emp_cod_emp": "Código",
|
|
9915
|
+
"erpx_fnd.empresa.lookup_e070emp_nom_emp": "Nome",
|
|
9916
|
+
"erpx_fnd.empresa.lookup_e070fil": "Filial",
|
|
9917
|
+
"erpx_fnd.empresa.lookup_e070fil_search_title": "Consultar filial",
|
|
9918
|
+
"erpx_fnd.empresa.lookup_e070fil_cod_fil": "Código",
|
|
9919
|
+
"erpx_fnd.empresa.lookup_e070fil_nom_fil": "Nome",
|
|
9920
|
+
"erpx_fnd.empresa.lookup_e070fil_sig_fil": "Sigla",
|
|
9921
|
+
"erpx_fnd.empresa.lookup_e070fil_num_cgc": "CNPJ/CPF",
|
|
9922
|
+
"erpx_fnd.empresa.lookup_e070fil_e007ufs_sig_ufs": "Estado",
|
|
9923
|
+
"erpx_fnd.empresa.lookup_e070fil_e008rai_nom_cid": "Cidade",
|
|
9924
|
+
"erpx_fnd.empresa.lookup_e070fil_ins_est": "Inscrição estadual",
|
|
9925
|
+
"erpx_fnd.empresa.lookup_e070fil_e007ufs_sig_ufs_sig_ufs": "Estado",
|
|
9926
|
+
"erpx_fnd.empresa.lookup_e070fil_bai_fil": "Bairro",
|
|
9927
|
+
"erpx_fnd.empresa.lookup_e070fil_fil_mat": "Matriz",
|
|
9928
|
+
"erpx_fnd.empresa.nothing_found": "Nenhum registro foi encontrado",
|
|
9929
|
+
"erpx_fnd.empresa.filter": "Filtrar",
|
|
9930
|
+
"erpx_fnd.empresa.clear": "Limpar",
|
|
9931
|
+
"erpx_fnd.empresa.cancel": "Cancelar",
|
|
9932
|
+
"erpx_fnd.empresa.select": "Selecionar",
|
|
9933
|
+
"erpx_fnd.empresa.yes": "Sim",
|
|
9934
|
+
"erpx_fnd.empresa.no": "Não",
|
|
9935
|
+
"erpx_fnd.empresa.click_to_select": "Clique para selecionar",
|
|
9936
|
+
"erpx_fnd.empresa.company_and_branch": "Empresa/Filial",
|
|
9937
|
+
"erpx_fnd.empresa.global_filter_header": "Filtros para preenchimento automático",
|
|
9938
|
+
"erpx_fnd.empresa.global_filter_description": "Escolha a empresa e filial que serão aplicadas automaticamente nos filtros, reduzindo preenchimentos repetitivos.",
|
|
9939
|
+
"erpx_cpl_ctb.movimentacao_contabil.lookup_e070fil_e070emp_cod_emp": "Código",
|
|
9940
|
+
"erpx_cpl_ctb.movimentacao_contabil.lookup_e070fil_e070emp_sig_emp": "Sigla",
|
|
9941
|
+
"erpx_fnd.financeiro.lookup_e030age": "Agência",
|
|
9942
|
+
"erpx_fnd.financeiro.lookup_e030age_search_title": "Consultar banco",
|
|
9943
|
+
"erpx_fnd.financeiro.lookup_e030age_cod_age": "Código",
|
|
9944
|
+
"erpx_fnd.financeiro.lookup_e030age_nom_age": "Nome",
|
|
9945
|
+
"erpx_fnd.financeiro.nothing_found": "Nenhum registro foi encontrado",
|
|
9946
|
+
"erpx_fnd.financeiro.filter": "Filtrar",
|
|
9947
|
+
"erpx_fnd.financeiro.clear": "Limpar",
|
|
9948
|
+
"erpx_fnd.financeiro.cancel": "Cancelar",
|
|
9949
|
+
"erpx_fnd.financeiro.select": "Selecionar",
|
|
9950
|
+
"erpx_fnd.financeiro.yes": "Sim",
|
|
9951
|
+
"erpx_fnd.financeiro.no": "Não",
|
|
9952
|
+
"erpx_fin.foundation.lookup_e030ban": "Banco",
|
|
9953
|
+
"erpx_fin.foundation.lookup_e030ban_search_title": "Consultar banco",
|
|
9954
|
+
"erpx_fin.foundation.lookup_e030ban_cod_ban": "Código",
|
|
9955
|
+
"erpx_fin.foundation.lookup_e030ban_nom_ban": "Nome",
|
|
9956
|
+
"erpx_fin.foundation.lookup_e600cco": "Conta interna",
|
|
9957
|
+
"erpx_fin.foundation.lookup_e600cco_search_title": "Consultar conta interna",
|
|
9958
|
+
"erpx_fin.foundation.lookup_e600cco_num_cco": "Número",
|
|
9959
|
+
"erpx_fin.foundation.lookup_e600cco_des_cco": "Descrição",
|
|
9960
|
+
"erpx_fin.foundation.nothing_found": "Nenhum registro foi encontrado",
|
|
9961
|
+
"erpx_fin.foundation.filter": "Filtrar",
|
|
9962
|
+
"erpx_fin.foundation.clear": "Limpar",
|
|
9963
|
+
"erpx_fin.foundation.cancel": "Cancelar",
|
|
9964
|
+
"erpx_fin.foundation.select": "Selecionar",
|
|
9965
|
+
"erpx_fin.foundation.yes": "Sim",
|
|
9966
|
+
"erpx_fin.foundation.no": "Não",
|
|
9967
|
+
"erpx_fnd.transacao.lookup_e001tns": "Transação",
|
|
9968
|
+
"erpx_fnd.transacao.lookup_e001tns_search_title": "Consultar transação",
|
|
9969
|
+
"erpx_fnd.transacao.lookup_e001tns_cod_tns": "Código",
|
|
9970
|
+
"erpx_fnd.transacao.lookup_e001tns_des_tns": "Descrição",
|
|
9971
|
+
"erpx_fnd.transacao.nothing_found": "Nenhum registro foi encontrado",
|
|
9972
|
+
"erpx_fnd.transacao.filter": "Filtrar",
|
|
9973
|
+
"erpx_fnd.transacao.clear": "Limpar",
|
|
9974
|
+
"erpx_fnd.transacao.cancel": "Cancelar",
|
|
9975
|
+
"erpx_fnd.transacao.select": "Selecionar",
|
|
9976
|
+
"erpx_fnd.transacao.yes": "Sim",
|
|
9977
|
+
"erpx_fnd.transacao.no": "Não",
|
|
9978
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_1": "Conta Corrente",
|
|
9979
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_2": "Conta Poupança",
|
|
9980
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_3": "Conta Investimento",
|
|
9981
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_4": "Conta Aplicação Financeira",
|
|
9982
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_5": "Conta Empréstimo",
|
|
9983
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_6": "Cota Capital",
|
|
9984
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_7": "Conta de Retenção",
|
|
9985
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_8": "Conta da Loja",
|
|
9986
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_9": "Conta Salário",
|
|
9987
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_10": "Outros"
|
|
9988
|
+
};
|
|
9989
|
+
|
|
9562
9990
|
/**
|
|
9563
9991
|
* Generated bundle index. Do not edit.
|
|
9564
9992
|
*/
|
|
9565
9993
|
|
|
9566
|
-
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, ClassificacaoTributariaLookup, ComposicaoBaseCalculoLookup, ContaInternaFilialLookup, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, DfeEventoLookup, DocumentoLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E006PaiLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E034TccLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E041CebLookup, E043MpcLookup, E043PcmLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E076MarLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfLookup, E095HfoSupGerLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsFormField, ErpLookupsModule, ErpLookupsService, ErpObjectCardModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, HTTP_STATUS_CODE, IndOperacaoFornecimentoLookup, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, ListaServicoNacionalLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, OperacoesLookup, OrigemDestinoLookup, OrigemMercadoriaLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ɵ1, ɵ2, EnumAnaSin as ɵa, EnumNatCtb as ɵb, ThumbnailService as ɵc, BorderButtonModule as ɵd, BorderButtonComponent as ɵe, StorageService as ɵf, UserInformationService as ɵg, VerifyModulePermissionService as ɵh, VerifyModulePermissionsService as ɵi };
|
|
9994
|
+
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, ClassificacaoTributariaLookup, ComposicaoBaseCalculoLookup, ContaInternaFilialLookup, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, DfeEventoLookup, DocumentoLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E006PaiLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E034TccLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E041CebLookup, E043MpcLookup, E043PcmLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E076MarLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfLookup, E095HfoSupGerLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, ERPX_GLOBAL_FILTER_KEY, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsFormField, ErpLookupsModule, ErpLookupsService, ErpObjectCardModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, GlobalFilterComponent, GlobalFilterModule, GlobalFilterService, HTTP_STATUS_CODE, IndOperacaoFornecimentoLookup, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, ListaServicoNacionalLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, OperacoesLookup, OrigemDestinoLookup, OrigemMercadoriaLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, fallback, naturezaReceitaPisCofins, ɵ0, ɵ1, ɵ2, EnumAnaSin as ɵa, EnumNatCtb as ɵb, ThumbnailService as ɵc, BorderButtonModule as ɵd, BorderButtonComponent as ɵe, StorageService as ɵf, UserInformationService as ɵg, VerifyModulePermissionService as ɵh, VerifyModulePermissionsService as ɵi, FiltersStorageService as ɵj, ErpLookupsModule as ɵk, GlobalFilterModalComponent as ɵl };
|
|
9567
9995
|
//# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map
|