@eqproject/eqp-attachments 3.0.0 → 3.0.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.
- package/{esm2020 → esm2022}/eqproject-eqp-attachments.mjs +4 -4
- package/esm2022/lib/directives/eqp-common/dynamic-loader/dynamic-loader.directive.mjs +53 -0
- package/esm2022/lib/directives/eqp-common/eqp-common.service.mjs +78 -0
- package/esm2022/lib/directives/eqp-common/index.mjs +10 -0
- package/esm2022/lib/directives/eqp-common/models/base-field.model.mjs +57 -0
- package/esm2022/lib/directives/eqp-common/models/common-enum.model.mjs +8 -0
- package/esm2022/lib/directives/eqp-common/models/config-column.model.mjs +116 -0
- package/esm2022/lib/directives/eqp-common/models/filterConfig.model.mjs +318 -0
- package/esm2022/lib/directives/eqp-common/models/filterField.model.mjs +254 -0
- package/esm2022/lib/directives/eqp-common/models/form.model.mjs +168 -0
- package/esm2022/lib/directives/eqp-common/models/linqFilterResult.model.mjs +73 -0
- package/esm2022/lib/directives/eqp-common/models/tableColumn-field.model.mjs +107 -0
- package/esm2022/lib/eqp-attachments.component.mjs +1096 -0
- package/{esm2020 → esm2022}/lib/eqp-attachments.module.mjs +43 -43
- package/esm2022/lib/helpers/attachment.helper.mjs +66 -0
- package/{esm2020 → esm2022}/lib/interfaces/IAttachment.mjs +11 -11
- package/{esm2020 → esm2022}/lib/interfaces/IOptions.mjs +1 -1
- package/{esm2020 → esm2022}/lib/modules/material.module.mjs +231 -231
- package/{esm2020 → esm2022}/lib/services/eqp-attachment-dialog.service.mjs +103 -103
- package/{esm2020 → esm2022}/lib/services/eqp-attachment.service.mjs +23 -23
- package/{esm2020 → esm2022}/public-api.mjs +9 -9
- package/fesm2022/eqproject-eqp-attachments.mjs +2730 -0
- package/fesm2022/eqproject-eqp-attachments.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/directives/eqp-common/dynamic-loader/dynamic-loader.directive.d.ts +17 -0
- package/lib/directives/eqp-common/eqp-common.service.d.ts +21 -0
- package/lib/directives/eqp-common/index.d.ts +9 -0
- package/lib/directives/eqp-common/models/base-field.model.d.ts +52 -0
- package/lib/directives/eqp-common/models/common-enum.model.d.ts +6 -0
- package/lib/directives/eqp-common/models/config-column.model.d.ts +113 -0
- package/lib/directives/eqp-common/models/filterConfig.model.d.ts +264 -0
- package/lib/directives/eqp-common/models/filterField.model.d.ts +144 -0
- package/lib/directives/eqp-common/models/form.model.d.ts +129 -0
- package/lib/directives/eqp-common/models/linqFilterResult.model.d.ts +58 -0
- package/lib/directives/eqp-common/models/tableColumn-field.model.d.ts +31 -0
- package/lib/eqp-attachments.component.d.ts +319 -318
- package/lib/eqp-attachments.module.d.ts +13 -13
- package/lib/helpers/attachment.helper.d.ts +20 -20
- package/lib/interfaces/IAttachment.d.ts +21 -21
- package/lib/interfaces/IOptions.d.ts +11 -11
- package/lib/modules/material.module.d.ts +37 -37
- package/lib/services/eqp-attachment-dialog.service.d.ts +31 -31
- package/lib/services/eqp-attachment.service.d.ts +7 -7
- package/package.json +5 -11
- package/public-api.d.ts +6 -6
- package/esm2020/lib/eqp-attachments.component.mjs +0 -1064
- package/esm2020/lib/helpers/attachment.helper.mjs +0 -66
- package/fesm2015/eqproject-eqp-attachments.mjs +0 -1535
- package/fesm2015/eqproject-eqp-attachments.mjs.map +0 -1
- package/fesm2020/eqproject-eqp-attachments.mjs +0 -1532
- package/fesm2020/eqproject-eqp-attachments.mjs.map +0 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { FieldSizeClass } from "./common-enum.model";
|
|
3
|
+
import { BaseFieldModel, BaseType } from "./base-field.model";
|
|
4
|
+
import { ValidationObject } from "./filterConfig.model";
|
|
5
|
+
import { ComplexLinqPredicateDTO, LinqPredicateDTO, LookupCustomConfig, LookupDTO } from "./linqFilterResult.model";
|
|
6
|
+
import { DropdownPosition } from "@ng-select/ng-select";
|
|
7
|
+
import { DynamicLoaderDirectiveData } from "../dynamic-loader/dynamic-loader.directive";
|
|
8
|
+
export declare class FormField extends BaseFieldModel {
|
|
9
|
+
required?: boolean;
|
|
10
|
+
showInForm?: boolean;
|
|
11
|
+
booleanLabelPosition?: BoolLabelPosition;
|
|
12
|
+
formFieldType?: FormFieldType;
|
|
13
|
+
lookupObject?: LookupObject;
|
|
14
|
+
selectObject?: SelectObject;
|
|
15
|
+
validationProperties?: ValidationObject;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
externalTemplate?: TemplateRef<any>;
|
|
18
|
+
fieldSizeClass?: FieldSizeClass;
|
|
19
|
+
customFieldSizeClasses?: string;
|
|
20
|
+
dependentFieldKey?: string;
|
|
21
|
+
orderPosition?: number;
|
|
22
|
+
dependentValidation?: (value: any) => boolean;
|
|
23
|
+
static createFormFields(baseField: BaseFieldModel): FormField;
|
|
24
|
+
static createFormFields(baseFields: BaseFieldModel[]): FormField[];
|
|
25
|
+
private static createFormField;
|
|
26
|
+
}
|
|
27
|
+
export declare enum FormFieldType {
|
|
28
|
+
Text = 1,
|
|
29
|
+
Number = 2,
|
|
30
|
+
Date = 3,
|
|
31
|
+
Enum = 4,
|
|
32
|
+
Boolean = 5,
|
|
33
|
+
ExternalTemplate = 6,
|
|
34
|
+
Cvl = 7,
|
|
35
|
+
Lookup = 8,
|
|
36
|
+
DateTime = 9,
|
|
37
|
+
DateRange = 10
|
|
38
|
+
}
|
|
39
|
+
export declare enum BoolLabelPosition {
|
|
40
|
+
Before = "before",
|
|
41
|
+
After = "after"
|
|
42
|
+
}
|
|
43
|
+
export declare class LookupObject {
|
|
44
|
+
fullUrlHttpCall: string;
|
|
45
|
+
lookupEntityType: string;
|
|
46
|
+
showLookupCancelButton?: boolean;
|
|
47
|
+
isLookupSearchable?: boolean;
|
|
48
|
+
isLookupMultiple?: boolean;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
bindLabel?: string;
|
|
51
|
+
bindKey?: string;
|
|
52
|
+
items?: Array<any> | null;
|
|
53
|
+
notFoundText?: string;
|
|
54
|
+
genericAddComponent?: DynamicLoaderDirectiveData;
|
|
55
|
+
isMultiple?: boolean;
|
|
56
|
+
isSearchable?: boolean;
|
|
57
|
+
isClearable?: boolean;
|
|
58
|
+
isVirtualScroll?: boolean;
|
|
59
|
+
isReadonly?: boolean;
|
|
60
|
+
isRequired?: boolean;
|
|
61
|
+
isDisabled?: boolean;
|
|
62
|
+
entityType?: string;
|
|
63
|
+
formGroupInput?: any;
|
|
64
|
+
formControlNameInput?: any;
|
|
65
|
+
ngModelInput?: any;
|
|
66
|
+
isSearchWhileComposing?: boolean;
|
|
67
|
+
bindCompleteObject?: boolean;
|
|
68
|
+
appendToInput?: string;
|
|
69
|
+
disableReloadOnLookupAddingCompleteParent?: boolean;
|
|
70
|
+
showOptionTooltip?: boolean;
|
|
71
|
+
sortList?: boolean;
|
|
72
|
+
dataFilter?: Array<LinqPredicateDTO> | null;
|
|
73
|
+
customConfig?: LookupCustomConfig | null;
|
|
74
|
+
complexDataFilter?: Array<ComplexLinqPredicateDTO> | null;
|
|
75
|
+
initialItems?: Array<any> | null;
|
|
76
|
+
ngModelOptions?: any;
|
|
77
|
+
isEditable?: boolean;
|
|
78
|
+
isMultiline?: boolean;
|
|
79
|
+
dropdownPosition?: DropdownPosition;
|
|
80
|
+
selectOnTab?: boolean;
|
|
81
|
+
addButtonText?: string;
|
|
82
|
+
editButtonText?: string;
|
|
83
|
+
selectAll?: boolean;
|
|
84
|
+
selectAllText?: string;
|
|
85
|
+
groupBy?: string | ((value: any) => any);
|
|
86
|
+
groupValue?: (groupKey: string, children: any[]) => Object;
|
|
87
|
+
groupByProperty?: string;
|
|
88
|
+
selectableGroup?: boolean;
|
|
89
|
+
selectableGroupAsModel?: boolean;
|
|
90
|
+
clearAllText?: string;
|
|
91
|
+
customOption?: TemplateRef<any>;
|
|
92
|
+
customLabel?: TemplateRef<any>;
|
|
93
|
+
manipulateDataFn?: ((items: any) => LookupDTO[]) | undefined;
|
|
94
|
+
compareFunction?: (iteratedObject: any, bindedObject: any) => boolean;
|
|
95
|
+
}
|
|
96
|
+
export declare class SelectObject {
|
|
97
|
+
isEnumMultiSelect?: boolean;
|
|
98
|
+
showEnumCancelButton?: boolean;
|
|
99
|
+
isEnumSearchable?: boolean;
|
|
100
|
+
enumSearchText?: string;
|
|
101
|
+
arrayData?: any;
|
|
102
|
+
arrayKeyProperty?: string;
|
|
103
|
+
arrayValueProperty?: string;
|
|
104
|
+
enumData?: any;
|
|
105
|
+
enumDataToExclude?: Array<any>;
|
|
106
|
+
ngModelOptions?: any;
|
|
107
|
+
ngModelInput?: any;
|
|
108
|
+
isRequired?: boolean;
|
|
109
|
+
isMultiLanguage?: boolean;
|
|
110
|
+
multilanguagePrefixKey?: string;
|
|
111
|
+
isAlphabeticalOrderable?: boolean;
|
|
112
|
+
suffixIcon?: string;
|
|
113
|
+
prefixIcon?: string;
|
|
114
|
+
isReadonly?: boolean;
|
|
115
|
+
isSearchWhileComposing?: boolean;
|
|
116
|
+
appendToInput?: string | undefined;
|
|
117
|
+
dropdownPosition?: "bottom" | "top" | "auto";
|
|
118
|
+
selectOnTab?: boolean;
|
|
119
|
+
selectAll?: boolean;
|
|
120
|
+
selectAllText?: string;
|
|
121
|
+
selectableGroupAsModel?: boolean;
|
|
122
|
+
clearAllText?: string;
|
|
123
|
+
customOption?: TemplateRef<any>;
|
|
124
|
+
customLabel?: TemplateRef<any>;
|
|
125
|
+
class?: string;
|
|
126
|
+
}
|
|
127
|
+
export declare class BaseTypeConverter {
|
|
128
|
+
static convertToFormFieldType(baseType: BaseType): FormFieldType | undefined;
|
|
129
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { WherePartType } from "./filterConfig.model";
|
|
2
|
+
/**
|
|
3
|
+
* Classe utilizzata per la definizione di filtri avanzati.
|
|
4
|
+
* Si basa sul concetto del LinqPredicate documentato nella guida EqProject.
|
|
5
|
+
*
|
|
6
|
+
* Ciascun oggetto LinqPredicateDTO può contenenere la definizione di N filtri diversi (di tipo LinqFilterDTO) che potranno essere messi tutti in OR tra loro.
|
|
7
|
+
* In presenza di più oggetti di tipo LinqPredicateDTO tutti i LinqPredicateDTO saranni invece messi in AND tra loro.
|
|
8
|
+
* In questo modo sarà possibile realizzare condizioni complesse
|
|
9
|
+
*/
|
|
10
|
+
export declare class LinqPredicateDTO {
|
|
11
|
+
/**
|
|
12
|
+
* Elenco di filtri di uno stesso predicato.
|
|
13
|
+
* Tutti i filtri contenuti in questa proprietà saranno considerati parte di tante OR
|
|
14
|
+
*/
|
|
15
|
+
PropertyFilters: Array<LinqFilterDTO>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Permette di definire ogni singola condizione di una where part.
|
|
19
|
+
*/
|
|
20
|
+
export declare class LinqFilterDTO {
|
|
21
|
+
/**
|
|
22
|
+
* Nome della proprietà su cui applicare il filtro
|
|
23
|
+
*/
|
|
24
|
+
PropertyName: string;
|
|
25
|
+
/**
|
|
26
|
+
* Valore della proprietà su cui applicare il filtro
|
|
27
|
+
*/
|
|
28
|
+
PropertyValue: any;
|
|
29
|
+
/**
|
|
30
|
+
* Tipo di relazione. Identifica cioè l'operatore di confronto della where part
|
|
31
|
+
*/
|
|
32
|
+
RelationType: WherePartType;
|
|
33
|
+
/**
|
|
34
|
+
* Se RelationType = ContainsElement o NotContainsElement allora in questa proprietà ci verrà definito
|
|
35
|
+
* il nome della proprietà degli oggetti della lista su cui applicare l'operatore Any
|
|
36
|
+
*/
|
|
37
|
+
ListElementPropertyName: string;
|
|
38
|
+
static createFilter(propertyName: string, propertyValue: any, relationType: WherePartType, listElementPropertyName?: string): LinqFilterDTO;
|
|
39
|
+
}
|
|
40
|
+
export declare class LookupCustomConfig {
|
|
41
|
+
LabelProperties: Array<string> | null | undefined;
|
|
42
|
+
IncludeFullObject: boolean | null | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare class ComplexLinqPredicateDTO {
|
|
45
|
+
Predicates: Array<LinqPredicateDTO> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Ricostruisce l'array di predicati complessi a partire dalla matrice di LinqPredicateDTO passata nel parametro.
|
|
48
|
+
* Ogni riga della matrice diventerà un elemento della lista restituita.
|
|
49
|
+
* Ogni elemento delle lista conterrà i dati della riga della matrice.
|
|
50
|
+
* @param complexPredicates Restituisce un array di oggetti di tipo ComplexLinqPredicateDTO
|
|
51
|
+
*/
|
|
52
|
+
static CreateComplexPredicate(complexPredicates: Array<Array<LinqPredicateDTO>>): Array<ComplexLinqPredicateDTO>;
|
|
53
|
+
}
|
|
54
|
+
export declare class LookupDTO {
|
|
55
|
+
ID: number | string | null | undefined;
|
|
56
|
+
Label: string | null | undefined;
|
|
57
|
+
FullObject: any;
|
|
58
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseFieldModel, BaseType, BooleanValues } from "./base-field.model";
|
|
2
|
+
import { ConfigAction, ConfigColumn, Hyperlink, Icon, Image, TypeColumn } from "./config-column.model";
|
|
3
|
+
import { TemplateRef } from "@angular/core";
|
|
4
|
+
export declare class TableColumnField extends BaseFieldModel {
|
|
5
|
+
type?: TypeColumn;
|
|
6
|
+
actions?: Array<ConfigAction>;
|
|
7
|
+
booleanValues?: BooleanValues;
|
|
8
|
+
buttonMenuIcon?: string;
|
|
9
|
+
icons?: Array<Icon>;
|
|
10
|
+
containerStyle?: Object | Function;
|
|
11
|
+
isSearchable?: boolean;
|
|
12
|
+
hyperlink?: Hyperlink;
|
|
13
|
+
image?: Image;
|
|
14
|
+
additionalValue?: string;
|
|
15
|
+
externalTemplateSearchFunction?: ((row: any) => string | number) | string;
|
|
16
|
+
isSortable?: boolean;
|
|
17
|
+
isFilterable?: boolean;
|
|
18
|
+
isHidden?: boolean;
|
|
19
|
+
isSticky?: boolean;
|
|
20
|
+
isStickyEnd?: boolean;
|
|
21
|
+
externalTemplate?: TemplateRef<any>;
|
|
22
|
+
static createTableColumnFields(baseField: BaseFieldModel): TableColumnField;
|
|
23
|
+
static createTableColumnFields(baseFields: BaseFieldModel[]): TableColumnField[];
|
|
24
|
+
private static createTableColumnField;
|
|
25
|
+
static createConfigColumns(tableColumnFields: TableColumnField): ConfigColumn;
|
|
26
|
+
static createConfigColumns(tableColumnFields: TableColumnField[]): ConfigColumn[];
|
|
27
|
+
private static createConfigColumn;
|
|
28
|
+
}
|
|
29
|
+
export declare class BaseTypeConverterTable {
|
|
30
|
+
static convertToTypeColumn(baseType: BaseType): TypeColumn;
|
|
31
|
+
}
|