@senior-gestao-pessoas/payroll-core 8.5.4 → 8.6.1-ab5b70ca-0100-4d72-a714-b27af24c7a35

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.
Files changed (38) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +350 -2
  2. package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/data-list-rest/data-list-rest.component.js +10 -2
  6. package/esm2015/lib/components/from-to/from-to.component.js +25 -0
  7. package/esm2015/lib/components/from-to/from-to.module.js +22 -0
  8. package/esm2015/lib/components/from-to/index.js +8 -0
  9. package/esm2015/lib/components/utils/validations.js +11 -1
  10. package/esm2015/lib/services/form-comparator.service.js +208 -0
  11. package/esm2015/lib/services/services.module.js +4 -2
  12. package/esm2015/public_api.js +4 -2
  13. package/esm2015/senior-gestao-pessoas-payroll-core.js +2 -2
  14. package/esm5/lib/components/data-list-rest/data-list-rest.component.js +10 -2
  15. package/esm5/lib/components/from-to/from-to.component.js +28 -0
  16. package/esm5/lib/components/from-to/from-to.module.js +26 -0
  17. package/esm5/lib/components/from-to/index.js +8 -0
  18. package/esm5/lib/components/utils/validations.js +11 -1
  19. package/esm5/lib/services/form-comparator.service.js +278 -0
  20. package/esm5/lib/services/services.module.js +4 -2
  21. package/esm5/public_api.js +4 -2
  22. package/esm5/senior-gestao-pessoas-payroll-core.js +2 -2
  23. package/fesm2015/senior-gestao-pessoas-payroll-core.js +274 -3
  24. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  25. package/fesm5/senior-gestao-pessoas-payroll-core.js +347 -3
  26. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  27. package/lib/components/data-list-rest/data-list-rest.component.d.ts +2 -0
  28. package/lib/components/from-to/from-to.component.d.ts +5 -0
  29. package/lib/components/from-to/from-to.module.d.ts +2 -0
  30. package/lib/components/from-to/index.d.ts +2 -0
  31. package/lib/components/utils/validations.d.ts +1 -0
  32. package/lib/services/form-comparator.service.d.ts +36 -0
  33. package/locale/en-US.json +4 -1
  34. package/locale/es-ES.json +4 -1
  35. package/locale/pt-BR.json +4 -1
  36. package/package.json +1 -1
  37. package/public_api.d.ts +2 -0
  38. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
