@meshmakers/octo-ui 3.3.470 → 3.3.490

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.490",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -4,9 +4,8 @@ import * as _progress_kendo_svg_icons from '@progress/kendo-svg-icons';
4
4
  import { SVGIcon } from '@progress/kendo-svg-icons';
5
5
  import { GridDataResult, CellClickEvent, RowArgs, PageChangeEvent, SelectionEvent } from '@progress/kendo-angular-grid';
6
6
  import { FieldFilterDto, SearchFilterDto, SortDto, AttributeValueTypeDto as AttributeValueTypeDto$1, AttributeItem, CkTypeSelectorItem, FieldFilterOperatorsDto } from '@meshmakers/octo-services';
7
- import { DialogContentBase } from '@progress/kendo-angular-dialog';
8
7
  import { ControlValueAccessor, Validator, FormControl, AbstractControl, ValidationErrors } from '@angular/forms';
9
- import { AutoCompleteComponent } from '@progress/kendo-angular-dropdowns';
8
+ import { AutoCompleteComponent, PopupSettings } from '@progress/kendo-angular-dropdowns';
10
9
  import { DataSourceTyped, ListViewComponent, HierarchyDataSourceBase } from '@meshmakers/shared-ui';
11
10
  import { State } from '@progress/kendo-data-query/dist/npm/state';
12
11
  import { TreeItemDataTyped } from '@meshmakers/shared-services';
@@ -595,7 +594,8 @@ interface CkTypeSelectorDialogData {
595
594
  interface CkTypeSelectorDialogResult {
596
595
  selectedCkType: CkTypeSelectorItem;
597
596
  }
598
- declare class CkTypeSelectorDialogComponent extends DialogContentBase implements OnInit, OnDestroy {
597
+ declare class CkTypeSelectorDialogComponent implements OnInit, OnDestroy {
598
+ private readonly windowRef;
599
599
  private readonly ckTypeSelectorService;
600
600
  private searchSubject;
601
601
  private subscriptions;
@@ -615,7 +615,10 @@ declare class CkTypeSelectorDialogComponent extends DialogContentBase implements
615
615
  selectItemBy: (context: RowArgs) => string;
616
616
  private initialCkModelIds?;
617
617
  derivedFromRtCkTypeId?: string;
618
- constructor();
618
+ private lastClickTime;
619
+ private lastClickRtCkTypeId;
620
+ /** Data passed from the service */
621
+ data?: CkTypeSelectorDialogData;
619
622
  ngOnInit(): void;
620
623
  ngOnDestroy(): void;
621
624
  private loadTypes;
@@ -625,6 +628,7 @@ declare class CkTypeSelectorDialogComponent extends DialogContentBase implements
625
628
  clearFilters(): void;
626
629
  onPageChange(event: PageChangeEvent): void;
627
630
  onSelectionChange(event: SelectionEvent): void;
631
+ onCellClick(event: CellClickEvent): void;
628
632
  onCancel(): void;
629
633
  onConfirm(): void;
630
634
  static ɵfac: i0.ɵɵFactoryDeclaration<CkTypeSelectorDialogComponent, never>;
@@ -636,7 +640,7 @@ interface CkTypeSelectorResult {
636
640
  selectedCkType: CkTypeSelectorItem | null;
637
641
  }
638
642
  declare class CkTypeSelectorDialogService {
639
- private readonly dialogService;
643
+ private readonly windowService;
640
644
  /**
641
645
  * Opens the CkType selector dialog
642
646
  * @param options Dialog options
@@ -682,8 +686,11 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
682
686
  private onChange;
683
687
  private onTouched;
684
688
  protected readonly searchIcon: _progress_kendo_svg_icons.SVGIcon;
689
+ protected popupSettings: PopupSettings;
690
+ private static popupStyleInjected;
685
691
  private readonly ckTypeSelectorService;
686
692
  private readonly dialogService;
693
+ private readonly elementRef;
687
694
  ngOnInit(): void;
688
695
  ngOnDestroy(): void;
689
696
  writeValue(value: CkTypeSelectorItem | null): void;
@@ -699,6 +706,7 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
699
706
  focus(): void;
700
707
  reset(): void;
701
708
  private setupSearch;
709
+ private injectPopupStyles;
702
710
  private selectCkType;
703
711
  openDialog(event?: Event): Promise<void>;
704
712
  static ɵfac: i0.ɵɵFactoryDeclaration<CkTypeSelectorInputComponent, never>;
@@ -724,6 +732,7 @@ interface FieldFilterItem extends FieldFilterDto {
724
732
  }
725
733
  type InputType = 'text' | 'number' | 'boolean' | 'datetime';
726
734
  declare class FieldFilterEditorComponent implements OnChanges {
735
+ private readonly attributeService;
727
736
  protected readonly plusIcon: _progress_kendo_svg_icons.SVGIcon;
728
737
  protected readonly minusIcon: _progress_kendo_svg_icons.SVGIcon;
729
738
  protected readonly trashIcon: _progress_kendo_svg_icons.SVGIcon;
@@ -735,10 +744,21 @@ declare class FieldFilterEditorComponent implements OnChanges {
735
744
  }[];
736
745
  readonly booleanOptions: string[];
737
746
  availableAttributes: AttributeItem[];
747
+ /**
748
+ * Optional CK type ID for self-loading attributes.
749
+ * When set, the component loads available attributes itself and shows
750
+ * navigation property controls (checkbox + max depth).
751
+ * When not set, the component uses the externally provided availableAttributes input.
752
+ */
753
+ ckTypeId?: string;
738
754
  /** Enable variable mode - allows using variables instead of literal values */
739
755
  enableVariables: boolean;
740
756
  /** Available variables for selection when enableVariables is true */
741
757
  availableVariables: FilterVariable[];
758
+ /** Controls for self-loading mode (when ckTypeId is set) */
759
+ includeNavigationProperties: boolean;
760
+ maxDepth: number | null;
761
+ isLoadingAttributes: boolean;
742
762
  private _filters;
743
763
  private nextId;
744
764
  filteredAttributeList: AttributeItem[];
@@ -747,13 +767,16 @@ declare class FieldFilterEditorComponent implements OnChanges {
747
767
  set filters(value: FieldFilterItem[]);
748
768
  filtersChange: EventEmitter<FieldFilterItem[]>;
749
769
  selectedKeys: number[];
750
- ngOnChanges(): void;
770
+ ngOnChanges(changes?: SimpleChanges): void;
751
771
  /**
752
772
  * Detects filters that contain variable references and sets useVariable flag.
753
773
  * This ensures proper display when filters are loaded from saved configuration.
754
774
  */
755
775
  private detectVariableFilters;
756
776
  private buildAttributeTypeMap;
777
+ onNavigationPropertiesChange(): void;
778
+ onMaxDepthChange(value: number | null): void;
779
+ private loadAttributesFromCkType;
757
780
  addFilter(): void;
758
781
  removeFilter(filter: FieldFilterItem): void;
759
782
  removeSelected(): void;
@@ -811,7 +834,7 @@ declare class FieldFilterEditorComponent implements OnChanges {
811
834
  private extractArrayContent;
812
835
  private parseAndCleanArrayValues;
813
836
  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>;
837
+ 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
838
  }
816
839
 
817
840
  interface CopyOption {