ngx-bimplus-components 0.0.148 → 0.0.149-28792-2

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 (174) 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/Comments_18_gray.svg +1 -0
  6. package/assets/images/default/Comments_18_maincolor.svg +4 -0
  7. package/assets/images/default/Links_18_gray.svg +1 -0
  8. package/assets/images/default/Links_18_maincolor.svg +4 -0
  9. package/assets/images/default/ic_models.svg +3 -0
  10. package/assets/images/default/ic_models_maincolor.svg +3 -0
  11. package/assets/images/default/icn_grid_attachments.png +0 -0
  12. package/assets/images/default/icn_grid_hyperlinks.png +0 -0
  13. package/assets/languages/strings_cs.json +24 -72
  14. package/assets/languages/strings_de.json +4 -15
  15. package/assets/languages/strings_en.json +5 -5
  16. package/assets/languages/strings_es.json +6 -54
  17. package/assets/languages/strings_fr.json +6 -50
  18. package/assets/languages/strings_it.json +2 -50
  19. package/assets/languages/strings_nl.json +796 -796
  20. package/assets/languages/strings_ro.json +7 -55
  21. package/assets/languages/strings_ru.json +45 -93
  22. package/assets/languages/strings_tr.json +2 -50
  23. package/assets/languages/strings_us.json +8 -44
  24. package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.component.mjs +69 -0
  25. package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.interface.mjs +34 -0
  26. package/esm2022/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.mjs +82 -0
  27. package/esm2022/lib/components/bimplus-attachments/services/bimplus-attachments.service.mjs +49 -0
  28. package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.mjs +20 -7
  29. package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.mjs +5 -2
  30. package/esm2022/lib/components/bimplus-comment/bimplus-comment.component.mjs +68 -0
  31. package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.component.mjs +7 -7
  32. package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.interface.mjs +1 -1
  33. package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.service.mjs +4 -4
  34. package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.component.mjs +5 -5
  35. package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.interface.mjs +1 -1
  36. package/esm2022/lib/components/bimplus-contact/bimplus-contact.component.mjs +5 -5
  37. package/esm2022/lib/components/bimplus-context-menu/bimplus-context-menu.component.mjs +3 -3
  38. package/esm2022/lib/components/bimplus-context-menu/bimplus-context-menu.interface.mjs +1 -1
  39. package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.mjs +5 -5
  40. package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.mjs +1 -1
  41. package/esm2022/lib/components/bimplus-floating-bar/bimplus-floating-bar.component.mjs +5 -5
  42. package/esm2022/lib/components/bimplus-floating-bar/bimplus-floating-bar.interface.mjs +1 -1
  43. package/esm2022/lib/components/bimplus-floating-bar-body/bimplus-floating-bar-body.component.mjs +5 -5
  44. package/esm2022/lib/components/bimplus-floating-bar-dragger/bimplus-floating-bar-dragger.component.mjs +5 -5
  45. package/esm2022/lib/components/bimplus-floating-bar-header-content/bimplus-floating-bar-header-content.component.mjs +3 -3
  46. package/esm2022/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.mjs +4 -4
  47. package/esm2022/lib/components/bimplus-floating-bar-hide-objects/bimplus-floating-bar-hide-objects.component.mjs +3 -3
  48. package/esm2022/lib/components/bimplus-floating-bar-isolation-objects/bimplus-floating-bar-isolation-objects.component.mjs +4 -4
  49. package/esm2022/lib/components/bimplus-floating-bar-project-navigator/bimplus-floating-bar-project-navigator.component.mjs +3 -3
  50. package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.component.mjs +4 -4
  51. package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service.mjs +3 -3
  52. package/esm2022/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.mjs +58 -0
  53. package/esm2022/lib/components/bimplus-language-menu/bimplus-language-menu.component.mjs +3 -3
  54. package/esm2022/lib/components/bimplus-localized-widget/bimplus-localized-widget.component.mjs +5 -5
  55. package/esm2022/lib/components/bimplus-main-menu/bimplus-main-menu.component.mjs +3 -3
  56. package/esm2022/lib/components/bimplus-navbar/bimplus-navbar.component.mjs +3 -3
  57. package/esm2022/lib/components/bimplus-notify/bimplus-notify.component.mjs +5 -5
  58. package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.mjs +242 -0
  59. package/esm2022/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.mjs +2 -0
  60. package/esm2022/lib/components/bimplus-object-complex-properties/bimplus-object-complex-properties.component.mjs +5 -5
  61. package/esm2022/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.mjs +5 -5
  62. package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.mjs +5 -5
  63. package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.mjs +1 -1
  64. package/esm2022/lib/components/bimplus-object-navigator/filter-criterium/filter-criterium.component.mjs +3 -3
  65. package/esm2022/lib/components/bimplus-object-navigator/object-filter-result/object-filter-result.component.mjs +5 -5
  66. package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.component.mjs +5 -5
  67. package/esm2022/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.mjs +76 -0
  68. package/esm2022/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.mjs +78 -0
  69. package/esm2022/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.mjs +3 -3
  70. package/esm2022/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.mjs +10 -7
  71. package/esm2022/lib/components/bimplus-panel-toolbar/bimplus-panel-toolbar.component.mjs +5 -5
  72. package/esm2022/lib/components/bimplus-project-menu/bimplus-project-menu.component.mjs +3 -3
  73. package/esm2022/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.mjs +5 -5
  74. package/esm2022/lib/components/bimplus-sidenav/bimplus-sidenav.component.mjs +3 -3
  75. package/esm2022/lib/components/bimplus-sidenav-drawer-content/bimplus-sidenav-drawer-content.component.mjs +3 -3
  76. package/esm2022/lib/components/bimplus-storage-info/bimplus-storage-info.component.mjs +3 -3
  77. package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.mjs +38 -0
  78. package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.mjs +10 -0
  79. package/esm2022/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.mjs +89 -0
  80. package/esm2022/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.mjs +33 -0
  81. package/esm2022/lib/components/bimplus-text-message/bimplus-text-message.component.mjs +3 -3
  82. package/esm2022/lib/components/bimplus-textarea/autoResizeTextarea.directive.mjs +83 -0
  83. package/esm2022/lib/components/bimplus-textarea/bimplus-textarea.component.mjs +122 -0
  84. package/esm2022/lib/components/bimplus-tool-hub/bimplus-tool-hub.component.mjs +3 -3
  85. package/esm2022/lib/components/bimplus-tool-hub/svgGenerator.mjs +1 -1
  86. package/esm2022/lib/components/bimplus-tool-hub/tool-hub-item/tool-hub-item.component.mjs +3 -3
  87. package/esm2022/lib/components/bimplus-tool-hub/tool-hub-sub-item/tool-hub-sub-item.component.mjs +3 -3
  88. package/esm2022/lib/components/bimplus-tooltip-message/bimplus-tooltip-message.component.mjs +5 -5
  89. package/esm2022/lib/components/bimplus-tooltip-message/bimplus-tooltip-message.interface.mjs +1 -1
  90. package/esm2022/lib/components/bimplus-touch-menu/bimplus-touch-menu.component.mjs +5 -5
  91. package/esm2022/lib/components/bimplus-user-menu/bimplus-user-menu.component.mjs +3 -3
  92. package/esm2022/lib/components/bimplus-zoom/bimplus-zoom.component.mjs +5 -5
  93. package/esm2022/lib/components/expansion-panel/expansion-panel.component.mjs +3 -3
  94. package/esm2022/lib/components/expansion-panel-header/expansion-panel-header.component.mjs +3 -3
  95. package/esm2022/lib/components/expansion-panel-header-actions/expansion-panel-header-actions.component.mjs +3 -3
  96. package/esm2022/lib/components/links-to-documents/links-to-documents.component.interface.mjs +2 -0
  97. package/esm2022/lib/components/links-to-documents/links-to-documents.component.mjs +337 -0
  98. package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
  99. package/esm2022/lib/components/object-hyperlinks/object-hyperlinks.component.mjs +141 -0
  100. package/esm2022/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.mjs +36 -0
  101. package/esm2022/lib/components/object-properties/object-properties.component.mjs +261 -0
  102. package/esm2022/lib/components/object-properties/object-properties.interface.mjs +2 -0
  103. package/esm2022/lib/components/object-properties-group/object-properties-group.component.mjs +40 -0
  104. package/esm2022/lib/components/object-properties-group/object-property-value/object-property-value.component.mjs +55 -0
  105. package/esm2022/lib/components/object-properties-header/object-properties-header.component.mjs +21 -6
  106. package/esm2022/lib/components/object-properties-header/object-properties-header.interface.mjs +1 -1
  107. package/esm2022/lib/components/project-models/project-models.component.mjs +3 -3
  108. package/esm2022/lib/components/project-models/project-models.interface.mjs +1 -1
  109. package/esm2022/lib/components/resizable-panel/resizable-panel.component.mjs +5 -5
  110. package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +4 -4
  111. package/esm2022/lib/directives/component-draggable/componentsDraggable.directive.mjs +3 -3
  112. package/esm2022/lib/directives/draggable.directive.mjs +3 -3
  113. package/esm2022/lib/directives/resizable.directive.mjs +4 -4
  114. package/esm2022/lib/directives/x-draggable.directive.mjs +3 -3
  115. package/esm2022/lib/interfaces/bimplus-opacity-properties.interface.mjs +1 -1
  116. package/esm2022/lib/interfaces/bimplus-visibility-properties.interface.mjs +1 -1
  117. package/esm2022/lib/ngx-bimplus-components.component.mjs +3 -3
  118. package/esm2022/lib/ngx-bimplus-components.service.mjs +3 -3
  119. package/esm2022/lib/pipes/bit-converter.pipe.mjs +46 -0
  120. package/esm2022/lib/pipes/get-attribute-value.pipe.mjs +110 -0
  121. package/esm2022/lib/pipes/pxsuffix.pipe.mjs +3 -3
  122. package/esm2022/lib/pipes/round.pipe.mjs +20 -0
  123. package/esm2022/lib/services/cursors.service.mjs +3 -3
  124. package/esm2022/lib/services/language-strings.service.mjs +3 -3
  125. package/esm2022/lib/services/layout-manager.service.mjs +3 -3
  126. package/esm2022/lib/services/local-storage.service.mjs +4 -4
  127. package/esm2022/lib/services/resize-observer.service.mjs +4 -4
  128. package/esm2022/lib/types/types.mjs +1 -1
  129. package/esm2022/lib/utils/filterString.mjs +1 -1
  130. package/esm2022/lib/utils/filterStructureFetcher.mjs +1 -1
  131. package/esm2022/lib/utils/objectProperties.mjs +9 -0
  132. package/esm2022/lib/utils/utils.mjs +1 -1
  133. package/esm2022/public-api.mjs +17 -1
  134. package/fesm2022/ngx-bimplus-components.mjs +2323 -249
  135. package/fesm2022/ngx-bimplus-components.mjs.map +1 -1
  136. package/lib/components/bimplus-attachments/bimplus-attachments.component.d.ts +25 -0
  137. package/lib/components/bimplus-attachments/bimplus-attachments.interface.d.ts +19 -0
  138. package/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.d.ts +26 -0
  139. package/lib/components/bimplus-attachments/services/bimplus-attachments.service.d.ts +12 -0
  140. package/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.d.ts +9 -3
  141. package/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.d.ts +5 -0
  142. package/lib/components/bimplus-comment/bimplus-comment.component.d.ts +34 -0
  143. package/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.d.ts +1 -1
  144. package/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.d.ts +17 -0
  145. package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.d.ts +51 -0
  146. package/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.d.ts +11 -0
  147. package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.d.ts +7 -7
  148. package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.d.ts +3 -3
  149. package/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.d.ts +31 -0
  150. package/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.d.ts +26 -0
  151. package/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.d.ts +3 -0
  152. package/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.d.ts +1 -1
  153. package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.d.ts +16 -0
  154. package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.d.ts +18 -0
  155. package/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.d.ts +36 -0
  156. package/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.d.ts +15 -0
  157. package/lib/components/bimplus-textarea/autoResizeTextarea.directive.d.ts +24 -0
  158. package/lib/components/bimplus-textarea/bimplus-textarea.component.d.ts +42 -0
  159. package/lib/components/links-to-documents/links-to-documents.component.d.ts +55 -0
  160. package/lib/components/links-to-documents/links-to-documents.component.interface.d.ts +11 -0
  161. package/lib/components/object-hyperlinks/object-hyperlinks.component.d.ts +32 -0
  162. package/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.d.ts +15 -0
  163. package/lib/components/object-properties/object-properties.component.d.ts +45 -0
  164. package/lib/components/object-properties/object-properties.interface.d.ts +21 -0
  165. package/lib/components/object-properties-group/object-properties-group.component.d.ts +11 -0
  166. package/lib/components/object-properties-group/object-property-value/object-property-value.component.d.ts +14 -0
  167. package/lib/components/object-properties-header/object-properties-header.component.d.ts +5 -3
  168. package/lib/components/object-properties-header/object-properties-header.interface.d.ts +1 -0
  169. package/lib/pipes/bit-converter.pipe.d.ts +17 -0
  170. package/lib/pipes/get-attribute-value.pipe.d.ts +23 -0
  171. package/lib/pipes/round.pipe.d.ts +7 -0
  172. package/lib/utils/objectProperties.d.ts +2 -0
  173. package/package.json +11 -4
  174. package/public-api.d.ts +16 -0
