@cleavelandprice/ngx-lib 3.7.2 → 3.8.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/active-directory/active-directory.module.d.ts +11 -11
- package/active-directory/gui/components/user-chooser/user-chooser.component.d.ts +58 -58
- package/active-directory/gui/components/user-form-field/user-form-field.component.d.ts +29 -29
- package/active-directory/gui/gui.module.d.ts +25 -25
- package/active-directory/gui/index.d.ts +5 -5
- package/active-directory/gui/model/selectable-user.d.ts +5 -5
- package/active-directory/gui/model/user-chooser-data.d.ts +22 -22
- package/active-directory/gui/model/user-chooser-filter-options.d.ts +7 -7
- package/active-directory/gui/model/user-chooser-mode.d.ts +4 -4
- package/active-directory/gui/model/user-chooser-pre-processing-group.d.ts +6 -6
- package/active-directory/gui/public_api.d.ts +8 -8
- package/active-directory/index.d.ts +5 -5
- package/active-directory/model/ad-object-with-children.d.ts +4 -4
- package/active-directory/model/ad-object.d.ts +13 -13
- package/active-directory/model/cache-object.d.ts +4 -4
- package/active-directory/model/caching-config.d.ts +4 -4
- package/active-directory/model/cleaveland-price-user.d.ts +17 -17
- package/active-directory/model/group.d.ts +7 -7
- package/active-directory/model/logging-config.d.ts +6 -6
- package/active-directory/model/service-config.d.ts +8 -8
- package/active-directory/model/user-or-group.d.ts +7 -7
- package/active-directory/model/user.d.ts +23 -23
- package/active-directory/public_api.d.ts +11 -11
- package/active-directory/services/active-directory.service.d.ts +32 -32
- package/authentication/authentication.base.module.d.ts +7 -7
- package/authentication/index.d.ts +5 -5
- package/authentication/model/abstract-authentication-service.d.ts +16 -16
- package/authentication/model/authenticated-user.d.ts +9 -9
- package/authentication/model/authentication-request.d.ts +8 -6
- package/authentication/model/service-config.d.ts +8 -7
- package/authentication/object/index.d.ts +5 -5
- package/authentication/object/model/service-config.d.ts +4 -4
- package/authentication/object/object.module.d.ts +11 -11
- package/authentication/object/public_api.d.ts +3 -3
- package/authentication/object/services/authentication.service.d.ts +25 -25
- package/authentication/public_api.d.ts +5 -5
- package/authentication/token/gui/components/login/login.component.d.ts +14 -13
- package/authentication/token/gui/components/login-form/login-form.component.d.ts +29 -28
- package/authentication/token/gui/index.d.ts +5 -5
- package/authentication/token/gui/model/login-form-data.d.ts +4 -3
- package/authentication/token/gui/model/service-config.d.ts +5 -5
- package/authentication/token/gui/public_api.d.ts +6 -6
- package/authentication/token/gui/services/authentication.service.d.ts +15 -15
- package/authentication/token/gui/token-gui.module.d.ts +21 -21
- package/authentication/token/index.d.ts +5 -5
- package/authentication/token/model/authentication-token.d.ts +17 -17
- package/authentication/token/model/service-config.d.ts +5 -5
- package/authentication/token/public_api.d.ts +4 -4
- package/authentication/token/services/authentication.service.d.ts +24 -24
- package/authentication/token/token.module.d.ts +11 -11
- package/dialog/components/base/base.component.d.ts +22 -22
- package/dialog/components/choice/choice.component.d.ts +12 -12
- package/dialog/components/confirmation/confirmation.component.d.ts +12 -12
- package/dialog/components/input/input.component.d.ts +12 -12
- package/dialog/components/message/message.component.d.ts +12 -12
- package/dialog/dialog.module.d.ts +18 -18
- package/dialog/index.d.ts +5 -5
- package/dialog/model/confirmation-dialog-mode.d.ts +6 -6
- package/dialog/model/dialog-base-data.d.ts +10 -10
- package/dialog/model/dialog-choice-data.d.ts +4 -4
- package/dialog/model/dialog-type.d.ts +6 -6
- package/dialog/public_api.d.ts +9 -9
- package/esm2022/active-directory/active-directory.module.mjs +40 -0
- package/{esm2020 → esm2022}/active-directory/cleavelandprice-ngx-lib-active-directory.mjs +4 -4
- package/{esm2020 → esm2022}/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs +4 -4
- package/esm2022/active-directory/gui/components/user-chooser/user-chooser.component.mjs +375 -0
- package/esm2022/active-directory/gui/components/user-form-field/user-form-field.component.mjs +130 -0
- package/esm2022/active-directory/gui/gui.module.mjs +97 -0
- package/{esm2020 → esm2022}/active-directory/gui/model/selectable-user.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/gui/model/user-chooser-data.mjs +32 -32
- package/{esm2020 → esm2022}/active-directory/gui/model/user-chooser-filter-options.mjs +9 -9
- package/{esm2020 → esm2022}/active-directory/gui/model/user-chooser-mode.mjs +5 -5
- package/{esm2020 → esm2022}/active-directory/gui/model/user-chooser-pre-processing-group.mjs +8 -8
- package/{esm2020 → esm2022}/active-directory/gui/public_api.mjs +8 -8
- package/{esm2020 → esm2022}/active-directory/model/ad-object-with-children.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/model/ad-object.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/model/cache-object.mjs +2 -2
- package/{esm2020 → esm2022}/active-directory/model/caching-config.mjs +6 -6
- package/{esm2020 → esm2022}/active-directory/model/cleaveland-price-user.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/model/group.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/model/logging-config.mjs +8 -8
- package/{esm2020 → esm2022}/active-directory/model/service-config.mjs +11 -11
- package/{esm2020 → esm2022}/active-directory/model/user-or-group.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/model/user.mjs +1 -1
- package/{esm2020 → esm2022}/active-directory/public_api.mjs +11 -11
- package/esm2022/active-directory/services/active-directory.service.mjs +112 -0
- package/esm2022/authentication/authentication.base.module.mjs +20 -0
- package/{esm2020 → esm2022}/authentication/cleavelandprice-ngx-lib-authentication.mjs +4 -4
- package/{esm2020 → esm2022}/authentication/model/abstract-authentication-service.mjs +1 -1
- package/{esm2020 → esm2022}/authentication/model/authenticated-user.mjs +1 -1
- package/{esm2020 → esm2022}/authentication/model/authentication-request.mjs +2 -2
- package/esm2022/authentication/model/service-config.mjs +12 -0
- package/{esm2020 → esm2022}/authentication/object/cleavelandprice-ngx-lib-authentication-object.mjs +4 -4
- package/esm2022/authentication/object/model/service-config.mjs +9 -0
- package/esm2022/authentication/object/object.module.mjs +40 -0
- package/{esm2020 → esm2022}/authentication/object/public_api.mjs +3 -3
- package/esm2022/authentication/object/services/authentication.service.mjs +109 -0
- package/{esm2020 → esm2022}/authentication/public_api.mjs +5 -5
- package/{esm2020 → esm2022}/authentication/token/cleavelandprice-ngx-lib-authentication-token.mjs +4 -4
- package/{esm2020 → esm2022}/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs +4 -4
- package/esm2022/authentication/token/gui/components/login/login.component.mjs +45 -0
- package/esm2022/authentication/token/gui/components/login-form/login-form.component.mjs +74 -0
- package/{esm2020 → esm2022}/authentication/token/gui/model/login-form-data.mjs +2 -2
- package/esm2022/authentication/token/gui/model/service-config.mjs +10 -0
- package/{esm2020 → esm2022}/authentication/token/gui/public_api.mjs +6 -6
- package/esm2022/authentication/token/gui/services/authentication.service.mjs +79 -0
- package/esm2022/authentication/token/gui/token-gui.module.mjs +82 -0
- package/{esm2020 → esm2022}/authentication/token/model/authentication-token.mjs +1 -1
- package/esm2022/authentication/token/model/service-config.mjs +10 -0
- package/{esm2020 → esm2022}/authentication/token/public_api.mjs +4 -4
- package/esm2022/authentication/token/services/authentication.service.mjs +120 -0
- package/esm2022/authentication/token/token.module.mjs +40 -0
- package/{esm2020 → esm2022}/cleavelandprice-ngx-lib.mjs +4 -4
- package/{esm2020 → esm2022}/dialog/cleavelandprice-ngx-lib-dialog.mjs +4 -4
- package/esm2022/dialog/components/base/base.component.mjs +93 -0
- package/esm2022/dialog/components/choice/choice.component.mjs +24 -0
- package/esm2022/dialog/components/confirmation/confirmation.component.mjs +24 -0
- package/esm2022/dialog/components/input/input.component.mjs +24 -0
- package/esm2022/dialog/components/message/message.component.mjs +24 -0
- package/esm2022/dialog/dialog.module.mjs +69 -0
- package/{esm2020 → esm2022}/dialog/model/confirmation-dialog-mode.mjs +7 -7
- package/{esm2020 → esm2022}/dialog/model/dialog-base-data.mjs +1 -1
- package/{esm2020 → esm2022}/dialog/model/dialog-choice-data.mjs +1 -1
- package/{esm2020 → esm2022}/dialog/model/dialog-type.mjs +7 -7
- package/{esm2020 → esm2022}/dialog/public_api.mjs +9 -9
- package/{esm2020 → esm2022}/lib/model/app-path-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/model/app-type.mjs +1 -1
- package/{esm2020 → esm2022}/lib/model/app.mjs +1 -1
- package/esm2022/lib/model/service-config.mjs +21 -0
- package/esm2022/lib/ngx-lib.module.mjs +37 -0
- package/esm2022/lib/services/app-path-config.service.mjs +46 -0
- package/{esm2020 → esm2022}/msgraph/cleavelandprice-ngx-lib-msgraph.mjs +4 -4
- package/{esm2020 → esm2022}/msgraph/model/address.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/attendee.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/bulk-calendar-events.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/bulk-calendar-request.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/calendar-event.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/coordinates.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/email-address.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/location.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/online-meeting-info.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/patterned-recurrence.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/phone.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/recipient.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/recurrence-pattern.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/recurrence-range.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/response-status.mjs +1 -1
- package/{esm2020 → esm2022}/msgraph/model/room.mjs +5 -5
- package/{esm2020 → esm2022}/msgraph/model/user.mjs +131 -131
- package/esm2022/msgraph/msgraph.module.mjs +33 -0
- package/{esm2020 → esm2022}/msgraph/public_api.mjs +18 -18
- package/{esm2020 → esm2022}/public_api.mjs +9 -9
- package/{esm2020 → esm2022}/quill/cleavelandprice-ngx-lib-quill.mjs +4 -4
- package/esm2022/quill/components/editor/editor.component.mjs +297 -0
- package/esm2022/quill/components/raw/raw.component.mjs +25 -0
- package/{esm2020 → esm2022}/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs +4 -4
- package/esm2022/quill/mention/components/editor/editor.component.mjs +156 -0
- package/{esm2020 → esm2022}/quill/mention/model/buttons.mjs +3 -3
- package/{esm2020 → esm2022}/quill/mention/model/config.mjs +3 -3
- package/{esm2020 → esm2022}/quill/mention/model/dialog-data.mjs +1 -1
- package/{esm2020 → esm2022}/quill/mention/model/icons.mjs +3 -3
- package/{esm2020 → esm2022}/quill/mention/model/tooltips.mjs +3 -3
- package/{esm2020 → esm2022}/quill/mention/public_api.mjs +7 -7
- package/esm2022/quill/mention/quill-mention.module.mjs +66 -0
- package/{esm2020 → esm2022}/quill/model/buttons.mjs +51 -51
- package/{esm2020 → esm2022}/quill/model/config.mjs +39 -39
- package/{esm2020 → esm2022}/quill/model/dialog-data.mjs +1 -1
- package/{esm2020 → esm2022}/quill/model/icons.mjs +8 -8
- package/{esm2020 → esm2022}/quill/model/tooltips.mjs +54 -54
- package/{esm2020 → esm2022}/quill/public_api.mjs +8 -8
- package/esm2022/quill/quill.module.mjs +79 -0
- package/{esm2020 → esm2022}/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs +4 -4
- package/esm2022/sharepoint/components/employee-photo/employee-photo.component.mjs +38 -0
- package/{esm2020 → esm2022}/sharepoint/model/base-item.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/base-request-credential.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/base-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/cache-object.mjs +2 -2
- package/{esm2020 → esm2022}/sharepoint/model/file-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/folder-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/list-item.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/list-items-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/photo-item.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/service-config.mjs +28 -28
- package/{esm2020 → esm2022}/sharepoint/model/uri-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/user-request.mjs +1 -1
- package/{esm2020 → esm2022}/sharepoint/model/user.mjs +1 -1
- package/esm2022/sharepoint/pipes/employee-photo-url.pipe.mjs +39 -0
- package/{esm2020 → esm2022}/sharepoint/public_api.mjs +16 -16
- package/esm2022/sharepoint/services/sharepoint.service.mjs +149 -0
- package/esm2022/sharepoint/sharepoint.module.mjs +50 -0
- package/{esm2020 → esm2022}/upload/cleavelandprice-ngx-lib-upload.mjs +4 -4
- package/esm2022/upload/components/upload/upload.component.mjs +35 -0
- package/esm2022/upload/components/upload-dialog/upload-dialog.component.mjs +87 -0
- package/{esm2020 → esm2022}/upload/model/database-file-info.mjs +1 -1
- package/{esm2020 → esm2022}/upload/model/file-upload-request.mjs +1 -1
- package/{esm2020 → esm2022}/upload/model/filesystem-file-info.mjs +1 -1
- package/{esm2020 → esm2022}/upload/model/service-config.mjs +15 -15
- package/{esm2020 → esm2022}/upload/public_api.mjs +8 -8
- package/esm2022/upload/services/upload.service.mjs +92 -0
- package/esm2022/upload/upload.module.mjs +66 -0
- package/{esm2020 → esm2022}/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs +4 -4
- package/esm2022/url-utilities/pipes/safe-resource-url.pipe.mjs +21 -0
- package/esm2022/url-utilities/pipes/safe-url.pipe.mjs +21 -0
- package/esm2022/url-utilities/pipes/uri-scheme.pipe.mjs +106 -0
- package/{esm2020 → esm2022}/url-utilities/public_api.mjs +4 -4
- package/esm2022/url-utilities/url-utilities.module.mjs +35 -0
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-active-directory-gui.mjs +586 -587
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-active-directory.mjs +155 -156
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-authentication-object.mjs +141 -140
- package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-authentication-token-gui.mjs +232 -226
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-authentication-token.mjs +152 -151
- package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/cleavelandprice-ngx-lib-authentication.mjs +25 -25
- package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-dialog.mjs +205 -205
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-dialog.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-msgraph.mjs +161 -162
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-msgraph.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-quill-mention.mjs +188 -189
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-quill-mention.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-quill.mjs +492 -493
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-quill.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-sharepoint.mjs +269 -270
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-sharepoint.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-upload.mjs +250 -251
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib-upload.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/cleavelandprice-ngx-lib-url-utilities.mjs +159 -160
- package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib.mjs +91 -92
- package/{fesm2020 → fesm2022}/cleavelandprice-ngx-lib.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/model/app-path-config.d.ts +10 -10
- package/lib/model/app-type.d.ts +5 -5
- package/lib/model/app.d.ts +16 -16
- package/lib/model/service-config.d.ts +6 -6
- package/lib/ngx-lib.module.d.ts +10 -10
- package/lib/services/app-path-config.service.d.ts +20 -20
- package/msgraph/index.d.ts +5 -5
- package/msgraph/model/address.d.ts +7 -7
- package/msgraph/model/attendee.d.ts +13 -13
- package/msgraph/model/bulk-calendar-events.d.ts +5 -5
- package/msgraph/model/bulk-calendar-request.d.ts +3 -3
- package/msgraph/model/calendar-event.d.ts +53 -53
- package/msgraph/model/coordinates.d.ts +7 -7
- package/msgraph/model/email-address.d.ts +4 -4
- package/msgraph/model/location.d.ts +12 -12
- package/msgraph/model/online-meeting-info.d.ts +9 -9
- package/msgraph/model/patterned-recurrence.d.ts +6 -6
- package/msgraph/model/phone.d.ts +4 -4
- package/msgraph/model/recipient.d.ts +4 -4
- package/msgraph/model/recurrence-pattern.d.ts +9 -9
- package/msgraph/model/recurrence-range.d.ts +7 -7
- package/msgraph/model/response-status.d.ts +4 -4
- package/msgraph/model/room.d.ts +22 -22
- package/msgraph/model/user.d.ts +29 -29
- package/msgraph/msgraph.module.d.ts +10 -10
- package/msgraph/public_api.d.ts +18 -18
- package/package.json +61 -93
- package/public_api.d.ts +6 -6
- package/quill/components/editor/editor.component.d.ts +53 -53
- package/quill/components/raw/raw.component.d.ts +7 -7
- package/quill/index.d.ts +5 -5
- package/quill/mention/components/editor/editor.component.d.ts +20 -20
- package/quill/mention/index.d.ts +5 -5
- package/quill/mention/model/buttons.d.ts +3 -3
- package/quill/mention/model/config.d.ts +3 -3
- package/quill/mention/model/dialog-data.d.ts +5 -5
- package/quill/mention/model/icons.d.ts +3 -3
- package/quill/mention/model/tooltips.d.ts +3 -3
- package/quill/mention/public_api.d.ts +7 -7
- package/quill/mention/quill-mention.module.d.ts +17 -17
- package/quill/model/buttons.d.ts +29 -29
- package/quill/model/config.d.ts +30 -30
- package/quill/model/dialog-data.d.ts +21 -21
- package/quill/model/icons.d.ts +6 -6
- package/quill/model/tooltips.d.ts +32 -32
- package/quill/public_api.d.ts +8 -8
- package/quill/quill.module.d.ts +20 -20
- package/sharepoint/components/employee-photo/employee-photo.component.d.ts +16 -16
- package/sharepoint/index.d.ts +5 -5
- package/sharepoint/model/base-item.d.ts +4 -4
- package/sharepoint/model/base-request-credential.d.ts +4 -4
- package/sharepoint/model/base-request.d.ts +8 -8
- package/sharepoint/model/cache-object.d.ts +4 -4
- package/sharepoint/model/file-request.d.ts +4 -4
- package/sharepoint/model/folder-request.d.ts +4 -4
- package/sharepoint/model/list-item.d.ts +10 -10
- package/sharepoint/model/list-items-request.d.ts +5 -5
- package/sharepoint/model/photo-item.d.ts +11 -11
- package/sharepoint/model/service-config.d.ts +23 -23
- package/sharepoint/model/uri-request.d.ts +4 -4
- package/sharepoint/model/user-request.d.ts +4 -4
- package/sharepoint/model/user.d.ts +12 -12
- package/sharepoint/pipes/employee-photo-url.pipe.d.ts +12 -12
- package/sharepoint/public_api.d.ts +16 -16
- package/sharepoint/services/sharepoint.service.d.ts +25 -25
- package/sharepoint/sharepoint.module.d.ts +13 -13
- package/upload/components/upload/upload.component.d.ts +15 -15
- package/upload/components/upload-dialog/upload-dialog.component.d.ts +24 -24
- package/upload/index.d.ts +5 -5
- package/upload/model/database-file-info.d.ts +7 -7
- package/upload/model/file-upload-request.d.ts +6 -6
- package/upload/model/filesystem-file-info.d.ts +12 -12
- package/upload/model/service-config.d.ts +15 -15
- package/upload/public_api.d.ts +8 -8
- package/upload/services/upload.service.d.ts +18 -18
- package/upload/upload.module.d.ts +17 -17
- package/url-utilities/index.d.ts +5 -5
- package/url-utilities/pipes/safe-resource-url.pipe.d.ts +10 -10
- package/url-utilities/pipes/safe-url.pipe.d.ts +10 -10
- package/url-utilities/pipes/uri-scheme.pipe.d.ts +9 -9
- package/url-utilities/public_api.d.ts +4 -4
- package/url-utilities/url-utilities.module.d.ts +10 -10
- package/esm2020/active-directory/active-directory.module.mjs +0 -39
- package/esm2020/active-directory/gui/components/user-chooser/user-chooser.component.mjs +0 -374
- package/esm2020/active-directory/gui/components/user-form-field/user-form-field.component.mjs +0 -129
- package/esm2020/active-directory/gui/gui.module.mjs +0 -96
- package/esm2020/active-directory/services/active-directory.service.mjs +0 -111
- package/esm2020/authentication/authentication.base.module.mjs +0 -19
- package/esm2020/authentication/model/service-config.mjs +0 -11
- package/esm2020/authentication/object/model/service-config.mjs +0 -9
- package/esm2020/authentication/object/object.module.mjs +0 -39
- package/esm2020/authentication/object/services/authentication.service.mjs +0 -106
- package/esm2020/authentication/token/gui/components/login/login.component.mjs +0 -39
- package/esm2020/authentication/token/gui/components/login-form/login-form.component.mjs +0 -71
- package/esm2020/authentication/token/gui/model/service-config.mjs +0 -10
- package/esm2020/authentication/token/gui/services/authentication.service.mjs +0 -78
- package/esm2020/authentication/token/gui/token-gui.module.mjs +0 -81
- package/esm2020/authentication/token/model/service-config.mjs +0 -10
- package/esm2020/authentication/token/services/authentication.service.mjs +0 -117
- package/esm2020/authentication/token/token.module.mjs +0 -39
- package/esm2020/dialog/components/base/base.component.mjs +0 -92
- package/esm2020/dialog/components/choice/choice.component.mjs +0 -23
- package/esm2020/dialog/components/confirmation/confirmation.component.mjs +0 -23
- package/esm2020/dialog/components/input/input.component.mjs +0 -23
- package/esm2020/dialog/components/message/message.component.mjs +0 -23
- package/esm2020/dialog/dialog.module.mjs +0 -68
- package/esm2020/lib/model/service-config.mjs +0 -21
- package/esm2020/lib/ngx-lib.module.mjs +0 -36
- package/esm2020/lib/services/app-path-config.service.mjs +0 -45
- package/esm2020/msgraph/msgraph.module.mjs +0 -32
- package/esm2020/quill/components/editor/editor.component.mjs +0 -296
- package/esm2020/quill/components/raw/raw.component.mjs +0 -24
- package/esm2020/quill/mention/components/editor/editor.component.mjs +0 -155
- package/esm2020/quill/mention/quill-mention.module.mjs +0 -65
- package/esm2020/quill/quill.module.mjs +0 -78
- package/esm2020/sharepoint/components/employee-photo/employee-photo.component.mjs +0 -37
- package/esm2020/sharepoint/pipes/employee-photo-url.pipe.mjs +0 -38
- package/esm2020/sharepoint/services/sharepoint.service.mjs +0 -148
- package/esm2020/sharepoint/sharepoint.module.mjs +0 -49
- package/esm2020/upload/components/upload/upload.component.mjs +0 -34
- package/esm2020/upload/components/upload-dialog/upload-dialog.component.mjs +0 -86
- package/esm2020/upload/services/upload.service.mjs +0 -91
- package/esm2020/upload/upload.module.mjs +0 -65
- package/esm2020/url-utilities/pipes/safe-resource-url.pipe.mjs +0 -20
- package/esm2020/url-utilities/pipes/safe-url.pipe.mjs +0 -20
- package/esm2020/url-utilities/pipes/uri-scheme.pipe.mjs +0 -105
- package/esm2020/url-utilities/url-utilities.module.mjs +0 -34
- package/fesm2015/cleavelandprice-ngx-lib-active-directory-gui.mjs +0 -652
- package/fesm2015/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-active-directory.mjs +0 -187
- package/fesm2015/cleavelandprice-ngx-lib-active-directory.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-authentication-object.mjs +0 -161
- package/fesm2015/cleavelandprice-ngx-lib-authentication-object.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token-gui.mjs +0 -274
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token.mjs +0 -173
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-authentication.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-dialog.mjs +0 -250
- package/fesm2015/cleavelandprice-ngx-lib-dialog.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-msgraph.mjs +0 -178
- package/fesm2015/cleavelandprice-ngx-lib-msgraph.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-quill-mention.mjs +0 -230
- package/fesm2015/cleavelandprice-ngx-lib-quill-mention.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-quill.mjs +0 -539
- package/fesm2015/cleavelandprice-ngx-lib-quill.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-sharepoint.mjs +0 -310
- package/fesm2015/cleavelandprice-ngx-lib-sharepoint.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-upload.mjs +0 -288
- package/fesm2015/cleavelandprice-ngx-lib-upload.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib-url-utilities.mjs.map +0 -1
- package/fesm2015/cleavelandprice-ngx-lib.mjs +0 -113
- package/fesm2015/cleavelandprice-ngx-lib.mjs.map +0 -1
- package/fesm2020/cleavelandprice-ngx-lib-authentication-object.mjs.map +0 -1
- package/fesm2020/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +0 -1
- package/fesm2020/cleavelandprice-ngx-lib-authentication-token.mjs.map +0 -1
- package/fesm2020/cleavelandprice-ngx-lib-authentication.mjs +0 -38
- package/fesm2020/cleavelandprice-ngx-lib-authentication.mjs.map +0 -1
- package/fesm2020/cleavelandprice-ngx-lib-url-utilities.mjs +0 -177
- package/fesm2020/cleavelandprice-ngx-lib-url-utilities.mjs.map +0 -1
|
@@ -8,287 +8,286 @@ import * as i1 from '@cleavelandprice/ngx-lib/active-directory';
|
|
|
8
8
|
import * as i2$1 from '@angular/common';
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
10
|
|
|
11
|
-
class ServiceConfig extends ServiceConfig$1 {
|
|
12
|
-
// See the comment in the library's main service-config.ts file for an explanation
|
|
13
|
-
constructor(useSsl_or_customApiUrl = false) {
|
|
14
|
-
super(useSsl_or_customApiUrl);
|
|
15
|
-
this.usersEndpoint = '/sharepoint/users';
|
|
16
|
-
this.listItemsEndpoint = '/sharepoint/listitems';
|
|
17
|
-
this.username = 'viewer';
|
|
18
|
-
this.password = 'viewer';
|
|
19
|
-
this.photos = {
|
|
20
|
-
site: 'https://sharepoint.cleavelandprice.com/digitaldisplay',
|
|
21
|
-
list: 'Employee Thumbnail Photos',
|
|
22
|
-
additionalPropertiesToRetrieve: [
|
|
23
|
-
'EncodedAbsUrl'
|
|
24
|
-
]
|
|
25
|
-
};
|
|
26
|
-
this.caching = {
|
|
27
|
-
enabled: true,
|
|
28
|
-
lifeMinutes: 720
|
|
29
|
-
};
|
|
30
|
-
this.logging = {
|
|
31
|
-
dataCached: true,
|
|
32
|
-
cachedDataReturned: true,
|
|
33
|
-
freshDataReturned: true,
|
|
34
|
-
cacheCleared: true
|
|
35
|
-
};
|
|
36
|
-
}
|
|
11
|
+
class ServiceConfig extends ServiceConfig$1 {
|
|
12
|
+
// See the comment in the library's main service-config.ts file for an explanation
|
|
13
|
+
constructor(useSsl_or_customApiUrl = false) {
|
|
14
|
+
super(useSsl_or_customApiUrl);
|
|
15
|
+
this.usersEndpoint = '/sharepoint/users';
|
|
16
|
+
this.listItemsEndpoint = '/sharepoint/listitems';
|
|
17
|
+
this.username = 'viewer';
|
|
18
|
+
this.password = 'viewer';
|
|
19
|
+
this.photos = {
|
|
20
|
+
site: 'https://sharepoint.cleavelandprice.com/digitaldisplay',
|
|
21
|
+
list: 'Employee Thumbnail Photos',
|
|
22
|
+
additionalPropertiesToRetrieve: [
|
|
23
|
+
'EncodedAbsUrl'
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
this.caching = {
|
|
27
|
+
enabled: true,
|
|
28
|
+
lifeMinutes: 720
|
|
29
|
+
};
|
|
30
|
+
this.logging = {
|
|
31
|
+
dataCached: true,
|
|
32
|
+
cachedDataReturned: true,
|
|
33
|
+
freshDataReturned: true,
|
|
34
|
+
cacheCleared: true
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class SharePointService {
|
|
40
|
-
//#
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
//#
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
configureCaching() {
|
|
61
|
-
// If caching config is missing entirely, give it a default
|
|
62
|
-
this.config.caching = this.config.caching ?? {
|
|
63
|
-
enabled: false,
|
|
64
|
-
lifeMinutes: this.defaultCacheLifeMinutes
|
|
65
|
-
};
|
|
66
|
-
this.cache = {
|
|
67
|
-
photos: undefined,
|
|
68
|
-
users: undefined
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
configureLogging() {
|
|
72
|
-
// If logging config is missing entirely, give it a default
|
|
73
|
-
this.config.logging = this.config.logging ?? {
|
|
74
|
-
dataCached: false,
|
|
75
|
-
cachedDataReturned: false,
|
|
76
|
-
freshDataReturned: false,
|
|
77
|
-
cacheCleared: false
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
//#endregion
|
|
81
|
-
getListItems(request) {
|
|
82
|
-
const apiUrl = this.config.apiUrl;
|
|
83
|
-
const endpoint = this.config.listItemsEndpoint;
|
|
84
|
-
return this.http.post(`${apiUrl}${endpoint}`, request);
|
|
85
|
-
}
|
|
86
|
-
getPhotos() {
|
|
87
|
-
const request = {
|
|
88
|
-
username: this.config.username,
|
|
89
|
-
password: this.config.password,
|
|
90
|
-
site: this.config.photos.site,
|
|
91
|
-
list: this.config.photos.list,
|
|
92
|
-
additionalPropertiesToRetrieve: this.config.photos.additionalPropertiesToRetrieve
|
|
93
|
-
};
|
|
94
|
-
const observable$ = this.getListItems(request);
|
|
95
|
-
if (this.config.caching?.enabled) {
|
|
96
|
-
if (this.cacheExpired(this.cache?.photos)) {
|
|
97
|
-
// Get the data and cache it
|
|
98
|
-
observable$.subscribe(data => {
|
|
99
|
-
this.cache.photos = {
|
|
100
|
-
data,
|
|
101
|
-
lastUpdate: moment()
|
|
102
|
-
};
|
|
103
|
-
if (this.config.logging?.dataCached) {
|
|
104
|
-
const lifeMinutes = this.config.caching?.lifeMinutes ?? this.defaultCacheLifeMinutes;
|
|
105
|
-
console.log(`Photos cached for ${lifeMinutes} minutes`);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
// Cache exists and hasn't expired yet
|
|
111
|
-
if (this.config.logging?.cachedDataReturned) {
|
|
112
|
-
console.log('Returning cached photos');
|
|
113
|
-
}
|
|
114
|
-
return of(this.cache.photos.data);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
// Cache is either disabled or expired, return data from API
|
|
118
|
-
if (this.config.logging?.freshDataReturned) {
|
|
119
|
-
console.log('Returning fresh photos');
|
|
120
|
-
}
|
|
121
|
-
return observable$;
|
|
122
|
-
}
|
|
123
|
-
getUsers(request, id) {
|
|
124
|
-
const apiUrl = this.config.apiUrl;
|
|
125
|
-
const endpoint = this.config.usersEndpoint;
|
|
126
|
-
const observable$ = this.http.post(`${apiUrl}${endpoint}/${id ?? ''}`, request);
|
|
127
|
-
//#region Single user
|
|
128
|
-
if (id) {
|
|
129
|
-
return observable$;
|
|
130
|
-
}
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region Multiple users
|
|
133
|
-
if (this.config.caching?.enabled) {
|
|
134
|
-
if (this.cacheExpired(this.cache.users)) {
|
|
135
|
-
// Get the data and cache it
|
|
136
|
-
observable$.subscribe(data => {
|
|
137
|
-
this.cache.users = {
|
|
138
|
-
data: data,
|
|
139
|
-
lastUpdate: moment()
|
|
140
|
-
};
|
|
141
|
-
if (this.config.logging?.dataCached) {
|
|
142
|
-
const lifeMinutes = this.config.caching?.lifeMinutes ?? this.defaultCacheLifeMinutes;
|
|
143
|
-
console.log(`Users cached for ${lifeMinutes} minutes`);
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
// Cache exists and hasn't expired yet
|
|
149
|
-
if (this.config.logging?.cachedDataReturned) {
|
|
150
|
-
console.log('Returning cached users');
|
|
151
|
-
}
|
|
152
|
-
return of(this.cache.users.data);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
// Cache is either disabled or expired, return data from API
|
|
156
|
-
if (this.config.logging?.freshDataReturned) {
|
|
157
|
-
console.log('Returning fresh users');
|
|
158
|
-
}
|
|
159
|
-
return observable$;
|
|
160
|
-
//#endregion
|
|
161
|
-
}
|
|
162
|
-
clearCache() {
|
|
163
|
-
this.cache = undefined;
|
|
164
|
-
if (this.config.logging?.cacheCleared) {
|
|
165
|
-
console.log('Cache cleared');
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
172
|
-
type: Injectable,
|
|
173
|
-
args: [{
|
|
174
|
-
providedIn: 'root'
|
|
175
|
-
}]
|
|
176
|
-
}], ctorParameters: function () { return [{ type: ServiceConfig, decorators: [{
|
|
177
|
-
type: Optional
|
|
39
|
+
class SharePointService {
|
|
40
|
+
//#region Utilities
|
|
41
|
+
cacheExpired(cache) {
|
|
42
|
+
if (!cache) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
const lifeMinutes = this.config.caching?.lifeMinutes ?? this.defaultCacheLifeMinutes;
|
|
46
|
+
const expiration = moment(cache.lastUpdate)
|
|
47
|
+
.add(lifeMinutes, 'minutes');
|
|
48
|
+
return moment().isAfter(expiration);
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region Initialization
|
|
52
|
+
constructor(config, http) {
|
|
53
|
+
this.config = config;
|
|
54
|
+
this.http = http;
|
|
55
|
+
this.defaultCacheLifeMinutes = 720;
|
|
56
|
+
this.config = this.config ?? new ServiceConfig();
|
|
57
|
+
this.configureCaching();
|
|
58
|
+
this.configureLogging();
|
|
59
|
+
}
|
|
60
|
+
configureCaching() {
|
|
61
|
+
// If caching config is missing entirely, give it a default
|
|
62
|
+
this.config.caching = this.config.caching ?? {
|
|
63
|
+
enabled: false,
|
|
64
|
+
lifeMinutes: this.defaultCacheLifeMinutes
|
|
65
|
+
};
|
|
66
|
+
this.cache = {
|
|
67
|
+
photos: undefined,
|
|
68
|
+
users: undefined
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
configureLogging() {
|
|
72
|
+
// If logging config is missing entirely, give it a default
|
|
73
|
+
this.config.logging = this.config.logging ?? {
|
|
74
|
+
dataCached: false,
|
|
75
|
+
cachedDataReturned: false,
|
|
76
|
+
freshDataReturned: false,
|
|
77
|
+
cacheCleared: false
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
getListItems(request) {
|
|
82
|
+
const apiUrl = this.config.apiUrl;
|
|
83
|
+
const endpoint = this.config.listItemsEndpoint;
|
|
84
|
+
return this.http.post(`${apiUrl}${endpoint}`, request);
|
|
85
|
+
}
|
|
86
|
+
getPhotos() {
|
|
87
|
+
const request = {
|
|
88
|
+
username: this.config.username,
|
|
89
|
+
password: this.config.password,
|
|
90
|
+
site: this.config.photos.site,
|
|
91
|
+
list: this.config.photos.list,
|
|
92
|
+
additionalPropertiesToRetrieve: this.config.photos.additionalPropertiesToRetrieve
|
|
93
|
+
};
|
|
94
|
+
const observable$ = this.getListItems(request);
|
|
95
|
+
if (this.config.caching?.enabled) {
|
|
96
|
+
if (this.cacheExpired(this.cache?.photos)) {
|
|
97
|
+
// Get the data and cache it
|
|
98
|
+
observable$.subscribe(data => {
|
|
99
|
+
this.cache.photos = {
|
|
100
|
+
data,
|
|
101
|
+
lastUpdate: moment()
|
|
102
|
+
};
|
|
103
|
+
if (this.config.logging?.dataCached) {
|
|
104
|
+
const lifeMinutes = this.config.caching?.lifeMinutes ?? this.defaultCacheLifeMinutes;
|
|
105
|
+
console.log(`Photos cached for ${lifeMinutes} minutes`);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
// Cache exists and hasn't expired yet
|
|
111
|
+
if (this.config.logging?.cachedDataReturned) {
|
|
112
|
+
console.log('Returning cached photos');
|
|
113
|
+
}
|
|
114
|
+
return of(this.cache.photos.data);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// Cache is either disabled or expired, return data from API
|
|
118
|
+
if (this.config.logging?.freshDataReturned) {
|
|
119
|
+
console.log('Returning fresh photos');
|
|
120
|
+
}
|
|
121
|
+
return observable$;
|
|
122
|
+
}
|
|
123
|
+
getUsers(request, id) {
|
|
124
|
+
const apiUrl = this.config.apiUrl;
|
|
125
|
+
const endpoint = this.config.usersEndpoint;
|
|
126
|
+
const observable$ = this.http.post(`${apiUrl}${endpoint}/${id ?? ''}`, request);
|
|
127
|
+
//#region Single user
|
|
128
|
+
if (id) {
|
|
129
|
+
return observable$;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region Multiple users
|
|
133
|
+
if (this.config.caching?.enabled) {
|
|
134
|
+
if (this.cacheExpired(this.cache.users)) {
|
|
135
|
+
// Get the data and cache it
|
|
136
|
+
observable$.subscribe(data => {
|
|
137
|
+
this.cache.users = {
|
|
138
|
+
data: data,
|
|
139
|
+
lastUpdate: moment()
|
|
140
|
+
};
|
|
141
|
+
if (this.config.logging?.dataCached) {
|
|
142
|
+
const lifeMinutes = this.config.caching?.lifeMinutes ?? this.defaultCacheLifeMinutes;
|
|
143
|
+
console.log(`Users cached for ${lifeMinutes} minutes`);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
// Cache exists and hasn't expired yet
|
|
149
|
+
if (this.config.logging?.cachedDataReturned) {
|
|
150
|
+
console.log('Returning cached users');
|
|
151
|
+
}
|
|
152
|
+
return of(this.cache.users.data);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
// Cache is either disabled or expired, return data from API
|
|
156
|
+
if (this.config.logging?.freshDataReturned) {
|
|
157
|
+
console.log('Returning fresh users');
|
|
158
|
+
}
|
|
159
|
+
return observable$;
|
|
160
|
+
//#endregion
|
|
161
|
+
}
|
|
162
|
+
clearCache() {
|
|
163
|
+
this.cache = undefined;
|
|
164
|
+
if (this.config.logging?.cacheCleared) {
|
|
165
|
+
console.log('Cache cleared');
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointService, deps: [{ token: ServiceConfig, optional: true }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
169
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointService, providedIn: 'root' }); }
|
|
170
|
+
}
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointService, decorators: [{
|
|
172
|
+
type: Injectable,
|
|
173
|
+
args: [{
|
|
174
|
+
providedIn: 'root'
|
|
175
|
+
}]
|
|
176
|
+
}], ctorParameters: function () { return [{ type: ServiceConfig, decorators: [{
|
|
177
|
+
type: Optional
|
|
178
178
|
}] }, { type: i2.HttpClient }]; } });
|
|
179
179
|
|
|
180
|
-
class EmployeePhotoUrlPipe {
|
|
181
|
-
constructor(sharePointService) {
|
|
182
|
-
this.sharePointService = sharePointService;
|
|
183
|
-
}
|
|
184
|
-
transform(user, userPhotos) {
|
|
185
|
-
const observable$ = userPhotos ? of(userPhotos) : this.sharePointService.getPhotos();
|
|
186
|
-
return observable$
|
|
187
|
-
.pipe(map(photos => photos.find(pic =>
|
|
188
|
-
// Try to match by employeeNumber, accountName, or title
|
|
189
|
-
(pic.employeeNumber && user.employeeNumber && +pic.employeeNumber === +user.employeeNumber) ||
|
|
190
|
-
(pic.accountName && pic.accountName.toLowerCase() === user.sAMAccountName.toLowerCase()) ||
|
|
191
|
-
(pic.title && pic.title.toLowerCase() === user.displayName.toLowerCase()))?.encodedAbsUrl));
|
|
192
|
-
/*const photo = photos
|
|
193
|
-
.find(pic =>
|
|
194
|
-
(pic.employeeNumber && user.employeeNumber && +pic.employeeNumber === +user.employeeNumber) ||
|
|
195
|
-
(pic.accountName && pic.accountName.toLowerCase() === user.sAMAccountName.toLowerCase()) ||
|
|
196
|
-
(pic.title && pic.title.toLowerCase() === user.displayName.toLowerCase()));
|
|
197
|
-
|
|
198
|
-
if (!photo) {
|
|
199
|
-
console.log(`No photo match for ${user.displayName}`);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return photo ? photo.encodedAbsUrl : null;*/
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
-
type: Pipe,
|
|
209
|
-
args: [{
|
|
210
|
-
name: 'employeePhotoUrl'
|
|
211
|
-
}]
|
|
180
|
+
class EmployeePhotoUrlPipe {
|
|
181
|
+
constructor(sharePointService) {
|
|
182
|
+
this.sharePointService = sharePointService;
|
|
183
|
+
}
|
|
184
|
+
transform(user, userPhotos) {
|
|
185
|
+
const observable$ = userPhotos ? of(userPhotos) : this.sharePointService.getPhotos();
|
|
186
|
+
return observable$
|
|
187
|
+
.pipe(map(photos => photos.find(pic =>
|
|
188
|
+
// Try to match by employeeNumber, accountName, or title
|
|
189
|
+
(pic.employeeNumber && user.employeeNumber && +pic.employeeNumber === +user.employeeNumber) ||
|
|
190
|
+
(pic.accountName && pic.accountName.toLowerCase() === user.sAMAccountName.toLowerCase()) ||
|
|
191
|
+
(pic.title && pic.title.toLowerCase() === user.displayName.toLowerCase()))?.encodedAbsUrl));
|
|
192
|
+
/*const photo = photos
|
|
193
|
+
.find(pic =>
|
|
194
|
+
(pic.employeeNumber && user.employeeNumber && +pic.employeeNumber === +user.employeeNumber) ||
|
|
195
|
+
(pic.accountName && pic.accountName.toLowerCase() === user.sAMAccountName.toLowerCase()) ||
|
|
196
|
+
(pic.title && pic.title.toLowerCase() === user.displayName.toLowerCase()));
|
|
197
|
+
|
|
198
|
+
if (!photo) {
|
|
199
|
+
console.log(`No photo match for ${user.displayName}`);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return photo ? photo.encodedAbsUrl : null;*/
|
|
203
|
+
}
|
|
204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: EmployeePhotoUrlPipe, deps: [{ token: SharePointService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
205
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: EmployeePhotoUrlPipe, name: "employeePhotoUrl" }); }
|
|
206
|
+
}
|
|
207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: EmployeePhotoUrlPipe, decorators: [{
|
|
208
|
+
type: Pipe,
|
|
209
|
+
args: [{
|
|
210
|
+
name: 'employeePhotoUrl'
|
|
211
|
+
}]
|
|
212
212
|
}], ctorParameters: function () { return [{ type: SharePointService }]; } });
|
|
213
213
|
|
|
214
|
-
class EmployeePhotoComponent {
|
|
215
|
-
constructor(activeDirectoryService) {
|
|
216
|
-
this.activeDirectoryService = activeDirectoryService;
|
|
217
|
-
this.size = "2em";
|
|
218
|
-
this.notRound = false;
|
|
219
|
-
}
|
|
220
|
-
ngOnInit() {
|
|
221
|
-
if (this.accountName && !this.employee) {
|
|
222
|
-
// Developer passed in an account name instead of a user object
|
|
223
|
-
// We need to do the work of getting the user object ourselves
|
|
224
|
-
this.activeDirectoryService.getUser(this.accountName)
|
|
225
|
-
.subscribe(user => this.employee = user);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
232
|
-
type: Component,
|
|
233
|
-
args: [{ selector: 'employee-photo', template: "<ng-container *ngIf=\"employee\">\n <img *ngIf=\"(employee | employeePhotoUrl:employeePhotos | async)\"\n [src]=\"employee | employeePhotoUrl:employeePhotos | async\"\n [style.width]=\"size\"\n [style.height]=\"size\"\n [style.border-radius]=\"notRound ? 'default' : '100%'\">\n</ng-container>" }]
|
|
234
|
-
}], ctorParameters: function () { return [{ type: i1.ActiveDirectoryService }]; }, propDecorators: { employee: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], accountName: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], employeePhotos: [{
|
|
239
|
-
type: Input
|
|
240
|
-
}], size: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}], notRound: [{
|
|
243
|
-
type: Input
|
|
214
|
+
class EmployeePhotoComponent {
|
|
215
|
+
constructor(activeDirectoryService) {
|
|
216
|
+
this.activeDirectoryService = activeDirectoryService;
|
|
217
|
+
this.size = "2em";
|
|
218
|
+
this.notRound = false;
|
|
219
|
+
}
|
|
220
|
+
ngOnInit() {
|
|
221
|
+
if (this.accountName && !this.employee) {
|
|
222
|
+
// Developer passed in an account name instead of a user object
|
|
223
|
+
// We need to do the work of getting the user object ourselves
|
|
224
|
+
this.activeDirectoryService.getUser(this.accountName)
|
|
225
|
+
.subscribe(user => this.employee = user);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: EmployeePhotoComponent, deps: [{ token: i1.ActiveDirectoryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: EmployeePhotoComponent, selector: "employee-photo", inputs: { employee: "employee", accountName: "accountName", employeePhotos: "employeePhotos", size: "size", notRound: "notRound" }, ngImport: i0, template: "<ng-container *ngIf=\"employee\">\n <img *ngIf=\"(employee | employeePhotoUrl:employeePhotos | async)\"\n [src]=\"employee | employeePhotoUrl:employeePhotos | async\"\n [style.width]=\"size\"\n [style.height]=\"size\"\n [style.border-radius]=\"notRound ? 'default' : '100%'\">\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }, { kind: "pipe", type: EmployeePhotoUrlPipe, name: "employeePhotoUrl" }] }); }
|
|
230
|
+
}
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: EmployeePhotoComponent, decorators: [{
|
|
232
|
+
type: Component,
|
|
233
|
+
args: [{ selector: 'employee-photo', template: "<ng-container *ngIf=\"employee\">\n <img *ngIf=\"(employee | employeePhotoUrl:employeePhotos | async)\"\n [src]=\"employee | employeePhotoUrl:employeePhotos | async\"\n [style.width]=\"size\"\n [style.height]=\"size\"\n [style.border-radius]=\"notRound ? 'default' : '100%'\">\n</ng-container>" }]
|
|
234
|
+
}], ctorParameters: function () { return [{ type: i1.ActiveDirectoryService }]; }, propDecorators: { employee: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], accountName: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], employeePhotos: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], size: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], notRound: [{
|
|
243
|
+
type: Input
|
|
244
244
|
}] } });
|
|
245
245
|
|
|
246
|
-
class SharePointModule {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
268
|
-
type: NgModule,
|
|
269
|
-
args: [{
|
|
270
|
-
declarations: [
|
|
271
|
-
EmployeePhotoUrlPipe,
|
|
272
|
-
EmployeePhotoComponent
|
|
273
|
-
],
|
|
274
|
-
imports: [
|
|
275
|
-
CommonModule
|
|
276
|
-
],
|
|
277
|
-
exports: [
|
|
278
|
-
EmployeePhotoUrlPipe,
|
|
279
|
-
EmployeePhotoComponent
|
|
280
|
-
]
|
|
281
|
-
}]
|
|
282
|
-
}], ctorParameters: function () { return [{ type: SharePointModule, decorators: [{
|
|
283
|
-
type: Optional
|
|
284
|
-
}, {
|
|
285
|
-
type: SkipSelf
|
|
246
|
+
class SharePointModule {
|
|
247
|
+
static forRoot(config) {
|
|
248
|
+
return {
|
|
249
|
+
ngModule: SharePointModule,
|
|
250
|
+
providers: [
|
|
251
|
+
SharePointService,
|
|
252
|
+
{ provide: ServiceConfig, useValue: config }
|
|
253
|
+
]
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
constructor(parentModule) {
|
|
257
|
+
if (parentModule) {
|
|
258
|
+
throw new Error('SharePointModule is already loaded. Import it in the AppModule only');
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointModule, deps: [{ token: SharePointModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
262
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: SharePointModule, declarations: [EmployeePhotoUrlPipe,
|
|
263
|
+
EmployeePhotoComponent], imports: [CommonModule], exports: [EmployeePhotoUrlPipe,
|
|
264
|
+
EmployeePhotoComponent] }); }
|
|
265
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointModule, imports: [CommonModule] }); }
|
|
266
|
+
}
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SharePointModule, decorators: [{
|
|
268
|
+
type: NgModule,
|
|
269
|
+
args: [{
|
|
270
|
+
declarations: [
|
|
271
|
+
EmployeePhotoUrlPipe,
|
|
272
|
+
EmployeePhotoComponent
|
|
273
|
+
],
|
|
274
|
+
imports: [
|
|
275
|
+
CommonModule
|
|
276
|
+
],
|
|
277
|
+
exports: [
|
|
278
|
+
EmployeePhotoUrlPipe,
|
|
279
|
+
EmployeePhotoComponent
|
|
280
|
+
]
|
|
281
|
+
}]
|
|
282
|
+
}], ctorParameters: function () { return [{ type: SharePointModule, decorators: [{
|
|
283
|
+
type: Optional
|
|
284
|
+
}, {
|
|
285
|
+
type: SkipSelf
|
|
286
286
|
}] }]; } });
|
|
287
287
|
|
|
288
|
-
/**
|
|
289
|
-
* Generated bundle index. Do not edit.
|
|
288
|
+
/**
|
|
289
|
+
* Generated bundle index. Do not edit.
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
export { EmployeePhotoComponent, EmployeePhotoUrlPipe, ServiceConfig, SharePointModule, SharePointService };
|
|
293
293
|
//# sourceMappingURL=cleavelandprice-ngx-lib-sharepoint.mjs.map
|
|
294
|
-
//# sourceMappingURL=cleavelandprice-ngx-lib-sharepoint.mjs.map
|