ngx-bimplus-components 0.0.149-28792-3 → 0.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/languages/strings_cs.json +72 -24
- package/assets/languages/strings_de.json +15 -4
- package/assets/languages/strings_en.json +5 -5
- package/assets/languages/strings_es.json +54 -6
- package/assets/languages/strings_fr.json +50 -6
- package/assets/languages/strings_it.json +50 -2
- package/assets/languages/strings_nl.json +796 -796
- package/assets/languages/strings_ro.json +55 -7
- package/assets/languages/strings_ru.json +93 -45
- package/assets/languages/strings_tr.json +50 -2
- package/assets/languages/strings_us.json +44 -8
- package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.mjs +7 -20
- package/esm2022/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.mjs +2 -5
- package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.component.mjs +7 -7
- package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-connection-designer/bimplus-connection-designer.service.mjs +4 -4
- package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-connection-designer-results/bimplus-connection-designer-results.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-contact/bimplus-contact.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-context-menu/bimplus-context-menu.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-context-menu/bimplus-context-menu.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-flat-tree/bimplus-flat-tree.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-floating-bar/bimplus-floating-bar.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-floating-bar/bimplus-floating-bar.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-floating-bar-body/bimplus-floating-bar-body.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-floating-bar-dragger/bimplus-floating-bar-dragger.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-floating-bar-header-content/bimplus-floating-bar-header-content.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.mjs +4 -4
- package/esm2022/lib/components/bimplus-floating-bar-hide-objects/bimplus-floating-bar-hide-objects.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-floating-bar-isolation-objects/bimplus-floating-bar-isolation-objects.component.mjs +4 -4
- package/esm2022/lib/components/bimplus-floating-bar-project-navigator/bimplus-floating-bar-project-navigator.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.component.mjs +4 -4
- package/esm2022/lib/components/bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service.mjs +3 -3
- package/esm2022/lib/components/bimplus-language-menu/bimplus-language-menu.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-localized-widget/bimplus-localized-widget.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-main-menu/bimplus-main-menu.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-navbar/bimplus-navbar.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-notify/bimplus-notify.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-object-complex-properties/bimplus-object-complex-properties.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-object-navigator/bimplus-object-navigator.component.mjs +6 -5
- package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-object-navigator/filter-criterium/filter-criterium.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-object-navigator/object-filter-result/object-filter-result.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-object-structure/bimplus-object-structure.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-overlay-dialog-error/bimplus-overlay-dialog-error.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.mjs +7 -10
- package/esm2022/lib/components/bimplus-panel-toolbar/bimplus-panel-toolbar.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-project-menu/bimplus-project-menu.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-sidenav/bimplus-sidenav.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-sidenav-drawer-content/bimplus-sidenav-drawer-content.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-storage-info/bimplus-storage-info.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-text-message/bimplus-text-message.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-tool-hub/bimplus-tool-hub.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-tool-hub/svgGenerator.mjs +1 -1
- package/esm2022/lib/components/bimplus-tool-hub/tool-hub-item/tool-hub-item.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-tool-hub/tool-hub-sub-item/tool-hub-sub-item.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-tooltip-message/bimplus-tooltip-message.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-tooltip-message/bimplus-tooltip-message.interface.mjs +1 -1
- package/esm2022/lib/components/bimplus-touch-menu/bimplus-touch-menu.component.mjs +5 -5
- package/esm2022/lib/components/bimplus-user-menu/bimplus-user-menu.component.mjs +3 -3
- package/esm2022/lib/components/bimplus-zoom/bimplus-zoom.component.mjs +5 -5
- package/esm2022/lib/components/expansion-panel/expansion-panel.component.mjs +3 -3
- package/esm2022/lib/components/expansion-panel-header/expansion-panel-header.component.mjs +3 -3
- package/esm2022/lib/components/expansion-panel-header-actions/expansion-panel-header-actions.component.mjs +3 -3
- package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
- package/esm2022/lib/components/object-properties-header/object-properties-header.component.mjs +6 -21
- package/esm2022/lib/components/object-properties-header/object-properties-header.interface.mjs +1 -1
- package/esm2022/lib/components/project-models/project-models.component.mjs +3 -3
- package/esm2022/lib/components/project-models/project-models.interface.mjs +1 -1
- package/esm2022/lib/components/resizable-panel/resizable-panel.component.mjs +5 -5
- package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +4 -4
- package/esm2022/lib/directives/component-draggable/componentsDraggable.directive.mjs +3 -3
- package/esm2022/lib/directives/draggable.directive.mjs +3 -3
- package/esm2022/lib/directives/resizable.directive.mjs +4 -4
- package/esm2022/lib/directives/x-draggable.directive.mjs +3 -3
- package/esm2022/lib/interfaces/bimplus-opacity-properties.interface.mjs +1 -1
- package/esm2022/lib/interfaces/bimplus-visibility-properties.interface.mjs +1 -1
- package/esm2022/lib/ngx-bimplus-components.component.mjs +3 -3
- package/esm2022/lib/ngx-bimplus-components.service.mjs +3 -3
- package/esm2022/lib/pipes/pxsuffix.pipe.mjs +3 -3
- package/esm2022/lib/services/cursors.service.mjs +3 -3
- package/esm2022/lib/services/language-strings.service.mjs +3 -3
- package/esm2022/lib/services/layout-manager.service.mjs +3 -3
- package/esm2022/lib/services/local-storage.service.mjs +4 -4
- package/esm2022/lib/services/resize-observer.service.mjs +4 -4
- package/esm2022/lib/types/types.mjs +1 -1
- package/esm2022/lib/utils/filterString.mjs +1 -1
- package/esm2022/lib/utils/filterStructureFetcher.mjs +1 -1
- package/esm2022/lib/utils/utils.mjs +1 -1
- package/esm2022/public-api.mjs +1 -17
- package/fesm2022/ngx-bimplus-components.mjs +248 -2315
- package/fesm2022/ngx-bimplus-components.mjs.map +1 -1
- package/lib/components/bimplus-buttons-row/bimplus-buttons-row.component.d.ts +3 -9
- package/lib/components/bimplus-buttons-row/bimplus-buttons-row.interface.d.ts +0 -5
- package/lib/components/bimplus-floating-bar-header-logo/bimplus-floating-bar-header-logo.component.d.ts +1 -1
- package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.component.d.ts +7 -7
- package/lib/components/bimplus-object-navigator/criteria-select-object-properties/criteria-select-object-properties.interface.d.ts +3 -3
- package/lib/components/bimplus-overlay-dialog-warning/bimplus-overlay-dialog-warning.component.d.ts +0 -3
- package/lib/components/bimplus-scrollable-container/bimplus-scrollable-container.component.d.ts +1 -1
- package/lib/components/object-properties-header/object-properties-header.component.d.ts +3 -5
- package/lib/components/object-properties-header/object-properties-header.interface.d.ts +0 -1
- package/package.json +5 -12
- package/public-api.d.ts +0 -16
- package/assets/images/default/Attachment_18_gray.svg +0 -1
- package/assets/images/default/Attachment_18_maincolor.svg +0 -3
- package/assets/images/default/Attachmentlink_18_gray.svg +0 -7
- package/assets/images/default/Attachmentlink_18_maincolor.svg +0 -7
- package/assets/images/default/Comments_18_gray.svg +0 -1
- package/assets/images/default/Comments_18_maincolor.svg +0 -4
- package/assets/images/default/Links_18_gray.svg +0 -1
- package/assets/images/default/Links_18_maincolor.svg +0 -4
- package/assets/images/default/ic_models.svg +0 -3
- package/assets/images/default/ic_models_maincolor.svg +0 -3
- package/assets/images/default/icn_grid_attachments.png +0 -0
- package/assets/images/default/icn_grid_hyperlinks.png +0 -0
- package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.component.mjs +0 -69
- package/esm2022/lib/components/bimplus-attachments/bimplus-attachments.interface.mjs +0 -34
- package/esm2022/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.mjs +0 -82
- package/esm2022/lib/components/bimplus-attachments/services/bimplus-attachments.service.mjs +0 -49
- package/esm2022/lib/components/bimplus-comment/bimplus-comment.component.mjs +0 -68
- package/esm2022/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.mjs +0 -58
- package/esm2022/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.mjs +0 -242
- package/esm2022/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.mjs +0 -2
- package/esm2022/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.mjs +0 -73
- package/esm2022/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.mjs +0 -75
- package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.mjs +0 -38
- package/esm2022/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.mjs +0 -10
- package/esm2022/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.mjs +0 -89
- package/esm2022/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.mjs +0 -33
- package/esm2022/lib/components/bimplus-textarea/autoResizeTextarea.directive.mjs +0 -83
- package/esm2022/lib/components/bimplus-textarea/bimplus-textarea.component.mjs +0 -122
- package/esm2022/lib/components/links-to-documents/links-to-documents.component.interface.mjs +0 -2
- package/esm2022/lib/components/links-to-documents/links-to-documents.component.mjs +0 -337
- package/esm2022/lib/components/object-hyperlinks/object-hyperlinks.component.mjs +0 -141
- package/esm2022/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.mjs +0 -36
- package/esm2022/lib/components/object-properties/object-properties.component.mjs +0 -261
- package/esm2022/lib/components/object-properties/object-properties.interface.mjs +0 -2
- package/esm2022/lib/components/object-properties-group/object-properties-group.component.mjs +0 -40
- package/esm2022/lib/components/object-properties-group/object-property-value/object-property-value.component.mjs +0 -55
- package/esm2022/lib/pipes/bit-converter.pipe.mjs +0 -46
- package/esm2022/lib/pipes/get-attribute-value.pipe.mjs +0 -110
- package/esm2022/lib/pipes/round.pipe.mjs +0 -20
- package/esm2022/lib/utils/objectProperties.mjs +0 -9
- package/lib/components/bimplus-attachments/bimplus-attachments.component.d.ts +0 -25
- package/lib/components/bimplus-attachments/bimplus-attachments.interface.d.ts +0 -19
- package/lib/components/bimplus-attachments/components/bimplus-attachment-item/bimplus-attachment-item.component.d.ts +0 -26
- package/lib/components/bimplus-attachments/services/bimplus-attachments.service.d.ts +0 -12
- package/lib/components/bimplus-comment/bimplus-comment.component.d.ts +0 -34
- package/lib/components/bimplus-input-text-field/bimplus-input-text-field.component.d.ts +0 -17
- package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.d.ts +0 -51
- package/lib/components/bimplus-object-comments-list/bimplusObjectCommentsI.d.ts +0 -11
- package/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.d.ts +0 -28
- package/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.d.ts +0 -23
- package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.component.d.ts +0 -16
- package/lib/components/bimplus-tabs-switcher/bimplus-tabs-switcher.interface.d.ts +0 -18
- package/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.d.ts +0 -36
- package/lib/components/bimplus-tabs-switcher/services/bimplus-tabs-switcher.service.d.ts +0 -15
- package/lib/components/bimplus-textarea/autoResizeTextarea.directive.d.ts +0 -24
- package/lib/components/bimplus-textarea/bimplus-textarea.component.d.ts +0 -42
- package/lib/components/links-to-documents/links-to-documents.component.d.ts +0 -55
- package/lib/components/links-to-documents/links-to-documents.component.interface.d.ts +0 -11
- package/lib/components/object-hyperlinks/object-hyperlinks.component.d.ts +0 -32
- package/lib/components/object-hyperlinks-item/object-hyperlinks-item.component.d.ts +0 -15
- package/lib/components/object-properties/object-properties.component.d.ts +0 -45
- package/lib/components/object-properties/object-properties.interface.d.ts +0 -21
- package/lib/components/object-properties-group/object-properties-group.component.d.ts +0 -11
- package/lib/components/object-properties-group/object-property-value/object-property-value.component.d.ts +0 -14
- package/lib/pipes/bit-converter.pipe.d.ts +0 -17
- package/lib/pipes/get-attribute-value.pipe.d.ts +0 -23
- package/lib/pipes/round.pipe.d.ts +0 -7
- package/lib/utils/objectProperties.d.ts +0 -2
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { RoundPipe } from './round.pipe';
|
|
3
|
-
import moment from 'moment';
|
|
4
|
-
import 'moment/min/locales';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class GetAttributeValue {
|
|
7
|
-
constructor() {
|
|
8
|
-
const locale = window.navigator.language;
|
|
9
|
-
moment.locale(locale);
|
|
10
|
-
}
|
|
11
|
-
_transformDouble(value) {
|
|
12
|
-
if (value.control && /^Enumeration$/i.test(value.control)) {
|
|
13
|
-
return value.enumdefinition[`${value.value}`];
|
|
14
|
-
}
|
|
15
|
-
return new RoundPipe().transform(value.value, value.decimal || 2);
|
|
16
|
-
}
|
|
17
|
-
_transformDatetime(value) {
|
|
18
|
-
moment.locale(window.navigator.language);
|
|
19
|
-
const localeDate = moment(value.value).format('L');
|
|
20
|
-
console.log(localeDate);
|
|
21
|
-
if (localeDate) {
|
|
22
|
-
return localeDate;
|
|
23
|
-
}
|
|
24
|
-
return value.value;
|
|
25
|
-
}
|
|
26
|
-
_transformGUIDorInt(value) {
|
|
27
|
-
if (value.control && /^Enumeration$/i.test(value.control)) {
|
|
28
|
-
return value.enumdefinition[`${value.value}`];
|
|
29
|
-
}
|
|
30
|
-
return value.value;
|
|
31
|
-
}
|
|
32
|
-
_transformString(value) {
|
|
33
|
-
if (value.control && /^Combobox$/i.test(value.control)) {
|
|
34
|
-
return value.value;
|
|
35
|
-
}
|
|
36
|
-
if (value.control && /^Enumeration$/i.test(value.control)) {
|
|
37
|
-
return value.enumdefinition[`${value.value}`];
|
|
38
|
-
}
|
|
39
|
-
return value.value;
|
|
40
|
-
}
|
|
41
|
-
_transformCheckbox(value) {
|
|
42
|
-
if (value.value === '1') {
|
|
43
|
-
return "True";
|
|
44
|
-
}
|
|
45
|
-
return "False";
|
|
46
|
-
}
|
|
47
|
-
_transformBoolean(value) {
|
|
48
|
-
if (value.value === '1'
|
|
49
|
-
|| /^true$/i.test(value.value)) {
|
|
50
|
-
return "True";
|
|
51
|
-
}
|
|
52
|
-
return "False";
|
|
53
|
-
}
|
|
54
|
-
transform(value) {
|
|
55
|
-
const _value = value.value;
|
|
56
|
-
if (this.isEmpty(_value)) {
|
|
57
|
-
return '';
|
|
58
|
-
}
|
|
59
|
-
if (this.isDouble(value)) {
|
|
60
|
-
return this._transformDouble(value);
|
|
61
|
-
}
|
|
62
|
-
if (this.isDatetime(value)) {
|
|
63
|
-
return this._transformDatetime(value);
|
|
64
|
-
}
|
|
65
|
-
if (this.isGUIDorInt(value)) {
|
|
66
|
-
return this._transformGUIDorInt(value);
|
|
67
|
-
}
|
|
68
|
-
if (this.isString(value)) {
|
|
69
|
-
return this._transformString(value);
|
|
70
|
-
}
|
|
71
|
-
if (this.isCheckbox(value)) {
|
|
72
|
-
return this._transformCheckbox(value);
|
|
73
|
-
}
|
|
74
|
-
if (this.isBoolean(value)) {
|
|
75
|
-
return this._transformBoolean(value);
|
|
76
|
-
}
|
|
77
|
-
return value.value;
|
|
78
|
-
}
|
|
79
|
-
isEmpty(value) {
|
|
80
|
-
return value === undefined || value === null || value === '';
|
|
81
|
-
}
|
|
82
|
-
isDouble(value) {
|
|
83
|
-
return typeof value.type === 'string' && /^double$/i.test(value.type);
|
|
84
|
-
}
|
|
85
|
-
isDatetime(value) {
|
|
86
|
-
return typeof value.type === 'string' && /^datetime$/i.test(value.type);
|
|
87
|
-
}
|
|
88
|
-
isGUIDorInt(value) {
|
|
89
|
-
return typeof value.type === 'string' && (/^guid$/i.test(value.type) || /^int(32)?$/i.test(value.type));
|
|
90
|
-
}
|
|
91
|
-
isString(value) {
|
|
92
|
-
return typeof value.type === 'string' && /^string$/i.test(value.type);
|
|
93
|
-
}
|
|
94
|
-
isCheckbox(value) {
|
|
95
|
-
return typeof value.type === 'string' && /^checkbox$/i.test(value.control);
|
|
96
|
-
}
|
|
97
|
-
isBoolean(value) {
|
|
98
|
-
return typeof value.type === 'string' && /^boolean$/i.test(value.type);
|
|
99
|
-
}
|
|
100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: GetAttributeValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
101
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: GetAttributeValue, isStandalone: true, name: "getAttributeValue" }); }
|
|
102
|
-
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: GetAttributeValue, decorators: [{
|
|
104
|
-
type: Pipe,
|
|
105
|
-
args: [{
|
|
106
|
-
name: 'getAttributeValue',
|
|
107
|
-
standalone: true
|
|
108
|
-
}]
|
|
109
|
-
}], ctorParameters: () => [] });
|
|
110
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWF0dHJpYnV0ZS12YWx1ZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWJpbXBsdXMtY29tcG9uZW50cy9zcmMvbGliL3BpcGVzL2dldC1hdHRyaWJ1dGUtdmFsdWUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUVwRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3pDLE9BQU8sTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUM1QixPQUFPLG9CQUFvQixDQUFDOztBQU81QixNQUFNLE9BQU8saUJBQWlCO0lBRTVCO1FBQ0UsTUFBTSxNQUFNLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUM7UUFDekMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN4QixDQUFDO0lBRUQsZ0JBQWdCLENBQUMsS0FBc0I7UUFDckMsSUFBRyxLQUFLLENBQUMsT0FBTyxJQUFJLGdCQUFnQixDQUFD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YW4ge1xyXG4gICAgcmV0dXJuIHR5cGVvZiB2YWx1ZS50eXBlID09PSAnc3RyaW5nJyAmJiAvXmRhdGV0aW1lJC9pLnRlc3QodmFsdWUudHlwZSk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGlzR1VJRG9ySW50KHZhbHVlOiBPYmplY3RBdHRyaWJ1dGUpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0eXBlb2YgdmFsdWUudHlwZSA9PT0gJ3N0cmluZycgJiYgKC9eZ3VpZCQvaS50ZXN0KHZhbHVlLnR5cGUpIHx8IC9eaW50KDMyKT8kL2kudGVzdCh2YWx1ZS50eXBlKSk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGlzU3RyaW5nKHZhbHVlOiBPYmplY3RBdHRyaWJ1dGUpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0eXBlb2YgdmFsdWUudHlwZSA9PT0gJ3N0cmluZycgJiYgL15zdHJpbmckL2kudGVzdCh2YWx1ZS50eXBlKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgaXNDaGVja2JveCh2YWx1ZTogT2JqZWN0QXR0cmlidXRlKTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdHlwZW9mIHZhbHVlLnR5cGUgPT09ICdzdHJpbmcnICYmIC9eY2hlY2tib3gkL2kudGVzdCh2YWx1ZS5jb250cm9sKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgaXNCb29sZWFuKHZhbHVlOiBPYmplY3RBdHRyaWJ1dGUpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0eXBlb2YgdmFsdWUudHlwZSA9PT0gJ3N0cmluZycgJiYgL15ib29sZWFuJC9pLnRlc3QodmFsdWUudHlwZSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class RoundPipe {
|
|
4
|
-
transform(value, decimal) {
|
|
5
|
-
const num = parseFloat(value);
|
|
6
|
-
const dec = decimal;
|
|
7
|
-
const mult = Math.pow(10, dec);
|
|
8
|
-
return "" + Math.round(num * mult) / mult;
|
|
9
|
-
}
|
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RoundPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
11
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: RoundPipe, isStandalone: true, name: "round" }); }
|
|
12
|
-
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RoundPipe, decorators: [{
|
|
14
|
-
type: Pipe,
|
|
15
|
-
args: [{
|
|
16
|
-
name: 'round',
|
|
17
|
-
standalone: true
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91bmQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1iaW1wbHVzLWNvbXBvbmVudHMvc3JjL2xpYi9waXBlcy9yb3VuZC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQU1wRCxNQUFNLE9BQU8sU0FBUztJQUVwQixTQUFTLENBQUMsS0FBYSxFQUFFLE9BQWU7UUFDdEMsTUFBTSxHQUFHLEdBQUcsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzlCLE1BQU0sR0FBRyxHQUFHLE9BQU8sQ0FBQztRQUVwQixNQUFNLElBQUksR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUUvQixPQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUM7SUFDNUMsQ0FBQzsrR0FUVSxTQUFTOzZHQUFULFNBQVM7OzRGQUFULFNBQVM7a0JBSnJCLElBQUk7bUJBQUM7b0JBQ0osSUFBSSxFQUFFLE9BQU87b0JBQ2IsVUFBVSxFQUFFLElBQUk7aUJBQ2pCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGlwZSwgUGlwZVRyYW5zZm9ybSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuQFBpcGUoe1xyXG4gIG5hbWU6ICdyb3VuZCcsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZVxyXG59KVxyXG5leHBvcnQgY2xhc3MgUm91bmRQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcblxyXG4gIHRyYW5zZm9ybSh2YWx1ZTogc3RyaW5nLCBkZWNpbWFsOiBudW1iZXIpOiBzdHJpbmcge1xyXG4gICAgY29uc3QgbnVtID0gcGFyc2VGbG9hdCh2YWx1ZSk7XHJcbiAgICBjb25zdCBkZWMgPSBkZWNpbWFsO1xyXG5cclxuICAgIGNvbnN0IG11bHQgPSBNYXRoLnBvdygxMCwgZGVjKTtcclxuXHJcbiAgICByZXR1cm4gXCJcIiArIE1hdGgucm91bmQobnVtICogbXVsdCkgLyBtdWx0O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function isObjectPropertyValueBlank(attrib) {
|
|
2
|
-
return attrib.value === undefined
|
|
3
|
-
|| attrib.value === null
|
|
4
|
-
|| attrib.value === ''
|
|
5
|
-
|| attrib.value === '\n\t'
|
|
6
|
-
|| attrib.value === '\n'
|
|
7
|
-
|| attrib.value === '\t';
|
|
8
|
-
}
|
|
9
|
-
//#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fCBhdHRyaWIudmFsdWUgPT09ICdcXHQnO1xyXG59Il19
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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,34 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/components/bimplus-object-comments-list/bimplus-object-comments-list.component.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/components/bimplus-overlay-dialog-confirm/bimplus-overlay-dialog-confirm.component.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from "@ngx-translate/core";
|
|
2
|
-
import { DialogService } from "../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service";
|
|
3
|
-
import { BimplusButtonClickEvent, BimplusButtonRowItem } from "../bimplus-buttons-row/bimplus-buttons-row.interface";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface ConfirmDialogInputData {
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
acceptButtonLocalizedString: string;
|
|
9
|
-
cancelButtonLocalizedString: string;
|
|
10
|
-
acceptCallback: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare class BimplusOverlayDialogConfirmComponent {
|
|
13
|
-
private readonly dialogService;
|
|
14
|
-
private readonly translateService;
|
|
15
|
-
title: string;
|
|
16
|
-
message: string;
|
|
17
|
-
acceptButtonLocalizedString: string;
|
|
18
|
-
cancelButtonLocalizedString: string;
|
|
19
|
-
acceptCallback: (() => void) | undefined;
|
|
20
|
-
protected readonly buttons: BimplusButtonRowItem[];
|
|
21
|
-
constructor(dialogService: DialogService, translateService: TranslateService);
|
|
22
|
-
close(): void;
|
|
23
|
-
keypressClose(event: KeyboardEvent): void;
|
|
24
|
-
buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
|
|
25
|
-
handleKeydown(event: KeyboardEvent): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BimplusOverlayDialogConfirmComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BimplusOverlayDialogConfirmComponent, "lib-bimplus-overlay-dialog-confirm", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
package/lib/components/bimplus-overlay-dialog-delete/bimplus-overlay-dialog-delete.component.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { BimplusButtonClickEvent, BimplusButtonRowItem } from '../bimplus-buttons-row/bimplus-buttons-row.interface';
|
|
3
|
-
import { DialogService } from '../bimplus-general-overlay-dialog/bimplus-general-overlay-dialog.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BimplusOverlayDialogDeleteComponent {
|
|
6
|
-
private readonly dialogService;
|
|
7
|
-
private readonly translateService;
|
|
8
|
-
private _title;
|
|
9
|
-
private _message;
|
|
10
|
-
private readonly data;
|
|
11
|
-
acceptCallback: (() => void) | undefined;
|
|
12
|
-
protected readonly buttons: BimplusButtonRowItem[];
|
|
13
|
-
get title(): string;
|
|
14
|
-
set title(value: string);
|
|
15
|
-
get message(): string;
|
|
16
|
-
set message(value: string);
|
|
17
|
-
constructor(dialogService: DialogService, translateService: TranslateService);
|
|
18
|
-
close(): void;
|
|
19
|
-
keypressClose(event: KeyboardEvent): void;
|
|
20
|
-
buttonRowButtonClicked($event: BimplusButtonClickEvent): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BimplusOverlayDialogDeleteComponent, never>;
|
|
22
|
-
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>;
|
|
23
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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>;
|
package/lib/components/bimplus-tabs-switcher/components/bimplus-tab/bimplus-tab.component.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|