@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
|
@@ -8814,6 +8814,7 @@
|
|
|
8814
8814
|
}());
|
|
8815
8815
|
|
|
8816
8816
|
var moment$1 = moment$2; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
8817
|
+
var ERPX_GLOBAL_FILTER_KEY = 'ERPX_GLOBAL_FILTER';
|
|
8817
8818
|
var FiltersStorageService = /** @class */ (function (_super) {
|
|
8818
8819
|
__extends(FiltersStorageService, _super);
|
|
8819
8820
|
function FiltersStorageService() {
|
|
@@ -8839,15 +8840,21 @@
|
|
|
8839
8840
|
});
|
|
8840
8841
|
});
|
|
8841
8842
|
};
|
|
8842
|
-
FiltersStorageService.prototype.getFilters = function (key) {
|
|
8843
|
+
FiltersStorageService.prototype.getFilters = function (key, includeGlobalFilter) {
|
|
8844
|
+
if (includeGlobalFilter === void 0) { includeGlobalFilter = false; }
|
|
8843
8845
|
return __awaiter(this, void 0, void 0, function () {
|
|
8844
|
-
var store;
|
|
8846
|
+
var store, globalStore;
|
|
8845
8847
|
return __generator(this, function (_a) {
|
|
8846
8848
|
switch (_a.label) {
|
|
8847
8849
|
case 0: return [4 /*yield*/, _super.prototype.get.call(this, this.FILTERS_KEY)];
|
|
8848
8850
|
case 1:
|
|
8849
8851
|
store = (_a.sent()) || {};
|
|
8850
|
-
return [
|
|
8852
|
+
if (!includeGlobalFilter) return [3 /*break*/, 3];
|
|
8853
|
+
return [4 /*yield*/, _super.prototype.get.call(this, ERPX_GLOBAL_FILTER_KEY)];
|
|
8854
|
+
case 2:
|
|
8855
|
+
globalStore = (_a.sent()) || {};
|
|
8856
|
+
return [2 /*return*/, __assign(__assign({}, globalStore), store[key])];
|
|
8857
|
+
case 3: return [2 /*return*/, store[key] || {}];
|
|
8851
8858
|
}
|
|
8852
8859
|
});
|
|
8853
8860
|
});
|
|
@@ -9762,6 +9769,427 @@
|
|
|
9762
9769
|
ModulesEnum["CONTROLADORIA_GERENCIAL"] = "CONTROLADORIA_GERENCIAL";
|
|
9763
9770
|
})(exports.ModulesEnum || (exports.ModulesEnum = {}));
|
|
9764
9771
|
|
|
9772
|
+
var GlobalFilterService = /** @class */ (function () {
|
|
9773
|
+
function GlobalFilterService() {
|
|
9774
|
+
this._showComponent = true;
|
|
9775
|
+
this._excludedRoutes = [];
|
|
9776
|
+
this.filterChangeSubject = new rxjs.Subject();
|
|
9777
|
+
}
|
|
9778
|
+
/**
|
|
9779
|
+
* Emits a filter change event to all subscribers.
|
|
9780
|
+
* This method should be called whenever the global filter values change
|
|
9781
|
+
* to notify all components listening for filter updates.
|
|
9782
|
+
*
|
|
9783
|
+
* @param event - The filter fields object containing e070emp and e070fil information
|
|
9784
|
+
* @param event.e070emp - e070emp (company) filter value
|
|
9785
|
+
* @param event.e070fil - e070fil (branch) filter value
|
|
9786
|
+
*/
|
|
9787
|
+
GlobalFilterService.prototype.onFilterChange = function (event) {
|
|
9788
|
+
this.filterChangeSubject.next(event);
|
|
9789
|
+
};
|
|
9790
|
+
Object.defineProperty(GlobalFilterService.prototype, "filterChange", {
|
|
9791
|
+
/**
|
|
9792
|
+
* Observable stream of filter changes.
|
|
9793
|
+
* Subscribe to this to receive notifications when the filter changes.
|
|
9794
|
+
*
|
|
9795
|
+
* @returns Observable that emits objects containing e070emp and e070fil filter values
|
|
9796
|
+
*/
|
|
9797
|
+
get: function () {
|
|
9798
|
+
return this.filterChangeSubject.asObservable();
|
|
9799
|
+
},
|
|
9800
|
+
enumerable: true,
|
|
9801
|
+
configurable: true
|
|
9802
|
+
});
|
|
9803
|
+
Object.defineProperty(GlobalFilterService.prototype, "showComponent", {
|
|
9804
|
+
/**
|
|
9805
|
+
* Gets the visibility state of the global filter component.
|
|
9806
|
+
* Use this to determine whether the global filter should be displayed.
|
|
9807
|
+
*
|
|
9808
|
+
* @returns true if the component should be shown, false otherwise
|
|
9809
|
+
*/
|
|
9810
|
+
get: function () {
|
|
9811
|
+
return this._showComponent;
|
|
9812
|
+
},
|
|
9813
|
+
/**
|
|
9814
|
+
* Sets the visibility state of the global filter component.
|
|
9815
|
+
* Use this to programmatically show or hide the global filter.
|
|
9816
|
+
*
|
|
9817
|
+
* @param value - true to show the component, false to hide it
|
|
9818
|
+
*/
|
|
9819
|
+
set: function (value) {
|
|
9820
|
+
this._showComponent = value;
|
|
9821
|
+
},
|
|
9822
|
+
enumerable: true,
|
|
9823
|
+
configurable: true
|
|
9824
|
+
});
|
|
9825
|
+
Object.defineProperty(GlobalFilterService.prototype, "excludedRoutes", {
|
|
9826
|
+
/**
|
|
9827
|
+
* Gets the list of routes where the global filter component should not be displayed.
|
|
9828
|
+
* These routes will automatically hide the global filter component.
|
|
9829
|
+
*
|
|
9830
|
+
* @returns Array of route paths to exclude from displaying the global filter
|
|
9831
|
+
*/
|
|
9832
|
+
get: function () {
|
|
9833
|
+
return this._excludedRoutes;
|
|
9834
|
+
},
|
|
9835
|
+
/**
|
|
9836
|
+
* Sets the routes where the global filter component should not be displayed.
|
|
9837
|
+
* Use this to configure which pages should not show the global filter.
|
|
9838
|
+
*
|
|
9839
|
+
* @param value - Array of route paths to exclude from displaying the global filter
|
|
9840
|
+
*/
|
|
9841
|
+
set: function (value) {
|
|
9842
|
+
this._excludedRoutes = value;
|
|
9843
|
+
},
|
|
9844
|
+
enumerable: true,
|
|
9845
|
+
configurable: true
|
|
9846
|
+
});
|
|
9847
|
+
GlobalFilterService.ɵprov = core.ɵɵdefineInjectable({ factory: function GlobalFilterService_Factory() { return new GlobalFilterService(); }, token: GlobalFilterService, providedIn: "root" });
|
|
9848
|
+
GlobalFilterService = __decorate([
|
|
9849
|
+
core.Injectable({ providedIn: 'root' })
|
|
9850
|
+
], GlobalFilterService);
|
|
9851
|
+
return GlobalFilterService;
|
|
9852
|
+
}());
|
|
9853
|
+
|
|
9854
|
+
var GlobalFilterComponent = /** @class */ (function () {
|
|
9855
|
+
function GlobalFilterComponent(storageService, globalFilterService, router, translate) {
|
|
9856
|
+
this.storageService = storageService;
|
|
9857
|
+
this.globalFilterService = globalFilterService;
|
|
9858
|
+
this.router = router;
|
|
9859
|
+
this.translate = translate;
|
|
9860
|
+
/**
|
|
9861
|
+
* Routes that are excluded from the global filter by default.
|
|
9862
|
+
* These routes will not have the global filter applied to them.
|
|
9863
|
+
*/
|
|
9864
|
+
this.defaultExcludedRoutes = ['forbidden', 'main', 'not-found'];
|
|
9865
|
+
this._showComponent = true;
|
|
9866
|
+
this.showModal = false;
|
|
9867
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
9868
|
+
}
|
|
9869
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "mobileTooltip", {
|
|
9870
|
+
/**
|
|
9871
|
+
* Gets a formatted tooltip string for mobile devices.
|
|
9872
|
+
* Concatenates all active field labels and values separated by newlines.
|
|
9873
|
+
*/
|
|
9874
|
+
get: function () {
|
|
9875
|
+
var lines = this.fields
|
|
9876
|
+
.filter(function (filterItem) { return filterItem.value; })
|
|
9877
|
+
.map(function (filterItem) { return filterItem.label + ": " + filterItem.displayText; });
|
|
9878
|
+
return lines.length > 0 ? lines.join('\n') : null;
|
|
9879
|
+
},
|
|
9880
|
+
enumerable: true,
|
|
9881
|
+
configurable: true
|
|
9882
|
+
});
|
|
9883
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "fields", {
|
|
9884
|
+
/**
|
|
9885
|
+
* Gets the current filter field configuration array.
|
|
9886
|
+
*/
|
|
9887
|
+
get: function () {
|
|
9888
|
+
return [
|
|
9889
|
+
{
|
|
9890
|
+
label: this.translate.instant('erpx_fnd.empresa.e_070_emp'),
|
|
9891
|
+
value: this.e070emp,
|
|
9892
|
+
displayText: this.e070emp ? "" + this.e070emp.label : null
|
|
9893
|
+
},
|
|
9894
|
+
{
|
|
9895
|
+
label: this.translate.instant('erpx_fnd.empresa.e_070_fil'),
|
|
9896
|
+
value: this.e070fil,
|
|
9897
|
+
displayText: this.e070fil ? "" + this.e070fil.label : null
|
|
9898
|
+
}
|
|
9899
|
+
];
|
|
9900
|
+
},
|
|
9901
|
+
enumerable: true,
|
|
9902
|
+
configurable: true
|
|
9903
|
+
});
|
|
9904
|
+
Object.defineProperty(GlobalFilterComponent.prototype, "showComponent", {
|
|
9905
|
+
/**
|
|
9906
|
+
* Gets the visibility state of the global filter component.
|
|
9907
|
+
* Considers both the service-level visibility setting and the current route.
|
|
9908
|
+
*/
|
|
9909
|
+
get: function () {
|
|
9910
|
+
return this.globalFilterService.showComponent && this._showComponent;
|
|
9911
|
+
},
|
|
9912
|
+
enumerable: true,
|
|
9913
|
+
configurable: true
|
|
9914
|
+
});
|
|
9915
|
+
GlobalFilterComponent.prototype.ngOnInit = function () {
|
|
9916
|
+
this.loadFiltersFromStorage();
|
|
9917
|
+
this.initializeRouteListener();
|
|
9918
|
+
};
|
|
9919
|
+
GlobalFilterComponent.prototype.ngOnDestroy = function () {
|
|
9920
|
+
this.ngUnsubscribe.next();
|
|
9921
|
+
this.ngUnsubscribe.complete();
|
|
9922
|
+
};
|
|
9923
|
+
/**
|
|
9924
|
+
* Handles the closing of the filter modal and updates field values.
|
|
9925
|
+
* When fields are provided, updates the component state and notifies the GlobalFilterService.
|
|
9926
|
+
*
|
|
9927
|
+
* @param event - Optional filter field values from the modal
|
|
9928
|
+
*/
|
|
9929
|
+
GlobalFilterComponent.prototype.onHide = function (event) {
|
|
9930
|
+
this.showModal = false;
|
|
9931
|
+
if (event) {
|
|
9932
|
+
this.e070emp = event.e070emp;
|
|
9933
|
+
this.e070fil = event.e070fil;
|
|
9934
|
+
this.globalFilterService.onFilterChange(event);
|
|
9935
|
+
}
|
|
9936
|
+
};
|
|
9937
|
+
/**
|
|
9938
|
+
* Loads the previously saved filter values from local storage.
|
|
9939
|
+
* Retrieves the filter data using the ERPX_GLOBAL_FILTER_KEY and applies it
|
|
9940
|
+
* to the component's e070emp and e070fil properties if available.
|
|
9941
|
+
*/
|
|
9942
|
+
GlobalFilterComponent.prototype.loadFiltersFromStorage = function () {
|
|
9943
|
+
var _this = this;
|
|
9944
|
+
this.storageService.get(ERPX_GLOBAL_FILTER_KEY).then(function (filterData) {
|
|
9945
|
+
if (filterData && Object.keys(filterData).length > 0) {
|
|
9946
|
+
_this.e070emp = filterData.e070emp;
|
|
9947
|
+
_this.e070fil = filterData.e070fil;
|
|
9948
|
+
}
|
|
9949
|
+
});
|
|
9950
|
+
};
|
|
9951
|
+
/**
|
|
9952
|
+
* Initializes the route change listener to manage component visibility.
|
|
9953
|
+
* Subscribes to router navigation events and sets the component visibility
|
|
9954
|
+
* based on the current route against excluded routes (default and service-configured).
|
|
9955
|
+
*/
|
|
9956
|
+
GlobalFilterComponent.prototype.initializeRouteListener = function () {
|
|
9957
|
+
var _this = this;
|
|
9958
|
+
this.router.events.pipe(operators.takeUntil(this.ngUnsubscribe), operators.filter(function (event) { return event instanceof router.NavigationEnd; })).subscribe(function (event) {
|
|
9959
|
+
var excludedRoutes = new RegExp("^/(" + __spread(_this.defaultExcludedRoutes, _this.globalFilterService.excludedRoutes).join('|') + ")(/|$)");
|
|
9960
|
+
var currentRoute = event.urlAfterRedirects;
|
|
9961
|
+
_this._showComponent = !excludedRoutes.test(currentRoute);
|
|
9962
|
+
});
|
|
9963
|
+
};
|
|
9964
|
+
GlobalFilterComponent.ctorParameters = function () { return [
|
|
9965
|
+
{ type: FiltersStorageService },
|
|
9966
|
+
{ type: GlobalFilterService },
|
|
9967
|
+
{ type: router.Router },
|
|
9968
|
+
{ type: core$1.TranslateService }
|
|
9969
|
+
]; };
|
|
9970
|
+
GlobalFilterComponent = __decorate([
|
|
9971
|
+
core.Component({
|
|
9972
|
+
selector: 'erpx-global-filter',
|
|
9973
|
+
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>",
|
|
9974
|
+
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}}"]
|
|
9975
|
+
})
|
|
9976
|
+
], GlobalFilterComponent);
|
|
9977
|
+
return GlobalFilterComponent;
|
|
9978
|
+
}());
|
|
9979
|
+
|
|
9980
|
+
var GlobalFilterModalComponent = /** @class */ (function () {
|
|
9981
|
+
function GlobalFilterModalComponent(formBuilder, translate, e070empLookup, e070filLookup, storageService) {
|
|
9982
|
+
this.formBuilder = formBuilder;
|
|
9983
|
+
this.translate = translate;
|
|
9984
|
+
this.e070empLookup = e070empLookup;
|
|
9985
|
+
this.e070filLookup = e070filLookup;
|
|
9986
|
+
this.storageService = storageService;
|
|
9987
|
+
this.hideModal = new core.EventEmitter();
|
|
9988
|
+
this.isVisible = true;
|
|
9989
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
9990
|
+
}
|
|
9991
|
+
GlobalFilterModalComponent.prototype.ngOnInit = function () {
|
|
9992
|
+
this.createFormGroup();
|
|
9993
|
+
this.createFormField();
|
|
9994
|
+
this.handleFormChanges();
|
|
9995
|
+
};
|
|
9996
|
+
GlobalFilterModalComponent.prototype.ngOnDestroy = function () {
|
|
9997
|
+
this.ngUnsubscribe.next();
|
|
9998
|
+
this.ngUnsubscribe.complete();
|
|
9999
|
+
};
|
|
10000
|
+
/**
|
|
10001
|
+
* Handles the modal closing event.
|
|
10002
|
+
* Hides the modal and emits the optionally provided filter values to the parent component.
|
|
10003
|
+
*
|
|
10004
|
+
* @param value - Optional filter field values to emit when closing the modal
|
|
10005
|
+
*/
|
|
10006
|
+
GlobalFilterModalComponent.prototype.onHide = function (value) {
|
|
10007
|
+
this.isVisible = false;
|
|
10008
|
+
this.hideModal.emit(value);
|
|
10009
|
+
};
|
|
10010
|
+
/**
|
|
10011
|
+
* Saves the current form values and closes the modal.
|
|
10012
|
+
* Stores the filter values in local storage and then triggers the hide event
|
|
10013
|
+
* with the saved values.
|
|
10014
|
+
*/
|
|
10015
|
+
GlobalFilterModalComponent.prototype.onSave = function () {
|
|
10016
|
+
var _this = this;
|
|
10017
|
+
var value = this.formGroup.getRawValue();
|
|
10018
|
+
this.storageService.store(ERPX_GLOBAL_FILTER_KEY, value).then(function () { return _this.onHide(value); });
|
|
10019
|
+
};
|
|
10020
|
+
GlobalFilterModalComponent.prototype.createFormGroup = function () {
|
|
10021
|
+
this.formGroup = this.formBuilder.group({
|
|
10022
|
+
e070emp: [{ value: this.e070emp, disabled: false }],
|
|
10023
|
+
e070fil: [{ value: this.e070fil, disabled: !this.e070emp }],
|
|
10024
|
+
});
|
|
10025
|
+
};
|
|
10026
|
+
GlobalFilterModalComponent.prototype.createFormField = function () {
|
|
10027
|
+
var _this = this;
|
|
10028
|
+
this.formFields = [
|
|
10029
|
+
new angularComponents.FormField(__assign(__assign({}, this.e070empLookup.mountOptions({
|
|
10030
|
+
multiple: false,
|
|
10031
|
+
queryFields: ['e031moe.sigMoe']
|
|
10032
|
+
})), { appendTo: "body", emptyMessage: this.translate.instant('erpx_fnd.empresa.nothing_found') })),
|
|
10033
|
+
new angularComponents.FormField(__assign(__assign({}, this.e070filLookup.mountOptions({
|
|
10034
|
+
multiple: false,
|
|
10035
|
+
lookupFields: [
|
|
10036
|
+
{ name: "codFil", type: angularComponents.FieldType.Integer },
|
|
10037
|
+
{ name: "nomFil", type: angularComponents.FieldType.String },
|
|
10038
|
+
],
|
|
10039
|
+
searchFields: [
|
|
10040
|
+
{ name: "codFil", type: angularComponents.FieldType.Integer },
|
|
10041
|
+
{ name: "nomFil", type: angularComponents.FieldType.String },
|
|
10042
|
+
],
|
|
10043
|
+
searchGridFields: [
|
|
10044
|
+
{ name: "codFil", type: angularComponents.FieldType.Integer },
|
|
10045
|
+
{ name: "nomFil", type: angularComponents.FieldType.String },
|
|
10046
|
+
],
|
|
10047
|
+
entityDependency: [
|
|
10048
|
+
{
|
|
10049
|
+
name: "e070emp",
|
|
10050
|
+
field: "id",
|
|
10051
|
+
value: function () { return _this.formGroup.get("e070emp").value; }
|
|
10052
|
+
},
|
|
10053
|
+
],
|
|
10054
|
+
})), { emptyMessage: this.translate.instant('erpx_fnd.empresa.nothing_found'), appendTo: "body" })),
|
|
10055
|
+
];
|
|
10056
|
+
};
|
|
10057
|
+
GlobalFilterModalComponent.prototype.handleFormChanges = function () {
|
|
10058
|
+
var _this = this;
|
|
10059
|
+
this.formGroup.controls.e070emp.valueChanges
|
|
10060
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
10061
|
+
.subscribe(function (value) {
|
|
10062
|
+
var control = _this.formGroup.get('e070fil');
|
|
10063
|
+
value ? control.enable() : control.disable();
|
|
10064
|
+
control.reset();
|
|
10065
|
+
});
|
|
10066
|
+
};
|
|
10067
|
+
GlobalFilterModalComponent.ctorParameters = function () { return [
|
|
10068
|
+
{ type: forms.FormBuilder },
|
|
10069
|
+
{ type: core$1.TranslateService },
|
|
10070
|
+
{ type: E070EmpLookup },
|
|
10071
|
+
{ type: E070FilLookup },
|
|
10072
|
+
{ type: FiltersStorageService }
|
|
10073
|
+
]; };
|
|
10074
|
+
__decorate([
|
|
10075
|
+
core.Input()
|
|
10076
|
+
], GlobalFilterModalComponent.prototype, "e070emp", void 0);
|
|
10077
|
+
__decorate([
|
|
10078
|
+
core.Input()
|
|
10079
|
+
], GlobalFilterModalComponent.prototype, "e070fil", void 0);
|
|
10080
|
+
__decorate([
|
|
10081
|
+
core.Output()
|
|
10082
|
+
], GlobalFilterModalComponent.prototype, "hideModal", void 0);
|
|
10083
|
+
GlobalFilterModalComponent = __decorate([
|
|
10084
|
+
core.Component({
|
|
10085
|
+
selector: 'global-filter-modal',
|
|
10086
|
+
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",
|
|
10087
|
+
styles: ["\n .description {\n padding: 0px 7px;\n }\n "]
|
|
10088
|
+
})
|
|
10089
|
+
], GlobalFilterModalComponent);
|
|
10090
|
+
return GlobalFilterModalComponent;
|
|
10091
|
+
}());
|
|
10092
|
+
|
|
10093
|
+
var GlobalFilterModule = /** @class */ (function () {
|
|
10094
|
+
function GlobalFilterModule() {
|
|
10095
|
+
}
|
|
10096
|
+
GlobalFilterModule = __decorate([
|
|
10097
|
+
core.NgModule({
|
|
10098
|
+
imports: [
|
|
10099
|
+
common.CommonModule,
|
|
10100
|
+
angularComponents.DynamicFormModule,
|
|
10101
|
+
dialog.DialogModule,
|
|
10102
|
+
angularComponents.ButtonModule,
|
|
10103
|
+
core$1.TranslateModule,
|
|
10104
|
+
ErpLookupsModule,
|
|
10105
|
+
],
|
|
10106
|
+
providers: [FiltersStorageService],
|
|
10107
|
+
declarations: [GlobalFilterComponent, GlobalFilterModalComponent],
|
|
10108
|
+
exports: [GlobalFilterComponent],
|
|
10109
|
+
})
|
|
10110
|
+
], GlobalFilterModule);
|
|
10111
|
+
return GlobalFilterModule;
|
|
10112
|
+
}());
|
|
10113
|
+
|
|
10114
|
+
var fallback = {
|
|
10115
|
+
"erpx_fnd.empresa.lookup_e070emp": "Empresa",
|
|
10116
|
+
"erpx_fnd.empresa.lookup_e070emp_search_title": "Consultar empresa",
|
|
10117
|
+
"erpx_fnd.empresa.lookup_e070emp_cod_emp": "Código",
|
|
10118
|
+
"erpx_fnd.empresa.lookup_e070emp_nom_emp": "Nome",
|
|
10119
|
+
"erpx_fnd.empresa.lookup_e070fil": "Filial",
|
|
10120
|
+
"erpx_fnd.empresa.lookup_e070fil_search_title": "Consultar filial",
|
|
10121
|
+
"erpx_fnd.empresa.lookup_e070fil_cod_fil": "Código",
|
|
10122
|
+
"erpx_fnd.empresa.lookup_e070fil_nom_fil": "Nome",
|
|
10123
|
+
"erpx_fnd.empresa.lookup_e070fil_sig_fil": "Sigla",
|
|
10124
|
+
"erpx_fnd.empresa.lookup_e070fil_num_cgc": "CNPJ/CPF",
|
|
10125
|
+
"erpx_fnd.empresa.lookup_e070fil_e007ufs_sig_ufs": "Estado",
|
|
10126
|
+
"erpx_fnd.empresa.lookup_e070fil_e008rai_nom_cid": "Cidade",
|
|
10127
|
+
"erpx_fnd.empresa.lookup_e070fil_ins_est": "Inscrição estadual",
|
|
10128
|
+
"erpx_fnd.empresa.lookup_e070fil_e007ufs_sig_ufs_sig_ufs": "Estado",
|
|
10129
|
+
"erpx_fnd.empresa.lookup_e070fil_bai_fil": "Bairro",
|
|
10130
|
+
"erpx_fnd.empresa.lookup_e070fil_fil_mat": "Matriz",
|
|
10131
|
+
"erpx_fnd.empresa.nothing_found": "Nenhum registro foi encontrado",
|
|
10132
|
+
"erpx_fnd.empresa.filter": "Filtrar",
|
|
10133
|
+
"erpx_fnd.empresa.clear": "Limpar",
|
|
10134
|
+
"erpx_fnd.empresa.cancel": "Cancelar",
|
|
10135
|
+
"erpx_fnd.empresa.select": "Selecionar",
|
|
10136
|
+
"erpx_fnd.empresa.yes": "Sim",
|
|
10137
|
+
"erpx_fnd.empresa.no": "Não",
|
|
10138
|
+
"erpx_fnd.empresa.click_to_select": "Clique para selecionar",
|
|
10139
|
+
"erpx_fnd.empresa.company_and_branch": "Empresa/Filial",
|
|
10140
|
+
"erpx_fnd.empresa.global_filter_header": "Filtros para preenchimento automático",
|
|
10141
|
+
"erpx_fnd.empresa.global_filter_description": "Escolha a empresa e filial que serão aplicadas automaticamente nos filtros, reduzindo preenchimentos repetitivos.",
|
|
10142
|
+
"erpx_cpl_ctb.movimentacao_contabil.lookup_e070fil_e070emp_cod_emp": "Código",
|
|
10143
|
+
"erpx_cpl_ctb.movimentacao_contabil.lookup_e070fil_e070emp_sig_emp": "Sigla",
|
|
10144
|
+
"erpx_fnd.financeiro.lookup_e030age": "Agência",
|
|
10145
|
+
"erpx_fnd.financeiro.lookup_e030age_search_title": "Consultar banco",
|
|
10146
|
+
"erpx_fnd.financeiro.lookup_e030age_cod_age": "Código",
|
|
10147
|
+
"erpx_fnd.financeiro.lookup_e030age_nom_age": "Nome",
|
|
10148
|
+
"erpx_fnd.financeiro.nothing_found": "Nenhum registro foi encontrado",
|
|
10149
|
+
"erpx_fnd.financeiro.filter": "Filtrar",
|
|
10150
|
+
"erpx_fnd.financeiro.clear": "Limpar",
|
|
10151
|
+
"erpx_fnd.financeiro.cancel": "Cancelar",
|
|
10152
|
+
"erpx_fnd.financeiro.select": "Selecionar",
|
|
10153
|
+
"erpx_fnd.financeiro.yes": "Sim",
|
|
10154
|
+
"erpx_fnd.financeiro.no": "Não",
|
|
10155
|
+
"erpx_fin.foundation.lookup_e030ban": "Banco",
|
|
10156
|
+
"erpx_fin.foundation.lookup_e030ban_search_title": "Consultar banco",
|
|
10157
|
+
"erpx_fin.foundation.lookup_e030ban_cod_ban": "Código",
|
|
10158
|
+
"erpx_fin.foundation.lookup_e030ban_nom_ban": "Nome",
|
|
10159
|
+
"erpx_fin.foundation.lookup_e600cco": "Conta interna",
|
|
10160
|
+
"erpx_fin.foundation.lookup_e600cco_search_title": "Consultar conta interna",
|
|
10161
|
+
"erpx_fin.foundation.lookup_e600cco_num_cco": "Número",
|
|
10162
|
+
"erpx_fin.foundation.lookup_e600cco_des_cco": "Descrição",
|
|
10163
|
+
"erpx_fin.foundation.nothing_found": "Nenhum registro foi encontrado",
|
|
10164
|
+
"erpx_fin.foundation.filter": "Filtrar",
|
|
10165
|
+
"erpx_fin.foundation.clear": "Limpar",
|
|
10166
|
+
"erpx_fin.foundation.cancel": "Cancelar",
|
|
10167
|
+
"erpx_fin.foundation.select": "Selecionar",
|
|
10168
|
+
"erpx_fin.foundation.yes": "Sim",
|
|
10169
|
+
"erpx_fin.foundation.no": "Não",
|
|
10170
|
+
"erpx_fnd.transacao.lookup_e001tns": "Transação",
|
|
10171
|
+
"erpx_fnd.transacao.lookup_e001tns_search_title": "Consultar transação",
|
|
10172
|
+
"erpx_fnd.transacao.lookup_e001tns_cod_tns": "Código",
|
|
10173
|
+
"erpx_fnd.transacao.lookup_e001tns_des_tns": "Descrição",
|
|
10174
|
+
"erpx_fnd.transacao.nothing_found": "Nenhum registro foi encontrado",
|
|
10175
|
+
"erpx_fnd.transacao.filter": "Filtrar",
|
|
10176
|
+
"erpx_fnd.transacao.clear": "Limpar",
|
|
10177
|
+
"erpx_fnd.transacao.cancel": "Cancelar",
|
|
10178
|
+
"erpx_fnd.transacao.select": "Selecionar",
|
|
10179
|
+
"erpx_fnd.transacao.yes": "Sim",
|
|
10180
|
+
"erpx_fnd.transacao.no": "Não",
|
|
10181
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_1": "Conta Corrente",
|
|
10182
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_2": "Conta Poupança",
|
|
10183
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_3": "Conta Investimento",
|
|
10184
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_4": "Conta Aplicação Financeira",
|
|
10185
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_5": "Conta Empréstimo",
|
|
10186
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_6": "Cota Capital",
|
|
10187
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_7": "Conta de Retenção",
|
|
10188
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_8": "Conta da Loja",
|
|
10189
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_9": "Conta Salário",
|
|
10190
|
+
"erpx_fin.tesouraria.enum_tip_tcc_v_10": "Outros"
|
|
10191
|
+
};
|
|
10192
|
+
|
|
9765
10193
|
exports.AgreementLookup = AgreementLookup;
|
|
9766
10194
|
exports.BankLookup = BankLookup;
|
|
9767
10195
|
exports.BeneficioFiscalLookup = BeneficioFiscalLookup;
|
|
@@ -9869,6 +10297,7 @@
|
|
|
9869
10297
|
exports.E501TcpLookup = E501TcpLookup;
|
|
9870
10298
|
exports.E600CcoLookup = E600CcoLookup;
|
|
9871
10299
|
exports.E640LotLookup = E640LotLookup;
|
|
10300
|
+
exports.ERPX_GLOBAL_FILTER_KEY = ERPX_GLOBAL_FILTER_KEY;
|
|
9872
10301
|
exports.EntityPersonProductLookup = EntityPersonProductLookup;
|
|
9873
10302
|
exports.EquipmentLookup = EquipmentLookup;
|
|
9874
10303
|
exports.ErpLookups = ErpLookups;
|
|
@@ -9880,6 +10309,9 @@
|
|
|
9880
10309
|
exports.ExportUtils = ExportUtils;
|
|
9881
10310
|
exports.FiltersStorageService = FiltersStorageService;
|
|
9882
10311
|
exports.FormUtilsService = FormUtilsService;
|
|
10312
|
+
exports.GlobalFilterComponent = GlobalFilterComponent;
|
|
10313
|
+
exports.GlobalFilterModule = GlobalFilterModule;
|
|
10314
|
+
exports.GlobalFilterService = GlobalFilterService;
|
|
9883
10315
|
exports.HTTP_STATUS_CODE = HTTP_STATUS_CODE;
|
|
9884
10316
|
exports.IndOperacaoFornecimentoLookup = IndOperacaoFornecimentoLookup;
|
|
9885
10317
|
exports.LeiComplementar1162003Lookup = LeiComplementar1162003Lookup;
|
|
@@ -9910,6 +10342,7 @@
|
|
|
9910
10342
|
exports.VerifyModulePermission = VerifyModulePermission;
|
|
9911
10343
|
exports.VerifyModulePermissions = VerifyModulePermissions;
|
|
9912
10344
|
exports.WebsocketService = WebsocketService;
|
|
10345
|
+
exports.fallback = fallback;
|
|
9913
10346
|
exports.naturezaReceitaPisCofins = naturezaReceitaPisCofins;
|
|
9914
10347
|
exports.ɵ0 = ɵ0;
|
|
9915
10348
|
exports.ɵ1 = ɵ1;
|
|
@@ -9921,6 +10354,9 @@
|
|
|
9921
10354
|
exports.ɵg = UserInformationService;
|
|
9922
10355
|
exports.ɵh = VerifyModulePermissionService;
|
|
9923
10356
|
exports.ɵi = VerifyModulePermissionsService;
|
|
10357
|
+
exports.ɵj = FiltersStorageService;
|
|
10358
|
+
exports.ɵk = ErpLookupsModule;
|
|
10359
|
+
exports.ɵl = GlobalFilterModalComponent;
|
|
9924
10360
|
|
|
9925
10361
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9926
10362
|
|