@meshmakers/octo-ui 3.3.560 → 3.3.580
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/fesm2022/meshmakers-octo-ui.mjs +1132 -757
- package/fesm2022/meshmakers-octo-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/meshmakers-octo-ui.d.ts +104 -10
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { OnInit, OnChanges, EventEmitter, SimpleChanges, OnDestroy, EnvironmentP
|
|
|
3
3
|
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
|
-
import { FieldFilterDto, SearchFilterDto, SortDto, AttributeValueTypeDto as AttributeValueTypeDto$1, AttributeItem, CkTypeSelectorItem, FieldFilterOperatorsDto } from '@meshmakers/octo-services';
|
|
6
|
+
import { FieldFilterDto, SearchFilterDto, SortDto, AttributeValueTypeDto as AttributeValueTypeDto$1, AttributeItem, CkTypeSelectorItem as CkTypeSelectorItem$1, FieldFilterOperatorsDto, RuntimeEntityItem, RuntimeEntitySelectDataSource, RuntimeEntityDialogDataSource } from '@meshmakers/octo-services';
|
|
7
7
|
import { ControlValueAccessor, Validator, FormControl, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
8
8
|
import { AutoCompleteComponent, PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
9
9
|
import { DataSourceTyped, ListViewComponent, HierarchyDataSourceBase } from '@meshmakers/shared-ui';
|
|
@@ -487,6 +487,7 @@ interface AttributeSelectorResult {
|
|
|
487
487
|
}
|
|
488
488
|
declare class AttributeSelectorDialogService {
|
|
489
489
|
private readonly windowService;
|
|
490
|
+
private readonly windowStateService;
|
|
490
491
|
/**
|
|
491
492
|
* Opens the attribute selector dialog
|
|
492
493
|
* @param rtCkTypeId The RtCkType ID to fetch attributes for
|
|
@@ -572,6 +573,7 @@ interface AttributeSortSelectorResult {
|
|
|
572
573
|
}
|
|
573
574
|
declare class AttributeSortSelectorDialogService {
|
|
574
575
|
private readonly windowService;
|
|
576
|
+
private readonly windowStateService;
|
|
575
577
|
/**
|
|
576
578
|
* Opens the attribute sort selector dialog
|
|
577
579
|
* @param ckTypeId The CkType ID to fetch attributes for
|
|
@@ -592,7 +594,7 @@ interface CkTypeSelectorDialogData {
|
|
|
592
594
|
derivedFromRtCkTypeId?: string;
|
|
593
595
|
}
|
|
594
596
|
interface CkTypeSelectorDialogResult {
|
|
595
|
-
selectedCkType: CkTypeSelectorItem;
|
|
597
|
+
selectedCkType: CkTypeSelectorItem$1;
|
|
596
598
|
}
|
|
597
599
|
declare class CkTypeSelectorDialogComponent implements OnInit, OnDestroy {
|
|
598
600
|
private readonly windowRef;
|
|
@@ -611,7 +613,7 @@ declare class CkTypeSelectorDialogComponent implements OnInit, OnDestroy {
|
|
|
611
613
|
pageSize: number;
|
|
612
614
|
skip: number;
|
|
613
615
|
selectedKeys: string[];
|
|
614
|
-
selectedType: CkTypeSelectorItem | null;
|
|
616
|
+
selectedType: CkTypeSelectorItem$1 | null;
|
|
615
617
|
selectItemBy: (context: RowArgs) => string;
|
|
616
618
|
private initialCkModelIds?;
|
|
617
619
|
derivedFromRtCkTypeId?: string;
|
|
@@ -637,10 +639,11 @@ declare class CkTypeSelectorDialogComponent implements OnInit, OnDestroy {
|
|
|
637
639
|
|
|
638
640
|
interface CkTypeSelectorResult {
|
|
639
641
|
confirmed: boolean;
|
|
640
|
-
selectedCkType: CkTypeSelectorItem | null;
|
|
642
|
+
selectedCkType: CkTypeSelectorItem$1 | null;
|
|
641
643
|
}
|
|
642
644
|
declare class CkTypeSelectorDialogService {
|
|
643
645
|
private readonly windowService;
|
|
646
|
+
private readonly windowStateService;
|
|
644
647
|
/**
|
|
645
648
|
* Opens the CkType selector dialog
|
|
646
649
|
* @param options Dialog options
|
|
@@ -674,11 +677,11 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
|
|
|
674
677
|
private _required;
|
|
675
678
|
get required(): boolean;
|
|
676
679
|
set required(value: boolean);
|
|
677
|
-
ckTypeSelected: EventEmitter<CkTypeSelectorItem>;
|
|
680
|
+
ckTypeSelected: EventEmitter<CkTypeSelectorItem$1>;
|
|
678
681
|
ckTypeCleared: EventEmitter<void>;
|
|
679
682
|
searchFormControl: FormControl<any>;
|
|
680
683
|
filteredTypes: string[];
|
|
681
|
-
selectedCkType: CkTypeSelectorItem | null;
|
|
684
|
+
selectedCkType: CkTypeSelectorItem$1 | null;
|
|
682
685
|
isLoading: boolean;
|
|
683
686
|
private typeMap;
|
|
684
687
|
private searchSubject;
|
|
@@ -693,8 +696,8 @@ declare class CkTypeSelectorInputComponent implements OnInit, OnDestroy, Control
|
|
|
693
696
|
private readonly elementRef;
|
|
694
697
|
ngOnInit(): void;
|
|
695
698
|
ngOnDestroy(): void;
|
|
696
|
-
writeValue(value: CkTypeSelectorItem | null): void;
|
|
697
|
-
registerOnChange(fn: (value: CkTypeSelectorItem | null) => void): void;
|
|
699
|
+
writeValue(value: CkTypeSelectorItem$1 | null): void;
|
|
700
|
+
registerOnChange(fn: (value: CkTypeSelectorItem$1 | null) => void): void;
|
|
698
701
|
registerOnTouched(fn: () => void): void;
|
|
699
702
|
setDisabledState(isDisabled: boolean): void;
|
|
700
703
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
@@ -895,11 +898,102 @@ declare class OctoLoaderComponent {
|
|
|
895
898
|
static ɵcmp: i0.ɵɵComponentDeclaration<OctoLoaderComponent, "mm-octo-loader", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
896
899
|
}
|
|
897
900
|
|
|
901
|
+
/**
|
|
902
|
+
* Input data for the RuntimeEntityVariableDialog.
|
|
903
|
+
*/
|
|
904
|
+
interface RuntimeEntityVariableDialogData {
|
|
905
|
+
/** Pre-populated CK type ID for editing */
|
|
906
|
+
entityCkTypeId?: string;
|
|
907
|
+
/** Pre-populated entity runtime ID for editing */
|
|
908
|
+
entityRtId?: string;
|
|
909
|
+
/** Pre-populated entity display name for editing */
|
|
910
|
+
entityDisplayName?: string;
|
|
911
|
+
/** Pre-selected attribute mappings for editing */
|
|
912
|
+
selectedAttributes?: RuntimeEntityVariableMapping[];
|
|
913
|
+
/** Existing variable names (for duplicate detection) */
|
|
914
|
+
existingVariableNames?: string[];
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* A mapping from a variable name to an entity attribute path.
|
|
918
|
+
*/
|
|
919
|
+
interface RuntimeEntityVariableMapping {
|
|
920
|
+
name: string;
|
|
921
|
+
attributePath: string;
|
|
922
|
+
attributeValueType?: string;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Result returned when the dialog is confirmed.
|
|
926
|
+
*/
|
|
927
|
+
interface RuntimeEntityVariableDialogResult {
|
|
928
|
+
entityCkTypeId: string;
|
|
929
|
+
entityRtId: string;
|
|
930
|
+
entityDisplayName: string;
|
|
931
|
+
variables: RuntimeEntityVariableMapping[];
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
interface CkTypeSelectorItem {
|
|
935
|
+
fullName: string;
|
|
936
|
+
rtCkTypeId: string;
|
|
937
|
+
baseTypeFullName?: string;
|
|
938
|
+
baseTypeRtCkTypeId?: string;
|
|
939
|
+
isAbstract: boolean;
|
|
940
|
+
isFinal: boolean;
|
|
941
|
+
description?: string;
|
|
942
|
+
}
|
|
943
|
+
declare class RuntimeEntityVariableDialogComponent {
|
|
944
|
+
private readonly windowRef;
|
|
945
|
+
private readonly getEntitiesByCkTypeGQL;
|
|
946
|
+
private readonly attributeSelectorDialogService;
|
|
947
|
+
protected readonly pencilIcon: _progress_kendo_svg_icons.SVGIcon;
|
|
948
|
+
protected readonly trashIcon: _progress_kendo_svg_icons.SVGIcon;
|
|
949
|
+
/** Data passed to the dialog (set by service) */
|
|
950
|
+
data: RuntimeEntityVariableDialogData;
|
|
951
|
+
readonly selectedCkType: i0.WritableSignal<CkTypeSelectorItem | null>;
|
|
952
|
+
readonly selectedEntity: i0.WritableSignal<RuntimeEntityItem | null>;
|
|
953
|
+
readonly variableMappings: i0.WritableSignal<RuntimeEntityVariableMapping[]>;
|
|
954
|
+
readonly entityDataSource: i0.Signal<RuntimeEntitySelectDataSource | null>;
|
|
955
|
+
readonly entityDialogDataSource: i0.Signal<RuntimeEntityDialogDataSource | null>;
|
|
956
|
+
private readonly VALID_NAME_REGEX;
|
|
957
|
+
onCkTypeSelected(ckType: CkTypeSelectorItem): void;
|
|
958
|
+
onCkTypeCleared(): void;
|
|
959
|
+
onEntitySelected(entity: RuntimeEntityItem): void;
|
|
960
|
+
onEntityCleared(): void;
|
|
961
|
+
openAttributeSelector(): Promise<void>;
|
|
962
|
+
onNameChange(index: number, name: string): void;
|
|
963
|
+
removeMapping(index: number): void;
|
|
964
|
+
getNameError(name: string, index: number): string | null;
|
|
965
|
+
isValid(): boolean;
|
|
966
|
+
onOk(): void;
|
|
967
|
+
onCancel(): void;
|
|
968
|
+
private addAttributeMappings;
|
|
969
|
+
private attributePathToVariableName;
|
|
970
|
+
private isDuplicateName;
|
|
971
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEntityVariableDialogComponent, never>;
|
|
972
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RuntimeEntityVariableDialogComponent, "mm-runtime-entity-variable-dialog", never, {}, {}, never, never, true, never>;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
interface RuntimeEntityVariableResult {
|
|
976
|
+
confirmed: boolean;
|
|
977
|
+
result?: RuntimeEntityVariableDialogResult;
|
|
978
|
+
}
|
|
979
|
+
declare class RuntimeEntityVariableDialogService {
|
|
980
|
+
private readonly windowService;
|
|
981
|
+
private readonly windowStateService;
|
|
982
|
+
/**
|
|
983
|
+
* Opens the runtime entity variable dialog.
|
|
984
|
+
* @param data Optional pre-populated data for editing
|
|
985
|
+
* @returns Promise with confirmation status and dialog result
|
|
986
|
+
*/
|
|
987
|
+
openRuntimeEntityVariableDialog(data?: RuntimeEntityVariableDialogData): Promise<RuntimeEntityVariableResult>;
|
|
988
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEntityVariableDialogService, never>;
|
|
989
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeEntityVariableDialogService>;
|
|
990
|
+
}
|
|
991
|
+
|
|
898
992
|
/**
|
|
899
993
|
* Provides OctoUi services using modern Angular provider functions.
|
|
900
994
|
* This is the recommended approach for library providers.
|
|
901
995
|
*/
|
|
902
996
|
declare function provideOctoUi(): EnvironmentProviders;
|
|
903
997
|
|
|
904
|
-
export { AttributeSelectorDialogComponent, AttributeSelectorDialogService, AttributeSortSelectorDialogComponent, AttributeSortSelectorDialogService, AttributeValueTypeDto, CkTypeSelectorDialogComponent, CkTypeSelectorDialogService, CkTypeSelectorInputComponent, DefaultPropertyCategory, EntityIdInfoComponent, FieldFilterEditorComponent, OctoGraphQlDataSource, OctoGraphQlHierarchyDataSource, OctoLoaderComponent, PropertyConverterService, PropertyDisplayMode, PropertyGridComponent, PropertyValueDisplayComponent, provideOctoUi };
|
|
905
|
-
export type { AttributeSelectorDialogData, AttributeSelectorDialogResult, AttributeSelectorResult, AttributeSortItem, AttributeSortSelectorDialogData, AttributeSortSelectorDialogResult, AttributeSortSelectorResult, BinaryDownloadEvent, CkTypeSelectorDialogData, CkTypeSelectorDialogResult, CkTypeSelectorResult, FieldFilterItem, FilterVariable, PropertyChangeEvent, PropertyGridConfig, PropertyGridItem, SortOption };
|
|
998
|
+
export { AttributeSelectorDialogComponent, AttributeSelectorDialogService, AttributeSortSelectorDialogComponent, AttributeSortSelectorDialogService, AttributeValueTypeDto, CkTypeSelectorDialogComponent, CkTypeSelectorDialogService, CkTypeSelectorInputComponent, DefaultPropertyCategory, EntityIdInfoComponent, FieldFilterEditorComponent, OctoGraphQlDataSource, OctoGraphQlHierarchyDataSource, OctoLoaderComponent, PropertyConverterService, PropertyDisplayMode, PropertyGridComponent, PropertyValueDisplayComponent, RuntimeEntityVariableDialogComponent, RuntimeEntityVariableDialogService, provideOctoUi };
|
|
999
|
+
export type { AttributeSelectorDialogData, AttributeSelectorDialogResult, AttributeSelectorResult, AttributeSortItem, AttributeSortSelectorDialogData, AttributeSortSelectorDialogResult, AttributeSortSelectorResult, BinaryDownloadEvent, CkTypeSelectorDialogData, CkTypeSelectorDialogResult, CkTypeSelectorResult, FieldFilterItem, FilterVariable, PropertyChangeEvent, PropertyGridConfig, PropertyGridItem, RuntimeEntityVariableDialogData, RuntimeEntityVariableDialogResult, RuntimeEntityVariableMapping, RuntimeEntityVariableResult, SortOption };
|