@yuuvis/client-core 2.20.0 → 3.0.0-beta.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/fesm2022/yuuvis-client-core.mjs +173 -169
  2. package/fesm2022/yuuvis-client-core.mjs.map +1 -1
  3. package/index.d.ts +3255 -68
  4. package/package.json +6 -6
  5. package/lib/common/pipes/filesize.pipe.d.ts +0 -18
  6. package/lib/common/pipes/index.d.ts +0 -5
  7. package/lib/common/pipes/keys.pipe.d.ts +0 -10
  8. package/lib/common/pipes/locale-date.pipe.d.ts +0 -12
  9. package/lib/common/pipes/locale-number.pipe.d.ts +0 -47
  10. package/lib/common/pipes/safe-html.pipe.d.ts +0 -28
  11. package/lib/common/services/native-notifications.d.ts +0 -8
  12. package/lib/common/services/native-notifications.interface.d.ts +0 -5
  13. package/lib/model/dms-object.interface.d.ts +0 -22
  14. package/lib/model/dms-object.model.d.ts +0 -26
  15. package/lib/model/file-upload-options.model.d.ts +0 -5
  16. package/lib/model/object-flavor.interface.d.ts +0 -46
  17. package/lib/model/range-value.interface.d.ts +0 -9
  18. package/lib/model/yuv-error.model.d.ts +0 -18
  19. package/lib/model/yuv-user.model.d.ts +0 -42
  20. package/lib/provider/available-backend-apps/available-backend-apps.model.d.ts +0 -6
  21. package/lib/provider/available-backend-apps/available-backend-apps.provider.d.ts +0 -6
  22. package/lib/provider/available-backend-apps/index.d.ts +0 -2
  23. package/lib/provider/index.d.ts +0 -3
  24. package/lib/provider/navigation/index.d.ts +0 -3
  25. package/lib/provider/navigation/provide.before.unload.guard.d.ts +0 -12
  26. package/lib/provider/navigation/provide.navigation-protection.d.ts +0 -2
  27. package/lib/provider/navigation/provide.popstate-dialog.guard.d.ts +0 -14
  28. package/lib/provider/provide.client.core.d.ts +0 -5
  29. package/lib/service/audit/audit.interface.d.ts +0 -47
  30. package/lib/service/audit/audit.service.d.ts +0 -37
  31. package/lib/service/auth/auth.interceptor.d.ts +0 -6
  32. package/lib/service/auth/auth.interface.d.ts +0 -34
  33. package/lib/service/auth/auth.service.d.ts +0 -54
  34. package/lib/service/backend/api.enum.d.ts +0 -7
  35. package/lib/service/backend/backend.interface.d.ts +0 -21
  36. package/lib/service/backend/backend.service.d.ts +0 -145
  37. package/lib/service/bpm/bpm.interface.d.ts +0 -87
  38. package/lib/service/bpm/bpm.service.d.ts +0 -19
  39. package/lib/service/cache/app-cache.service.d.ts +0 -43
  40. package/lib/service/catalog/catalog.interface.d.ts +0 -12
  41. package/lib/service/catalog/catalog.service.d.ts +0 -5
  42. package/lib/service/client-cache/client-cache.interface.d.ts +0 -5
  43. package/lib/service/client-cache/client-cache.service.d.ts +0 -35
  44. package/lib/service/clipboard/clipboard.interface.d.ts +0 -11
  45. package/lib/service/clipboard/clipboard.service.d.ts +0 -24
  46. package/lib/service/config/config.interface.d.ts +0 -34
  47. package/lib/service/config/config.service.d.ts +0 -37
  48. package/lib/service/config/core-config.d.ts +0 -12
  49. package/lib/service/config/core-config.tokens.d.ts +0 -7
  50. package/lib/service/connection/connection.service.d.ts +0 -31
  51. package/lib/service/connection/offline.interceptor.d.ts +0 -6
  52. package/lib/service/core-init/core-init.service.d.ts +0 -5
  53. package/lib/service/core-init/missing-translation-handler.d.ts +0 -8
  54. package/lib/service/core-init/translate-json-loader.d.ts +0 -20
  55. package/lib/service/device/device.interface.d.ts +0 -15
  56. package/lib/service/device/device.service.d.ts +0 -62
  57. package/lib/service/dms/dms.service.d.ts +0 -207
  58. package/lib/service/dms/dms.service.interface.d.ts +0 -60
  59. package/lib/service/event/custom.events.token.d.ts +0 -3
  60. package/lib/service/event/event.interface.d.ts +0 -36
  61. package/lib/service/event/event.service.d.ts +0 -30
  62. package/lib/service/event/events.d.ts +0 -22
  63. package/lib/service/idm/idm.service.d.ts +0 -43
  64. package/lib/service/idm/models/idm-cached-user.model.d.ts +0 -11
  65. package/lib/service/idm/models/idm-user-cache.model.d.ts +0 -9
  66. package/lib/service/idm/models/idm-user-response.model.d.ts +0 -24
  67. package/lib/service/idm/models/index.d.ts +0 -4
  68. package/lib/service/idm/models/organization-set-entry.model.d.ts +0 -12
  69. package/lib/service/logger/logger.interface.d.ts +0 -10
  70. package/lib/service/logger/logger.service.d.ts +0 -20
  71. package/lib/service/notification/notification.service.d.ts +0 -71
  72. package/lib/service/object-config/object-config.interface.d.ts +0 -62
  73. package/lib/service/object-config/object-config.service.d.ts +0 -40
  74. package/lib/service/object-form/object-form.interface.d.ts +0 -46
  75. package/lib/service/object-form/object-form.model.d.ts +0 -45
  76. package/lib/service/pending-changes/index.d.ts +0 -4
  77. package/lib/service/pending-changes/pending-changes-component.interface.d.ts +0 -6
  78. package/lib/service/pending-changes/pending-changes-dialog.guard.service.d.ts +0 -128
  79. package/lib/service/pending-changes/pending-changes-guard.service.d.ts +0 -14
  80. package/lib/service/pending-changes/pending-changes-tab.guard.directive.d.ts +0 -9
  81. package/lib/service/pending-changes/pending-changes.service.d.ts +0 -58
  82. package/lib/service/prediction/prediction.interface.d.ts +0 -18
  83. package/lib/service/prediction/prediction.service.d.ts +0 -15
  84. package/lib/service/retention/retention.interface.d.ts +0 -5
  85. package/lib/service/retention/retention.service.d.ts +0 -26
  86. package/lib/service/search/search.service.d.ts +0 -55
  87. package/lib/service/search/search.service.interface.d.ts +0 -123
  88. package/lib/service/search/search.utils.d.ts +0 -18
  89. package/lib/service/session-storage/session-storage.service.d.ts +0 -15
  90. package/lib/service/system/system.enum.d.ts +0 -143
  91. package/lib/service/system/system.interface.d.ts +0 -165
  92. package/lib/service/system/system.service.d.ts +0 -175
  93. package/lib/service/toast/toast.interface.d.ts +0 -8
  94. package/lib/service/toast/toast.service.d.ts +0 -17
  95. package/lib/service/toast/toast.styles.d.ts +0 -1
  96. package/lib/service/upload/upload.interface.d.ts +0 -56
  97. package/lib/service/upload/upload.service.d.ts +0 -160
  98. package/lib/service/user/user-storage.service.d.ts +0 -18
  99. package/lib/service/user/user.providers.d.ts +0 -4
  100. package/lib/service/user/user.service.d.ts +0 -67
  101. package/lib/util/utils.d.ts +0 -123
  102. package/lib/util/utils.helper.enum.d.ts +0 -13