@@ -0,0 +1,25 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } 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 i0 from "@angular/core";
6
+ export declare class BimplusAttachmentsComponent extends BimplusLocalizedWidgetComponent implements AfterViewInit, OnDestroy {
7
+ attachmentListRef: ElementRef<HTMLElement>;
8
+ deleteAttachment: EventEmitter<Attachment>;
9
+ addAttachment: EventEmitter<File>;
10
+ getAttachment: EventEmitter<Attachment>;
11
+ private resizeObserver;
12
+ private readonly bimplusAttachmentsService;
13
+ /** Attribute for attachments which were saved to server. */
14
+ protected readonly attachments: import("@angular/core").Signal<Attachment[] | null | undefined>;
15
+ /** Attachments buttons. */
16
+ protected readonly items: BimplusButtonRowItem[];
17
+ /** Width size of file name line. */
18
+ protected readonly attachmentListWidth: import("@angular/core").WritableSignal<number | undefined>;
19
+ ngAfterViewInit(): void;
20
+ ngOnDestroy(): void;
21
+ protected onFileChanged(file: File): void;
22
+ private createResizeObserver;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentsComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusAttachmentsComponent, "lib-bimplus-attachments", never, {}, { "deleteAttachment": "deleteAttachment"; "addAttachment": "addAttachment"; "getAttachment": "getAttachment"; }, never, never, true, never>;
25
+ }
@@ -0,0 +1,19 @@
1
+ import { Attachment as IAttachment } from 'bimplus-websdk';
2
+ export declare class Attachment implements Partial<IAttachment> {
3
+ id: string;
4
+ fileName: string;
5
+ size: number | undefined;
6
+ file?: File;
7
+ constructor(data: Partial<IAttachment>);
8
+ }
9
+ type Builder = typeof AttachmentBuilder;
10
+ export declare abstract class AttachmentBuilder {
11
+ private static attachment;
12
+ static create(value: Attachment): Builder;
13
+ static setId(id: string): Builder;
14
+ static setFileName(name: string): Builder;
15
+ static setSize(size: number): Builder;
16
+ static setFile(file: File): Builder;
17
+ static build(): Attachment;
18
+ }
19
+ export {};
@@ -0,0 +1,26 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } 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
+ attachmentSizeRef: ElementRef<HTMLElement>;
6
+ attachmentNameRef: ElementRef<HTMLElement>;
7
+ attachment: Attachment;
8
+ set parentWidth(value: number | undefined);
9
+ deleteAttachment: EventEmitter<Attachment>;
10
+ getAttachment: EventEmitter<Attachment>;
11
+ get type(): string;
12
+ private intersectionObserver;
13
+ /** Parent element width. */
14
+ private readonly parentWidthSignal;
15
+ /** Attachment size text width. */
16
+ private readonly attachmentSizeWidth;
17
+ /** Wheter name is fully visible or not based on parent width. */
18
+ protected readonly nameIsfullyVisible: import("@angular/core").WritableSignal<boolean>;
19
+ /** Width size of file name line. */
20
+ protected readonly nameInfoLineWidth: import("@angular/core").Signal<number>;
21
+ ngAfterViewInit(): void;
22
+ ngOnDestroy(): void;
23
+ private createIntersectionObserver;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentItemComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusAttachmentItemComponent, "lib-bimplus-attachment-item", never, { "attachment": { "alias": "attachment"; "required": true; }; "parentWidth": { "alias": "parentWidth"; "required": false; }; }, { "deleteAttachment": "deleteAttachment"; "getAttachment": "getAttachment"; }, never, never, true, never>;
26
+ }
@@ -0,0 +1,12 @@
1
+ import { Attachment } from '../bimplus-attachments.interface';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BimplusAttachmentsService {
4
+ private readonly attachments;
5
+ readonly attachments$: import("rxjs").Observable<Attachment[] | null>;
6
+ setAttachment(value: Attachment | File): void;
7
+ deleteAttachment(fileToDelete: Attachment): void;
8
+ addAttachments(attachments: Attachment[]): void;
9
+ download(href: string, fileName: string): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusAttachmentsService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<BimplusAttachmentsService>;
12
+ }
@@ -1,13 +1,19 @@
1
+ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
2
+ import { BimplusButtonRowItem, BimplusButtonClickEvent } from './bimplus-buttons-row.interface';
1
3
  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
