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.
Files changed (162) hide show
  1. package/assets/images/default/Attachment_18_gray.svg +1 -0
  2. package/assets/images/default/Attachment_18_maincolor.svg +3 -0
  3. package/assets/images/default/Attachmentlink_18_gray.svg +7 -0
  4. package/assets/images/default/Attachmentlink_18_maincolor.svg +7 -0
  5. package/assets/images/default/Calendar_18.svg +4 -0
  6. package/assets/images/default/Calendar_18_disabled.svg +1 -0
  7. package/assets/images/default/Calendar_18_gray.svg +1 -0
  8. package/assets/images/default/Comments_18_gray.svg +1 -0
  9. package/assets/images/default/Comments_18_maincolor.svg +4 -0
  10. package/assets/images/default/Links_18_gray.svg +1 -0
  11. package/assets/images/default/Links_18_maincolor.svg +4 -0
  12. package/assets/images/default/Refresh_18_gray.svg +1 -0
  13. package/assets/images/default/bimplus_WebIcons_Cross_Disabled.svg +1 -0
  14. package/assets/images/default/ic_models.svg +3 -0
  15. package/assets/images/default/ic_models_maincolor.svg +3 -0
  16. package/assets/images/default/icn_grid_attachments.png +0 -0
  17. package/assets/images/default/icn_grid_hyperlinks.png +0 -0
  18. package/assets/images/default/progress-spinner.svg +1 -0
  19. package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.component.mjs +114 -0
  20. package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.interface.mjs +38 -0
  21. package/esm2022/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.mjs +95 -0
  22. package/esm2022/lib/components/bimplus-attachments/services/bimplus-attachments.service.mjs +32 -0
  23. package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.mjs +40 -5
  24. package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.mjs +5 -2
  25. package/esm2022/lib/components/bimplus-comment/IComment.mjs +2 -0
  26. package/esm2022/lib/components/bimplus-comment/bimplus-comment.component.mjs +118 -0
  27. package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.component.mjs +5 -5
  28. package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.component.mjs +3 -3
  29. package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.mjs +115 -7
  30. package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.mjs +1 -1
  31. package/esm2022/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.mjs +1 -1
  32. package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-dialog-config-settings.mjs +1 -1
  33. package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.component.mjs +3 -3
  34. package/esm2022/lib/components/bimplus-input-checkbox/bimplus-input-checkbox.component.mjs +64 -0
  35. package/esm2022/lib/components/bimplus-input-combobox/bimplus-input-combobox.component.mjs +161 -0
  36. package/esm2022/lib/components/bimplus-input-date/bimplus-input-date.component.mjs +271 -0
  37. package/esm2022/lib/components/bimplus-input-number/bimplus-input-number.component.mjs +85 -0
  38. package/esm2022/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.mjs +92 -0
  39. package/esm2022/lib/components/bimplus-link-tooltip-message/bimplus-link-tooltip-message.component.mjs +78 -0
  40. package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.mjs +388 -0
  41. package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.interface.mjs +3 -0
  42. package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.service.mjs +104 -0
  43. package/esm2022/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.mjs +2 -0
  44. package/esm2022/lib/components/bimplus-object-complex-properties/bimplus-object-complex-properties.component.mjs +3 -3
  45. package/esm2022/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.mjs +6 -3
  46. package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.mjs +3 -3
  47. package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.mjs +1 -1
  48. package/esm2022/lib/components/bimplus-object-navigator/object-filter-result/object-filter-result.component.mjs +3 -3
  49. package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.component.mjs +42 -4
  50. package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.interface.mjs +4 -2
  51. package/esm2022/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.mjs +77 -0
  52. package/esm2022/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.mjs +83 -0
  53. package/esm2022/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.mjs +31 -8
  54. package/esm2022/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.mjs +34 -8
  55. package/esm2022/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.mjs +1 -1
  56. package/esm2022/lib/components/bimplus-status-bar/bimplus-status-bar.component.mjs +35 -0
  57. package/esm2022/lib/components/bimplus-status-bar/bimplus-status-bar.service.mjs +35 -0
  58. package/esm2022/lib/components/bimplus-status-bar/statusBar.mjs +2 -0
  59. package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.mjs +38 -0
  60. package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.mjs +10 -0
  61. package/esm2022/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.mjs +89 -0
  62. package/esm2022/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.mjs +33 -0
  63. package/esm2022/lib/components/bimplus-textarea/autoResizeTextarea.directive.mjs +83 -0
  64. package/esm2022/lib/components/bimplus-textarea/bimplus-textarea.component.mjs +128 -0
  65. package/esm2022/lib/components/links-to-documents/links-to-documents.component.mjs +376 -0
  66. package/esm2022/lib/components/object-hyperlinks/object-hyperlinks.component.mjs +145 -0
  67. package/esm2022/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.mjs +36 -0
  68. package/esm2022/lib/components/object-preview/object-preview.component.mjs +284 -0
  69. package/esm2022/lib/components/object-preview/object-preview.interface.mjs +2 -0
  70. package/esm2022/lib/components/object-properties/object-properties.component.mjs +545 -0
  71. package/esm2022/lib/components/object-properties/object-properties.interface.mjs +2 -0
  72. package/esm2022/lib/components/object-properties/object-properties.service.mjs +26 -0
  73. package/esm2022/lib/components/object-properties-group/object-properties-group.component.mjs +129 -0
  74. package/esm2022/lib/components/object-properties-group/object-property-value/object-property-value.component.mjs +55 -0
  75. package/esm2022/lib/components/object-properties-header/object-properties-header.component.mjs +48 -6
  76. package/esm2022/lib/components/object-properties-header/object-properties-header.interface.mjs +1 -1
  77. package/esm2022/lib/components/resizable-panel/resizable-panel.component.mjs +54 -10
  78. package/esm2022/lib/pipes/bit-converter.pipe.mjs +46 -0
  79. package/esm2022/lib/pipes/get-attribute-value-as-string.pipe.mjs +173 -0
  80. package/esm2022/lib/pipes/get-attribute-value.pipe.mjs +156 -0
  81. package/esm2022/lib/pipes/round.pipe.mjs +20 -0
  82. package/esm2022/lib/services/decorators.service.mjs +65 -0
  83. package/esm2022/lib/utils/objectProperties.mjs +9 -0
  84. package/esm2022/lib/validators/double-enum.validator.mjs +20 -0
  85. package/esm2022/lib/validators/double.validator.mjs +23 -0
  86. package/esm2022/lib/validators/guid-enum.validator.mjs +20 -0
  87. package/esm2022/lib/validators/guid.validator.mjs +14 -0
  88. package/esm2022/lib/validators/integer.validator.mjs +23 -0
  89. package/esm2022/lib/validators/string-combobox.validator.mjs +20 -0
  90. package/esm2022/lib/validators/string-enum.validator.mjs +20 -0
  91. package/esm2022/public-api.mjs +22 -1
  92. package/fesm2022/ngx-bimplus-components.mjs +4618 -80
  93. package/fesm2022/ngx-bimplus-components.mjs.map +1 -1
  94. package/lib/components/bimplus-attachments/bimplus-attachments.component.d.ts +39 -0
  95. package/lib/components/bimplus-attachments/bimplus-attachments.interface.d.ts +33 -0
  96. package/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.d.ts +30 -0
  97. package/lib/components/bimplus-attachments/services/bimplus-attachments.service.d.ts +8 -0
  98. package/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.d.ts +14 -3
  99. package/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.d.ts +7 -1
  100. package/lib/components/bimplus-comment/IComment.d.ts +4 -0
  101. package/lib/components/bimplus-comment/bimplus-comment.component.d.ts +39 -0
  102. package/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.d.ts +16 -3
  103. package/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.d.ts +4 -0
  104. package/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.d.ts +1 -1
  105. package/lib/components/bimplus-general-overlay-dialog/bimplus-general-dialog-config-settings.d.ts +3 -3
  106. package/lib/components/bimplus-input-checkbox/bimplus-input-checkbox.component.d.ts +18 -0
  107. package/lib/components/bimplus-input-combobox/bimplus-input-combobox.component.d.ts +41 -0
  108. package/lib/components/bimplus-input-date/bimplus-input-date.component.d.ts +46 -0
  109. package/lib/components/bimplus-input-number/bimplus-input-number.component.d.ts +26 -0
  110. package/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.d.ts +28 -0
  111. package/lib/components/bimplus-link-tooltip-message/bimplus-link-tooltip-message.component.d.ts +22 -0
  112. package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.d.ts +88 -0
  113. package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.interface.d.ts +10 -0
  114. package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.service.d.ts +20 -0
  115. package/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.d.ts +11 -0
  116. package/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.d.ts +2 -1
  117. package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.d.ts +12 -12
  118. package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.d.ts +3 -3
  119. package/lib/components/bimplus-object-structure/bimplus-object-structure.component.d.ts +5 -1
  120. package/lib/components/bimplus-object-structure/bimplus-object-structure.interface.d.ts +2 -0
  121. package/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.d.ts +29 -0
  122. package/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.d.ts +24 -0
  123. package/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.d.ts +8 -1
  124. package/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.d.ts +11 -1
  125. package/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.d.ts +1 -1
  126. package/lib/components/bimplus-status-bar/bimplus-status-bar.component.d.ts +14 -0
  127. package/lib/components/bimplus-status-bar/bimplus-status-bar.service.d.ts +14 -0
  128. package/lib/components/bimplus-status-bar/statusBar.d.ts +4 -0
  129. package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.d.ts +16 -0
  130. package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.d.ts +18 -0
  131. package/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.d.ts +36 -0
  132. package/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.d.ts +15 -0
  133. package/lib/components/bimplus-textarea/autoResizeTextarea.directive.d.ts +24 -0
  134. package/lib/components/bimplus-textarea/bimplus-textarea.component.d.ts +42 -0
  135. package/lib/components/links-to-documents/links-to-documents.component.d.ts +69 -0
  136. package/lib/components/object-hyperlinks/object-hyperlinks.component.d.ts +32 -0
  137. package/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.d.ts +15 -0
  138. package/lib/components/object-preview/object-preview.component.d.ts +45 -0
  139. package/lib/components/object-preview/object-preview.interface.d.ts +5 -0
  140. package/lib/components/object-properties/object-properties.component.d.ts +79 -0
  141. package/lib/components/object-properties/object-properties.interface.d.ts +22 -0
  142. package/lib/components/object-properties/object-properties.service.d.ts +12 -0
  143. package/lib/components/object-properties-group/object-properties-group.component.d.ts +30 -0
  144. package/lib/components/object-properties-group/object-property-value/object-property-value.component.d.ts +14 -0
  145. package/lib/components/object-properties-header/object-properties-header.component.d.ts +13 -4
  146. package/lib/components/object-properties-header/object-properties-header.interface.d.ts +8 -0
  147. package/lib/components/resizable-panel/resizable-panel.component.d.ts +12 -3
  148. package/lib/pipes/bit-converter.pipe.d.ts +17 -0
  149. package/lib/pipes/get-attribute-value-as-string.pipe.d.ts +35 -0
  150. package/lib/pipes/get-attribute-value.pipe.d.ts +35 -0
  151. package/lib/pipes/round.pipe.d.ts +7 -0
  152. package/lib/services/decorators.service.d.ts +12 -0
  153. package/lib/utils/objectProperties.d.ts +2 -0
  154. package/lib/validators/double-enum.validator.d.ts +2 -0
  155. package/lib/validators/double.validator.d.ts +2 -0
  156. package/lib/validators/guid-enum.validator.d.ts +2 -0
  157. package/lib/validators/guid.validator.d.ts +2 -0
  158. package/lib/validators/integer.validator.d.ts +2 -0
  159. package/lib/validators/string-combobox.validator.d.ts +2 -0
  160. package/lib/validators/string-enum.validator.d.ts +2 -0
  161. package/package.json +14 -4
  162. package/public-api.d.ts +21 -0
