@alfresco/adf-core 8.4.0-17806466306 → 8.4.0-17829814673

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 (27) hide show
  1. package/README.md +0 -16
  2. package/api/lib/adf-http-client.service.d.ts +9 -9
  3. package/fesm2022/adf-core.mjs +591 -863
  4. package/fesm2022/adf-core.mjs.map +1 -1
  5. package/fesm2022/alfresco-adf-core-api.mjs +34 -22
  6. package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
  7. package/lib/auth/interfaces/authentication-service.interface.d.ts +7 -5
  8. package/lib/auth/services/authentication.service.d.ts +8 -6
  9. package/lib/auth/services/base-authentication.service.d.ts +6 -6
  10. package/lib/core.module.d.ts +7 -8
  11. package/lib/form/components/form-base.component.d.ts +1 -1
  12. package/lib/form/components/widgets/base-viewer/base-viewer.widget.d.ts +16 -0
  13. package/lib/form/components/widgets/core/form.model.d.ts +2 -1
  14. package/lib/login/components/login-dialog/login-dialog.component.d.ts +1 -0
  15. package/lib/mock/public-api.d.ts +0 -1
  16. package/lib/notifications/notification-history.module.d.ts +2 -4
  17. package/lib/notifications/public-api.d.ts +0 -1
  18. package/lib/testing/index.d.ts +0 -1
  19. package/package.json +4 -5
  20. package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
  21. package/schematics/migrations/schematics/migrations/7_0_0/index.js +46 -59
  22. package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
  23. package/schematics/migrations/schematics/migrations/collection.json +0 -5
  24. package/lib/datatable/components/mocks/datatable.mock.d.ts +0 -21
  25. package/lib/mock/data-column.mock.d.ts +0 -51
  26. package/lib/notifications/components/add-notification.stories.component.d.ts +0 -10
  27. package/lib/testing/core.story.module.d.ts +0 -9
@@ -5,7 +5,7 @@ import * as i0 from '@angular/core';
5
5
  import { Injectable } from '@angular/core';
6
6
  import { Subject, lastValueFrom, of, throwError } from 'rxjs';
7
7
  import { map, catchError, takeUntil } from 'rxjs/operators';
8
- import ee from 'event-emitter';
8
+ import { EventEmitter } from 'eventemitter3';
9
9
 
