@colijnit/sharedcomponents 1.0.57 → 1.0.58
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/bundles/colijnit-sharedcomponents.umd.js +3555 -6
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +17 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +18 -1
- package/esm2015/lib/businessobject/build-images-and-documentation-result.js +2 -0
- package/esm2015/lib/businessobject/co-document-right.bo.js +3 -0
- package/esm2015/lib/businessobject/drag-drop-container-element.js +2 -0
- package/esm2015/lib/businessobject/drag-drop-container.js +7 -0
- package/esm2015/lib/components/activity-list/activity-list.component.js +130 -0
- package/esm2015/lib/components/activity-list/activity-list.module.js +24 -0
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +47 -0
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.module.js +20 -0
- package/esm2015/lib/components/file-upload/file-upload.component.js +189 -0
- package/esm2015/lib/components/file-upload/file-upload.module.js +25 -0
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +397 -0
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +30 -0
- package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +469 -0
- package/esm2015/lib/components/files-upload/components/drag-drop-container.component.js +115 -0
- package/esm2015/lib/components/files-upload/files-upload.component.js +131 -0
- package/esm2015/lib/components/files-upload/files-upload.module.js +47 -0
- package/esm2015/lib/components/image-display/image-display.component.js +36 -0
- package/esm2015/lib/components/image-display/image-display.module.js +23 -0
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +89 -0
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.module.js +21 -0
- package/esm2015/lib/components/tile-renderer/tile-render.component.js +80 -0
- package/esm2015/lib/components/tile-renderer/tile-render.module.js +26 -0
- package/esm2015/lib/decorator/input-boolean.decorator.js +34 -0
- package/esm2015/lib/enum/document-email-report.enum.js +18 -0
- package/esm2015/lib/enum/domain-multiple-name.enum.js +13 -0
- package/esm2015/lib/enum/file-type.js +14 -0
- package/esm2015/lib/enum/files-upload-config-objects.js +3 -0
- package/esm2015/lib/enum/icon.enum.js +7 -1
- package/esm2015/lib/enum/internal-param.enum.js +38 -0
- package/esm2015/lib/enum/read-write-access-config-names.enum.js +2 -0
- package/esm2015/lib/enum/table-name.enum.js +86 -0
- package/esm2015/lib/enum/tag-category.enum.js +22 -0
- package/esm2015/lib/enum/tags-component-config-names.js +2 -0
- package/esm2015/lib/enum/tile-size-type.js +7 -0
- package/esm2015/lib/event/co-drag-event.js +2 -0
- package/esm2015/lib/event/co-drop-event.js +2 -0
- package/esm2015/lib/interface/key-value-pair.js +2 -0
- package/esm2015/lib/interface/operation-callback-simple-function.js +4 -0
- package/esm2015/lib/model/icon-svg.js +7 -1
- package/esm2015/lib/model/tag-tree-item.bo.js +16 -0
- package/esm2015/lib/model/tree-object.js +15 -0
- package/esm2015/lib/pipe/file-type-image.pipe.js +51 -0
- package/esm2015/lib/pipe/master-pipes.js +4 -2
- package/esm2015/lib/service/drag-drop.service.js +365 -0
- package/esm2015/lib/service/shared-connector.service.js +10 -1
- package/esm2015/lib/service/shared.service.js +2 -2
- package/esm2015/lib/utils/array-utils.js +202 -0
- package/esm2015/lib/utils/check-precision-and-scale-result.js +2 -0
- package/esm2015/lib/utils/check-within-stepped-bounds-result.js +2 -0
- package/esm2015/lib/utils/co-document-shared-field-logic.js +50 -0
- package/esm2015/lib/utils/enum-utils.js +128 -0
- package/esm2015/lib/utils/is-nill.function.js +5 -0
- package/esm2015/lib/utils/number-utils.js +390 -0
- package/esm2015/lib/utils/object-utils.js +278 -0
- package/esm2015/lib/utils/ref-code-utils.js +49 -0
- package/esm2015/lib/utils/string-utils.js +30 -1
- package/esm2015/public-api.js +5 -1
- package/fesm2015/colijnit-sharedcomponents.js +3528 -6
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/businessobject/build-images-and-documentation-result.d.ts +5 -0
- package/lib/businessobject/co-document-right.bo.d.ts +6 -0
- package/lib/businessobject/drag-drop-container-element.d.ts +6 -0
- package/lib/businessobject/drag-drop-container.d.ts +6 -0
- package/lib/components/access/read-write-access.scss +25 -0
- package/lib/components/access/style/_layout.scss +23 -0
- package/lib/components/access/style/_material-definition.scss +12 -0
- package/lib/components/access/style/_theme.scss +4 -0
- package/lib/components/access/style/material.scss +4 -0
- package/lib/components/activity-list/activity-list.component.d.ts +33 -0
- package/lib/components/activity-list/activity-list.module.d.ts +2 -0
- package/lib/components/activity-list/style/_layout.scss +68 -0
- package/lib/components/activity-list/style/_material-definition.scss +0 -0
- package/lib/components/activity-list/style/_theme.scss +4 -0
- package/lib/components/activity-list/style/material.scss +4 -0
- package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +14 -0
- package/lib/components/app-file-dropzone/app-file-dropzone.module.d.ts +2 -0
- package/lib/components/app-file-dropzone/style/_layout.scss +61 -0
- package/lib/components/app-file-dropzone/style/_material-definition.scss +0 -0
- package/lib/components/app-file-dropzone/style/_theme.scss +4 -0
- package/lib/components/app-file-dropzone/style/material.scss +4 -0
- package/lib/components/file-upload/file-upload.component.d.ts +42 -0
- package/lib/components/file-upload/file-upload.module.d.ts +2 -0
- package/lib/components/file-upload/style/_layout.scss +59 -0
- package/lib/components/file-upload/style/_material-definition.scss +2 -0
- package/lib/components/file-upload/style/_theme.scss +4 -0
- package/lib/components/file-upload/style/material.scss +4 -0
- package/lib/components/file-upload-popup/file-upload-popup.component.d.ts +75 -0
- package/lib/components/file-upload-popup/file-upload-popup.module.d.ts +2 -0
- package/lib/components/file-upload-popup/style/_layout.scss +48 -0
- package/lib/components/file-upload-popup/style/_material-definition.scss +2 -0
- package/lib/components/file-upload-popup/style/_theme.scss +5 -0
- package/lib/components/file-upload-popup/style/material.scss +4 -0
- package/lib/components/files-upload/components/base-file-upload.component.d.ts +98 -0
- package/lib/components/files-upload/components/drag-drop-container.component.d.ts +34 -0
- package/lib/components/files-upload/files-upload.component.d.ts +32 -0
- package/lib/components/files-upload/files-upload.module.d.ts +2 -0
- package/lib/components/files-upload/style/_layout.scss +49 -0
- package/lib/components/files-upload/style/_material-definition.scss +0 -0
- package/lib/components/files-upload/style/_theme.scss +5 -0
- package/lib/components/files-upload/style/material.scss +4 -0
- package/lib/components/image-display/image-display.component.d.ts +14 -0
- package/lib/components/image-display/image-display.module.d.ts +2 -0
- package/lib/components/image-display/style/_layout.scss +56 -0
- package/lib/components/image-display/style/_material-definition.scss +4 -0
- package/lib/components/image-display/style/_theme.scss +6 -0
- package/lib/components/image-display/style/material.scss +3 -0
- package/lib/components/multi-property-toggler/multiple-property-toggler.component.d.ts +27 -0
- package/lib/components/multi-property-toggler/multiple-property-toggler.module.d.ts +2 -0
- package/lib/components/multi-property-toggler/style/_layout.scss +24 -0
- package/lib/components/multi-property-toggler/style/_material-definition.scss +0 -0
- package/lib/components/multi-property-toggler/style/_theme.scss +4 -0
- package/lib/components/multi-property-toggler/style/material.scss +4 -0
- package/lib/components/tile-renderer/style/_layout.scss +90 -0
- package/lib/components/tile-renderer/style/_material-definition.scss +0 -0
- package/lib/components/tile-renderer/style/_theme.scss +4 -0
- package/lib/components/tile-renderer/style/material.scss +4 -0
- package/lib/components/tile-renderer/tile-render.component.d.ts +31 -0
- package/lib/components/tile-renderer/tile-render.module.d.ts +2 -0
- package/lib/decorator/input-boolean.decorator.d.ts +8 -0
- package/lib/enum/document-email-report.enum.d.ts +15 -0
- package/lib/enum/domain-multiple-name.enum.d.ts +10 -0
- package/lib/enum/file-type.d.ts +7 -0
- package/lib/enum/files-upload-config-objects.d.ts +22 -0
- package/lib/enum/icon.enum.d.ts +6 -0
- package/lib/enum/internal-param.enum.d.ts +34 -0
- package/lib/enum/read-write-access-config-names.enum.d.ts +4 -0
- package/lib/enum/table-name.enum.d.ts +84 -0
- package/lib/enum/tag-category.enum.d.ts +19 -0
- package/lib/enum/tags-component-config-names.d.ts +4 -0
- package/lib/enum/tile-size-type.d.ts +4 -0
- package/lib/event/co-drag-event.d.ts +5 -0
- package/lib/event/co-drop-event.d.ts +8 -0
- package/lib/interface/key-value-pair.d.ts +4 -0
- package/lib/interface/operation-callback-simple-function.d.ts +4 -0
- package/lib/model/tag-tree-item.bo.d.ts +18 -0
- package/lib/model/tree-object.d.ts +8 -0
- package/lib/pipe/file-type-image.pipe.d.ts +12 -0
- package/lib/service/drag-drop.service.d.ts +86 -0
- package/lib/service/shared-connector.service.d.ts +2 -0
- package/lib/style/_variables.scss +1 -1
- package/lib/utils/array-utils.d.ts +63 -0
- package/lib/utils/check-precision-and-scale-result.d.ts +4 -0
- package/lib/utils/check-within-stepped-bounds-result.d.ts +8 -0
- package/lib/utils/co-document-shared-field-logic.d.ts +7 -0
- package/lib/utils/enum-utils.d.ts +31 -0
- package/lib/utils/is-nill.function.d.ts +1 -0
- package/lib/utils/number-utils.d.ts +125 -0
- package/lib/utils/object-utils.d.ts +40 -0
- package/lib/utils/ref-code-utils.d.ts +10 -0
- package/lib/utils/string-utils.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, EventEmitter, OnDestroy, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { ScreenConfigAdapterComponent } from "@colijnit/corecomponents_v12";
|
|
3
|
+
import { TableName } from "../../../enum/table-name.enum";
|
|
4
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
5
|
+
import { FileType } from "@colijnit/mainapi/build/enum/file-type.enum";
|
|
6
|
+
import { OperationCallbackSimpleFunction } from "../../../interface/operation-callback-simple-function";
|
|
7
|
+
import { InternalParam } from "../../../enum/internal-param.enum";
|
|
8
|
+
import { FilesUploadConfigObjects } from "../../../enum/files-upload-config-objects";
|
|
9
|
+
import { TagCategory } from "../../../enum/tag-category.enum";
|
|
10
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
11
|
+
export declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterComponent, OnDestroy {
|
|
12
|
+
protected _dictionaryService: DictionaryService;
|
|
13
|
+
protected _container: ViewContainerRef;
|
|
14
|
+
protected _factory: ComponentFactoryResolver;
|
|
15
|
+
decimals: number;
|
|
16
|
+
forceReadonly: boolean;
|
|
17
|
+
maxLength: number;
|
|
18
|
+
objectConfigName: string;
|
|
19
|
+
redErrorBackground: boolean;
|
|
20
|
+
required: boolean;
|
|
21
|
+
set fileType(value: FileType);
|
|
22
|
+
get fileType(): FileType;
|
|
23
|
+
documents: CoDocument[];
|
|
24
|
+
documentTable: TableName;
|
|
25
|
+
set documentKey(value: string);
|
|
26
|
+
get documentKey(): string;
|
|
27
|
+
fullPageDrop: boolean;
|
|
28
|
+
canAdd: boolean;
|
|
29
|
+
dropMessage: string;
|
|
30
|
+
addWithButton: boolean;
|
|
31
|
+
canDelete: boolean;
|
|
32
|
+
noDragDropOrdering: boolean;
|
|
33
|
+
set readonly(value: boolean);
|
|
34
|
+
get readonly(): boolean;
|
|
35
|
+
askBeforeDelete: boolean;
|
|
36
|
+
resizeImages: boolean;
|
|
37
|
+
lockOperation: OperationCallbackSimpleFunction;
|
|
38
|
+
unlockOperation: OperationCallbackSimpleFunction;
|
|
39
|
+
beforeDeleteOperation: OperationCallbackSimpleFunction;
|
|
40
|
+
afterDeleteOperation: OperationCallbackSimpleFunction;
|
|
41
|
+
beforeCreateOperation: OperationCallbackSimpleFunction;
|
|
42
|
+
afterCreateOperation: OperationCallbackSimpleFunction;
|
|
43
|
+
beforeEditOperation: OperationCallbackSimpleFunction;
|
|
44
|
+
dontAskBeforeDelete: boolean;
|
|
45
|
+
noOwnDeleteOperation: boolean;
|
|
46
|
+
private _fileType;
|
|
47
|
+
set maxUploadSizeParam(value: InternalParam);
|
|
48
|
+
useWithoutSettingProps: boolean;
|
|
49
|
+
filesUploadConfigObjects: FilesUploadConfigObjects;
|
|
50
|
+
medicalUserGroups: boolean;
|
|
51
|
+
tagCategory: TagCategory;
|
|
52
|
+
tagReferenceTable: TableName;
|
|
53
|
+
displayReadWriteAccess: boolean;
|
|
54
|
+
useCustomFileDropEvent: boolean;
|
|
55
|
+
customFileDropEvent: EventEmitter<FileList>;
|
|
56
|
+
readonly documentsAdded: EventEmitter<CoDocument[]>;
|
|
57
|
+
readonly documentDeleted: EventEmitter<CoDocument>;
|
|
58
|
+
readonly sortableListChanged: EventEmitter<CoDocument[]>;
|
|
59
|
+
documentChangeEvent: EventEmitter<CoDocument>;
|
|
60
|
+
popupOpenedStateChange: EventEmitter<boolean>;
|
|
61
|
+
hidden: boolean;
|
|
62
|
+
onDrop(event: DragEvent): void;
|
|
63
|
+
onDragEnd(event: DragEvent): void;
|
|
64
|
+
onDragOver(event: DragEvent): void;
|
|
65
|
+
onDragEnter(event: DragEvent): void;
|
|
66
|
+
onDragLeave(event: DragEvent): void;
|
|
67
|
+
documentUnderEdit: CoDocument;
|
|
68
|
+
acceptedUploadFormats: string;
|
|
69
|
+
protected _maxUploadFileSize: number;
|
|
70
|
+
private _dragEnterTarget;
|
|
71
|
+
private _documentKey;
|
|
72
|
+
private _dropZone;
|
|
73
|
+
private _popup;
|
|
74
|
+
private _docChangeSub;
|
|
75
|
+
private _popupCloseSub;
|
|
76
|
+
private _readonly;
|
|
77
|
+
constructor(_dictionaryService: DictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
|
|
78
|
+
ngOnDestroy(): void;
|
|
79
|
+
private _showDropzone;
|
|
80
|
+
private _clearDropzone;
|
|
81
|
+
handleDelete(file: CoDocument): Promise<boolean>;
|
|
82
|
+
private _delete;
|
|
83
|
+
handleSortingChange(docs: CoDocument[]): void;
|
|
84
|
+
handleFileChange(event: any): Promise<void>;
|
|
85
|
+
handleEditDocumentClick(docToEdit: CoDocument): Promise<void>;
|
|
86
|
+
openPopup(): Promise<void>;
|
|
87
|
+
openPopupToAddDocumentByUrl(): void;
|
|
88
|
+
private _createDocumentToAddByUrl;
|
|
89
|
+
private _createAndFillPopupInstance;
|
|
90
|
+
protected convertFilesIntoCoDocuments(files: FileList): Promise<CoDocument[]>;
|
|
91
|
+
filesPicked(files: FileList): Promise<void>;
|
|
92
|
+
handleAcceptedFileTypesLoaded(value: FileType): void;
|
|
93
|
+
private _getFileAsDocument;
|
|
94
|
+
private _setInternalParamObj;
|
|
95
|
+
private _lockDocument;
|
|
96
|
+
private _unlockDocument;
|
|
97
|
+
private _prepareFileRights;
|
|
98
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnDestroy, Renderer2, EventEmitter } from "@angular/core";
|
|
2
|
+
import { DragDropService } from "../../../service/drag-drop.service";
|
|
3
|
+
export declare class DragDropContainerComponent implements AfterViewInit, OnDestroy {
|
|
4
|
+
private _elementRef;
|
|
5
|
+
private _renderer;
|
|
6
|
+
private _dragDropService;
|
|
7
|
+
/**
|
|
8
|
+
* Model of list containing draggable items
|
|
9
|
+
*/
|
|
10
|
+
sortableList: any[];
|
|
11
|
+
handleSort: boolean;
|
|
12
|
+
set enabled(value: boolean);
|
|
13
|
+
/**
|
|
14
|
+
* Class of the handle to drag operations
|
|
15
|
+
*/
|
|
16
|
+
dragHandle: string;
|
|
17
|
+
sortingChange: EventEmitter<any[]>;
|
|
18
|
+
showClass: boolean;
|
|
19
|
+
private _container;
|
|
20
|
+
private _enabled;
|
|
21
|
+
private _handleOrderSub;
|
|
22
|
+
private _initialized;
|
|
23
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, _dragDropService: DragDropService);
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Cleanup...
|
|
27
|
+
*/
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
handleEnabledChange(): void;
|
|
30
|
+
private _createDragDrop;
|
|
31
|
+
private _removeDragDrop;
|
|
32
|
+
private _handleOrder;
|
|
33
|
+
private _updateEnableDisableContainer;
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ElementRef, EventEmitter, OnDestroy, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { BaseFileUploadComponent } from "./components/base-file-upload.component";
|
|
3
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
4
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
5
|
+
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
6
|
+
export declare class FilesUploadComponent extends BaseFileUploadComponent implements OnDestroy {
|
|
7
|
+
protected _container: ViewContainerRef;
|
|
8
|
+
protected _factory: ComponentFactoryResolver;
|
|
9
|
+
set dropzone(value: boolean);
|
|
10
|
+
slideoutTemplate: TemplateRef<any>;
|
|
11
|
+
input: ElementRef;
|
|
12
|
+
label: string;
|
|
13
|
+
cfgNames: any;
|
|
14
|
+
customImageClick: boolean;
|
|
15
|
+
isEditable: boolean;
|
|
16
|
+
hideAvatars: boolean;
|
|
17
|
+
fileSavesOnPopupOkClick: string;
|
|
18
|
+
selected: string;
|
|
19
|
+
readonly editSlideoutSubmit: EventEmitter<void>;
|
|
20
|
+
tagsChangeEvent: EventEmitter<TagTreeItem[]>;
|
|
21
|
+
imageClick: EventEmitter<CoDocument>;
|
|
22
|
+
showClass(): boolean;
|
|
23
|
+
get editable(): boolean;
|
|
24
|
+
get empty(): boolean;
|
|
25
|
+
mouseOverAdd: boolean;
|
|
26
|
+
slideoutShown: boolean;
|
|
27
|
+
isDropzone: boolean;
|
|
28
|
+
constructor(dictionaryService: DictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
openFileBrowser(): Promise<void>;
|
|
31
|
+
handleAddClick(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@include export-module('files-upload-layout') {
|
|
2
|
+
.co-files-upload {
|
|
3
|
+
&:not(&.empty) {
|
|
4
|
+
min-height: 216px; // default of single tile-render dimensions
|
|
5
|
+
min-width: 117px;
|
|
6
|
+
|
|
7
|
+
&.dropzone {
|
|
8
|
+
height: 100px;
|
|
9
|
+
width: 200px;
|
|
10
|
+
max-height: 100px;
|
|
11
|
+
max-width: 200px;
|
|
12
|
+
min-height: 0; // default of single tile-render dimensions
|
|
13
|
+
min-width: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
file-upload {
|
|
18
|
+
margin: 1px;
|
|
19
|
+
margin-bottom: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
file-upload:not(:last-child) {
|
|
23
|
+
margin-right: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
file-upload.add-file {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.editable {
|
|
31
|
+
file-upload.add-file {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.filedrag {
|
|
37
|
+
.drop-files-wrapper {
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.co-drag-drop-container {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScreenConfigAdapterComponent } from '@colijnit/corecomponents_v12';
|
|
2
|
+
export declare class ImageDisplayComponent implements ScreenConfigAdapterComponent {
|
|
3
|
+
model: string;
|
|
4
|
+
label: string;
|
|
5
|
+
showClass(): boolean;
|
|
6
|
+
objectConfigName: string;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
required: boolean;
|
|
9
|
+
forceReadonly: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
maxLength: number;
|
|
12
|
+
decimals: number;
|
|
13
|
+
redErrorBackground: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@import "../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('co-image-display-layout') {
|
|
4
|
+
.co-image-display {
|
|
5
|
+
font-family: $tp-image-display-no-image-font-family;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
.image-wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
position: relative;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.image {
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 100%;
|
|
23
|
+
object-fit: contain;
|
|
24
|
+
}
|
|
25
|
+
.no-image {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
opacity: $tp-image-display-no-image-opacity;
|
|
33
|
+
.img {
|
|
34
|
+
width: 60%;
|
|
35
|
+
height: 60%;
|
|
36
|
+
background: url($tp-image-display-no-image-src) no-repeat top;
|
|
37
|
+
}
|
|
38
|
+
.no-image-label {
|
|
39
|
+
font-size: $tp-image-display-no-image-label-font-size;
|
|
40
|
+
text-align: center;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.cover-image {
|
|
45
|
+
div.image {
|
|
46
|
+
background-size: cover;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&.circle {
|
|
50
|
+
.img-wrapper,
|
|
51
|
+
.image {
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$tp-image-display-no-image-src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MCA1MCI+DQogICAgPHBhdGggZD0iTTM1LDE4bC0zLTRIMjJsLTMsNEgxNlYzNkg0MFYxOFpNMjQsMTZoNnYySDI0Wm0yLjUsMThBNi41LDYuNSwwLDEsMSwzMywyNy41LDYuNTEsNi41MSwwLDAsMSwyNi41LDM0Wk0zOCwyMkgzNlYyMGgyWiINCiAgICAgICAgICBmaWxsPSIjNDg0ZjYwIi8+DQogICAgPHJlY3QgeD0iMTAiIHk9IjE4IiB3aWR0aD0iNSIgaGVpZ2h0PSIxOCIgZmlsbD0iIzQ4NGY2MCIvPg0KICAgIDxyZWN0IHg9IjExIiB5PSIxNSIgd2lkdGg9IjMiIGhlaWdodD0iMiIgZmlsbD0iIzQ4NGY2MCIvPg0KICAgIDxwYXRoIGQ9Ik0yNi41LDMyQTQuNSw0LjUsMCwxLDEsMzEsMjcuNSw0LjUxLDQuNTEsMCwwLDEsMjYuNSwzMloiIGZpbGw9IiM0ODRmNjAiLz4NCjwvc3ZnPg0K" !default;
|
|
2
|
+
$tp-image-display-no-image-font-family: $tp-font-family !default;
|
|
3
|
+
$tp-image-display-no-image-label-font-size: 12px !default;
|
|
4
|
+
$tp-image-display-no-image-opacity: 0.3 !default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom component for enabling and disabling multiple items based on an input enum
|
|
3
|
+
* For the component to work, an enum is required and a list of enabled items so that
|
|
4
|
+
* the component knows which items from the enum are already enabled
|
|
5
|
+
*
|
|
6
|
+
* Note: can be improved by not only accepting a string array of enabledItemProperties but also a full cgref number because that will save one conversion step as
|
|
7
|
+
* BO's already contain these numbers.
|
|
8
|
+
*/
|
|
9
|
+
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
10
|
+
import { KeyValuePair } from "../../interface/key-value-pair";
|
|
11
|
+
import { Icon } from "../../enum/icon.enum";
|
|
12
|
+
export declare class MultiplePropertyTogglerComponent implements AfterViewInit {
|
|
13
|
+
label: string;
|
|
14
|
+
propertyNamesToToggle: any;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
enableditems: number;
|
|
17
|
+
enableditemsChange: EventEmitter<number>;
|
|
18
|
+
readonly onPropertyItemChange: EventEmitter<number>;
|
|
19
|
+
showClass(): boolean;
|
|
20
|
+
readonly Icons: typeof Icon;
|
|
21
|
+
objectifiedEnum: KeyValuePair[];
|
|
22
|
+
enabledItemNumberList: number[];
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
isValueActive(propertyToCheck: any): boolean;
|
|
25
|
+
clickToToggleProperty(target: any): void;
|
|
26
|
+
makeNumberArrayFromCgRefCodeSum(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@include export-module('co-multiple-property-toggler-layout') {
|
|
2
|
+
.co-multiple-property-toggler {
|
|
3
|
+
display: grid;
|
|
4
|
+
.row {
|
|
5
|
+
height: 40px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
float: left;
|
|
8
|
+
|
|
9
|
+
input-checkbox {
|
|
10
|
+
float: left;
|
|
11
|
+
position: relative;
|
|
12
|
+
background: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
label {
|
|
16
|
+
top: 2px;
|
|
17
|
+
position: relative;
|
|
18
|
+
font-size: inherit;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@include export-module('co-tile-render-layout') {
|
|
2
|
+
.co-tile-render {
|
|
3
|
+
box-shadow: 0 0 2px 0 rgba(72,79,96,.25);
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
height: 216px; // just defaults: consumer of <tile-renderer> can give his own outter dimensions in css
|
|
9
|
+
width: 117px;
|
|
10
|
+
background-color: #F7FAFA;
|
|
11
|
+
|
|
12
|
+
&.selected {
|
|
13
|
+
box-shadow: 0 0 2px 2px, #73B77E;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.small-size {
|
|
17
|
+
padding: 2px;
|
|
18
|
+
width: 58px;
|
|
19
|
+
height: 75px;
|
|
20
|
+
div.image {
|
|
21
|
+
width: 53px;
|
|
22
|
+
height: 55px;
|
|
23
|
+
icon.selected {
|
|
24
|
+
top: 50%;
|
|
25
|
+
left: 50%;
|
|
26
|
+
margin-right: -50%;
|
|
27
|
+
transform: translate(-50%, -50%);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
div.info {
|
|
31
|
+
span.price {
|
|
32
|
+
font-size: 11px;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:not(.selected):hover {
|
|
39
|
+
box-shadow: 0 0 2px 0 #1A73E8;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
div.image {
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
margin-bottom: 11px;
|
|
49
|
+
height: 120px;
|
|
50
|
+
background-color: white;
|
|
51
|
+
tag-label {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 4px;
|
|
54
|
+
left: 3px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
div.info {
|
|
59
|
+
position: relative;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
height: 100%;
|
|
63
|
+
padding: 5px;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
min-height: 40px;
|
|
66
|
+
span.label {
|
|
67
|
+
font-size: 10px;
|
|
68
|
+
}
|
|
69
|
+
span.description {
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
word-wrap: break-word;
|
|
72
|
+
}
|
|
73
|
+
span.price {
|
|
74
|
+
position: absolute;
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
bottom: 6px;
|
|
77
|
+
left: 6px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
image-display {
|
|
82
|
+
padding: 5px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, TemplateRef } from "@angular/core";
|
|
2
|
+
import { TileSizeType } from "../../enum/tile-size-type";
|
|
3
|
+
import { Icon } from "../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
|
+
export declare class TileRenderComponent implements OnDestroy {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly icons: typeof Icon;
|
|
8
|
+
infoTemplate: TemplateRef<any>;
|
|
9
|
+
imageDataUri: string;
|
|
10
|
+
tagDescription: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
tileSize: TileSizeType;
|
|
14
|
+
price: number;
|
|
15
|
+
hidePrice: boolean;
|
|
16
|
+
iconWhenSelected: string;
|
|
17
|
+
/**
|
|
18
|
+
* By default, this component shows a special icon and missing-image text for the image when it's empty. Set this to true
|
|
19
|
+
* to hide the whole image-display instead, when there was no image given.
|
|
20
|
+
*/
|
|
21
|
+
hideImageDisplayWhenNoImage: boolean;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
imageClick: EventEmitter<any>;
|
|
24
|
+
infoClick: EventEmitter<any>;
|
|
25
|
+
get inSmallTileMode(): boolean;
|
|
26
|
+
showClass(): boolean;
|
|
27
|
+
get inLargeTileMode(): boolean;
|
|
28
|
+
constructor(iconCacheService: IconCacheService);
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
protected readonly Icon: typeof Icon;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property decorator which enables template syntax like "someBoolInput" instead of "[someBoolInput]='true'". Makes use of the fact that
|
|
3
|
+
* Angular assigns an empty string to the input property in the naked "someBoolInput" template case.
|
|
4
|
+
*/
|
|
5
|
+
export declare function InputBoolean(bindingPropertyName?: string): PropertyDecorator;
|
|
6
|
+
export declare class InputBooleanDecorator {
|
|
7
|
+
static InputValueToBoolean(value: any): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum DocumentEmailReport {
|
|
2
|
+
Orderbevestiging = 1,
|
|
3
|
+
Afleverbon = 2,
|
|
4
|
+
Factuur = 4,
|
|
5
|
+
Bestelbon = 8,
|
|
6
|
+
Atelierbon = 16,
|
|
7
|
+
Werkbon = 32,
|
|
8
|
+
Vrachtbrief = 64,
|
|
9
|
+
Leverindicatie = 128,
|
|
10
|
+
Uitlopende_levering = 256,
|
|
11
|
+
Goederen_binnen = 512,
|
|
12
|
+
Afspraakbevestiging = 1024,
|
|
13
|
+
Herinneringsbestelbon = 2048,
|
|
14
|
+
Aanmaninglevertijd = 4096
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DomainMultipleName {
|
|
2
|
+
ArticlePublication = "ART_PUBLICATIE",
|
|
3
|
+
ArticlePublicationSales = "ART_PUBLICATIE_VERK",
|
|
4
|
+
ArticleSyncField = "DOM_SYNC_VELDEN",
|
|
5
|
+
DocumentPublication = "DOC_PUBLICATIE",
|
|
6
|
+
TextType = "TEKST_PUBLICATIE",
|
|
7
|
+
TextPublication = "TEKSTSOORT",
|
|
8
|
+
RotationOption = "ART_ROTATION_ALLOWED",
|
|
9
|
+
WeekDays = "WEEKDAGEN"
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TagsComponentConfigNames } from "./tags-component-config-names";
|
|
2
|
+
import { ReadWriteAccessConfigNames } from "./read-write-access-config-names.enum";
|
|
3
|
+
export interface FilesUploadConfigObjects {
|
|
4
|
+
TextDocumentTitle?: string;
|
|
5
|
+
TextDocumentFileSize?: string;
|
|
6
|
+
TextDocumentAddTagsButton?: string;
|
|
7
|
+
TextDocumentDownloadable?: string;
|
|
8
|
+
TextDocumentPublishTo?: string;
|
|
9
|
+
TextDocumentDescription?: string;
|
|
10
|
+
ImageDocumentFileSize?: string;
|
|
11
|
+
ImageDocumentAddTagsButton?: string;
|
|
12
|
+
ImageDocumentStoreGroups?: string;
|
|
13
|
+
ImageDocumentAttachNotification?: string;
|
|
14
|
+
ImageDocumentDisplayType?: string;
|
|
15
|
+
ImageDocumentPublishTo?: string;
|
|
16
|
+
ImageDocumentDescription?: string;
|
|
17
|
+
ImageDocumentTitle?: string;
|
|
18
|
+
ImageDocumentDimensions?: string;
|
|
19
|
+
TagsImageConfigNames?: TagsComponentConfigNames;
|
|
20
|
+
TagsTextConfigNames?: TagsComponentConfigNames;
|
|
21
|
+
readWriteAccess?: ReadWriteAccessConfigNames;
|
|
22
|
+
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -10,9 +10,12 @@ export declare enum Icon {
|
|
|
10
10
|
BringForwardRegular = "bring_forward_regular",
|
|
11
11
|
CheckDuotone = "check_duotone",
|
|
12
12
|
CheckRound = "check_round",
|
|
13
|
+
ClockRegular = "clock_regular",
|
|
14
|
+
CommentRegular = "comment_regular",
|
|
13
15
|
CrossSkinny = "cross_skinny",
|
|
14
16
|
DeleteLeftRegular = "delete_left_regular",
|
|
15
17
|
DeliveryTruck = "delivery_truck",
|
|
18
|
+
Dropzone = "dropzone",
|
|
16
19
|
Email = "email",
|
|
17
20
|
EnvelopeRegular = "envelope_regular",
|
|
18
21
|
EyeRegular = "eye_regular",
|
|
@@ -25,12 +28,15 @@ export declare enum Icon {
|
|
|
25
28
|
Lock = "lock",
|
|
26
29
|
MessageSmsRegular = "message_sms_regular",
|
|
27
30
|
MessageSmsSolid = "message_sms_solid",
|
|
31
|
+
PaperclipRegular = "paperclip_regular",
|
|
28
32
|
Pdf = "pdf",
|
|
33
|
+
PersonDiggingRegular = "person_digging_regular",
|
|
29
34
|
Print = "print",
|
|
30
35
|
PrintRegular = "print_regular",
|
|
31
36
|
PrintSolid = "print_solid",
|
|
32
37
|
SignatureField = "signature_field",
|
|
33
38
|
TagRegular = "tag_regular",
|
|
39
|
+
Trashbin = "trashbin",
|
|
34
40
|
Xml = "xml",
|
|
35
41
|
XSolid = "x_solid"
|
|
36
42
|
}
|