4
  import * as i0 from "@angular/core";
5
5
  export declare class BimplusButtonsRowComponent extends BimplusLocalizedWidgetComponent {
6
+ protected readonly BimplusButtonType: {
7
+ readonly FILE: "file";
8
+ readonly TEXT: "text";
9
+ };
6
10
  /** TODO remove @Input once signal inputs release from developer preview. */
7
11
  set itemsValue(value: Array<BimplusButtonRowItem>);
8
12
  protected readonly items: import("@angular/core").WritableSignal<BimplusButtonRowItem[]>;
13
+ fileChanged: EventEmitter<File>;
9
14
  buttonClicked: EventEmitter<BimplusButtonClickEvent>;
15
+ protected onChange(event: Event, inputElement: HTMLInputElement): void;
10
16
  protected _buttonClicked(item: BimplusButtonRowItem): void;
11
17
  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>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusButtonsRowComponent, "lib-bimplus-buttons-row", never, { "itemsValue": { "alias": "items"; "required": false; }; }, { "fileChanged": "fileChanged"; "buttonClicked": "buttonClicked"; }, never, never, true, never>;
13
19
  }
@@ -7,7 +7,12 @@ export interface BimplusButtonRowItem {
7
7
  disabled?: boolean;
8
8
  buttonStyle?: 'primary' | 'secondary';
9
9
  buttonType?: 'text' | 'icon' | 'combined';
10
+ type?: typeof BimplusButtonType['FILE' | 'TEXT'];
10
11
  }