10
10
  /*!
11
11
  * @license
@@ -189,13 +189,30 @@ class AdfHttpClient {
189
189
  }
190
190
  constructor(httpClient) {
191
191
  this.httpClient = httpClient;
192
+ this.eventEmitter = new EventEmitter();
192
193
  this.defaultSecurityOptions = {
193
194
  withCredentials: true,
194
195
  isBpmRequest: false,
195
196
  authentications: {},
196
197
  defaultHeaders: {}
197
198
  };
198
- ee(this);
199
+ // No need for ee(this) anymore - we use composition instead of inheritance
200
+ }
201
+ // EventEmitter delegation methods
202
+ on(event, fn, context) {
203
+ this.eventEmitter.on(event, fn, context);
204
+ return this;
205
+ }
206
+ off(event, fn, context) {
207
+ this.eventEmitter.off(event, fn, context);
208
+ return this;
209
+ }
210
+ once(event, fn, context) {
211
+ this.eventEmitter.once(event, fn, context);
212
+ return this;
213
+ }
214
+ emit(event, ...args) {
215
+ return this.eventEmitter.emit(event, ...args);
199
216
  }
200
217
  setDefaultSecurityOption(options) {
201
218
  this.defaultSecurityOptions = this.merge(this.defaultSecurityOptions, options);
@@ -253,39 +270,34 @@ class AdfHttpClient {
253
270
  }
254
271
  addPromiseListeners(promise, eventEmitter) {
255
272
  const eventPromise = Object.assign(promise, {
256
- on() {
257
- // eslint-disable-next-line prefer-spread, prefer-rest-params
258
- eventEmitter.on.apply(eventEmitter, arguments);
273
+ on(event, fn, context) {
274
+ eventEmitter.on(event, fn, context);
259
275
  return this;
260
276
  },
261
- once() {
262
- // eslint-disable-next-line prefer-spread, prefer-rest-params
263
- eventEmitter.once.apply(eventEmitter, arguments);
277
+ once(event, fn, context) {
278
+ eventEmitter.once(event, fn, context);
264
279
  return this;
265
280
  },
266
- emit() {
267
- // eslint-disable-next-line prefer-spread, prefer-rest-params
268
- eventEmitter.emit.apply(eventEmitter, arguments);
269
- return this;
281
+ emit(event, ...args) {
282
+ return eventEmitter.emit(event, ...args);
270
283
  },
271
- off() {
272
- // eslint-disable-next-line prefer-spread, prefer-rest-params
273
- eventEmitter.off.apply(eventEmitter, arguments);
284
+ off(event, fn, context) {
285
+ eventEmitter.off(event, fn, context);
274
286
  return this;
275
287
  }
276
288
  });
277
289
  return eventPromise;
278
290
  }
279
291
  getEventEmitters() {
280
- const apiClientEmitter = {
281
- on: this.on.bind(this),
282
- off: this.off.bind(this),
283
- once: this.once.bind(this),
284
- emit: this.emit.bind(this)
285
- };
292
+ const apiClientEmitter = new EventEmitter();
293
+ // Bind this instance's methods to the apiClientEmitter for backward compatibility
294
+ apiClientEmitter.on = this.on.bind(this);
295
+ apiClientEmitter.off = this.off.bind(this);
296
+ apiClientEmitter.once = this.once.bind(this);
297
+ apiClientEmitter.emit = this.emit.bind(this);
286
298
  return {
287
299
  apiClientEmitter,
288
- eventEmitter: ee({})
300
+ eventEmitter: new EventEmitter()
289
301
  };
290
302
  }
291
303
  requestWithLegacyEventEmitters(request$, emitters, returnType) {
@@ -1 +1 @@
1
- {"version":3,"file":"alfresco-adf-core-api.mjs","sources":["../../../../lib/core/api/src/lib/types.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.utils.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.param-encoder.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.response-error.ts","../../../../lib/core/api/src/lib/adf-http-client.service.ts","../../../../lib/core/api/src/lib/interfaces.ts","../../../../lib/core/api/src/index.ts","../../../../lib/core/api/src/alfresco-adf-core-api.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Dictionary<T> {\n [key: string]: T;\n}\n\nexport type Constructor<T> = new (...args: any[]) => T;\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HttpEvent,\n HttpUploadProgressEvent,\n HttpEventType,\n HttpResponse,\n HttpParams,\n HttpParameterCodec,\n HttpUrlEncodingCodec\n} from '@angular/common/http';\nimport { Constructor } from '../types';\n\nexport const isHttpUploadProgressEvent = <T>(val: HttpEvent<T>): val is HttpUploadProgressEvent => val.type === HttpEventType.UploadProgress;\nexport const isHttpResponseEvent = <T>(val: HttpEvent<T>): val is HttpResponse<T> => val.type === HttpEventType.Response;\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\nexport const isXML = (value: unknown): boolean => typeof value === 'string' && value.startsWith('<?xml');\nexport const isBlobResponse = (response: HttpResponse<any>, returnType: Constructor<unknown> | 'blob'): response is HttpResponse<Blob> =>\n returnType === 'blob' || response.body instanceof Blob;\nexport const isConstructor = <T = unknown>(value: any): value is Constructor<T> =>\n typeof value === 'function' && !!value?.prototype?.constructor.name;\n\nconst convertParamsToString = (value: any): any => (isDate(value) ? value.toISOString() : value);\nexport const getQueryParamsWithCustomEncoder = (\n obj: Record<string | number, unknown>,\n encoder: HttpParameterCodec = new HttpUrlEncodingCodec()\n): HttpParams | undefined => {\n if (!obj) {\n return undefined;\n }\n\n let httpParams = new HttpParams({\n encoder\n });\n\n const params = removeNilValues(obj);\n\n for (const key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) {\n const value = params[key];\n if (value instanceof Array) {\n const array = value.map(convertParamsToString).filter(Boolean);\n httpParams = httpParams.appendAll({\n [key]: array\n });\n } else {\n httpParams = httpParams.append(key, convertParamsToString(value));\n }\n }\n }\n\n return httpParams;\n};\n\n/**\n * Removes null and undefined values from an object.\n *\n * @param obj object to process\n * @returns object with updated values\n */\nexport const removeNilValues = (obj: Record<string | number, unknown>) => {\n if (!obj) {\n return {};\n }\n\n return Object.keys(obj).reduce((acc, key) => {\n const value = obj[key];\n const isNil = value === undefined || value === null;\n return isNil ? acc : { ...acc, [key]: value };\n }, {});\n};\n\nexport const convertObjectToFormData = (formParams: Record<string | number, string | Blob | Array<string | Blob>>): FormData => {\n const formData = new FormData();\n\n for (const key in formParams) {\n if (Object.prototype.hasOwnProperty.call(formParams, key)) {\n const value = formParams[key];\n if (value instanceof File) {\n formData.append(key, value, value.name);\n } else if (Array.isArray(value)) {\n value.forEach((item) => formData.append(key, item));\n } else {\n formData.append(key, value);\n }\n }\n }\n\n return formData;\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpParameterCodec } from '@angular/common/http';\n\n// The default implementation of HttpParameterCodec from angular\n// does not encode some special characters like + with is causing issues with the alfresco js API and returns 500 error\n\nexport class AlfrescoApiParamEncoder implements HttpParameterCodec {\n encodeKey(key: string): string {\n return encodeURIComponent(key);\n }\n\n encodeValue(value: string): string {\n return encodeURIComponent(value);\n }\n\n decodeKey(key: string): string {\n return decodeURIComponent(key);\n }\n\n decodeValue(value: string): string {\n return decodeURIComponent(value);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class AlfrescoApiResponseError extends Error {\n public name = 'AlfrescoApiResponseError';\n\n constructor(msg: string, public status: number, public response: Record<string, any>) {\n super(msg);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SHOULD_ADD_AUTH_TOKEN } from '@alfresco/adf-core/auth';\nimport { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient } from '@alfresco/js-api';\nimport { HttpClient, HttpContext, HttpErrorResponse, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { lastValueFrom, Observable, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, takeUntil } from 'rxjs/operators';\nimport {\n convertObjectToFormData,\n getQueryParamsWithCustomEncoder,\n isBlobResponse,\n isConstructor,\n isHttpResponseEvent,\n isHttpUploadProgressEvent,\n removeNilValues\n} from './alfresco-api/alfresco-api.utils';\nimport { AlfrescoApiParamEncoder } from './alfresco-api/alfresco-api.param-encoder';\nimport { AlfrescoApiResponseError } from './alfresco-api/alfresco-api.response-error';\nimport { Constructor } from './types';\nimport { RequestOptions, SecurityOptions } from './interfaces';\nimport ee, { Emitter } from 'event-emitter';\n\nexport interface Emitters {\n readonly eventEmitter: Emitter;\n readonly apiClientEmitter: Emitter;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AdfHttpClient implements ee.Emitter, JsApiHttpClient {\n on: ee.EmitterMethod;\n off: ee.EmitterMethod;\n once: ee.EmitterMethod;\n _disableCsrf: boolean;\n\n emit: (type: string, ...args: any[]) => void;\n\n get disableCsrf(): boolean {\n return this._disableCsrf;\n }\n\n set disableCsrf(disableCsrf: boolean) {\n this._disableCsrf = disableCsrf;\n }\n\n private defaultSecurityOptions = {\n withCredentials: true,\n isBpmRequest: false,\n authentications: {},\n defaultHeaders: {}\n };\n\n constructor(private httpClient: HttpClient) {\n ee(this);\n }\n\n setDefaultSecurityOption(options: any) {\n this.defaultSecurityOptions = this.merge(this.defaultSecurityOptions, options);\n }\n\n merge(...objects): any {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n if (prop in result && Array.isArray(result[prop])) {\n result[prop] = result[prop].concat(source[prop]);\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = this.merge(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n });\n });\n\n return result;\n }\n\n request<T = any>(url: string, options?: RequestOptions, sc: SecurityOptions = this.defaultSecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n const body = AdfHttpClient.getBody(options);\n const params = getQueryParamsWithCustomEncoder(options.queryParams, new AlfrescoApiParamEncoder());\n const responseType = AdfHttpClient.getResponseType(options);\n const context = new HttpContext().set(SHOULD_ADD_AUTH_TOKEN, true);\n const security: SecurityOptions = { ...this.defaultSecurityOptions, ...sc };\n const headers = this.getHeaders(options);\n if (!emitters) {\n emitters = this.getEventEmitters();\n }\n\n const request = this.httpClient.request(options.httpMethod, url, {\n context,\n ...(body && { body }),\n ...(responseType && { responseType }),\n ...security,\n ...(params && { params }),\n headers,\n observe: 'events',\n reportProgress: true\n });\n\n return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);\n }\n\n post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'POST' }, sc, emitters);\n }\n\n put<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'PUT' }, sc, emitters);\n }\n\n get<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'GET' }, sc, emitters);\n }\n\n delete<T = void>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'DELETE' }, sc, emitters);\n }\n\n private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: any) {\n const eventPromise = Object.assign(promise, {\n on() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.on.apply(eventEmitter, arguments);\n return this;\n },\n once() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.once.apply(eventEmitter, arguments);\n return this;\n },\n emit() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.emit.apply(eventEmitter, arguments);\n return this;\n },\n off() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.off.apply(eventEmitter, arguments);\n return this;\n }\n });\n\n return eventPromise;\n }\n\n private getEventEmitters(): Emitters {\n const apiClientEmitter = {\n on: this.on.bind(this),\n off: this.off.bind(this),\n once: this.once.bind(this),\n emit: this.emit.bind(this)\n };\n\n return {\n apiClientEmitter,\n eventEmitter: ee({})\n };\n }\n\n private requestWithLegacyEventEmitters<T = any>(request$: Observable<HttpEvent<T>>, emitters: JsApiEmitters, returnType: any): Promise<T> {\n const abort$ = new Subject<void>();\n const { eventEmitter, apiClientEmitter } = emitters;\n\n const promise = lastValueFrom(\n request$.pipe(\n map((res) => {\n if (isHttpUploadProgressEvent(res)) {\n const percent = Math.round((res.loaded / res.total) * 100);\n eventEmitter.emit('progress', { loaded: res.loaded, total: res.total, percent });\n }\n\n if (isHttpResponseEvent(res)) {\n eventEmitter.emit('success', res.body);\n return AdfHttpClient.deserialize(res, returnType);\n }\n }),\n catchError((err: HttpErrorResponse): Observable<AlfrescoApiResponseError> => {\n // since we can't always determinate ahead of time if the response is going to be xml or plain text response\n // we need to handle false positive cases here.\n\n if (err.status === 200) {\n eventEmitter.emit('success', err.error.text);\n return of(err.error.text);\n }\n\n eventEmitter.emit('error', err);\n apiClientEmitter.emit('error', { ...err, response: { req: err } });\n\n if (err.status === 401) {\n eventEmitter.emit('unauthorized');\n apiClientEmitter.emit('unauthorized');\n }\n\n // for backwards compatibility we need to convert it to error class as the HttpErrorResponse only implements Error interface, not extending it,\n // and we need to be able to correctly pass instanceof Error conditions used inside repository\n // we also need to pass error as Stringify string as we are detecting statusCodes using JSON.parse(error.message) in some places\n const msg = typeof err.error === 'string' ? err.error : JSON.stringify(err.error);\n\n // for backwards compatibility to handle cases in code where we try read response.error.response.body;\n\n const error = {\n ...err,\n body: err.error\n };\n\n const alfrescoApiError = new AlfrescoApiResponseError(msg, err.status, error);\n return throwError(alfrescoApiError);\n }),\n takeUntil(abort$)\n )\n );\n\n (promise as any).abort = function () {\n eventEmitter.emit('abort');\n abort$.next();\n abort$.complete();\n return this;\n };\n\n return this.addPromiseListeners(promise, eventEmitter);\n }\n\n private static getBody(options: RequestOptions): any {\n const contentType = options.contentType ? options.contentType : AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const isFormData = contentType === 'multipart/form-data';\n const isFormUrlEncoded = contentType === 'application/x-www-form-urlencoded';\n const body = options.bodyParam;\n\n if (isFormData) {\n return convertObjectToFormData(options.formParams);\n }\n\n if (isFormUrlEncoded) {\n return new HttpParams({ fromObject: removeNilValues(options.formParams) });\n }\n\n return body;\n }\n\n private getHeaders(options: RequestOptions): HttpHeaders {\n const contentType = options.contentType || AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const accept = options.accept || AdfHttpClient.jsonPreferredMime(options.accepts);\n\n const optionsHeaders = {\n ...options.headerParams,\n ...(accept && { Accept: accept }),\n ...(contentType && { 'Content-Type': contentType })\n };\n\n if (!this.disableCsrf) {\n this.setCsrfToken(optionsHeaders);\n }\n\n return new HttpHeaders(optionsHeaders);\n }\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n *\n * @param contentTypes a contentType array\n * @returns The chosen content type, preferring JSON.\n */\n private static jsonPreferredMime(contentTypes: readonly string[]): string {\n if (!contentTypes?.length) {\n return 'application/json';\n }\n\n for (let i = 0; i < contentTypes.length; i++) {\n if (AdfHttpClient.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n }\n\n /**\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n *\n * @param contentType The MIME content type to check.\n * @returns <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n private static isJsonMime(contentType: string): boolean {\n return Boolean(contentType?.match(/^application\\/json(;.*)?$/i));\n }\n\n private setCsrfToken(optionsHeaders: any) {\n const token = this.createCSRFToken();\n optionsHeaders['X-CSRF-TOKEN'] = token;\n\n try {\n document.cookie = 'CSRF-TOKEN=' + token + ';path=/';\n } catch {\n /* continue regardless of error */\n }\n }\n\n private createCSRFToken(a?: any): string {\n const randomValue = AdfHttpClient.getSecureRandomValue();\n return a ? (a ^ ((randomValue * 16) >> (a / 4))).toString(16) : ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken);\n }\n\n private static getSecureRandomValue(): number {\n const max = Math.pow(2, 32);\n return window.crypto.getRandomValues(new Uint32Array(1))[0] / max;\n }\n\n private static getResponseType(options: RequestOptions): 'blob' | 'json' | 'text' {\n const isBlobType = options.returnType?.toString().toLowerCase() === 'blob' || options.responseType?.toString().toLowerCase() === 'blob';\n\n if (isBlobType) {\n return 'blob';\n }\n\n if (options.returnType === 'String') {\n return 'text';\n }\n\n return 'json';\n }\n\n /**\n * Deserialize an HTTP response body into a value of the specified type.\n *\n * @param response response object\n * @param returnType return type\n * @returns deserialized object\n */\n private static deserialize<T>(response: HttpResponse<T>, returnType?: Constructor<unknown> | 'blob'): any {\n if (response === null) {\n return null;\n }\n\n const body = response.body;\n\n if (!returnType) {\n // for backwards compatibility we need to return empty string instead of null,\n // to avoid issues when accessing null response would break application [C309878]\n // cannot read property 'entry' of null in cases like\n // return this.post(apiUrl, saveFormRepresentation).pipe(map((res: any) => res.entry))\n\n return body !== null ? body : '';\n }\n\n if (isBlobResponse(response, returnType)) {\n return AdfHttpClient.deserializeBlobResponse(response);\n }\n\n if (!isConstructor(returnType)) {\n return body;\n }\n\n if (Array.isArray(body)) {\n return body.map((element) => new returnType(element));\n }\n\n return new returnType(body);\n }\n\n private static deserializeBlobResponse(response: HttpResponse<Blob>) {\n return new Blob([response.body], { type: response.headers.get('Content-Type') });\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SecurityOptions {\n readonly withCredentials?: boolean;\n readonly authentications?: Authentication;\n readonly defaultHeaders?: Record<string, string>;\n}\n\nexport interface Oauth2 {\n refreshToken?: string;\n accessToken?: string;\n}\n\nexport interface BasicAuth {\n username?: string;\n password?: string;\n ticket?: string;\n}\n\nexport interface Authentication {\n basicAuth?: BasicAuth;\n oauth2?: Oauth2;\n cookie?: string;\n type?: string;\n}\n\nexport interface RequestOptions {\n httpMethod?: string;\n pathParams?: any;\n queryParams?: any;\n headerParams?: any;\n formParams?: any;\n bodyParam?: any;\n returnType?: any;\n responseType?: string;\n accepts?: string[];\n contentTypes?: string[];\n readonly accept?: string;\n readonly contentType?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/types';\nexport * from './lib/adf-http-client.service';\nexport * from './lib/interfaces';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;AAaI,MAAM,yBAAyB,GAAG,CAAI,GAAiB,KAAqC,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,cAAc;AACrI,MAAM,mBAAmB,GAAG,CAAI,GAAiB,KAA6B,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,QAAQ;AACjH,MAAM,MAAM,GAAG,CAAC,KAAc,KAAoB,KAAK,YAAY,IAAI;AACvE,MAAM,KAAK,GAAG,CAAC,KAAc,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;AACjG,MAAM,cAAc,GAAG,CAAC,QAA2B,EAAE,UAAyC,KACjG,UAAU,KAAK,MAAM,IAAI,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A,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFV,MAAM,EAAA,CAAA,CAAA;;2FAET,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;AC7CD;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
1
+ {"version":3,"file":"alfresco-adf-core-api.mjs","sources":["../../../../lib/core/api/src/lib/types.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.utils.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.param-encoder.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.response-error.ts","../../../../lib/core/api/src/lib/adf-http-client.service.ts","../../../../lib/core/api/src/lib/interfaces.ts","../../../../lib/core/api/src/index.ts","../../../../lib/core/api/src/alfresco-adf-core-api.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Dictionary<T> {\n [key: string]: T;\n}\n\nexport type Constructor<T> = new (...args: any[]) => T;\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HttpEvent,\n HttpUploadProgressEvent,\n HttpEventType,\n HttpResponse,\n HttpParams,\n HttpParameterCodec,\n HttpUrlEncodingCodec\n} from '@angular/common/http';\nimport { Constructor } from '../types';\n\nexport const isHttpUploadProgressEvent = <T>(val: HttpEvent<T>): val is HttpUploadProgressEvent => val.type === HttpEventType.UploadProgress;\nexport const isHttpResponseEvent = <T>(val: HttpEvent<T>): val is HttpResponse<T> => val.type === HttpEventType.Response;\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\nexport const isXML = (value: unknown): boolean => typeof value === 'string' && value.startsWith('<?xml');\nexport const isBlobResponse = (response: HttpResponse<any>, returnType: Constructor<unknown> | 'blob'): response is HttpResponse<Blob> =>\n returnType === 'blob' || response.body instanceof Blob;\nexport const isConstructor = <T = unknown>(value: any): value is Constructor<T> =>\n typeof value === 'function' && !!value?.prototype?.constructor.name;\n\nconst convertParamsToString = (value: any): any => (isDate(value) ? value.toISOString() : value);\nexport const getQueryParamsWithCustomEncoder = (\n obj: Record<string | number, unknown>,\n encoder: HttpParameterCodec = new HttpUrlEncodingCodec()\n): HttpParams | undefined => {\n if (!obj) {\n return undefined;\n }\n\n let httpParams = new HttpParams({\n encoder\n });\n\n const params = removeNilValues(obj);\n\n for (const key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) {\n const value = params[key];\n if (value instanceof Array) {\n const array = value.map(convertParamsToString).filter(Boolean);\n httpParams = httpParams.appendAll({\n [key]: array\n });\n } else {\n httpParams = httpParams.append(key, convertParamsToString(value));\n }\n }\n }\n\n return httpParams;\n};\n\n/**\n * Removes null and undefined values from an object.\n *\n * @param obj object to process\n * @returns object with updated values\n */\nexport const removeNilValues = (obj: Record<string | number, unknown>) => {\n if (!obj) {\n return {};\n }\n\n return Object.keys(obj).reduce((acc, key) => {\n const value = obj[key];\n const isNil = value === undefined || value === null;\n return isNil ? acc : { ...acc, [key]: value };\n }, {});\n};\n\nexport const convertObjectToFormData = (formParams: Record<string | number, string | Blob | Array<string | Blob>>): FormData => {\n const formData = new FormData();\n\n for (const key in formParams) {\n if (Object.prototype.hasOwnProperty.call(formParams, key)) {\n const value = formParams[key];\n if (value instanceof File) {\n formData.append(key, value, value.name);\n } else if (Array.isArray(value)) {\n value.forEach((item) => formData.append(key, item));\n } else {\n formData.append(key, value);\n }\n }\n }\n\n return formData;\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpParameterCodec } from '@angular/common/http';\n\n// The default implementation of HttpParameterCodec from angular\n// does not encode some special characters like + with is causing issues with the alfresco js API and returns 500 error\n\nexport class AlfrescoApiParamEncoder implements HttpParameterCodec {\n encodeKey(key: string): string {\n return encodeURIComponent(key);\n }\n\n encodeValue(value: string): string {\n return encodeURIComponent(value);\n }\n\n decodeKey(key: string): string {\n return decodeURIComponent(key);\n }\n\n decodeValue(value: string): string {\n return decodeURIComponent(value);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class AlfrescoApiResponseError extends Error {\n public name = 'AlfrescoApiResponseError';\n\n constructor(msg: string, public status: number, public response: Record<string, any>) {\n super(msg);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SHOULD_ADD_AUTH_TOKEN } from '@alfresco/adf-core/auth';\nimport { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient, EventEmitterInstance, EventEmitterEvents } from '@alfresco/js-api';\nimport { HttpClient, HttpContext, HttpErrorResponse, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { lastValueFrom, Observable, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, takeUntil } from 'rxjs/operators';\nimport {\n convertObjectToFormData,\n getQueryParamsWithCustomEncoder,\n isBlobResponse,\n isConstructor,\n isHttpResponseEvent,\n isHttpUploadProgressEvent,\n removeNilValues\n} from './alfresco-api/alfresco-api.utils';\nimport { AlfrescoApiParamEncoder } from './alfresco-api/alfresco-api.param-encoder';\nimport { AlfrescoApiResponseError } from './alfresco-api/alfresco-api.response-error';\nimport { Constructor } from './types';\nimport { RequestOptions, SecurityOptions } from './interfaces';\nimport { EventEmitter } from 'eventemitter3';\n\nexport interface Emitters {\n readonly eventEmitter: EventEmitterInstance;\n readonly apiClientEmitter: EventEmitterInstance;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AdfHttpClient implements JsApiHttpClient {\n private eventEmitter = new EventEmitter();\n\n _disableCsrf: boolean;\n\n get disableCsrf(): boolean {\n return this._disableCsrf;\n }\n\n set disableCsrf(disableCsrf: boolean) {\n this._disableCsrf = disableCsrf;\n }\n\n private defaultSecurityOptions = {\n withCredentials: true,\n isBpmRequest: false,\n authentications: {},\n defaultHeaders: {}\n };\n\n constructor(private httpClient: HttpClient) {\n // No need for ee(this) anymore - we use composition instead of inheritance\n }\n\n // EventEmitter delegation methods\n on(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this {\n this.eventEmitter.on(event, fn, context);\n return this;\n }\n\n off(event: EventEmitterEvents, fn?: (...args: any[]) => void, context?: any): this {\n this.eventEmitter.off(event, fn, context);\n return this;\n }\n\n once(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this {\n this.eventEmitter.once(event, fn, context);\n return this;\n }\n\n emit(event: EventEmitterEvents, ...args: any[]): boolean {\n return this.eventEmitter.emit(event, ...args);\n }\n\n setDefaultSecurityOption(options: any) {\n this.defaultSecurityOptions = this.merge(this.defaultSecurityOptions, options);\n }\n\n merge(...objects): any {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n if (prop in result && Array.isArray(result[prop])) {\n result[prop] = result[prop].concat(source[prop]);\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = this.merge(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n });\n });\n\n return result;\n }\n\n request<T = any>(url: string, options?: RequestOptions, sc: SecurityOptions = this.defaultSecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n const body = AdfHttpClient.getBody(options);\n const params = getQueryParamsWithCustomEncoder(options.queryParams, new AlfrescoApiParamEncoder());\n const responseType = AdfHttpClient.getResponseType(options);\n const context = new HttpContext().set(SHOULD_ADD_AUTH_TOKEN, true);\n const security: SecurityOptions = { ...this.defaultSecurityOptions, ...sc };\n const headers = this.getHeaders(options);\n if (!emitters) {\n emitters = this.getEventEmitters();\n }\n\n const request = this.httpClient.request(options.httpMethod, url, {\n context,\n ...(body && { body }),\n ...(responseType && { responseType }),\n ...security,\n ...(params && { params }),\n headers,\n observe: 'events',\n reportProgress: true\n });\n\n return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);\n }\n\n post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'POST' }, sc, emitters);\n }\n\n put<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'PUT' }, sc, emitters);\n }\n\n get<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'GET' }, sc, emitters);\n }\n\n delete<T = void>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'DELETE' }, sc, emitters);\n }\n\n private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: any) {\n const eventPromise = Object.assign(promise, {\n on<K extends string | symbol>(event: K, fn: (...args: any[]) => void, context?: any) {\n eventEmitter.on(event, fn, context);\n return this;\n },\n once<K extends string | symbol>(event: K, fn: (...args: any[]) => void, context?: any) {\n eventEmitter.once(event, fn, context);\n return this;\n },\n emit<K extends string | symbol>(event: K, ...args: any[]): boolean {\n return eventEmitter.emit(event, ...args);\n },\n off<K extends string | symbol>(event: K, fn?: (...args: any[]) => void, context?: any) {\n eventEmitter.off(event, fn, context);\n return this;\n }\n });\n\n return eventPromise;\n }\n\n private getEventEmitters(): Emitters {\n const apiClientEmitter: EventEmitterInstance = new EventEmitter();\n\n // Bind this instance's methods to the apiClientEmitter for backward compatibility\n apiClientEmitter.on = this.on.bind(this);\n apiClientEmitter.off = this.off.bind(this);\n apiClientEmitter.once = this.once.bind(this);\n apiClientEmitter.emit = this.emit.bind(this);\n\n return {\n apiClientEmitter,\n eventEmitter: new EventEmitter()\n };\n }\n\n private requestWithLegacyEventEmitters<T = any>(request$: Observable<HttpEvent<T>>, emitters: JsApiEmitters, returnType: any): Promise<T> {\n const abort$ = new Subject<void>();\n const { eventEmitter, apiClientEmitter } = emitters;\n\n const promise = lastValueFrom(\n request$.pipe(\n map((res) => {\n if (isHttpUploadProgressEvent(res)) {\n const percent = Math.round((res.loaded / res.total) * 100);\n eventEmitter.emit('progress', { loaded: res.loaded, total: res.total, percent });\n }\n\n if (isHttpResponseEvent(res)) {\n eventEmitter.emit('success', res.body);\n return AdfHttpClient.deserialize(res, returnType);\n }\n }),\n catchError((err: HttpErrorResponse): Observable<AlfrescoApiResponseError> => {\n // since we can't always determinate ahead of time if the response is going to be xml or plain text response\n // we need to handle false positive cases here.\n\n if (err.status === 200) {\n eventEmitter.emit('success', err.error.text);\n return of(err.error.text);\n }\n\n eventEmitter.emit('error', err);\n apiClientEmitter.emit('error', { ...err, response: { req: err } });\n\n if (err.status === 401) {\n eventEmitter.emit('unauthorized');\n apiClientEmitter.emit('unauthorized');\n }\n\n // for backwards compatibility we need to convert it to error class as the HttpErrorResponse only implements Error interface, not extending it,\n // and we need to be able to correctly pass instanceof Error conditions used inside repository\n // we also need to pass error as Stringify string as we are detecting statusCodes using JSON.parse(error.message) in some places\n const msg = typeof err.error === 'string' ? err.error : JSON.stringify(err.error);\n\n // for backwards compatibility to handle cases in code where we try read response.error.response.body;\n\n const error = {\n ...err,\n body: err.error\n };\n\n const alfrescoApiError = new AlfrescoApiResponseError(msg, err.status, error);\n return throwError(alfrescoApiError);\n }),\n takeUntil(abort$)\n )\n );\n\n (promise as any).abort = function () {\n eventEmitter.emit('abort');\n abort$.next();\n abort$.complete();\n return this;\n };\n\n return this.addPromiseListeners(promise, eventEmitter);\n }\n\n private static getBody(options: RequestOptions): any {\n const contentType = options.contentType ? options.contentType : AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const isFormData = contentType === 'multipart/form-data';\n const isFormUrlEncoded = contentType === 'application/x-www-form-urlencoded';\n const body = options.bodyParam;\n\n if (isFormData) {\n return convertObjectToFormData(options.formParams);\n }\n\n if (isFormUrlEncoded) {\n return new HttpParams({ fromObject: removeNilValues(options.formParams) });\n }\n\n return body;\n }\n\n private getHeaders(options: RequestOptions): HttpHeaders {\n const contentType = options.contentType || AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const accept = options.accept || AdfHttpClient.jsonPreferredMime(options.accepts);\n\n const optionsHeaders = {\n ...options.headerParams,\n ...(accept && { Accept: accept }),\n ...(contentType && { 'Content-Type': contentType })\n };\n\n if (!this.disableCsrf) {\n this.setCsrfToken(optionsHeaders);\n }\n\n return new HttpHeaders(optionsHeaders);\n }\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n *\n * @param contentTypes a contentType array\n * @returns The chosen content type, preferring JSON.\n */\n private static jsonPreferredMime(contentTypes: readonly string[]): string {\n if (!contentTypes?.length) {\n return 'application/json';\n }\n\n for (let i = 0; i < contentTypes.length; i++) {\n if (AdfHttpClient.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n }\n\n /**\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n *\n * @param contentType The MIME content type to check.\n * @returns <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n private static isJsonMime(contentType: string): boolean {\n return Boolean(contentType?.match(/^application\\/json(;.*)?$/i));\n }\n\n private setCsrfToken(optionsHeaders: any) {\n const token = this.createCSRFToken();\n optionsHeaders['X-CSRF-TOKEN'] = token;\n\n try {\n document.cookie = 'CSRF-TOKEN=' + token + ';path=/';\n } catch {\n /* continue regardless of error */\n }\n }\n\n private createCSRFToken(a?: any): string {\n const randomValue = AdfHttpClient.getSecureRandomValue();\n return a ? (a ^ ((randomValue * 16) >> (a / 4))).toString(16) : ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken);\n }\n\n private static getSecureRandomValue(): number {\n const max = Math.pow(2, 32);\n return window.crypto.getRandomValues(new Uint32Array(1))[0] / max;\n }\n\n private static getResponseType(options: RequestOptions): 'blob' | 'json' | 'text' {\n const isBlobType = options.returnType?.toString().toLowerCase() === 'blob' || options.responseType?.toString().toLowerCase() === 'blob';\n\n if (isBlobType) {\n return 'blob';\n }\n\n if (options.returnType === 'String') {\n return 'text';\n }\n\n return 'json';\n }\n\n /**\n * Deserialize an HTTP response body into a value of the specified type.\n *\n * @param response response object\n * @param returnType return type\n * @returns deserialized object\n */\n private static deserialize<T>(response: HttpResponse<T>, returnType?: Constructor<unknown> | 'blob'): any {\n if (response === null) {\n return null;\n }\n\n const body = response.body;\n\n if (!returnType) {\n // for backwards compatibility we need to return empty string instead of null,\n // to avoid issues when accessing null response would break application [C309878]\n // cannot read property 'entry' of null in cases like\n // return this.post(apiUrl, saveFormRepresentation).pipe(map((res: any) => res.entry))\n\n return body !== null ? body : '';\n }\n\n if (isBlobResponse(response, returnType)) {\n return AdfHttpClient.deserializeBlobResponse(response);\n }\n\n if (!isConstructor(returnType)) {\n return body;\n }\n\n if (Array.isArray(body)) {\n return body.map((element) => new returnType(element));\n }\n\n return new returnType(body);\n }\n\n private static deserializeBlobResponse(response: HttpResponse<Blob>) {\n return new Blob([response.body], { type: response.headers.get('Content-Type') });\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SecurityOptions {\n readonly withCredentials?: boolean;\n readonly authentications?: Authentication;\n readonly defaultHeaders?: Record<string, string>;\n}\n\nexport interface Oauth2 {\n refreshToken?: string;\n accessToken?: string;\n}\n\nexport interface BasicAuth {\n username?: string;\n password?: string;\n ticket?: string;\n}\n\nexport interface Authentication {\n basicAuth?: BasicAuth;\n oauth2?: Oauth2;\n cookie?: string;\n type?: string;\n}\n\nexport interface RequestOptions {\n httpMethod?: string;\n pathParams?: any;\n queryParams?: any;\n headerParams?: any;\n formParams?: any;\n bodyParam?: any;\n returnType?: any;\n responseType?: string;\n accepts?: string[];\n contentTypes?: string[];\n readonly accept?: string;\n readonly contentType?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/types';\nexport * from './lib/adf-http-client.service';\nexport * from './lib/interfaces';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;AAaI,MAAM,yBAAyB,GAAG,CAAI,GAAiB,KAAqC,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,cAAc;AACrI,MAAM,mBAAmB,GAAG,CAAI,GAAiB,KAA6B,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,Q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,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFV,MAAM,EAAA,CAAA,CAAA;;2FAET,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;AC7CD;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
@@ -15,16 +15,17 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { HttpHeaders } from '@angular/common/http';
18
- import ee from 'event-emitter';
18
+ import { EventEmitter } from 'eventemitter3';
19
19
  import { Observable } from 'rxjs';
20
+ type EventEmitterInstance = InstanceType<typeof EventEmitter>;
20
21
  export interface AuthenticationServiceInterface {
21
22
  onError: any;
22
23
  onLogin: any;
23
24
  onLogout: any;
24
- on: ee.EmitterMethod;
25
- off: ee.EmitterMethod;
26
- once: ee.EmitterMethod;
27
- emit: (type: string, ...args: any[]) => void;
25
+ on: EventEmitterInstance['on'];
26
+ off: EventEmitterInstance['off'];
27
+ once: EventEmitterInstance['once'];
28
+ emit: EventEmitterInstance['emit'];
28
29
  getToken(): string;
29
30
  isLoggedIn(): boolean;
30
31
  isOauth(): boolean;
@@ -37,3 +38,4 @@ export interface AuthenticationServiceInterface {
37
38
  addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable<HttpHeaders>;
38
39
  reset(): void;
39
40
  }
41
+ export {};
@@ -18,20 +18,21 @@ import { Injector } from '@angular/core';
18
18
  import { Observable, Subject } from 'rxjs';
19
19
  import { HttpHeaders } from '@angular/common/http';
20
20
  import { AuthenticationServiceInterface } from '../interfaces/authentication-service.interface';
21
- import ee from 'event-emitter';
22
21
  import { RedirectAuthService } from '../oidc/redirect-auth.service';
22
+ import { EventEmitter } from 'eventemitter3';
23
23
  import * as i0 from "@angular/core";
24
- export declare class AuthenticationService implements AuthenticationServiceInterface, ee.Emitter {
24
+ type EventEmitterInstance = InstanceType<typeof EventEmitter>;
25
+ export declare class AuthenticationService implements AuthenticationServiceInterface {
25
26
  private readonly injector;
26
27
  private readonly redirectAuthService;
27
28
  onLogin: Subject<any>;
28
29
  onLogout: Subject<any>;
29
30
  onTokenReceived: Subject<any>;
30
31
  constructor(injector: Injector, redirectAuthService: RedirectAuthService);
31
- get on(): ee.EmitterMethod;
32
- get off(): ee.EmitterMethod;
33
- get once(): ee.EmitterMethod;
34
- get emit(): (type: string, ...args: any[]) => void;
32
+ get on(): EventEmitterInstance['on'];
33
+ get off(): EventEmitterInstance['off'];
34
+ get once(): EventEmitterInstance['once'];
35
+ get emit(): EventEmitterInstance['emit'];
35
36
  get onError(): Observable<any>;
36
37
  addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable<HttpHeaders>;
37
38
  isECMProvider(): boolean;
@@ -59,3 +60,4 @@ export declare class AuthenticationService implements AuthenticationServiceInter
59
60
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, never>;
60
61
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
61
62
  }
63
+ export {};
@@ -20,14 +20,14 @@ import { Observable, ReplaySubject } from 'rxjs';
20
20
  import { AppConfigService } from '../../app-config/app-config.service';
21
21
  import { CookieService } from '../../common/services/cookie.service';
22
22
  import { AuthenticationServiceInterface } from '../interfaces/authentication-service.interface';
23
- import ee from 'event-emitter';
24
- export declare abstract class BaseAuthenticationService implements AuthenticationServiceInterface, ee.Emitter {
23
+ import { EventEmitterInstance } from '@alfresco/js-api';
24
+ export declare abstract class BaseAuthenticationService implements AuthenticationServiceInterface {
25
25
  protected appConfig: AppConfigService;
26
26
  protected cookie: CookieService;
27
- on: ee.EmitterMethod;
28
- off: ee.EmitterMethod;
29
- once: ee.EmitterMethod;
30
- emit: (type: string, ...args: any[]) => void;
27
+ on: EventEmitterInstance['on'];
28
+ off: EventEmitterInstance['off'];
29
+ once: EventEmitterInstance['once'];
30
+ emit: EventEmitterInstance['emit'];
31
31
  protected redirectUrl: RedirectionModel;
32
32
  onError: ReplaySubject<any>;
33
33
  onLogin: ReplaySubject<any>;
@@ -132,13 +132,12 @@ import * as i113 from "./templates/empty-content/empty-content.component";
132
132
  import * as i114 from "./icon/icon.component";
133
133
  import * as i115 from "./sorting-picker/sorting-picker.component";
134
134
  import * as i116 from "./notifications/components/notification-history.component";
135
- import * as i117 from "./notifications/components/add-notification.stories.component";
136
- import * as i118 from "./search-text/search-text-input.component";
137
- import * as i119 from "./search-text/search-trigger.directive";
138
- import * as i120 from "./blank-page/blank-page.component";
139
- import * as i121 from "./dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component";
140
- import * as i122 from "./dynamic-chip-list/dynamic-chip-list.component";
141
- import * as i123 from "./material.module";
135
+ import * as i117 from "./search-text/search-text-input.component";
136
+ import * as i118 from "./search-text/search-trigger.directive";
137
+ import * as i119 from "./blank-page/blank-page.component";
138
+ import * as i120 from "./dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component";
139
+ import * as i121 from "./dynamic-chip-list/dynamic-chip-list.component";
140
+ import * as i122 from "./material.module";
142
141
  /**
143
142
  * @deprecated this module is deprecated and will be removed
144
143
  * Use the following combination instead:
@@ -158,6 +157,6 @@ export declare class CoreModule {
158
157
  */
159
158
  static forChild(): ModuleWithProviders<CoreModule>;
160
159
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
161
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.AboutExtensionListComponent, typeof i2.AboutLicenseListComponent, typeof i3.ModuleListComponent, typeof i4.AboutRepositoryInfoComponent, typeof i5.PackageListComponent, typeof i6.AboutStatusListComponent, typeof i7.AboutServerSettingsComponent, typeof i8.AboutPanelDirective, typeof i9.AboutComponent, typeof i10.PdfPasswordDialogComponent, typeof i11.ViewerRenderComponent, typeof i12.ImgViewerComponent, typeof i13.TxtViewerComponent, typeof i14.MediaPlayerComponent, typeof i15.PdfViewerComponent, typeof i16.PdfThumbComponent, typeof i17.PdfThumbListComponent, typeof i18.ViewerExtensionDirective, typeof i19.UnknownFormatComponent, typeof i20.ViewerToolbarComponent, typeof i21.ViewerSidebarComponent, typeof i22.ViewerOpenWithComponent, typeof i23.ViewerMoreActionsComponent, typeof i24.ViewerToolbarActionsComponent, typeof i25.ViewerComponent, typeof i26.ViewerToolbarCustomActionsComponent, typeof i27.DownloadPromptDialogComponent, typeof i28.SidenavLayoutHeaderDirective, typeof i29.SidenavLayoutContentDirective, typeof i30.SidenavLayoutNavigationDirective, typeof i31.SidebarMenuDirective, typeof i31.SidebarMenuExpandIconDirective, typeof i31.SidebarMenuTitleIconDirective, typeof i32.HeaderLayoutComponent, typeof i31.SidebarActionMenuComponent, typeof i33.LayoutContainerComponent, typeof i34.SidenavLayoutComponent, typeof i35.LocalizedDatePipe, typeof i36.TimeAgoPipe, typeof i37.FileSizePipe, typeof i38.HighlightPipe, typeof i39.FullNamePipe, typeof i40.FormatSpacePipe, typeof i41.FileTypePipe, typeof i42.MultiValuePipe, typeof i43.DecimalNumberPipe, typeof i44.DateTimePipe, typeof i45.InitialUsernamePipe, typeof i46.TruncatePipe, typeof i47.IdentityUserInfoComponent, typeof i48.HighlightDirective, typeof i49.LogoutDirective, typeof i50.UploadDirective, typeof i51.TooltipCardDirective, typeof i52.TooltipCardComponent, typeof i53.InfiniteSelectScrollDirective, typeof i54.AppConfigPipe, typeof i55.InfinitePaginationComponent, typeof i56.PaginationComponent, typeof i57.ToolbarComponent, typeof i58.ToolbarTitleComponent, typeof i59.ToolbarDividerComponent, typeof i60.ContextMenuListComponent, typeof i61.ContextMenuDirective, typeof i62.CardViewComponent, typeof i63.CardViewBoolItemComponent, typeof i64.CardViewDateItemComponent, typeof i65.CardViewMapItemComponent, typeof i66.CardViewTextItemComponent, typeof i67.CardViewKeyValuePairsItemComponent, typeof i68.CardViewSelectItemComponent, typeof i69.CardViewItemDispatcherComponent, typeof i70.CardViewArrayItemComponent, typeof i71.SelectFilterInputComponent, typeof i72.FormBaseModule, typeof i73.CommentsComponent, typeof i74.CommentListComponent, typeof i75.ClipboardDirective, typeof i75.ClipboardComponent, typeof i76.LoginComponent, typeof i77.LoginFooterDirective, typeof i78.LoginHeaderDirective, typeof i79.LoginDialogComponent, typeof i80.LoginDialogPanelComponent, typeof i81.LanguageMenuComponent, typeof i82.LanguagePickerComponent, typeof i83.InfoDrawerLayoutComponent, typeof i84.InfoDrawerTabComponent, typeof i84.InfoDrawerComponent, typeof i83.InfoDrawerTitleDirective, typeof i83.InfoDrawerButtonsDirective, typeof i83.InfoDrawerContentDirective, typeof i85.BooleanCellComponent, typeof i86.AmountCellComponent, typeof i87.NumberCellComponent, typeof i88.LocationCellComponent, typeof i89.DateCellComponent, typeof i90.IconCellComponent, typeof i91.ColumnsSelectorComponent, typeof i92.DataColumnComponent, typeof i93.DataColumnListComponent, typeof i94.DateColumnHeaderComponent, typeof i35.LocalizedDatePipe, typeof i95.ResizableDirective, typeof i96.ResizeHandleDirective, typeof i97.DropZoneDirective, typeof i98.EmptyListComponent, typeof i98.EmptyListHeaderDirective, typeof i98.EmptyListBodyDirective, typeof i98.EmptyListFooterDirective, typeof i99.FileSizeCellComponent, typeof i100.JsonCellComponent, typeof i101.NoContentTemplateDirective, typeof i102.NoPermissionTemplateDirective, typeof i103.LoadingContentTemplateDirective, typeof i104.HeaderFilterTemplateDirective, typeof i105.CustomEmptyContentTemplateDirective, typeof i106.CustomLoadingContentTemplateDirective, typeof i107.CustomNoPermissionTemplateDirective, typeof i108.MainMenuDataTableTemplateDirective, typeof i109.DataTableRowComponent, typeof i110.DataTableCellComponent, typeof i111.DataTableComponent, typeof i112.ErrorContentComponent, typeof i113.EmptyContentComponent, typeof i114.IconComponent, typeof i115.SortingPickerComponent, typeof i116.NotificationHistoryComponent, typeof i117.AddNotificationStorybookComponent, typeof i118.SearchTextInputComponent, typeof i119.SearchTriggerDirective, typeof i120.BlankPageComponent, typeof i121.UnsavedChangesDialogComponent, typeof i122.DynamicChipListComponent, typeof i123.MaterialModule], [typeof i1.AboutExtensionListComponent, typeof i2.AboutLicenseListComponent, typeof i3.ModuleListComponent, typeof i4.AboutRepositoryInfoComponent, typeof i5.PackageListComponent, typeof i6.AboutStatusListComponent, typeof i7.AboutServerSettingsComponent, typeof i8.AboutPanelDirective, typeof i9.AboutComponent, typeof i10.PdfPasswordDialogComponent, typeof i11.ViewerRenderComponent, typeof i12.ImgViewerComponent, typeof i13.TxtViewerComponent, typeof i14.MediaPlayerComponent, typeof i15.PdfViewerComponent, typeof i16.PdfThumbComponent, typeof i17.PdfThumbListComponent, typeof i18.ViewerExtensionDirective, typeof i19.UnknownFormatComponent, typeof i20.ViewerToolbarComponent, typeof i21.ViewerSidebarComponent, typeof i22.ViewerOpenWithComponent, typeof i23.ViewerMoreActionsComponent, typeof i24.ViewerToolbarActionsComponent, typeof i25.ViewerComponent, typeof i26.ViewerToolbarCustomActionsComponent, typeof i27.DownloadPromptDialogComponent, typeof i28.SidenavLayoutHeaderDirective, typeof i29.SidenavLayoutContentDirective, typeof i30.SidenavLayoutNavigationDirective, typeof i31.SidebarMenuDirective, typeof i31.SidebarMenuExpandIconDirective, typeof i31.SidebarMenuTitleIconDirective, typeof i32.HeaderLayoutComponent, typeof i31.SidebarActionMenuComponent, typeof i33.LayoutContainerComponent, typeof i34.SidenavLayoutComponent, typeof i35.LocalizedDatePipe, typeof i36.TimeAgoPipe, typeof i37.FileSizePipe, typeof i38.HighlightPipe, typeof i39.FullNamePipe, typeof i40.FormatSpacePipe, typeof i41.FileTypePipe, typeof i42.MultiValuePipe, typeof i43.DecimalNumberPipe, typeof i44.DateTimePipe, typeof i45.InitialUsernamePipe, typeof i46.TruncatePipe, typeof i48.HighlightDirective, typeof i49.LogoutDirective, typeof i50.UploadDirective, typeof i51.TooltipCardDirective, typeof i52.TooltipCardComponent, typeof i53.InfiniteSelectScrollDirective, typeof i75.ClipboardDirective, typeof i75.ClipboardComponent, typeof i47.IdentityUserInfoComponent, typeof i54.AppConfigPipe, typeof i55.InfinitePaginationComponent, typeof i56.PaginationComponent, typeof i57.ToolbarComponent, typeof i58.ToolbarTitleComponent, typeof i59.ToolbarDividerComponent, typeof i60.ContextMenuListComponent, typeof i61.ContextMenuDirective, typeof i62.CardViewComponent, typeof i63.CardViewBoolItemComponent, typeof i64.CardViewDateItemComponent, typeof i65.CardViewMapItemComponent, typeof i66.CardViewTextItemComponent, typeof i67.CardViewKeyValuePairsItemComponent, typeof i68.CardViewSelectItemComponent, typeof i69.CardViewItemDispatcherComponent, typeof i70.CardViewArrayItemComponent, typeof i71.SelectFilterInputComponent, typeof i72.FormBaseModule, typeof i73.CommentsComponent, typeof i74.CommentListComponent, typeof i76.LoginComponent, typeof i77.LoginFooterDirective, typeof i78.LoginHeaderDirective, typeof i79.LoginDialogComponent, typeof i80.LoginDialogPanelComponent, typeof i81.LanguageMenuComponent, typeof i82.LanguagePickerComponent, typeof i83.InfoDrawerLayoutComponent, typeof i84.InfoDrawerTabComponent, typeof i84.InfoDrawerComponent, typeof i83.InfoDrawerTitleDirective, typeof i83.InfoDrawerButtonsDirective, typeof i83.InfoDrawerContentDirective, typeof i85.BooleanCellComponent, typeof i86.AmountCellComponent, typeof i87.NumberCellComponent, typeof i88.LocationCellComponent, typeof i89.DateCellComponent, typeof i90.IconCellComponent, typeof i91.ColumnsSelectorComponent, typeof i92.DataColumnComponent, typeof i93.DataColumnListComponent, typeof i94.DateColumnHeaderComponent, typeof i35.LocalizedDatePipe, typeof i95.ResizableDirective, typeof i96.ResizeHandleDirective, typeof i97.DropZoneDirective, typeof i98.EmptyListComponent, typeof i98.EmptyListHeaderDirective, typeof i98.EmptyListBodyDirective, typeof i98.EmptyListFooterDirective, typeof i99.FileSizeCellComponent, typeof i100.JsonCellComponent, typeof i101.NoContentTemplateDirective, typeof i102.NoPermissionTemplateDirective, typeof i103.LoadingContentTemplateDirective, typeof i104.HeaderFilterTemplateDirective, typeof i105.CustomEmptyContentTemplateDirective, typeof i106.CustomLoadingContentTemplateDirective, typeof i107.CustomNoPermissionTemplateDirective, typeof i108.MainMenuDataTableTemplateDirective, typeof i109.DataTableRowComponent, typeof i110.DataTableCellComponent, typeof i111.DataTableComponent, typeof i112.ErrorContentComponent, typeof i113.EmptyContentComponent, typeof i115.SortingPickerComponent, typeof i114.IconComponent, typeof i116.NotificationHistoryComponent, typeof i117.AddNotificationStorybookComponent, typeof i118.SearchTextInputComponent, typeof i119.SearchTriggerDirective, typeof i120.BlankPageComponent, typeof i121.UnsavedChangesDialogComponent, typeof i122.DynamicChipListComponent, typeof i123.MaterialModule]>;
160
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.AboutExtensionListComponent, typeof i2.AboutLicenseListComponent, typeof i3.ModuleListComponent, typeof i4.AboutRepositoryInfoComponent, typeof i5.PackageListComponent, typeof i6.AboutStatusListComponent, typeof i7.AboutServerSettingsComponent, typeof i8.AboutPanelDirective, typeof i9.AboutComponent, typeof i10.PdfPasswordDialogComponent, typeof i11.ViewerRenderComponent, typeof i12.ImgViewerComponent, typeof i13.TxtViewerComponent, typeof i14.MediaPlayerComponent, typeof i15.PdfViewerComponent, typeof i16.PdfThumbComponent, typeof i17.PdfThumbListComponent, typeof i18.ViewerExtensionDirective, typeof i19.UnknownFormatComponent, typeof i20.ViewerToolbarComponent, typeof i21.ViewerSidebarComponent, typeof i22.ViewerOpenWithComponent, typeof i23.ViewerMoreActionsComponent, typeof i24.ViewerToolbarActionsComponent, typeof i25.ViewerComponent, typeof i26.ViewerToolbarCustomActionsComponent, typeof i27.DownloadPromptDialogComponent, typeof i28.SidenavLayoutHeaderDirective, typeof i29.SidenavLayoutContentDirective, typeof i30.SidenavLayoutNavigationDirective, typeof i31.SidebarMenuDirective, typeof i31.SidebarMenuExpandIconDirective, typeof i31.SidebarMenuTitleIconDirective, typeof i32.HeaderLayoutComponent, typeof i31.SidebarActionMenuComponent, typeof i33.LayoutContainerComponent, typeof i34.SidenavLayoutComponent, typeof i35.LocalizedDatePipe, typeof i36.TimeAgoPipe, typeof i37.FileSizePipe, typeof i38.HighlightPipe, typeof i39.FullNamePipe, typeof i40.FormatSpacePipe, typeof i41.FileTypePipe, typeof i42.MultiValuePipe, typeof i43.DecimalNumberPipe, typeof i44.DateTimePipe, typeof i45.InitialUsernamePipe, typeof i46.TruncatePipe, typeof i47.IdentityUserInfoComponent, typeof i48.HighlightDirective, typeof i49.LogoutDirective, typeof i50.UploadDirective, typeof i51.TooltipCardDirective, typeof i52.TooltipCardComponent, typeof i53.InfiniteSelectScrollDirective, typeof i54.AppConfigPipe, typeof i55.InfinitePaginationComponent, typeof i56.PaginationComponent, typeof i57.ToolbarComponent, typeof i58.ToolbarTitleComponent, typeof i59.ToolbarDividerComponent, typeof i60.ContextMenuListComponent, typeof i61.ContextMenuDirective, typeof i62.CardViewComponent, typeof i63.CardViewBoolItemComponent, typeof i64.CardViewDateItemComponent, typeof i65.CardViewMapItemComponent, typeof i66.CardViewTextItemComponent, typeof i67.CardViewKeyValuePairsItemComponent, typeof i68.CardViewSelectItemComponent, typeof i69.CardViewItemDispatcherComponent, typeof i70.CardViewArrayItemComponent, typeof i71.SelectFilterInputComponent, typeof i72.FormBaseModule, typeof i73.CommentsComponent, typeof i74.CommentListComponent, typeof i75.ClipboardDirective, typeof i75.ClipboardComponent, typeof i76.LoginComponent, typeof i77.LoginFooterDirective, typeof i78.LoginHeaderDirective, typeof i79.LoginDialogComponent, typeof i80.LoginDialogPanelComponent, typeof i81.LanguageMenuComponent, typeof i82.LanguagePickerComponent, typeof i83.InfoDrawerLayoutComponent, typeof i84.InfoDrawerTabComponent, typeof i84.InfoDrawerComponent, typeof i83.InfoDrawerTitleDirective, typeof i83.InfoDrawerButtonsDirective, typeof i83.InfoDrawerContentDirective, typeof i85.BooleanCellComponent, typeof i86.AmountCellComponent, typeof i87.NumberCellComponent, typeof i88.LocationCellComponent, typeof i89.DateCellComponent, typeof i90.IconCellComponent, typeof i91.ColumnsSelectorComponent, typeof i92.DataColumnComponent, typeof i93.DataColumnListComponent, typeof i94.DateColumnHeaderComponent, typeof i35.LocalizedDatePipe, typeof i95.ResizableDirective, typeof i96.ResizeHandleDirective, typeof i97.DropZoneDirective, typeof i98.EmptyListComponent, typeof i98.EmptyListHeaderDirective, typeof i98.EmptyListBodyDirective, typeof i98.EmptyListFooterDirective, typeof i99.FileSizeCellComponent, typeof i100.JsonCellComponent, typeof i101.NoContentTemplateDirective, typeof i102.NoPermissionTemplateDirective, typeof i103.LoadingContentTemplateDirective, typeof i104.HeaderFilterTemplateDirective, typeof i105.CustomEmptyContentTemplateDirective, typeof i106.CustomLoadingContentTemplateDirective, typeof i107.CustomNoPermissionTemplateDirective, typeof i108.MainMenuDataTableTemplateDirective, typeof i109.DataTableRowComponent, typeof i110.DataTableCellComponent, typeof i111.DataTableComponent, typeof i112.ErrorContentComponent, typeof i113.EmptyContentComponent, typeof i114.IconComponent, typeof i115.SortingPickerComponent, typeof i116.NotificationHistoryComponent, typeof i117.SearchTextInputComponent, typeof i118.SearchTriggerDirective, typeof i119.BlankPageComponent, typeof i120.UnsavedChangesDialogComponent, typeof i121.DynamicChipListComponent, typeof i122.MaterialModule], [typeof i1.AboutExtensionListComponent, typeof i2.AboutLicenseListComponent, typeof i3.ModuleListComponent, typeof i4.AboutRepositoryInfoComponent, typeof i5.PackageListComponent, typeof i6.AboutStatusListComponent, typeof i7.AboutServerSettingsComponent, typeof i8.AboutPanelDirective, typeof i9.AboutComponent, typeof i10.PdfPasswordDialogComponent, typeof i11.ViewerRenderComponent, typeof i12.ImgViewerComponent, typeof i13.TxtViewerComponent, typeof i14.MediaPlayerComponent, typeof i15.PdfViewerComponent, typeof i16.PdfThumbComponent, typeof i17.PdfThumbListComponent, typeof i18.ViewerExtensionDirective, typeof i19.UnknownFormatComponent, typeof i20.ViewerToolbarComponent, typeof i21.ViewerSidebarComponent, typeof i22.ViewerOpenWithComponent, typeof i23.ViewerMoreActionsComponent, typeof i24.ViewerToolbarActionsComponent, typeof i25.ViewerComponent, typeof i26.ViewerToolbarCustomActionsComponent, typeof i27.DownloadPromptDialogComponent, typeof i28.SidenavLayoutHeaderDirective, typeof i29.SidenavLayoutContentDirective, typeof i30.SidenavLayoutNavigationDirective, typeof i31.SidebarMenuDirective, typeof i31.SidebarMenuExpandIconDirective, typeof i31.SidebarMenuTitleIconDirective, typeof i32.HeaderLayoutComponent, typeof i31.SidebarActionMenuComponent, typeof i33.LayoutContainerComponent, typeof i34.SidenavLayoutComponent, typeof i35.LocalizedDatePipe, typeof i36.TimeAgoPipe, typeof i37.FileSizePipe, typeof i38.HighlightPipe, typeof i39.FullNamePipe, typeof i40.FormatSpacePipe, typeof i41.FileTypePipe, typeof i42.MultiValuePipe, typeof i43.DecimalNumberPipe, typeof i44.DateTimePipe, typeof i45.InitialUsernamePipe, typeof i46.TruncatePipe, typeof i48.HighlightDirective, typeof i49.LogoutDirective, typeof i50.UploadDirective, typeof i51.TooltipCardDirective, typeof i52.TooltipCardComponent, typeof i53.InfiniteSelectScrollDirective, typeof i75.ClipboardDirective, typeof i75.ClipboardComponent, typeof i47.IdentityUserInfoComponent, typeof i54.AppConfigPipe, typeof i55.InfinitePaginationComponent, typeof i56.PaginationComponent, typeof i57.ToolbarComponent, typeof i58.ToolbarTitleComponent, typeof i59.ToolbarDividerComponent, typeof i60.ContextMenuListComponent, typeof i61.ContextMenuDirective, typeof i62.CardViewComponent, typeof i63.CardViewBoolItemComponent, typeof i64.CardViewDateItemComponent, typeof i65.CardViewMapItemComponent, typeof i66.CardViewTextItemComponent, typeof i67.CardViewKeyValuePairsItemComponent, typeof i68.CardViewSelectItemComponent, typeof i69.CardViewItemDispatcherComponent, typeof i70.CardViewArrayItemComponent, typeof i71.SelectFilterInputComponent, typeof i72.FormBaseModule, typeof i73.CommentsComponent, typeof i74.CommentListComponent, typeof i76.LoginComponent, typeof i77.LoginFooterDirective, typeof i78.LoginHeaderDirective, typeof i79.LoginDialogComponent, typeof i80.LoginDialogPanelComponent, typeof i81.LanguageMenuComponent, typeof i82.LanguagePickerComponent, typeof i83.InfoDrawerLayoutComponent, typeof i84.InfoDrawerTabComponent, typeof i84.InfoDrawerComponent, typeof i83.InfoDrawerTitleDirective, typeof i83.InfoDrawerButtonsDirective, typeof i83.InfoDrawerContentDirective, typeof i85.BooleanCellComponent, typeof i86.AmountCellComponent, typeof i87.NumberCellComponent, typeof i88.LocationCellComponent, typeof i89.DateCellComponent, typeof i90.IconCellComponent, typeof i91.ColumnsSelectorComponent, typeof i92.DataColumnComponent, typeof i93.DataColumnListComponent, typeof i94.DateColumnHeaderComponent, typeof i35.LocalizedDatePipe, typeof i95.ResizableDirective, typeof i96.ResizeHandleDirective, typeof i97.DropZoneDirective, typeof i98.EmptyListComponent, typeof i98.EmptyListHeaderDirective, typeof i98.EmptyListBodyDirective, typeof i98.EmptyListFooterDirective, typeof i99.FileSizeCellComponent, typeof i100.JsonCellComponent, typeof i101.NoContentTemplateDirective, typeof i102.NoPermissionTemplateDirective, typeof i103.LoadingContentTemplateDirective, typeof i104.HeaderFilterTemplateDirective, typeof i105.CustomEmptyContentTemplateDirective, typeof i106.CustomLoadingContentTemplateDirective, typeof i107.CustomNoPermissionTemplateDirective, typeof i108.MainMenuDataTableTemplateDirective, typeof i109.DataTableRowComponent, typeof i110.DataTableCellComponent, typeof i111.DataTableComponent, typeof i112.ErrorContentComponent, typeof i113.EmptyContentComponent, typeof i115.SortingPickerComponent, typeof i114.IconComponent, typeof i116.NotificationHistoryComponent, typeof i117.SearchTextInputComponent, typeof i118.SearchTriggerDirective, typeof i119.BlankPageComponent, typeof i120.UnsavedChangesDialogComponent, typeof i121.DynamicChipListComponent, typeof i122.MaterialModule]>;
162
161
  static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
163
162
  }
@@ -96,7 +96,7 @@ export declare abstract class FormBaseComponent {
96
96
  handleError(err: any): any;
97
97
  abstract onRefreshClicked(): void;
98
98
  abstract saveTaskForm(): void;
99
- abstract completeTaskForm(outcome?: string): void;
99
+ abstract completeTaskForm(outcome?: string, outcomeId?: string): void;
100
100
  protected abstract onTaskSaved(form: FormModel): void;
101
101
  protected abstract storeFormAsMetadata(): void;
102
102
  protected abstract onExecuteOutcome(outcome: FormOutcomeModel): boolean;
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
1
17
  import { OnInit } from '@angular/core';
2
18
  import { FormService } from '../../../services/form.service';
3
19
  import { WidgetComponent } from '../widget.component';
@@ -64,7 +64,6 @@ export declare class FormModel implements ProcessFormModel {
64
64
  readonly confirmMessage: ConfirmMessage;
65
65
  readonly taskName: string;
66
66
  readonly processDefinitionId: string;
67
- readonly selectedOutcome: string;
68
67
  readonly enableFixedSpace: boolean;
69
68
  readonly displayMode: any;
70
69
  fieldsCache: FormFieldModel[];
@@ -77,6 +76,8 @@ export declare class FormModel implements ProcessFormModel {
77
76
  fieldValidators: FormFieldValidator[];
78
77
  customFieldTemplates: FormFieldTemplates;
79
78
  theme?: ThemeModel;
79
+ selectedOutcomeId?: string;
80
+ selectedOutcome: string;
80
81
  className: string;
81
82
  readOnly: boolean;
82
83
  isValid: boolean;
@@ -1,6 +1,7 @@
1
1
  import { LoginDialogPanelComponent } from '../login-dialog-panel/login-dialog-panel.component';
2
2
  import { LoginDialogComponentData } from './login-dialog-component-data.interface';
3
3
  import * as i0 from "@angular/core";
4
+ /** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */
4
5
  export declare class LoginDialogComponent {
5
6
  data: LoginDialogComponentData;
6
7
  loginPanel: LoginDialogPanelComponent;
@@ -19,4 +19,3 @@ export * from './event.mock';
19
19
  export * from './translation.service.mock';
20
20
  export * from './form/form.service.mock';
21
21
  export * from './form/widget-visibility.service.mock';
22
- export * from './data-column.mock';
@@ -1,12 +1,10 @@
1
1
  import { NotificationHistoryComponent } from './components/notification-history.component';
2
- import { AddNotificationStorybookComponent } from './components/add-notification.stories.component';
3
2
  import * as i0 from "@angular/core";
4
3
  import * as i1 from "./components/notification-history.component";
5
- import * as i2 from "./components/add-notification.stories.component";
6
- export declare const NOTIFICATION_HISTORY_DIRECTIVES: readonly [typeof NotificationHistoryComponent, typeof AddNotificationStorybookComponent];
4
+ export declare const NOTIFICATION_HISTORY_DIRECTIVES: readonly [typeof NotificationHistoryComponent];
7
5
  /** @deprecated use `...NOTIFICATION_HISTORY_DIRECTIVES` or import the individual directives */
8
6
  export declare class NotificationHistoryModule {
9
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationHistoryModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationHistoryModule, never, [typeof i1.NotificationHistoryComponent, typeof i2.AddNotificationStorybookComponent], [typeof i1.NotificationHistoryComponent, typeof i2.AddNotificationStorybookComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationHistoryModule, never, [typeof i1.NotificationHistoryComponent], [typeof i1.NotificationHistoryComponent]>;
11
9
  static ɵinj: i0.ɵɵInjectorDeclaration<NotificationHistoryModule>;
12
10
  }
@@ -15,7 +15,6 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export * from './components/notification-history.component';
18
- export * from './components/add-notification.stories.component';
19
18
  export * from './helpers/notification.factory';
20
19
  export * from './models/notification.model';
21
20
  export * from './services/notification.service';
@@ -14,7 +14,6 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './core.story.module';
18
17
  export * from './noop-translate.module';
19
18
  export * from './noop-auth.module';
20
19
  export * from './unit-testing-utils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "8.4.0-17806466306",
4
+ "version": "8.4.0-17829814673",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -63,11 +63,10 @@
63
63
  "@angular/router": ">=16.0.0",
64
64
  "@mat-datetimepicker/core": ">=12.0.1",
65
65
  "@ngx-translate/core": ">=16.0.0",
66
- "@alfresco/js-api": ">=9.4.0-17806466306",
67
- "@alfresco/adf-extensions": ">=8.4.0-17806466306",
66
+ "@alfresco/js-api": ">=9.4.0-17829814673",
67
+ "@alfresco/adf-extensions": ">=8.4.0-17829814673",
68
68
  "minimatch": ">=10.0.0",
69
- "pdfjs-dist": ">=3.3.122",
70
- "ts-morph": ">=20.0.0"
69
+ "pdfjs-dist": ">=3.3.122"
71
70
  },
72
71
  "keywords": [
73
72
  "core",
@@ -15,10 +15,9 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { Rule, Tree } from '@angular-devkit/schematics';
18
- import { Project } from 'ts-morph';
19
18
  /**
20
19
  * @returns Schematic rule for updating imports
21
20
  */
22
21
  export declare function updateAlfrescoApiImports(): Rule;
23
- export declare const visitor: (filePath: string, tree: Pick<Tree, "read" | "overwrite">, project: Project) => void;
22
+ export declare const visitor: (filePath: string, tree: Pick<Tree, "read" | "overwrite">) => void;
24
23
  export default updateAlfrescoApiImports;