@@ -1393,6 +1393,8 @@ var DataListRestComponent = /** @class */ (function () {
1393
1393
  this.first = 1;
1394
1394
  this.alwaysShowPaginator = true;
1395
1395
  this.sortMode = 'multiple';
1396
+ this.responsive = true;
1397
+ this.scrollable = false;
1396
1398
  this.lazyLoad = new EventEmitter();
1397
1399
  this.loadingChange = new EventEmitter();
1398
1400
  this.listDataChange = new EventEmitter();
@@ -1640,7 +1642,7 @@ var DataListRestComponent = /** @class */ (function () {
1640
1642
  DataListRestComponent.decorators = [
1641
1643
  { type: Component, args: [{
1642
1644
  selector: 'c-data-list-rest',
1643
- template: "<div *sLoadingState=\"loading\">\n <p-table #dataListTable [id]=\"id\" class=\"sds-list\" [value]=\"listData\" [columns]=\"columns\" [paginator]=\"paginator\" [rows]=\"rows\" [first]=\"first\"\n (onLazyLoad)=\"onLazyLoad($event)\" [lazy]=\"lazy\" [alwaysShowPaginator]=\"alwaysShowPaginator\" (onPage)=\"pagination($event)\"\n [totalRecords]=\"totalRecords\" [(selection)]=\"selectedData\" [dataKey]=\"dataKey\" [sortMode]=\"sortMode\" [responsive]=\"true\"\n pageLinks=\"3\" (onHeaderCheckboxToggle)=\"onHeaderCheckboxToggle($event)\" [selectionMode]=\"selectionMode\">\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Checkbox quando h\u00E1 sele\u00E7\u00E3o de linhas -->\n <th id=\"{{id}}-checkbox-header\" *ngIf=\"isMultipleSelection\" style=\"width: 2.25em\">\n <p-tableHeaderCheckbox *ngIf=\"showHeaderCheckBox\"></p-tableHeaderCheckbox>\n </th>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th id=\"{{id}}-col-header-{{i}}\" *ngFor=\"let col of columns; let i = index\" [pSortableColumn]=\"col.field\" [pSortableColumnDisabled]=\"!isSortable || !!col.icon\"\n [style.width]=\"col.width\" [pTooltip]=\"col.tooltip || col.label\" tooltipPosition=\"top\" showDelay=\"500\">\n {{col['label']}}\n <!-- Quando a coluna \u00E9 um \u00EDcone n\u00E3o exibe o \u00EDcone de ordena\u00E7\u00E3o da mesma -->\n <p-sortIcon *ngIf=\"isSortable && !col.icon\" [field]=\"col.field\"></p-sortIcon>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\" *ngIf=\"actions && actions()?.length\" [ngClass]=\"{ actionsSize: actions().length > 1, actionSize: actions().length === 1 }\"></th>\n </tr>\n </ng-template>\n <!-- Body -->\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td id=\"{{id}}-checkbox-body-{{key}}\" *ngIf=\"isMultipleSelection\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td id=\"{{id}}-col-body-{{i}}-{{key}}\" *ngFor=\"let col of columns;let i = index\" [pTooltip]=\"col.icon ? '' : getFieldValue(rowData, col)\"\n tooltipPosition=\"top\" showDelay=\"500\">\n <!-- Exibe o \u00EDcone caso exista. Para isso o valor da coluna deve ser { value: string, style: object } -->\n <i *ngIf=\"col.icon\" class=\"{{rowData[col['field']]?.value}}\" [ngStyle]=\"rowData[col['field']]?.style\" aria-hidden=\"true\"></i>\n <!-- Quando n\u00E3o h\u00E1 \u00EDcone exibe o valor normal da coluna -->\n <span>{{getFieldValue(rowData, col)}}</span>\n </td>\n\n <!-- Coluna das a\u00E7\u00F5es -->\n <td id=\"col-actions-{{key}}\" class=\"col-actions\" *ngIf=\"actions && actions(rowData)?.length\">\n <s-button id=\"{{id}}-btn-actions-{{key}}\" *ngIf=\"actions(rowData).length > 1\" [label]=\"actionLabel\" priority=\"default\" [model]=\"getActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"{{id}}-btn-action-{{key}}\" *ngIf=\"actions(rowData).length <= 1\" [label]=\"actions(rowData, key)[0].label\" priority=\"default\"\n (click)=\"actions(rowData, key)[0].command()\" [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>{{recordsMessage}}</span>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td id=\"{{id}}-empty-message\" [attr.colspan]=\"columns?.length + (isMultipleSelection ? 2 : 1)\">{{emptyMessage}}</td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n",
1645
+ template: "<div *sLoadingState=\"loading\">\n <p-table #dataListTable [id]=\"id\" class=\"sds-list\" [value]=\"listData\" [columns]=\"columns\" [paginator]=\"paginator\" [rows]=\"rows\" [first]=\"first\"\n (onLazyLoad)=\"onLazyLoad($event)\" [lazy]=\"lazy\" [alwaysShowPaginator]=\"alwaysShowPaginator\" (onPage)=\"pagination($event)\"\n [totalRecords]=\"totalRecords\" [(selection)]=\"selectedData\" [dataKey]=\"dataKey\" [sortMode]=\"sortMode\" [responsive]=\"responsive\" [scrollable]=\"scrollable\"\n pageLinks=\"3\" (onHeaderCheckboxToggle)=\"onHeaderCheckboxToggle($event)\" [selectionMode]=\"selectionMode\">\n <!-- Colgroup -->\n <ng-template pTemplate=\"colgroup\" let-coumns>\n <colgroup>\n <col *ngFor=\"let col of columns; let i = index\"\n [ngClass]=\"'col-'+i+' col-scroll-resize'\"/>\n <col [ngClass]=\"'col-'+ (columns?.length || 0) +' col-scroll-resize'\"/>\n </colgroup>\n </ng-template>\n <!-- Header -->\n <ng-template pTemplate=\"header\">\n <!-- Cabe\u00E7alhos quando da table \u00E9 permitido ordenar as colunas -->\n <tr>\n <!-- Checkbox quando h\u00E1 sele\u00E7\u00E3o de linhas -->\n <th id=\"{{id}}-checkbox-header\" *ngIf=\"isMultipleSelection\" style=\"width: 2.25em\">\n <p-tableHeaderCheckbox *ngIf=\"showHeaderCheckBox\"></p-tableHeaderCheckbox>\n </th>\n <!-- Cabe\u00E7alhos das colunas da tabela -->\n <th id=\"{{id}}-col-header-{{i}}\" *ngFor=\"let col of columns; let i = index\" [pSortableColumn]=\"col.field\" [pSortableColumnDisabled]=\"!isSortable || !!col.icon\"\n [style.width]=\"col.width\" [pTooltip]=\"col.tooltip || col.label\" tooltipPosition=\"top\" showDelay=\"500\">\n {{col['label']}}\n <!-- Quando a coluna \u00E9 um \u00EDcone n\u00E3o exibe o \u00EDcone de ordena\u00E7\u00E3o da mesma -->\n <p-sortIcon *ngIf=\"isSortable && !col.icon\" [field]=\"col.field\"></p-sortIcon>\n </th>\n <!-- Cabe\u00E7alho da coluna de a\u00E7\u00F5es -->\n <th id=\"col-actions\" *ngIf=\"actions && actions()?.length\" [ngClass]=\"{ actionsSize: actions().length > 1, actionSize: actions().length === 1 }\"></th>\n </tr>\n </ng-template>\n <!-- Body -->\n <ng-template pTemplate=\"body\" let-rowData let-key=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td id=\"{{id}}-checkbox-body-{{key}}\" *ngIf=\"isMultipleSelection\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td id=\"{{id}}-col-body-{{i}}-{{key}}\" *ngFor=\"let col of columns;let i = index\" [pTooltip]=\"col.icon ? '' : getFieldValue(rowData, col)\"\n tooltipPosition=\"top\" showDelay=\"500\">\n <!-- Exibe o \u00EDcone caso exista. Para isso o valor da coluna deve ser { value: string, style: object } -->\n <i *ngIf=\"col.icon\" class=\"{{rowData[col['field']]?.value}}\" [ngStyle]=\"rowData[col['field']]?.style\" aria-hidden=\"true\"></i>\n <!-- Quando n\u00E3o h\u00E1 \u00EDcone exibe o valor normal da coluna -->\n <span>{{getFieldValue(rowData, col)}}</span>\n </td>\n\n <!-- Coluna das a\u00E7\u00F5es -->\n <td id=\"col-actions-{{key}}\" class=\"col-actions\" *ngIf=\"actions && actions(rowData)?.length\">\n <s-button id=\"{{id}}-btn-actions-{{key}}\" *ngIf=\"actions(rowData).length > 1\" [label]=\"actionLabel\" priority=\"default\" [model]=\"getActions(rowData, key)\"\n [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n\n <s-button id=\"{{id}}-btn-action-{{key}}\" *ngIf=\"actions(rowData).length <= 1\" [label]=\"actions(rowData, key)[0].label\" priority=\"default\"\n (click)=\"actions(rowData, key)[0].command()\" [disabled]=\"false\" [auxiliary]=\"true\"></s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>{{recordsMessage}}</span>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td id=\"{{id}}-empty-message\" [attr.colspan]=\"columns?.length + (isMultipleSelection ? 2 : 1)\">{{emptyMessage}}</td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n",
1644
1646
  encapsulation: ViewEncapsulation.None,
1645
1647
  providers: [DataListRestService],
1646
1648
  styles: ["app-data-list p-table .ui-table .ui-table-tbody>tr>td,app-data-list p-table .ui-table .ui-table-thead>tr>th{text-overflow:ellipsis;white-space:nowrap!important}app-data-list p-table .ui-paginator .ui-paginator-right-content{margin-left:auto}.actionsSize{width:11rem}.actionSize{width:18rem}body .ui-tooltip{max-width:22.3em!important}@media screen and (max-width:478px){.ui-paginator-right-content{display:none}}"]
@@ -1675,6 +1677,8 @@ var DataListRestComponent = /** @class */ (function () {
1675
1677
  pluralMessageRecords: [{ type: Input }],
1676
1678
  keyPayload: [{ type: Input }],
1677
1679
  initParameters: [{ type: Input }],
1680
+ responsive: [{ type: Input }],
1681
+ scrollable: [{ type: Input }],
1678
1682
  lazyLoad: [{ type: Output }],
1679
1683
  loadingChange: [{ type: Output }],
1680
1684
  listDataChange: [{ type: Output }],
@@ -1737,6 +1741,10 @@ if (false) {
1737
1741
  /** @type {?} */
1738
1742
  DataListRestComponent.prototype.initParameters;
1739
1743
  /** @type {?} */
1744
+ DataListRestComponent.prototype.responsive;
1745
+ /** @type {?} */
1746
+ DataListRestComponent.prototype.scrollable;
1747
+ /** @type {?} */
1740
1748
  DataListRestComponent.prototype.lazyLoad;
1741
1749
  /** @type {?} */
1742
1750
  DataListRestComponent.prototype.loadingChange;
@@ -8316,6 +8324,16 @@ function containsSpecialCharacters(fullName) {
8316
8324
  var regex = /[[\]!@#$%&*_+=`´{}^~<>.,:;?|()\/\\-]/;
8317
8325
  return !regex.test(fullName);
8318
8326
  }
8327
+ /**
8328
+ * @param {?} msg
8329
+ * @return {?}
8330
+ */
8331
+ function removeWhiteSpaces(msg) {
8332
+ if (msg && String(msg)) {
8333
+ return String(msg).replace(/\s/g, "");
8334
+ }
8335
+ return String(msg);
8336
+ }
8319
8337
  /**
8320
8338
  * @param {?} pis
8321
8339
  * @return {?}
@@ -9855,6 +9873,281 @@ if (false) {
9855
9873
  WorkflowDataService.prototype._draftJSON;
9856
9874
  }
9857
9875
 
9876
+ /**
9877
+ * @fileoverview added by tsickle
9878
+ * Generated from: lib/services/form-comparator.service.ts
9879
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9880
+ */
9881
+ /**
9882
+ * @record
9883
+ */
9884
+ function Divergence() { }
9885
+ if (false) {
9886
+ /** @type {?} */
9887
+ Divergence.prototype.oldValue;
9888
+ /** @type {?} */
9889
+ Divergence.prototype.newValue;
9890
+ }
9891
+ /**
9892
+ * @record
9893
+ */
9894
+ function DivergenceArray() { }
9895
+ if (false) {
9896
+ /** @type {?} */
9897
+ DivergenceArray.prototype.key;
9898
+ }
9899
+ var FormComparatorService = /** @class */ (function () {
9900
+ function FormComparatorService() {
9901
+ this.resetDivergentFormData();
9902
+ }
9903
+ /**
9904
+ * @return {?}
9905
+ */
9906
+ FormComparatorService.prototype.resetDivergentFormData = /**
9907
+ * @return {?}
9908
+ */
9909
+ function () {
9910
+ this._divergentFormData = {};
9911
+ };
9912
+ /**
9913
+ * checkFormDisagreements
9914
+ *
9915
+ * @description
9916
+ * Checa se existem divergẽncias entre os objetos armazenados nas
9917
+ * propriedades *oldFormData* e *newFormData*.
9918
+ *
9919
+ * `Se forem idênticos:`
9920
+ * levanta uma exceção.
9921
+ *
9922
+ * `Se houverem divergências:`
9923
+ * as armazena na propriedade divergentFormData.
9924
+ */
9925
+ /**
9926
+ * checkFormDisagreements
9927
+ *
9928
+ * \@description
9929
+ * Checa se existem divergẽncias entre os objetos armazenados nas
9930
+ * propriedades *oldFormData* e *newFormData*.
9931
+ *
9932
+ * `Se forem idênticos:`
9933
+ * levanta uma exceção.
9934
+ *
9935
+ * `Se houverem divergências:`
9936
+ * as armazena na propriedade divergentFormData.
9937
+ * @param {?=} ignoreId
9938
+ * @return {?}
9939
+ */
9940
+ FormComparatorService.prototype.checkFormDisagreements = /**
9941
+ * checkFormDisagreements
9942
+ *
9943
+ * \@description
9944
+ * Checa se existem divergẽncias entre os objetos armazenados nas
9945
+ * propriedades *oldFormData* e *newFormData*.
9946
+ *
9947
+ * `Se forem idênticos:`
9948
+ * levanta uma exceção.
9949
+ *
9950
+ * `Se houverem divergências:`
9951
+ * as armazena na propriedade divergentFormData.
9952
+ * @param {?=} ignoreId
9953
+ * @return {?}
9954
+ */
9955
+ function (ignoreId) {
9956
+ var _this = this;
9957
+ if (ignoreId === void 0) { ignoreId = false; }
9958
+ this.resetDivergentFormData();
9959
+ this._sanitizeEmptyStrings();
9960
+ if (ignoreId)
9961
+ this._removeIdsFromFormDatas();
9962
+ if (this._oldFormData === this._newFormData) {
9963
+ this._throwIdenticalMessage();
9964
+ }
9965
+ else {
9966
+ Object.keys(this._oldFormData).forEach((/**
9967
+ * @param {?} key
9968
+ * @return {?}
9969
+ */
9970
+ function (key) {
9971
+ if (_this._oldFormData[key] !== _this._newFormData[key]) {
9972
+ _this._divergentFormData[key] = _this._createDivergencePair(key);
9973
+ }
9974
+ }));
9975
+ Object.keys(this._newFormData).forEach((/**
9976
+ * @param {?} key
9977
+ * @return {?}
9978
+ */
9979
+ function (key) {
9980
+ if (_this._newFormData[key] !== _this._oldFormData[key]) {
9981
+ _this._divergentFormData[key] = _this._createDivergencePair(key);
9982
+ }
9983
+ }));
9984
+ if (this._isDivergentFormDataEmpty)
9985
+ this._throwIdenticalMessage();
9986
+ }
9987
+ };
9988
+ /**
9989
+ * @private
9990
+ * @return {?}
9991
+ */
9992
+ FormComparatorService.prototype._removeIdsFromFormDatas = /**
9993
+ * @private
9994
+ * @return {?}
9995
+ */
9996
+ function () {
9997
+ [this._oldFormData, this._newFormData].forEach((/**
9998
+ * @param {?} formData
9999
+ * @return {?}
10000
+ */
10001
+ function (formData) {
10002
+ delete formData["id"];
10003
+ }));
10004
+ };
10005
+ /**
10006
+ * @private
10007
+ * @return {?}
10008
+ */
10009
+ FormComparatorService.prototype._sanitizeEmptyStrings = /**
10010
+ * @private
10011
+ * @return {?}
10012
+ */
10013
+ function () {
10014
+ [this._oldFormData, this._newFormData].forEach((/**
10015
+ * @param {?} formData
10016
+ * @return {?}
10017
+ */
10018
+ function (formData) {
10019
+ Object.keys(formData).map((/**
10020
+ * @param {?} key
10021
+ * @return {?}
10022
+ */
10023
+ function (key) {
10024
+ if (formData[key] === "")
10025
+ formData[key] = null;
10026
+ }));
10027
+ }));
10028
+ };
10029
+ /**
10030
+ * @private
10031
+ * @param {?} key
10032
+ * @return {?}
10033
+ */
10034
+ FormComparatorService.prototype._createDivergencePair = /**
10035
+ * @private
10036
+ * @param {?} key
10037
+ * @return {?}
10038
+ */
10039
+ function (key) {
10040
+ /** @type {?} */
10041
+ var divergence = { oldValue: null, newValue: null };
10042
+ divergence.oldValue = this._oldFormData[key];
10043
+ divergence.newValue = this._newFormData[key];
10044
+ return divergence;
10045
+ };
10046
+ /**
10047
+ * @private
10048
+ * @return {?}
10049
+ */
10050
+ FormComparatorService.prototype._throwIdenticalMessage = /**
10051
+ * @private
10052
+ * @return {?}
10053
+ */
10054
+ function () {
10055
+ throw new Error("The objects oldFormData and newFormData are identical");
10056
+ };
10057
+ Object.defineProperty(FormComparatorService.prototype, "oldFormData", {
10058
+ get: /**
10059
+ * @return {?}
10060
+ */
10061
+ function () {
10062
+ return this._oldFormData;
10063
+ },
10064
+ set: /**
10065
+ * @param {?} v
10066
+ * @return {?}
10067
+ */
10068
+ function (v) {
10069
+ this._oldFormData = v;
10070
+ },
10071
+ enumerable: true,
10072
+ configurable: true
10073
+ });
10074
+ Object.defineProperty(FormComparatorService.prototype, "newFormData", {
10075
+ get: /**
10076
+ * @return {?}
10077
+ */
10078
+ function () {
10079
+ return this._newFormData;
10080
+ },
10081
+ set: /**
10082
+ * @param {?} v
10083
+ * @return {?}
10084
+ */
10085
+ function (v) {
10086
+ this._newFormData = v;
10087
+ },
10088
+ enumerable: true,
10089
+ configurable: true
10090
+ });
10091
+ Object.defineProperty(FormComparatorService.prototype, "divergentFormArray", {
10092
+ get: /**
10093
+ * @return {?}
10094
+ */
10095
+ function () {
10096
+ /** @type {?} */
10097
+ var divergentFormArray = [];
10098
+ Object.entries(this._divergentFormData).map((/**
10099
+ * @param {?} __0
10100
+ * @return {?}
10101
+ */
10102
+ function (_a) {
10103
+ var _b = __read(_a, 2), key = _b[0], divergence = _b[1];
10104
+ /** @type {?} */
10105
+ var object = { key: null, oldValue: null, newValue: null };
10106
+ object.key = key;
10107
+ object.oldValue = divergence.oldValue;
10108
+ object.newValue = divergence.newValue;
10109
+ divergentFormArray.push(object);
10110
+ }));
10111
+ return divergentFormArray;
10112
+ },
10113
+ enumerable: true,
10114
+ configurable: true
10115
+ });
10116
+ Object.defineProperty(FormComparatorService.prototype, "_isDivergentFormDataEmpty", {
10117
+ get: /**
10118
+ * @return {?}
10119
+ */
10120
+ function () {
10121
+ return Object.entries(this._divergentFormData).length === 0;
10122
+ },
10123
+ enumerable: true,
10124
+ configurable: true
10125
+ });
10126
+ FormComparatorService.decorators = [
10127
+ { type: Injectable }
10128
+ ];
10129
+ /** @nocollapse */
10130
+ FormComparatorService.ctorParameters = function () { return []; };
10131
+ return FormComparatorService;
10132
+ }());
10133
+ if (false) {
10134
+ /**
10135
+ * @type {?}
10136
+ * @private
10137
+ */
10138
+ FormComparatorService.prototype._oldFormData;
10139
+ /**
10140
+ * @type {?}
10141
+ * @private
10142
+ */
10143
+ FormComparatorService.prototype._newFormData;
10144
+ /**
10145
+ * @type {?}
10146
+ * @private
10147
+ */
10148
+ FormComparatorService.prototype._divergentFormData;
10149
+ }
10150
+
9858
10151
  /**
9859
10152
  * @fileoverview added by tsickle
9860
10153
  * Generated from: lib/services/services.module.ts
@@ -9872,7 +10165,8 @@ var ServicesModule = /** @class */ (function () {
9872
10165
  LookupParametersService,
9873
10166
  AutocompleteParametersService,
9874
10167
  ReportService,
9875
- WorkflowDataService
10168
+ WorkflowDataService,
10169
+ FormComparatorService
9876
10170
  ]
9877
10171
  },] }
9878
10172
  ];
@@ -16670,6 +16964,56 @@ var EmployeeSelectorModule = /** @class */ (function () {
16670
16964
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16671
16965
  */
16672
16966
 
16967
+ /**
16968
+ * @fileoverview added by tsickle
16969
+ * Generated from: lib/components/from-to/from-to.component.ts
16970
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16971
+ */
16972
+ var FromToComponent = /** @class */ (function () {
16973
+ function FromToComponent() {
16974
+ }
16975
+ FromToComponent.decorators = [
16976
+ { type: Component, args: [{
16977
+ selector: "from-to",
16978
+ template: "<div id=\"from-to\" class=\"ui-g ui-fluid\" *ngIf=\"divergentFormData\">\n <div class=\"ui-g-12\">\n <!-- Painel Collapsable -->\n <p-panel\n class=\"ui-g-12 ui-fluid form-group\"\n header=\"{{ 'hcm.payroll.disagreements' | translate }}\"\n [toggleable]=\"true\"\n [collapsed]=\"false\"\n >\n <section id=\"from-to-content\" class=\"ui-g ui-fluid form-group\">\n <!-- INICIO DE SE\u00C7\u00C3O: DE (ANTES): -->\n <p-panel class=\"ui-g-6 ui-fluid form-group\" header=\"{{ 'hcm.payroll.from' | translate }}\">\n <section id=\"from-content\" class=\"ui-g ui-fluid\">\n <ng-container *ngFor=\"let divergence of divergentFormData\">\n <div class=\"ui-g-6\">\n <label for=\"{{divergence.key}}-from\">{{ divergence.key }}</label>\n <input\n pInputText\n type=\"text\"\n name=\"{{divergence.key}}-from\"\n id=\"{{divergence.key}}-from\"\n value=\"{{ divergence.oldValue }}\"\n />\n\n </div>\n </ng-container>\n </section>\n </p-panel>\n <!-- FINAL DE SE\u00C7\u00C3O: DE (ANTES): -->\n\n <!-- INICIO DE SE\u00C7\u00C3O: PARA (DEPOIS): -->\n <p-panel class=\"ui-g-6 ui-fluid form-group\" header=\"{{ 'hcm.payroll.to' | translate }}\">\n <section id=\"to-content\" class=\"ui-g ui-fluid\">\n <ng-container *ngFor=\"let divergence of divergentFormData\">\n <div class=\"ui-g-6\">\n <label for=\"{{divergence.key}}-to\">{{ divergence.key }}</label>\n <input\n pInputText\n type=\"text\"\n name=\"{{divergence.key}}-to\"\n id=\"{{divergence.key}}-to\"\n value=\"{{ divergence.newValue }}\"\n />\n </div>\n </ng-container>\n </section>\n </p-panel>\n <!-- FINAL DE SE\u00C7\u00C3O: PARA (DEPOIS): -->\n </section>\n </p-panel>\n </div>\n</div>\n"
16979
+ }] }
16980
+ ];
16981
+ /** @nocollapse */
16982
+ FromToComponent.ctorParameters = function () { return []; };
16983
+ FromToComponent.propDecorators = {
16984
+ divergentFormData: [{ type: Input }]
16985
+ };
16986
+ return FromToComponent;
16987
+ }());
16988
+ if (false) {
16989
+ /** @type {?} */
16990
+ FromToComponent.prototype.divergentFormData;
16991
+ }
16992
+
16993
+ /**
16994
+ * @fileoverview added by tsickle
16995
+ * Generated from: lib/components/from-to/from-to.module.ts
16996
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16997
+ */
16998
+ var FromToModule = /** @class */ (function () {
16999
+ function FromToModule() {
17000
+ }
17001
+ FromToModule.decorators = [
17002
+ { type: NgModule, args: [{
17003
+ imports: [CommonModule, PanelModule, TranslateModule, ReactiveFormsModule, InputTextModule],
17004
+ declarations: [FromToComponent],
17005
+ exports: [FromToComponent],
17006
+ },] }
17007
+ ];
17008
+ return FromToModule;
17009
+ }());
17010
+
17011
+ /**
17012
+ * @fileoverview added by tsickle
17013
+ * Generated from: lib/components/from-to/index.ts
17014
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17015
+ */
17016
+
16673
17017
  /**
16674
17018
  * @fileoverview added by tsickle
16675
17019
  * Generated from: public_api.ts
@@ -16682,5 +17026,5 @@ var EmployeeSelectorModule = /** @class */ (function () {
16682
17026
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16683
17027
  */
16684
17028
 
16685
- export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq };
17029
+ export { AdmissionDraftSummaryComponent, AdmissionDraftSummaryModule, AdmissionDraftSummaryService, AutocompleteParametersService, BlockUiComponent, BlockUiModule, BreadcrumbComponent, BreadcrumbSDSModule, CNPJValidator, CPFValidator, CompanyIndicationType, CompanyIndicationsService, CompareType, ControlMessagesErrorComponent, ControlMessagesErrorModule, CoreDirectives, CoreFieldType, CustomFieldsComponent, CustomFieldsModule, DataListModule, DataListRestModule, DateValidator, DirectionEnumeration, EmployeeSelectorComponent, EmployeeSelectorModule, EmployeeSummaryComponent, EmployeeSummaryModule, EmployeeSummaryService, EntityODataParameter, ErrorPageComponent, ErrorPageModule, FieldValidatorComponent, FieldValidatorModule, FileUploadComponent, FileUploadCoreModule, FormComparatorService, FromToComponent, FromToModule, HistoricalBankAccountComponent, HistoricalBankAccountListComponent, HistoricalBankAccountListModule, HistoricalBankAccountListService, HistoricalBankAccountModule, HistoricalBankAccountService, HttpClientService, HttpRequestType, ImageCropComponent, ImageCropModule, ImageCropService, InputDateComponent, InputDateModelComponent, InputDateModelModule, InputDateModule, InputRestAutoCompleteComponent, InputRestAutoCompleteEmployeeModelModule, InputRestAutoCompleteEmployeeModelService, InputRestAutoCompleteEmployeeModule, InputRestAutoCompleteEmployeeService, InputRestAutoCompleteEnumComponent, InputRestAutoCompleteEnumModule, InputRestAutoCompleteEnumService, InputRestAutoCompleteJobpositionComponent, InputRestAutoCompleteJobpositionModule, InputRestAutoCompleteJobpositionService, InputRestAutoCompleteModelEnumModule, InputRestAutoCompleteModelEnumService, InputRestAutoCompleteModelModule, InputRestAutoCompleteModelService, InputRestAutoCompleteModule, InputRestAutoCompleteService, IntegrationService, ListRestComponent, ListRestModule, LookupModule, LookupParametersService, MenuType, ModuleType, NameNotSpacesDirective, OnlyNumberDirective, Operators, ParameterType, PermissionService, ReportFormat, ReportService, ReportStage, ServiceType, ServicesModule, SpinnerLoaderComponent, SpinnerLoaderModule, StringMethods, ToastComponent, ToastModule, ToastService, TypeAdmissionModule, TypeAdmissionServices, UsingType, WorkflowDataService, WorkflowIntegrator, WorkstationgroupLookupDto, WorkstationgroupLookupModule, _moment, assign, autoCompleteObjectForIdObject, clearValues, cnpjValidator, compareValues, configEnabledFields, containsMoreThanOneConsecutiveAbbreviation, containsMoreThanOneConsecutiveBlankSpace, containsMoreThanTwoRepeatedCharacters, containsSpecialCharacters, convertBooleanString, convertStringToBoolean, cpfValidator, firstNameIsValid, firstNameLengthIsValid, formatMoney, fullNameLengthIsValid, getAddWeekDaysBusiness, getFormat, getFormatDate, getMoment, getNowDate, getObjValids, getQueryParams, getWeekDaysBusiness, getYears, invertFieldDate, isBirthDayValid, isDateCompare, isDateExpirationBeforeExpeditionDate, isDateField, isDateSameOrAfterCurrentDate, isFullDate, isMax, isNumber, isObject, isRequired, isShallow, isValid, isValidDate, isValidPIS, mountCustomForSave, mountCustomForShow, mountCustomToSave, mountCustomToShow, mountGeneratedCustomToSave, ngCalendarFormat, notEmpty, numberOrZero, removeCharacteresSpecials, removeEmpty, removeWhiteSpaces, setCustonFields, setDisableField, setErrors, setRequired, setRequiredFields, setValidator, setValidatorsAndDisableFields, setValueCustom, stringMethods, sun, uiid, validateBirthDate, verifyValidationsForm, SharedModule as ɵa, DataListRestComponent as ɵb, DataListRestService as ɵc, FileUploadService as ɵd, InputRestAutoCompleteEmployeeComponent as ɵe, InputRestAutoCompleteEmployeeModelComponent as ɵf, InputRestAutoCompleteModelComponent as ɵg, InputRestAutoCompleteModelEnumComponent as ɵh, ListRestService as ɵi, DataListComponent as ɵj, DataListService as ɵk, LookupComponent as ɵl, LookupService as ɵm, WorkstationgroupLookupComponent as ɵn, AutocompleteService as ɵo, LookupService$1 as ɵp, HistoricalBankAccountFormComponent as ɵq };
16686
17030
  //# sourceMappingURL=senior-gestao-pessoas-payroll-core.js.map