11
12
  export interface BimplusButtonClickEvent {
12
13
  id: string;
13
14
  }
15
+ export declare const BimplusButtonType: {
16
+ readonly FILE: "file";
17
+ readonly TEXT: "text";
18
+ };
@@ -0,0 +1,34 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import WebSdk from "bimplus-websdk";
3
+ import * as i0 from "@angular/core";
4
+ export interface CustomComment {
5
+ message?: string;
6
+ date?: string;
7
+ action?: string;
8
+ outputData?: unknown;
9
+ }
10
+ export declare class BimplusCommentComponent {
11
+ outputActionCommentEvent: EventEmitter<{
12
+ action: string;
13
+ data: unknown;
14
+ }>;
15
+ private _message;
16
+ set message(value: string);
17
+ get message(): string;
18
+ private _date;
19
+ set date(value: string);
20
+ get date(): string;
21
+ private _action;
22
+ set action(value: string);
23
+ get action(): string;
24
+ private _commentId;
25
+ set commentId(value: string);
26
+ get commentId(): string;
27
+ hyperlinks: WebSdk.Hyperlink[] | undefined;
28
+ constructor();
29
+ emitAction(action: string, data: unknown): void;
30
+ close(): void;
31
+ onKeyPress(event: KeyboardEvent): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusCommentComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusCommentComponent, "lib-bimplus-comment", never, { "message": { "alias": "message"; "required": false; }; "date": { "alias": "date"; "required": false; }; "action": { "alias": "action"; "required": false; }; "commentId": { "alias": "commentId"; "required": false; }; "hyperlinks": { "alias": "hyperlinks"; "required": false; }; }, { "outputActionCommentEvent": "outputActionCommentEvent"; }, never, never, true, never>;
34
+ }
@@ -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;
@@ -0,0 +1,17 @@
1
+ import { ControlValueAccessor } from "@angular/forms";
2
+ import * as i0 from "@angular/core";
3
+ export declare class BimplusInputTextFieldComponent implements ControlValueAccessor {
4
+ placeholder: string;
5
+ value: string;
6
+ isDisabled: boolean;
7
+ onChange: (value: string) => void;
8
+ onTouched: () => void;
9
+ writeValue(value: string): void;
10
+ registerOnChange(fn: (value: string) => void): void;
11
+ registerOnTouched(fn: () => void): void;
12
+ setDisabledState(isDisabled: boolean): void;
13
+ handleInput(event: Event): void;
14
+ handleBlur(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusInputTextFieldComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusInputTextFieldComponent, "lib-bimplus-input-text-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,51 @@
1
+ import { OnInit } 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 * as i0 from "@angular/core";
11
+ export declare class BimplusObjectCommentsListComponent extends BimplusLocalizedWidgetComponent implements OnInit {
12
+ private readonly dialogService;
13
+ private readonly datePipe;
14
+ private readonly formBuilder;
15
+ hyperlinkForm: FormGroup;
16
+ api: WebSdk.Api | null;
17
+ commentsList: WebSdk.CommentsResponse;
18
+ loading: boolean;
19
+ buttonRowItems: BimplusButtonRowItem[];
20
+ hyperlinkButtonRowItems: BimplusButtonRowItem[];
21
+ textAreaValue: string;
22
+ lastShownDate: string;
23
+ placeholder: string;
24
+ name: string;
25
+ readonly: boolean;
26
+ autoResizeTextarea: boolean;
27
+ minRows: number;
28
+ maxRows: number;
29
+ isAddingHyperlink: boolean;
30
+ intermediateHyperlinks: Partial<WebSdk.Hyperlink>[];
31
+ private _rootObjectId;
32
+ set rootObjectId(id: string);
33
+ get rootObjectId(): string;
34
+ constructor(dialogService: DialogService, translateService: TranslateService, datePipe: DatePipe, formBuilder: FormBuilder);
35
+ ngOnInit(): void;
36
+ onTextareaValueChange(value: string): void;
37
+ handleActionCommentEvent(event: CommentOutputData): void;
38
+ actionDialogClose(data: IDialogConfirmClose): void;
39
+ openDialogDeleteComment(commentId: string): void;
40
+ isSameDate(date?: string): boolean;
41
+ buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
42
+ hyperlinkButtonRowButtonClicked($event: BimplusButtonClickEvent): void;
43
+ deleteComment(commentId: string): void;
44
+ private loadComments;
45
+ addHyperlinkIconClicked(): void;
46
+ addHyperlinkIconKeypress(event: KeyboardEvent): void;
47
+ removeIntermediateHyperlink(link: Partial<WebSdk.Hyperlink>): void;
48
+ removeIntermediateHyperlinkKeypress(event: KeyboardEvent, link: Partial<WebSdk.Hyperlink>): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusObjectCommentsListComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusObjectCommentsListComponent, "lib-bimplus-object-comments-list", never, { "api": { "alias": "api"; "required": false; }; "rootObjectId": { "alias": "rootObjectId"; "required": false; }; }, {}, never, never, true, never>;
51
+ }
@@ -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
+ }
@@ -5,7 +5,7 @@ import { TranslateService } from '@ngx-translate/core';
5
5
  import { FilterCriterium } from '../bimplus-object-navigator.interface';
6
6
  import { ObjectStructureNode } from '../../bimplus-object-structure/bimplus-object-structure.interface';
7
7
  import { ComplexPropertiesNode } from '../../bimplus-object-complex-properties/bimplus-object-complex-properties.interface';
8
- import { ObjectAttribute, ObjectAttributeGroup } from './criteria-select-object-properties.interface';
8
+ import { CriteriaSelectObjectAttribute, CriteriaSelectObjectAttributeGroup } from './criteria-select-object-properties.interface';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class CriteriaSelectObjectPropertiesComponent extends BimplusLocalizedWidgetComponent implements OnInit {
11
11
  constructor(translateService: TranslateService);
@@ -14,9 +14,9 @@ export declare class CriteriaSelectObjectPropertiesComponent extends BimplusLoca
14
14
  set rootObjectId(id: string);
15
15
  get rootObjectId(): string;
16
16
  revision: number | undefined;
17
- private _currentObjectId$;
18
- private _currentPropertiesObjectId$;
19
- objectAttributeGroups: ObjectAttributeGroup[];
17
+ private readonly _currentObjectId$;
18
+ private readonly _currentPropertiesObjectId$;
19
+ objectAttributeGroups: CriteriaSelectObjectAttributeGroup[];
20
20
  MaxFilterCriteria: number;
21
21
  private _rootObjectId;
22
22
  set filterCriteria(criteria: FilterCriterium[]);
@@ -27,9 +27,9 @@ export declare class CriteriaSelectObjectPropertiesComponent extends BimplusLoca
27
27
  get objectStructure(): ObjectStructureNode | null;
28
28
  private _complexProperties;
29
29
  get complexProperties(): ComplexPropertiesNode | null;
30
- toggleAttribute(attrib: ObjectAttribute): void;
31
- toggleAttributeValue(attrib: ObjectAttribute): void;
32
- handleFilterCriteriumAttributeStateChange(attrib: ObjectAttribute): void;
30
+ toggleAttribute(attrib: CriteriaSelectObjectAttribute): void;
31
+ toggleAttributeValue(attrib: CriteriaSelectObjectAttribute): void;
32
+ handleFilterCriteriumAttributeStateChange(attrib: CriteriaSelectObjectAttribute): void;
33
33
  handleObjectStructureNodeSelected(node: ObjectStructureNode): void;
34
34
  handleComplexPropertyNodeSelected(node: ComplexPropertiesNode): void;
35
35
  private _createObjectProperties;
@@ -1,4 +1,4 @@
1
- export interface ObjectAttribute {
1
+ export interface CriteriaSelectObjectAttribute {
2
2
  id: string;
3
3
  name: string;
4
4
  description: string;
@@ -7,8 +7,8 @@ export interface ObjectAttribute {
7
7
  checked: boolean;
8
8
  valueChecked: boolean;
9
9
  }
10
- export interface ObjectAttributeGroup {
10
+ export interface CriteriaSelectObjectAttributeGroup {
11
11
  name: string;
12
- attributes: ObjectAttribute[];
12
+ attributes: CriteriaSelectObjectAttribute[];
13
13
  expanded: boolean;
14
14
  }
@@ -0,0 +1,31 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TranslateService } from "@ngx-translate/core";
3
+ import { DialogService } from "../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service";
4
+ import { BimplusButtonsRowComponent } from "../bimplus-buttons-row/bimplus-buttons-row.component";
5
+ import { BimplusButtonClickEvent } from "../bimplus-buttons-row/bimplus-buttons-row.interface";
6
+ import * as i0 from "@angular/core";
7
+ export interface ConfirmDialogInputData {
8
+ title: string;
9
+ message: string;
10
+ acceptButtonLocalizedString: string;
11
+ cancelButtonLocalizedString: string;
12
+ acceptCallback: () => void;
13
+ }
14
+ export declare class BimplusOverlayDialogConfirmComponent implements OnInit {
15
+ private readonly dialogService;
16
+ private readonly translateService;
17
+ title: string;
18
+ message: string;
19
+ acceptButtonLocalizedString: string;
20
+ cancelButtonLocalizedString: string;
21
+ acceptCallback: (() => void) | undefined;
22
+ buttonsRow: BimplusButtonsRowComponent | null;
23
+ constructor(dialogService: DialogService, translateService: TranslateService);
24
+ ngOnInit(): void;
25
+ close(): void;
26
+ keypressClose(event: KeyboardEvent): void;
27
+ buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
28
+ handleKeydown(event: KeyboardEvent): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusOverlayDialogConfirmComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusOverlayDialogConfirmComponent, "lib-bimplus-overlay-dialog-confirm", never, {}, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,26 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { BimplusButtonsRowComponent } from '../bimplus-buttons-row/bimplus-buttons-row.component';
4
+ import { BimplusButtonClickEvent } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
5
+ import { DialogService } from '../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BimplusOverlayDialogDeleteComponent implements OnInit {
8
+ private readonly dialogService;
9
+ private readonly translateService;
10
+ private _title;
11
+ private _message;
12
+ private readonly data;
13
+ acceptCallback: (() => void) | undefined;
14
+ buttonsRow: BimplusButtonsRowComponent | null;
15
+ get title(): string;
16
+ set title(value: string);
17
+ get message(): string;
18
+ set message(value: string);
19
+ constructor(dialogService: DialogService, translateService: TranslateService);
20
+ ngOnInit(): void;
21
+ close(): void;
22
+ keypressClose(event: KeyboardEvent): void;
23
+ buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusOverlayDialogDeleteComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusOverlayDialogDeleteComponent, "lib-bimplus-overlay-dialog-delete", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
26
+ }
@@ -1,14 +1,17 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import { DialogService } from '../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export interface WarningDialogInputData {
4
5
  title: string;
5
6
  message: string;
7
+ buttonsRef?: TemplateRef<unknown>;
6
8
  }
7
9
  export declare class BimplusOverlayDialogWarningComponent {
8
10
  private readonly dialogService;
9
11
  private _title;
10
12
  private _message;
11
13
  private readonly _data;
14
+ protected readonly buttonsRef: TemplateRef<unknown> | null;
12
15
  get title(): string;
13
16
  set title(value: string);
14
17
  get message(): string;
@@ -2,7 +2,7 @@ import { ElementRef, AfterViewInit, AfterViewChecked } from '@angular/core';
2
2
  import SimpleBar from 'simplebar';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BimplusScrollableContainerComponent implements AfterViewInit, AfterViewChecked {
5
- private elementRef;
5
+ private readonly elementRef;
6
6
  _simpleBar: SimpleBar;
7
7
  _element: HTMLElement;
8
8
  protected _scrollableContainerClassName: string;
@@ -0,0 +1,16 @@
1
+ import { Signal, EventEmitter } from '@angular/core';
2
+ import { BimplusTabsSwitcherService } from './services/bimplus-tabs-switcher.service';
3
+ import { BimplusTabComponentModel } from './bimplus-tabs-switcher.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BimplusTabsSwitcherComponent {
6
+ private readonly bimplusTabsSwitcherService;
7
+ activeTab?: string;
8
+ activeTabChange: EventEmitter<string>;
9
+ /** default tab elements, can be chanaged from outside by BimplusTabsSwitcherService */
10
+ protected readonly tabSwitcherElements: Signal<BimplusTabComponentModel[]>;
11
+ /** app base href */
12
+ protected readonly baseHref: string | null;
13
+ constructor(bimplusTabsSwitcherService: BimplusTabsSwitcherService);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusTabsSwitcherComponent, [{ optional: true; skipSelf: true; }]>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusTabsSwitcherComponent, "lib-bimplus-tabs-switcher", never, { "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, never, ["*"], true, never>;
16
+ }
@@ -0,0 +1,18 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export type BimplusTabComponentModel = {
3
+ id: string;
4
+ title: string;
5
+ img: {
6
+ default: string;
7
+ active: string;
8
+ };
9
+ };
10
+ export declare const DEFAULT_TAB_SWITCHER_ELEMENTS: BimplusTabComponentModel[];
11
+ export type BimplusTabsSwitcherConfig = {
12
+ defaultTabsSwitcherElements?: BimplusTabComponentModel[];
13
+ disabled: Partial<{
14
+ all: boolean;
15
+ id: string;
16
+ }>;
17
+ };
18
+ export declare const BIMPLUS_TABS_SWITCHER_CONFIG: InjectionToken<BimplusTabsSwitcherConfig>;
@@ -0,0 +1,36 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { BimplusTabsSwitcherService } from '../../services/bimplus-tabs-switcher.service';
3
+ import { BimplusTabComponentModel, BimplusTabsSwitcherConfig } from '../../bimplus-tabs-switcher.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BimplusTabComponent implements OnInit {
6
+ private readonly bimplusTabsSwitcherConfig;
7
+ protected readonly bimplusTabsSwitcherService: BimplusTabsSwitcherService;
8
+ bimplusTabComponentModel: BimplusTabComponentModel;
9
+ imageBaseSrc?: string | null;
10
+ /** Currently active tab. */
11
+ set activeTab(value: string | undefined);
12
+ activeTabChange: EventEmitter<string>;
13
+ /** Attribute indicating active tab. */
14
+ protected readonly activeTabSignal: import("@angular/core").Signal<string | undefined>;
15
+ /** Indicate that tab is active or not. */
16
+ protected readonly isActive: import("@angular/core").Signal<boolean>;
17
+ /** Indicate that tab is disabled or not. */
18
+ protected readonly isDisabled: import("@angular/core").WritableSignal<boolean>;
19
+ /** Computed property for image file name based on active/default state. */
20
+ protected readonly imgName: import("@angular/core").Signal<string>;
21
+ protected readonly onHoverOver: import("@angular/core").WritableSignal<boolean>;
22
+ /** Whether all tabs is disabled based on configuration token. */
23
+ private readonly isAllDisabled;
24
+ constructor(bimplusTabsSwitcherConfig: BimplusTabsSwitcherConfig, bimplusTabsSwitcherService: BimplusTabsSwitcherService);
25
+ protected onMouseEnter(): void;
26
+ protected onMouseLeave(): void;
27
+ ngOnInit(): void;
28
+ /**
29
+ * Will update active tab to service state.
30
+ * @protected
31
+ * @returns void
32
+ */
33
+ protected activate(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusTabComponent, [{ optional: true; }, null]>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusTabComponent, "lib-bimplus-tab", never, { "bimplusTabComponentModel": { "alias": "bimplusTabComponentModel"; "required": true; }; "imageBaseSrc": { "alias": "imageBaseSrc"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, never, never, true, never>;
36
+ }
@@ -0,0 +1,15 @@
1
+ import { BimplusTabComponentModel, BimplusTabsSwitcherConfig } from '../bimplus-tabs-switcher.interface';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BimplusTabsSwitcherService {
4
+ private readonly bimplusTabsSwitcherConfig?;
5
+ /** Default tab switcher elements. */
6
+ private readonly tabSwitcherElements;
7
+ readonly tabSwitcherElements$: import("rxjs").Observable<BimplusTabComponentModel[]>;
8
+ /** Attribute to indicate active tab. (only for BimplusTabComponent) */
9
+ private readonly activeTab;
10
+ readonly activeTab$: import("rxjs").Observable<string>;
11
+ setActiveTab(key: string): void;
12
+ constructor(bimplusTabsSwitcherConfig?: Pick<BimplusTabsSwitcherConfig, "defaultTabsSwitcherElements"> | undefined);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusTabsSwitcherService, [{ optional: true; }]>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<BimplusTabsSwitcherService>;
15
+ }
@@ -0,0 +1,24 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AutoResizeTextareaDirective {
4
+ private el;
5
+ private _libAutoResizeTextarea;
6
+ private _autoResizeMinRows;
7
+ private _autoResizeMaxRows;
8
+ private currentRows;
9
+ private offsetHeight;
10
+ private readonly input;
11
+ private avgLineHeight;
12
+ set autoResizeMinRows(value: number);
13
+ get autoResizeMinRows(): number;
14
+ set autoResizeMaxRows(value: number);
15
+ get autoResizeMaxRows(): number;
16
+ set libAutoResizeTextarea(condition: boolean);
17
+ get libAutoResizeTextarea(): boolean;
18
+ constructor(el: ElementRef);
19
+ onInput(): void;
20
+ private calculateLineHeight;
21
+ private updateRows;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoResizeTextareaDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutoResizeTextareaDirective, "[libAutoResizeTextarea]", never, { "autoResizeMinRows": { "alias": "autoResizeMinRows"; "required": false; }; "autoResizeMaxRows": { "alias": "autoResizeMaxRows"; "required": false; }; "libAutoResizeTextarea": { "alias": "libAutoResizeTextarea"; "required": false; }; }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BimplusTextareaComponent implements OnInit, OnDestroy {
5
+ textareaControl: FormControl<any>;
6
+ private _textareaSubscription?;
7
+ textAreaValueChange: EventEmitter<string>;
8
+ private _text;
9
+ private _name;
10
+ private _placeholder;
11
+ private _readonly;
12
+ private _required;
13
+ private _rows;
14
+ private _activeAutoResizeTextarea;
15
+ private _minRows;
16
+ private _maxRows;
17
+ set text(value: string);
18
+ get text(): string;
19
+ set name(value: string);
20
+ get name(): string;
21
+ set placeholder(value: string);
22
+ get placeholder(): string;
23
+ set readonly(value: boolean);
24
+ get readonly(): boolean;
25
+ set required(value: boolean);
26
+ get required(): boolean;
27
+ set minRows(value: number);
28
+ get minRows(): number;
29
+ set maxRows(value: number);
30
+ get maxRows(): number;
31
+ set activeAutoResizeTextarea(value: boolean);
32
+ get activeAutoResizeTextarea(): boolean;
33
+ set rows(value: number);
34
+ get rows(): number;
35
+ constructor();
36
+ ngOnInit(): void;
37
+ getTextareaValue(): any;
38
+ onKeydown(event: KeyboardEvent): boolean;
39
+ ngOnDestroy(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BimplusTextareaComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<BimplusTextareaComponent, "lib-bimplus-textarea", never, { "text": { "alias": "text"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "activeAutoResizeTextarea": { "alias": "activeAutoResizeTextarea"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, { "textAreaValueChange": "textAreaValueChange"; }, never, never, true, never>;
42
+ }
@@ -0,0 +1,55 @@
1
+ import { OnInit, Renderer2, ElementRef, OnDestroy } from '@angular/core';
2
+ import { BimplusLocalizedWidgetComponent } from '../bimplus-localized-widget/bimplus-localized-widget.component';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import * as WebSdk from 'bimplus-websdk';
5
+ import { AttachmentLinkItem } from "./links-to-documents.component.interface";
6
+ import { ProjectNavigatorProject } from '../project-models/project-models.interface';
7
+ import { BimplusButtonClickEvent, BimplusButtonRowItem } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
8
+ import { DialogService } from "../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service";
9
+ import * as i0 from "@angular/core";
10
+ export declare const EMBEDDED_MODAL_DIALOGE_TYPE_FILE = "file";
11
+ export declare class LinksToDocumentsComponent extends BimplusLocalizedWidgetComponent implements OnInit, OnDestroy {
12
+ private readonly dialogService;
13
+ private renderer;
14
+ private el;
15
+ constructor(translateService: TranslateService, dialogService: DialogService, renderer: Renderer2, el: ElementRef);
16
+ private shadowRootElement;
17
+ private _rootObjectId;
18
+ isDestroyed: boolean;
19
+ localWormHole: boolean;
20
+ inProgress: boolean;
21
+ api: WebSdk.Api | null;
22
+ canCreateAttachmentLink: boolean;
23
+ canDeleteAttachmentLink: boolean;
24
+ project: ProjectNavigatorProject | null;
25
+ wormholeSelector: string | undefined;
26
+ env: string;
27
+ set rootObjectId(id: string);
28
+ get rootObjectId(): string;
29
+ private readonly _currentObjectId$;
30
+ _attachmentCount: number;
31
+ _attachments: AttachmentLinkItem[];
32
+ buttonRowItems: Array<BimplusButtonRowItem>;
33
+ ngOnInit(): void;
34
+ ngOnDestroy(): void;
35
+ fmt(string: string, ...formats: unknown[]): string;
36
+ /**--------------------------------------------------------------------------
37
+ * decorate link
38
+ --------------------------------------------------------------------------*/
39
+ _decorateLink(api: WebSdk.Api, link: WebSdk.AttachmentLink): AttachmentLinkItem;
40
+ private decorateAttachmentLinks;
41
+ private _createAttachmentLinkStructure;
42
+ private _loadAttachmentLinkStructure;
43
+ documentSelection: string[] | null;
44
+ isOpened: boolean;
45
+ embeddedModalContainer: string;
46
+ setModalVisibility(opened?: boolean): void;
47
+ closeEmbeddedModalFileSelection(): void;
48
+ _addLink(api: WebSdk.Api, ids: string[]): void;
49
+ createAttachmentLink(api: WebSdk.Api): void;
50
+ _deleteAttachmentLink(api: WebSdk.Api, id: string, $event: Event): void;
51
+ deleteAttachmentLink(attachment: AttachmentLinkItem, $event: Event): void;
52
+ buttonClicked($event: BimplusButtonClickEvent): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinksToDocumentsComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinksToDocumentsComponent, "lib-links-to-documents", never, { "api": { "alias": "api"; "required": false; }; "canCreateAttachmentLink": { "alias": "canCreateAttachmentLink"; "required": false; }; "canDeleteAttachmentLink": { "alias": "canDeleteAttachmentLink"; "required": false; }; "project": { "alias": "project"; "required": false; }; "wormholeSelector": { "alias": "wormholeSelector"; "required": false; }; "env": { "alias": "env"; "required": false; }; "rootObjectId": { "alias": "rootObjectId"; "required": false; }; }, {}, never, never, true, never>;
55
+ }
@@ -0,0 +1,11 @@
1
+ export interface AttachmentLinkItem {
2
+ id: string;
3
+ name: string;
4
+ fileName: string;
5
+ size: number;
6
+ link: string;
7
+ version: number;
8
+ fileNameShort: string;
9
+ extension: string;
10
+ objectId: string;
11
+ }