@hmcts/ccd-case-ui-toolkit 4.5.0-rc.5 → 4.7.0-rc.1
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/RELEASE-NOTES.md +27 -2
- package/dist/app.config.d.ts +25 -0
- package/dist/app.config.js +9 -0
- package/dist/app.config.js.map +1 -1
- package/dist/app.config.metadata.json +1 -1
- package/dist/components/banners/alert/alert.component.d.ts +3 -1
- package/dist/components/banners/alert/alert.component.js +3 -1
- package/dist/components/banners/alert/alert.component.js.map +1 -1
- package/dist/components/banners/alert/alert.component.metadata.json +1 -1
- package/dist/components/banners/alert/index.d.ts +3 -0
- package/dist/components/banners/alert/index.js +9 -0
- package/dist/components/banners/alert/index.js.map +1 -0
- package/dist/components/banners/alert/index.metadata.json +1 -0
- package/dist/cut-styles/shared/components/case-viewer/{case-viewer.scss → case-full-access-view/case-full-access-view.component.scss} +0 -0
- package/dist/index.umd.js +1565 -320
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +9 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/activity/activity.component.js +4 -2
- package/dist/shared/components/activity/activity.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-form/case-edit-form.component.js +9 -3
- package/dist/shared/components/case-editor/case-edit-form/case-edit-form.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -2
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js +5 -17
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +12 -2
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js.map +1 -1
- package/dist/shared/components/case-editor/domain/wizard.model.d.ts +1 -1
- package/dist/shared/components/case-editor/domain/wizard.model.js +2 -2
- package/dist/shared/components/case-editor/domain/wizard.model.js.map +1 -1
- package/dist/shared/components/case-editor/services/cases.service.d.ts +3 -1
- package/dist/shared/components/case-editor/services/cases.service.js +55 -0
- package/dist/shared/components/case-editor/services/cases.service.js.map +1 -1
- package/dist/shared/components/case-editor/services/cases.service.metadata.json +1 -1
- package/dist/shared/components/case-history/case-history.component.js +3 -1
- package/dist/shared/components/case-history/case-history.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +14 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +64 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +36 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +143 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.d.ts +16 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.js +22 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/case-challenged-access-request.enum.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/models/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts +8 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +31 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
- package/dist/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +72 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +293 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-view/case-view.component.js +3 -1
- package/dist/shared/components/case-viewer/case-view/case-view.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.d.ts +15 -63
- package/dist/shared/components/case-viewer/case-viewer.component.js +52 -253
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.js +26 -12
- package/dist/shared/components/case-viewer/case-viewer.module.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.metadata.json +1 -1
- package/dist/shared/components/case-viewer/index.d.ts +4 -0
- package/dist/shared/components/case-viewer/index.js +4 -0
- package/dist/shared/components/case-viewer/index.js.map +1 -1
- package/dist/shared/components/case-viewer/index.metadata.json +1 -1
- package/dist/shared/components/case-viewer/printer/case-printer.component.js +3 -1
- package/dist/shared/components/case-viewer/printer/case-printer.component.js.map +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.js +25 -3
- package/dist/shared/components/case-viewer/viewer.routing.js.map +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.metadata.json +1 -1
- package/dist/shared/components/error/callback-errors.component.js +3 -1
- package/dist/shared/components/error/callback-errors.component.js.map +1 -1
- package/dist/shared/components/error-message/error-message.component.d.ts +4 -0
- package/dist/shared/components/error-message/error-message.component.js +32 -0
- package/dist/shared/components/error-message/error-message.component.js.map +1 -0
- package/dist/shared/components/error-message/error-message.component.metadata.json +1 -0
- package/dist/shared/components/error-message/index.d.ts +1 -0
- package/dist/shared/components/error-message/index.js +7 -0
- package/dist/shared/components/error-message/index.js.map +1 -0
- package/dist/shared/components/error-message/index.metadata.json +1 -0
- package/dist/shared/components/helpers/index.d.ts +1 -0
- package/dist/shared/components/helpers/index.js +7 -0
- package/dist/shared/components/helpers/index.js.map +1 -0
- package/dist/shared/components/helpers/index.metadata.json +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.d.ts +2 -0
- package/dist/shared/components/helpers/init-dialog-helper.js +18 -0
- package/dist/shared/components/helpers/init-dialog-helper.js.map +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.metadata.json +1 -0
- package/dist/shared/components/index.d.ts +1 -0
- package/dist/shared/components/index.js +1 -0
- package/dist/shared/components/index.js.map +1 -1
- package/dist/shared/components/index.metadata.json +1 -1
- package/dist/shared/components/palette/collection/write-collection-field.component.js +1 -1
- package/dist/shared/components/palette/collection/write-collection-field.component.js.map +1 -1
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +3 -2
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.js +30 -9
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.js.map +1 -1
- package/dist/shared/components/palette/datetime-picker/datetime-picker.component.metadata.json +1 -1
- package/dist/shared/components/palette/document/read-document-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.d.ts +0 -1
- package/dist/shared/components/palette/document/write-document-field.component.js +4 -19
- package/dist/shared/components/palette/document/write-document-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.metadata.json +1 -1
- package/dist/shared/components/search-filters/search-filters.component.js +7 -9
- package/dist/shared/components/search-filters/search-filters.component.js.map +1 -1
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.d.ts +12 -0
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js +36 -0
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js.map +1 -1
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.metadata.json +1 -1
- package/dist/shared/domain/case-view/case-view.model.d.ts +6 -0
- package/dist/shared/domain/case-view/case-view.model.js.map +1 -1
- package/dist/shared/domain/case-view/challenged-access-request.model.d.ts +5 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js +3 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/index.d.ts +4 -0
- package/dist/shared/domain/case-view/index.metadata.json +1 -1
- package/dist/shared/domain/case-view/requested-role.model.d.ts +25 -0
- package/dist/shared/domain/case-view/requested-role.model.js +3 -0
- package/dist/shared/domain/case-view/requested-role.model.js.map +1 -0
- package/dist/shared/domain/case-view/requested-role.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.d.ts +6 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js +3 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-request.model.d.ts +13 -0
- package/dist/shared/domain/case-view/role-request.model.js +3 -0
- package/dist/shared/domain/case-view/role-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-request.model.metadata.json +1 -0
- package/dist/shared/domain/error-message.model.d.ts +8 -0
- package/dist/shared/domain/error-message.model.js +3 -0
- package/dist/shared/domain/error-message.model.js.map +1 -0
- package/dist/shared/domain/error-message.model.metadata.json +1 -0
- package/dist/shared/domain/index.d.ts +1 -0
- package/dist/shared/domain/index.metadata.json +1 -1
- package/dist/shared/services/activity/activity.service.js +24 -11
- package/dist/shared/services/activity/activity.service.js.map +1 -1
- package/dist/shared/services/case-fields/format-translator.service.js +7 -0
- package/dist/shared/services/case-fields/format-translator.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.d.ts +1 -1
- package/dist/shared/services/document-management/document-management.service.js +5 -10
- package/dist/shared/services/document-management/document-management.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.metadata.json +1 -1
- package/dist/shared/services/request/request.options.builder.js +1 -1
- package/dist/shared/services/request/request.options.builder.js.map +1 -1
- package/package.json +3 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
|
|
3
|
-
* @version v4.
|
|
3
|
+
* @version v4.7.0-rc.1
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
8
8
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
9
|
-
module.exports = factory(require("@angular/core"), require("@angular/common"), require("@angular/router"), require("@angular/forms"), require("rxjs"), require("@angular/common/http"), require("rxjs/operators"), require("@angular/platform-browser"), require("rxjs/operator/publish"), require("rxjs/Rx"), require("rxjs/internal/operators"), require("rxjs/Subject"), require("rxjs/add/operator/map"), require("@angular/material"), require("@angular/cdk/coercion"), require("@angular/cdk/overlay"), require("@angular/cdk/bidi"), require("@angular/cdk/keycodes"), require("@angular/material/form-field"), require("@angular/cdk/portal"), require("@angular/material/datepicker"), require("@angular/material/dialog"), require("@angular/material/button"), require("@angular/material/icon"), require("@angular/material/input"), require("@angular/material/core"), require("@angular/cdk/platform"), require("rxjs/index"), require("rxjs/observable/throw"), require("rxjs/add/operator/do"));
|
|
9
|
+
module.exports = factory(require("@angular/core"), require("@angular/common"), require("@angular/router"), require("@angular/forms"), require("rxjs"), require("@angular/common/http"), require("rxjs/operators"), require("@angular/platform-browser"), require("rxjs/operator/publish"), require("rxjs/Rx"), require("rxjs/internal/operators"), require("rxjs/Subject"), require("rxjs/add/operator/map"), require("@angular/material"), require("@angular/cdk/coercion"), require("@angular/cdk/overlay"), require("@angular/cdk/bidi"), require("@angular/cdk/keycodes"), require("@angular/material/form-field"), require("@angular/cdk/portal"), require("@angular/material/datepicker"), require("@angular/material/dialog"), require("@angular/material/button"), require("@angular/material/icon"), require("@angular/material/input"), require("@angular/material/core"), require("@angular/cdk/platform"), require("rxjs/index"), require("rxjs/observable/throw"), require("rxjs/add/operator/do"), require("@angular/compiler/src/util"));
|
|
10
10
|
else if(typeof define === 'function' && define.amd)
|
|
11
|
-
define(["@angular/core", "@angular/common", "@angular/router", "@angular/forms", "rxjs", "@angular/common/http", "rxjs/operators", "@angular/platform-browser", "rxjs/operator/publish", "rxjs/Rx", "rxjs/internal/operators", "rxjs/Subject", "rxjs/add/operator/map", "@angular/material", "@angular/cdk/coercion", "@angular/cdk/overlay", "@angular/cdk/bidi", "@angular/cdk/keycodes", "@angular/material/form-field", "@angular/cdk/portal", "@angular/material/datepicker", "@angular/material/dialog", "@angular/material/button", "@angular/material/icon", "@angular/material/input", "@angular/material/core", "@angular/cdk/platform", "rxjs/index", "rxjs/observable/throw", "rxjs/add/operator/do"], factory);
|
|
11
|
+
define(["@angular/core", "@angular/common", "@angular/router", "@angular/forms", "rxjs", "@angular/common/http", "rxjs/operators", "@angular/platform-browser", "rxjs/operator/publish", "rxjs/Rx", "rxjs/internal/operators", "rxjs/Subject", "rxjs/add/operator/map", "@angular/material", "@angular/cdk/coercion", "@angular/cdk/overlay", "@angular/cdk/bidi", "@angular/cdk/keycodes", "@angular/material/form-field", "@angular/cdk/portal", "@angular/material/datepicker", "@angular/material/dialog", "@angular/material/button", "@angular/material/icon", "@angular/material/input", "@angular/material/core", "@angular/cdk/platform", "rxjs/index", "rxjs/observable/throw", "rxjs/add/operator/do", "@angular/compiler/src/util"], factory);
|
|
12
12
|
else if(typeof exports === 'object')
|
|
13
|
-
exports["case-ui-toolkit"] = factory(require("@angular/core"), require("@angular/common"), require("@angular/router"), require("@angular/forms"), require("rxjs"), require("@angular/common/http"), require("rxjs/operators"), require("@angular/platform-browser"), require("rxjs/operator/publish"), require("rxjs/Rx"), require("rxjs/internal/operators"), require("rxjs/Subject"), require("rxjs/add/operator/map"), require("@angular/material"), require("@angular/cdk/coercion"), require("@angular/cdk/overlay"), require("@angular/cdk/bidi"), require("@angular/cdk/keycodes"), require("@angular/material/form-field"), require("@angular/cdk/portal"), require("@angular/material/datepicker"), require("@angular/material/dialog"), require("@angular/material/button"), require("@angular/material/icon"), require("@angular/material/input"), require("@angular/material/core"), require("@angular/cdk/platform"), require("rxjs/index"), require("rxjs/observable/throw"), require("rxjs/add/operator/do"));
|
|
13
|
+
exports["case-ui-toolkit"] = factory(require("@angular/core"), require("@angular/common"), require("@angular/router"), require("@angular/forms"), require("rxjs"), require("@angular/common/http"), require("rxjs/operators"), require("@angular/platform-browser"), require("rxjs/operator/publish"), require("rxjs/Rx"), require("rxjs/internal/operators"), require("rxjs/Subject"), require("rxjs/add/operator/map"), require("@angular/material"), require("@angular/cdk/coercion"), require("@angular/cdk/overlay"), require("@angular/cdk/bidi"), require("@angular/cdk/keycodes"), require("@angular/material/form-field"), require("@angular/cdk/portal"), require("@angular/material/datepicker"), require("@angular/material/dialog"), require("@angular/material/button"), require("@angular/material/icon"), require("@angular/material/input"), require("@angular/material/core"), require("@angular/cdk/platform"), require("rxjs/index"), require("rxjs/observable/throw"), require("rxjs/add/operator/do"), require("@angular/compiler/src/util"));
|
|
14
14
|
else
|
|
15
|
-
root["case-ui-toolkit"] = factory(root["ng"]["core"], root["ng"]["common"], root["ng"]["router"], root["ng"]["forms"], root["rxjs"], root["ng"]["commonHttp"], root["rxjs"]["operators"], root["ng"]["platformBrowser"], root["rxjs"]["operator"]["publish"], root["rxjs"]["Rx"], root["rxjs"]["internal"]["operators"], root["rxjs"]["Subject"], root["rxjs"]["add"]["operator"]["map"], root["ng"]["material"], root["ng"]["cdkCoercion"], root["ng"]["cdkOverlay"], root["ng"]["cdkBidi"], root["ng"]["cdkKeycodes"], root["ng"]["materialFormField"], root["ng"]["cdkPortal"], root["ng"]["materialDatepicker"], root["ng"]["materialDialog"], root["ng"]["materialButton"], root["ng"]["materialIcon"], root["ng"]["materialInput"], root["ng"]["materialCore"], root["ng"]["cdkPlatform"], root["rxjs"]["index"], root["rxjs"]["observable"]["throw"], root["rxjs"]["add"]["operator"]["do"]);
|
|
16
|
-
})(self, function(__WEBPACK_EXTERNAL_MODULE__57208__, __WEBPACK_EXTERNAL_MODULE__91216__, __WEBPACK_EXTERNAL_MODULE__92302__, __WEBPACK_EXTERNAL_MODULE__92985__, __WEBPACK_EXTERNAL_MODULE__87318__, __WEBPACK_EXTERNAL_MODULE__17103__, __WEBPACK_EXTERNAL_MODULE__19443__, __WEBPACK_EXTERNAL_MODULE__3125__, __WEBPACK_EXTERNAL_MODULE__49570__, __WEBPACK_EXTERNAL_MODULE__22016__, __WEBPACK_EXTERNAL_MODULE__41163__, __WEBPACK_EXTERNAL_MODULE__66284__, __WEBPACK_EXTERNAL_MODULE__88091__, __WEBPACK_EXTERNAL_MODULE__69451__, __WEBPACK_EXTERNAL_MODULE__26482__, __WEBPACK_EXTERNAL_MODULE__22083__, __WEBPACK_EXTERNAL_MODULE__99183__, __WEBPACK_EXTERNAL_MODULE__39739__, __WEBPACK_EXTERNAL_MODULE__27959__, __WEBPACK_EXTERNAL_MODULE__13571__, __WEBPACK_EXTERNAL_MODULE__93560__, __WEBPACK_EXTERNAL_MODULE__44999__, __WEBPACK_EXTERNAL_MODULE__31106__, __WEBPACK_EXTERNAL_MODULE__21495__, __WEBPACK_EXTERNAL_MODULE__22839__, __WEBPACK_EXTERNAL_MODULE__36080__, __WEBPACK_EXTERNAL_MODULE__31250__, __WEBPACK_EXTERNAL_MODULE__91996__, __WEBPACK_EXTERNAL_MODULE__8215__, __WEBPACK_EXTERNAL_MODULE__36964__) {
|
|
15
|
+
root["case-ui-toolkit"] = factory(root["ng"]["core"], root["ng"]["common"], root["ng"]["router"], root["ng"]["forms"], root["rxjs"], root["ng"]["commonHttp"], root["rxjs"]["operators"], root["ng"]["platformBrowser"], root["rxjs"]["operator"]["publish"], root["rxjs"]["Rx"], root["rxjs"]["internal"]["operators"], root["rxjs"]["Subject"], root["rxjs"]["add"]["operator"]["map"], root["ng"]["material"], root["ng"]["cdkCoercion"], root["ng"]["cdkOverlay"], root["ng"]["cdkBidi"], root["ng"]["cdkKeycodes"], root["ng"]["materialFormField"], root["ng"]["cdkPortal"], root["ng"]["materialDatepicker"], root["ng"]["materialDialog"], root["ng"]["materialButton"], root["ng"]["materialIcon"], root["ng"]["materialInput"], root["ng"]["materialCore"], root["ng"]["cdkPlatform"], root["rxjs"]["index"], root["rxjs"]["observable"]["throw"], root["rxjs"]["add"]["operator"]["do"], root["ng"]["compilerSrcUtil"]);
|
|
16
|
+
})(self, function(__WEBPACK_EXTERNAL_MODULE__57208__, __WEBPACK_EXTERNAL_MODULE__91216__, __WEBPACK_EXTERNAL_MODULE__92302__, __WEBPACK_EXTERNAL_MODULE__92985__, __WEBPACK_EXTERNAL_MODULE__87318__, __WEBPACK_EXTERNAL_MODULE__17103__, __WEBPACK_EXTERNAL_MODULE__19443__, __WEBPACK_EXTERNAL_MODULE__3125__, __WEBPACK_EXTERNAL_MODULE__49570__, __WEBPACK_EXTERNAL_MODULE__22016__, __WEBPACK_EXTERNAL_MODULE__41163__, __WEBPACK_EXTERNAL_MODULE__66284__, __WEBPACK_EXTERNAL_MODULE__88091__, __WEBPACK_EXTERNAL_MODULE__69451__, __WEBPACK_EXTERNAL_MODULE__26482__, __WEBPACK_EXTERNAL_MODULE__22083__, __WEBPACK_EXTERNAL_MODULE__99183__, __WEBPACK_EXTERNAL_MODULE__39739__, __WEBPACK_EXTERNAL_MODULE__27959__, __WEBPACK_EXTERNAL_MODULE__13571__, __WEBPACK_EXTERNAL_MODULE__93560__, __WEBPACK_EXTERNAL_MODULE__44999__, __WEBPACK_EXTERNAL_MODULE__31106__, __WEBPACK_EXTERNAL_MODULE__21495__, __WEBPACK_EXTERNAL_MODULE__22839__, __WEBPACK_EXTERNAL_MODULE__36080__, __WEBPACK_EXTERNAL_MODULE__31250__, __WEBPACK_EXTERNAL_MODULE__91996__, __WEBPACK_EXTERNAL_MODULE__8215__, __WEBPACK_EXTERNAL_MODULE__36964__, __WEBPACK_EXTERNAL_MODULE__18427__) {
|
|
17
17
|
return /******/ (() => { // webpackBootstrap
|
|
18
18
|
/******/ var __webpack_modules__ = ({
|
|
19
19
|
|
|
@@ -5194,6 +5194,468 @@ var NgxMatNativeDateModule = /** @class */ (function () {
|
|
|
5194
5194
|
|
|
5195
5195
|
//# sourceMappingURL=angular-material-components-datetime-picker.js.map
|
|
5196
5196
|
|
|
5197
|
+
/***/ }),
|
|
5198
|
+
|
|
5199
|
+
/***/ 16153:
|
|
5200
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5201
|
+
|
|
5202
|
+
"use strict";
|
|
5203
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5204
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5205
|
+
/* harmony export */ "NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS": () => /* binding */ NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS,
|
|
5206
|
+
/* harmony export */ "NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY": () => /* binding */ NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY,
|
|
5207
|
+
/* harmony export */ "NGX_MAT_MOMENT_FORMATS": () => /* binding */ NGX_MAT_MOMENT_FORMATS,
|
|
5208
|
+
/* harmony export */ "NgxMatMomentAdapter": () => /* binding */ NgxMatMomentAdapter,
|
|
5209
|
+
/* harmony export */ "NgxMatMomentModule": () => /* binding */ NgxMatMomentModule,
|
|
5210
|
+
/* harmony export */ "NgxMomentDateModule": () => /* binding */ NgxMomentDateModule
|
|
5211
|
+
/* harmony export */ });
|
|
5212
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57208);
|
|
5213
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
5214
|
+
/* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36080);
|
|
5215
|
+
/* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
5216
|
+
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30381);
|
|
5217
|
+
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
|
|
5218
|
+
/* harmony import */ var _angular_material_components_datetime_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99101);
|
|
5219
|
+
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
|
|
5223
|
+
|
|
5224
|
+
|
|
5225
|
+
/**
|
|
5226
|
+
* @fileoverview added by tsickle
|
|
5227
|
+
* Generated from: lib/moment-adapter.ts
|
|
5228
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5229
|
+
*/
|
|
5230
|
+
/** @type {?} */
|
|
5231
|
+
const moment = (moment__WEBPACK_IMPORTED_MODULE_2___default()) || moment__WEBPACK_IMPORTED_MODULE_2__;
|
|
5232
|
+
/**
|
|
5233
|
+
* Configurable options for {\@see MomentDateAdapter}.
|
|
5234
|
+
* @record
|
|
5235
|
+
*/
|
|
5236
|
+
function NgxMatMomentDateAdapterOptions() { }
|
|
5237
|
+
if (false) {}
|
|
5238
|
+
/**
|
|
5239
|
+
* InjectionToken for moment date adapter to configure options.
|
|
5240
|
+
* @type {?}
|
|
5241
|
+
*/
|
|
5242
|
+
const NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS', {
|
|
5243
|
+
providedIn: 'root',
|
|
5244
|
+
factory: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY
|
|
5245
|
+
});
|
|
5246
|
+
/**
|
|
5247
|
+
* \@docs-private
|
|
5248
|
+
* @return {?}
|
|
5249
|
+
*/
|
|
5250
|
+
function NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY() {
|
|
5251
|
+
return {
|
|
5252
|
+
useUtc: false
|
|
5253
|
+
};
|
|
5254
|
+
}
|
|
5255
|
+
/**
|
|
5256
|
+
* Creates an array and fills it with values.
|
|
5257
|
+
* @template T
|
|
5258
|
+
* @param {?} length
|
|
5259
|
+
* @param {?} valueFunction
|
|
5260
|
+
* @return {?}
|
|
5261
|
+
*/
|
|
5262
|
+
function range(length, valueFunction) {
|
|
5263
|
+
/** @type {?} */
|
|
5264
|
+
const valuesArray = Array(length);
|
|
5265
|
+
for (let i = 0; i < length; i++) {
|
|
5266
|
+
valuesArray[i] = valueFunction(i);
|
|
5267
|
+
}
|
|
5268
|
+
return valuesArray;
|
|
5269
|
+
}
|
|
5270
|
+
/**
|
|
5271
|
+
* Adapts Moment.js Dates for use with Angular Material.
|
|
5272
|
+
*/
|
|
5273
|
+
class NgxMatMomentAdapter extends _angular_material_components_datetime_picker__WEBPACK_IMPORTED_MODULE_3__.NgxMatDateAdapter {
|
|
5274
|
+
/**
|
|
5275
|
+
* @param {?} dateLocale
|
|
5276
|
+
* @param {?=} _options
|
|
5277
|
+
*/
|
|
5278
|
+
constructor(dateLocale, _options) {
|
|
5279
|
+
super();
|
|
5280
|
+
this._options = _options;
|
|
5281
|
+
this.setLocale(dateLocale || moment.locale());
|
|
5282
|
+
}
|
|
5283
|
+
/**
|
|
5284
|
+
* @param {?} locale
|
|
5285
|
+
* @return {?}
|
|
5286
|
+
*/
|
|
5287
|
+
setLocale(locale) {
|
|
5288
|
+
super.setLocale(locale);
|
|
5289
|
+
/** @type {?} */
|
|
5290
|
+
let momentLocaleData = moment.localeData(locale);
|
|
5291
|
+
this._localeData = {
|
|
5292
|
+
firstDayOfWeek: momentLocaleData.firstDayOfWeek(),
|
|
5293
|
+
longMonths: momentLocaleData.months(),
|
|
5294
|
+
shortMonths: momentLocaleData.monthsShort(),
|
|
5295
|
+
dates: range(31, (/**
|
|
5296
|
+
* @param {?} i
|
|
5297
|
+
* @return {?}
|
|
5298
|
+
*/
|
|
5299
|
+
(i) => this.createDate(2017, 0, i + 1).format('D'))),
|
|
5300
|
+
longDaysOfWeek: momentLocaleData.weekdays(),
|
|
5301
|
+
shortDaysOfWeek: momentLocaleData.weekdaysShort(),
|
|
5302
|
+
narrowDaysOfWeek: momentLocaleData.weekdaysMin(),
|
|
5303
|
+
};
|
|
5304
|
+
}
|
|
5305
|
+
/**
|
|
5306
|
+
* @param {?} date
|
|
5307
|
+
* @return {?}
|
|
5308
|
+
*/
|
|
5309
|
+
getYear(date) {
|
|
5310
|
+
return this.clone(date).year();
|
|
5311
|
+
}
|
|
5312
|
+
/**
|
|
5313
|
+
* @param {?} date
|
|
5314
|
+
* @return {?}
|
|
5315
|
+
*/
|
|
5316
|
+
getMonth(date) {
|
|
5317
|
+
return this.clone(date).month();
|
|
5318
|
+
}
|
|
5319
|
+
/**
|
|
5320
|
+
* @param {?} date
|
|
5321
|
+
* @return {?}
|
|
5322
|
+
*/
|
|
5323
|
+
getDate(date) {
|
|
5324
|
+
return this.clone(date).date();
|
|
5325
|
+
}
|
|
5326
|
+
/**
|
|
5327
|
+
* @param {?} date
|
|
5328
|
+
* @return {?}
|
|
5329
|
+
*/
|
|
5330
|
+
getDayOfWeek(date) {
|
|
5331
|
+
return this.clone(date).day();
|
|
5332
|
+
}
|
|
5333
|
+
/**
|
|
5334
|
+
* @param {?} style
|
|
5335
|
+
* @return {?}
|
|
5336
|
+
*/
|
|
5337
|
+
getMonthNames(style) {
|
|
5338
|
+
// Moment.js doesn't support narrow month names, so we just use short if narrow is requested.
|
|
5339
|
+
return style == 'long' ? this._localeData.longMonths : this._localeData.shortMonths;
|
|
5340
|
+
}
|
|
5341
|
+
/**
|
|
5342
|
+
* @return {?}
|
|
5343
|
+
*/
|
|
5344
|
+
getDateNames() {
|
|
5345
|
+
return this._localeData.dates;
|
|
5346
|
+
}
|
|
5347
|
+
/**
|
|
5348
|
+
* @param {?} style
|
|
5349
|
+
* @return {?}
|
|
5350
|
+
*/
|
|
5351
|
+
getDayOfWeekNames(style) {
|
|
5352
|
+
if (style == 'long') {
|
|
5353
|
+
return this._localeData.longDaysOfWeek;
|
|
5354
|
+
}
|
|
5355
|
+
if (style == 'short') {
|
|
5356
|
+
return this._localeData.shortDaysOfWeek;
|
|
5357
|
+
}
|
|
5358
|
+
return this._localeData.narrowDaysOfWeek;
|
|
5359
|
+
}
|
|
5360
|
+
/**
|
|
5361
|
+
* @param {?} date
|
|
5362
|
+
* @return {?}
|
|
5363
|
+
*/
|
|
5364
|
+
getYearName(date) {
|
|
5365
|
+
return this.clone(date).format('YYYY');
|
|
5366
|
+
}
|
|
5367
|
+
/**
|
|
5368
|
+
* @return {?}
|
|
5369
|
+
*/
|
|
5370
|
+
getFirstDayOfWeek() {
|
|
5371
|
+
return this._localeData.firstDayOfWeek;
|
|
5372
|
+
}
|
|
5373
|
+
/**
|
|
5374
|
+
* @param {?} date
|
|
5375
|
+
* @return {?}
|
|
5376
|
+
*/
|
|
5377
|
+
getNumDaysInMonth(date) {
|
|
5378
|
+
return this.clone(date).daysInMonth();
|
|
5379
|
+
}
|
|
5380
|
+
/**
|
|
5381
|
+
* @param {?} date
|
|
5382
|
+
* @return {?}
|
|
5383
|
+
*/
|
|
5384
|
+
clone(date) {
|
|
5385
|
+
return date.clone().locale(this.locale);
|
|
5386
|
+
}
|
|
5387
|
+
/**
|
|
5388
|
+
* @param {?} year
|
|
5389
|
+
* @param {?} month
|
|
5390
|
+
* @param {?} date
|
|
5391
|
+
* @return {?}
|
|
5392
|
+
*/
|
|
5393
|
+
createDate(year, month, date) {
|
|
5394
|
+
// Moment.js will create an invalid date if any of the components are out of bounds, but we
|
|
5395
|
+
// explicitly check each case so we can throw more descriptive errors.
|
|
5396
|
+
if (month < 0 || month > 11) {
|
|
5397
|
+
throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);
|
|
5398
|
+
}
|
|
5399
|
+
if (date < 1) {
|
|
5400
|
+
throw Error(`Invalid date "${date}". Date has to be greater than 0.`);
|
|
5401
|
+
}
|
|
5402
|
+
/** @type {?} */
|
|
5403
|
+
const result = this._createMoment({ year, month, date }).locale(this.locale);
|
|
5404
|
+
// If the result isn't valid, the date must have been out of bounds for this month.
|
|
5405
|
+
if (!result.isValid()) {
|
|
5406
|
+
throw Error(`Invalid date "${date}" for month with index "${month}".`);
|
|
5407
|
+
}
|
|
5408
|
+
return result;
|
|
5409
|
+
}
|
|
5410
|
+
/**
|
|
5411
|
+
* @return {?}
|
|
5412
|
+
*/
|
|
5413
|
+
today() {
|
|
5414
|
+
return this._createMoment().locale(this.locale);
|
|
5415
|
+
}
|
|
5416
|
+
/**
|
|
5417
|
+
* @param {?} value
|
|
5418
|
+
* @param {?} parseFormat
|
|
5419
|
+
* @return {?}
|
|
5420
|
+
*/
|
|
5421
|
+
parse(value, parseFormat) {
|
|
5422
|
+
if (value && typeof value == 'string') {
|
|
5423
|
+
return this._createMoment(value, parseFormat, this.locale);
|
|
5424
|
+
}
|
|
5425
|
+
return value ? this._createMoment(value).locale(this.locale) : null;
|
|
5426
|
+
}
|
|
5427
|
+
/**
|
|
5428
|
+
* @param {?} date
|
|
5429
|
+
* @param {?} displayFormat
|
|
5430
|
+
* @return {?}
|
|
5431
|
+
*/
|
|
5432
|
+
format(date, displayFormat) {
|
|
5433
|
+
date = this.clone(date);
|
|
5434
|
+
if (!this.isValid(date)) {
|
|
5435
|
+
throw Error('MomentDateAdapter: Cannot format invalid date.');
|
|
5436
|
+
}
|
|
5437
|
+
return date.format(displayFormat);
|
|
5438
|
+
}
|
|
5439
|
+
/**
|
|
5440
|
+
* @param {?} date
|
|
5441
|
+
* @param {?} years
|
|
5442
|
+
* @return {?}
|
|
5443
|
+
*/
|
|
5444
|
+
addCalendarYears(date, years) {
|
|
5445
|
+
return this.clone(date).add({ years });
|
|
5446
|
+
}
|
|
5447
|
+
/**
|
|
5448
|
+
* @param {?} date
|
|
5449
|
+
* @param {?} months
|
|
5450
|
+
* @return {?}
|
|
5451
|
+
*/
|
|
5452
|
+
addCalendarMonths(date, months) {
|
|
5453
|
+
return this.clone(date).add({ months });
|
|
5454
|
+
}
|
|
5455
|
+
/**
|
|
5456
|
+
* @param {?} date
|
|
5457
|
+
* @param {?} days
|
|
5458
|
+
* @return {?}
|
|
5459
|
+
*/
|
|
5460
|
+
addCalendarDays(date, days) {
|
|
5461
|
+
return this.clone(date).add({ days });
|
|
5462
|
+
}
|
|
5463
|
+
/**
|
|
5464
|
+
* @param {?} date
|
|
5465
|
+
* @return {?}
|
|
5466
|
+
*/
|
|
5467
|
+
toIso8601(date) {
|
|
5468
|
+
return this.clone(date).format();
|
|
5469
|
+
}
|
|
5470
|
+
/**
|
|
5471
|
+
* Returns the given value if given a valid Moment or null. Deserializes valid ISO 8601 strings
|
|
5472
|
+
* (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
|
|
5473
|
+
* string into null. Returns an invalid date for all other values.
|
|
5474
|
+
* @param {?} value
|
|
5475
|
+
* @return {?}
|
|
5476
|
+
*/
|
|
5477
|
+
deserialize(value) {
|
|
5478
|
+
/** @type {?} */
|
|
5479
|
+
let date;
|
|
5480
|
+
if (value instanceof Date) {
|
|
5481
|
+
date = this._createMoment(value).locale(this.locale);
|
|
5482
|
+
}
|
|
5483
|
+
else if (this.isDateInstance(value)) {
|
|
5484
|
+
// Note: assumes that cloning also sets the correct locale.
|
|
5485
|
+
return this.clone(value);
|
|
5486
|
+
}
|
|
5487
|
+
if (typeof value === 'string') {
|
|
5488
|
+
if (!value) {
|
|
5489
|
+
return null;
|
|
5490
|
+
}
|
|
5491
|
+
date = this._createMoment(value, moment.ISO_8601).locale(this.locale);
|
|
5492
|
+
}
|
|
5493
|
+
if (date && this.isValid(date)) {
|
|
5494
|
+
return this._createMoment(date).locale(this.locale);
|
|
5495
|
+
}
|
|
5496
|
+
return super.deserialize(value);
|
|
5497
|
+
}
|
|
5498
|
+
/**
|
|
5499
|
+
* @param {?} obj
|
|
5500
|
+
* @return {?}
|
|
5501
|
+
*/
|
|
5502
|
+
isDateInstance(obj) {
|
|
5503
|
+
return moment.isMoment(obj);
|
|
5504
|
+
}
|
|
5505
|
+
/**
|
|
5506
|
+
* @param {?} date
|
|
5507
|
+
* @return {?}
|
|
5508
|
+
*/
|
|
5509
|
+
isValid(date) {
|
|
5510
|
+
return this.clone(date).isValid();
|
|
5511
|
+
}
|
|
5512
|
+
/**
|
|
5513
|
+
* @return {?}
|
|
5514
|
+
*/
|
|
5515
|
+
invalid() {
|
|
5516
|
+
return moment.invalid();
|
|
5517
|
+
}
|
|
5518
|
+
/**
|
|
5519
|
+
* @param {?} date
|
|
5520
|
+
* @return {?}
|
|
5521
|
+
*/
|
|
5522
|
+
getHour(date) {
|
|
5523
|
+
return date.hours();
|
|
5524
|
+
}
|
|
5525
|
+
/**
|
|
5526
|
+
* @param {?} date
|
|
5527
|
+
* @return {?}
|
|
5528
|
+
*/
|
|
5529
|
+
getMinute(date) {
|
|
5530
|
+
return date.minutes();
|
|
5531
|
+
}
|
|
5532
|
+
/**
|
|
5533
|
+
* @param {?} date
|
|
5534
|
+
* @return {?}
|
|
5535
|
+
*/
|
|
5536
|
+
getSecond(date) {
|
|
5537
|
+
return date.seconds();
|
|
5538
|
+
}
|
|
5539
|
+
/**
|
|
5540
|
+
* @param {?} date
|
|
5541
|
+
* @param {?} value
|
|
5542
|
+
* @return {?}
|
|
5543
|
+
*/
|
|
5544
|
+
setHour(date, value) {
|
|
5545
|
+
date.hours(value);
|
|
5546
|
+
}
|
|
5547
|
+
/**
|
|
5548
|
+
* @param {?} date
|
|
5549
|
+
* @param {?} value
|
|
5550
|
+
* @return {?}
|
|
5551
|
+
*/
|
|
5552
|
+
setMinute(date, value) {
|
|
5553
|
+
date.minutes(value);
|
|
5554
|
+
}
|
|
5555
|
+
/**
|
|
5556
|
+
* @param {?} date
|
|
5557
|
+
* @param {?} value
|
|
5558
|
+
* @return {?}
|
|
5559
|
+
*/
|
|
5560
|
+
setSecond(date, value) {
|
|
5561
|
+
date.seconds(value);
|
|
5562
|
+
}
|
|
5563
|
+
/**
|
|
5564
|
+
* Creates a Moment instance while respecting the current UTC settings.
|
|
5565
|
+
* @private
|
|
5566
|
+
* @param {?} date
|
|
5567
|
+
* @param {?=} format
|
|
5568
|
+
* @param {?=} locale
|
|
5569
|
+
* @return {?}
|
|
5570
|
+
*/
|
|
5571
|
+
_createMoment(date, format, locale) {
|
|
5572
|
+
const { strict, useUtc } = this._options || {};
|
|
5573
|
+
return useUtc
|
|
5574
|
+
? moment.utc(date, format, locale, strict)
|
|
5575
|
+
: moment(date, format, locale, strict);
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
NgxMatMomentAdapter.decorators = [
|
|
5579
|
+
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable }
|
|
5580
|
+
];
|
|
5581
|
+
/** @nocollapse */
|
|
5582
|
+
NgxMatMomentAdapter.ctorParameters = () => [
|
|
5583
|
+
{ type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__.MAT_DATE_LOCALE,] }] },
|
|
5584
|
+
{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, args: [NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS,] }] }
|
|
5585
|
+
];
|
|
5586
|
+
if (false) {}
|
|
5587
|
+
|
|
5588
|
+
/**
|
|
5589
|
+
* @fileoverview added by tsickle
|
|
5590
|
+
* Generated from: lib/moment-formats.ts
|
|
5591
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5592
|
+
*/
|
|
5593
|
+
/**
|
|
5594
|
+
* @license
|
|
5595
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5596
|
+
*
|
|
5597
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5598
|
+
* found in the LICENSE file at https://angular.io/license
|
|
5599
|
+
*/
|
|
5600
|
+
/** @type {?} */
|
|
5601
|
+
const DEFAULT_DATE_INPUT = 'l, LTS';
|
|
5602
|
+
/** @type {?} */
|
|
5603
|
+
const NGX_MAT_MOMENT_FORMATS = {
|
|
5604
|
+
parse: {
|
|
5605
|
+
dateInput: DEFAULT_DATE_INPUT,
|
|
5606
|
+
},
|
|
5607
|
+
display: {
|
|
5608
|
+
dateInput: DEFAULT_DATE_INPUT,
|
|
5609
|
+
monthYearLabel: 'MMM YYYY',
|
|
5610
|
+
dateA11yLabel: 'LL',
|
|
5611
|
+
monthYearA11yLabel: 'MMMM YYYY',
|
|
5612
|
+
},
|
|
5613
|
+
};
|
|
5614
|
+
|
|
5615
|
+
/**
|
|
5616
|
+
* @fileoverview added by tsickle
|
|
5617
|
+
* Generated from: lib/moment-adapter.module.ts
|
|
5618
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5619
|
+
*/
|
|
5620
|
+
class NgxMomentDateModule {
|
|
5621
|
+
}
|
|
5622
|
+
NgxMomentDateModule.decorators = [
|
|
5623
|
+
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, args: [{
|
|
5624
|
+
providers: [
|
|
5625
|
+
{
|
|
5626
|
+
provide: _angular_material_components_datetime_picker__WEBPACK_IMPORTED_MODULE_3__.NgxMatDateAdapter,
|
|
5627
|
+
useClass: NgxMatMomentAdapter,
|
|
5628
|
+
deps: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__.MAT_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
5629
|
+
}
|
|
5630
|
+
],
|
|
5631
|
+
},] }
|
|
5632
|
+
];
|
|
5633
|
+
const ɵ0 = NGX_MAT_MOMENT_FORMATS;
|
|
5634
|
+
class NgxMatMomentModule {
|
|
5635
|
+
}
|
|
5636
|
+
NgxMatMomentModule.decorators = [
|
|
5637
|
+
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, args: [{
|
|
5638
|
+
imports: [NgxMomentDateModule],
|
|
5639
|
+
providers: [{ provide: _angular_material_components_datetime_picker__WEBPACK_IMPORTED_MODULE_3__.NGX_MAT_DATE_FORMATS, useValue: ɵ0 }],
|
|
5640
|
+
},] }
|
|
5641
|
+
];
|
|
5642
|
+
|
|
5643
|
+
/**
|
|
5644
|
+
* @fileoverview added by tsickle
|
|
5645
|
+
* Generated from: public-api.ts
|
|
5646
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5647
|
+
*/
|
|
5648
|
+
|
|
5649
|
+
/**
|
|
5650
|
+
* @fileoverview added by tsickle
|
|
5651
|
+
* Generated from: angular-material-components-moment-adapter.ts
|
|
5652
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5653
|
+
*/
|
|
5654
|
+
|
|
5655
|
+
|
|
5656
|
+
//# sourceMappingURL=angular-material-components-moment-adapter.js.map
|
|
5657
|
+
|
|
5658
|
+
|
|
5197
5659
|
/***/ }),
|
|
5198
5660
|
|
|
5199
5661
|
/***/ 86220:
|
|
@@ -10283,6 +10745,15 @@ var AbstractAppConfig = /** @class */ (function () {
|
|
|
10283
10745
|
AbstractAppConfig.prototype.getUserInfoApiUrl = function () {
|
|
10284
10746
|
return undefined;
|
|
10285
10747
|
};
|
|
10748
|
+
AbstractAppConfig.prototype.getAccessManagementMode = function () {
|
|
10749
|
+
return undefined;
|
|
10750
|
+
};
|
|
10751
|
+
AbstractAppConfig.prototype.getAccessManagementBasicViewMock = function () {
|
|
10752
|
+
return undefined;
|
|
10753
|
+
};
|
|
10754
|
+
AbstractAppConfig.prototype.getLocationRefApiUrl = function () {
|
|
10755
|
+
return undefined;
|
|
10756
|
+
};
|
|
10286
10757
|
return AbstractAppConfig;
|
|
10287
10758
|
}());
|
|
10288
10759
|
exports.AbstractAppConfig = AbstractAppConfig;
|
|
@@ -10487,6 +10958,7 @@ var AlertMessageType;
|
|
|
10487
10958
|
AlertMessageType["WARNING"] = "warning";
|
|
10488
10959
|
AlertMessageType["SUCCESS"] = "success";
|
|
10489
10960
|
AlertMessageType["ERROR"] = "error";
|
|
10961
|
+
AlertMessageType["INFORMATION"] = "information";
|
|
10490
10962
|
})(AlertMessageType || (AlertMessageType = {}));
|
|
10491
10963
|
var AlertComponent = /** @class */ (function () {
|
|
10492
10964
|
function AlertComponent() {
|
|
@@ -10497,6 +10969,7 @@ var AlertComponent = /** @class */ (function () {
|
|
|
10497
10969
|
AlertComponent.TYPE_WARNING = 'warning';
|
|
10498
10970
|
AlertComponent.TYPE_SUCCESS = 'success';
|
|
10499
10971
|
AlertComponent.TYPE_ERROR = 'error';
|
|
10972
|
+
AlertComponent.TYPE_INFORMATION = 'information';
|
|
10500
10973
|
__decorate([
|
|
10501
10974
|
core_1.Input(),
|
|
10502
10975
|
__metadata("design:type", String)
|
|
@@ -10557,6 +11030,22 @@ var AlertModule = /** @class */ (function () {
|
|
|
10557
11030
|
exports.AlertModule = AlertModule;
|
|
10558
11031
|
|
|
10559
11032
|
|
|
11033
|
+
/***/ }),
|
|
11034
|
+
|
|
11035
|
+
/***/ 44944:
|
|
11036
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11037
|
+
|
|
11038
|
+
"use strict";
|
|
11039
|
+
|
|
11040
|
+
function __export(m) {
|
|
11041
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
11042
|
+
}
|
|
11043
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11044
|
+
__export(__webpack_require__(11733));
|
|
11045
|
+
__export(__webpack_require__(69349));
|
|
11046
|
+
__export(__webpack_require__(62467));
|
|
11047
|
+
|
|
11048
|
+
|
|
10560
11049
|
/***/ }),
|
|
10561
11050
|
|
|
10562
11051
|
/***/ 56933:
|
|
@@ -11770,8 +12259,10 @@ var ActivityComponent = /** @class */ (function () {
|
|
|
11770
12259
|
return (this.activity.editors.length > 0 || this.activity.unknownEditors > 0);
|
|
11771
12260
|
};
|
|
11772
12261
|
ActivityComponent.prototype.ngOnDestroy = function () {
|
|
11773
|
-
this.subscription
|
|
11774
|
-
|
|
12262
|
+
if (this.subscription) {
|
|
12263
|
+
this.subscription.complete();
|
|
12264
|
+
this.subscription.unsubscribe();
|
|
12265
|
+
}
|
|
11775
12266
|
this.activityPollingService.stopPolling();
|
|
11776
12267
|
};
|
|
11777
12268
|
ActivityComponent.prototype.generateDescription = function (prefix, suffix, namesArray, unknownCount) {
|
|
@@ -12118,8 +12609,12 @@ var CaseEditFormComponent = /** @class */ (function () {
|
|
|
12118
12609
|
this.valuesChanged = new core_1.EventEmitter();
|
|
12119
12610
|
}
|
|
12120
12611
|
CaseEditFormComponent.prototype.ngOnDestroy = function () {
|
|
12121
|
-
this.pageChangeSubscription
|
|
12122
|
-
|
|
12612
|
+
if (this.pageChangeSubscription) {
|
|
12613
|
+
this.pageChangeSubscription.unsubscribe();
|
|
12614
|
+
}
|
|
12615
|
+
if (this.formGroupChangeSubscription) {
|
|
12616
|
+
this.formGroupChangeSubscription.unsubscribe();
|
|
12617
|
+
}
|
|
12123
12618
|
};
|
|
12124
12619
|
// We need the below un/subscribe complexity as we do not have proper page component per page with its AfterViewInit hook
|
|
12125
12620
|
// being called on each page load. This is done for "Cancel and return" modal from RDM-2302.
|
|
@@ -12127,7 +12622,9 @@ var CaseEditFormComponent = /** @class */ (function () {
|
|
|
12127
12622
|
var _this = this;
|
|
12128
12623
|
this.retrieveInitialFormValues();
|
|
12129
12624
|
this.pageChangeSubscription = this.pageChangeSubject.subscribe(function () {
|
|
12130
|
-
_this.formGroupChangeSubscription
|
|
12625
|
+
if (_this.formGroupChangeSubscription) {
|
|
12626
|
+
_this.formGroupChangeSubscription.unsubscribe();
|
|
12627
|
+
}
|
|
12131
12628
|
// Timeout is required for the form to be rendered before subscription to form changes and initial form values retrieval.
|
|
12132
12629
|
setTimeout(function () {
|
|
12133
12630
|
_this.subscribeToFormChanges();
|
|
@@ -12224,6 +12721,7 @@ var form_error_service_1 = __webpack_require__(34790);
|
|
|
12224
12721
|
var draft_model_1 = __webpack_require__(98072);
|
|
12225
12722
|
var fields_1 = __webpack_require__(64906);
|
|
12226
12723
|
var case_field_service_1 = __webpack_require__(72141);
|
|
12724
|
+
var helpers_1 = __webpack_require__(23495);
|
|
12227
12725
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
12228
12726
|
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService) {
|
|
12229
12727
|
this.caseEdit = caseEdit;
|
|
@@ -12256,7 +12754,7 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12256
12754
|
};
|
|
12257
12755
|
CaseEditPageComponent.prototype.ngOnInit = function () {
|
|
12258
12756
|
var _this = this;
|
|
12259
|
-
|
|
12757
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
12260
12758
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
12261
12759
|
this.editForm = this.caseEdit.form;
|
|
12262
12760
|
this.wizard = this.caseEdit.wizard;
|
|
@@ -12391,15 +12889,15 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12391
12889
|
CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
|
|
12392
12890
|
for (var _i = 0, _a = Object.keys(jsonData.data); _i < _a.length; _i++) {
|
|
12393
12891
|
var caseFieldId = _a[_i];
|
|
12394
|
-
if (this.pageWithFieldExists(caseFieldId)) {
|
|
12892
|
+
if (this.pageWithFieldExists(caseFieldId, this.currentPage.id)) {
|
|
12395
12893
|
this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
|
|
12396
12894
|
this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
|
|
12397
12895
|
}
|
|
12398
12896
|
}
|
|
12399
12897
|
};
|
|
12400
12898
|
// we do the check, becasue the data comes from the external source
|
|
12401
|
-
CaseEditPageComponent.prototype.pageWithFieldExists = function (caseFieldId) {
|
|
12402
|
-
return this.wizard.findWizardPage(caseFieldId);
|
|
12899
|
+
CaseEditPageComponent.prototype.pageWithFieldExists = function (caseFieldId, pageId) {
|
|
12900
|
+
return this.wizard.findWizardPage(caseFieldId, pageId);
|
|
12403
12901
|
};
|
|
12404
12902
|
CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
|
|
12405
12903
|
if (eventTrigger.case_fields) {
|
|
@@ -12481,19 +12979,6 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12481
12979
|
? CaseEditPageComponent_1.TRIGGER_TEXT_SAVE
|
|
12482
12980
|
: CaseEditPageComponent_1.TRIGGER_TEXT_START;
|
|
12483
12981
|
};
|
|
12484
|
-
CaseEditPageComponent.prototype.initDialog = function () {
|
|
12485
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
12486
|
-
this.dialogConfig.disableClose = true;
|
|
12487
|
-
this.dialogConfig.autoFocus = true;
|
|
12488
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
12489
|
-
this.dialogConfig.height = '245px';
|
|
12490
|
-
this.dialogConfig.width = '550px';
|
|
12491
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
12492
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
12493
|
-
this.dialogConfig.position = {
|
|
12494
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
12495
|
-
};
|
|
12496
|
-
};
|
|
12497
12982
|
CaseEditPageComponent.prototype.discard = function () {
|
|
12498
12983
|
if (this.route.snapshot.queryParamMap.get(case_edit_component_1.CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
12499
12984
|
this.caseEdit.cancelled.emit({ status: CaseEditPageComponent_1.RESUMED_FORM_DISCARD });
|
|
@@ -12644,6 +13129,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
12644
13129
|
};
|
|
12645
13130
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
12646
13131
|
var core_1 = __webpack_require__(57208);
|
|
13132
|
+
var forms_1 = __webpack_require__(92985);
|
|
12647
13133
|
var router_1 = __webpack_require__(92302);
|
|
12648
13134
|
var rxjs_1 = __webpack_require__(87318);
|
|
12649
13135
|
var services_1 = __webpack_require__(65010);
|
|
@@ -12692,7 +13178,9 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
12692
13178
|
this.contextFields = this.getCaseFields();
|
|
12693
13179
|
};
|
|
12694
13180
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
12695
|
-
this.profileSubscription
|
|
13181
|
+
if (this.profileSubscription) {
|
|
13182
|
+
this.profileSubscription.unsubscribe();
|
|
13183
|
+
}
|
|
12696
13184
|
};
|
|
12697
13185
|
CaseEditSubmitComponent.prototype.submit = function () {
|
|
12698
13186
|
var _this = this;
|
|
@@ -12786,7 +13274,14 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
12786
13274
|
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
12787
13275
|
// parent)
|
|
12788
13276
|
// Update rawFormValueData for this field
|
|
12789
|
-
|
|
13277
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
13278
|
+
var form_1 = new forms_1.FormGroup({});
|
|
13279
|
+
if (formGroup.controls[key].value) {
|
|
13280
|
+
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
13281
|
+
form_1.addControl(item, new forms_1.FormControl(formGroup.controls[key].value[item]));
|
|
13282
|
+
});
|
|
13283
|
+
}
|
|
13284
|
+
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
12790
13285
|
}
|
|
12791
13286
|
}
|
|
12792
13287
|
else {
|
|
@@ -13551,8 +14046,8 @@ var Wizard = /** @class */ (function () {
|
|
|
13551
14046
|
}
|
|
13552
14047
|
return canShow(foundPage) ? foundPage : undefined;
|
|
13553
14048
|
};
|
|
13554
|
-
Wizard.prototype.findWizardPage = function (caseFieldId) {
|
|
13555
|
-
return this.pages.find(function (wizardPage) { return wizardPage.case_fields &&
|
|
14049
|
+
Wizard.prototype.findWizardPage = function (caseFieldId, pageId) {
|
|
14050
|
+
return this.pages.find(function (wizardPage) { return wizardPage.id === pageId && wizardPage.case_fields &&
|
|
13556
14051
|
wizardPage.case_fields.filter(function (caseField) { return caseField.id === caseFieldId; }).length > 0; });
|
|
13557
14052
|
};
|
|
13558
14053
|
Wizard.prototype.nextPage = function (pageId, canShow) {
|
|
@@ -14091,6 +14586,61 @@ var CasesService = /** @class */ (function () {
|
|
|
14091
14586
|
}
|
|
14092
14587
|
return false;
|
|
14093
14588
|
};
|
|
14589
|
+
CasesService.prototype.getCourtOrHearingCentreName = function (locationId) {
|
|
14590
|
+
return this.http.get(this.appConfig.getLocationRefApiUrl() + "/building-locations?epimms_id=" + locationId);
|
|
14591
|
+
};
|
|
14592
|
+
CasesService.prototype.createChallengedAccessRequest = function (caseId, car) {
|
|
14593
|
+
// Dummy implementation for now; the real one will make a call to the Node layer, which will call the appropriate Role
|
|
14594
|
+
// Assignment API endpoint
|
|
14595
|
+
var roleAssignmentResponse = {
|
|
14596
|
+
roleRequest: {
|
|
14597
|
+
id: '0c6f56f5-4457-485e-a0de-828e6dfa1e33',
|
|
14598
|
+
authenticatedUserId: '37d4eab7-e14c-404e-8cd1-55cd06b2fc06',
|
|
14599
|
+
correlationId: '003352d0-e699-48bc-b6f5-5810411e60af',
|
|
14600
|
+
assignerId: '37d4eab7-e14c-404e-8cd1-55cd06b2fc06',
|
|
14601
|
+
requestType: 'CREATE',
|
|
14602
|
+
process: 'businessProcess1',
|
|
14603
|
+
reference: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14604
|
+
replaceExisting: true,
|
|
14605
|
+
status: 'APPROVED',
|
|
14606
|
+
created: new Date('2021-01-28T18:16:49.100121Z'),
|
|
14607
|
+
log: 'Request has been approved'
|
|
14608
|
+
},
|
|
14609
|
+
requestedRoles: [{
|
|
14610
|
+
id: '3ccabbf2-71fa-4c5d-af39-5675d25e9fcc',
|
|
14611
|
+
actorIdType: 'IDAM',
|
|
14612
|
+
actorId: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14613
|
+
roleType: 'ORGANISATION',
|
|
14614
|
+
roleName: 'judge',
|
|
14615
|
+
classification: 'PUBLIC',
|
|
14616
|
+
grantType: 'CHALLENGED',
|
|
14617
|
+
roleCategory: 'JUDICIAL',
|
|
14618
|
+
readOnly: false,
|
|
14619
|
+
beginTime: new Date('2021-01-01T00:00:00Z'),
|
|
14620
|
+
endTime: new Date('2023-01-01T00:00:00Z'),
|
|
14621
|
+
process: 'businessProcess1',
|
|
14622
|
+
reference: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14623
|
+
status: 'LIVE',
|
|
14624
|
+
created: new Date('2021-01-28T18:16:49.100155Z'),
|
|
14625
|
+
log: 'Create requested with replace: true\nCreate approved : judicial_organisational_role_mapping_service_create',
|
|
14626
|
+
attributes: {
|
|
14627
|
+
jurisdiction: 'divorce',
|
|
14628
|
+
region: 'south-east',
|
|
14629
|
+
contractType: 'SALARIED'
|
|
14630
|
+
},
|
|
14631
|
+
notes: [{
|
|
14632
|
+
userId: '003352d0-e699-48bc-b6f5-5810411e60ag',
|
|
14633
|
+
time: new Date('2020-01-01T00:00Z'),
|
|
14634
|
+
comment: 'Need Access to case number 1234567890123456 for a month'
|
|
14635
|
+
}, {
|
|
14636
|
+
userId: '52aa3810-af1f-11ea-b3de-0242ac130004',
|
|
14637
|
+
time: new Date('2020-01-02T00:00Z'),
|
|
14638
|
+
comment: 'Access granted till end of day'
|
|
14639
|
+
}]
|
|
14640
|
+
}]
|
|
14641
|
+
};
|
|
14642
|
+
return rxjs_1.of(roleAssignmentResponse);
|
|
14643
|
+
};
|
|
14094
14644
|
var CasesService_1;
|
|
14095
14645
|
// Internal (UI) API
|
|
14096
14646
|
CasesService.V2_MEDIATYPE_CASE_VIEW = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-case-view.v2+json';
|
|
@@ -14710,7 +15260,9 @@ var CaseHistoryComponent = /** @class */ (function () {
|
|
|
14710
15260
|
});
|
|
14711
15261
|
};
|
|
14712
15262
|
CaseHistoryComponent.prototype.ngOnDestroy = function () {
|
|
14713
|
-
this.caseSubscription
|
|
15263
|
+
if (this.caseSubscription) {
|
|
15264
|
+
this.caseSubscription.unsubscribe();
|
|
15265
|
+
}
|
|
14714
15266
|
};
|
|
14715
15267
|
CaseHistoryComponent.prototype.isDataLoaded = function () {
|
|
14716
15268
|
return !!(this.caseDetails && this.caseHistory);
|
|
@@ -15453,6 +16005,350 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
15453
16005
|
__export(__webpack_require__(58710));
|
|
15454
16006
|
|
|
15455
16007
|
|
|
16008
|
+
/***/ }),
|
|
16009
|
+
|
|
16010
|
+
/***/ 42906:
|
|
16011
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16012
|
+
|
|
16013
|
+
"use strict";
|
|
16014
|
+
|
|
16015
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16016
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16017
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16018
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16019
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16020
|
+
};
|
|
16021
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16022
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16023
|
+
};
|
|
16024
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16025
|
+
var core_1 = __webpack_require__(57208);
|
|
16026
|
+
var __1 = __webpack_require__(2401);
|
|
16027
|
+
var domain_1 = __webpack_require__(59346);
|
|
16028
|
+
var CaseBasicAccessViewComponent = /** @class */ (function () {
|
|
16029
|
+
function CaseBasicAccessViewComponent(casesService) {
|
|
16030
|
+
this.casesService = casesService;
|
|
16031
|
+
this.caseDetails = null;
|
|
16032
|
+
this.accessType = null;
|
|
16033
|
+
this.courtOrHearingCentre = null;
|
|
16034
|
+
}
|
|
16035
|
+
CaseBasicAccessViewComponent.prototype.ngOnInit = function () {
|
|
16036
|
+
var _this = this;
|
|
16037
|
+
var locationId = this.caseDetails &&
|
|
16038
|
+
this.caseDetails.basicFields &&
|
|
16039
|
+
this.caseDetails.basicFields.caseManagementLocation &&
|
|
16040
|
+
this.caseDetails.basicFields.caseManagementLocation.baseLocation ?
|
|
16041
|
+
this.caseDetails.basicFields.caseManagementLocation.baseLocation : null;
|
|
16042
|
+
if (locationId) {
|
|
16043
|
+
this.courtOrHearingCentreSubscription = this.casesService.getCourtOrHearingCentreName(locationId).subscribe(function (courtOrHearingCentre) {
|
|
16044
|
+
return _this.courtOrHearingCentre = courtOrHearingCentre[0] && courtOrHearingCentre[0].building_location_name ?
|
|
16045
|
+
courtOrHearingCentre[0].building_location_name :
|
|
16046
|
+
null;
|
|
16047
|
+
});
|
|
16048
|
+
}
|
|
16049
|
+
};
|
|
16050
|
+
CaseBasicAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
16051
|
+
if (this.courtOrHearingCentreSubscription) {
|
|
16052
|
+
this.courtOrHearingCentreSubscription.unsubscribe();
|
|
16053
|
+
}
|
|
16054
|
+
};
|
|
16055
|
+
CaseBasicAccessViewComponent.prototype.onCancel = function () {
|
|
16056
|
+
// Navigate to the previous page
|
|
16057
|
+
window.history.go(-1);
|
|
16058
|
+
};
|
|
16059
|
+
__decorate([
|
|
16060
|
+
core_1.Input(),
|
|
16061
|
+
__metadata("design:type", domain_1.CaseView)
|
|
16062
|
+
], CaseBasicAccessViewComponent.prototype, "caseDetails", void 0);
|
|
16063
|
+
__decorate([
|
|
16064
|
+
core_1.Input(),
|
|
16065
|
+
__metadata("design:type", String)
|
|
16066
|
+
], CaseBasicAccessViewComponent.prototype, "accessType", void 0);
|
|
16067
|
+
CaseBasicAccessViewComponent = __decorate([
|
|
16068
|
+
core_1.Component({
|
|
16069
|
+
selector: 'ccd-case-basic-access-view',
|
|
16070
|
+
template: __webpack_require__(80734)
|
|
16071
|
+
}),
|
|
16072
|
+
__metadata("design:paramtypes", [__1.CasesService])
|
|
16073
|
+
], CaseBasicAccessViewComponent);
|
|
16074
|
+
return CaseBasicAccessViewComponent;
|
|
16075
|
+
}());
|
|
16076
|
+
exports.CaseBasicAccessViewComponent = CaseBasicAccessViewComponent;
|
|
16077
|
+
|
|
16078
|
+
|
|
16079
|
+
/***/ }),
|
|
16080
|
+
|
|
16081
|
+
/***/ 74891:
|
|
16082
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16083
|
+
|
|
16084
|
+
"use strict";
|
|
16085
|
+
|
|
16086
|
+
function __export(m) {
|
|
16087
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16088
|
+
}
|
|
16089
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16090
|
+
__export(__webpack_require__(42906));
|
|
16091
|
+
|
|
16092
|
+
|
|
16093
|
+
/***/ }),
|
|
16094
|
+
|
|
16095
|
+
/***/ 70776:
|
|
16096
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16097
|
+
|
|
16098
|
+
"use strict";
|
|
16099
|
+
|
|
16100
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16101
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16102
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16103
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16104
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16105
|
+
};
|
|
16106
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16107
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16108
|
+
};
|
|
16109
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16110
|
+
var core_1 = __webpack_require__(57208);
|
|
16111
|
+
var forms_1 = __webpack_require__(92985);
|
|
16112
|
+
var router_1 = __webpack_require__(92302);
|
|
16113
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16114
|
+
var models_1 = __webpack_require__(55682);
|
|
16115
|
+
var CaseChallengedAccessRequestComponent = /** @class */ (function () {
|
|
16116
|
+
function CaseChallengedAccessRequestComponent(fb, router, casesService, route) {
|
|
16117
|
+
this.fb = fb;
|
|
16118
|
+
this.router = router;
|
|
16119
|
+
this.casesService = casesService;
|
|
16120
|
+
this.route = route;
|
|
16121
|
+
this.submitted = false;
|
|
16122
|
+
this.genericError = 'There is a problem';
|
|
16123
|
+
this.radioSelectedControlName = 'radioSelected';
|
|
16124
|
+
this.caseReferenceControlName = 'caseReference';
|
|
16125
|
+
this.otherReasonControlName = 'otherReason';
|
|
16126
|
+
this.accessReasons = [
|
|
16127
|
+
{ reason: models_1.AccessReason.LINKED_TO_CURRENT_CASE, checked: false },
|
|
16128
|
+
{ reason: models_1.AccessReason.CONSOLIDATE_CASE, checked: false },
|
|
16129
|
+
{ reason: models_1.AccessReason.ORDER_FOR_TRANSFER, checked: false },
|
|
16130
|
+
{ reason: models_1.AccessReason.OTHER, checked: false }
|
|
16131
|
+
];
|
|
16132
|
+
}
|
|
16133
|
+
CaseChallengedAccessRequestComponent.prototype.ngOnInit = function () {
|
|
16134
|
+
var _this = this;
|
|
16135
|
+
this.title = models_1.ChallengedAccessRequestPageText.TITLE;
|
|
16136
|
+
this.hint = models_1.ChallengedAccessRequestPageText.HINT;
|
|
16137
|
+
this.caseRefLabel = models_1.ChallengedAccessRequestPageText.CASE_REF;
|
|
16138
|
+
this.formGroup = this.fb.group({
|
|
16139
|
+
radioSelected: new forms_1.FormControl(null, forms_1.Validators.required)
|
|
16140
|
+
});
|
|
16141
|
+
this.formGroup.addControl(this.caseReferenceControlName, new forms_1.FormControl('', {
|
|
16142
|
+
validators: [function (control) {
|
|
16143
|
+
if (_this.formGroup.get(_this.radioSelectedControlName).value === models_1.AccessReason.LINKED_TO_CURRENT_CASE && _this.inputEmpty(control)) {
|
|
16144
|
+
return { 'invalid': true };
|
|
16145
|
+
}
|
|
16146
|
+
return null;
|
|
16147
|
+
}],
|
|
16148
|
+
updateOn: 'submit'
|
|
16149
|
+
}));
|
|
16150
|
+
this.formGroup.addControl(this.otherReasonControlName, new forms_1.FormControl('', {
|
|
16151
|
+
validators: [function (control) {
|
|
16152
|
+
if (_this.formGroup.get(_this.radioSelectedControlName).value === models_1.AccessReason.OTHER && _this.inputEmpty(control)) {
|
|
16153
|
+
return { 'invalid': true };
|
|
16154
|
+
}
|
|
16155
|
+
return null;
|
|
16156
|
+
}],
|
|
16157
|
+
updateOn: 'submit'
|
|
16158
|
+
}));
|
|
16159
|
+
};
|
|
16160
|
+
CaseChallengedAccessRequestComponent.prototype.inputEmpty = function (input) {
|
|
16161
|
+
return input.value == null || input.value.trim().length === 0;
|
|
16162
|
+
};
|
|
16163
|
+
CaseChallengedAccessRequestComponent.prototype.onChange = function () {
|
|
16164
|
+
this.submitted = false;
|
|
16165
|
+
// Clear the "Case reference" and "Other reason" fields manually. This prevents any previous value being retained by
|
|
16166
|
+
// the field's FormControl when the field itself is removed from the DOM by *ngIf. (If it is subsequently added back
|
|
16167
|
+
// to the DOM by *ngIf, it will appear empty but the associated FormControl still has the previous value.)
|
|
16168
|
+
this.formGroup.get(this.caseReferenceControlName).setValue('');
|
|
16169
|
+
this.formGroup.get(this.otherReasonControlName).setValue('');
|
|
16170
|
+
};
|
|
16171
|
+
CaseChallengedAccessRequestComponent.prototype.onSubmit = function () {
|
|
16172
|
+
var _this = this;
|
|
16173
|
+
this.submitted = true;
|
|
16174
|
+
if (this.formGroup.get(this.radioSelectedControlName).invalid) {
|
|
16175
|
+
this.errorMessage = {
|
|
16176
|
+
title: this.genericError,
|
|
16177
|
+
description: models_1.ChallengedAccessRequestErrors.NO_SELECTION
|
|
16178
|
+
};
|
|
16179
|
+
}
|
|
16180
|
+
else {
|
|
16181
|
+
if (this.formGroup.get(this.caseReferenceControlName).invalid) {
|
|
16182
|
+
this.errorMessage = {
|
|
16183
|
+
title: this.genericError,
|
|
16184
|
+
description: models_1.ChallengedAccessRequestErrors.NO_CASE_REFERENCE,
|
|
16185
|
+
fieldId: 'case-reference'
|
|
16186
|
+
};
|
|
16187
|
+
}
|
|
16188
|
+
if (this.formGroup.get(this.otherReasonControlName).invalid) {
|
|
16189
|
+
this.errorMessage = {
|
|
16190
|
+
title: this.genericError,
|
|
16191
|
+
description: models_1.ChallengedAccessRequestErrors.NO_REASON,
|
|
16192
|
+
fieldId: 'other-reason'
|
|
16193
|
+
};
|
|
16194
|
+
}
|
|
16195
|
+
}
|
|
16196
|
+
// Initiate Challenged Access Request
|
|
16197
|
+
if (this.formGroup.valid) {
|
|
16198
|
+
// Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
|
|
16199
|
+
var caseId = this.route.snapshot.data.case.case_id;
|
|
16200
|
+
var radioSelectedValue = this.formGroup.get(this.radioSelectedControlName).value;
|
|
16201
|
+
// Get the index of the selected AccessReason enum value. Can't use Object.values because it's not available in
|
|
16202
|
+
// < ES2017!
|
|
16203
|
+
var reasonNumber = Object.keys(models_1.AccessReason).map(function (e) { return models_1.AccessReason[e]; }).indexOf(radioSelectedValue);
|
|
16204
|
+
var challengedAccessRequest = {
|
|
16205
|
+
reason: reasonNumber,
|
|
16206
|
+
caseReference: reasonNumber === 0 ? this.formGroup.get(this.caseReferenceControlName).value : null,
|
|
16207
|
+
otherReason: reasonNumber === 3 ? this.formGroup.get(this.otherReasonControlName).value : null
|
|
16208
|
+
};
|
|
16209
|
+
this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
|
|
16210
|
+
.subscribe(function (_response) {
|
|
16211
|
+
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
16212
|
+
// Angular 7.2!
|
|
16213
|
+
_this.router.navigate(['success'], { relativeTo: _this.route });
|
|
16214
|
+
}, function (_error) {
|
|
16215
|
+
// Navigate to error page
|
|
16216
|
+
});
|
|
16217
|
+
}
|
|
16218
|
+
};
|
|
16219
|
+
CaseChallengedAccessRequestComponent.prototype.onCancel = function () {
|
|
16220
|
+
// Navigate to the page before previous one (should be Search Results or Case List page, for example)
|
|
16221
|
+
window.history.go(-2);
|
|
16222
|
+
};
|
|
16223
|
+
CaseChallengedAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
16224
|
+
if (this.$roleAssignmentResponseSubscription) {
|
|
16225
|
+
this.$roleAssignmentResponseSubscription.unsubscribe();
|
|
16226
|
+
}
|
|
16227
|
+
};
|
|
16228
|
+
CaseChallengedAccessRequestComponent = __decorate([
|
|
16229
|
+
core_1.Component({
|
|
16230
|
+
selector: 'ccd-case-challenged-access-request',
|
|
16231
|
+
template: __webpack_require__(17607)
|
|
16232
|
+
}),
|
|
16233
|
+
__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
16234
|
+
router_1.Router,
|
|
16235
|
+
case_editor_1.CasesService,
|
|
16236
|
+
router_1.ActivatedRoute])
|
|
16237
|
+
], CaseChallengedAccessRequestComponent);
|
|
16238
|
+
return CaseChallengedAccessRequestComponent;
|
|
16239
|
+
}());
|
|
16240
|
+
exports.CaseChallengedAccessRequestComponent = CaseChallengedAccessRequestComponent;
|
|
16241
|
+
|
|
16242
|
+
|
|
16243
|
+
/***/ }),
|
|
16244
|
+
|
|
16245
|
+
/***/ 38403:
|
|
16246
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16247
|
+
|
|
16248
|
+
"use strict";
|
|
16249
|
+
|
|
16250
|
+
function __export(m) {
|
|
16251
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16252
|
+
}
|
|
16253
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16254
|
+
__export(__webpack_require__(70776));
|
|
16255
|
+
|
|
16256
|
+
|
|
16257
|
+
/***/ }),
|
|
16258
|
+
|
|
16259
|
+
/***/ 27153:
|
|
16260
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
16261
|
+
|
|
16262
|
+
"use strict";
|
|
16263
|
+
|
|
16264
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16265
|
+
var AccessReason;
|
|
16266
|
+
(function (AccessReason) {
|
|
16267
|
+
AccessReason["LINKED_TO_CURRENT_CASE"] = "The cases or parties are linked to the case I am working on";
|
|
16268
|
+
AccessReason["CONSOLIDATE_CASE"] = "To determine if the case needs to be consolidated";
|
|
16269
|
+
AccessReason["ORDER_FOR_TRANSFER"] = "To consider an order for transfer";
|
|
16270
|
+
AccessReason["OTHER"] = "Other reason";
|
|
16271
|
+
})(AccessReason = exports.AccessReason || (exports.AccessReason = {}));
|
|
16272
|
+
var ChallengedAccessRequestPageText;
|
|
16273
|
+
(function (ChallengedAccessRequestPageText) {
|
|
16274
|
+
ChallengedAccessRequestPageText["TITLE"] = "Why do you need to access this case?";
|
|
16275
|
+
ChallengedAccessRequestPageText["HINT"] = "Select a reason.";
|
|
16276
|
+
ChallengedAccessRequestPageText["CASE_REF"] = "Case reference";
|
|
16277
|
+
})(ChallengedAccessRequestPageText = exports.ChallengedAccessRequestPageText || (exports.ChallengedAccessRequestPageText = {}));
|
|
16278
|
+
var ChallengedAccessRequestErrors;
|
|
16279
|
+
(function (ChallengedAccessRequestErrors) {
|
|
16280
|
+
ChallengedAccessRequestErrors["NO_SELECTION"] = "Select a reason";
|
|
16281
|
+
ChallengedAccessRequestErrors["NO_CASE_REFERENCE"] = "Enter a case reference";
|
|
16282
|
+
ChallengedAccessRequestErrors["NO_REASON"] = "Enter a reason";
|
|
16283
|
+
})(ChallengedAccessRequestErrors = exports.ChallengedAccessRequestErrors || (exports.ChallengedAccessRequestErrors = {}));
|
|
16284
|
+
|
|
16285
|
+
|
|
16286
|
+
/***/ }),
|
|
16287
|
+
|
|
16288
|
+
/***/ 55682:
|
|
16289
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16290
|
+
|
|
16291
|
+
"use strict";
|
|
16292
|
+
|
|
16293
|
+
function __export(m) {
|
|
16294
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16295
|
+
}
|
|
16296
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16297
|
+
__export(__webpack_require__(27153));
|
|
16298
|
+
|
|
16299
|
+
|
|
16300
|
+
/***/ }),
|
|
16301
|
+
|
|
16302
|
+
/***/ 41969:
|
|
16303
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16304
|
+
|
|
16305
|
+
"use strict";
|
|
16306
|
+
|
|
16307
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16308
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16309
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16310
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16311
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16312
|
+
};
|
|
16313
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16314
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16315
|
+
};
|
|
16316
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16317
|
+
var core_1 = __webpack_require__(57208);
|
|
16318
|
+
var router_1 = __webpack_require__(92302);
|
|
16319
|
+
var CaseChallengedAccessSuccessComponent = /** @class */ (function () {
|
|
16320
|
+
function CaseChallengedAccessSuccessComponent(route) {
|
|
16321
|
+
this.route = route;
|
|
16322
|
+
}
|
|
16323
|
+
CaseChallengedAccessSuccessComponent.prototype.ngOnInit = function () {
|
|
16324
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
16325
|
+
};
|
|
16326
|
+
CaseChallengedAccessSuccessComponent = __decorate([
|
|
16327
|
+
core_1.Component({
|
|
16328
|
+
selector: 'ccd-case-challenged-access-success',
|
|
16329
|
+
template: __webpack_require__(96603)
|
|
16330
|
+
}),
|
|
16331
|
+
__metadata("design:paramtypes", [router_1.ActivatedRoute])
|
|
16332
|
+
], CaseChallengedAccessSuccessComponent);
|
|
16333
|
+
return CaseChallengedAccessSuccessComponent;
|
|
16334
|
+
}());
|
|
16335
|
+
exports.CaseChallengedAccessSuccessComponent = CaseChallengedAccessSuccessComponent;
|
|
16336
|
+
|
|
16337
|
+
|
|
16338
|
+
/***/ }),
|
|
16339
|
+
|
|
16340
|
+
/***/ 26840:
|
|
16341
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16342
|
+
|
|
16343
|
+
"use strict";
|
|
16344
|
+
|
|
16345
|
+
function __export(m) {
|
|
16346
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16347
|
+
}
|
|
16348
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16349
|
+
__export(__webpack_require__(41969));
|
|
16350
|
+
|
|
16351
|
+
|
|
15456
16352
|
/***/ }),
|
|
15457
16353
|
|
|
15458
16354
|
/***/ 83645:
|
|
@@ -15511,10 +16407,10 @@ var CaseEventTriggerComponent = /** @class */ (function () {
|
|
|
15511
16407
|
});
|
|
15512
16408
|
};
|
|
15513
16409
|
CaseEventTriggerComponent.prototype.ngOnDestroy = function () {
|
|
15514
|
-
if (this.activityPollingService.isEnabled) {
|
|
16410
|
+
if (this.activitySubscription && this.activityPollingService.isEnabled) {
|
|
15515
16411
|
this.activitySubscription.unsubscribe();
|
|
15516
16412
|
}
|
|
15517
|
-
if (!this.route.snapshot.data.case) {
|
|
16413
|
+
if (!this.route.snapshot.data.case && this.caseSubscription) {
|
|
15518
16414
|
this.caseSubscription.unsubscribe();
|
|
15519
16415
|
}
|
|
15520
16416
|
};
|
|
@@ -15588,130 +16484,7 @@ __export(__webpack_require__(83645));
|
|
|
15588
16484
|
|
|
15589
16485
|
/***/ }),
|
|
15590
16486
|
|
|
15591
|
-
/***/
|
|
15592
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
15593
|
-
|
|
15594
|
-
"use strict";
|
|
15595
|
-
|
|
15596
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15597
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15598
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15599
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15600
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15601
|
-
};
|
|
15602
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15603
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15604
|
-
};
|
|
15605
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
15606
|
-
var core_1 = __webpack_require__(57208);
|
|
15607
|
-
var services_1 = __webpack_require__(65010);
|
|
15608
|
-
var domain_1 = __webpack_require__(59346);
|
|
15609
|
-
var case_editor_1 = __webpack_require__(27070);
|
|
15610
|
-
var services_2 = __webpack_require__(65010);
|
|
15611
|
-
var rxjs_1 = __webpack_require__(87318);
|
|
15612
|
-
var operators_1 = __webpack_require__(19443);
|
|
15613
|
-
var services_3 = __webpack_require__(65010);
|
|
15614
|
-
var class_transformer_1 = __webpack_require__(86631);
|
|
15615
|
-
var CaseViewComponent = /** @class */ (function () {
|
|
15616
|
-
function CaseViewComponent(navigationNotifierService, caseNotifier, casesService, draftService, alertService) {
|
|
15617
|
-
this.navigationNotifierService = navigationNotifierService;
|
|
15618
|
-
this.caseNotifier = caseNotifier;
|
|
15619
|
-
this.casesService = casesService;
|
|
15620
|
-
this.draftService = draftService;
|
|
15621
|
-
this.alertService = alertService;
|
|
15622
|
-
this.hasPrint = true;
|
|
15623
|
-
this.hasEventSelector = true;
|
|
15624
|
-
this.navigationTriggered = new core_1.EventEmitter();
|
|
15625
|
-
}
|
|
15626
|
-
CaseViewComponent.prototype.ngOnInit = function () {
|
|
15627
|
-
var _this = this;
|
|
15628
|
-
this.getCaseView(this.case)
|
|
15629
|
-
.pipe(operators_1.map(function (caseView) {
|
|
15630
|
-
_this.caseDetails = class_transformer_1.plainToClassFromExist(new domain_1.CaseView(), caseView);
|
|
15631
|
-
_this.caseNotifier.announceCase(_this.caseDetails);
|
|
15632
|
-
}))
|
|
15633
|
-
.toPromise()
|
|
15634
|
-
.catch(function (error) { return _this.checkAuthorizationError(error); });
|
|
15635
|
-
this.navigationSubscription = this.navigationNotifierService.navigation.subscribe(function (navigation) {
|
|
15636
|
-
_this.navigationTriggered.emit(navigation);
|
|
15637
|
-
});
|
|
15638
|
-
};
|
|
15639
|
-
CaseViewComponent.prototype.ngOnDestroy = function () {
|
|
15640
|
-
this.navigationSubscription.unsubscribe();
|
|
15641
|
-
};
|
|
15642
|
-
CaseViewComponent.prototype.isDataLoaded = function () {
|
|
15643
|
-
return !!this.caseDetails;
|
|
15644
|
-
};
|
|
15645
|
-
CaseViewComponent.prototype.getCaseView = function (cid) {
|
|
15646
|
-
if (domain_1.Draft.isDraft(cid)) {
|
|
15647
|
-
return this.getDraft(cid);
|
|
15648
|
-
}
|
|
15649
|
-
else {
|
|
15650
|
-
return this.casesService
|
|
15651
|
-
.getCaseViewV2(cid);
|
|
15652
|
-
}
|
|
15653
|
-
};
|
|
15654
|
-
CaseViewComponent.prototype.getDraft = function (cid) {
|
|
15655
|
-
return this.draftService
|
|
15656
|
-
.getDraft(cid);
|
|
15657
|
-
};
|
|
15658
|
-
CaseViewComponent.prototype.checkAuthorizationError = function (error) {
|
|
15659
|
-
// TODO Should be logged to remote logging infrastructure
|
|
15660
|
-
console.error(error);
|
|
15661
|
-
if (error.status !== 401 && error.status !== 403) {
|
|
15662
|
-
this.alertService.error(error.message);
|
|
15663
|
-
}
|
|
15664
|
-
return rxjs_1.throwError(error);
|
|
15665
|
-
};
|
|
15666
|
-
__decorate([
|
|
15667
|
-
core_1.Input(),
|
|
15668
|
-
__metadata("design:type", String)
|
|
15669
|
-
], CaseViewComponent.prototype, "case", void 0);
|
|
15670
|
-
__decorate([
|
|
15671
|
-
core_1.Input(),
|
|
15672
|
-
__metadata("design:type", Object)
|
|
15673
|
-
], CaseViewComponent.prototype, "hasPrint", void 0);
|
|
15674
|
-
__decorate([
|
|
15675
|
-
core_1.Input(),
|
|
15676
|
-
__metadata("design:type", Object)
|
|
15677
|
-
], CaseViewComponent.prototype, "hasEventSelector", void 0);
|
|
15678
|
-
__decorate([
|
|
15679
|
-
core_1.Output(),
|
|
15680
|
-
__metadata("design:type", core_1.EventEmitter)
|
|
15681
|
-
], CaseViewComponent.prototype, "navigationTriggered", void 0);
|
|
15682
|
-
CaseViewComponent = __decorate([
|
|
15683
|
-
core_1.Component({
|
|
15684
|
-
selector: 'ccd-case-view',
|
|
15685
|
-
template: __webpack_require__(24288)
|
|
15686
|
-
}),
|
|
15687
|
-
__metadata("design:paramtypes", [services_3.NavigationNotifierService,
|
|
15688
|
-
case_editor_1.CaseNotifier,
|
|
15689
|
-
case_editor_1.CasesService,
|
|
15690
|
-
services_2.DraftService,
|
|
15691
|
-
services_1.AlertService])
|
|
15692
|
-
], CaseViewComponent);
|
|
15693
|
-
return CaseViewComponent;
|
|
15694
|
-
}());
|
|
15695
|
-
exports.CaseViewComponent = CaseViewComponent;
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
/***/ }),
|
|
15699
|
-
|
|
15700
|
-
/***/ 65389:
|
|
15701
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
15702
|
-
|
|
15703
|
-
"use strict";
|
|
15704
|
-
|
|
15705
|
-
function __export(m) {
|
|
15706
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
15707
|
-
}
|
|
15708
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
15709
|
-
__export(__webpack_require__(76979));
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
/***/ }),
|
|
15713
|
-
|
|
15714
|
-
/***/ 89554:
|
|
16487
|
+
/***/ 76764:
|
|
15715
16488
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
15716
16489
|
|
|
15717
16490
|
"use strict";
|
|
@@ -15748,9 +16521,9 @@ var dialogs_1 = __webpack_require__(84573);
|
|
|
15748
16521
|
var directives_1 = __webpack_require__(66395);
|
|
15749
16522
|
var domain_1 = __webpack_require__(59346);
|
|
15750
16523
|
var services_1 = __webpack_require__(65010);
|
|
15751
|
-
var
|
|
15752
|
-
var
|
|
15753
|
-
function
|
|
16524
|
+
var helpers_1 = __webpack_require__(23495);
|
|
16525
|
+
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
16526
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, location) {
|
|
15754
16527
|
this.ngZone = ngZone;
|
|
15755
16528
|
this.route = route;
|
|
15756
16529
|
this.router = router;
|
|
@@ -15760,32 +16533,23 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15760
16533
|
this.dialog = dialog;
|
|
15761
16534
|
this.alertService = alertService;
|
|
15762
16535
|
this.draftService = draftService;
|
|
15763
|
-
this.caseNotifier = caseNotifier;
|
|
15764
16536
|
this.errorNotifierService = errorNotifierService;
|
|
15765
16537
|
this.location = location;
|
|
15766
16538
|
this.hasPrint = true;
|
|
15767
16539
|
this.hasEventSelector = true;
|
|
15768
16540
|
this.prependedTabs = [];
|
|
15769
16541
|
this.BANNER = domain_1.DisplayMode.BANNER;
|
|
15770
|
-
this.triggerTextStart =
|
|
15771
|
-
this.triggerTextIgnoreWarnings =
|
|
15772
|
-
this.triggerText =
|
|
16542
|
+
this.triggerTextStart = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
16543
|
+
this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent_1.TRIGGER_TEXT_CONTINUE;
|
|
16544
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
15773
16545
|
this.ignoreWarning = false;
|
|
15774
16546
|
this.callbackErrorsSubject = new Subject_1.Subject();
|
|
15775
16547
|
}
|
|
15776
|
-
|
|
15777
|
-
|
|
16548
|
+
CaseFullAccessViewComponent_1 = CaseFullAccessViewComponent;
|
|
16549
|
+
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
15778
16550
|
var _this = this;
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
15782
|
-
_this.caseDetails = caseDetails;
|
|
15783
|
-
_this.init();
|
|
15784
|
-
});
|
|
15785
|
-
}
|
|
15786
|
-
else {
|
|
15787
|
-
this.init();
|
|
15788
|
-
}
|
|
16551
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
16552
|
+
this.init();
|
|
15789
16553
|
this.callbackErrorsSubject.subscribe(function (errorEvent) {
|
|
15790
16554
|
_this.error = errorEvent;
|
|
15791
16555
|
});
|
|
@@ -15796,10 +16560,10 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15796
16560
|
}
|
|
15797
16561
|
});
|
|
15798
16562
|
};
|
|
15799
|
-
|
|
16563
|
+
CaseFullAccessViewComponent.prototype.isPrintEnabled = function () {
|
|
15800
16564
|
return this.caseDetails.case_type.printEnabled;
|
|
15801
16565
|
};
|
|
15802
|
-
|
|
16566
|
+
CaseFullAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
15803
16567
|
if (this.activityPollingService.isEnabled) {
|
|
15804
16568
|
this.activitySubscription.unsubscribe();
|
|
15805
16569
|
}
|
|
@@ -15807,19 +16571,19 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15807
16571
|
if (!this.route.snapshot.data.case) {
|
|
15808
16572
|
this.caseSubscription.unsubscribe();
|
|
15809
16573
|
}
|
|
15810
|
-
if (
|
|
16574
|
+
if (this.errorSubscription) {
|
|
15811
16575
|
this.errorSubscription.unsubscribe();
|
|
15812
16576
|
}
|
|
15813
16577
|
};
|
|
15814
|
-
|
|
16578
|
+
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
15815
16579
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
15816
16580
|
};
|
|
15817
|
-
|
|
16581
|
+
CaseFullAccessViewComponent.prototype.clearErrorsAndWarnings = function () {
|
|
15818
16582
|
this.resetErrors();
|
|
15819
16583
|
this.ignoreWarning = false;
|
|
15820
|
-
this.triggerText =
|
|
16584
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
15821
16585
|
};
|
|
15822
|
-
|
|
16586
|
+
CaseFullAccessViewComponent.prototype.applyTrigger = function (trigger) {
|
|
15823
16587
|
var _this = this;
|
|
15824
16588
|
this.error = null;
|
|
15825
16589
|
var theQueryParams = {};
|
|
@@ -15842,7 +16606,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15842
16606
|
}
|
|
15843
16607
|
else if (this.isDraft() && trigger.id !== domain_1.CaseViewTrigger.DELETE) {
|
|
15844
16608
|
theQueryParams[domain_1.DRAFT_QUERY_PARAM] = this.caseDetails.case_id;
|
|
15845
|
-
theQueryParams[
|
|
16609
|
+
theQueryParams[CaseFullAccessViewComponent_1.ORIGIN_QUERY_PARAM] = 'viewDraft';
|
|
15846
16610
|
this.navigationNotifierService.announceNavigation({
|
|
15847
16611
|
action: services_1.NavigationOrigin.DRAFT_RESUMED,
|
|
15848
16612
|
jid: this.caseDetails.case_type.jurisdiction.id,
|
|
@@ -15860,20 +16624,17 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15860
16624
|
});
|
|
15861
16625
|
}
|
|
15862
16626
|
};
|
|
15863
|
-
|
|
15864
|
-
return !!this.caseDetails;
|
|
15865
|
-
};
|
|
15866
|
-
CaseViewerComponent.prototype.hasTabsPresent = function () {
|
|
16627
|
+
CaseFullAccessViewComponent.prototype.hasTabsPresent = function () {
|
|
15867
16628
|
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0;
|
|
15868
16629
|
};
|
|
15869
|
-
|
|
16630
|
+
CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
|
|
15870
16631
|
this.ignoreWarning = callbackErrorsContext.ignore_warning;
|
|
15871
16632
|
this.triggerText = callbackErrorsContext.trigger_text;
|
|
15872
16633
|
};
|
|
15873
|
-
|
|
16634
|
+
CaseFullAccessViewComponent.prototype.isDraft = function () {
|
|
15874
16635
|
return domain_1.Draft.isDraft(this.caseDetails.case_id);
|
|
15875
16636
|
};
|
|
15876
|
-
|
|
16637
|
+
CaseFullAccessViewComponent.prototype.isTriggerButtonDisabled = function () {
|
|
15877
16638
|
return (this.error
|
|
15878
16639
|
&& this.error.callbackErrors
|
|
15879
16640
|
&& this.error.callbackErrors.length)
|
|
@@ -15882,7 +16643,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15882
16643
|
&& this.error.details.field_errors
|
|
15883
16644
|
&& this.error.details.field_errors.length);
|
|
15884
16645
|
};
|
|
15885
|
-
|
|
16646
|
+
CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
|
|
15886
16647
|
var _this = this;
|
|
15887
16648
|
var matTab;
|
|
15888
16649
|
var url = this.location.path(true);
|
|
@@ -15897,21 +16658,19 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15897
16658
|
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === selectedTab_1.label; });
|
|
15898
16659
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
15899
16660
|
});
|
|
15900
|
-
return;
|
|
15901
16661
|
}
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
this.tabGroup.selectedIndex = matTab.position;
|
|
16662
|
+
else {
|
|
16663
|
+
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
16664
|
+
hashValue = hashValue.replace(regExp, CaseFullAccessViewComponent_1.EMPTY_SPACE);
|
|
16665
|
+
matTab = this.tabGroup._tabs.find(function (x) {
|
|
16666
|
+
return x.textLabel.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase() === hashValue.toLowerCase();
|
|
16667
|
+
});
|
|
16668
|
+
if (matTab && matTab.position) {
|
|
16669
|
+
this.tabGroup.selectedIndex = matTab.position;
|
|
16670
|
+
}
|
|
15912
16671
|
}
|
|
15913
16672
|
};
|
|
15914
|
-
|
|
16673
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
15915
16674
|
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
15916
16675
|
var id = tab.element.nativeElement.id;
|
|
15917
16676
|
if (tabChangeEvent.index <= 1 && this.prependedTabs.length) {
|
|
@@ -15923,7 +16682,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15923
16682
|
});
|
|
15924
16683
|
}
|
|
15925
16684
|
};
|
|
15926
|
-
|
|
16685
|
+
CaseFullAccessViewComponent.prototype.init = function () {
|
|
15927
16686
|
var _this = this;
|
|
15928
16687
|
// Clone and sort tabs array
|
|
15929
16688
|
this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
|
|
@@ -15941,13 +16700,13 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15941
16700
|
this.resetErrors();
|
|
15942
16701
|
}
|
|
15943
16702
|
};
|
|
15944
|
-
|
|
16703
|
+
CaseFullAccessViewComponent.prototype.sortTabFieldsAndFilterTabs = function (tabs) {
|
|
15945
16704
|
var _this = this;
|
|
15946
16705
|
return tabs
|
|
15947
16706
|
.map(function (tab) { return Object.assign({}, tab, { fields: _this.orderService.sort(tab.fields) }); })
|
|
15948
16707
|
.filter(function (tab) { return directives_1.ShowCondition.getInstance(tab.show_condition).matchByContextFields(_this.caseFields); });
|
|
15949
16708
|
};
|
|
15950
|
-
|
|
16709
|
+
CaseFullAccessViewComponent.prototype.getTabFields = function () {
|
|
15951
16710
|
var caseDataFields = this.sortedTabs.reduce(function (acc, tab) {
|
|
15952
16711
|
return acc.concat(class_transformer_1.plainToClass(domain_1.CaseField, tab.fields));
|
|
15953
16712
|
}, []);
|
|
@@ -15959,7 +16718,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15959
16718
|
* This FormGroup is necessary for evaluation the show/hide conditions of
|
|
15960
16719
|
* fields that are dependent on a field only available on a DIFFERENT tab.
|
|
15961
16720
|
*/
|
|
15962
|
-
|
|
16721
|
+
CaseFullAccessViewComponent.prototype.buildFormGroup = function (caseFields) {
|
|
15963
16722
|
var value = {};
|
|
15964
16723
|
if (caseFields) {
|
|
15965
16724
|
caseFields.forEach(function (caseField) {
|
|
@@ -15969,54 +16728,42 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
15969
16728
|
}
|
|
15970
16729
|
return new forms_1.FormGroup({ data: new forms_1.FormControl(value) });
|
|
15971
16730
|
};
|
|
15972
|
-
|
|
15973
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
15974
|
-
this.dialogConfig.disableClose = true;
|
|
15975
|
-
this.dialogConfig.autoFocus = true;
|
|
15976
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
15977
|
-
this.dialogConfig.height = '245px';
|
|
15978
|
-
this.dialogConfig.width = '550px';
|
|
15979
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
15980
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
15981
|
-
this.dialogConfig.position = {
|
|
15982
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
15983
|
-
};
|
|
15984
|
-
};
|
|
15985
|
-
CaseViewerComponent.prototype.resetErrors = function () {
|
|
16731
|
+
CaseFullAccessViewComponent.prototype.resetErrors = function () {
|
|
15986
16732
|
this.error = null;
|
|
15987
16733
|
this.callbackErrorsSubject.next(null);
|
|
15988
16734
|
this.alertService.clear();
|
|
15989
16735
|
};
|
|
15990
|
-
var
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
16736
|
+
var CaseFullAccessViewComponent_1;
|
|
16737
|
+
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
16738
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
16739
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
16740
|
+
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
16741
|
+
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
15995
16742
|
__decorate([
|
|
15996
16743
|
core_1.Input(),
|
|
15997
16744
|
__metadata("design:type", Object)
|
|
15998
|
-
],
|
|
16745
|
+
], CaseFullAccessViewComponent.prototype, "hasPrint", void 0);
|
|
15999
16746
|
__decorate([
|
|
16000
16747
|
core_1.Input(),
|
|
16001
16748
|
__metadata("design:type", Object)
|
|
16002
|
-
],
|
|
16749
|
+
], CaseFullAccessViewComponent.prototype, "hasEventSelector", void 0);
|
|
16003
16750
|
__decorate([
|
|
16004
16751
|
core_1.Input(),
|
|
16005
16752
|
__metadata("design:type", domain_1.CaseView)
|
|
16006
|
-
],
|
|
16753
|
+
], CaseFullAccessViewComponent.prototype, "caseDetails", void 0);
|
|
16007
16754
|
__decorate([
|
|
16008
16755
|
core_1.Input(),
|
|
16009
16756
|
__metadata("design:type", Array)
|
|
16010
|
-
],
|
|
16757
|
+
], CaseFullAccessViewComponent.prototype, "prependedTabs", void 0);
|
|
16011
16758
|
__decorate([
|
|
16012
16759
|
core_1.ViewChild('tabGroup'),
|
|
16013
16760
|
__metadata("design:type", material_1.MatTabGroup)
|
|
16014
|
-
],
|
|
16015
|
-
|
|
16761
|
+
], CaseFullAccessViewComponent.prototype, "tabGroup", void 0);
|
|
16762
|
+
CaseFullAccessViewComponent = CaseFullAccessViewComponent_1 = __decorate([
|
|
16016
16763
|
core_1.Component({
|
|
16017
|
-
selector: 'ccd-case-
|
|
16018
|
-
template: __webpack_require__(
|
|
16019
|
-
styles: [__webpack_require__(
|
|
16764
|
+
selector: 'ccd-case-full-access-view',
|
|
16765
|
+
template: __webpack_require__(99839),
|
|
16766
|
+
styles: [__webpack_require__(73262)]
|
|
16020
16767
|
}),
|
|
16021
16768
|
__metadata("design:paramtypes", [core_1.NgZone,
|
|
16022
16769
|
router_1.ActivatedRoute,
|
|
@@ -16027,9 +16774,273 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16027
16774
|
material_1.MatDialog,
|
|
16028
16775
|
services_1.AlertService,
|
|
16029
16776
|
services_1.DraftService,
|
|
16030
|
-
case_editor_1.CaseNotifier,
|
|
16031
16777
|
services_1.ErrorNotifierService,
|
|
16032
16778
|
common_1.Location])
|
|
16779
|
+
], CaseFullAccessViewComponent);
|
|
16780
|
+
return CaseFullAccessViewComponent;
|
|
16781
|
+
}());
|
|
16782
|
+
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
16783
|
+
|
|
16784
|
+
|
|
16785
|
+
/***/ }),
|
|
16786
|
+
|
|
16787
|
+
/***/ 65341:
|
|
16788
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16789
|
+
|
|
16790
|
+
"use strict";
|
|
16791
|
+
|
|
16792
|
+
function __export(m) {
|
|
16793
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16794
|
+
}
|
|
16795
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16796
|
+
__export(__webpack_require__(76764));
|
|
16797
|
+
|
|
16798
|
+
|
|
16799
|
+
/***/ }),
|
|
16800
|
+
|
|
16801
|
+
/***/ 76979:
|
|
16802
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16803
|
+
|
|
16804
|
+
"use strict";
|
|
16805
|
+
|
|
16806
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16807
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16808
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16809
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16810
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16811
|
+
};
|
|
16812
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16813
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16814
|
+
};
|
|
16815
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16816
|
+
var core_1 = __webpack_require__(57208);
|
|
16817
|
+
var services_1 = __webpack_require__(65010);
|
|
16818
|
+
var domain_1 = __webpack_require__(59346);
|
|
16819
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16820
|
+
var services_2 = __webpack_require__(65010);
|
|
16821
|
+
var rxjs_1 = __webpack_require__(87318);
|
|
16822
|
+
var operators_1 = __webpack_require__(19443);
|
|
16823
|
+
var services_3 = __webpack_require__(65010);
|
|
16824
|
+
var class_transformer_1 = __webpack_require__(86631);
|
|
16825
|
+
var CaseViewComponent = /** @class */ (function () {
|
|
16826
|
+
function CaseViewComponent(navigationNotifierService, caseNotifier, casesService, draftService, alertService) {
|
|
16827
|
+
this.navigationNotifierService = navigationNotifierService;
|
|
16828
|
+
this.caseNotifier = caseNotifier;
|
|
16829
|
+
this.casesService = casesService;
|
|
16830
|
+
this.draftService = draftService;
|
|
16831
|
+
this.alertService = alertService;
|
|
16832
|
+
this.hasPrint = true;
|
|
16833
|
+
this.hasEventSelector = true;
|
|
16834
|
+
this.navigationTriggered = new core_1.EventEmitter();
|
|
16835
|
+
}
|
|
16836
|
+
CaseViewComponent.prototype.ngOnInit = function () {
|
|
16837
|
+
var _this = this;
|
|
16838
|
+
this.getCaseView(this.case)
|
|
16839
|
+
.pipe(operators_1.map(function (caseView) {
|
|
16840
|
+
_this.caseDetails = class_transformer_1.plainToClassFromExist(new domain_1.CaseView(), caseView);
|
|
16841
|
+
_this.caseNotifier.announceCase(_this.caseDetails);
|
|
16842
|
+
}))
|
|
16843
|
+
.toPromise()
|
|
16844
|
+
.catch(function (error) { return _this.checkAuthorizationError(error); });
|
|
16845
|
+
this.navigationSubscription = this.navigationNotifierService.navigation.subscribe(function (navigation) {
|
|
16846
|
+
_this.navigationTriggered.emit(navigation);
|
|
16847
|
+
});
|
|
16848
|
+
};
|
|
16849
|
+
CaseViewComponent.prototype.ngOnDestroy = function () {
|
|
16850
|
+
if (this.navigationSubscription) {
|
|
16851
|
+
this.navigationSubscription.unsubscribe();
|
|
16852
|
+
}
|
|
16853
|
+
};
|
|
16854
|
+
CaseViewComponent.prototype.isDataLoaded = function () {
|
|
16855
|
+
return !!this.caseDetails;
|
|
16856
|
+
};
|
|
16857
|
+
CaseViewComponent.prototype.getCaseView = function (cid) {
|
|
16858
|
+
if (domain_1.Draft.isDraft(cid)) {
|
|
16859
|
+
return this.getDraft(cid);
|
|
16860
|
+
}
|
|
16861
|
+
else {
|
|
16862
|
+
return this.casesService
|
|
16863
|
+
.getCaseViewV2(cid);
|
|
16864
|
+
}
|
|
16865
|
+
};
|
|
16866
|
+
CaseViewComponent.prototype.getDraft = function (cid) {
|
|
16867
|
+
return this.draftService
|
|
16868
|
+
.getDraft(cid);
|
|
16869
|
+
};
|
|
16870
|
+
CaseViewComponent.prototype.checkAuthorizationError = function (error) {
|
|
16871
|
+
// TODO Should be logged to remote logging infrastructure
|
|
16872
|
+
console.error(error);
|
|
16873
|
+
if (error.status !== 401 && error.status !== 403) {
|
|
16874
|
+
this.alertService.error(error.message);
|
|
16875
|
+
}
|
|
16876
|
+
return rxjs_1.throwError(error);
|
|
16877
|
+
};
|
|
16878
|
+
__decorate([
|
|
16879
|
+
core_1.Input(),
|
|
16880
|
+
__metadata("design:type", String)
|
|
16881
|
+
], CaseViewComponent.prototype, "case", void 0);
|
|
16882
|
+
__decorate([
|
|
16883
|
+
core_1.Input(),
|
|
16884
|
+
__metadata("design:type", Object)
|
|
16885
|
+
], CaseViewComponent.prototype, "hasPrint", void 0);
|
|
16886
|
+
__decorate([
|
|
16887
|
+
core_1.Input(),
|
|
16888
|
+
__metadata("design:type", Object)
|
|
16889
|
+
], CaseViewComponent.prototype, "hasEventSelector", void 0);
|
|
16890
|
+
__decorate([
|
|
16891
|
+
core_1.Output(),
|
|
16892
|
+
__metadata("design:type", core_1.EventEmitter)
|
|
16893
|
+
], CaseViewComponent.prototype, "navigationTriggered", void 0);
|
|
16894
|
+
CaseViewComponent = __decorate([
|
|
16895
|
+
core_1.Component({
|
|
16896
|
+
selector: 'ccd-case-view',
|
|
16897
|
+
template: __webpack_require__(24288)
|
|
16898
|
+
}),
|
|
16899
|
+
__metadata("design:paramtypes", [services_3.NavigationNotifierService,
|
|
16900
|
+
case_editor_1.CaseNotifier,
|
|
16901
|
+
case_editor_1.CasesService,
|
|
16902
|
+
services_2.DraftService,
|
|
16903
|
+
services_1.AlertService])
|
|
16904
|
+
], CaseViewComponent);
|
|
16905
|
+
return CaseViewComponent;
|
|
16906
|
+
}());
|
|
16907
|
+
exports.CaseViewComponent = CaseViewComponent;
|
|
16908
|
+
|
|
16909
|
+
|
|
16910
|
+
/***/ }),
|
|
16911
|
+
|
|
16912
|
+
/***/ 65389:
|
|
16913
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16914
|
+
|
|
16915
|
+
"use strict";
|
|
16916
|
+
|
|
16917
|
+
function __export(m) {
|
|
16918
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16919
|
+
}
|
|
16920
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16921
|
+
__export(__webpack_require__(76979));
|
|
16922
|
+
|
|
16923
|
+
|
|
16924
|
+
/***/ }),
|
|
16925
|
+
|
|
16926
|
+
/***/ 89554:
|
|
16927
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16928
|
+
|
|
16929
|
+
"use strict";
|
|
16930
|
+
|
|
16931
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16932
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16933
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16934
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16935
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16936
|
+
};
|
|
16937
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16938
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16939
|
+
};
|
|
16940
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16941
|
+
var core_1 = __webpack_require__(57208);
|
|
16942
|
+
var router_1 = __webpack_require__(92302);
|
|
16943
|
+
var app_config_1 = __webpack_require__(35185);
|
|
16944
|
+
var domain_1 = __webpack_require__(59346);
|
|
16945
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16946
|
+
var CaseViewerComponent = /** @class */ (function () {
|
|
16947
|
+
function CaseViewerComponent(route, caseNotifier, appConfig) {
|
|
16948
|
+
this.route = route;
|
|
16949
|
+
this.caseNotifier = caseNotifier;
|
|
16950
|
+
this.appConfig = appConfig;
|
|
16951
|
+
this.hasPrint = true;
|
|
16952
|
+
this.hasEventSelector = true;
|
|
16953
|
+
this.prependedTabs = [];
|
|
16954
|
+
}
|
|
16955
|
+
CaseViewerComponent_1 = CaseViewerComponent;
|
|
16956
|
+
CaseViewerComponent.prototype.ngOnInit = function () {
|
|
16957
|
+
this.loadCaseDetails();
|
|
16958
|
+
};
|
|
16959
|
+
CaseViewerComponent.prototype.ngOnDestroy = function () {
|
|
16960
|
+
if (this.caseSubscription) {
|
|
16961
|
+
this.caseSubscription.unsubscribe();
|
|
16962
|
+
}
|
|
16963
|
+
};
|
|
16964
|
+
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
16965
|
+
var _this = this;
|
|
16966
|
+
if (!this.route.snapshot.data.case) {
|
|
16967
|
+
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
16968
|
+
_this.caseDetails = caseDetails;
|
|
16969
|
+
_this.setUserAccessType(_this.caseDetails);
|
|
16970
|
+
});
|
|
16971
|
+
}
|
|
16972
|
+
else {
|
|
16973
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
16974
|
+
this.setUserAccessType(this.caseDetails);
|
|
16975
|
+
}
|
|
16976
|
+
};
|
|
16977
|
+
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
16978
|
+
// remove once CCD starts sending CAM data or Access management goes live
|
|
16979
|
+
this.setMockData(caseDetails);
|
|
16980
|
+
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
16981
|
+
var access_process = caseDetails.metadataFields.find(function (metadataField) {
|
|
16982
|
+
return metadataField.id === CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
16983
|
+
});
|
|
16984
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
16985
|
+
}
|
|
16986
|
+
};
|
|
16987
|
+
CaseViewerComponent.prototype.isDataLoaded = function () {
|
|
16988
|
+
return !!this.caseDetails;
|
|
16989
|
+
};
|
|
16990
|
+
CaseViewerComponent.prototype.hasStandardAccess = function () {
|
|
16991
|
+
var featureToggleOn = this.appConfig.getAccessManagementMode();
|
|
16992
|
+
return featureToggleOn ? CaseViewerComponent_1.NON_STANDARD_USER_ACCESS_TYPES.indexOf(this.userAccessType) === -1 : true;
|
|
16993
|
+
};
|
|
16994
|
+
// remove once Access management goes live
|
|
16995
|
+
CaseViewerComponent.prototype.setMockData = function (caseDetails) {
|
|
16996
|
+
var accessManagementBasicViewMock = this.appConfig.getAccessManagementBasicViewMock();
|
|
16997
|
+
if (accessManagementBasicViewMock.active && !caseDetails.basicFields) {
|
|
16998
|
+
var access_process_index = caseDetails.metadataFields.findIndex(function (metadataField) {
|
|
16999
|
+
return metadataField.id === CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
17000
|
+
});
|
|
17001
|
+
if (access_process_index > -1) {
|
|
17002
|
+
caseDetails.metadataFields[access_process_index].value = accessManagementBasicViewMock.accessProcess;
|
|
17003
|
+
}
|
|
17004
|
+
else {
|
|
17005
|
+
var access_process = new domain_1.CaseField();
|
|
17006
|
+
access_process.id = CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
17007
|
+
access_process.value = accessManagementBasicViewMock.accessProcess;
|
|
17008
|
+
access_process.field_type = {
|
|
17009
|
+
id: '',
|
|
17010
|
+
type: 'Text'
|
|
17011
|
+
};
|
|
17012
|
+
caseDetails.metadataFields.push(access_process);
|
|
17013
|
+
}
|
|
17014
|
+
caseDetails.basicFields = accessManagementBasicViewMock.basicFields;
|
|
17015
|
+
}
|
|
17016
|
+
};
|
|
17017
|
+
var CaseViewerComponent_1;
|
|
17018
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
17019
|
+
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
17020
|
+
__decorate([
|
|
17021
|
+
core_1.Input(),
|
|
17022
|
+
__metadata("design:type", Object)
|
|
17023
|
+
], CaseViewerComponent.prototype, "hasPrint", void 0);
|
|
17024
|
+
__decorate([
|
|
17025
|
+
core_1.Input(),
|
|
17026
|
+
__metadata("design:type", Object)
|
|
17027
|
+
], CaseViewerComponent.prototype, "hasEventSelector", void 0);
|
|
17028
|
+
__decorate([
|
|
17029
|
+
core_1.Input(),
|
|
17030
|
+
__metadata("design:type", Array)
|
|
17031
|
+
], CaseViewerComponent.prototype, "prependedTabs", void 0);
|
|
17032
|
+
__decorate([
|
|
17033
|
+
core_1.Input(),
|
|
17034
|
+
__metadata("design:type", domain_1.CaseView)
|
|
17035
|
+
], CaseViewerComponent.prototype, "caseDetails", void 0);
|
|
17036
|
+
CaseViewerComponent = CaseViewerComponent_1 = __decorate([
|
|
17037
|
+
core_1.Component({
|
|
17038
|
+
selector: 'ccd-case-viewer',
|
|
17039
|
+
template: __webpack_require__(67025)
|
|
17040
|
+
}),
|
|
17041
|
+
__metadata("design:paramtypes", [router_1.ActivatedRoute,
|
|
17042
|
+
case_editor_1.CaseNotifier,
|
|
17043
|
+
app_config_1.AbstractAppConfig])
|
|
16033
17044
|
], CaseViewerComponent);
|
|
16034
17045
|
return CaseViewerComponent;
|
|
16035
17046
|
}());
|
|
@@ -16050,26 +17061,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
16050
17061
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16051
17062
|
};
|
|
16052
17063
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16053
|
-
var core_1 = __webpack_require__(57208);
|
|
16054
17064
|
var common_1 = __webpack_require__(91216);
|
|
16055
|
-
var
|
|
16056
|
-
var
|
|
17065
|
+
var core_1 = __webpack_require__(57208);
|
|
17066
|
+
var forms_1 = __webpack_require__(92985);
|
|
16057
17067
|
var material_1 = __webpack_require__(69451);
|
|
17068
|
+
var router_1 = __webpack_require__(92302);
|
|
17069
|
+
var alert_1 = __webpack_require__(44944);
|
|
17070
|
+
var tabs_1 = __webpack_require__(80624);
|
|
17071
|
+
var directives_1 = __webpack_require__(66395);
|
|
17072
|
+
var pipes_1 = __webpack_require__(32741);
|
|
16058
17073
|
var services_1 = __webpack_require__(65010);
|
|
16059
|
-
var errors_module_1 = __webpack_require__(61386);
|
|
16060
17074
|
var activity_1 = __webpack_require__(52703);
|
|
17075
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16061
17076
|
var case_header_1 = __webpack_require__(75150);
|
|
16062
17077
|
var case_history_1 = __webpack_require__(30542);
|
|
17078
|
+
var error_message_component_1 = __webpack_require__(67679);
|
|
17079
|
+
var errors_module_1 = __webpack_require__(61386);
|
|
16063
17080
|
var event_trigger_1 = __webpack_require__(7108);
|
|
16064
|
-
var tabs_1 = __webpack_require__(80624);
|
|
16065
17081
|
var palette_1 = __webpack_require__(22212);
|
|
16066
|
-
var
|
|
16067
|
-
var
|
|
17082
|
+
var case_basic_access_view_component_1 = __webpack_require__(42906);
|
|
17083
|
+
var case_challenged_access_request_component_1 = __webpack_require__(70776);
|
|
17084
|
+
var case_challenged_access_success_component_1 = __webpack_require__(41969);
|
|
16068
17085
|
var case_event_trigger_1 = __webpack_require__(92100);
|
|
16069
|
-
var
|
|
16070
|
-
var case_editor_1 = __webpack_require__(27070);
|
|
17086
|
+
var case_full_access_view_component_1 = __webpack_require__(76764);
|
|
16071
17087
|
var case_view_1 = __webpack_require__(65389);
|
|
16072
|
-
var
|
|
17088
|
+
var case_viewer_component_1 = __webpack_require__(89554);
|
|
17089
|
+
var printer_1 = __webpack_require__(65773);
|
|
17090
|
+
var services_2 = __webpack_require__(50137);
|
|
16073
17091
|
var CaseViewerModule = /** @class */ (function () {
|
|
16074
17092
|
function CaseViewerModule() {
|
|
16075
17093
|
}
|
|
@@ -16091,15 +17109,22 @@ var CaseViewerModule = /** @class */ (function () {
|
|
|
16091
17109
|
case_history_1.CaseHistoryModule,
|
|
16092
17110
|
palette_1.EventLogModule,
|
|
16093
17111
|
material_1.MatTabsModule,
|
|
16094
|
-
palette_1.ComplexModule
|
|
17112
|
+
palette_1.ComplexModule,
|
|
17113
|
+
forms_1.FormsModule,
|
|
17114
|
+
forms_1.ReactiveFormsModule,
|
|
17115
|
+
alert_1.AlertModule
|
|
16095
17116
|
],
|
|
16096
|
-
schemas: [core_1.NO_ERRORS_SCHEMA],
|
|
16097
17117
|
declarations: [
|
|
16098
17118
|
case_event_trigger_1.CaseEventTriggerComponent,
|
|
16099
17119
|
printer_1.CasePrinterComponent,
|
|
16100
17120
|
case_viewer_component_1.CaseViewerComponent,
|
|
17121
|
+
case_basic_access_view_component_1.CaseBasicAccessViewComponent,
|
|
17122
|
+
case_full_access_view_component_1.CaseFullAccessViewComponent,
|
|
16101
17123
|
case_view_1.CaseViewComponent,
|
|
16102
17124
|
printer_1.PrintUrlPipe,
|
|
17125
|
+
case_challenged_access_request_component_1.CaseChallengedAccessRequestComponent,
|
|
17126
|
+
error_message_component_1.ErrorMessageComponent,
|
|
17127
|
+
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent
|
|
16103
17128
|
],
|
|
16104
17129
|
exports: [
|
|
16105
17130
|
case_viewer_component_1.CaseViewerComponent,
|
|
@@ -16139,10 +17164,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
16139
17164
|
__export(__webpack_require__(50137));
|
|
16140
17165
|
__export(__webpack_require__(92100));
|
|
16141
17166
|
__export(__webpack_require__(65389));
|
|
17167
|
+
__export(__webpack_require__(74891));
|
|
17168
|
+
__export(__webpack_require__(65341));
|
|
16142
17169
|
__export(__webpack_require__(65773));
|
|
16143
17170
|
__export(__webpack_require__(89554));
|
|
16144
17171
|
__export(__webpack_require__(45296));
|
|
16145
17172
|
__export(__webpack_require__(37355));
|
|
17173
|
+
__export(__webpack_require__(38403));
|
|
17174
|
+
__export(__webpack_require__(26840));
|
|
16146
17175
|
|
|
16147
17176
|
|
|
16148
17177
|
/***/ }),
|
|
@@ -16195,7 +17224,9 @@ var CasePrinterComponent = /** @class */ (function () {
|
|
|
16195
17224
|
});
|
|
16196
17225
|
};
|
|
16197
17226
|
CasePrinterComponent.prototype.ngOnDestroy = function () {
|
|
16198
|
-
this.caseSubscription
|
|
17227
|
+
if (this.caseSubscription) {
|
|
17228
|
+
this.caseSubscription.unsubscribe();
|
|
17229
|
+
}
|
|
16199
17230
|
};
|
|
16200
17231
|
CasePrinterComponent.prototype.isDataLoaded = function () {
|
|
16201
17232
|
return this.caseDetails && this.documents ? true : false;
|
|
@@ -16538,12 +17569,14 @@ __export(__webpack_require__(69115));
|
|
|
16538
17569
|
"use strict";
|
|
16539
17570
|
|
|
16540
17571
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16541
|
-
var printer_1 = __webpack_require__(65773);
|
|
16542
|
-
var services_1 = __webpack_require__(50137);
|
|
16543
|
-
var case_event_trigger_component_1 = __webpack_require__(83645);
|
|
16544
17572
|
var case_editor_1 = __webpack_require__(27070);
|
|
16545
17573
|
var case_history_1 = __webpack_require__(30542);
|
|
16546
17574
|
var file_upload_progress_guard_1 = __webpack_require__(27667);
|
|
17575
|
+
var case_challenged_access_request_1 = __webpack_require__(38403);
|
|
17576
|
+
var case_challenged_access_success_1 = __webpack_require__(26840);
|
|
17577
|
+
var case_event_trigger_component_1 = __webpack_require__(83645);
|
|
17578
|
+
var printer_1 = __webpack_require__(65773);
|
|
17579
|
+
var services_1 = __webpack_require__(50137);
|
|
16547
17580
|
exports.viewerRouting = [
|
|
16548
17581
|
{
|
|
16549
17582
|
path: 'print',
|
|
@@ -16561,6 +17594,26 @@ exports.viewerRouting = [
|
|
|
16561
17594
|
{
|
|
16562
17595
|
path: 'event/:eid/history',
|
|
16563
17596
|
component: case_history_1.CaseHistoryComponent,
|
|
17597
|
+
},
|
|
17598
|
+
{
|
|
17599
|
+
path: 'access-request',
|
|
17600
|
+
children: [
|
|
17601
|
+
{
|
|
17602
|
+
path: '',
|
|
17603
|
+
component: case_challenged_access_request_1.CaseChallengedAccessRequestComponent,
|
|
17604
|
+
data: {
|
|
17605
|
+
title: 'Request Challenged Access'
|
|
17606
|
+
},
|
|
17607
|
+
pathMatch: 'full'
|
|
17608
|
+
},
|
|
17609
|
+
{
|
|
17610
|
+
path: 'success',
|
|
17611
|
+
component: case_challenged_access_success_1.CaseChallengedAccessSuccessComponent,
|
|
17612
|
+
data: {
|
|
17613
|
+
title: 'Challenged Access Success'
|
|
17614
|
+
}
|
|
17615
|
+
}
|
|
17616
|
+
]
|
|
16564
17617
|
}
|
|
16565
17618
|
];
|
|
16566
17619
|
|
|
@@ -17146,6 +18199,59 @@ var SaveOrDiscardDialogComponent = /** @class */ (function () {
|
|
|
17146
18199
|
exports.SaveOrDiscardDialogComponent = SaveOrDiscardDialogComponent;
|
|
17147
18200
|
|
|
17148
18201
|
|
|
18202
|
+
/***/ }),
|
|
18203
|
+
|
|
18204
|
+
/***/ 67679:
|
|
18205
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
18206
|
+
|
|
18207
|
+
"use strict";
|
|
18208
|
+
|
|
18209
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18210
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18211
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18212
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18213
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18214
|
+
};
|
|
18215
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
18216
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
18217
|
+
};
|
|
18218
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18219
|
+
/**
|
|
18220
|
+
* Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.ts
|
|
18221
|
+
*/
|
|
18222
|
+
var core_1 = __webpack_require__(57208);
|
|
18223
|
+
var ErrorMessageComponent = /** @class */ (function () {
|
|
18224
|
+
function ErrorMessageComponent() {
|
|
18225
|
+
}
|
|
18226
|
+
__decorate([
|
|
18227
|
+
core_1.Input(),
|
|
18228
|
+
__metadata("design:type", Object)
|
|
18229
|
+
], ErrorMessageComponent.prototype, "error", void 0);
|
|
18230
|
+
ErrorMessageComponent = __decorate([
|
|
18231
|
+
core_1.Component({
|
|
18232
|
+
selector: 'exui-error-message',
|
|
18233
|
+
template: __webpack_require__(9350)
|
|
18234
|
+
})
|
|
18235
|
+
], ErrorMessageComponent);
|
|
18236
|
+
return ErrorMessageComponent;
|
|
18237
|
+
}());
|
|
18238
|
+
exports.ErrorMessageComponent = ErrorMessageComponent;
|
|
18239
|
+
|
|
18240
|
+
|
|
18241
|
+
/***/ }),
|
|
18242
|
+
|
|
18243
|
+
/***/ 21470:
|
|
18244
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18245
|
+
|
|
18246
|
+
"use strict";
|
|
18247
|
+
|
|
18248
|
+
function __export(m) {
|
|
18249
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
18250
|
+
}
|
|
18251
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18252
|
+
__export(__webpack_require__(67679));
|
|
18253
|
+
|
|
18254
|
+
|
|
17149
18255
|
/***/ }),
|
|
17150
18256
|
|
|
17151
18257
|
/***/ 27468:
|
|
@@ -17185,7 +18291,9 @@ var CallbackErrorsComponent = /** @class */ (function () {
|
|
|
17185
18291
|
});
|
|
17186
18292
|
};
|
|
17187
18293
|
CallbackErrorsComponent.prototype.ngOnDestroy = function () {
|
|
17188
|
-
this.callbackErrorsSubject
|
|
18294
|
+
if (this.callbackErrorsSubject) {
|
|
18295
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
18296
|
+
}
|
|
17189
18297
|
};
|
|
17190
18298
|
CallbackErrorsComponent.prototype.buildCallbackErrorsContext = function () {
|
|
17191
18299
|
var errorContext = new error_context_1.CallbackErrorsContext();
|
|
@@ -17470,6 +18578,45 @@ __export(__webpack_require__(53641));
|
|
|
17470
18578
|
__export(__webpack_require__(23741));
|
|
17471
18579
|
|
|
17472
18580
|
|
|
18581
|
+
/***/ }),
|
|
18582
|
+
|
|
18583
|
+
/***/ 23495:
|
|
18584
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18585
|
+
|
|
18586
|
+
"use strict";
|
|
18587
|
+
|
|
18588
|
+
function __export(m) {
|
|
18589
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
18590
|
+
}
|
|
18591
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18592
|
+
__export(__webpack_require__(90479));
|
|
18593
|
+
|
|
18594
|
+
|
|
18595
|
+
/***/ }),
|
|
18596
|
+
|
|
18597
|
+
/***/ 90479:
|
|
18598
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18599
|
+
|
|
18600
|
+
"use strict";
|
|
18601
|
+
|
|
18602
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18603
|
+
var material_1 = __webpack_require__(69451);
|
|
18604
|
+
function initDialog(dialogConfig) {
|
|
18605
|
+
this.dialogConfig = new material_1.MatDialogConfig();
|
|
18606
|
+
this.dialogConfig.disableClose = true;
|
|
18607
|
+
this.dialogConfig.autoFocus = true;
|
|
18608
|
+
this.dialogConfig.ariaLabel = 'Label';
|
|
18609
|
+
this.dialogConfig.height = '245px';
|
|
18610
|
+
this.dialogConfig.width = '550px';
|
|
18611
|
+
this.dialogConfig.panelClass = 'dialog';
|
|
18612
|
+
this.dialogConfig.closeOnNavigation = false;
|
|
18613
|
+
this.dialogConfig.position = {
|
|
18614
|
+
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
18615
|
+
};
|
|
18616
|
+
}
|
|
18617
|
+
exports.initDialog = initDialog;
|
|
18618
|
+
|
|
18619
|
+
|
|
17473
18620
|
/***/ }),
|
|
17474
18621
|
|
|
17475
18622
|
/***/ 2401:
|
|
@@ -17490,6 +18637,7 @@ __export(__webpack_require__(34679));
|
|
|
17490
18637
|
__export(__webpack_require__(64633));
|
|
17491
18638
|
__export(__webpack_require__(84573));
|
|
17492
18639
|
__export(__webpack_require__(51585));
|
|
18640
|
+
__export(__webpack_require__(21470));
|
|
17493
18641
|
__export(__webpack_require__(7108));
|
|
17494
18642
|
__export(__webpack_require__(47174));
|
|
17495
18643
|
__export(__webpack_require__(22212));
|
|
@@ -19055,7 +20203,7 @@ var WriteCollectionFieldComponent = /** @class */ (function (_super) {
|
|
|
19055
20203
|
});
|
|
19056
20204
|
};
|
|
19057
20205
|
WriteCollectionFieldComponent.prototype.ngOnDestroy = function () {
|
|
19058
|
-
if (
|
|
20206
|
+
if (this.profileSubscription) {
|
|
19059
20207
|
this.profileSubscription.unsubscribe();
|
|
19060
20208
|
}
|
|
19061
20209
|
};
|
|
@@ -20647,6 +21795,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
20647
21795
|
var core_1 = __webpack_require__(57208);
|
|
20648
21796
|
var forms_1 = __webpack_require__(92985);
|
|
20649
21797
|
var datetime_picker_1 = __webpack_require__(99101);
|
|
21798
|
+
var moment_adapter_1 = __webpack_require__(16153);
|
|
20650
21799
|
var abstract_form_field_component_1 = __webpack_require__(19785);
|
|
20651
21800
|
var datetime_picker_utils_1 = __webpack_require__(16907);
|
|
20652
21801
|
var format_translator_service_1 = __webpack_require__(82646);
|
|
@@ -20684,14 +21833,16 @@ var DatetimePickerComponent = /** @class */ (function (_super) {
|
|
|
20684
21833
|
var _this = this;
|
|
20685
21834
|
this.dateTimeEntryFormat = this.formatTranslationService.showOnlyDates(this.caseField.dateTimeEntryFormat);
|
|
20686
21835
|
this.configureDatePicker(this.dateTimeEntryFormat);
|
|
20687
|
-
|
|
20688
|
-
this.dateControl =
|
|
21836
|
+
// set date control based on mandatory field
|
|
21837
|
+
this.dateControl = (this.caseField.isMandatory ?
|
|
21838
|
+
this.registerControl(new forms_1.FormControl(this.caseField.value || '', [forms_1.Validators.required]))
|
|
21839
|
+
: this.registerControl(new forms_1.FormControl(this.caseField.value)));
|
|
20689
21840
|
// in resetting the format just after the page initialises, the input can be reformatted
|
|
20690
21841
|
// otherwise the last format given will be how the text shown will be displayed
|
|
20691
21842
|
setTimeout(function () {
|
|
20692
21843
|
_this.setDateTimeFormat();
|
|
20693
|
-
_this.
|
|
20694
|
-
},
|
|
21844
|
+
_this.formatValueAndSetErrors();
|
|
21845
|
+
}, 1000);
|
|
20695
21846
|
// when the status changes check that the maximum/minimum date has not been exceeded
|
|
20696
21847
|
this.dateControl.statusChanges.subscribe(function () {
|
|
20697
21848
|
_this.minError = _this.dateControl.hasError('matDatetimePickerMin');
|
|
@@ -20706,20 +21857,35 @@ var DatetimePickerComponent = /** @class */ (function (_super) {
|
|
|
20706
21857
|
When the value changes, update the form control
|
|
20707
21858
|
*/
|
|
20708
21859
|
DatetimePickerComponent.prototype.valueChanged = function () {
|
|
20709
|
-
this.
|
|
21860
|
+
this.formatValueAndSetErrors();
|
|
20710
21861
|
};
|
|
20711
|
-
DatetimePickerComponent.prototype.
|
|
21862
|
+
DatetimePickerComponent.prototype.formatValueAndSetErrors = function () {
|
|
20712
21863
|
if (this.inputElement.nativeElement.value) {
|
|
20713
21864
|
var formValue = this.inputElement.nativeElement.value;
|
|
20714
21865
|
formValue = moment(formValue, this.dateTimeEntryFormat).format(this.momentFormat);
|
|
20715
21866
|
if (formValue !== 'Invalid date') {
|
|
21867
|
+
// if not invalid set the value as the formatted value
|
|
20716
21868
|
this.dateControl.setValue(formValue);
|
|
20717
21869
|
}
|
|
21870
|
+
else {
|
|
21871
|
+
// ensure that the datepicker picks up the invalid error
|
|
21872
|
+
var keepErrorText = this.inputElement.nativeElement.value;
|
|
21873
|
+
this.dateControl.setValue(keepErrorText);
|
|
21874
|
+
this.inputElement.nativeElement.value = keepErrorText;
|
|
21875
|
+
}
|
|
21876
|
+
}
|
|
21877
|
+
else {
|
|
21878
|
+
// ensure required errors are picked up if relevant
|
|
21879
|
+
this.dateControl.setValue('');
|
|
20718
21880
|
}
|
|
20719
21881
|
};
|
|
20720
21882
|
DatetimePickerComponent.prototype.focusIn = function () {
|
|
20721
21883
|
this.setDateTimeFormat();
|
|
20722
21884
|
};
|
|
21885
|
+
DatetimePickerComponent.prototype.focusOut = function () {
|
|
21886
|
+
// focus out needed to obtain errors (relevant to formatting)
|
|
21887
|
+
this.formatValueAndSetErrors();
|
|
21888
|
+
};
|
|
20723
21889
|
DatetimePickerComponent.prototype.toggleClick = function () {
|
|
20724
21890
|
this.setDateTimeFormat();
|
|
20725
21891
|
};
|
|
@@ -20816,7 +21982,9 @@ var DatetimePickerComponent = /** @class */ (function (_super) {
|
|
|
20816
21982
|
styles: [__webpack_require__(36263)],
|
|
20817
21983
|
encapsulation: core_1.ViewEncapsulation.None,
|
|
20818
21984
|
providers: [
|
|
20819
|
-
{ provide: datetime_picker_1.NGX_MAT_DATE_FORMATS, useValue: datetime_picker_utils_1.CUSTOM_MOMENT_FORMATS }
|
|
21985
|
+
{ provide: datetime_picker_1.NGX_MAT_DATE_FORMATS, useValue: datetime_picker_utils_1.CUSTOM_MOMENT_FORMATS },
|
|
21986
|
+
{ provide: datetime_picker_1.NgxMatDateAdapter, useClass: moment_adapter_1.NgxMatMomentAdapter },
|
|
21987
|
+
{ provide: moment_adapter_1.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
20820
21988
|
]
|
|
20821
21989
|
}),
|
|
20822
21990
|
__param(1, core_1.Inject(datetime_picker_1.NGX_MAT_DATE_FORMATS)),
|
|
@@ -21171,6 +22339,7 @@ var constants_1 = __webpack_require__(49071);
|
|
|
21171
22339
|
var document_management_service_1 = __webpack_require__(53265);
|
|
21172
22340
|
var case_notifier_1 = __webpack_require__(21190);
|
|
21173
22341
|
var document_dialog_component_1 = __webpack_require__(46139);
|
|
22342
|
+
var helpers_1 = __webpack_require__(23495);
|
|
21174
22343
|
var abstract_field_write_component_1 = __webpack_require__(47325);
|
|
21175
22344
|
var file_upload_state_service_1 = __webpack_require__(41139);
|
|
21176
22345
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
@@ -21197,7 +22366,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21197
22366
|
};
|
|
21198
22367
|
WriteDocumentFieldComponent.prototype.ngOnInit = function () {
|
|
21199
22368
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
21200
|
-
|
|
22369
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
21201
22370
|
// EUI-3403. The field was not being registered when there was no value and the field
|
|
21202
22371
|
// itself was not mandatory, which meant that show_conditions would not be evaluated.
|
|
21203
22372
|
// I've cleaned up the logic and it's now always registered.
|
|
@@ -21266,10 +22435,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21266
22435
|
this.displayFileUploadMessages(WriteDocumentFieldComponent_1.UPLOAD_WAITING_FILE_STATUS);
|
|
21267
22436
|
var documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
21268
22437
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
21269
|
-
|
|
21270
|
-
this.documentManagement.secureUploadFile(documentUpload) :
|
|
21271
|
-
this.documentManagement.uploadFile(documentUpload);
|
|
21272
|
-
this.fileUploadSubscription = uploadFile.subscribe({
|
|
22438
|
+
this.fileUploadSubscription = this.documentManagement.uploadFile(documentUpload).subscribe({
|
|
21273
22439
|
next: function (resultDocument) { return _this.handleDocumentUploadResult(resultDocument); },
|
|
21274
22440
|
error: function (error) { return _this.handleDocumentUploadError(error); }
|
|
21275
22441
|
});
|
|
@@ -21311,19 +22477,6 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21311
22477
|
return undefined;
|
|
21312
22478
|
}
|
|
21313
22479
|
};
|
|
21314
|
-
WriteDocumentFieldComponent.prototype.initDialog = function () {
|
|
21315
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
21316
|
-
this.dialogConfig.disableClose = true;
|
|
21317
|
-
this.dialogConfig.autoFocus = true;
|
|
21318
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
21319
|
-
this.dialogConfig.height = '245px';
|
|
21320
|
-
this.dialogConfig.width = '550px';
|
|
21321
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
21322
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
21323
|
-
this.dialogConfig.position = {
|
|
21324
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
21325
|
-
};
|
|
21326
|
-
};
|
|
21327
22480
|
WriteDocumentFieldComponent.prototype.subscribeToCaseDetails = function () {
|
|
21328
22481
|
var _this = this;
|
|
21329
22482
|
this.caseEventSubscription = this.caseNotifier.caseView.subscribe({
|
|
@@ -21368,7 +22521,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21368
22521
|
document_binary_url: new forms_1.FormControl(document.document_binary_url, forms_1.Validators.required),
|
|
21369
22522
|
document_filename: new forms_1.FormControl(document.document_filename, forms_1.Validators.required)
|
|
21370
22523
|
};
|
|
21371
|
-
documentFormGroup = this.secureModeOn ? __assign({}, documentFormGroup, { document_hash: new forms_1.FormControl(document.document_hash
|
|
22524
|
+
documentFormGroup = this.secureModeOn ? __assign({}, documentFormGroup, { document_hash: new forms_1.FormControl(document.document_hash) }) : documentFormGroup;
|
|
21372
22525
|
this.uploadedDocument = this.registerControl(new forms_1.FormGroup(documentFormGroup), true);
|
|
21373
22526
|
};
|
|
21374
22527
|
WriteDocumentFieldComponent.prototype.createDocumentForm = function (document) {
|
|
@@ -26156,15 +27309,13 @@ var SearchFiltersComponent = /** @class */ (function () {
|
|
|
26156
27309
|
}
|
|
26157
27310
|
this.onJurisdictionIdChange();
|
|
26158
27311
|
}
|
|
26159
|
-
|
|
26160
|
-
|
|
26161
|
-
|
|
26162
|
-
|
|
26163
|
-
this.
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
});
|
|
26167
|
-
}
|
|
27312
|
+
this.selected.formGroup = this.formGroup;
|
|
27313
|
+
this.selected.page = 1;
|
|
27314
|
+
this.selected.metadataFields = this.getMetadataFields();
|
|
27315
|
+
this.onApply.emit({
|
|
27316
|
+
selected: this.selected,
|
|
27317
|
+
queryParams: this.getQueryParams()
|
|
27318
|
+
});
|
|
26168
27319
|
};
|
|
26169
27320
|
SearchFiltersComponent.prototype.getQueryParams = function () {
|
|
26170
27321
|
// Save filters as query parameters for current route
|
|
@@ -26947,8 +28098,10 @@ var router_1 = __webpack_require__(92302);
|
|
|
26947
28098
|
var forms_1 = __webpack_require__(92985);
|
|
26948
28099
|
__webpack_require__(36964);
|
|
26949
28100
|
var services_1 = __webpack_require__(65010);
|
|
28101
|
+
var util_1 = __webpack_require__(18427);
|
|
26950
28102
|
var FORM_GROUP_VAL_LOC_STORAGE = 'workbasket-filter-form-group-value';
|
|
26951
28103
|
var SAVED_QUERY_PARAM_LOC_STORAGE = 'savedQueryParams';
|
|
28104
|
+
var REGION_LIST_AND_FRC_FILTER = 'regionList';
|
|
26952
28105
|
var WorkbasketFiltersComponent = /** @class */ (function () {
|
|
26953
28106
|
function WorkbasketFiltersComponent(route, workbasketInputFilterService, orderService, jurisdictionService, alertService, windowService) {
|
|
26954
28107
|
this.route = route;
|
|
@@ -26995,6 +28148,8 @@ var WorkbasketFiltersComponent = /** @class */ (function () {
|
|
|
26995
28148
|
this.selected.formGroup = JSON.parse(localStorage.getItem(FORM_GROUP_VAL_LOC_STORAGE));
|
|
26996
28149
|
}
|
|
26997
28150
|
else {
|
|
28151
|
+
// Update form group filters
|
|
28152
|
+
this.updateFormGroupFilters();
|
|
26998
28153
|
this.selected.formGroup = this.formGroup;
|
|
26999
28154
|
}
|
|
27000
28155
|
this.selected.init = init;
|
|
@@ -27182,6 +28337,38 @@ var WorkbasketFiltersComponent = /** @class */ (function () {
|
|
|
27182
28337
|
this.caseFields = this.workbasketInputs.map(function (item) { return services_1.FieldsUtils.convertToCaseField(item.field); });
|
|
27183
28338
|
}
|
|
27184
28339
|
};
|
|
28340
|
+
/**
|
|
28341
|
+
* This method is used to clear the previously used
|
|
28342
|
+
* form group control filter values to make sure only the
|
|
28343
|
+
* currently selected form group control filter values are present.
|
|
28344
|
+
*
|
|
28345
|
+
* Has been implemented for 'Region and FRC filters' and can be extended
|
|
28346
|
+
* in future to incorporate other dynamic filters.
|
|
28347
|
+
*
|
|
28348
|
+
* @private
|
|
28349
|
+
* @memberof WorkbasketFiltersComponent
|
|
28350
|
+
*/
|
|
28351
|
+
WorkbasketFiltersComponent.prototype.updateFormGroupFilters = function () {
|
|
28352
|
+
// Read the form group local storage
|
|
28353
|
+
var formGroupLS = JSON.parse(this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE));
|
|
28354
|
+
// Form group local storage is available and contains regionList property
|
|
28355
|
+
if (util_1.isDefined(formGroupLS) && formGroupLS.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
|
|
28356
|
+
// If regionList value does not match between local storage and form group
|
|
28357
|
+
// then the filter value has been changed and we need to clear the old filter values
|
|
28358
|
+
if (formGroupLS[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
|
|
28359
|
+
for (var key in formGroupLS) {
|
|
28360
|
+
if (formGroupLS.hasOwnProperty(key)) {
|
|
28361
|
+
var value = formGroupLS[key];
|
|
28362
|
+
// Clear the filter form group control values if it has a value in local storage
|
|
28363
|
+
// The regionList form group control value should be ignored as it always contain the latest value
|
|
28364
|
+
if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
|
|
28365
|
+
this.formGroup.get(key).setValue(null);
|
|
28366
|
+
}
|
|
28367
|
+
}
|
|
28368
|
+
}
|
|
28369
|
+
}
|
|
28370
|
+
}
|
|
28371
|
+
};
|
|
27185
28372
|
var WorkbasketFiltersComponent_1;
|
|
27186
28373
|
WorkbasketFiltersComponent.PARAM_JURISDICTION = 'jurisdiction';
|
|
27187
28374
|
WorkbasketFiltersComponent.PARAM_CASE_TYPE = 'case-type';
|
|
@@ -30863,22 +32050,35 @@ var ActivityService = /** @class */ (function () {
|
|
|
30863
32050
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
30864
32051
|
caseId[_i] = arguments[_i];
|
|
30865
32052
|
}
|
|
30866
|
-
|
|
30867
|
-
|
|
30868
|
-
|
|
30869
|
-
|
|
30870
|
-
|
|
32053
|
+
try {
|
|
32054
|
+
var options = this.getOptions();
|
|
32055
|
+
var url = this.activityUrl() + ("/cases/" + caseId.join(',') + "/activity");
|
|
32056
|
+
return this.http
|
|
32057
|
+
.get(url, options, false, ActivityService_1.handleHttpError)
|
|
32058
|
+
.map(function (response) { return response; });
|
|
32059
|
+
}
|
|
32060
|
+
catch (error) {
|
|
32061
|
+
console.log('user may not be authenticated.' + error);
|
|
32062
|
+
}
|
|
30871
32063
|
};
|
|
30872
32064
|
ActivityService.prototype.postActivity = function (caseId, activity) {
|
|
30873
|
-
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
30877
|
-
.
|
|
30878
|
-
|
|
32065
|
+
try {
|
|
32066
|
+
var options = this.getOptions();
|
|
32067
|
+
var url = this.activityUrl() + ("/cases/" + caseId + "/activity");
|
|
32068
|
+
var body = { activity: activity };
|
|
32069
|
+
return this.http
|
|
32070
|
+
.post(url, body, options, false)
|
|
32071
|
+
.map(function (response) { return response; });
|
|
32072
|
+
}
|
|
32073
|
+
catch (error) {
|
|
32074
|
+
console.log('user may not be authenticated.' + error);
|
|
32075
|
+
}
|
|
30879
32076
|
};
|
|
30880
32077
|
ActivityService.prototype.verifyUserIsAuthorized = function () {
|
|
30881
32078
|
var _this = this;
|
|
32079
|
+
if (this.sessionStorageService.getItem('userDetails') === undefined) {
|
|
32080
|
+
return;
|
|
32081
|
+
}
|
|
30882
32082
|
if (this.activityUrl() && this.userAuthorised === undefined) {
|
|
30883
32083
|
this.getActivities(ActivityService_1.DUMMY_CASE_REFERENCE).subscribe(function () { return _this.userAuthorised = true; }, function (error) {
|
|
30884
32084
|
if ([401, 403].indexOf(error.status) > -1) {
|
|
@@ -31635,6 +32835,10 @@ var FormatTranslatorService = /** @class */ (function () {
|
|
|
31635
32835
|
case 'd':
|
|
31636
32836
|
maybePush(result, 'D', inQuote);
|
|
31637
32837
|
break;
|
|
32838
|
+
// moment library defines year as capital y
|
|
32839
|
+
case 'y':
|
|
32840
|
+
maybePush(result, 'Y', inQuote);
|
|
32841
|
+
break;
|
|
31638
32842
|
case 'e':
|
|
31639
32843
|
case 'c':
|
|
31640
32844
|
maybePush(result, 'E', inQuote); // no lower case E
|
|
@@ -31678,6 +32882,9 @@ var FormatTranslatorService = /** @class */ (function () {
|
|
|
31678
32882
|
while (dateFormat.includes('d')) {
|
|
31679
32883
|
dateFormat = dateFormat.replace('d', 'D');
|
|
31680
32884
|
}
|
|
32885
|
+
while (dateFormat.includes('y')) {
|
|
32886
|
+
dateFormat = dateFormat.replace('y', 'Y');
|
|
32887
|
+
}
|
|
31681
32888
|
return dateFormat;
|
|
31682
32889
|
};
|
|
31683
32890
|
FormatTranslatorService.prototype.removeTime = function (dateFormat) {
|
|
@@ -31880,7 +33087,7 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
31880
33087
|
}
|
|
31881
33088
|
DocumentManagementService_1 = DocumentManagementService;
|
|
31882
33089
|
DocumentManagementService.prototype.uploadFile = function (formData) {
|
|
31883
|
-
var url = this.
|
|
33090
|
+
var url = this.getDocStoreUrl();
|
|
31884
33091
|
// Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
|
|
31885
33092
|
// Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
|
|
31886
33093
|
// correct headers and values automatically
|
|
@@ -31890,14 +33097,6 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
31890
33097
|
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
31891
33098
|
.pipe();
|
|
31892
33099
|
};
|
|
31893
|
-
DocumentManagementService.prototype.secureUploadFile = function (formData) {
|
|
31894
|
-
var url = this.appConfig.getDocumentManagementUrlV2();
|
|
31895
|
-
var headers = new http_2.HttpHeaders();
|
|
31896
|
-
return this.http
|
|
31897
|
-
.post(url, formData, { headers: headers, observe: 'body' })
|
|
31898
|
-
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
31899
|
-
.pipe();
|
|
31900
|
-
};
|
|
31901
33100
|
DocumentManagementService.prototype.getMediaViewerInfo = function (documentFieldValue) {
|
|
31902
33101
|
var mediaViewerInfo = {
|
|
31903
33102
|
document_binary_url: this.transformDocumentUrl(documentFieldValue.document_binary_url),
|
|
@@ -31961,7 +33160,10 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
31961
33160
|
var remoteHrsPattern = new RegExp(this.appConfig.getRemoteHrsUrl());
|
|
31962
33161
|
documentBinaryUrl = documentBinaryUrl.replace(remoteHrsPattern, this.appConfig.getHrsUrl());
|
|
31963
33162
|
var remoteDocumentManagementPattern = new RegExp(this.appConfig.getRemoteDocumentManagementUrl());
|
|
31964
|
-
return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.
|
|
33163
|
+
return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.getDocStoreUrl());
|
|
33164
|
+
};
|
|
33165
|
+
DocumentManagementService.prototype.getDocStoreUrl = function () {
|
|
33166
|
+
return this.appConfig.getDocumentSecureMode() ? this.appConfig.getDocumentManagementUrlV2() : this.appConfig.getDocumentManagementUrl();
|
|
31965
33167
|
};
|
|
31966
33168
|
var DocumentManagementService_1;
|
|
31967
33169
|
DocumentManagementService.PDF = 'pdf';
|
|
@@ -34382,7 +35584,7 @@ var RequestOptionsBuilder = /** @class */ (function () {
|
|
|
34382
35584
|
if (RequestOptionsBuilder_1.includeParam(caseCriteria[criterion])) {
|
|
34383
35585
|
var key = RequestOptionsBuilder_1.FIELD_PREFIX + criterion;
|
|
34384
35586
|
var value = caseCriteria[criterion].trim ? caseCriteria[criterion].trim() : caseCriteria[criterion];
|
|
34385
|
-
params = params.set(key, value);
|
|
35587
|
+
params = params.set(key, value.replace(/’/i, "'"));
|
|
34386
35588
|
}
|
|
34387
35589
|
}
|
|
34388
35590
|
}
|
|
@@ -36121,7 +37323,7 @@ exports.push([module.id, "", ""]);
|
|
|
36121
37323
|
|
|
36122
37324
|
/***/ }),
|
|
36123
37325
|
|
|
36124
|
-
/***/
|
|
37326
|
+
/***/ 50378:
|
|
36125
37327
|
/***/ ((module, exports, __webpack_require__) => {
|
|
36126
37328
|
|
|
36127
37329
|
exports = module.exports = __webpack_require__(9252)(false);
|
|
@@ -62139,7 +63341,7 @@ Prism.languages.js = Prism.languages.javascript;
|
|
|
62139
63341
|
/***/ 36749:
|
|
62140
63342
|
/***/ ((module) => {
|
|
62141
63343
|
|
|
62142
|
-
module.exports = "<div
|
|
63344
|
+
module.exports = "<div\n class=\"hmcts-banner\"\n [class.hmcts-banner--warning]=\"type === alertMessageType.WARNING || type === alertMessageType.ERROR\"\n [class.hmcts-banner--success]=\"type === alertMessageType.SUCCESS\"\n>\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"alertMessageType.WARNING\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"alertMessageType.ERROR\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"alertMessageType.SUCCESS\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"alertMessageType.INFORMATION\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n </ng-container>\n </ng-container>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{type}}</span>\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
62143
63345
|
|
|
62144
63346
|
/***/ }),
|
|
62145
63347
|
|
|
@@ -62311,6 +63513,27 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ng-container [ngSwitch]=\
|
|
|
62311
63513
|
|
|
62312
63514
|
/***/ }),
|
|
62313
63515
|
|
|
63516
|
+
/***/ 80734:
|
|
63517
|
+
/***/ ((module) => {
|
|
63518
|
+
|
|
63519
|
+
module.exports = "<form>\n <div>\n <cut-alert type=\"information\">This case requires {{accessType | lowercase}} access.<br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">This means it's outside your jurisdiction and requires authorisation. If you request access to the case, it will be logged for auditing purposes.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">Case details</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">Case name</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">Service</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">State</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">Court or hearing centre</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">Access</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase}}</dd>\n </div>\n </dl>\n </div>\n\n <button class=\"govuk-button govuk-!-margin-right-3\">Request access</button>\n</form>\n<a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">Cancel</a>\n"
|
|
63520
|
+
|
|
63521
|
+
/***/ }),
|
|
63522
|
+
|
|
63523
|
+
/***/ 17607:
|
|
63524
|
+
/***/ ((module) => {
|
|
63525
|
+
|
|
63526
|
+
module.exports = "<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">This case requires challenged access.<br/>This is because the case is\n outside your work area. If you request access to the case, it will be\n logged for auditing purposes.</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': formGroup.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{title}}\n </h1>\n </legend>\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{hint}}\n </div>\n <div id=\"error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{errorMessage.description}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-0\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[0].reason\"\n data-aria-controls=\"conditional-reason-0\" formControlName=\"radioSelected\" [checked]=\"accessReasons[0].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{accessReasons[0].reason}}\n </label>\n </div>\n <div id=\"conditional-reason-0\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[0].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"case-reference\">\n {{caseRefLabel}}\n </label>\n <div id=\"case-reference-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('caseReference').invalid && submitted\">\n {{errorMessage.description}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-third\"\n [ngClass]=\"{'govuk-input--error': formGroup.get('caseReference').invalid && submitted}\" id=\"case-reference\"\n name=\"case-reference\" type=\"text\" formControlName=\"caseReference\">\n </div>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-1\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[1].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{accessReasons[1].reason}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-2\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[2].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{accessReasons[2].reason}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-3\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[3].reason\"\n data-aria-controls=\"conditional-reason-3\" formControlName=\"radioSelected\" [checked]=\"accessReasons[3].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-3\" id=\"reason-3-label\">\n {{accessReasons[3].reason}}\n </label>\n </div>\n <div id=\"conditional-reason-3\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[3].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <div id=\"other-reason-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('otherReason').invalid && submitted\">\n {{errorMessage.description}}\n </div>\n <textarea class=\"govuk-textarea\" [ngClass]=\"{'govuk-textarea--error': formGroup.get('otherReason').invalid && submitted}\"\n id=\"other-reason\" name=\"other-reason\" rows=\"5\" aria-describedby=\"reason-3-label\" formControlName=\"otherReason\"></textarea>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n Submit\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class='govuk-body' (click)=\"onCancel()\" href=\"javascript:void(0)\">\n Cancel\n </a>\n </p>\n </div>\n </div>\n</form>\n"
|
|
63527
|
+
|
|
63528
|
+
/***/ }),
|
|
63529
|
+
|
|
63530
|
+
/***/ 96603:
|
|
63531
|
+
/***/ ((module) => {
|
|
63532
|
+
|
|
63533
|
+
module.exports = "<div class=\"govuk-width-container\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Access successful<br><br>\n <div class=\"govuk-panel__body\">\n Case reference:<br>\n {{caseId}}\n </div>\n </h1>\n </div>\n <h2 class=\"govuk-heading-m \">What happens next</h2>\n <p class=\"govuk-body\">\n You can access this case file until midnight tonight.\n </p>\n <p class=\"govuk-body\">\n You'll need to request access again once this expires.\n </p>\n <p class=\"govuk-body\">\n Your request will be logged for auditing purposes.\n </p>\n <p class=\"govuk-body\"><a href=\"cases/case-details/{{caseId}}\">View case file</a>.</p>\n </div>\n </div>\n</div>\n"
|
|
63534
|
+
|
|
63535
|
+
/***/ }),
|
|
63536
|
+
|
|
62314
63537
|
/***/ 13949:
|
|
62315
63538
|
/***/ ((module) => {
|
|
62316
63539
|
|
|
@@ -62318,6 +63541,13 @@ module.exports = "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-ac
|
|
|
62318
63541
|
|
|
62319
63542
|
/***/ }),
|
|
62320
63543
|
|
|
63544
|
+
/***/ 99839:
|
|
63545
|
+
/***/ ((module) => {
|
|
63546
|
+
|
|
63547
|
+
module.exports = "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The callback data failed validation\n </h2>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">Print</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\" [disableRipple]=\"true\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th>\n <div class=\"case-viewer-label text-16\">{{field.label}}</div>\n </th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"prependedTabs && prependedTabs.length\"></router-outlet>\n </ng-container>\n </div>\n</div>"
|
|
63548
|
+
|
|
63549
|
+
/***/ }),
|
|
63550
|
+
|
|
62321
63551
|
/***/ 24288:
|
|
62322
63552
|
/***/ ((module) => {
|
|
62323
63553
|
|
|
@@ -62328,7 +63558,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint
|
|
|
62328
63558
|
/***/ 67025:
|
|
62329
63559
|
/***/ ((module) => {
|
|
62330
63560
|
|
|
62331
|
-
module.exports = "<div *ngIf=\"isDataLoaded()\">\n
|
|
63561
|
+
module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\" [accessType]=\"userAccessType\" [caseDetails]=\"caseDetails\"></ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\" [caseDetails]=\"caseDetails\" [hasPrint]=\"hasPrint\" [hasEventSelector]=\"hasEventSelector\" [prependedTabs]=\"prependedTabs\"></ccd-case-full-access-view>\n</div>\n"
|
|
62332
63562
|
|
|
62333
63563
|
/***/ }),
|
|
62334
63564
|
|
|
@@ -62374,6 +63604,13 @@ module.exports = "\n<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"ca
|
|
|
62374
63604
|
|
|
62375
63605
|
/***/ }),
|
|
62376
63606
|
|
|
63607
|
+
/***/ 9350:
|
|
63608
|
+
/***/ ((module) => {
|
|
63609
|
+
|
|
63610
|
+
module.exports = "<!-- Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.html -->\n<ng-container *ngIf=\"error\">\n <div class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">{{error.title}}</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a routerLink=\".\" [fragment]=\"error.fieldId\">{{error.description}}</a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n"
|
|
63611
|
+
|
|
63612
|
+
/***/ }),
|
|
63613
|
+
|
|
62377
63614
|
/***/ 60206:
|
|
62378
63615
|
/***/ ((module) => {
|
|
62379
63616
|
|
|
@@ -62510,7 +63747,7 @@ module.exports = "<div class=\"form-group bottom-30\" [id]=\"id()\" [ngClass]=\"
|
|
|
62510
63747
|
/***/ 67330:
|
|
62511
63748
|
/***/ ((module) => {
|
|
62512
63749
|
|
|
62513
|
-
module.exports = "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel }}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{dateControl.errors | ccdFirstError:caseField.label}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">This date is older than the minimum date allowed</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">This date is later than the maximum date allowed</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n aria-label=\"Please enter a date and time in the format
|
|
63750
|
+
module.exports = "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel }}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{dateControl.errors | ccdFirstError:caseField.label}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">This date is older than the minimum date allowed</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">This date is later than the maximum date allowed</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n"
|
|
62514
63751
|
|
|
62515
63752
|
/***/ }),
|
|
62516
63753
|
|
|
@@ -63020,11 +64257,11 @@ function getStrategyDelay(consecutiveErrorsCount, options) {
|
|
|
63020
64257
|
|
|
63021
64258
|
/***/ }),
|
|
63022
64259
|
|
|
63023
|
-
/***/
|
|
64260
|
+
/***/ 73262:
|
|
63024
64261
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
63025
64262
|
|
|
63026
64263
|
|
|
63027
|
-
var result = __webpack_require__(
|
|
64264
|
+
var result = __webpack_require__(50378);
|
|
63028
64265
|
|
|
63029
64266
|
if (typeof result === "string") {
|
|
63030
64267
|
module.exports = result;
|
|
@@ -96193,6 +97430,14 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__17103__;
|
|
|
96193
97430
|
|
|
96194
97431
|
/***/ }),
|
|
96195
97432
|
|
|
97433
|
+
/***/ 18427:
|
|
97434
|
+
/***/ ((module) => {
|
|
97435
|
+
|
|
97436
|
+
"use strict";
|
|
97437
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__18427__;
|
|
97438
|
+
|
|
97439
|
+
/***/ }),
|
|
97440
|
+
|
|
96196
97441
|
/***/ 57208:
|
|
96197
97442
|
/***/ ((module) => {
|
|
96198
97443
|
|