@@ -0,0 +1,39 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
3
+ import { BimplusButtonRowItem } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
4
+ import { Attachment } from './bimplus-attachments.interface';
5
+ import * as WebSdk from 'bimplus-websdk';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BimplusAttachmentsComponent extends BimplusLocalizedWidgetComponent implements AfterViewInit, OnDestroy {
8
+ api: WebSdk.Api | null;
9
+ /** Attribute for attachments which were saved to server. */
10
+ attachments: Attachment[];
11
+ closeIconTemplate?: TemplateRef<unknown>;
12
+ /** Attribute to set if should button display or no. */
13
+ listOnly: boolean;
14
+ attachmentListRef: ElementRef<HTMLElement>;
15
+ fileInput: ElementRef<HTMLInputElement>;
16
+ deleteAttachment: EventEmitter<Attachment>;
17
+ addAttachment: EventEmitter<File>;
18
+ getAttachment: EventEmitter<Attachment>;
19
+ private resizeObserver;
20
+ /** Configuration token. */
21
+ protected readonly config: import("./bimplus-attachments.interface").BimplusAttachmentsConfig | null;
22
+ /** Attachments buttons. */
23
+ protected readonly buttons: BimplusButtonRowItem[];
24
+ /** Width size of file name line. */
25
+ protected readonly attachmentListWidth: import("@angular/core").WritableSignal<number | undefined>;
26
+ /**
27
+ * Will open window to select File.
28
+ * @return void
29
+ * @public
30
+ */
31
+ open(): void;
32
+ ngAfterViewInit(): void;
33
+ ngOnDestroy(): void;
34
+ protected onFileChanged(files: File[] | Event, inputElement?: HTMLInputElement): void;
35
+ private createResizeObserver;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentsComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusAttachmentsComponent, "lib-bimplus-attachments", never, { "api": { "alias": "api"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "closeIconTemplate": { "alias": "closeIconTemplate"; "required": false; }; "listOnly": { "alias": "listOnly"; "required": false; }; }, { "deleteAttachment": "deleteAttachment"; "addAttachment": "addAttachment"; "getAttachment": "getAttachment"; }, never, never, true, never>;
38
+ static ngAcceptInputType_listOnly: unknown;
39
+ }
@@ -0,0 +1,33 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { BimplusButtonRowItem } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
3
+ export type BimplusAttachmentsConfig = {
4
+ buttons?: BimplusButtonRowItem[];
5
+ hideDeleteAttachmentButton?: boolean;
6
+ showNoAttachmentsFound?: boolean;
7
+ hideAttachmentSize?: boolean;
8
+ };
9
+ export declare const BIMPLUS_ATTACHMENTS_CONFIG: InjectionToken<BimplusAttachmentsConfig>;
10
+ export interface IAttachment {
11
+ id: string;
12
+ fileName: string;
13
+ size: number | undefined;
14
+ file?: File;
15
+ }
16
+ export declare class Attachment implements Partial<IAttachment> {
17
+ id: string;
18
+ fileName: string;
19
+ size: number | undefined;
20
+ file?: File;
21
+ constructor(data: Partial<IAttachment>);
22
+ }
23
+ type Builder = typeof AttachmentBuilder;
24
+ export declare abstract class AttachmentBuilder {
25
+ private static attachment;
26
+ static create(value: Attachment): Builder;
27
+ static setId(id: string): Builder;
28
+ static setFileName(name: string): Builder;
29
+ static setSize(size: number): Builder;
30
+ static setFile(file: File): Builder;
31
+ static build(): Attachment;
32
+ }
33
+ export {};
@@ -0,0 +1,30 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { Attachment } from '../../bimplus-attachments.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BimplusAttachmentItemComponent implements AfterViewInit, OnDestroy {
5
+ closeIconTemplate?: TemplateRef<unknown>;
6
+ attachmentSizeRef?: ElementRef<HTMLElement>;
7
+ attachmentNameRef: ElementRef<HTMLElement>;
8
+ attachment: Attachment;
9
+ set parentWidth(value: number | undefined);
10
+ deleteAttachment: EventEmitter<Attachment>;
11
+ getAttachment: EventEmitter<Attachment>;
12
+ get type(): string;
13
+ private intersectionObserver?;
14
+ /** Parent element width. */
15
+ private readonly parentWidthSignal;
16
+ /** Attachment size text width. */
17
+ private readonly attachmentSizeWidth;
18
+ /** Wheter name is fully visible or not based on parent width. */
19
+ protected readonly nameIsFullyVisible: import("@angular/core").WritableSignal<boolean>;
20
+ protected readonly config: import("../../bimplus-attachments.interface").BimplusAttachmentsConfig | null;
21
+ /** Attribute to indicate if show/hide size of File. */
22
+ protected readonly hideSize: boolean;
23
+ /** Width size of file name line. */
24
+ protected readonly nameInfoLineWidth: import("@angular/core").Signal<number>;
25
+ ngAfterViewInit(): void;
26
+ ngOnDestroy(): void;
27
+ private createIntersectionObserver;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentItemComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusAttachmentItemComponent, "lib-bimplus-attachment-item", never, { "closeIconTemplate": { "alias": "closeIconTemplate"; "required": false; }; "attachment": { "alias": "attachment"; "required": true; }; "parentWidth": { "alias": "parentWidth"; "required": false; }; }, { "deleteAttachment": "deleteAttachment"; "getAttachment": "getAttachment"; }, never, never, true, never>;
30
+ }
@@ -0,0 +1,8 @@
1
+ import { Attachment } from '../bimplus-attachments.interface';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BimplusAttachmentsService {
4
+ getAttachment(value: Attachment | File): Attachment;
5
+ download(href: string, fileName: string): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentsService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BimplusAttachmentsService>;
8
+ }
@@ -1,13 +1,24 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
3
+ import { BimplusButtonRowItem, BimplusButtonClickEvent } from './bimplus-buttons-row.interface';
1
4
  import { EventEmitter } from '@angular/core';
