@seniorsistemas/angular-components 14.16.23 → 14.16.25
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/seniorsistemas-angular-components.umd.js +37 -27
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/configurations/fields/calendar-field.d.ts +2 -0
- package/components/dynamic-form/configurations/form-field.d.ts +4 -0
- package/components/table/frozen-position/frozen-position.directive.d.ts +2 -0
- package/esm2015/components/dynamic-form/components/fields/calendar/calendar-field.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/calendar-field.js +2 -1
- package/esm2015/components/dynamic-form/configurations/form-field.js +1 -1
- package/esm2015/components/table/frozen-position/frozen-position.directive.js +35 -27
- package/esm5/components/dynamic-form/components/fields/calendar/calendar-field.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/calendar-field.js +2 -1
- package/esm5/components/dynamic-form/configurations/form-field.js +1 -1
- package/esm5/components/table/frozen-position/frozen-position.directive.js +36 -27
- package/fesm2015/seniorsistemas-angular-components.js +36 -27
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +37 -27
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1732,6 +1732,7 @@
|
|
|
1732
1732
|
_this.view = config.view || "date";
|
|
1733
1733
|
_this.minDate = config.minDate;
|
|
1734
1734
|
_this.maxDate = config.maxDate;
|
|
1735
|
+
_this.defaultDate = config.defaultDate;
|
|
1735
1736
|
_this.appendTo = config.appendTo;
|
|
1736
1737
|
_this.showOnFocus = typeof config.showOnFocus === "boolean" ? config.showOnFocus : true;
|
|
1737
1738
|
_this.calendarLocaleOptions = config.calendarLocaleOptions || new CalendarLocaleOptions();
|
|
@@ -4021,6 +4022,7 @@
|
|
|
4021
4022
|
var _this = this;
|
|
4022
4023
|
setTimeout(function () {
|
|
4023
4024
|
_this.synchronizeRowHeight();
|
|
4025
|
+
_this.setUpRowResizeMonitoring();
|
|
4024
4026
|
});
|
|
4025
4027
|
},
|
|
4026
4028
|
enumerable: true,
|
|
@@ -4056,32 +4058,27 @@
|
|
|
4056
4058
|
_this.handleColResize();
|
|
4057
4059
|
});
|
|
4058
4060
|
this.table.onRowExpand.subscribe(function () {
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
var
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
var height = originalTd.getBoundingClientRect().height;
|
|
4081
|
-
td.innerHTML = "<div style=\"height: " + height + "px\"></div>";
|
|
4082
|
-
td.style.padding = "0px";
|
|
4083
|
-
_this.rowExpandedObserver.observe(originalTd);
|
|
4084
|
-
});
|
|
4061
|
+
_this.setUpRowResizeMonitoring();
|
|
4062
|
+
});
|
|
4063
|
+
};
|
|
4064
|
+
TableFrozenPositionDirective.prototype.setUpRowResizeMonitoring = function () {
|
|
4065
|
+
var _this = this;
|
|
4066
|
+
if (this.rowExpandedObserver) {
|
|
4067
|
+
this.rowExpandedObserver.disconnect();
|
|
4068
|
+
}
|
|
4069
|
+
// The version of Angular/Typescript does not recognize the object ResizeObserver and breaks build
|
|
4070
|
+
this.rowExpandedObserver = new window.ResizeObserver(function () {
|
|
4071
|
+
_this.applyHeightForExpandedRows();
|
|
4072
|
+
});
|
|
4073
|
+
setTimeout(function () {
|
|
4074
|
+
var tdsToAdjust = _this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
|
|
4075
|
+
var originalsTds = _this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
|
|
4076
|
+
tdsToAdjust.forEach(function (td, index) {
|
|
4077
|
+
var originalTd = originalsTds[index];
|
|
4078
|
+
var height = originalTd.getBoundingClientRect().height;
|
|
4079
|
+
td.innerHTML = "<div style=\"height: " + height + "px\"></div>";
|
|
4080
|
+
td.style.padding = "0px";
|
|
4081
|
+
_this.rowExpandedObserver.observe(originalTd);
|
|
4085
4082
|
});
|
|
4086
4083
|
});
|
|
4087
4084
|
};
|
|
@@ -4099,6 +4096,19 @@
|
|
|
4099
4096
|
});
|
|
4100
4097
|
});
|
|
4101
4098
|
};
|
|
4099
|
+
TableFrozenPositionDirective.prototype.applyHeightForExpandedRows = function () {
|
|
4100
|
+
var frozenTDsToAdjust = this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
|
|
4101
|
+
var unFrozenTDs = this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
|
|
4102
|
+
frozenTDsToAdjust.forEach(function (frozenTd, index) {
|
|
4103
|
+
var unfrozenTD = unFrozenTDs[index];
|
|
4104
|
+
var unfrozenHeight = unfrozenTD.getBoundingClientRect().height;
|
|
4105
|
+
var frozenHeight = frozenTd.getBoundingClientRect().height;
|
|
4106
|
+
if (Math.abs(unfrozenHeight - frozenHeight) > 1) {
|
|
4107
|
+
frozenTd.style.height = unfrozenHeight + "px";
|
|
4108
|
+
frozenTd.innerHTML = "<div></div>";
|
|
4109
|
+
}
|
|
4110
|
+
});
|
|
4111
|
+
};
|
|
4102
4112
|
TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
|
|
4103
4113
|
var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
|
|
4104
4114
|
if (!scrollWrapper) {
|
|
@@ -4815,7 +4825,7 @@
|
|
|
4815
4825
|
], CalendarFieldComponent.prototype, "timeOnly", void 0);
|
|
4816
4826
|
CalendarFieldComponent = __decorate([
|
|
4817
4827
|
core.Component({
|
|
4818
|
-
template: "<div [pTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\" [appendTo]=\"field.appendTo || 'body'\">\n <!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela anima\u00E7\u00E3o do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. -->\n
|
|
4828
|
+
template: "<div [pTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\" [appendTo]=\"field.appendTo || 'body'\">\n <!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela anima\u00E7\u00E3o do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. -->\n\n <p-calendar\n #calendar\n sCalendarMask\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [showIcon]=\"true\"\n [timeOnly]=\"timeOnly\"\n [selectionMode]=\"field.selectionMode\"\n [rangeSeparator]=\"field.rangeSeparator\"\n [showTime]=\"showTime\"\n [showSeconds]=\"field.showSeconds\"\n [showOnFocus]=\"field.showOnFocus\"\n [formControl]=\"formControl\"\n icon=\"fa fa-calendar\"\n [minDate]=\"field.minDate\"\n [maxDate]=\"field.maxDate\"\n [defaultDate]=\"field.defaultDate\"\n [locale]=\"field.calendarLocaleOptions\"\n [dateFormat]=\"field.calendarLocaleOptions.dateFormat\"\n [hourFormat]=\"field.calendarLocaleOptions.hourFormat\"\n [view]=\"field.view\"\n [placeholder]=\"field.placeholder\"\n inputStyleClass=\"mousetrap\"\n [appendTo]=\"field.appendTo\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event): null\"\n (onSelect)=\"field.onSelect ? field.onSelect($event) : null\"\n (onClose)=\"field.onClose ? field.onClose($event) : null\"\n (onTodayClick)=\"field.onTodayClick ? field.onTodayClick($event) : null\"\n (onClearClick)=\"field.onClearClick ? field.onClearClick($event) : null\"\n (onMonthChange)=\"field.onMonthChange ? field.onMonthChange($event) : null\"\n (onYearChange)=\"field.onYearChange ? field.onYearChange($event) : null\"\n [showTransitionOptions]=\"'0ms'\"\n [hideTransitionOptions]=\"'0ms'\"\n ></p-calendar>\n</div>\n"
|
|
4819
4829
|
})
|
|
4820
4830
|
], CalendarFieldComponent);
|
|
4821
4831
|
return CalendarFieldComponent;
|