@meshmakers/octo-ui 3.3.470 → 3.3.480

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/octo-ui",
3
- "version": "3.3.470",
3
+ "version": "3.3.480",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -6,7 +6,7 @@ import { GridDataResult, CellClickEvent, RowArgs, PageChangeEvent, SelectionEven
6
6
  import { FieldFilterDto, SearchFilterDto, SortDto, AttributeValueTypeDto as AttributeValueTypeDto$1, AttributeItem, CkTypeSelectorItem, FieldFilterOperatorsDto } from '@meshmakers/octo-services';
7
7
  import { DialogContentBase } from '@progress/kendo-angular-dialog';
8
8
  import { ControlValueAccessor, Validator, FormControl, AbstractControl, ValidationErrors } from '@angular/forms';
9
- import { AutoCompleteComponent } from '@progress/kendo-angular-dropdowns';
9
+ import { AutoCompleteComponent, PopupSettings } from '@progress/kendo-angular-dropdowns';
10
10
  import { DataSourceTyped, ListViewComponent, HierarchyDataSourceBase } from '@meshmakers/shared-ui';
11
11
  import { State } from '@progress/kendo-data-query/dist/npm/state';
12
12
  import { TreeItemDataTyped } from '@meshmakers/shared-services';
@@ -682,8 +682,11 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
682
682
  private onChange;
683
683
  private onTouched;
684
684
  protected readonly searchIcon: _progress_kendo_svg_icons.SVGIcon;
685
+ protected popupSettings: PopupSettings;
686
+ private static popupStyleInjected;
685
687
  private readonly ckTypeSelectorService;
686
688
  private readonly dialogService;
689
+ private readonly elementRef;
687
690
  ngOnInit(): void;
688
691
  ngOnDestroy(): void;
689
692
  writeValue(value: CkTypeSelectorItem | null): void;
@@ -699,6 +702,7 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
699
702
  focus(): void;
700
703
  reset(): void;
701
704
  private setupSearch;
705
+ private injectPopupStyles;
702
706
  private selectCkType;
703
707
  openDialog(event?: Event): Promise<void>;
704
708
  static ɵfac: i0.ɵɵFactoryDeclaration<CkTypeSelectorInputComponent, never>;
@@ -724,6 +728,7 @@ interface FieldFilterItem extends FieldFilterDto {
724
728
  }
725
729
  type InputType = 'text' | 'number' | 'boolean' | 'datetime';
726
730
  declare class FieldFilterEditorComponent implements OnChanges {
731
+ private readonly attributeService;
727
732
  protected readonly plusIcon: _progress_kendo_svg_icons.SVGIcon;
728
733
  protected readonly minusIcon: _progress_kendo_svg_icons.SVGIcon;
729
734
  protected readonly trashIcon: _progress_kendo_svg_icons.SVGIcon;
@@ -735,10 +740,21 @@ declare class FieldFilterEditorComponent implements OnChanges {
735
740
  }[];
736
741
  readonly booleanOptions: string[];
737
742
  availableAttributes: AttributeItem[];
743
+ /**
744
+ * Optional CK type ID for self-loading attributes.
745
+ * When set, the component loads available attributes itself and shows
746
+ * navigation property controls (checkbox + max depth).
747
+ * When not set, the component uses the externally provided availableAttributes input.
748
+ */
749
+ ckTypeId?: string;
738
750
  /** Enable variable mode - allows using variables instead of literal values */
739
751
  enableVariables: boolean;
740
752
  /** Available variables for selection when enableVariables is true */
741
753
  availableVariables: FilterVariable[];
754
+ /** Controls for self-loading mode (when ckTypeId is set) */
755
+ includeNavigationProperties: boolean;
756
+ maxDepth: number | null;
757
+ isLoadingAttributes: boolean;
742
758
  private _filters;
743
759
  private nextId;
744
760
  filteredAttributeList: AttributeItem[];
@@ -747,13 +763,16 @@ declare class FieldFilterEditorComponent implements OnChanges {
747
763
  set filters(value: FieldFilterItem[]);
748
764
  filtersChange: EventEmitter<FieldFilterItem[]>;
749
765
  selectedKeys: number[];
750
- ngOnChanges(): void;
766
+ ngOnChanges(changes?: SimpleChanges): void;
751
767
  /**
752
768
  * Detects filters that contain variable references and sets useVariable flag.
753
769
  * This ensures proper display when filters are loaded from saved configuration.
754
770
  */
755
771
  private detectVariableFilters;
756
772
  private buildAttributeTypeMap;
773
+ onNavigationPropertiesChange(): void;
774
+ onMaxDepthChange(value: number | null): void;
775
+ private loadAttributesFromCkType;
757
776
  addFilter(): void;
758
777
  removeFilter(filter: FieldFilterItem): void;
759
778
  removeSelected(): void;
@@ -811,7 +830,7 @@ declare class FieldFilterEditorComponent implements OnChanges {
811
830
  private extractArrayContent;
812
831
  private parseAndCleanArrayValues;
813
832
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldFilterEditorComponent, never>;
814
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldFilterEditorComponent, "mm-field-filter-editor", never, { "availableAttributes": { "alias": "availableAttributes"; "required": false; }; "enableVariables": { "alias": "enableVariables"; "required": false; }; "availableVariables": { "alias": "availableVariables"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, { "filtersChange": "filtersChange"; }, never, never, true, never>;
833
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldFilterEditorComponent, "mm-field-filter-editor", never, { "availableAttributes": { "alias": "availableAttributes"; "required": false; }; "ckTypeId": { "alias": "ckTypeId"; "required": false; }; "enableVariables": { "alias": "enableVariables"; "required": false; }; "availableVariables": { "alias": "availableVariables"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, { "filtersChange": "filtersChange"; }, never, never, true, never>;
815
834
  }
816
835
 
817
836
  interface CopyOption {