basesite-shared-grid-lib 15.10.294 → 15.10.295

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.
@@ -1199,17 +1199,13 @@ class DatepickerComponent {
1199
1199
  if (!newValue) {
1200
1200
  this.applyFilter(null);
1201
1201
  }
1202
- else if (Array.isArray(newValue) &&
1203
- newValue.length === 2 &&
1204
- newValue[0] &&
1205
- newValue[1]) {
1202
+ else if (Array.isArray(newValue) && newValue.length === 2 && newValue[0] && newValue[1]) {
1206
1203
  this.applyFilter(newValue);
1207
1204
  }
1208
1205
  }
1209
1206
  applyFilter(value) {
1210
- console.log('applied filter', value);
1211
1207
  this.params?.parentFilterInstance((instance) => {
1212
- if (value && Array.isArray(value) && value.length === 2 && value[0] && value[1]) {
1208
+ if (value && Array.isArray(value) && value.length === 2) {
1213
1209
  // Convert yy-mm-dd format to yyyy-mm-dd for AG Grid filter
1214
1210
  const fromDate = this.convertToFullYear(value[0]);
1215
1211
  const toDate = this.convertToFullYear(value[1]);
@@ -1409,7 +1405,6 @@ class DatepickerComponent {
1409
1405
  this.value = null;
1410
1406
  this.onChange(null);
1411
1407
  this.ngModelChange.emit(null);
1412
- this.applyFilter(null);
1413
1408
  this.reconnectToPrimeNG();
1414
1409
  }
1415
1410
  }
@@ -1620,14 +1615,7 @@ class DatepickerComponent {
1620
1615
  this.lastEmittedValue = outputValue;
1621
1616
  this.onChange(outputValue);
1622
1617
  this.ngModelChange.emit(outputValue);
1623
- if (this.selectionMode === 'range') {
1624
- if (Array.isArray(newValue) && newValue.length === 2 && newValue[0] && newValue[1]) {
1625
- this.applyFilter(newValue);
1626
- }
1627
- }
1628
- else {
1629
- this.applyFilter(newValue);
1630
- }
1618
+ this.applyFilter(newValue);
1631
1619
  }
1632
1620
  writeValue(value) {
1633
1621
  // Block external writes during restoration
@@ -1760,7 +1748,6 @@ class DatepickerComponent {
1760
1748
  // Emit null to trigger filtering
1761
1749
  this.onChange(null);
1762
1750
  this.ngModelChange.emit(null);
1763
- this.applyFilter(null);
1764
1751
  // Close the datepicker and remove focus
1765
1752
  this.closeDatepicker();
1766
1753
  }
@@ -1840,7 +1827,7 @@ class DatepickerComponent {
1840
1827
  this.isDatepickerOpen = false;
1841
1828
  }
1842
1829
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1843
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: DatepickerComponent, isStandalone: true, selector: "app-datepicker", inputs: { disabled: "disabled", selectionMode: "selectionMode", showIcon: "showIcon", appendTo: "appendTo", inline: "inline", showButtonBar: "showButtonBar", inputId: "inputId", showOnFocus: "showOnFocus", gridComponent: "gridComponent" }, outputs: { ngModelChange: "ngModelChange" }, providers: [
1830
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: DatepickerComponent, isStandalone: true, selector: "app-datepicker", inputs: { disabled: "disabled", selectionMode: "selectionMode", showIcon: "showIcon", appendTo: "appendTo", inline: "inline", showButtonBar: "showButtonBar", inputId: "inputId", showOnFocus: "showOnFocus" }, outputs: { ngModelChange: "ngModelChange" }, providers: [
1844
1831
  {
1845
1832
  provide: NG_VALUE_ACCESSOR,
1846
1833
  useExisting: forwardRef(() => DatepickerComponent),
@@ -1873,8 +1860,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
1873
1860
  type: Input
1874
1861
  }], showOnFocus: [{
1875
1862
  type: Input
1876
- }], gridComponent: [{
1877
- type: Input
1878
1863
  }], ngModelChange: [{
1879
1864
  type: Output
1880
1865
  }], datepicker: [{
@@ -2186,8 +2171,7 @@ class GridLibraryComponent {
2186
2171
  floatingFilter: this.floatingFilter,
2187
2172
  floatingFilterComponent: DatepickerComponent,
2188
2173
  floatingFilterComponentParams: {
2189
- suppressFilterButton: true,
2190
- gridComponent: this
2174
+ suppressFilterButton: true
2191
2175
  },
2192
2176
  valueFormatter: (params) => this.formatterService.colValueFormatter(params, res.columnType),
2193
2177
  filterable: res.filterable,