@cleavelandprice/ngx-lib 3.11.0 → 3.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/active-directory/gui/components/user-chooser/user-chooser.component.d.ts +4 -6
- package/active-directory/gui/components/user-form-field/user-form-field.component.d.ts +2 -4
- package/active-directory/services/active-directory.service.d.ts +1 -4
- package/authentication/object/services/authentication.service.d.ts +2 -4
- package/authentication/token/gui/components/login/login.component.d.ts +0 -2
- package/authentication/token/gui/components/login-form/login-form.component.d.ts +4 -4
- package/authentication/token/gui/services/authentication.service.d.ts +2 -3
- package/authentication/token/services/authentication.service.d.ts +1 -1
- package/dialog/components/choice/choice.component.d.ts +1 -2
- package/dialog/components/confirmation/confirmation.component.d.ts +1 -2
- package/dialog/components/input/input.component.d.ts +1 -2
- package/dialog/components/message/message.component.d.ts +1 -2
- package/esm2022/active-directory/gui/components/user-chooser/user-chooser.component.mjs +30 -28
- package/esm2022/active-directory/gui/components/user-form-field/user-form-field.component.mjs +28 -26
- package/esm2022/active-directory/services/active-directory.service.mjs +29 -34
- package/esm2022/authentication/object/services/authentication.service.mjs +20 -18
- package/esm2022/authentication/token/gui/components/login/login.component.mjs +13 -12
- package/esm2022/authentication/token/gui/components/login-form/login-form.component.mjs +21 -20
- package/esm2022/authentication/token/gui/services/authentication.service.mjs +9 -7
- package/esm2022/authentication/token/services/authentication.service.mjs +12 -8
- package/esm2022/dialog/components/choice/choice.component.mjs +12 -14
- package/esm2022/dialog/components/confirmation/confirmation.component.mjs +12 -14
- package/esm2022/dialog/components/input/input.component.mjs +12 -14
- package/esm2022/dialog/components/message/message.component.mjs +12 -14
- package/esm2022/lib/services/app-path-config.service.mjs +9 -12
- package/esm2022/quill/components/editor/editor.component.mjs +2 -2
- package/esm2022/quill/components/raw/raw.component.mjs +6 -9
- package/esm2022/sharepoint/components/employee-photo/employee-photo.component.mjs +10 -10
- package/esm2022/sharepoint/pipes/employee-photo-url.pipe.mjs +8 -8
- package/esm2022/sharepoint/services/sharepoint.service.mjs +41 -40
- package/esm2022/upload/components/upload/upload.component.mjs +13 -11
- package/esm2022/upload/components/upload-dialog/upload-dialog.component.mjs +16 -14
- package/esm2022/upload/services/upload.service.mjs +10 -13
- package/esm2022/url-utilities/pipes/safe-resource-url.pipe.mjs +7 -7
- package/esm2022/url-utilities/pipes/safe-url.pipe.mjs +7 -7
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs +44 -41
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs +28 -32
- package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs +19 -16
- package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs +33 -29
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs +11 -7
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs +32 -36
- package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-quill.mjs +5 -8
- package/fesm2022/cleavelandprice-ngx-lib-quill.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs +50 -48
- package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-upload.mjs +30 -29
- package/fesm2022/cleavelandprice-ngx-lib-upload.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs +10 -10
- package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib.mjs +8 -10
- package/fesm2022/cleavelandprice-ngx-lib.mjs.map +1 -1
- package/lib/services/app-path-config.service.d.ts +2 -4
- package/package.json +7 -7
- package/quill/components/editor/editor.component.d.ts +1 -1
- package/quill/components/raw/raw.component.d.ts +0 -1
- package/sharepoint/components/employee-photo/employee-photo.component.d.ts +1 -2
- package/sharepoint/pipes/employee-photo-url.pipe.d.ts +0 -2
- package/sharepoint/services/sharepoint.service.d.ts +3 -5
- package/upload/components/upload/upload.component.d.ts +1 -2
- package/upload/components/upload-dialog/upload-dialog.component.d.ts +1 -2
- package/upload/services/upload.service.d.ts +2 -4
- package/url-utilities/pipes/safe-resource-url.pipe.d.ts +1 -2
- package/url-utilities/pipes/safe-url.pipe.d.ts +1 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
3
|
-
import
|
|
2
|
+
import { inject, Pipe, NgModule } from '@angular/core';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class SafeResourceUrlPipe {
|
|
7
|
-
constructor(
|
|
8
|
-
this.domSanitizer =
|
|
7
|
+
constructor() {
|
|
8
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
9
9
|
}
|
|
10
10
|
transform(value) {
|
|
11
11
|
return this.domSanitizer.bypassSecurityTrustResourceUrl(value);
|
|
12
12
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, deps: [
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
14
14
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, name: "safeResourceUrl" }); }
|
|
15
15
|
}
|
|
16
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
|
|
@@ -18,16 +18,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
18
18
|
args: [{
|
|
19
19
|
name: 'safeResourceUrl'
|
|
20
20
|
}]
|
|
21
|
-
}]
|
|
21
|
+
}] });
|
|
22
22
|
|
|
23
23
|
class SafeUrlPipe {
|
|
24
|
-
constructor(
|
|
25
|
-
this.domSanitizer =
|
|
24
|
+
constructor() {
|
|
25
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
26
26
|
}
|
|
27
27
|
transform(value) {
|
|
28
28
|
return this.domSanitizer.bypassSecurityTrustUrl(value);
|
|
29
29
|
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, deps: [
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
31
31
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, name: "safeUrl" }); }
|
|
32
32
|
}
|
|
33
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SafeUrlPipe, decorators: [{
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
35
35
|
args: [{
|
|
36
36
|
name: 'safeUrl'
|
|
37
37
|
}]
|
|
38
|
-
}]
|
|
38
|
+
}] });
|
|
39
39
|
|
|
40
40
|
class UriSchemePipe {
|
|
41
41
|
// https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleavelandprice-ngx-lib-url-utilities.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-resource-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/uri-scheme.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/url-utilities.module.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/cleavelandprice-ngx-lib-url-utilities.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Pipe({\n name: 'safeResourceUrl'\n})\nexport class SafeResourceUrlPipe implements PipeTransform {\n
|
|
1
|
+
{"version":3,"file":"cleavelandprice-ngx-lib-url-utilities.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-resource-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/uri-scheme.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/url-utilities.module.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/cleavelandprice-ngx-lib-url-utilities.ts"],"sourcesContent":["import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Pipe({\n name: 'safeResourceUrl'\n})\nexport class SafeResourceUrlPipe implements PipeTransform {\n private domSanitizer = inject(DomSanitizer);\n\n transform(value: string): SafeUrl {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(value);\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Pipe({\n name: 'safeUrl'\n})\nexport class SafeUrlPipe implements PipeTransform {\n private domSanitizer = inject(DomSanitizer);\n\n transform(value: string): SafeUrl {\n return this.domSanitizer.bypassSecurityTrustUrl(value);\n }\n}","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'uriScheme',\n pure: false\n})\nexport class UriSchemePipe implements PipeTransform {\n // https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes\n\n transform(value: string, ignoreLocalStorage = false): string {\n if (!localStorage.getItem('useUriScheme') && !ignoreLocalStorage) { return value; }\n\n const urlSplit = value.split('.');\n const extension = urlSplit[urlSplit.length - 1];\n\n if (!extension) { return value; }\n\n const command = this.command(extension);\n const app = this.app(extension);\n\n return `ms-${app}:${command}|u|${value}`;\n }\n\n private app(extension: string): string {\n switch (extension.toLowerCase()) {\n // documents\n case 'doc': case 'docx':\n case 'docm': case 'docb':\n case 'dot': case 'dotx': case 'dotm': // templates\n return 'word';\n case 'xls': case 'xlsx':\n case 'xlm': case 'xlsm': case 'xlsb': case 'xlw':\n case 'xlt': case 'xltx': case 'xltm': // templates\n return 'excel';\n case 'ppt': case 'pptx':\n case 'pps': case 'ppsx': case 'pptm': case 'ppsm':\n case 'sldx': case 'sldm':\n case 'pot': case 'potx': case 'potm': // templates\n return 'powerpoint';\n case 'vsd': case 'vsdx':\n case 'vst': case 'vstx': // templates\n return 'visio';\n case 'mdb': case 'accdb': case 'accde': case 'accdr':\n case 'accdt': // templates\n return 'access';\n case 'mpp': case 'mppx':\n case 'mpt': // templates\n return 'project';\n case 'pub':\n return 'publisher';\n case 'xsn':\n return 'infopath';\n default:\n return '';\n }\n }\n\n private command(extension: string): string {\n switch (extension.toLowerCase()) {\n case 'dot': case 'dotx': case 'dotm':\n case 'xlt': case 'xltx': case 'xltm':\n case 'pot': case 'potx': case 'potm':\n case 'vst': case 'vstx':\n case 'accdt':\n case 'mpt':\n return 'nft'; // new from template\n default:\n const openMode = 'v'; // for view, or 'e' or edit\n return `of${openMode}`; // default: open file as view/edit\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';\nimport { SafeUrlPipe } from './pipes/safe-url.pipe';\nimport { UriSchemePipe } from './pipes/uri-scheme.pipe';\n\n@NgModule({\n declarations: [\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ]\n})\nexport class UrlUtilitiesModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAMa,mBAAmB,CAAA;AAHhC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAK7C,KAAA;AAHC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;KAChE;8GALU,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAAnB,mBAAmB,EAAA,IAAA,EAAA,iBAAA,EAAA,CAAA,CAAA,EAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,iBAAiB;AACxB,iBAAA,CAAA;;;MCCY,WAAW,CAAA;AAHxB,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAK7C,KAAA;AAHC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;KACxD;8GALU,WAA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A,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBAb3B,mBAAmB;YACnB,WAAW;YACX,aAAa,CAAA,EAAA,OAAA,EAAA,CAGb,YAAY,CAAA,EAAA,OAAA,EAAA,CAGZ,mBAAmB;YACnB,WAAW;YACX,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;AAGJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAR3B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAQH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as i2 from '@angular/common/http';
|
|
3
|
+
import { inject, Injectable, NgModule, Optional, SkipSelf } from '@angular/core';
|
|
4
4
|
|
|
5
5
|
class ServiceConfig {
|
|
6
6
|
get apiUrl() {
|
|
@@ -24,10 +24,10 @@ class ServiceConfig {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
class AppPathConfigService {
|
|
27
|
-
constructor(
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
27
|
+
constructor() {
|
|
28
|
+
//#region Services
|
|
29
|
+
this.config = inject(ServiceConfig, { optional: true }) ?? new ServiceConfig();
|
|
30
|
+
this.http = inject(HttpClient);
|
|
31
31
|
this.url = `${this.config.apiUrl}/apppathconfigs`;
|
|
32
32
|
}
|
|
33
33
|
getAll() {
|
|
@@ -51,7 +51,7 @@ class AppPathConfigService {
|
|
|
51
51
|
getByAppFunction(name) {
|
|
52
52
|
return this.http.get(`${this.url}/function/${name}`);
|
|
53
53
|
}
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, deps: [
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
55
55
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
|
|
56
56
|
}
|
|
57
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppPathConfigService, decorators: [{
|
|
@@ -59,9 +59,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
59
59
|
args: [{
|
|
60
60
|
providedIn: 'root'
|
|
61
61
|
}]
|
|
62
|
-
}], ctorParameters: () => [
|
|
63
|
-
type: Optional
|
|
64
|
-
}] }, { type: i2.HttpClient }] });
|
|
62
|
+
}], ctorParameters: () => [] });
|
|
65
63
|
|
|
66
64
|
class NgxLibModule {
|
|
67
65
|
static forRoot(config) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-config.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/app-path-config.service.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/ngx-lib.module.ts","../../../../projects/cleavelandprice/ngx-lib/src/public_api.ts","../../../../projects/cleavelandprice/ngx-lib/src/cleavelandprice-ngx-lib.ts"],"sourcesContent":["export class ServiceConfig {\r\n useSsl = false;\r\n customApiUrl: string | undefined;\r\n\r\n get apiUrl(): string {\r\n return this.customApiUrl ? this.customApiUrl :\r\n this.useSsl ?\r\n 'https://utilityapi.cleavelandprice.com' :\r\n 'http://utilityapi';\r\n }\r\n\r\n /* Since TypeScript's implementation of overloads sucks, I'm doing something weird here.\r\n useSsl_or_customApiUrl will usually be a boolean value that determines whether or not SSL is used with the normal utilityapi URL options.\r\n But if you want to completely disregard the utilityapi URL and use your own, you would pass the URL via this parameter. */\r\n constructor(useSsl_or_customApiUrl: boolean | string = false) {\r\n if (typeof useSsl_or_customApiUrl === 'boolean') {\r\n this.useSsl = useSsl_or_customApiUrl;\r\n } else if (typeof useSsl_or_customApiUrl === 'string') {\r\n this.customApiUrl = useSsl_or_customApiUrl;\r\n }\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport {
|
|
1
|
+
{"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-config.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/app-path-config.service.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/ngx-lib.module.ts","../../../../projects/cleavelandprice/ngx-lib/src/public_api.ts","../../../../projects/cleavelandprice/ngx-lib/src/cleavelandprice-ngx-lib.ts"],"sourcesContent":["export class ServiceConfig {\r\n useSsl = false;\r\n customApiUrl: string | undefined;\r\n\r\n get apiUrl(): string {\r\n return this.customApiUrl ? this.customApiUrl :\r\n this.useSsl ?\r\n 'https://utilityapi.cleavelandprice.com' :\r\n 'http://utilityapi';\r\n }\r\n\r\n /* Since TypeScript's implementation of overloads sucks, I'm doing something weird here.\r\n useSsl_or_customApiUrl will usually be a boolean value that determines whether or not SSL is used with the normal utilityapi URL options.\r\n But if you want to completely disregard the utilityapi URL and use your own, you would pass the URL via this parameter. */\r\n constructor(useSsl_or_customApiUrl: boolean | string = false) {\r\n if (typeof useSsl_or_customApiUrl === 'boolean') {\r\n this.useSsl = useSsl_or_customApiUrl;\r\n } else if (typeof useSsl_or_customApiUrl === 'string') {\r\n this.customApiUrl = useSsl_or_customApiUrl;\r\n }\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { inject, Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { AppPathConfig } from '../model/app-path-config';\r\nimport { ServiceConfig } from '../model/service-config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppPathConfigService {\r\n //#region Services\r\n private config = inject(ServiceConfig, { optional: true }) ?? new ServiceConfig();\r\n private http = inject(HttpClient);\r\n //#endregion\r\n\r\n url!: string;\r\n\r\n constructor() {\r\n this.url = `${this.config.apiUrl}/apppathconfigs`\r\n }\r\n\r\n getAll(): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(this.url);\r\n }\r\n\r\n getById(id: number): Observable<AppPathConfig> {\r\n return this.http.get<AppPathConfig>(`${this.url}/${id}`);\r\n }\r\n\r\n getByAppId(id: number): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.url}/appid/${id}`);\r\n }\r\n\r\n getByApp(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.url}/app/${name}`);\r\n }\r\n\r\n getByAppTypeId(id: number): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.url}/apptypeid/${id}`);\r\n }\r\n\r\n getByAppType(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.url}/apptype/${name}`);\r\n }\r\n\r\n getByAppFunction(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.url}/function/${name}`);\r\n }\r\n}\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\n\r\nimport { AppPathConfigService } from './services/app-path-config.service';\r\n\r\nimport { ServiceConfig } from './model/service-config';\r\n\r\n@NgModule({\r\n declarations: [\r\n ],\r\n imports: [\r\n ],\r\n exports: [\r\n ]\r\n})\r\nexport class NgxLibModule {\r\n static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule> {\r\n return {\r\n ngModule: NgxLibModule,\r\n providers: [\r\n AppPathConfigService,\r\n { provide: ServiceConfig, useValue: config }\r\n ]\r\n };\r\n }\r\n\r\n constructor(@Optional() @SkipSelf() parentModule: NgxLibModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'NgxLibModule is already loaded. Import it in the AppModule only');\r\n }\r\n }\r\n}","/*\r\n * Public API Surface of ngx-lib\r\n */\r\n\r\nexport * from './lib/model/app';\r\nexport * from './lib/model/app-path-config';\r\nexport * from './lib/model/app-type';\r\nexport * from './lib/model/service-config';\r\n\r\nexport * from './lib/services/app-path-config.service';\r\n\r\nexport * from './lib/ngx-lib.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAAa,aAAa,CAAA;AAItB,IAAA,IAAI,MAAM,GAAA;QACN,OAAO,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY;YACxC,IAAI,CAAC,MAAM;AACP,gBAAA,wCAAwC;AACxC,gBAAA,mBAAmB,CAAC;KAC/B;AAED;;AAE8H;AAC9H,IAAA,WAAA,CAAY,yBAA2C,KAAK,EAAA;QAb5D,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;AAcX,QAAA,IAAI,OAAO,sBAAsB,KAAK,SAAS,EAAE;AAC7C,YAAA,IAAI,CAAC,MAAM,GAAG,sBAAsB,CAAC;SACxC;AAAM,aAAA,IAAI,OAAO,sBAAsB,KAAK,QAAQ,EAAE;AACnD,YAAA,IAAI,CAAC,YAAY,GAAG,sBAAsB,CAAC;SAC9C;KACJ;AACJ;;MCXY,oBAAoB,CAAA;A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AAA,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EACb;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE,EACR;AACF,iBAAA,CAAA;;0BAYc,QAAQ;;0BAAI,QAAQ;;;ACzBnC;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { AppPathConfig } from '../model/app-path-config';
|
|
4
|
-
import { ServiceConfig } from '../model/service-config';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class AppPathConfigService {
|
|
7
5
|
private config;
|
|
8
6
|
private http;
|
|
9
7
|
url: string;
|
|
10
|
-
constructor(
|
|
8
|
+
constructor();
|
|
11
9
|
getAll(): Observable<AppPathConfig[]>;
|
|
12
10
|
getById(id: number): Observable<AppPathConfig>;
|
|
13
11
|
getByAppId(id: number): Observable<AppPathConfig[]>;
|
|
@@ -15,6 +13,6 @@ export declare class AppPathConfigService {
|
|
|
15
13
|
getByAppTypeId(id: number): Observable<AppPathConfig[]>;
|
|
16
14
|
getByAppType(name: string): Observable<AppPathConfig[]>;
|
|
17
15
|
getByAppFunction(name: string): Observable<AppPathConfig[]>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService,
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService, never>;
|
|
19
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppPathConfigService>;
|
|
20
18
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"comment": "NGX-LIB primary entry point package.json",
|
|
3
3
|
"name": "@cleavelandprice/ngx-lib",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.2",
|
|
5
5
|
"description": "Angular 15+ library providing foundational functionality to Cleaveland-Price applications",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": "^17.1.2",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"esm": "./esm2022/active-directory/cleavelandprice-ngx-lib-active-directory.mjs",
|
|
41
41
|
"default": "./fesm2022/cleavelandprice-ngx-lib-active-directory.mjs"
|
|
42
42
|
},
|
|
43
|
-
"./dialog": {
|
|
44
|
-
"types": "./dialog/index.d.ts",
|
|
45
|
-
"esm2022": "./esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs",
|
|
46
|
-
"esm": "./esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs",
|
|
47
|
-
"default": "./fesm2022/cleavelandprice-ngx-lib-dialog.mjs"
|
|
48
|
-
},
|
|
49
43
|
"./authentication": {
|
|
50
44
|
"types": "./authentication/index.d.ts",
|
|
51
45
|
"esm2022": "./esm2022/authentication/cleavelandprice-ngx-lib-authentication.mjs",
|
|
52
46
|
"esm": "./esm2022/authentication/cleavelandprice-ngx-lib-authentication.mjs",
|
|
53
47
|
"default": "./fesm2022/cleavelandprice-ngx-lib-authentication.mjs"
|
|
54
48
|
},
|
|
49
|
+
"./dialog": {
|
|
50
|
+
"types": "./dialog/index.d.ts",
|
|
51
|
+
"esm2022": "./esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs",
|
|
52
|
+
"esm": "./esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs",
|
|
53
|
+
"default": "./fesm2022/cleavelandprice-ngx-lib-dialog.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./msgraph": {
|
|
56
56
|
"types": "./msgraph/index.d.ts",
|
|
57
57
|
"esm2022": "./esm2022/msgraph/cleavelandprice-ngx-lib-msgraph.mjs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from "@angular/forms";
|
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import {
|
|
4
|
+
import { Blur, ContentChange, EditorChangeContent, EditorChangeSelection, Focus, QuillEditorComponent, SelectionChange } from 'ngx-quill';
|
|
5
5
|
import { Config } from '../../model/config';
|
|
6
6
|
import { DialogData } from '../../model/dialog-data';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class RawComponent {
|
|
3
3
|
data: string;
|
|
4
|
-
constructor(data: string);
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RawComponent, never>;
|
|
6
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<RawComponent, "cpquill-raw", never, {}, {}, never, never, false, never>;
|
|
7
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { CleavelandPriceUser } from '@cleavelandprice/ngx-lib/active-directory';
|
|
3
3
|
import { PhotoItem } from '../../model/photo-item';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class EmployeePhotoComponent implements OnInit {
|
|
@@ -9,7 +9,6 @@ export declare class EmployeePhotoComponent implements OnInit {
|
|
|
9
9
|
employeePhotos?: PhotoItem[];
|
|
10
10
|
size: string;
|
|
11
11
|
notRound: boolean;
|
|
12
|
-
constructor(activeDirectoryService: ActiveDirectoryService);
|
|
13
12
|
ngOnInit(): void;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmployeePhotoComponent, never>;
|
|
15
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<EmployeePhotoComponent, "employee-photo", never, { "employee": { "alias": "employee"; "required": false; }; "accountName": { "alias": "accountName"; "required": false; }; "employeePhotos": { "alias": "employeePhotos"; "required": false; }; "size": { "alias": "size"; "required": false; }; "notRound": { "alias": "notRound"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { CleavelandPriceUser } from '@cleavelandprice/ngx-lib/active-directory';
|
|
3
3
|
import { PhotoItem } from '../model/photo-item';
|
|
4
|
-
import { SharePointService } from '../services/sharepoint.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class EmployeePhotoUrlPipe implements PipeTransform {
|
|
7
6
|
private sharePointService;
|
|
8
|
-
constructor(sharePointService: SharePointService);
|
|
9
7
|
transform(user: CleavelandPriceUser, userPhotos?: PhotoItem[]): any;
|
|
10
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmployeePhotoUrlPipe, never>;
|
|
11
9
|
static ɵpipe: i0.ɵɵPipeDeclaration<EmployeePhotoUrlPipe, "employeePhotoUrl", false>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { ListItem } from '../model/list-item';
|
|
4
3
|
import { ListItemsRequest } from '../model/list-items-request';
|
|
5
4
|
import { PhotoItem } from '../model/photo-item';
|
|
6
|
-
import { ServiceConfig } from '../model/service-config';
|
|
7
|
-
import { UserRequest } from '../model/user-request';
|
|
8
5
|
import { User } from '../model/user';
|
|
6
|
+
import { UserRequest } from '../model/user-request';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class SharePointService {
|
|
11
9
|
private config;
|
|
@@ -13,13 +11,13 @@ export declare class SharePointService {
|
|
|
13
11
|
private cache;
|
|
14
12
|
private defaultCacheLifeMinutes;
|
|
15
13
|
private cacheExpired;
|
|
16
|
-
constructor(
|
|
14
|
+
constructor();
|
|
17
15
|
private configureCaching;
|
|
18
16
|
private configureLogging;
|
|
19
17
|
getListItems(request: ListItemsRequest): Observable<ListItem[]>;
|
|
20
18
|
getPhotos(): Observable<PhotoItem[]>;
|
|
21
19
|
getUsers(request: UserRequest, id?: number): Observable<User | User[]>;
|
|
22
20
|
clearCache(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SharePointService,
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharePointService, never>;
|
|
24
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<SharePointService>;
|
|
25
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { UploadService } from './../../services/upload.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,7 +7,6 @@ export declare class UploadComponent implements OnInit {
|
|
|
7
7
|
uploadService: UploadService;
|
|
8
8
|
dialogClosed: EventEmitter<any>;
|
|
9
9
|
uploadButtonText: string;
|
|
10
|
-
constructor(dialog: MatDialog, uploadService: UploadService);
|
|
11
10
|
ngOnInit(): void;
|
|
12
11
|
openUploadDialog(): void;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
|
|
@@ -3,7 +3,7 @@ import { MatDialogRef } from '@angular/material/dialog';
|
|
|
3
3
|
import { UploadService } from './../../services/upload.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UploadDialogComponent implements OnInit {
|
|
6
|
-
dialogRef: MatDialogRef<
|
|
6
|
+
dialogRef: MatDialogRef<any, any>;
|
|
7
7
|
uploadService: UploadService;
|
|
8
8
|
file: ElementRef;
|
|
9
9
|
files: Set<File>;
|
|
@@ -14,7 +14,6 @@ export declare class UploadDialogComponent implements OnInit {
|
|
|
14
14
|
showCancelButton: boolean;
|
|
15
15
|
uploading: boolean;
|
|
16
16
|
uploadSuccessful: boolean;
|
|
17
|
-
constructor(dialogRef: MatDialogRef<UploadDialogComponent>, uploadService: UploadService);
|
|
18
17
|
ngOnInit(): void;
|
|
19
18
|
addFiles(): void;
|
|
20
19
|
onFilesAdded(): void;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { DatabaseFileInfo } from '../model/database-file-info';
|
|
4
|
-
import { FilesystemFileInfo } from '../model/filesystem-file-info';
|
|
5
3
|
import { FileUploadRequest } from '../model/file-upload-request';
|
|
4
|
+
import { FilesystemFileInfo } from '../model/filesystem-file-info';
|
|
6
5
|
import { ServiceConfig } from '../model/service-config';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class UploadService {
|
|
9
8
|
private http;
|
|
10
9
|
config: ServiceConfig;
|
|
11
|
-
constructor(http: HttpClient, config: ServiceConfig);
|
|
12
10
|
upload(files: Set<File>): any;
|
|
13
11
|
exists(fileName: string): Observable<boolean>;
|
|
14
12
|
download(request: FileUploadRequest): Observable<Blob>;
|
|
15
13
|
getUploadInfo(request: FileUploadRequest): Observable<DatabaseFileInfo | DatabaseFileInfo[] | FilesystemFileInfo | FilesystemFileInfo[]>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService,
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
17
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
18
16
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeUrl } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SafeResourceUrlPipe implements PipeTransform {
|
|
5
5
|
private domSanitizer;
|
|
6
|
-
constructor(domSanitizer: DomSanitizer);
|
|
7
6
|
transform(value: string): SafeUrl;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeResourceUrlPipe, never>;
|
|
9
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeResourceUrlPipe, "safeResourceUrl", false>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeUrl } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SafeUrlPipe implements PipeTransform {
|
|
5
5
|
private domSanitizer;
|
|
6
|
-
constructor(domSanitizer: DomSanitizer);
|
|
7
6
|
transform(value: string): SafeUrl;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
|
|
9
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "safeUrl", false>;
|