@cleavelandprice/ngx-lib 3.14.6 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/active-directory/{public_api.d.ts → active-directory.api.d.ts} +2 -4
- package/active-directory/active-directory.module.d.ts +2 -2
- package/active-directory/index.d.ts +1 -1
- package/active-directory/{gui → material}/components/user-chooser/user-chooser.component.d.ts +11 -31
- package/active-directory/{gui → material}/components/user-form-field/user-form-field.component.d.ts +5 -8
- package/active-directory/{gui → material}/index.d.ts +2 -2
- package/active-directory/{gui/public_api.d.ts → material/mat-active-directory.api.d.ts} +1 -1
- package/active-directory/material/mat-active-directory.module.d.ts +25 -0
- package/active-directory/model/active-directory-service-options.d.ts +7 -0
- package/active-directory/services/active-directory.service.d.ts +7 -7
- package/authentication/{public_api.d.ts → authentication.api.d.ts} +1 -1
- package/authentication/authentication.base.module.d.ts +5 -1
- package/authentication/index.d.ts +1 -1
- package/authentication/{token/gui → material}/components/login/login.component.d.ts +6 -4
- package/authentication/{token/gui → material}/components/login-form/login-form.component.d.ts +9 -10
- package/authentication/material/index.d.ts +5 -0
- package/authentication/material/mat-authentication.api.d.ts +6 -0
- package/authentication/material/mat-authentication.module.d.ts +21 -0
- package/authentication/material/model/mat-authentication-service-options.d.ts +6 -0
- package/authentication/material/services/mat-authentication.service.d.ts +11 -0
- package/authentication/model/abstract-authentication-service.d.ts +4 -4
- package/authentication/model/authentication-service-options.d.ts +8 -0
- package/authentication/object/authentication-object.api.d.ts +2 -0
- package/authentication/object/authentication-object.module.d.ts +11 -0
- package/authentication/object/index.d.ts +1 -1
- package/authentication/object/services/authentication-object.service.d.ts +23 -0
- package/authentication/token/authentication-token.api.d.ts +4 -0
- package/authentication/token/authetiction-token.module.d.ts +11 -0
- package/authentication/token/index.d.ts +1 -1
- package/authentication/token/model/authentication-token-service-options.d.ts +6 -0
- package/authentication/token/services/authentication-token.service.d.ts +23 -0
- package/dialog/components/base/base.component.d.ts +3 -3
- package/dialog/components/choice/choice.component.d.ts +5 -3
- package/dialog/components/confirmation/confirmation.component.d.ts +5 -3
- package/dialog/components/input/input.component.d.ts +5 -3
- package/dialog/components/message/message.component.d.ts +5 -3
- package/dialog/dialog.module.d.ts +13 -13
- package/dialog/index.d.ts +1 -1
- package/esm2022/active-directory/active-directory.api.mjs +12 -0
- package/esm2022/active-directory/active-directory.module.mjs +20 -10
- package/esm2022/active-directory/cleavelandprice-ngx-lib-active-directory.mjs +2 -2
- package/esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs +5 -0
- package/esm2022/active-directory/material/components/user-chooser/user-chooser.component.mjs +406 -0
- package/esm2022/active-directory/material/components/user-form-field/user-form-field.component.mjs +136 -0
- package/esm2022/active-directory/material/mat-active-directory.api.mjs +9 -0
- package/esm2022/active-directory/material/mat-active-directory.module.mjs +109 -0
- package/esm2022/active-directory/material/model/selectable-group.mjs +2 -0
- package/esm2022/active-directory/material/model/selectable-user.mjs +2 -0
- package/esm2022/active-directory/material/model/user-chooser-data.mjs +33 -0
- package/esm2022/active-directory/material/model/user-chooser-filter-options.mjs +10 -0
- package/esm2022/active-directory/{gui → material}/model/user-chooser-mode.mjs +1 -1
- package/esm2022/active-directory/material/model/user-chooser-pre-processing-group.mjs +9 -0
- package/esm2022/active-directory/model/active-directory-service-options.mjs +3 -0
- package/esm2022/active-directory/services/active-directory.service.mjs +61 -41
- package/esm2022/authentication/authentication.api.mjs +6 -0
- package/esm2022/authentication/authentication.base.module.mjs +28 -7
- package/esm2022/authentication/cleavelandprice-ngx-lib-authentication.mjs +2 -2
- package/esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs +5 -0
- package/esm2022/authentication/material/components/login/login.component.mjs +49 -0
- package/esm2022/authentication/material/components/login-form/login-form.component.mjs +82 -0
- package/esm2022/authentication/material/mat-authentication.api.mjs +7 -0
- package/esm2022/authentication/material/mat-authentication.module.mjs +84 -0
- package/esm2022/authentication/material/model/login-form-data.mjs +2 -0
- package/esm2022/authentication/material/model/mat-authentication-service-options.mjs +3 -0
- package/esm2022/authentication/material/services/mat-authentication.service.mjs +67 -0
- package/esm2022/authentication/model/abstract-authentication-service.mjs +1 -1
- package/esm2022/authentication/model/authentication-service-options.mjs +3 -0
- package/esm2022/authentication/object/authentication-object.api.mjs +4 -0
- package/esm2022/authentication/object/authentication-object.module.mjs +40 -0
- package/esm2022/authentication/object/cleavelandprice-ngx-lib-authentication-object.mjs +2 -2
- package/esm2022/authentication/object/services/authentication-object.service.mjs +119 -0
- package/esm2022/authentication/token/authentication-token.api.mjs +5 -0
- package/esm2022/authentication/token/authetiction-token.module.mjs +40 -0
- package/esm2022/authentication/token/cleavelandprice-ngx-lib-authentication-token.mjs +2 -2
- package/esm2022/authentication/token/model/authentication-token-service-options.mjs +3 -0
- package/esm2022/authentication/token/services/authentication-token.service.mjs +128 -0
- package/esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs +2 -2
- package/esm2022/dialog/components/base/base.component.mjs +27 -16
- package/esm2022/dialog/components/choice/choice.component.mjs +11 -11
- package/esm2022/dialog/components/confirmation/confirmation.component.mjs +11 -11
- package/esm2022/dialog/components/input/input.component.mjs +11 -11
- package/esm2022/dialog/components/message/message.component.mjs +11 -11
- package/esm2022/dialog/dialog.api.mjs +20 -0
- package/esm2022/dialog/dialog.module.mjs +25 -20
- package/esm2022/lib/model/caching-config.mjs +2 -0
- package/esm2022/lib/model/credentials.mjs +2 -0
- package/esm2022/lib/model/logging-config.mjs +2 -0
- package/esm2022/lib/model/service-options.mjs +3 -0
- package/esm2022/lib/ngx-lib.module.mjs +20 -10
- package/esm2022/lib/services/app-path-config.service.mjs +31 -24
- package/esm2022/lib/services/service-base.mjs +26 -0
- package/esm2022/msgraph/cleavelandprice-ngx-lib-msgraph.mjs +2 -2
- package/esm2022/msgraph/msgraph.api.mjs +19 -0
- package/esm2022/msgraph/msgraph.module.mjs +6 -11
- package/esm2022/public_api.mjs +6 -2
- package/esm2022/quill/cleavelandprice-ngx-lib-quill.mjs +2 -2
- package/esm2022/quill/components/editor/editor.component.mjs +29 -39
- package/esm2022/quill/components/raw/raw.component.mjs +18 -11
- package/esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs +2 -2
- package/esm2022/quill/mention/components/editor/editor.component.mjs +20 -14
- package/esm2022/quill/mention/quill-mention.api.mjs +8 -0
- package/esm2022/quill/mention/quill-mention.module.mjs +12 -12
- package/esm2022/quill/quill.api.mjs +9 -0
- package/esm2022/quill/quill.module.mjs +20 -18
- package/esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs +2 -2
- package/esm2022/sharepoint/components/user-photo/user-photo.component.mjs +13 -9
- package/esm2022/sharepoint/model/sharepoint-service-options.mjs +3 -0
- package/esm2022/sharepoint/pipes/user-photo-url.pipe.mjs +8 -9
- package/esm2022/sharepoint/services/sharepoint.service.mjs +74 -65
- package/esm2022/sharepoint/sharepoint.api.mjs +17 -0
- package/esm2022/sharepoint/sharepoint.module.mjs +25 -15
- package/esm2022/table/cleavelandprice-ngx-lib-table.mjs +2 -2
- package/esm2022/table/components/table/table.component.mjs +76 -74
- package/esm2022/table/table.api.mjs +4 -0
- package/esm2022/table/table.module.mjs +16 -15
- package/esm2022/upload/cleavelandprice-ngx-lib-upload.mjs +2 -2
- package/esm2022/upload/components/upload/upload.component.mjs +16 -20
- package/esm2022/upload/components/upload-dialog/upload-dialog.component.mjs +49 -39
- package/esm2022/upload/model/upload-service-options.mjs +4 -0
- package/esm2022/upload/model/upload-status.mjs +2 -0
- package/esm2022/upload/services/upload.service.mjs +44 -29
- package/esm2022/upload/upload.api.mjs +9 -0
- package/esm2022/upload/upload.module.mjs +33 -20
- package/esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs +2 -2
- package/esm2022/url-utilities/pipes/safe-resource-url.pipe.mjs +8 -9
- package/esm2022/url-utilities/pipes/safe-url.pipe.mjs +8 -9
- package/esm2022/url-utilities/pipes/uri-scheme.pipe.mjs +9 -8
- package/esm2022/url-utilities/url-utilities.api.mjs +13 -0
- package/esm2022/url-utilities/url-utilities.module.mjs +11 -11
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs +683 -0
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs.map +1 -0
- package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs +79 -72
- package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs +268 -0
- package/fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs.map +1 -0
- package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs +54 -49
- package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs +50 -51
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs +28 -18
- package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs +87 -66
- package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-msgraph.mjs +5 -10
- package/fesm2022/cleavelandprice-ngx-lib-msgraph.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs +29 -26
- package/fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-quill.mjs +61 -67
- package/fesm2022/cleavelandprice-ngx-lib-quill.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs +115 -118
- package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-table.mjs +85 -90
- package/fesm2022/cleavelandprice-ngx-lib-table.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-upload.mjs +134 -117
- package/fesm2022/cleavelandprice-ngx-lib-upload.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs +38 -33
- package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs.map +1 -1
- package/fesm2022/cleavelandprice-ngx-lib.mjs +66 -45
- package/fesm2022/cleavelandprice-ngx-lib.mjs.map +1 -1
- package/lib/model/caching-config.d.ts +4 -0
- package/lib/model/credentials.d.ts +4 -0
- package/lib/model/logging-config.d.ts +6 -0
- package/lib/model/service-options.d.ts +6 -0
- package/lib/ngx-lib.module.d.ts +2 -2
- package/lib/services/app-path-config.service.d.ts +5 -4
- package/lib/services/service-base.d.ts +7 -0
- package/msgraph/index.d.ts +1 -1
- package/msgraph/msgraph.module.d.ts +0 -2
- package/package.json +27 -27
- package/public_api.d.ts +5 -1
- package/quill/components/editor/editor.component.d.ts +10 -10
- package/quill/components/raw/raw.component.d.ts +1 -1
- package/quill/index.d.ts +1 -1
- package/quill/mention/components/editor/editor.component.d.ts +3 -3
- package/quill/mention/index.d.ts +1 -1
- package/quill/mention/quill-mention.module.d.ts +9 -9
- package/quill/quill.module.d.ts +12 -14
- package/sharepoint/components/user-photo/user-photo.component.d.ts +2 -2
- package/sharepoint/index.d.ts +1 -1
- package/sharepoint/model/sharepoint-service-options.d.ts +19 -0
- package/sharepoint/pipes/user-photo-url.pipe.d.ts +2 -2
- package/sharepoint/services/sharepoint.service.d.ts +7 -10
- package/sharepoint/{public_api.d.ts → sharepoint.api.d.ts} +1 -1
- package/sharepoint/sharepoint.module.d.ts +6 -6
- package/table/components/table/table.component.d.ts +21 -22
- package/table/index.d.ts +1 -1
- package/table/table.module.d.ts +13 -13
- package/upload/components/upload/upload.component.d.ts +4 -8
- package/upload/components/upload-dialog/upload-dialog.component.d.ts +11 -9
- package/upload/index.d.ts +1 -1
- package/upload/model/upload-service-options.d.ts +16 -0
- package/upload/model/upload-status.d.ts +6 -0
- package/upload/services/upload.service.d.ts +9 -6
- package/upload/{public_api.d.ts → upload.api.d.ts} +2 -2
- package/upload/upload.module.d.ts +10 -10
- package/url-utilities/index.d.ts +1 -1
- package/url-utilities/pipes/safe-resource-url.pipe.d.ts +2 -2
- package/url-utilities/pipes/safe-url.pipe.d.ts +2 -2
- package/url-utilities/pipes/uri-scheme.pipe.d.ts +2 -3
- package/url-utilities/url-utilities.api.d.ts +8 -0
- package/url-utilities/url-utilities.module.d.ts +5 -5
- package/active-directory/gui/gui.module.d.ts +0 -25
- package/active-directory/model/caching-config.d.ts +0 -4
- package/active-directory/model/logging-config.d.ts +0 -6
- package/active-directory/model/service-config.d.ts +0 -8
- package/authentication/model/service-config.d.ts +0 -8
- package/authentication/object/model/service-config.d.ts +0 -4
- package/authentication/object/object.module.d.ts +0 -11
- package/authentication/object/public_api.d.ts +0 -3
- package/authentication/object/services/authentication.service.d.ts +0 -23
- package/authentication/token/gui/index.d.ts +0 -5
- package/authentication/token/gui/model/service-config.d.ts +0 -5
- package/authentication/token/gui/public_api.d.ts +0 -6
- package/authentication/token/gui/services/authentication.service.d.ts +0 -12
- package/authentication/token/gui/token-gui.module.d.ts +0 -21
- package/authentication/token/model/service-config.d.ts +0 -5
- package/authentication/token/public_api.d.ts +0 -4
- package/authentication/token/services/authentication.service.d.ts +0 -23
- package/authentication/token/token.module.d.ts +0 -11
- package/esm2022/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs +0 -5
- package/esm2022/active-directory/gui/components/user-chooser/user-chooser.component.mjs +0 -393
- package/esm2022/active-directory/gui/components/user-form-field/user-form-field.component.mjs +0 -132
- package/esm2022/active-directory/gui/gui.module.mjs +0 -96
- package/esm2022/active-directory/gui/model/selectable-group.mjs +0 -2
- package/esm2022/active-directory/gui/model/selectable-user.mjs +0 -2
- package/esm2022/active-directory/gui/model/user-chooser-data.mjs +0 -33
- package/esm2022/active-directory/gui/model/user-chooser-filter-options.mjs +0 -10
- package/esm2022/active-directory/gui/model/user-chooser-pre-processing-group.mjs +0 -9
- package/esm2022/active-directory/gui/public_api.mjs +0 -9
- package/esm2022/active-directory/model/caching-config.mjs +0 -7
- package/esm2022/active-directory/model/logging-config.mjs +0 -9
- package/esm2022/active-directory/model/service-config.mjs +0 -12
- package/esm2022/active-directory/public_api.mjs +0 -12
- package/esm2022/authentication/model/service-config.mjs +0 -12
- package/esm2022/authentication/object/model/service-config.mjs +0 -9
- package/esm2022/authentication/object/object.module.mjs +0 -39
- package/esm2022/authentication/object/public_api.mjs +0 -4
- package/esm2022/authentication/object/services/authentication.service.mjs +0 -110
- package/esm2022/authentication/public_api.mjs +0 -6
- package/esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs +0 -5
- package/esm2022/authentication/token/gui/components/login/login.component.mjs +0 -43
- package/esm2022/authentication/token/gui/components/login-form/login-form.component.mjs +0 -72
- package/esm2022/authentication/token/gui/model/login-form-data.mjs +0 -2
- package/esm2022/authentication/token/gui/model/service-config.mjs +0 -10
- package/esm2022/authentication/token/gui/public_api.mjs +0 -7
- package/esm2022/authentication/token/gui/services/authentication.service.mjs +0 -78
- package/esm2022/authentication/token/gui/token-gui.module.mjs +0 -81
- package/esm2022/authentication/token/model/service-config.mjs +0 -10
- package/esm2022/authentication/token/public_api.mjs +0 -5
- package/esm2022/authentication/token/services/authentication.service.mjs +0 -124
- package/esm2022/authentication/token/token.module.mjs +0 -39
- package/esm2022/dialog/public_api.mjs +0 -10
- package/esm2022/lib/model/service-config.mjs +0 -21
- package/esm2022/msgraph/public_api.mjs +0 -19
- package/esm2022/quill/mention/public_api.mjs +0 -8
- package/esm2022/quill/public_api.mjs +0 -9
- package/esm2022/sharepoint/model/service-config.mjs +0 -27
- package/esm2022/sharepoint/public_api.mjs +0 -17
- package/esm2022/table/public_api.mjs +0 -4
- package/esm2022/upload/model/service-config.mjs +0 -16
- package/esm2022/upload/public_api.mjs +0 -9
- package/esm2022/url-utilities/public_api.mjs +0 -5
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs +0 -660
- package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +0 -1
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs +0 -271
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +0 -1
- package/lib/model/service-config.d.ts +0 -6
- package/sharepoint/model/service-config.d.ts +0 -23
- package/upload/model/service-config.d.ts +0 -15
- package/url-utilities/public_api.d.ts +0 -4
- /package/active-directory/{gui → material}/model/selectable-group.d.ts +0 -0
- /package/active-directory/{gui → material}/model/selectable-user.d.ts +0 -0
- /package/active-directory/{gui → material}/model/user-chooser-data.d.ts +0 -0
- /package/active-directory/{gui → material}/model/user-chooser-filter-options.d.ts +0 -0
- /package/active-directory/{gui → material}/model/user-chooser-mode.d.ts +0 -0
- /package/active-directory/{gui → material}/model/user-chooser-pre-processing-group.d.ts +0 -0
- /package/authentication/{token/gui → material}/model/login-form-data.d.ts +0 -0
- /package/dialog/{public_api.d.ts → dialog.api.d.ts} +0 -0
- /package/msgraph/{public_api.d.ts → msgraph.api.d.ts} +0 -0
- /package/quill/mention/{public_api.d.ts → quill-mention.api.d.ts} +0 -0
- /package/quill/{public_api.d.ts → quill.api.d.ts} +0 -0
- /package/table/{public_api.d.ts → table.api.d.ts} +0 -0
|
@@ -4,36 +4,34 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class SafeResourceUrlPipe {
|
|
7
|
-
|
|
8
|
-
this.domSanitizer = inject(DomSanitizer);
|
|
9
|
-
}
|
|
7
|
+
#domSanitizer = inject(DomSanitizer);
|
|
10
8
|
transform(value) {
|
|
11
|
-
return this
|
|
9
|
+
return this.#domSanitizer.bypassSecurityTrustResourceUrl(value);
|
|
12
10
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
14
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, isStandalone: true, name: "safeResourceUrl" }); }
|
|
15
13
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
|
|
17
15
|
type: Pipe,
|
|
18
16
|
args: [{
|
|
19
|
-
name: 'safeResourceUrl'
|
|
17
|
+
name: 'safeResourceUrl',
|
|
18
|
+
standalone: true
|
|
20
19
|
}]
|
|
21
20
|
}] });
|
|
22
21
|
|
|
23
22
|
class SafeUrlPipe {
|
|
24
|
-
|
|
25
|
-
this.domSanitizer = inject(DomSanitizer);
|
|
26
|
-
}
|
|
23
|
+
#domSanitizer = inject(DomSanitizer);
|
|
27
24
|
transform(value) {
|
|
28
|
-
return this
|
|
25
|
+
return this.#domSanitizer.bypassSecurityTrustUrl(value);
|
|
29
26
|
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
31
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
28
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, isStandalone: true, name: "safeUrl" }); }
|
|
32
29
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, decorators: [{
|
|
34
31
|
type: Pipe,
|
|
35
32
|
args: [{
|
|
36
|
-
name: 'safeUrl'
|
|
33
|
+
name: 'safeUrl',
|
|
34
|
+
standalone: true
|
|
37
35
|
}]
|
|
38
36
|
}] });
|
|
39
37
|
|
|
@@ -48,11 +46,11 @@ class UriSchemePipe {
|
|
|
48
46
|
if (!extension) {
|
|
49
47
|
return value;
|
|
50
48
|
}
|
|
51
|
-
const command = this
|
|
52
|
-
const app = this
|
|
49
|
+
const command = this.#command(extension);
|
|
50
|
+
const app = this.#app(extension);
|
|
53
51
|
return `ms-${app}:${command}|u|${value}`;
|
|
54
52
|
}
|
|
55
|
-
app(extension) {
|
|
53
|
+
#app(extension) {
|
|
56
54
|
switch (extension.toLowerCase()) {
|
|
57
55
|
// documents
|
|
58
56
|
case 'doc':
|
|
@@ -108,7 +106,7 @@ class UriSchemePipe {
|
|
|
108
106
|
return '';
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
|
-
command(extension) {
|
|
109
|
+
#command(extension) {
|
|
112
110
|
switch (extension.toLowerCase()) {
|
|
113
111
|
case 'dot':
|
|
114
112
|
case 'dotx':
|
|
@@ -129,37 +127,38 @@ class UriSchemePipe {
|
|
|
129
127
|
return `of${openMode}`; // default: open file as view/edit
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
133
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
131
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, isStandalone: true, name: "uriScheme", pure: false }); }
|
|
134
132
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, decorators: [{
|
|
136
134
|
type: Pipe,
|
|
137
135
|
args: [{
|
|
138
136
|
name: 'uriScheme',
|
|
137
|
+
standalone: true,
|
|
139
138
|
pure: false
|
|
140
139
|
}]
|
|
141
140
|
}] });
|
|
142
141
|
|
|
143
142
|
class UrlUtilitiesModule {
|
|
144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
145
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.
|
|
143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
144
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule,
|
|
145
|
+
SafeResourceUrlPipe,
|
|
146
146
|
SafeUrlPipe,
|
|
147
|
-
UriSchemePipe],
|
|
147
|
+
UriSchemePipe], exports: [SafeResourceUrlPipe,
|
|
148
148
|
SafeUrlPipe,
|
|
149
149
|
UriSchemePipe] }); }
|
|
150
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.
|
|
150
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule] }); }
|
|
151
151
|
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, decorators: [{
|
|
153
153
|
type: NgModule,
|
|
154
154
|
args: [{
|
|
155
|
-
declarations: [
|
|
155
|
+
declarations: [],
|
|
156
|
+
imports: [
|
|
157
|
+
CommonModule,
|
|
156
158
|
SafeResourceUrlPipe,
|
|
157
159
|
SafeUrlPipe,
|
|
158
160
|
UriSchemePipe
|
|
159
161
|
],
|
|
160
|
-
imports: [
|
|
161
|
-
CommonModule
|
|
162
|
-
],
|
|
163
162
|
exports: [
|
|
164
163
|
SafeResourceUrlPipe,
|
|
165
164
|
SafeUrlPipe,
|
|
@@ -168,9 +167,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
168
167
|
}]
|
|
169
168
|
}] });
|
|
170
169
|
|
|
170
|
+
const CP_URL_PIPES = [
|
|
171
|
+
SafeResourceUrlPipe,
|
|
172
|
+
SafeUrlPipe,
|
|
173
|
+
UriSchemePipe
|
|
174
|
+
];
|
|
175
|
+
|
|
171
176
|
/**
|
|
172
177
|
* Generated bundle index. Do not edit.
|
|
173
178
|
*/
|
|
174
179
|
|
|
175
|
-
export { SafeResourceUrlPipe, SafeUrlPipe, UriSchemePipe, UrlUtilitiesModule };
|
|
180
|
+
export { CP_URL_PIPES, SafeResourceUrlPipe, SafeUrlPipe, UriSchemePipe, UrlUtilitiesModule };
|
|
176
181
|
//# sourceMappingURL=cleavelandprice-ngx-lib-url-utilities.mjs.map
|
|
@@ -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 { inject, Pipe, PipeTransform } from '@angular/core';\
|
|
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/url-utilities.api.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 standalone: true\n})\nexport class SafeResourceUrlPipe implements PipeTransform {\n #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 standalone: true\n})\nexport class SafeUrlPipe implements PipeTransform {\n #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 standalone: true,\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 #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 #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 { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\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 ],\n imports: [\n CommonModule,\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ],\n exports: [\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ]\n})\nexport class UrlUtilitiesModule { }\n","import { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';\r\nimport { SafeUrlPipe } from './pipes/safe-url.pipe';\r\nimport { UriSchemePipe } from './pipes/uri-scheme.pipe';\r\n\r\nexport * from './pipes/safe-resource-url.pipe';\r\nexport * from './pipes/safe-url.pipe';\r\nexport * from './pipes/uri-scheme.pipe';\r\n\r\nexport * from './url-utilities.module';\r\n\r\nexport const CP_URL_PIPES = [\r\n SafeResourceUrlPipe,\r\n SafeUrlPipe,\r\n UriSchemePipe\r\n ] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './url-utilities.api';\n"],"names":[],"mappings":";;;;;MAOa,mBAAmB,CAAA;AAC9B,IAAA,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAErC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;KACjE;8GALU,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,CAAA,CAAA,EAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,iBAAiB;AACvB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;;MCCY,WAAW,CAAA;AACtB,IAAA,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAErC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,C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A,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,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,YAX3B,YAAY;YACZ,mBAAmB;YACnB,WAAW;AACX,YAAA,aAAa,aAGb,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,YAX3B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAWH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EACb;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACXY,MAAA,YAAY,GAAG;IACxB,mBAAmB;IACnB,WAAW;IACX,aAAa;;;ACbjB;;AAEG;;;;"}
|
|
@@ -1,76 +1,97 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, Injectable, NgModule,
|
|
2
|
+
import { InjectionToken, Optional, Inject, inject, Injectable, NgModule, SkipSelf } from '@angular/core';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { __decorate, __param } from 'tslib';
|
|
5
|
+
|
|
6
|
+
const NgxLibServiceOptionsToken = new InjectionToken('');
|
|
4
7
|
|
|
5
|
-
class
|
|
8
|
+
let NgxLibServiceBase = class NgxLibServiceBase {
|
|
9
|
+
#useSsl;
|
|
10
|
+
#apiUrl;
|
|
6
11
|
get apiUrl() {
|
|
7
|
-
return this
|
|
8
|
-
this
|
|
12
|
+
return this.#apiUrl ? this.#apiUrl :
|
|
13
|
+
this.#useSsl ?
|
|
9
14
|
'https://utilityapi.cleavelandprice.com' :
|
|
10
15
|
'http://utilityapi';
|
|
11
16
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
But if you want to completely disregard the utilityapi URL and use your own, you would pass the URL via this parameter. */
|
|
15
|
-
constructor(useSsl_or_customApiUrl = false) {
|
|
16
|
-
this.useSsl = false;
|
|
17
|
-
if (typeof useSsl_or_customApiUrl === 'boolean') {
|
|
18
|
-
this.useSsl = useSsl_or_customApiUrl;
|
|
19
|
-
}
|
|
20
|
-
else if (typeof useSsl_or_customApiUrl === 'string') {
|
|
21
|
-
this.customApiUrl = useSsl_or_customApiUrl;
|
|
22
|
-
}
|
|
17
|
+
set apiUrl(value) {
|
|
18
|
+
this.#apiUrl = value;
|
|
23
19
|
}
|
|
24
|
-
|
|
20
|
+
constructor(options) {
|
|
21
|
+
this.#useSsl = options?.useSsl === undefined ? true : options.useSsl;
|
|
22
|
+
this.#apiUrl = options?.apiUrl;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
NgxLibServiceBase = __decorate([
|
|
26
|
+
__param(0, Optional()),
|
|
27
|
+
__param(0, Inject(NgxLibServiceOptionsToken))
|
|
28
|
+
], NgxLibServiceBase);
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
//import { ServiceConfig } from '../model/service-config';
|
|
31
|
+
class AppPathConfigService extends NgxLibServiceBase {
|
|
32
|
+
#services = {
|
|
33
|
+
//config: inject(ServiceConfig, { optional: true }) ?? new ServiceConfig(),
|
|
34
|
+
http: inject(HttpClient)
|
|
35
|
+
};
|
|
36
|
+
#url; // = `${this.#config.apiUrl}/apppathconfigs`;
|
|
37
|
+
constructor(options) {
|
|
38
|
+
super(options);
|
|
39
|
+
this.#url = `${this.apiUrl}/apppathconfigs`;
|
|
33
40
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
#url;
|
|
36
41
|
getAll() {
|
|
37
|
-
return this.http.get(this.#url);
|
|
42
|
+
return this.#services.http.get(this.#url);
|
|
38
43
|
}
|
|
39
44
|
getById(id) {
|
|
40
|
-
return this.http.get(`${this.#url}/${id}`);
|
|
45
|
+
return this.#services.http.get(`${this.#url}/${id}`);
|
|
41
46
|
}
|
|
42
47
|
getByAppId(id) {
|
|
43
|
-
return this.http.get(`${this.#url}/appid/${id}`);
|
|
48
|
+
return this.#services.http.get(`${this.#url}/appid/${id}`);
|
|
44
49
|
}
|
|
45
50
|
getByApp(name) {
|
|
46
|
-
return this.http.get(`${this.#url}/app/${name}`);
|
|
51
|
+
return this.#services.http.get(`${this.#url}/app/${name}`);
|
|
47
52
|
}
|
|
48
53
|
getByAppTypeId(id) {
|
|
49
|
-
return this.http.get(`${this.#url}/apptypeid/${id}`);
|
|
54
|
+
return this.#services.http.get(`${this.#url}/apptypeid/${id}`);
|
|
50
55
|
}
|
|
51
56
|
getByAppType(name) {
|
|
52
|
-
return this.http.get(`${this.#url}/apptype/${name}`);
|
|
57
|
+
return this.#services.http.get(`${this.#url}/apptype/${name}`);
|
|
53
58
|
}
|
|
54
59
|
getByAppFunction(name) {
|
|
55
|
-
return this.http.get(`${this.#url}/function/${name}`);
|
|
60
|
+
return this.#services.http.get(`${this.#url}/function/${name}`);
|
|
56
61
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
58
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, deps: [{ token: NgxLibServiceOptionsToken, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
63
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
|
|
59
64
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, decorators: [{
|
|
61
66
|
type: Injectable,
|
|
62
67
|
args: [{
|
|
63
68
|
providedIn: 'root'
|
|
64
69
|
}]
|
|
65
|
-
}]
|
|
70
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
71
|
+
type: Optional
|
|
72
|
+
}, {
|
|
73
|
+
type: Inject,
|
|
74
|
+
args: [NgxLibServiceOptionsToken]
|
|
75
|
+
}] }] });
|
|
66
76
|
|
|
67
77
|
class NgxLibModule {
|
|
68
|
-
static forRoot(config) {
|
|
78
|
+
/*static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule> {
|
|
79
|
+
return {
|
|
80
|
+
ngModule: NgxLibModule,
|
|
81
|
+
providers: [
|
|
82
|
+
AppPathConfigService,
|
|
83
|
+
{ provide: ServiceConfig, useValue: config }
|
|
84
|
+
]
|
|
85
|
+
};
|
|
86
|
+
}*/
|
|
87
|
+
static forRoot(options) {
|
|
69
88
|
return {
|
|
70
89
|
ngModule: NgxLibModule,
|
|
71
90
|
providers: [
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
{
|
|
92
|
+
provide: NgxLibServiceOptionsToken,
|
|
93
|
+
useValue: options
|
|
94
|
+
}
|
|
74
95
|
]
|
|
75
96
|
};
|
|
76
97
|
}
|
|
@@ -79,11 +100,11 @@ class NgxLibModule {
|
|
|
79
100
|
throw new Error('NgxLibModule is already loaded. Import it in the AppModule only');
|
|
80
101
|
}
|
|
81
102
|
}
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
83
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.
|
|
84
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.
|
|
103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule, deps: [{ token: NgxLibModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
104
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule }); }
|
|
105
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule }); }
|
|
85
106
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule, decorators: [{
|
|
87
108
|
type: NgModule,
|
|
88
109
|
args: [{
|
|
89
110
|
declarations: [],
|
|
@@ -104,5 +125,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
104
125
|
* Generated bundle index. Do not edit.
|
|
105
126
|
*/
|
|
106
127
|
|
|
107
|
-
export { AppPathConfigService, NgxLibModule,
|
|
128
|
+
export { AppPathConfigService, NgxLibModule, NgxLibServiceBase, NgxLibServiceOptionsToken };
|
|
108
129
|
//# sourceMappingURL=cleavelandprice-ngx-lib.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-
|
|
1
|
+
{"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-options.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/service-base.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":["import { InjectionToken } from \"@angular/core\";\r\n\r\nexport interface NgxLibServiceOptions {\r\n useSsl?: boolean;\r\n apiUrl?: string;\r\n}\r\nexport const NgxLibServiceOptionsToken = new InjectionToken<NgxLibServiceOptions>('');","import { Inject, Optional } from \"@angular/core\";\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from \"../model/service-options\";\r\n\r\nexport class NgxLibServiceBase {\r\n #useSsl: boolean;\r\n #apiUrl?: string;\r\n\r\n get apiUrl(): string {\r\n return this.#apiUrl ? this.#apiUrl :\r\n this.#useSsl ?\r\n 'https://utilityapi.cleavelandprice.com' :\r\n 'http://utilityapi';\r\n }\r\n set apiUrl(value: string) {\r\n this.#apiUrl = value;\r\n }\r\n\r\n constructor(@Optional() @Inject(NgxLibServiceOptionsToken) options?: NgxLibServiceOptions) {\r\n this.#useSsl = options?.useSsl === undefined ? true : options.useSsl!;\r\n this.#apiUrl = options?.apiUrl;\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, inject, Injectable, Optional } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { AppPathConfig } from '../model/app-path-config';\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from '../model/service-options';\r\nimport { NgxLibServiceBase } from './service-base';\r\n//import { ServiceConfig } from '../model/service-config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppPathConfigService extends NgxLibServiceBase {\r\n #services = {\r\n //config: inject(ServiceConfig, { optional: true }) ?? new ServiceConfig(),\r\n http: inject(HttpClient)\r\n };\r\n\r\n #url: string; // = `${this.#config.apiUrl}/apppathconfigs`;\r\n\r\n constructor(@Optional() @Inject(NgxLibServiceOptionsToken) options?: NgxLibServiceOptions) {\r\n super(options);\r\n\r\n this.#url = `${this.apiUrl}/apppathconfigs`;\r\n }\r\n\r\n getAll(): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(this.#url);\r\n }\r\n\r\n getById(id: number): Observable<AppPathConfig> {\r\n return this.#services.http.get<AppPathConfig>(`${this.#url}/${id}`);\r\n }\r\n\r\n getByAppId(id: number): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/appid/${id}`);\r\n }\r\n\r\n getByApp(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/app/${name}`);\r\n }\r\n\r\n getByAppTypeId(id: number): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/apptypeid/${id}`);\r\n }\r\n\r\n getByAppType(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/apptype/${name}`);\r\n }\r\n\r\n getByAppFunction(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/function/${name}`);\r\n }\r\n}","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from './model/service-options';\r\n\r\n\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 static forRoot(options: NgxLibServiceOptions): ModuleWithProviders<NgxLibModule> {\r\n return {\r\n ngModule: NgxLibModule,\r\n providers: [\r\n {\r\n provide: NgxLibServiceOptionsToken,\r\n useValue: options\r\n }\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/caching-config';\r\nexport * from './lib/model/credentials';\r\nexport * from './lib/model/logging-config';\r\nexport * from './lib/model/service-options';\r\n\r\nexport * from './lib/services/app-path-config.service';\r\nexport * from './lib/services/service-base';\r\n\r\nexport * from './lib/ngx-lib.module';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAMa,yBAAyB,GAAG,IAAI,cAAc,CAAuB,EAAE;;ACHvE,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAC1B,IAAA,OAAO,CAAU;AACjB,IAAA,OAAO,CAAU;AAEjB,IAAA,IAAI,MAAM,GAAA;QACN,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO;YAC9B,IAAI,CAAC,OAAO;AACR,gBAAA,wCAAwC;AACxC,gBAAA,mBAAmB,CAAC;KAC/B;IACD,IAAI,MAAM,CAAC,KAAa,EAAA;AACpB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACxB;AAED,IAAA,WAAA,CAA2D,OAA8B,EAAA;AACrF,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC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BASc,QAAQ;;0BAAI,MAAM;2BAAC,yBAAyB,CAAA;;;MCP9C,YAAY,CAAA;AACvB;;;;;;;;AAQG;IACH,OAAO,OAAO,CAAC,OAA6B,EAAA;QAC1C,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;AACtB,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,yBAAyB;AAClC,oBAAA,QAAQ,EAAE,OAAO;AAClB,iBAAA;AACF,aAAA;SACF,CAAC;KACH;AAED,IAAA,WAAA,CAAoC,YAA0B,EAAA;QAC5D,IAAI,YAAY,EAAE;AAChB,YAAA,MAAM,IAAI,KAAK,CACb,iEAAiE,CAAC,CAAC;SACtE;KACF;8GA3BU,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,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;;0BAuBc,QAAQ;;0BAAI,QAAQ;;;ACnCnC;;AAEG;;ACFH;;AAEG;;;;"}
|
package/lib/ngx-lib.module.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { NgxLibServiceOptions } from './model/service-options';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgxLibModule {
|
|
5
|
-
static forRoot(
|
|
5
|
+
static forRoot(options: NgxLibServiceOptions): ModuleWithProviders<NgxLibModule>;
|
|
6
6
|
constructor(parentModule: NgxLibModule);
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxLibModule, [{ optional: true; skipSelf: true; }]>;
|
|
8
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxLibModule, never, never, never>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { AppPathConfig } from '../model/app-path-config';
|
|
3
|
+
import { NgxLibServiceOptions } from '../model/service-options';
|
|
4
|
+
import { NgxLibServiceBase } from './service-base';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AppPathConfigService {
|
|
6
|
+
export declare class AppPathConfigService extends NgxLibServiceBase {
|
|
5
7
|
#private;
|
|
6
|
-
|
|
7
|
-
private http;
|
|
8
|
+
constructor(options?: NgxLibServiceOptions);
|
|
8
9
|
getAll(): Observable<AppPathConfig[]>;
|
|
9
10
|
getById(id: number): Observable<AppPathConfig>;
|
|
10
11
|
getByAppId(id: number): Observable<AppPathConfig[]>;
|
|
@@ -12,6 +13,6 @@ export declare class AppPathConfigService {
|
|
|
12
13
|
getByAppTypeId(id: number): Observable<AppPathConfig[]>;
|
|
13
14
|
getByAppType(name: string): Observable<AppPathConfig[]>;
|
|
14
15
|
getByAppFunction(name: string): Observable<AppPathConfig[]>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService,
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService, [{ optional: true; }]>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppPathConfigService>;
|
|
17
18
|
}
|
package/msgraph/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
import * as i1 from "@angular/common";
|
|
4
3
|
export declare class MSGraphModule {
|
|
5
|
-
static forRoot(): ModuleWithProviders<MSGraphModule>;
|
|
6
4
|
constructor(parentModule: MSGraphModule);
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MSGraphModule, [{ optional: true; skipSelf: true; }]>;
|
|
8
6
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MSGraphModule, never, [typeof i1.CommonModule], never>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"comment": "NGX-LIB primary entry point package.json",
|
|
3
3
|
"name": "@cleavelandprice/ngx-lib",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "Angular library providing foundational functionality to Cleaveland-Price applications",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "^17.3.
|
|
8
|
-
"@angular/core": "^17.3.
|
|
7
|
+
"@angular/common": "^17.3.3",
|
|
8
|
+
"@angular/core": "^17.3.3"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
|
+
"sideEffects": false,
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
15
16
|
"url": "https://github.com/cleavelandprice/ngx-lib"
|
|
@@ -58,41 +59,47 @@
|
|
|
58
59
|
"esm": "./esm2022/msgraph/cleavelandprice-ngx-lib-msgraph.mjs",
|
|
59
60
|
"default": "./fesm2022/cleavelandprice-ngx-lib-msgraph.mjs"
|
|
60
61
|
},
|
|
61
|
-
"./quill": {
|
|
62
|
-
"types": "./quill/index.d.ts",
|
|
63
|
-
"esm2022": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
|
|
64
|
-
"esm": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
|
|
65
|
-
"default": "./fesm2022/cleavelandprice-ngx-lib-quill.mjs"
|
|
66
|
-
},
|
|
67
62
|
"./sharepoint": {
|
|
68
63
|
"types": "./sharepoint/index.d.ts",
|
|
69
64
|
"esm2022": "./esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs",
|
|
70
65
|
"esm": "./esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs",
|
|
71
66
|
"default": "./fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs"
|
|
72
67
|
},
|
|
68
|
+
"./quill": {
|
|
69
|
+
"types": "./quill/index.d.ts",
|
|
70
|
+
"esm2022": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
|
|
71
|
+
"esm": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
|
|
72
|
+
"default": "./fesm2022/cleavelandprice-ngx-lib-quill.mjs"
|
|
73
|
+
},
|
|
73
74
|
"./table": {
|
|
74
75
|
"types": "./table/index.d.ts",
|
|
75
76
|
"esm2022": "./esm2022/table/cleavelandprice-ngx-lib-table.mjs",
|
|
76
77
|
"esm": "./esm2022/table/cleavelandprice-ngx-lib-table.mjs",
|
|
77
78
|
"default": "./fesm2022/cleavelandprice-ngx-lib-table.mjs"
|
|
78
79
|
},
|
|
80
|
+
"./url-utilities": {
|
|
81
|
+
"types": "./url-utilities/index.d.ts",
|
|
82
|
+
"esm2022": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
|
|
83
|
+
"esm": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
|
|
84
|
+
"default": "./fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs"
|
|
85
|
+
},
|
|
79
86
|
"./upload": {
|
|
80
87
|
"types": "./upload/index.d.ts",
|
|
81
88
|
"esm2022": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
|
|
82
89
|
"esm": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
|
|
83
90
|
"default": "./fesm2022/cleavelandprice-ngx-lib-upload.mjs"
|
|
84
91
|
},
|
|
85
|
-
"./
|
|
86
|
-
"types": "./
|
|
87
|
-
"esm2022": "./esm2022/
|
|
88
|
-
"esm": "./esm2022/
|
|
89
|
-
"default": "./fesm2022/cleavelandprice-ngx-lib-
|
|
92
|
+
"./active-directory/material": {
|
|
93
|
+
"types": "./active-directory/material/index.d.ts",
|
|
94
|
+
"esm2022": "./esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs",
|
|
95
|
+
"esm": "./esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs",
|
|
96
|
+
"default": "./fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs"
|
|
90
97
|
},
|
|
91
|
-
"./
|
|
92
|
-
"types": "./
|
|
93
|
-
"esm2022": "./esm2022/
|
|
94
|
-
"esm": "./esm2022/
|
|
95
|
-
"default": "./fesm2022/cleavelandprice-ngx-lib-
|
|
98
|
+
"./authentication/material": {
|
|
99
|
+
"types": "./authentication/material/index.d.ts",
|
|
100
|
+
"esm2022": "./esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs",
|
|
101
|
+
"esm": "./esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs",
|
|
102
|
+
"default": "./fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs"
|
|
96
103
|
},
|
|
97
104
|
"./authentication/object": {
|
|
98
105
|
"types": "./authentication/object/index.d.ts",
|
|
@@ -111,13 +118,6 @@
|
|
|
111
118
|
"esm2022": "./esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs",
|
|
112
119
|
"esm": "./esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs",
|
|
113
120
|
"default": "./fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs"
|
|
114
|
-
},
|
|
115
|
-
"./authentication/token/gui": {
|
|
116
|
-
"types": "./authentication/token/gui/index.d.ts",
|
|
117
|
-
"esm2022": "./esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs",
|
|
118
|
-
"esm": "./esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs",
|
|
119
|
-
"default": "./fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs"
|
|
120
121
|
}
|
|
121
|
-
}
|
|
122
|
-
"sideEffects": false
|
|
122
|
+
}
|
|
123
123
|
}
|
package/public_api.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from './lib/model/app';
|
|
2
2
|
export * from './lib/model/app-path-config';
|
|
3
3
|
export * from './lib/model/app-type';
|
|
4
|
-
export * from './lib/model/
|
|
4
|
+
export * from './lib/model/caching-config';
|
|
5
|
+
export * from './lib/model/credentials';
|
|
6
|
+
export * from './lib/model/logging-config';
|
|
7
|
+
export * from './lib/model/service-options';
|
|
5
8
|
export * from './lib/services/app-path-config.service';
|
|
9
|
+
export * from './lib/services/service-base';
|
|
6
10
|
export * from './lib/ngx-lib.module';
|