@@ -1,143 +0,0 @@
1
- export declare const TENANT_HEADER = "X-ID-TENANT-NAME";
2
- export declare enum Situation {
3
- EDIT = "EDIT",
4
- CREATE = "CREATE",
5
- SEARCH = "SEARCH"
6
- }
7
- export declare const SystemType: {
8
- OBJECT: string;
9
- DOCUMENT: string;
10
- FOLDER: string;
11
- AUDIT: string;
12
- ITEM: string;
13
- RELATIONSHIP: string;
14
- SOT: string;
15
- };
16
- export declare const SystemResult: {
17
- DELETE: string;
18
- };
19
- export declare const AdministrationRoles: {
20
- ADMIN: string;
21
- SYSTEM: string;
22
- MANAGE_SETTINGS: string;
23
- };
24
- export declare const UserRoles: {
25
- MULTI_TENANT: string;
26
- };
27
- export declare const SystemSOT: {
28
- DESTRUCTION_RETENTION: string;
29
- };
30
- export declare const RetentionField: {
31
- RETENTION_END: string;
32
- RETENTION_START: string;
33
- DESTRUCTION_DATE: string;
34
- };
35
- export declare const RelationshipTypeField: {
36
- SOURCE_ID: string;
37
- TARGET_ID: string;
38
- };
39
- export declare const BaseObjectTypeField: {
40
- PARENT_ID: string;
41
- PARENT_OBJECT_TYPE_ID: string;
42
- PARENT_VERSION_NUMBER: string;
43
- TENANT: string;
44
- ACL: string;
45
- TRACE_ID: string;
46
- SECONDARY_OBJECT_TYPE_IDS: string;
47
- BASE_TYPE_ID: string;
48
- TAGS: string;
49
- OBJECT_ID: string;
50
- RETENTION_END: string;
51
- RETENTION_START: string;
52
- DESTRUCTION_DATE: string;
53
- OBJECT_TYPE_ID: string;
54
- VERSION_NUMBER: string;
55
- CREATION_DATE: string;
56
- CREATED_BY: string;
57
- MODIFICATION_DATE: string;
58
- MODIFIED_BY: string;
59
- };
60
- export declare const ClientDefaultsObjectTypeField: {
61
- TITLE: string;
62
- DESCRIPTION: string;
63
- };
64
- export declare const ContentStreamField: {
65
- LENGTH: string;
66
- MIME_TYPE: string;
67
- FILENAME: string;
68
- ID: string;
69
- RANGE: string;
70
- REPOSITORY_ID: string;
71
- DIGEST: string;
72
- ARCHIVE_PATH: string;
73
- };
74
- export declare const AuditField: {
75
- REFERRED_OBJECT_ID: string;
76
- CREATION_DATE: string;
77
- VERSION: string;
78
- DETAIL: string;
79
- CREATED_BY: string;
80
- ACTION: string;
81
- SUBACTION: string;
82
- };
83
- export declare const ParentField: {
84
- asvaktenzeichen: string;
85
- asvaktenzeichentext: string;
86
- asvsichtrechte: string;
87
- asvvorgangsname: string;
88
- asvvorgangsnummer: string;
89
- };
90
- export declare enum ContentStreamAllowed {
91
- ALLOWED = "allowed",
92
- NOT_ALLOWED = "notallowed",
93
- REQUIRED = "required"
94
- }
95
- export declare enum Classification {
96
- STRING_CATALOG_I18N = "i18n:catalog",
97
- STRING_CATALOG_CUSTOM = "custom:catalog",
98
- STRING_CATALOG_DYNAMIC = "dynamic:catalog",
99
- STRING_CATALOG = "catalog",
100
- STRING_ORGANIZATION = "id:organization",
101
- STRING_ORGANIZATION_SET = "id:organization:set",
102
- STRING_REFERENCE = "id:reference",
103
- STRING_EMAIL = "email",
104
- STRING_URL = "url",
105
- STRING_PHONE = "phone",
106
- NUMBER_FILESIZE = "filesize",
107
- NUMBER_DIGIT = "digit",
108
- BOOLEAN_SWITCH = "switch",
109
- SYSTEM_SOT = "systemsot",
110
- PREDICTION_CLASSIFY = "prediction:classify",
111
- TABLE_SORTABLE = "sortable"
112
- }
113
- export declare enum ObjectTypeClassification {
114
- SEARCH_FALSE = "appClient:search:false",
115
- CREATE_FALSE = "appClient:create:false",
116
- OBJECT_TYPE_ICON = "appClient:icon"
117
- }
118
- export declare enum ObjectTypePropertyClassification {
119
- SUMMARY_HIDDEN = "appClient:summary:hidden"
120
- }
121
- export declare enum SecondaryObjectTypeClassification {
122
- REQUIRED = "appClient:required",
123
- PRIMARY = "appClient:primary",
124
- EXTENSION_ADD_FALSE = "appClient:extension:add:false",
125
- EXTENSION_REMOVE_FALSE = "appClient:extension:remove:false"
126
- }
127
- export declare enum InternalFieldType {
128
- STRING_ORGANIZATION_SET = "string:organization:set",
129
- STRING_ORGANIZATION = "string:organization",
130
- STRING_REFERENCE = "string:reference",
131
- STRING_CATALOG = "string:catalog",
132
- STRING_CATALOG_I18N = "string:catalog:i18n",
133
- STRING_DYNAMIC_CATALOG = "string:catalog:dynamic",
134
- BOOLEAN_SWITCH = "boolean:switch"
135
- }
136
- export declare enum ObjectTag {
137
- AFO = "appclient:dlm:prepare"
138
- }
139
- export declare const AFO_STATE: {
140
- IN_PROGRESS: number;
141
- READY: number;
142
- };
143
- export declare const ColumnConfigSkipFields: string[];
@@ -1,165 +0,0 @@
1
- import { ObjectTypeFieldInternalType, ObjectTypeFieldType } from '../object-form/object-form.interface';
2
- /**
3
- * Virtual object types.
4
- * They are a combination of an object type ID and/or a list of SOTs
5
- */
6
- export interface VirtualObjectType {
7
- id: string;
8
- icon?: string;
9
- objectType?: string;
10
- sots?: string[];
11
- }
12
- /**
13
- * Interface providing system definition
14
- */
15
- export interface SystemDefinition {
16
- version: number;
17
- lastModificationDate: unknown;
18
- objectTypes: ObjectType[];
19
- secondaryObjectTypes: SecondaryObjectType[];
20
- relationships: Relationship[];
21
- i18n: Localization;
22
- allFields: Record<string, SchemaResponseFieldDefinition>;
23
- }
24
- export interface GenericObjectType extends ObjectType {
25
- isSot?: boolean;
26
- }
27
- export interface _ObjectTypeBase {
28
- id: string;
29
- label?: string;
30
- classification?: string[];
31
- description?: string;
32
- baseId?: string;
33
- contentStreamAllowed?: string;
34
- fields: ObjectTypeField[];
35
- }
36
- /**
37
- * Object Type interface
38
- */
39
- export interface ObjectType extends _ObjectTypeBase {
40
- isFolder: boolean;
41
- creatable: boolean;
42
- secondaryObjectTypes: {
43
- id: string;
44
- static?: boolean;
45
- }[];
46
- }
47
- export interface Relationship {
48
- id: string;
49
- label?: string;
50
- allowedSourceTypes: string[];
51
- allowedTargetTypes: string[];
52
- fields: ObjectTypeField[];
53
- }
54
- /**
55
- * Interface providing secondary object type
56
- */
57
- export type SecondaryObjectType = _ObjectTypeBase;
58
- export interface _ObjectTypeFieldBase {
59
- id: string;
60
- name: string;
61
- description?: string;
62
- propertyType: ObjectTypeFieldType;
63
- cardinality: 'single' | 'multi';
64
- required: boolean;
65
- updatability?: 'readonly' | 'readwrite' | 'oncreate' | 'byhooks';
66
- queryable?: boolean;
67
- classifications?: string[];
68
- resolution?: string;
69
- columnDefinitions?: SchemaResponseFieldDefinition[];
70
- }
71
- /**
72
- * Interface for a secondary object type field
73
- */
74
- export interface ObjectTypeField extends _ObjectTypeFieldBase {
75
- /**
76
- * Internal type that is generated by the system service
77
- * when schema is fetched. Most of the time this will match
78
- * the propertyType
79
- */
80
- _internalType: ObjectTypeFieldInternalType;
81
- label?: string;
82
- }
83
- export interface VisibleObjectTag {
84
- tagName: string;
85
- tagValues?: unknown[];
86
- }
87
- /**
88
- * Base definition of the kind of data we'll receive
89
- * from the backend asking for native schema
90
- */
91
- export interface SchemaResponse {
92
- version: number;
93
- lastModificationDate: string;
94
- propertyDefinition: SchemaResponseFieldDefinition[];
95
- typeDocumentDefinition: SchemaResponseDocumentTypeDefinition[];
96
- typeFolderDefinition: SchemaResponseFolderTypeDefinition[];
97
- typeSecondaryDefinition: SchemaResponseDocumentTypeDefinition[];
98
- typeRelationshipDefinition: SchemaResponseRelationDefinition[];
99
- }
100
- /**
101
- * Interface for create the schema from the servers schema type definition response
102
- */
103
- export interface SchemaResponseTypeDefinition {
104
- id: string;
105
- description?: string;
106
- baseId: string;
107
- propertyReference: {
108
- value: string;
109
- }[];
110
- secondaryObjectTypeId: {
111
- value: string;
112
- static?: boolean;
113
- }[];
114
- classification: string[];
115
- }
116
- export interface SchemaResponseRelationDefinition extends SchemaResponseTypeDefinition {
117
- allowedSourceType: {
118
- objectTypeReference: string;
119
- }[];
120
- allowedTargetType: {
121
- objectTypeReference: string;
122
- }[];
123
- }
124
- export type SchemaResponseFolderTypeDefinition = SchemaResponseTypeDefinition;
125
- export interface SchemaResponseDocumentTypeDefinition extends SchemaResponseTypeDefinition {
126
- contentStreamAllowed?: string;
127
- }
128
- /**
129
- * Interface for create the schema from the servers schema field definition response
130
- */
131
- export interface SchemaResponseFieldDefinition extends _ObjectTypeFieldBase {
132
- columnDefinitions?: SchemaResponseFieldDefinition[];
133
- }
134
- /**
135
- * Object type fields classification property (schema)
136
- */
137
- export interface ClassificationEntry {
138
- classification: string;
139
- options: string[];
140
- }
141
- /**
142
- * Secondary object types that could be applied to a particular dms object
143
- */
144
- export interface ApplicableSecondaries {
145
- primarySOTs: SecondaryObjectType[];
146
- extendingSOTs: SecondaryObjectType[];
147
- }
148
- export interface Localization {
149
- [key: string]: string;
150
- }
151
- export interface UserPermissions {
152
- create: UserPermissionsSection;
153
- read: UserPermissionsSection;
154
- write: UserPermissionsSection;
155
- delete: UserPermissionsSection;
156
- }
157
- export interface UserPermissionsSection {
158
- folderTypes: string[];
159
- objectTypes: string[];
160
- secondaryObjectTypes: string[];
161
- }
162
- export interface ObjectTypePermissions {
163
- createableObjectTypes: string[];
164
- searchableObjectTypes: string[];
165
- }
@@ -1,175 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { AuthData } from './../auth/auth.service';
3
- import { ClassificationEntry, GenericObjectType, Localization, ObjectType, ObjectTypeField, ObjectTypePermissions, Relationship, SchemaResponse, SecondaryObjectType, SystemDefinition } from './system.interface';
4
- import { ObjectTypeFieldInternalType } from '../object-form/object-form.interface';
5
- import { DmsObject } from '../../model/dms-object.model';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Providing system definitions.
9
- */
10
- export declare class SystemService {
11
- #private;
12
- system?: SystemDefinition;
13
- system$: Observable<SystemDefinition>;
14
- authData?: AuthData;
15
- /**
16
- * Get all object types
17
- * @param withLabels Whether or not to also add the types labels
18
- */
19
- getObjectTypes(withLabels?: boolean, situation?: 'search' | 'create'): GenericObjectType[];
20
- /**
21
- * Get all secondary object types
22
- * @param withLabels Whether or not to also add the types labels
23
- */
24
- getSecondaryObjectTypes(withLabels?: boolean, situation?: 'search' | 'create'): SecondaryObjectType[];
25
- /**
26
- * Get a particular object type
27
- * @param objectTypeId ID of the object type
28
- * @param withLabel Whether or not to also add the types label
29
- */
30
- getObjectType(objectTypeId: string, withLabel?: boolean): GenericObjectType | undefined;
31
- /**
32
- * Get a particular secondary object type
33
- * @param objectTypeId ID of the object type
34
- * @param withLabel Whether or not to also add the types label
35
- */
36
- getSecondaryObjectType(objectTypeId: string, withLabel?: boolean): SecondaryObjectType | undefined;
37
- getRelationship(id: string, withLabel?: boolean): Relationship | undefined;
38
- /**
39
- * Get supported relationships for a given dms object
40
- * @param dmsObject DmsObject to get supported relationships for
41
- */
42
- getSupportedRelationships(dmsObject: DmsObject, withLabel?: boolean): Relationship[];
43
- /**
44
- * Get the base document type all documents belong to
45
- * @param withLabel Whether or not to also add the types label
46
- */
47
- getBaseDocumentType(withLabel?: boolean): ObjectType;
48
- /**
49
- * Get the base folder type all folders belong to
50
- * @param withLabel Whether or not to also add the types label
51
- */
52
- getBaseFolderType(withLabel?: boolean): ObjectType;
53
- /**
54
- * Get the base object type all dms objects belong to
55
- */
56
- getBaseType(): ObjectType;
57
- /**
58
- * Get the resolved object type with all fields ( including fields from related secondary types )
59
- */
60
- getResolvedType(objectTypeId?: string): {
61
- id: string;
62
- fields: ObjectTypeField[];
63
- };
64
- /**
65
- * Get the resolved object tags
66
- */
67
- getResolvedTags(objectTypeId: string): {
68
- id: string;
69
- tagName: string;
70
- tagValues: any;
71
- fields: ObjectTypeField[];
72
- }[];
73
- /**
74
- * Get a list of classifications for a given object type including the
75
- * classifications of its static secondary object types
76
- * @param objectTypeId ID of the object type
77
- */
78
- getResolvedClassifications(objectTypeId: string): string[];
79
- /**
80
- * Visible tags are defined by a classification on the object type (e.g. 'tag[tenkolibri:process,1,2,3]').
81
- *
82
- * The example will only return tags with the name 'tenkolibri:process'
83
- * and values of either 1, 2 or 3. All other tags will be ignored.
84
- *
85
- * @param objectTypeId ID of the object type to get the visible tags for
86
- * @returns object where the property name is the name of the tag and its value are the visible values
87
- * for that tag (if values is emoty all values are allowed)
88
- */
89
- getVisibleTags(objectTypeId: string): {
90
- [tagName: string]: any[];
91
- };
92
- private fetchVisibleTags;
93
- filterVisibleTags(objectTypeId: string, tagsValue: Array<Array<any>>): Array<Array<any>>;
94
- /**
95
- * Get the icon for an object type. This will return an SVG as a string.
96
- * @param objectTypeId ID of the object type
97
- * @param fallback ID of a fallback icon that should be used if the given object type has no icon yet
98
- */
99
- getObjectTypeIcon(objectTypeId: string, fallback?: string): Observable<string>;
100
- /**
101
- * Get the URI of an object type icon.
102
- * @param objectTypeId ID of the object type
103
- * @param fallback ID of a fallback icon that should be used if the given object type has no icon yet
104
- */
105
- getObjectTypeIconUri(objectTypeId: string, fallback?: string): string;
106
- private getFallbackIcon;
107
- getLocalizedResource(key: string): string;
108
- getLocalizedLabel(id: string): string;
109
- getLocalizedDescription(id: string): string;
110
- /**
111
- * Determine whether or not the given object type field is a system field
112
- * @param field Object type field to be checked
113
- */
114
- isSystemProperty(field: ObjectTypeField): boolean;
115
- /**
116
- * Fetches the backends system definition and updates system$ Observable.
117
- * Subscribe to the system$ observable instead of calling this function, otherwise you'll trigger fetching the
118
- * system definition every time.
119
- *
120
- * @param user The user to load the system definition for
121
- */
122
- getSystemDefinition(authData?: AuthData): Observable<boolean>;
123
- setPermissions(p: ObjectTypePermissions): void;
124
- /**
125
- * Create the schema from the servers schema response
126
- * @param schemaResponse Response from the backend
127
- */
128
- setSchema(schemaResponse: SchemaResponse, localizedResource?: Localization): void;
129
- /**
130
- * Fetch a collection of form models.
131
- * @param objectTypeIDs Object type IDs to fetch form model for
132
- * @param situation Form situation
133
- * @returns Object where the object type id is key and the form model is the value
134
- */
135
- getObjectTypeForms(objectTypeIDs: string[], situation: string): Observable<Record<string, any>>;
136
- /**
137
- * Get the form model of an object type.
138
- *
139
- * @param objectTypeId ID of the object type to fetch the form for
140
- * @param situation The form situation to be fetched
141
- * @returns Form model
142
- */
143
- getObjectTypeForm(objectTypeId: string, situation: string): Observable<any>;
144
- /**
145
- * Generates an internal type for a given object type field.
146
- * Adding this to a form element or object type field enables us to render forms
147
- * based on object type fields in a more performant way. Otherwise we would
148
- * have to evaluate the conditions for every form element on every digest cycle.
149
- * @param type propertyType of the ObjectTypeField
150
- * @param classifications classifications of the ObjectTypeField
151
- */
152
- getInternalFormElementType(type: string, classifications?: string[]): ObjectTypeFieldInternalType;
153
- getObjectTypeField(id: string): ObjectTypeField | undefined;
154
- /**
155
- * Extract classifications from object type fields classification
156
- * string. This string may contain more than one classification entry.
157
- *
158
- * Classification is a comma separated string that may contain additional
159
- * properties related to on classification entry. Example:
160
- *
161
- * `id:reference[system:folder], email`
162
- *
163
- * @param classifications Object type fields classification property (schema)
164
- */
165
- getClassifications(classifications: string[]): Map<string, ClassificationEntry>;
166
- toFormElement(field: ObjectTypeField): any;
167
- updateAuthData(data: Partial<AuthData>): Observable<boolean>;
168
- updateLocalizations(iso: string): Observable<any>;
169
- fetchResources(id: string): Observable<{
170
- global: any;
171
- tenant: any;
172
- }>;
173
- static ɵfac: i0.ɵɵFactoryDeclaration<SystemService, never>;
174
- static ɵprov: i0.ɵɵInjectableDeclaration<SystemService>;
175
- }
@@ -1,8 +0,0 @@
1
- export interface ToastOptions {
2
- duration?: number;
3
- position?: ToastPosition;
4
- level?: ToastLevel;
5
- title?: string;
6
- }
7
- export type ToastPosition = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center';
8
- export type ToastLevel = 'success' | 'warning' | 'error' | 'info';
@@ -1,17 +0,0 @@
1
- import { ToastOptions } from './toast.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class ToastService {
4
- private document;
5
- constructor(document: Document);
6
- success(message: string, title?: string, options?: ToastOptions): Promise<void>;
7
- warning(message: string, title?: string, options?: ToastOptions): Promise<void>;
8
- info(message: string, title?: string, options?: ToastOptions): Promise<void>;
9
- error(message: string, title?: string, options?: ToastOptions): Promise<void>;
10
- toast(message: string, title?: string, options?: ToastOptions): Promise<void>;
11
- private _createToast;
12
- private _addToast;
13
- private _getToastContainer;
14
- private _init;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
17
- }
@@ -1 +0,0 @@
1
- export declare const YuvToastStyles = "\n.yuv-toast-container {\n --yuv-toast-container-padding: var(--ymt-spacing-m);\n --yuv-toast-success-background: var(--ymt-success-container);\n --yuv-toast-success-tone: var(--ymt-on-success-container);\n --yuv-toast-warning-background: var(--ymt-warning-container);\n --yuv-toast-warning-tone: var(--ymt-on-warning-container);\n --yuv-toast-error-background: var(--ymt-danger-container);\n --yuv-toast-error-tone: var(--ymt-on-danger-container);\n\n position: fixed;\n z-index: 9999;\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-items: center;\n justify-content: center;\n gap: 1vh;\n pointer-events: none;\n }\n .yuv-toast-container.top {\n inset-block-start: 0;\n padding-block-start: var(--yuv-toast-container-padding);\n flex-direction: column-reverse;\n }\n .yuv-toast-container.top.center {\n inset-inline: 0;\n }\n .yuv-toast-container.bottom {\n inset-block-end: 0;\n padding-block-end: var(--yuv-toast-container-padding);\n }\n .yuv-toast-container.bottom.center {\n inset-inline: 0;\n }\n .yuv-toast-container.end {\n padding-inline-end: var(--yuv-toast-container-padding);\n align-items: end;\n right:0;\n}\n.yuv-toast-container.start {\n padding-inline-start: var(--yuv-toast-container-padding);\n align-items: start;\n left:0;\n }\n\n .yuv-toast {\n --_duration: 3s;\n --_bg-lightness: 90%;\n --_travel-distance: 0;\n\n font-family: system-ui, sans-serif;\n color: var(--ymt-on-surface);\n background: var(--ymt-surface-container);\n pointer-events: all;\n line-height: 1.5em;\n\n max-inline-size: min(50ch, 90vw);\n padding-block: .5ch;\n padding-inline: 1ch;\n border-radius: 3px;\n font-size: 1rem;\n\n will-change: transform;\n animation:\n fade-in .3s ease,\n slide-in .3s ease,\n fade-out .3s ease var(--_duration);\n\n \n\n @media (--motionOK) {\n --_travel-distance: 5vh;\n }\n }\n\n .yuv-toast strong {\n display: block;\n }\n\n .yuv-toast a {\n color: currentColor\n }\n\n .yuv-toast.success {\n background-color: var(--yuv-toast-success-background);\n color: var(--yuv-toast-success-tone);\n }\n .yuv-toast.warning {\n background-color: var(--yuv-toast-warning-background);\n color: var(--yuv-toast-warning-tone);\n }\n\n .yuv-toast.error {\n background-color: var(--yuv-toast-error-background);\n color: var(--yuv-toast-error-tone);\n }\n\n .yuv-toast:hover {\n animation-play-state: paused;\n }\n\n @keyframes fade-in {\n from { opacity: 0 }\n }\n\n @keyframes fade-out {\n to { opacity: 0 }\n }\n\n @keyframes slide-in {\n from { transform: translateY(var(--_travel-distance, 10px)) }\n }\n";
@@ -1,56 +0,0 @@
1
- import { Observable, Subscription } from 'rxjs';
2
- /**
3
- * Interface for providing an uploading status of an object
4
- */
5
- export interface ProgressStatus {
6
- items: ProgressStatusItem[];
7
- err: number;
8
- }
9
- /**
10
- * Is part of the `ProgressStatus` interface
11
- */
12
- export interface ProgressStatusItem {
13
- id: string;
14
- filename: string;
15
- progress: Observable<number>;
16
- subscription: Subscription;
17
- result?: UploadResult[];
18
- scope?: string;
19
- err?: {
20
- code: number;
21
- message: string;
22
- };
23
- }
24
- /**
25
- * is a part of `CreatedObject` interface
26
- */
27
- interface ContentStream {
28
- contentStreamId: string;
29
- repositoryId: string;
30
- digest: string;
31
- fileName: string;
32
- archivePath: string;
33
- length: number;
34
- mimeType: string;
35
- }
36
- /**
37
- * Interface providng properties of uploaded object type
38
- */
39
- export interface UploadResult {
40
- objectId: string | string[];
41
- contentStreamId: string;
42
- filename: string;
43
- label?: string;
44
- }
45
- /**
46
- * Interface that was used by upload service
47
- */
48
- export interface CreatedObject {
49
- body?: {
50
- objects: {
51
- properties: any;
52
- contentStreams?: ContentStream[];
53
- }[];
54
- };
55
- }
56
- export {};