@porscheinformatik/clr-addons 13.4.0 → 13.4.2
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/datagrid/date-filter/date-filter.component.d.ts +6 -4
- package/esm2020/datagrid/date-filter/date-filter.component.mjs +9 -5
- package/esm2020/history/history.service.mjs +3 -3
- package/fesm2015/clr-addons.mjs +9 -5
- package/fesm2015/clr-addons.mjs.map +1 -1
- package/fesm2020/clr-addons.mjs +9 -5
- package/fesm2020/clr-addons.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/clr-addons.mjs
CHANGED
|
@@ -4006,9 +4006,9 @@ class ClrHistoryService {
|
|
|
4006
4006
|
}
|
|
4007
4007
|
checkEqualContext(entry, toCompare) {
|
|
4008
4008
|
let equal = false;
|
|
4009
|
-
if (entry && toCompare) {
|
|
4009
|
+
if (entry && entry.context && toCompare) {
|
|
4010
4010
|
Object.keys(toCompare).forEach(key => {
|
|
4011
|
-
equal = entry.context[key] === toCompare[key];
|
|
4011
|
+
equal = key in entry.context && entry.context[key] === toCompare[key];
|
|
4012
4012
|
});
|
|
4013
4013
|
}
|
|
4014
4014
|
return equal;
|
|
@@ -4972,8 +4972,9 @@ class NestedProperty {
|
|
|
4972
4972
|
}
|
|
4973
4973
|
|
|
4974
4974
|
class ClrDateFilterComponent {
|
|
4975
|
-
constructor(
|
|
4975
|
+
constructor(commonStrings, clrPopoverEventsService, filterContainer) {
|
|
4976
4976
|
this.commonStrings = commonStrings;
|
|
4977
|
+
this.clrPopoverEventsService = clrPopoverEventsService;
|
|
4977
4978
|
this.filterValueChange = new EventEmitter();
|
|
4978
4979
|
/**
|
|
4979
4980
|
* Internal values and accessor
|
|
@@ -4992,6 +4993,9 @@ class ClrDateFilterComponent {
|
|
|
4992
4993
|
get property() {
|
|
4993
4994
|
return this.nestedProp.prop;
|
|
4994
4995
|
}
|
|
4996
|
+
ngAfterViewInit() {
|
|
4997
|
+
this.clrPopoverEventsService.outsideClickClose = false;
|
|
4998
|
+
}
|
|
4995
4999
|
get maxPlaceholderValue() {
|
|
4996
5000
|
return this.maxPlaceholder || this.commonStrings.keys.maxValue;
|
|
4997
5001
|
}
|
|
@@ -5080,12 +5084,12 @@ class ClrDateFilterComponent {
|
|
|
5080
5084
|
return other === this;
|
|
5081
5085
|
}
|
|
5082
5086
|
}
|
|
5083
|
-
ClrDateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ClrDateFilterComponent, deps: [{ token: i2.
|
|
5087
|
+
ClrDateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ClrDateFilterComponent, deps: [{ token: i2.ClrCommonStringsService }, { token: i2.ClrPopoverEventsService }, { token: i2.ClrDatagridFilter }], target: i0.ɵɵFactoryTarget.Component });
|
|
5084
5088
|
ClrDateFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ClrDateFilterComponent, selector: "clr-date-filter", inputs: { property: ["clrProperty", "property"], maxPlaceholder: ["clrFilterMaxPlaceholder", "maxPlaceholder"], minPlaceholder: ["clrFilterMinPlaceholder", "minPlaceholder"], value: ["clrFilterValue", "value"] }, outputs: { filterValueChange: "clrFilterValueChange" }, ngImport: i0, template: "<clr-date-container>\n <input\n #input_from\n type=\"date\"\n name=\"from\"\n class=\"datagrid-date-filter-input\"\n [(clrDate)]=\"from\"\n [placeholder]=\"minPlaceholderValue\"\n [attr.aria-label]=\"minPlaceholderValue\"\n />\n</clr-date-container>\n<clr-date-container>\n <input\n type=\"date\"\n name=\"to\"\n class=\"datagrid-date-filter-input\"\n [(clrDate)]=\"to\"\n [placeholder]=\"maxPlaceholderValue\"\n [attr.aria-label]=\"maxPlaceholderValue\"\n />\n</clr-date-container>\n", styles: [""], dependencies: [{ kind: "component", type: i2.ClrDateContainer, selector: "clr-date-container", inputs: ["clrPosition"] }, { kind: "directive", type: i2.ClrDateInput, selector: "[clrDate]", inputs: ["placeholder", "clrDate", "min", "max", "disabled"], outputs: ["clrDateChange"] }, { kind: "directive", type: i2.ClrDateInputValidator, selector: "[clrDate]" }] });
|
|
5085
5089
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ClrDateFilterComponent, decorators: [{
|
|
5086
5090
|
type: Component,
|
|
5087
5091
|
args: [{ selector: 'clr-date-filter', template: "<clr-date-container>\n <input\n #input_from\n type=\"date\"\n name=\"from\"\n class=\"datagrid-date-filter-input\"\n [(clrDate)]=\"from\"\n [placeholder]=\"minPlaceholderValue\"\n [attr.aria-label]=\"minPlaceholderValue\"\n />\n</clr-date-container>\n<clr-date-container>\n <input\n type=\"date\"\n name=\"to\"\n class=\"datagrid-date-filter-input\"\n [(clrDate)]=\"to\"\n [placeholder]=\"maxPlaceholderValue\"\n [attr.aria-label]=\"maxPlaceholderValue\"\n />\n</clr-date-container>\n" }]
|
|
5088
|
-
}], ctorParameters: function () { return [{ type: i2.
|
|
5092
|
+
}], ctorParameters: function () { return [{ type: i2.ClrCommonStringsService }, { type: i2.ClrPopoverEventsService }, { type: i2.ClrDatagridFilter }]; }, propDecorators: { property: [{
|
|
5089
5093
|
type: Input,
|
|
5090
5094
|
args: ['clrProperty']
|
|
5091
5095
|
}], maxPlaceholder: [{
|