ngx-bimplus-components 0.0.160 → 0.0.162
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/assets/images/default/Attachment_18_gray.svg +1 -0
- package/assets/images/default/Attachment_18_maincolor.svg +3 -0
- package/assets/images/default/Attachmentlink_18_gray.svg +7 -0
- package/assets/images/default/Attachmentlink_18_maincolor.svg +7 -0
- package/assets/images/default/Calendar_18.svg +4 -0
- package/assets/images/default/Calendar_18_disabled.svg +1 -0
- package/assets/images/default/Calendar_18_gray.svg +1 -0
- package/assets/images/default/Comments_18_gray.svg +1 -0
- package/assets/images/default/Comments_18_maincolor.svg +4 -0
- package/assets/images/default/Links_18_gray.svg +1 -0
- package/assets/images/default/Links_18_maincolor.svg +4 -0
- package/assets/images/default/Refresh_18_gray.svg +1 -0
- package/assets/images/default/bimplus_WebIcons_Cross_Disabled.svg +1 -0
- package/assets/images/default/ic_models.svg +3 -0
- package/assets/images/default/ic_models_maincolor.svg +3 -0
- package/assets/images/default/icn_grid_attachments.png +0 -0
- package/assets/images/default/icn_grid_hyperlinks.png +0 -0
- package/assets/images/default/progress-spinner.svg +1 -0
- package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.component.mjs +114 -0
- package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.interface.mjs +38 -0
- package/esm2022/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.mjs +95 -0
- package/esm2022/lib/components/bimplus-attachments/services/bimplus-attachments.service.mjs +32 -0
- package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.mjs +40 -5
- package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.mjs +5 -2
- package/esm2022/lib/components/bimplus-comment/IComment.mjs +2 -0
- package/esm2022/lib/components/bimplus-comment/bimplus-comment.component.mjs +118 -0
- package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.mjs +115 -7
- package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.mjs +1 -1
- package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-dialog-config-settings.mjs +1 -1
- package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-input-checkbox/bimplus-input-checkbox.component.mjs +64 -0
- package/esm2022/lib/components/bimplus-input-combobox/bimplus-input-combobox.component.mjs +161 -0
- package/esm2022/lib/components/bimplus-input-date/bimplus-input-date.component.mjs +271 -0
- package/esm2022/lib/components/bimplus-input-number/bimplus-input-number.component.mjs +85 -0
- package/esm2022/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.mjs +92 -0
- package/esm2022/lib/components/bimplus-link-tooltip-message/bimplus-link-tooltip-message.component.mjs +78 -0
- package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.mjs +388 -0
- package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.interface.mjs +3 -0
- package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.service.mjs +104 -0
- package/esm2022/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.mjs +2 -0
- package/esm2022/lib/components/bimplus-object-complex-properties/bimplus-object-complex-properties.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.mjs +6 -3
- package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-object-navigator/object-filter-result/object-filter-result.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.component.mjs +42 -4
- package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.interface.mjs +4 -2
- package/esm2022/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.mjs +77 -0
- package/esm2022/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.mjs +83 -0
- package/esm2022/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.mjs +31 -8
- package/esm2022/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.mjs +34 -8
- package/esm2022/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.mjs +1 -1
- package/esm2022/lib/components/bimplus-status-bar/bimplus-status-bar.component.mjs +35 -0
- package/esm2022/lib/components/bimplus-status-bar/bimplus-status-bar.service.mjs +35 -0
- package/esm2022/lib/components/bimplus-status-bar/statusBar.mjs +2 -0
- package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.mjs +38 -0
- package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.mjs +10 -0
- package/esm2022/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.mjs +89 -0
- package/esm2022/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.mjs +33 -0
- package/esm2022/lib/components/bimplus-textarea/autoResizeTextarea.directive.mjs +83 -0
- package/esm2022/lib/components/bimplus-textarea/bimplus-textarea.component.mjs +128 -0
- package/esm2022/lib/components/links-to-documents/links-to-documents.component.mjs +376 -0
- package/esm2022/lib/components/object-hyperlinks/object-hyperlinks.component.mjs +145 -0
- package/esm2022/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.mjs +36 -0
- package/esm2022/lib/components/object-preview/object-preview.component.mjs +284 -0
- package/esm2022/lib/components/object-preview/object-preview.interface.mjs +2 -0
- package/esm2022/lib/components/object-properties/object-properties.component.mjs +545 -0
- package/esm2022/lib/components/object-properties/object-properties.interface.mjs +2 -0
- package/esm2022/lib/components/object-properties/object-properties.service.mjs +26 -0
- package/esm2022/lib/components/object-properties-group/object-properties-group.component.mjs +129 -0
- package/esm2022/lib/components/object-properties-group/object-property-value/object-property-value.component.mjs +55 -0
- package/esm2022/lib/components/object-properties-header/object-properties-header.component.mjs +48 -6
- package/esm2022/lib/components/object-properties-header/object-properties-header.interface.mjs +1 -1
- package/esm2022/lib/components/resizable-panel/resizable-panel.component.mjs +54 -10
- package/esm2022/lib/pipes/bit-converter.pipe.mjs +46 -0
- package/esm2022/lib/pipes/get-attribute-value-as-string.pipe.mjs +173 -0
- package/esm2022/lib/pipes/get-attribute-value.pipe.mjs +156 -0
- package/esm2022/lib/pipes/round.pipe.mjs +20 -0
- package/esm2022/lib/services/decorators.service.mjs +65 -0
- package/esm2022/lib/utils/objectProperties.mjs +9 -0
- package/esm2022/lib/validators/double-enum.validator.mjs +20 -0
- package/esm2022/lib/validators/double.validator.mjs +23 -0
- package/esm2022/lib/validators/guid-enum.validator.mjs +20 -0
- package/esm2022/lib/validators/guid.validator.mjs +14 -0
- package/esm2022/lib/validators/integer.validator.mjs +23 -0
- package/esm2022/lib/validators/string-combobox.validator.mjs +20 -0
- package/esm2022/lib/validators/string-enum.validator.mjs +20 -0
- package/esm2022/public-api.mjs +22 -1
- package/fesm2022/ngx-bimplus-components.mjs +4618 -80
- package/fesm2022/ngx-bimplus-components.mjs.map +1 -1
- package/lib/components/bimplus-attachments/bimplus-attachments.component.d.ts +39 -0
- package/lib/components/bimplus-attachments/bimplus-attachments.interface.d.ts +33 -0
- package/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.d.ts +30 -0
- package/lib/components/bimplus-attachments/services/bimplus-attachments.service.d.ts +8 -0
- package/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.d.ts +14 -3
- package/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.d.ts +7 -1
- package/lib/components/bimplus-comment/IComment.d.ts +4 -0
- package/lib/components/bimplus-comment/bimplus-comment.component.d.ts +39 -0
- package/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.d.ts +16 -3
- package/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.d.ts +4 -0
- package/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.d.ts +1 -1
- package/lib/components/bimplus-general-overlay-dialog/bimplus-general-dialog-config-settings.d.ts +3 -3
- package/lib/components/bimplus-input-checkbox/bimplus-input-checkbox.component.d.ts +18 -0
- package/lib/components/bimplus-input-combobox/bimplus-input-combobox.component.d.ts +41 -0
- package/lib/components/bimplus-input-date/bimplus-input-date.component.d.ts +46 -0
- package/lib/components/bimplus-input-number/bimplus-input-number.component.d.ts +26 -0
- package/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.d.ts +28 -0
- package/lib/components/bimplus-link-tooltip-message/bimplus-link-tooltip-message.component.d.ts +22 -0
- package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.d.ts +88 -0
- package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.interface.d.ts +10 -0
- package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.service.d.ts +20 -0
- package/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.d.ts +11 -0
- package/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.d.ts +2 -1
- package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.d.ts +12 -12
- package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.d.ts +3 -3
- package/lib/components/bimplus-object-structure/bimplus-object-structure.component.d.ts +5 -1
- package/lib/components/bimplus-object-structure/bimplus-object-structure.interface.d.ts +2 -0
- package/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.d.ts +29 -0
- package/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.d.ts +24 -0
- package/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.d.ts +8 -1
- package/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.d.ts +11 -1
- package/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.d.ts +1 -1
- package/lib/components/bimplus-status-bar/bimplus-status-bar.component.d.ts +14 -0
- package/lib/components/bimplus-status-bar/bimplus-status-bar.service.d.ts +14 -0
- package/lib/components/bimplus-status-bar/statusBar.d.ts +4 -0
- package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.d.ts +16 -0
- package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.d.ts +18 -0
- package/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.d.ts +36 -0
- package/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.d.ts +15 -0
- package/lib/components/bimplus-textarea/autoResizeTextarea.directive.d.ts +24 -0
- package/lib/components/bimplus-textarea/bimplus-textarea.component.d.ts +42 -0
- package/lib/components/links-to-documents/links-to-documents.component.d.ts +69 -0
- package/lib/components/object-hyperlinks/object-hyperlinks.component.d.ts +32 -0
- package/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.d.ts +15 -0
- package/lib/components/object-preview/object-preview.component.d.ts +45 -0
- package/lib/components/object-preview/object-preview.interface.d.ts +5 -0
- package/lib/components/object-properties/object-properties.component.d.ts +79 -0
- package/lib/components/object-properties/object-properties.interface.d.ts +22 -0
- package/lib/components/object-properties/object-properties.service.d.ts +12 -0
- package/lib/components/object-properties-group/object-properties-group.component.d.ts +30 -0
- package/lib/components/object-properties-group/object-property-value/object-property-value.component.d.ts +14 -0
- package/lib/components/object-properties-header/object-properties-header.component.d.ts +13 -4
- package/lib/components/object-properties-header/object-properties-header.interface.d.ts +8 -0
- package/lib/components/resizable-panel/resizable-panel.component.d.ts +12 -3
- package/lib/pipes/bit-converter.pipe.d.ts +17 -0
- package/lib/pipes/get-attribute-value-as-string.pipe.d.ts +35 -0
- package/lib/pipes/get-attribute-value.pipe.d.ts +35 -0
- package/lib/pipes/round.pipe.d.ts +7 -0
- package/lib/services/decorators.service.d.ts +12 -0
- package/lib/utils/objectProperties.d.ts +2 -0
- package/lib/validators/double-enum.validator.d.ts +2 -0
- package/lib/validators/double.validator.d.ts +2 -0
- package/lib/validators/guid-enum.validator.d.ts +2 -0
- package/lib/validators/guid.validator.d.ts +2 -0
- package/lib/validators/integer.validator.d.ts +2 -0
- package/lib/validators/string-combobox.validator.d.ts +2 -0
- package/lib/validators/string-enum.validator.d.ts +2 -0
- package/package.json +14 -4
- package/public-api.d.ts +21 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OnInit, WritableSignal, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { ObjectStructureNode } from '../bimplus-object-structure/bimplus-object-structure.interface';
|
|
5
|
+
import { PreviewObject } from '../object-preview/object-preview.interface';
|
|
6
|
+
import * as WebSdk from 'bimplus-websdk';
|
|
7
|
+
import { ComplexPropertiesNode } from '../bimplus-object-complex-properties/bimplus-object-complex-properties.interface';
|
|
8
|
+
import { ObjectAttributeGroup } from './object-properties.interface';
|
|
9
|
+
import { BimplusButtonRowItem, BimplusButtonClickEvent } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
|
|
10
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
11
|
+
import { ObjectPropertiesService } from './object-properties.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class ObjectPropertiesComponent extends BimplusLocalizedWidgetComponent implements OnInit {
|
|
14
|
+
private readonly formBuilder;
|
|
15
|
+
private readonly cdr;
|
|
16
|
+
private readonly objectPropertiesService;
|
|
17
|
+
protected _objectPropertiesForm: FormGroup<{}>;
|
|
18
|
+
protected _objectPropertiesGroupForm(group_name: string): FormGroup;
|
|
19
|
+
constructor(translateService: TranslateService, formBuilder: FormBuilder, cdr: ChangeDetectorRef, objectPropertiesService: ObjectPropertiesService);
|
|
20
|
+
protected _editMode: WritableSignal<boolean>;
|
|
21
|
+
private _objectStructure;
|
|
22
|
+
get objectStructure(): ObjectStructureNode | null;
|
|
23
|
+
private _complexProperties;
|
|
24
|
+
get complexProperties(): ComplexPropertiesNode | null;
|
|
25
|
+
api: WebSdk.Api | null;
|
|
26
|
+
revision: number | undefined;
|
|
27
|
+
protected _canUpdateObject: WritableSignal<boolean>;
|
|
28
|
+
set canUpdateObject(canUpdateObject: boolean);
|
|
29
|
+
private _rootObjectId;
|
|
30
|
+
set rootObjectId(id: string);
|
|
31
|
+
get rootObjectId(): string;
|
|
32
|
+
private readonly isSaveButtonDisabled$;
|
|
33
|
+
protected readonly visibleNodeSignal: WritableSignal<PreviewObject>;
|
|
34
|
+
protected readonly opaqueNodeSignal: WritableSignal<PreviewObject>;
|
|
35
|
+
private readonly _currentObjectId$;
|
|
36
|
+
private readonly _currentPropertiesObjectId$;
|
|
37
|
+
buttonRowItems: Array<BimplusButtonRowItem>;
|
|
38
|
+
configEditProperties: Array<BimplusButtonRowItem>;
|
|
39
|
+
configEditedProperties: Array<BimplusButtonRowItem>;
|
|
40
|
+
updatedObjectProperties: EventEmitter<{
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
}>;
|
|
43
|
+
_editPropertiesButtonsConfiguration(): void;
|
|
44
|
+
_editedPropertiesButtonsConfiguration(): void;
|
|
45
|
+
ngOnInit(): void;
|
|
46
|
+
subscribeProperties(): void;
|
|
47
|
+
handleObjectStructureNodeSelected(node: ObjectStructureNode): void;
|
|
48
|
+
handleObjectStructureNodeVisible(node: ObjectStructureNode): void;
|
|
49
|
+
handleObjectStructureNodeOpaque(node: ObjectStructureNode): void;
|
|
50
|
+
handleComplexPropertyNodeSelected(node: ComplexPropertiesNode): void;
|
|
51
|
+
private _loadObjectStructure;
|
|
52
|
+
private _createObjectStructure;
|
|
53
|
+
private _loadObjectComplexPropertiesStructure;
|
|
54
|
+
private _createComplexPropertiestructure;
|
|
55
|
+
protected objectAttributeGroups: WritableSignal<ObjectAttributeGroup[]>;
|
|
56
|
+
private _loadObjectProperties;
|
|
57
|
+
private _createObjectProperties;
|
|
58
|
+
private _tooltip;
|
|
59
|
+
private _createAttributeGroupsFromResponse;
|
|
60
|
+
_deleteForm(): void;
|
|
61
|
+
private initialFormValues;
|
|
62
|
+
_createForm(): void;
|
|
63
|
+
private _getPropertyName;
|
|
64
|
+
private _getPropertyType;
|
|
65
|
+
private _getPropertyControl;
|
|
66
|
+
private _convertValueToBoolean;
|
|
67
|
+
private _convertValueToDouble;
|
|
68
|
+
private _hasBeenValueChanged;
|
|
69
|
+
private _getChangedData;
|
|
70
|
+
private _saveObjectProperties;
|
|
71
|
+
private _cancelEditingProperties;
|
|
72
|
+
protected buttonClicked($event: BimplusButtonClickEvent): void;
|
|
73
|
+
hasSetAnyAttribute(objectAttributeGroup: ObjectAttributeGroup): boolean;
|
|
74
|
+
protected saveObjectProperties(data: {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}): void;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPropertiesComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPropertiesComponent, "lib-object-properties", never, { "api": { "alias": "api"; "required": false; }; "revision": { "alias": "revision"; "required": false; }; "canUpdateObject": { "alias": "canUpdateObject"; "required": false; }; "rootObjectId": { "alias": "rootObjectId"; "required": false; }; }, { "updatedObjectProperties": "updatedObjectProperties"; }, never, never, true, never>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ObjectAttribute {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
group: string;
|
|
6
|
+
type: string;
|
|
7
|
+
value: string;
|
|
8
|
+
isChangeable: boolean;
|
|
9
|
+
tooltip: string;
|
|
10
|
+
minValue: string;
|
|
11
|
+
maxValue: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
unit?: string;
|
|
14
|
+
decimal?: number;
|
|
15
|
+
control?: string;
|
|
16
|
+
enumdefinition?: Record<number | string, string> | Array<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface ObjectAttributeGroup {
|
|
19
|
+
name: string;
|
|
20
|
+
attributes: ObjectAttribute[];
|
|
21
|
+
expanded: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as WebSdk from 'bimplus-websdk';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ObjectPropertiesService {
|
|
5
|
+
_model: BehaviorSubject<WebSdk.ObjectData | null>;
|
|
6
|
+
constructor();
|
|
7
|
+
get modelValue(): WebSdk.ObjectData | null;
|
|
8
|
+
get model$(): BehaviorSubject<WebSdk.ObjectData | null>;
|
|
9
|
+
setModel(model: WebSdk.ObjectData): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPropertiesService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectPropertiesService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ObjectAttributeGroup, ObjectAttribute } from '../object-properties/object-properties.interface';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ObjectPropertiesGroupComponent {
|
|
5
|
+
protected _editMode: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
set editMode(edit_mode: boolean);
|
|
7
|
+
objectPropertiesForm: FormGroup | undefined;
|
|
8
|
+
protected _existFormControlForAttibute(attribId: string): boolean;
|
|
9
|
+
protected _isValueValid(attribId: string): boolean;
|
|
10
|
+
protected _canUpdateObject: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
set canUpdateObject(canUpdateObject: boolean);
|
|
12
|
+
protected _attributesGroup: import("@angular/core").WritableSignal<ObjectAttributeGroup>;
|
|
13
|
+
set attributesGroup(value: ObjectAttributeGroup | undefined);
|
|
14
|
+
constructor();
|
|
15
|
+
protected isValueBlank(attrib: ObjectAttribute): boolean;
|
|
16
|
+
protected _isBoleanTextBox(attrib: ObjectAttribute): boolean;
|
|
17
|
+
protected _isBoleanCheckBox(attrib: ObjectAttribute): boolean;
|
|
18
|
+
protected _isTextBox(attrib: ObjectAttribute): boolean;
|
|
19
|
+
protected _isDoubleTextBox(attrib: ObjectAttribute): boolean;
|
|
20
|
+
protected _isIntegerTextBox(attrib: ObjectAttribute): boolean;
|
|
21
|
+
protected _isGuidTextBox(attrib: ObjectAttribute): boolean;
|
|
22
|
+
protected _isDoubleEnumeration(attrib: ObjectAttribute): boolean;
|
|
23
|
+
protected _isGuidEnumeration(attrib: ObjectAttribute): boolean;
|
|
24
|
+
protected _isIntegerEnumeration(attrib: ObjectAttribute): boolean;
|
|
25
|
+
protected _isStringEnumeration(attrib: ObjectAttribute): boolean;
|
|
26
|
+
protected _isStringCombobox(attrib: ObjectAttribute): boolean;
|
|
27
|
+
protected _isDatetime(attrib: ObjectAttribute): boolean;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPropertiesGroupComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPropertiesGroupComponent, "lib-object-properties-group", never, { "editMode": { "alias": "editMode"; "required": false; }; "objectPropertiesForm": { "alias": "objectPropertiesForm"; "required": false; }; "canUpdateObject": { "alias": "canUpdateObject"; "required": false; }; "attributesGroup": { "alias": "attributesGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ObjectPropertyValueComponent {
|
|
3
|
+
protected _tooltip: import("@angular/core").WritableSignal<string>;
|
|
4
|
+
protected _value: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
protected _valueIsUrl: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
protected _decoratedHyperlink: import("@angular/core").WritableSignal<string>;
|
|
7
|
+
set value(value: string);
|
|
8
|
+
set tooltip(tooltip: string);
|
|
9
|
+
private _isUrl;
|
|
10
|
+
private _decorateHyperlink;
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPropertyValueComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPropertyValueComponent, "lib-object-property-value", never, { "value": { "alias": "value"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { SelectedObject } from './object-properties-header.interface';
|
|
1
|
+
import { EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
|
+
import { CreateLinkData, SelectedObject } from './object-properties-header.interface';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ObjectPropertiesHeaderComponent extends BimplusLocalizedWidgetComponent {
|
|
6
|
+
export declare class ObjectPropertiesHeaderComponent extends BimplusLocalizedWidgetComponent implements OnChanges {
|
|
7
7
|
constructor(translateService: TranslateService);
|
|
8
|
+
selectedObject: EventEmitter<SelectedObject>;
|
|
8
9
|
closePropertiesPanel: EventEmitter<any>;
|
|
9
10
|
selectedObjects: Array<SelectedObject>;
|
|
10
11
|
_activeObject: SelectedObject | null;
|
|
12
|
+
openLinkMessage: boolean;
|
|
13
|
+
onOpenLink?: () => void;
|
|
11
14
|
set activeObject(value: SelectedObject | null);
|
|
12
15
|
get activeObject(): SelectedObject | null;
|
|
16
|
+
private _linkData;
|
|
17
|
+
get linkData(): CreateLinkData;
|
|
18
|
+
set linkData(value: CreateLinkData);
|
|
13
19
|
_closePropertiesPanel(event: Event): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
openLink(): void;
|
|
22
|
+
closeLink: () => void;
|
|
14
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPropertiesHeaderComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPropertiesHeaderComponent, "lib-object-properties-header", never, { "selectedObjects": { "alias": "selectedObjects"; "required": false; }; }, { "closePropertiesPanel": "closePropertiesPanel"; }, never, never, true, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPropertiesHeaderComponent, "lib-object-properties-header", never, { "selectedObjects": { "alias": "selectedObjects"; "required": false; }; "onOpenLink": { "alias": "onOpenLink"; "required": false; }; "linkData": { "alias": "linkData"; "required": false; }; }, { "selectedObject": "selectedObject"; "closePropertiesPanel": "closePropertiesPanel"; }, never, never, true, never>;
|
|
16
25
|
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ResizablePanelComponent {
|
|
3
|
-
position:
|
|
3
|
+
export declare class ResizablePanelComponent implements OnInit, OnDestroy {
|
|
4
|
+
position: 'left' | 'right';
|
|
4
5
|
hasDraggableHandle: boolean;
|
|
5
6
|
hasDraggableBorder: boolean;
|
|
7
|
+
minWidth: number | (() => number) | undefined;
|
|
8
|
+
maxWidth: number | (() => number) | undefined;
|
|
9
|
+
defaultWidth: number;
|
|
10
|
+
canResize: (currentWidth: number, deltaX: number) => boolean;
|
|
6
11
|
drawerWidth: number;
|
|
7
12
|
drawerExpanded: boolean;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
applyWidthConstraints(): void;
|
|
16
|
+
handleWindowResize: () => void;
|
|
8
17
|
_toggleDrawer(): void;
|
|
9
18
|
_onResizeWidth(event: number): void;
|
|
10
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizablePanelComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelComponent, "lib-resizable-panel", never, { "position": { "alias": "position"; "required": false; }; "hasDraggableHandle": { "alias": "hasDraggableHandle"; "required": false; }; "hasDraggableBorder": { "alias": "hasDraggableBorder"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelComponent, "lib-resizable-panel", never, { "position": { "alias": "position"; "required": false; }; "hasDraggableHandle": { "alias": "hasDraggableHandle"; "required": false; }; "hasDraggableBorder": { "alias": "hasDraggableBorder"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "defaultWidth": { "alias": "defaultWidth"; "required": false; }; "canResize": { "alias": "canResize"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
21
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DecimalPipe } from '@angular/common';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const BitConverterSize: {
|
|
5
|
+
readonly KB: "kB";
|
|
6
|
+
readonly GB: "gib";
|
|
7
|
+
readonly MB: "mb";
|
|
8
|
+
};
|
|
9
|
+
export declare class BitConverterPipe extends DecimalPipe implements PipeTransform {
|
|
10
|
+
transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
|
|
11
|
+
transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
|
|
12
|
+
transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string): string | null;
|
|
13
|
+
private getSizeFromBites;
|
|
14
|
+
private isNumber;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BitConverterPipe, never>;
|
|
16
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BitConverterPipe, "bitConverter", true>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ObjectAttribute } from '../components/object-properties/object-properties.interface';
|
|
3
|
+
import 'moment/min/locales';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetAttributeValueAsString implements PipeTransform {
|
|
6
|
+
constructor();
|
|
7
|
+
_transformDoubleToString(value: ObjectAttribute): string;
|
|
8
|
+
_transformDoubleEnumerationToString(value: ObjectAttribute): string;
|
|
9
|
+
_transformDatetimeToString(value: ObjectAttribute): string;
|
|
10
|
+
_transformGUIDToString(value: ObjectAttribute): string;
|
|
11
|
+
_transformEnumerationToString(value: ObjectAttribute): string;
|
|
12
|
+
_transformGUIDEnumerationToString(value: ObjectAttribute): string;
|
|
13
|
+
_transformIntToString(value: ObjectAttribute): string;
|
|
14
|
+
_transformIntEnumerationToString(value: ObjectAttribute): string;
|
|
15
|
+
_transformString(value: ObjectAttribute): string;
|
|
16
|
+
_transformStringEnumeration(value: ObjectAttribute): string;
|
|
17
|
+
_transformStringCombobox(value: ObjectAttribute): string;
|
|
18
|
+
_transformBooleanToString(value: ObjectAttribute): string;
|
|
19
|
+
transform(value: ObjectAttribute): string;
|
|
20
|
+
private isEmpty;
|
|
21
|
+
private isDouble;
|
|
22
|
+
private isDoubleEnumeration;
|
|
23
|
+
private isDatetime;
|
|
24
|
+
private isGUID;
|
|
25
|
+
private isGUIDEnumeration;
|
|
26
|
+
private isInt;
|
|
27
|
+
private isIntEnumeration;
|
|
28
|
+
private isString;
|
|
29
|
+
private isStringEnumeration;
|
|
30
|
+
private isStringCombobox;
|
|
31
|
+
private isBooleanCheckbox;
|
|
32
|
+
private isBooleanTextbox;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetAttributeValueAsString, never>;
|
|
34
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetAttributeValueAsString, "getAttributeValueAsString", true>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ObjectAttribute } from '../components/object-properties/object-properties.interface';
|
|
3
|
+
import 'moment/min/locales';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetAttributeValue implements PipeTransform {
|
|
6
|
+
constructor();
|
|
7
|
+
_transformDouble(value: ObjectAttribute): string;
|
|
8
|
+
_transformDoubleEnumeration(value: ObjectAttribute): string;
|
|
9
|
+
_transformDatetime(value: ObjectAttribute): string;
|
|
10
|
+
_transformGUID(value: ObjectAttribute): string;
|
|
11
|
+
_transformGUIDEnumeration(value: ObjectAttribute): string;
|
|
12
|
+
_transformInt(value: ObjectAttribute): string;
|
|
13
|
+
_transformIntEnumeration(value: ObjectAttribute): string;
|
|
14
|
+
_transformString(value: ObjectAttribute): string;
|
|
15
|
+
_transformStringEnumeration(value: ObjectAttribute): string;
|
|
16
|
+
_transformStringCombobox(value: ObjectAttribute): string;
|
|
17
|
+
_transformBooleanToBoolean(value: ObjectAttribute): boolean;
|
|
18
|
+
_transformBooleanToString(value: ObjectAttribute): string;
|
|
19
|
+
transform(value: ObjectAttribute): string | boolean;
|
|
20
|
+
private isEmpty;
|
|
21
|
+
private isDouble;
|
|
22
|
+
private isDoubleEnumeration;
|
|
23
|
+
private isDatetime;
|
|
24
|
+
private isGUID;
|
|
25
|
+
private isGUIDEnumeration;
|
|
26
|
+
private isInt;
|
|
27
|
+
private isIntEnumeration;
|
|
28
|
+
private isString;
|
|
29
|
+
private isStringEnumeration;
|
|
30
|
+
private isStringCombobox;
|
|
31
|
+
private isBooleanCheckbox;
|
|
32
|
+
private isBooleanTextbox;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetAttributeValue, never>;
|
|
34
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetAttributeValue, "getAttributeValue", true>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RoundPipe implements PipeTransform {
|
|
4
|
+
transform(value: string, decimal: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoundPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RoundPipe, "round", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as WebSdk from 'bimplus-websdk';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DecoratorsService {
|
|
4
|
+
constructor();
|
|
5
|
+
fmt(string: string, ...formats: unknown[]): string;
|
|
6
|
+
/**--------------------------------------------------------------------------
|
|
7
|
+
* decorate link
|
|
8
|
+
--------------------------------------------------------------------------*/
|
|
9
|
+
decorateLink(api: WebSdk.Api, link: WebSdk.AttachmentLink, objectIds: [string]): WebSdk.AttachmentLink;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DecoratorsService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DecoratorsService>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-bimplus-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.162",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "",
|
|
6
6
|
"description": "bim+ angular components library",
|
|
@@ -24,19 +24,29 @@
|
|
|
24
24
|
"@angular/common": "18.2.12",
|
|
25
25
|
"@angular/core": "18.2.12",
|
|
26
26
|
"@angular/material": "18.2.13",
|
|
27
|
+
"@angular/material-moment-adapter": "^19.0.4",
|
|
27
28
|
"@ng-select/ng-select": "^13.9.1",
|
|
28
29
|
"@ngx-translate/core": "^16.0.3",
|
|
29
30
|
"@ngx-translate/http-loader": "^16.0.0",
|
|
30
|
-
"
|
|
31
|
+
"@types/validator": "^13.12.2",
|
|
32
|
+
"moment": "^2.30.1",
|
|
33
|
+
"simplebar": "^6.2.7",
|
|
34
|
+
"validator": "^13.12.0"
|
|
31
35
|
},
|
|
32
36
|
"dependencies": {
|
|
33
37
|
"@angular/cdk": "18.2.13",
|
|
34
38
|
"@angular/material": "18.2.13",
|
|
39
|
+
"@angular/material-moment-adapter": "^19.0.4",
|
|
35
40
|
"@ng-select/ng-select": "^13.9.1",
|
|
36
41
|
"@ngx-translate/http-loader": "^16.0.0",
|
|
37
|
-
"
|
|
42
|
+
"@types/validator": "^13.12.2",
|
|
43
|
+
"bimplus-renderer": "^1.6.117",
|
|
44
|
+
"bimplus-webclient": "^0.1.55",
|
|
45
|
+
"bimplus-websdk": "^1.0.39",
|
|
46
|
+
"moment": "^2.30.1",
|
|
38
47
|
"simplebar": "^6.2.7",
|
|
39
|
-
"tslib": "^2.8.1"
|
|
48
|
+
"tslib": "^2.8.1",
|
|
49
|
+
"validator": "^13.12.0"
|
|
40
50
|
},
|
|
41
51
|
"sideEffects": false,
|
|
42
52
|
"module": "fesm2022/ngx-bimplus-components.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -45,6 +45,27 @@ export * from './lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-d
|
|
|
45
45
|
export * from './lib/components/resizable-panel/resizable-panel.component';
|
|
46
46
|
export * from './lib/components/object-properties-header/object-properties-header.component';
|
|
47
47
|
export * from './lib/components/object-properties-header/object-properties-header.interface';
|
|
48
|
+
export * from './lib/components/object-properties/object-properties.component';
|
|
49
|
+
export * from './lib/components/links-to-documents/links-to-documents.component';
|
|
50
|
+
export * from './lib/components/object-hyperlinks/object-hyperlinks.component';
|
|
48
51
|
export * from './lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.component';
|
|
49
52
|
export * from './lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component';
|
|
53
|
+
export * from './lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component';
|
|
54
|
+
export * from './lib/components/bimplus-input-text-field/bimplus-input-text-field.component';
|
|
50
55
|
export * from './lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service';
|
|
56
|
+
export * from './lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component';
|
|
57
|
+
export * from './lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service';
|
|
58
|
+
export * from './lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component';
|
|
59
|
+
export * from './lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface';
|
|
60
|
+
export * from './lib/components/bimplus-attachments/bimplus-attachments.component';
|
|
61
|
+
export * from './lib/components/bimplus-attachments/services/bimplus-attachments.service';
|
|
62
|
+
export * from './lib/components/bimplus-attachments/bimplus-attachments.interface';
|
|
63
|
+
export * from './lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component';
|
|
64
|
+
export * from './lib/components/bimplus-object-comments-list/bimplus-object-comments-list.service';
|
|
65
|
+
export * from './lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component';
|
|
66
|
+
export * from './lib/components/bimplus-comment/bimplus-comment.component';
|
|
67
|
+
export * from './lib/components/bimplus-textarea/bimplus-textarea.component';
|
|
68
|
+
export * from './lib/components/bimplus-status-bar/bimplus-status-bar.component';
|
|
69
|
+
export * from './lib/components/bimplus-link-tooltip-message/bimplus-link-tooltip-message.component';
|
|
70
|
+
export * from './lib/components/bimplus-status-bar/bimplus-status-bar.service';
|
|
71
|
+
export * from './lib/components/object-properties/object-properties.service';
|