@saydar/table-builder 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,18 +1,14 @@
1
1
  {
2
2
  "name": "@saydar/table-builder",
3
- "version": "1.0.5",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/Yitzchak-Holtzberg/OodleTableBuilder"
7
- },
3
+ "version": "1.0.6",
8
4
  "peerDependencies": {
9
- "@angular/common": ">=18.0.0 <21.0.0",
10
- "@angular/core": ">=18.0.0 <21.0.0",
11
- "@angular/material": ">=18.0.0 <21.0.0",
12
- "@ngrx/component": ">=18.0.0 <21.0.0",
13
- "@ngrx/component-store": ">=18.0.0 <21.0.0",
14
- "@ngrx/effects": ">=18.0.0 <21.0.0",
15
- "@ngrx/store": ">=18.0.0 <21.0.0"
5
+ "@angular/common": ">=18.0.0 <22.0.0",
6
+ "@angular/core": ">=18.0.0 <22.0.0",
7
+ "@angular/material": ">=18.0.0 <22.0.0",
8
+ "@ngrx/component": ">=18.0.0 <22.0.0",
9
+ "@ngrx/component-store": ">=18.0.0 <22.0.0",
10
+ "@ngrx/effects": ">=18.0.0 <22.0.0",
11
+ "@ngrx/store": ">=18.0.0 <22.0.0"
16
12
  },
17
13
  "dependencies": {
18
14
  "tslib": "^2.4.1"
@@ -29,4 +25,4 @@
29
25
  }
30
26
  },
31
27
  "sideEffects": false
32
- }
28
+ }
@@ -38,6 +38,8 @@ import * as i39 from 'ng-table-virtual-scroll';
38
38
  import { TableVirtualScrollDataSource } from 'ng-table-virtual-scroll';
39
39
  import * as i20 from '@angular/material/menu';
40
40
  import { MatMenuTrigger } from '@angular/material/menu';
41
+ import * as i26 from '@angular/material/chips';
42
+ import { MatChipInputEvent } from '@angular/material/chips';
41
43
  import * as i3 from '@angular/material/select';
42
44
  import * as i4 from '@angular/material/dialog';
43
45
  import { MatDialogRef, MatDialogConfig, MatDialog } from '@angular/material/dialog';
@@ -56,7 +58,6 @@ import * as i18 from '@angular/material/input';
56
58
  import * as i21 from '@angular/material/icon';
57
59
  import * as i22 from '@angular/material/badge';
58
60
  import * as i24 from '@angular/material/autocomplete';
59
- import * as i26 from '@angular/material/chips';
60
61
  import * as i32 from '@ngrx/effects';
61
62
  import * as i35 from '@ngrx/component';
62
63
  import * as i38 from '@angular/cdk/scrolling';