2
- import { BimplusLocalizedWidgetComponent } from "./../bimplus-localized-widget/bimplus-localized-widget.component";
3
- import { BimplusButtonRowItem, BimplusButtonClickEvent } from "./bimplus-buttons-row.interface";
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class BimplusButtonsRowComponent extends BimplusLocalizedWidgetComponent {
7
+ protected readonly BimplusButtonType: {
8
+ readonly FILE: "file";
9
+ readonly TEXT: "text";
10
+ };
6
11
  /** TODO remove @Input once signal inputs release from developer preview. */
7
12
  set itemsValue(value: Array<BimplusButtonRowItem>);
13
+ isMultiple: boolean;
8
14
  protected readonly items: import("@angular/core").WritableSignal<BimplusButtonRowItem[]>;
15
+ protected _canUpdateObject: import("@angular/core").WritableSignal<boolean>;
16
+ set canUpdateObject(canUpdateObject: boolean);
17
+ fileChanged: EventEmitter<File[]>;
9
18
  buttonClicked: EventEmitter<BimplusButtonClickEvent>;
19
+ protected onChange(event: Event, inputElement: HTMLInputElement): void;
10
20
  protected _buttonClicked(item: BimplusButtonRowItem): void;
21
+ protected isObservable(value: Observable<boolean> | boolean): value is Observable<boolean>;
11
22
  static ɵfac: i0.ɵɵFactoryDeclaration<BimplusButtonsRowComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<BimplusButtonsRowComponent, "lib-bimplus-buttons-row", never, { "itemsValue": { "alias": "items"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusButtonsRowComponent, "lib-bimplus-buttons-row", never, { "itemsValue": { "alias": "items"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; }; "canUpdateObject": { "alias": "canUpdateObject"; "required": false; }; }, { "fileChanged": "fileChanged"; "buttonClicked": "buttonClicked"; }, never, never, true, never>;
13
24
  }
@@ -1,13 +1,19 @@
1
+ import { Observable } from "rxjs";
1
2
  export interface BimplusButtonRowItem {
2
3
  id: string;
3
4
  iconClass?: string;
4
5
  icon?: string;
5
6
  title?: string;
6
7
  tooltip?: string;
7
- disabled?: boolean;
8
+ disabled?: boolean | Observable<boolean>;
8
9
  buttonStyle?: 'primary' | 'secondary';
9
10
  buttonType?: 'text' | 'icon' | 'combined';
11
+ type?: typeof BimplusButtonType['FILE' | 'TEXT'];
10
12
  }
11
13
  export interface BimplusButtonClickEvent {
12
14
  id: string;
13
15
  }
16
+ export declare const BimplusButtonType: {
17
+ readonly FILE: "file";
18
+ readonly TEXT: "text";
19
+ };
@@ -0,0 +1,4 @@
1
+ export interface CommentOutputData {
2
+ action: string;
3
+ data: unknown;
4
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import WebSdk from "bimplus-websdk";
3
+ import { Attachment } from '../bimplus-attachments/bimplus-attachments.interface';
4
+ import { CommentOutputData } from './IComment';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BimplusCommentComponent {
7
+ outputActionCommentEvent: EventEmitter<CommentOutputData>;
8
+ getAttachment: EventEmitter<Attachment>;
9
+ private _message;
10
+ api: WebSdk.Api | null;
11
+ /** Attachments links to particular comment. */
12
+ attachmentLinkItems: WebSdk.AttachmentLink[];
13
+ set message(value: string | undefined);
14
+ get message(): string | undefined;
15
+ private _date;
16
+ set date(value: string);
17
+ get date(): string;
18
+ private _action;
19
+ set action(value: string);
20
+ get action(): string;
21
+ private _commentId;
22
+ set commentId(value: string);
23
+ get commentId(): string;
24
+ private _isActUserAuthor;
25
+ set isActUserAuthor(value: boolean);
26
+ get isActUserAuthor(): boolean;
27
+ private _displayname;
28
+ set displayname(value: string);
29
+ get displayname(): string;
30
+ hyperlinks: WebSdk.Hyperlink[] | undefined;
31
+ /** Attachments related to particular comment. */
32
+ attachments: WebSdk.Attachment[];
33
+ emitAction(data: CommentOutputData): void;
34
+ close(): void;
35
+ onKeyPress(event: KeyboardEvent): void;
36
+ formatTime(date: string): string;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusCommentComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusCommentComponent, "lib-bimplus-comment", never, { "api": { "alias": "api"; "required": false; }; "attachmentLinkItems": { "alias": "attachmentLinkItems"; "required": false; }; "message": { "alias": "message"; "required": false; }; "date": { "alias": "date"; "required": false; }; "action": { "alias": "action"; "required": false; }; "commentId": { "alias": "commentId"; "required": false; }; "isActUserAuthor": { "alias": "isActUserAuthor"; "required": false; }; "displayname": { "alias": "displayname"; "required": false; }; "hyperlinks": { "alias": "hyperlinks"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; }, { "outputActionCommentEvent": "outputActionCommentEvent"; "getAttachment": "getAttachment"; }, never, never, true, never>;
39
+ }
@@ -4,7 +4,7 @@ import { FlatTreeControl } from '@angular/cdk/tree';
4
4
  import { TreeNode, FlatNode, FlatTreeContextMenus } from './bimplus-flat-tree.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BimplusFlatTreeComponent implements OnInit, OnChanges {
7
- private el;
7
+ private readonly el;
8
8
  treeDataStringified: string | null;
9
9
  /** TODO remove @Input once signal inputs release from developer preview. */
10
10
  set treeTitleValue(value: string);
@@ -20,12 +20,16 @@ export declare class BimplusFlatTreeComponent implements OnInit, OnChanges {
20
20
  dataTestPrefix: string;
21
21
  contextMenus: FlatTreeContextMenus | null | undefined;
22
22
  constructor(el: ElementRef);
23
+ hasCheckBox1: boolean;
24
+ hasCheckBox2: boolean;
23
25
  get treeData(): Array<TreeNode>;
24
26
  set treeData(data: Array<TreeNode>);
25
27
  /** TODO remove @Input once signal inputs release from developer preview. */
26
28
  set customNodeTemplateValue(value: TemplateRef<unknown> | null);
27
29
  protected readonly customNodeTemplate: import("@angular/core").WritableSignal<TemplateRef<unknown> | null>;
28
30
  selectedNodes: EventEmitter<FlatNode[]>;
31
+ checked1Nodes: EventEmitter<FlatNode[]>;
32
+ checked2Nodes: EventEmitter<FlatNode[]>;
29
33
  private _selectionList;
30
34
  ngOnInit(): void;
31
35
  expandTree(): void;
@@ -47,7 +51,7 @@ export declare class BimplusFlatTreeComponent implements OnInit, OnChanges {
47
51
  protected _treeControl: FlatTreeControl<FlatNode, FlatNode>;
48
52
  protected _treeFlattener: MatTreeFlattener<TreeNode, FlatNode, FlatNode>;
49
53
  protected _dataSource: MatTreeFlatDataSource<TreeNode, FlatNode, FlatNode>;
50
- protected _isExpendable: (_: number, node: FlatNode) => boolean;
54
+ protected _isExpandable: (_: number, node: FlatNode) => boolean;
51
55
  protected _isCustomNodeType(node: FlatNode): boolean;
52
56
  protected _hasChildren(node: FlatNode): boolean;
53
57
  protected _descendantsAllSelected(node: FlatNode): boolean;
@@ -56,8 +60,15 @@ export declare class BimplusFlatTreeComponent implements OnInit, OnChanges {
56
60
  private _updateParentSelections;
57
61
  protected _toggleNode(event: Event, node: FlatNode): void;
58
62
  protected _isSelected(node: FlatNode): boolean;
63
+ protected _toggleCheckBox1(event: Event, node: FlatNode): void;
64
+ protected _toggleCheckBox2(event: Event, node: FlatNode): void;
65
+ checkUndetermined(node: FlatNode, checkbox: number): void;
66
+ protected _isUndetermined1(node: FlatNode): boolean;
67
+ protected _isUndetermined2(node: FlatNode): boolean;
68
+ protected _isChecked1(node: FlatNode): boolean;
69
+ protected _isChecked2(node: FlatNode): boolean;
59
70
  static ɵfac: i0.ɵɵFactoryDeclaration<BimplusFlatTreeComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<BimplusFlatTreeComponent, "lib-bimplus-flat-tree", never, { "treeDataStringified": { "alias": "treeDataStringified"; "required": false; }; "treeTitleValue": { "alias": "treeTitle"; "required": false; }; "paddingIndent": { "alias": "paddingIndent"; "required": false; }; "multiSelect": { "alias": "multiSelect"; "required": false; }; "oneLevelMultiSelect": { "alias": "oneLevelMultiSelect"; "required": false; }; "showFoldersIcons": { "alias": "showFoldersIcons"; "required": false; }; "showObjectsIcons": { "alias": "showObjectsIcons"; "required": false; }; "enableSelect": { "alias": "enableSelect"; "required": false; }; "enableParentHighlighting": { "alias": "enableParentHighlighting"; "required": false; }; "enableDragAndDrop": { "alias": "enableDragAndDrop"; "required": false; }; "dataTestPrefix": { "alias": "dataTestPrefix"; "required": false; }; "contextMenus": { "alias": "contextMenus"; "required": false; }; "treeData": { "alias": "treeData"; "required": false; }; "customNodeTemplateValue": { "alias": "customNodeTemplate"; "required": false; }; }, { "selectedNodes": "selectedNodes"; }, never, never, true, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusFlatTreeComponent, "lib-bimplus-flat-tree", never, { "treeDataStringified": { "alias": "treeDataStringified"; "required": false; }; "treeTitleValue": { "alias": "treeTitle"; "required": false; }; "paddingIndent": { "alias": "paddingIndent"; "required": false; }; "multiSelect": { "alias": "multiSelect"; "required": false; }; "oneLevelMultiSelect": { "alias": "oneLevelMultiSelect"; "required": false; }; "showFoldersIcons": { "alias": "showFoldersIcons"; "required": false; }; "showObjectsIcons": { "alias": "showObjectsIcons"; "required": false; }; "enableSelect": { "alias": "enableSelect"; "required": false; }; "enableParentHighlighting": { "alias": "enableParentHighlighting"; "required": false; }; "enableDragAndDrop": { "alias": "enableDragAndDrop"; "required": false; }; "dataTestPrefix": { "alias": "dataTestPrefix"; "required": false; }; "contextMenus": { "alias": "contextMenus"; "required": false; }; "hasCheckBox1": { "alias": "hasCheckBox1"; "required": false; }; "hasCheckBox2": { "alias": "hasCheckBox2"; "required": false; }; "treeData": { "alias": "treeData"; "required": false; }; "customNodeTemplateValue": { "alias": "customNodeTemplate"; "required": false; }; }, { "selectedNodes": "selectedNodes"; "checked1Nodes": "checked1Nodes"; "checked2Nodes": "checked2Nodes"; }, never, never, true, never>;
61
72
  static ngAcceptInputType_multiSelect: unknown;
62
73
  static ngAcceptInputType_oneLevelMultiSelect: unknown;
63
74
  static ngAcceptInputType_showFoldersIcons: unknown;
@@ -65,4 +76,6 @@ export declare class BimplusFlatTreeComponent implements OnInit, OnChanges {
65
76
  static ngAcceptInputType_enableSelect: unknown;
66
77
  static ngAcceptInputType_enableParentHighlighting: unknown;
67
78
  static ngAcceptInputType_enableDragAndDrop: unknown;
79
+ static ngAcceptInputType_hasCheckBox1: unknown;
80
+ static ngAcceptInputType_hasCheckBox2: unknown;
68
81
  }
@@ -14,6 +14,10 @@ export interface FlatNode {
14
14
  id: string;
15
15
  parent?: string;
16
16
  nodeType?: string;
17
+ isChecked1: boolean;
18
+ isChecked2: boolean;
19
+ isUndetermined1: boolean;
20
+ isUndetermined2: boolean;
17
21
  }
18
22
  export interface FlatTreeContextMenus {
19
23
  objectContextMenuitems?: Array<BimplusContextMenuItem>;
@@ -4,7 +4,7 @@ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bim
4
4
  import { LayoutManagerService } from '../../services/layout-manager.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BimplusFloatingBarHeaderLogoComponent extends BimplusLocalizedWidgetComponent implements OnInit {
7
- private layoutManagerService;
7
+ private readonly layoutManagerService;
8
8
  constructor(translateService: TranslateService, layoutManagerService: LayoutManagerService);
9
9
  icon: string;
10
10
  isCollapsed: boolean;
@@ -1,8 +1,8 @@
1
1
  type DialogPosition = 'middle' | 'unset';
2
2
  export interface IDialogOptions {
3
- width: string;
4
- height: string;
5
- position: DialogPosition;
3
+ width?: string;
4
+ height?: string;
5
+ position?: DialogPosition;
6
6
  positionOptions?: DialogPositionOptions;
7
7
  overlayClickEnabled?: boolean;
8
8
  overlayVisibilityEnabled?: boolean;
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare class BimplusInputCheckboxComponent implements ControlValueAccessor {
5
+ enterKeyPressed: EventEmitter<void>;
6
+ value: boolean;
7
+ isDisabled: boolean;
8
+ onChange: (value: boolean) => void;
9
+ onTouched: () => void;
10
+ onCheckboxChange(event: Event): void;
11
+ writeValue(value: boolean): void;
12
+ registerOnChange(fn: (value: boolean) => void): void;
13
+ registerOnTouched(fn: () => void): void;
14
+ setDisabledState(isDisabled: boolean): void;
15
+ toggleAttributeValue(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputCheckboxComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputCheckboxComponent, "lib-bimplus-input-checkbox", never, {}, { "enterKeyPressed": "enterKeyPressed"; }, never, never, true, never>;
18
+ }
@@ -0,0 +1,41 @@
1
+ import { EventEmitter, ElementRef, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ interface EnumDefinition {
6
+ id: string;
7
+ name: string;
8
+ }
9
+ export declare class BimplusInputComboboxComponent implements ControlValueAccessor, OnInit {
10
+ inputElement: ElementRef;
11
+ placeholder: string;
12
+ enterKeyPressed: EventEmitter<void>;
13
+ protected _validValue: import("@angular/core").WritableSignal<boolean>;
14
+ set validValue(valid_value: boolean);
15
+ private _type;
16
+ protected _enumdefinition: Array<EnumDefinition>;
17
+ set enumdefinition(enum_definition: Record<number | string, string> | undefined | Array<string>);
18
+ private _setActiveEnumValue;
19
+ _setActiveArrayValue(): void;
20
+ private _selectedValue;
21
+ set selectedValue(value: string | null);
22
+ ngOnInit(): void;
23
+ set activeEnum(value: EnumDefinition | null);
24
+ get activeEnum(): EnumDefinition | null;
25
+ activeEnumSubject$: BehaviorSubject<EnumDefinition | null>;
26
+ value: string;
27
+ isDisabled: boolean;
28
+ onChange: (value: string) => void;
29
+ onTouched: () => void;
30
+ writeValue(value: string): void;
31
+ registerOnChange(fn: (value: string) => void): void;
32
+ registerOnTouched(fn: () => void): void;
33
+ setDisabledState(isDisabled: boolean): void;
34
+ handleInput(event: Event): void;
35
+ handleBlur(): void;
36
+ protected handleKeyDown(event: KeyboardEvent): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputComboboxComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputComboboxComponent, "lib-bimplus-input-combobox", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "validValue": { "alias": "validValue"; "required": false; }; "enumdefinition": { "alias": "enumdefinition"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; }, { "enterKeyPressed": "enterKeyPressed"; }, never, never, true, never>;
39
+ static ngAcceptInputType_validValue: unknown;
40
+ }
41
+ export {};
@@ -0,0 +1,46 @@
1
+ import { OnInit, EventEmitter, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import { MatDatepickerInputEvent } from '@angular/material/datepicker';
4
+ import * as i0 from "@angular/core";
5
+ export declare const MY_DATE_FORMATS: {
6
+ parse: {
7
+ dateInput: string;
8
+ };
9
+ display: {
10
+ dateInput: string;
11
+ monthYearLabel: string;
12
+ dateA11yLabel: string;
13
+ monthYearA11yLabel: string;
14
+ };
15
+ };
16
+ export declare class BimplusInputDateComponent implements ControlValueAccessor, OnInit {
17
+ inputDateBox: ElementRef;
18
+ value: string;
19
+ dateValue: Date | null;
20
+ isDisabled: boolean;
21
+ enterKeyPressed: EventEmitter<void>;
22
+ protected _showClearButton: import("@angular/core").WritableSignal<boolean>;
23
+ set showClearButton(show_clear_button: boolean);
24
+ protected _validValue: import("@angular/core").WritableSignal<boolean>;
25
+ set validValue(valid_value: boolean);
26
+ minValue: string;
27
+ maxValue: string;
28
+ constructor();
29
+ onChange: (value: string) => void;
30
+ onTouched: () => void;
31
+ writeValue(value: string): void;
32
+ registerOnChange(fn: (value: string) => void): void;
33
+ registerOnTouched(fn: () => void): void;
34
+ setDisabledState(isDisabled: boolean): void;
35
+ private readonly STYLE_ID;
36
+ private injectGlobalStyles;
37
+ ngOnInit(): void;
38
+ protected _clearValue(event: Event): void;
39
+ protected _showDatePicker(event: Event): void;
40
+ protected handleKeyDown(event: KeyboardEvent): void;
41
+ onDateChanged(event: MatDatepickerInputEvent<Date>): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputDateComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputDateComponent, "lib-bimplus-input-date", never, { "showClearButton": { "alias": "showClearButton"; "required": false; }; "validValue": { "alias": "validValue"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; }, { "enterKeyPressed": "enterKeyPressed"; }, never, never, true, never>;
44
+ static ngAcceptInputType_showClearButton: unknown;
45
+ static ngAcceptInputType_validValue: unknown;
46
+ }
@@ -0,0 +1,26 @@
1
+ import { EventEmitter, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare class BimplusInputNumberComponent implements ControlValueAccessor {
5
+ inputElement: ElementRef;
6
+ placeholder: string;
7
+ enterKeyPressed: EventEmitter<void>;
8
+ protected _validValue: import("@angular/core").WritableSignal<boolean>;
9
+ set validValue(valid_value: boolean);
10
+ minValue: string;
11
+ maxValue: string;
12
+ value: number;
13
+ isDisabled: boolean;
14
+ onChange: (value: number) => void;
15
+ onTouched: () => void;
16
+ writeValue(value: number): void;
17
+ registerOnChange(fn: (value: number) => void): void;
18
+ registerOnTouched(fn: () => void): void;
19
+ setDisabledState(isDisabled: boolean): void;
20
+ handleInput(event: Event): void;
21
+ handleBlur(): void;
22
+ protected handleKeyDown(event: KeyboardEvent): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputNumberComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputNumberComponent, "lib-bimplus-input-number", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "validValue": { "alias": "validValue"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; }, { "enterKeyPressed": "enterKeyPressed"; }, never, never, true, never>;
25
+ static ngAcceptInputType_validValue: unknown;
26
+ }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare class BimplusInputTextFieldComponent implements ControlValueAccessor {
5
+ inputElement: ElementRef;
6
+ placeholder: string;
7
+ enterKeyPressed: EventEmitter<void>;
8
+ protected _showClearButton: import("@angular/core").WritableSignal<boolean>;
9
+ set showClearButton(show_clear_button: boolean);
10
+ protected _validValue: import("@angular/core").WritableSignal<boolean>;
11
+ set validValue(valid_value: boolean);
12
+ value: string;
13
+ isDisabled: boolean;
14
+ onChange: (value: string) => void;
15
+ onTouched: () => void;
16
+ writeValue(value: string): void;
17
+ registerOnChange(fn: (value: string) => void): void;
18
+ registerOnTouched(fn: () => void): void;
19
+ setDisabledState(isDisabled: boolean): void;
20
+ handleInput(event: Event): void;
21
+ handleBlur(): void;
22
+ protected _clearValue(event: Event): void;
23
+ protected handleKeyDown(event: KeyboardEvent): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputTextFieldComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputTextFieldComponent, "lib-bimplus-input-text-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "validValue": { "alias": "validValue"; "required": false; }; }, { "enterKeyPressed": "enterKeyPressed"; }, never, never, true, never>;
26
+ static ngAcceptInputType_showClearButton: unknown;
27
+ static ngAcceptInputType_validValue: unknown;
28
+ }
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BimplusLinkTooltipMessageComponent implements AfterViewInit {
4
+ messageLink: ElementRef<HTMLElement>;
5
+ private _enableCopyPressKeys;
6
+ private _titleHeader;
7
+ private _link;
8
+ get link(): string;
9
+ set link(value: string);
10
+ get titleHeader(): string;
11
+ set titleHeader(value: string);
12
+ get enableCopyPressKeys(): boolean;
13
+ set enableCopyPressKeys(value: boolean);
14
+ arrowPosition: string;
15
+ onClose?: () => void;
16
+ ngAfterViewInit(): void;
17
+ selectText(node: HTMLElement): void;
18
+ close(): void;
19
+ onKeyPress(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusLinkTooltipMessageComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusLinkTooltipMessageComponent, "lib-bimplus-link-tooltip-message", never, { "link": { "alias": "link"; "required": false; }; "titleHeader": { "alias": "titleHeader"; "required": false; }; "enableCopyPressKeys": { "alias": "enableCopyPressKeys"; "required": false; }; "arrowPosition": { "alias": "arrowPosition"; "required": false; }; "onClose": { "alias": "onClose"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,88 @@
1
+ import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { DatePipe } from '@angular/common';
4
+ import { DialogService } from '../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service';
5
+ import WebSdk from 'bimplus-websdk';
6
+ import { BimplusButtonClickEvent, BimplusButtonRowItem } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
7
+ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
8
+ import { CommentOutputData, IDialogConfirmClose } from './bimplusObjectCommentsI';
9
+ import { FormBuilder, FormGroup } from "@angular/forms";
10
+ import { BimplusAttachmentsService } from '../bimplus-attachments/services/bimplus-attachments.service';
11
+ import { Attachment } from '../bimplus-attachments/bimplus-attachments.interface';
12
+ import { BehaviorSubject } from 'rxjs';
13
+ import { BimplusObjectCommentsListService } from './bimplus-object-comments-list.service';
14
+ import { ProjectNavigatorProject } from '../project-models/project-models.interface';
15
+ import { BimplusStatusBarService } from '../bimplus-status-bar/bimplus-status-bar.service';
16
+ import { newAttachInfo } from './bimplus-object-comments-list.interface';
17
+ import * as i0 from "@angular/core";
18
+ export declare class BimplusObjectCommentsListComponent extends BimplusLocalizedWidgetComponent implements OnInit, OnChanges {
19
+ private readonly dialogService;
20
+ private readonly datePipe;
21
+ private readonly formBuilder;
22
+ protected readonly bimplusAttachmentsService: BimplusAttachmentsService;
23
+ private readonly bimplusObjectCommentsListService;
24
+ private statusBarService;
25
+ hyperlinkForm: FormGroup;
26
+ api: WebSdk.Api | null;
27
+ project: ProjectNavigatorProject | null;
28
+ wormholeSelector: string;
29
+ env: string;
30
+ attachmentLinkItems: WebSdk.AttachmentLink[];
31
+ inputBaseUrl: string;
32
+ protected readonly commentsList$: BehaviorSubject<WebSdk.CommentResponse[]>;
33
+ protected readonly loading: import("@angular/core").WritableSignal<boolean>;
34
+ protected readonly attachmentsState: import("@angular/core").WritableSignal<Attachment[]>;
35
+ buttonRowItems: BimplusButtonRowItem[];
36
+ hyperlinkButtonRowItems: BimplusButtonRowItem[];
37
+ textAreaValue: string | null;
38
+ lastShownDate: string;
39
+ placeholder: string;
40
+ name: string;
41
+ readonly: boolean;
42
+ autoResizeTextarea: boolean;
43
+ minRows: number;
44
+ maxRows: number;
45
+ clearValue: boolean;
46
+ statusBarTitleMessage: any;
47
+ newAttachmentIDs: string[];
48
+ isAddingHyperlink: boolean;
49
+ newCommentAttachments: newAttachInfo[];
50
+ private _rootObjectId;
51
+ private _userId;
52
+ set rootObjectId(id: string);
53
+ get rootObjectId(): string;
54
+ set userId(id: string);
55
+ get userId(): string;
56
+ constructor(dialogService: DialogService, translateService: TranslateService, datePipe: DatePipe, formBuilder: FormBuilder, bimplusAttachmentsService: BimplusAttachmentsService, bimplusObjectCommentsListService: BimplusObjectCommentsListService, statusBarService: BimplusStatusBarService);
57
+ isCreateButtonDisabled(): boolean;
58
+ checkCreateButtonState(): void;
59
+ ngOnInit(): void;
60
+ ngOnChanges(changes: SimpleChanges): void;
61
+ protected onAttachmentsLinkChange(newAttachments: newAttachInfo[]): void;
62
+ protected onAddAttachment(file: File): void;
63
+ protected onDeleteAttachment(attachment: Attachment): void;
64
+ /** Event on click attachment. */
65
+ protected onGetAttachment(attachment: Attachment): void;
66
+ onTextareaValueChange(value: string): void;
67
+ handleActionCommentEvent(event: CommentOutputData): void;
68
+ actionDialogClose(data: IDialogConfirmClose): void;
69
+ openDialogDeleteComment(commentId: string): void;
70
+ isSameDate(date?: string): boolean;
71
+ buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
72
+ hyperlinkButtonRowButtonClicked($event: BimplusButtonClickEvent): void;
73
+ addNewCommentHyperlink(): void;
74
+ deleteComment(commentId: string): void;
75
+ addHyperlinkIconClicked(): void;
76
+ addHyperlinkIconKeypress(event: KeyboardEvent): void;
77
+ removeNewCommentAttachment(link: newAttachInfo): void;
78
+ removeNewCommentAttachmentKeypress(event: KeyboardEvent, link: newAttachInfo): void;
79
+ isActUserAuthor(item: WebSdk.CommentResponse): boolean;
80
+ displayName(item: WebSdk.CommentResponse): string;
81
+ formatDate(date: string): string;
82
+ clearTextareaValue(): boolean;
83
+ private loadComments;
84
+ private getHyperlinks;
85
+ onEnterKeyPressedInHyperlinkForm(): void;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusObjectCommentsListComponent, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusObjectCommentsListComponent, "lib-bimplus-object-comments-list", never, { "api": { "alias": "api"; "required": true; }; "project": { "alias": "project"; "required": false; }; "wormholeSelector": { "alias": "wormholeSelector"; "required": false; }; "env": { "alias": "env"; "required": false; }; "attachmentLinkItems": { "alias": "attachmentLinkItems"; "required": false; }; "inputBaseUrl": { "alias": "inputBaseUrl"; "required": false; }; "rootObjectId": { "alias": "rootObjectId"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; }, {}, never, never, true, never>;
88
+ }
@@ -0,0 +1,10 @@
1
+ export interface newAttachInfo {
2
+ id: string;
3
+ type: string;
4
+ nameShort: string;
5
+ name: string;
6
+ url: string;
7
+ iconClass: string;
8
+ iconTitle: string;
9
+ deleteButtonTitle: string;
10
+ }
@@ -0,0 +1,20 @@
1
+ import WebSdk from 'bimplus-websdk';
2
+ import { Observable } from 'rxjs';
3
+ import { Attachment } from '../bimplus-attachments/bimplus-attachments.interface';
4
+ import { DecoratorsService } from '../../services/decorators.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BimplusObjectCommentsListService {
7
+ private readonly decorators;
8
+ api: WebSdk.Api;
9
+ private readonly bimplusAttachmentsService;
10
+ constructor(decorators: DecoratorsService);
11
+ deleteComment(commentId: string): Observable<void>;
12
+ downloadAttachment(attachment: Attachment): void;
13
+ postComments(rootObjectId: string, dataText: string, hyperlinks: Partial<WebSdk.Hyperlink>[], attachments: Attachment[], newAttachmentIDs: string[]): Observable<string | null>;
14
+ private decorateComment;
15
+ private decorateComments;
16
+ loadComments(objectId: string): Observable<WebSdk.CommentsResponse>;
17
+ manageHyperLinks(createdCommentId: string, hyperlinks: Partial<WebSdk.Hyperlink>[]): Observable<(void | WebSdk.Hyperlink | undefined)[]>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusObjectCommentsListService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<BimplusObjectCommentsListService>;
20
+ }
@@ -0,0 +1,11 @@
1
+ export interface IDialogConfirmClose {
2
+ componentDialogName: string;
3
+ actionButton: string;
4
+ }
5
+ export interface CommentOutputData {
6
+ action: string;
7
+ data: unknown;
8
+ }
9
+ export interface CommentData {
10
+ commentId: string;
11
+ }