@@ -1730,6 +1731,8 @@ declare class FilterComponent<T extends mappedFieldTypes = any> {
1730
1731
  constructor(state: TableStore);
1731
1732
  ngOnInit(): void;
1732
1733
  onEnter(filter: FilterInfo, event: any): void;
1734
+ private readonly singleValueFilterTypes;
1735
+ onFilterTypeChange(newType: FilterType): void;
1733
1736
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent<any>, never>;
1734
1737
  static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "tb-filter", never, { "filter": { "alias": "filter"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
1735
1738
  }
@@ -1813,24 +1816,6 @@ declare class FormatFilterTypePipe implements PipeTransform {
1813
1816
  static ɵpipe: i0.ɵɵPipeDeclaration<FormatFilterTypePipe, "formatFilterType", false>;
1814
1817
  }
1815
1818
 
1816
- declare class InFilterComponent implements ControlValueAccessor {
1817
- private ref;
1818
- FieldType: typeof FieldType;
1819
- type: FieldType;
1820
- value: any[];
1821
- constructor(ref: ChangeDetectorRef);
1822
- writeValue(obj: any[]): void;
1823
- onChange: (_: any) => void;
1824
- registerOnChange(fn: any): void;
1825
- onTouched: () => void;
1826
- registerOnTouched(fn: any): void;
1827
- addInput(): void;
1828
- removeInput(index: number): void;
1829
- onValueChange(i: number, value: number | string): void;
1830
- static ɵfac: i0.ɵɵFactoryDeclaration<InFilterComponent, never>;
1831
- static ɵcmp: i0.ɵɵComponentDeclaration<InFilterComponent, "lib-in-filter", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
1832
- }
1833
-
1834
1819
  declare class InListFilterComponent implements ControlValueAccessor {
1835
1820
  private ref;
1836
1821
  private tableState;
@@ -1883,9 +1868,8 @@ declare class SortMenuComponent implements OnInit {
1883
1868
  constructor(tableState: TableStore, store: SortMenuComponentStore);
1884
1869
  reset(): void;
1885
1870
  ngOnInit(): void;
1886
- addSort(sort: SortWithName): void;
1887
- removeSort(sort: SortWithName): void;
1888
- toggleDirection(sort: SortWithName): void;
1871
+ dropIntoSorted(event: CdkDragDrop<SortWithName[]>): void;
1872
+ dropIntoNotSorted(event: CdkDragDrop<SortWithName[]>): void;
1889
1873
  apply: (observableOrValue: Observable<null> | null) => rxjs.Subscription;
1890
1874
  setDirection(sort: SortWithName): void;
1891
1875
  static ɵfac: i0.ɵɵFactoryDeclaration<SortMenuComponent, never>;
@@ -1921,6 +1905,27 @@ declare class DateTimeFilterComponent {
1921
1905
  static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeFilterComponent, "tb-date-time-filter", never, { "info": { "alias": "info"; "required": false; }; "CurrentFilterType": { "alias": "CurrentFilterType"; "required": false; }; }, {}, never, never, false, never>;
1922
1906
  }
1923
1907
 
1908
+ declare class ChipFilterInputComponent implements ControlValueAccessor {
1909
+ private ref;
1910
+ type: FieldType;
1911
+ FieldType: typeof FieldType;
1912
+ values: (string | number)[];
1913
+ readonly separatorKeyCodes: readonly [188, 13];
1914
+ constructor(ref: ChangeDetectorRef);
1915
+ onChange: (_: any) => void;
1916
+ onTouched: () => void;
1917
+ writeValue(obj: any): void;
1918
+ registerOnChange(fn: any): void;
1919
+ registerOnTouched(fn: any): void;
1920
+ add(event: MatChipInputEvent): void;
1921
+ remove(index: number): void;
1922
+ onKeydown(event: KeyboardEvent): void;
1923
+ private emitValue;
1924
+ private isNumericType;
1925
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipFilterInputComponent, never>;
1926
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipFilterInputComponent, "tb-chip-filter-input", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
1927
+ }
1928
+
1924
1929
  declare class MaterialModule {
1925
1930
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
1926
1931
  static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatSlideToggleModule, typeof i2.MatTableModule, typeof i3.MatSelectModule, typeof i4.MatDialogModule, typeof i5.MatDatepickerModule, typeof i6.MatRadioModule, typeof i7.MatButtonModule, typeof i8.MatExpansionModule, typeof i9.MatStepperModule, typeof i10.MatToolbarModule, typeof i11.MatTooltipModule, typeof i12.MatNativeDateModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatGridListModule, typeof i15.MatCardModule, typeof i16.MatSidenavModule, typeof i17.MatTabsModule, typeof i18.MatInputModule, typeof i17.MatTabsModule, typeof i19.MatCheckboxModule, typeof i20.MatMenuModule, typeof i21.MatIconModule, typeof i22.MatBadgeModule, typeof i23.MatSortModule, typeof i24.MatAutocompleteModule, typeof i25.MatPaginatorModule, typeof i26.MatChipsModule, typeof i4.MatDialogModule], [typeof i1.MatSlideToggleModule, typeof i2.MatTableModule, typeof i3.MatSelectModule, typeof i4.MatDialogModule, typeof i5.MatDatepickerModule, typeof i6.MatRadioModule, typeof i7.MatButtonModule, typeof i8.MatExpansionModule, typeof i9.MatStepperModule, typeof i10.MatToolbarModule, typeof i11.MatTooltipModule, typeof i12.MatNativeDateModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatGridListModule, typeof i15.MatCardModule, typeof i16.MatSidenavModule, typeof i17.MatTabsModule, typeof i18.MatInputModule, typeof i17.MatTabsModule, typeof i19.MatCheckboxModule, typeof i20.MatMenuModule, typeof i21.MatIconModule, typeof i22.MatBadgeModule, typeof i23.MatSortModule, typeof i24.MatAutocompleteModule, typeof i25.MatPaginatorModule, typeof i26.MatChipsModule, typeof i4.MatDialogModule]>;
@@ -1930,7 +1935,7 @@ declare class MaterialModule {
1930
1935
  declare class TableBuilderModule {
1931
1936
  static forRoot(config: TableBuilderConfig): ModuleWithProviders<TableBuilderModule>;
1932
1937
  static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilderModule, never>;
1933
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableBuilderModule, [typeof ColumnTotalPipe, typeof TableContainerComponent, typeof GenericTableComponent, typeof GenericTableVsComponent, typeof PaginatorComponent, typeof CustomCellDirective, typeof GenColDisplayerComponent, typeof GenFilterDisplayerComponent, typeof DateFilterComponent, typeof FilterComponent, typeof MultiSortDirective, typeof NumberFilterComponent, typeof ColumnBuilderComponent, typeof ArrayColumnComponent, typeof LinkColumnComponent, typeof HeaderMenuComponent, typeof KeyDisplayPipe, typeof FormatFilterValuePipe, typeof FormatFilterTypePipe, typeof ResizeColumnDirective, typeof InFilterComponent, typeof InitializationComponent, typeof InListFilterComponent, typeof SortMenuComponent, typeof FilterChipsComponent, typeof MatSlideToggleTbFilterDirective, typeof MatRadioButtonTbFilterDirective, typeof MatOptionTbFilterDirective, typeof MatCheckboxTbFilterDirective, typeof MatButtonToggleFilterDirective, typeof TableFilterDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective, typeof GroupByListComponent, typeof DateTimeFilterComponent], [typeof i29.CommonModule, typeof MaterialModule, typeof _ngrx_store.StoreFeatureModule, typeof i32.EffectsFeatureModule, typeof i33.FormsModule, typeof i34.RouterModule, typeof i35.LetDirective, typeof i36.DragDropModule, typeof UtilitiesModule, typeof i38.ScrollingModule, typeof i39.TableVirtualScrollModule], [typeof GenericTableComponent, typeof GenericTableVsComponent, typeof PaginatorComponent, typeof TableContainerComponent, typeof CustomCellDirective, typeof GenColDisplayerComponent, typeof GenFilterDisplayerComponent, typeof FilterComponent, typeof MultiSortDirective, typeof ResizeColumnDirective, typeof MatSlideToggleTbFilterDirective, typeof MatRadioButtonTbFilterDirective, typeof MatOptionTbFilterDirective, typeof MatCheckboxTbFilterDirective, typeof MatButtonToggleFilterDirective, typeof TableFilterDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective, typeof GroupByListComponent]>;
1938
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableBuilderModule, [typeof ColumnTotalPipe, typeof TableContainerComponent, typeof GenericTableComponent, typeof GenericTableVsComponent, typeof PaginatorComponent, typeof CustomCellDirective, typeof GenColDisplayerComponent, typeof GenFilterDisplayerComponent, typeof DateFilterComponent, typeof FilterComponent, typeof MultiSortDirective, typeof NumberFilterComponent, typeof ColumnBuilderComponent, typeof ArrayColumnComponent, typeof LinkColumnComponent, typeof HeaderMenuComponent, typeof KeyDisplayPipe, typeof FormatFilterValuePipe, typeof FormatFilterTypePipe, typeof ResizeColumnDirective, typeof InitializationComponent, typeof InListFilterComponent, typeof SortMenuComponent, typeof FilterChipsComponent, typeof MatSlideToggleTbFilterDirective, typeof MatRadioButtonTbFilterDirective, typeof MatOptionTbFilterDirective, typeof MatCheckboxTbFilterDirective, typeof MatButtonToggleFilterDirective, typeof TableFilterDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective, typeof GroupByListComponent, typeof DateTimeFilterComponent, typeof ChipFilterInputComponent], [typeof i29.CommonModule, typeof MaterialModule, typeof _ngrx_store.StoreFeatureModule, typeof i32.EffectsFeatureModule, typeof i33.FormsModule, typeof i34.RouterModule, typeof i35.LetDirective, typeof i36.DragDropModule, typeof UtilitiesModule, typeof i38.ScrollingModule, typeof i39.TableVirtualScrollModule], [typeof GenericTableComponent, typeof GenericTableVsComponent, typeof PaginatorComponent, typeof TableContainerComponent, typeof CustomCellDirective, typeof GenColDisplayerComponent, typeof GenFilterDisplayerComponent, typeof FilterComponent, typeof MultiSortDirective, typeof ResizeColumnDirective, typeof MatSlideToggleTbFilterDirective, typeof MatRadioButtonTbFilterDirective, typeof MatOptionTbFilterDirective, typeof MatCheckboxTbFilterDirective, typeof MatButtonToggleFilterDirective, typeof TableFilterDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective, typeof GroupByListComponent]>;
1934
1939
  static ɵinj: i0.ɵɵInjectorDeclaration<TableBuilderModule>;
1935
1940
  }
1936
1941