@hmcts/ccd-case-ui-toolkit 6.13.10-case-file-view-display-document-upload-date-v4 → 6.13.10-case-file-view-sort-by-document-upload-date
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +735 -465
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +3 -3
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +3 -3
- package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +2 -1
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +2 -1
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
- package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +2 -1
- package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +11 -11
- package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +2 -1
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -3
- package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
- package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
- package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +6 -3
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +7 -6
- package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +221 -0
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +3 -2
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +2 -1
- package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
- package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
- package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
- package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
- package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
- package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +2 -1
- package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +3 -3
- package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
- package/esm2015/lib/shared/domain/case-details.model.js +2 -1
- package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.js +6 -0
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +40 -13
- package/esm2015/lib/shared/domain/case-file-view/index.js +3 -2
- package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
- package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/case-field.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
- package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
- package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
- package/esm2015/lib/shared/domain/index.js +10 -10
- package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
- package/esm2015/lib/shared/domain/search/field.model.js +1 -1
- package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
- package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
- package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
- package/esm2015/lib/shared/domain/search/sorting/sort-parameters.js +1 -1
- package/esm2015/lib/shared/domain/sort-order.enum.js +7 -0
- package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
- package/esm2015/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +12 -1
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -1
- package/esm2015/lib/shared/services/form/field-type-sanitiser.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +668 -402
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
- package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
- package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
- package/lib/shared/components/error/domain/error-context.d.ts +2 -2
- package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
- package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +2 -2
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +2 -2
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +3 -0
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +1 -0
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
- package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
- package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
- package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
- package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
- package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
- package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
- package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
- package/lib/shared/domain/case-details.model.d.ts.map +1 -1
- package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts +5 -0
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +3 -2
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/index.d.ts +2 -1
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
- package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
- package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +9 -9
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
- package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
- package/lib/shared/domain/search/field.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
- package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts.map +1 -1
- package/lib/shared/domain/{search/sorting/sort-order.d.ts → sort-order.enum.d.ts} +1 -1
- package/lib/shared/domain/sort-order.enum.d.ts.map +1 -0
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
- package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/complex/sort-order.js +0 -7
- package/esm2015/lib/shared/domain/search/sorting/sort-order.js +0 -7
- package/lib/shared/components/palette/complex/sort-order.d.ts +0 -6
- package/lib/shared/components/palette/complex/sort-order.d.ts.map +0 -1
- package/lib/shared/domain/search/sorting/sort-order.d.ts.map +0 -1
|
@@ -3294,6 +3294,7 @@
|
|
|
3294
3294
|
}], null, null);
|
|
3295
3295
|
})();
|
|
3296
3296
|
|
|
3297
|
+
// tslint:disable:variable-name
|
|
3297
3298
|
var AddressModel = /** @class */ (function () {
|
|
3298
3299
|
function AddressModel() {
|
|
3299
3300
|
this.AddressLine1 = '';
|
|
@@ -3313,6 +3314,20 @@
|
|
|
3313
3314
|
return Alert;
|
|
3314
3315
|
}());
|
|
3315
3316
|
|
|
3317
|
+
// tslint:disable:variable-name
|
|
3318
|
+
var CaseDetails = /** @class */ (function () {
|
|
3319
|
+
function CaseDetails() {
|
|
3320
|
+
}
|
|
3321
|
+
return CaseDetails;
|
|
3322
|
+
}());
|
|
3323
|
+
|
|
3324
|
+
// tslint:disable:variable-name
|
|
3325
|
+
var CaseEventData = /** @class */ (function () {
|
|
3326
|
+
function CaseEventData() {
|
|
3327
|
+
}
|
|
3328
|
+
return CaseEventData;
|
|
3329
|
+
}());
|
|
3330
|
+
|
|
3316
3331
|
var WizardPageField = /** @class */ (function () {
|
|
3317
3332
|
function WizardPageField() {
|
|
3318
3333
|
}
|
|
@@ -3604,6 +3619,7 @@
|
|
|
3604
3619
|
__metadata("design:type", Array)
|
|
3605
3620
|
], CaseEventTrigger.prototype, "wizard_pages", void 0);
|
|
3606
3621
|
|
|
3622
|
+
// tslint:disable:variable-name
|
|
3607
3623
|
var CaseViewEvent = /** @class */ (function () {
|
|
3608
3624
|
function CaseViewEvent() {
|
|
3609
3625
|
}
|
|
@@ -3648,6 +3664,7 @@
|
|
|
3648
3664
|
__metadata("design:type", Array)
|
|
3649
3665
|
], CaseType.prototype, "case_fields", void 0);
|
|
3650
3666
|
|
|
3667
|
+
// tslint:disable:variable-name
|
|
3651
3668
|
var EventCaseField = /** @class */ (function () {
|
|
3652
3669
|
function EventCaseField() {
|
|
3653
3670
|
}
|
|
@@ -3698,6 +3715,7 @@
|
|
|
3698
3715
|
return CasePrintDocument;
|
|
3699
3716
|
}());
|
|
3700
3717
|
|
|
3718
|
+
// tslint:disable:variable-name
|
|
3701
3719
|
var HRef = /** @class */ (function () {
|
|
3702
3720
|
function HRef() {
|
|
3703
3721
|
}
|
|
@@ -3729,6 +3747,20 @@
|
|
|
3729
3747
|
return FormDocument;
|
|
3730
3748
|
}());
|
|
3731
3749
|
|
|
3750
|
+
var DRAFT_PREFIX = 'DRAFT';
|
|
3751
|
+
var DRAFT_QUERY_PARAM = 'draft';
|
|
3752
|
+
var Draft = /** @class */ (function () {
|
|
3753
|
+
function Draft() {
|
|
3754
|
+
}
|
|
3755
|
+
Draft.stripDraftId = function (draftId) {
|
|
3756
|
+
return draftId.slice(DRAFT_PREFIX.length);
|
|
3757
|
+
};
|
|
3758
|
+
Draft.isDraft = function (id) {
|
|
3759
|
+
return String(id).startsWith(DRAFT_PREFIX);
|
|
3760
|
+
};
|
|
3761
|
+
return Draft;
|
|
3762
|
+
}());
|
|
3763
|
+
|
|
3732
3764
|
var OrganisationConverter = /** @class */ (function () {
|
|
3733
3765
|
function OrganisationConverter() {
|
|
3734
3766
|
}
|
|
@@ -3774,6 +3806,12 @@
|
|
|
3774
3806
|
}], null, null);
|
|
3775
3807
|
})();
|
|
3776
3808
|
|
|
3809
|
+
var PaginationMetadata = /** @class */ (function () {
|
|
3810
|
+
function PaginationMetadata() {
|
|
3811
|
+
}
|
|
3812
|
+
return PaginationMetadata;
|
|
3813
|
+
}());
|
|
3814
|
+
|
|
3777
3815
|
function hasRoles(profile) {
|
|
3778
3816
|
if (profile.user && profile.user.idam && Array.isArray(profile.user.idam.roles)) {
|
|
3779
3817
|
return profile.user.idam.roles.length > 0;
|
|
@@ -3832,20 +3870,6 @@
|
|
|
3832
3870
|
__metadata("design:type", Array)
|
|
3833
3871
|
], SearchResultViewItem.prototype, "hydrated_case_fields", void 0);
|
|
3834
3872
|
|
|
3835
|
-
var DRAFT_PREFIX = 'DRAFT';
|
|
3836
|
-
var DRAFT_QUERY_PARAM = 'draft';
|
|
3837
|
-
var Draft = /** @class */ (function () {
|
|
3838
|
-
function Draft() {
|
|
3839
|
-
}
|
|
3840
|
-
Draft.stripDraftId = function (draftId) {
|
|
3841
|
-
return draftId.slice(DRAFT_PREFIX.length);
|
|
3842
|
-
};
|
|
3843
|
-
Draft.isDraft = function (id) {
|
|
3844
|
-
return String(id).startsWith(DRAFT_PREFIX);
|
|
3845
|
-
};
|
|
3846
|
-
return Draft;
|
|
3847
|
-
}());
|
|
3848
|
-
|
|
3849
3873
|
// @dynamic
|
|
3850
3874
|
var SearchResultView = /** @class */ (function () {
|
|
3851
3875
|
function SearchResultView() {
|
|
@@ -3866,25 +3890,23 @@
|
|
|
3866
3890
|
__metadata("design:type", Array)
|
|
3867
3891
|
], SearchResultView.prototype, "results", void 0);
|
|
3868
3892
|
|
|
3869
|
-
var
|
|
3870
|
-
function
|
|
3893
|
+
var SortParameters = /** @class */ (function () {
|
|
3894
|
+
function SortParameters(comparator, sortOrder) {
|
|
3895
|
+
this.comparator = comparator;
|
|
3896
|
+
this.sortOrder = sortOrder;
|
|
3871
3897
|
}
|
|
3872
|
-
return
|
|
3898
|
+
return SortParameters;
|
|
3873
3899
|
}());
|
|
3874
3900
|
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3901
|
+
exports.SortOrder = void 0;
|
|
3902
|
+
(function (SortOrder) {
|
|
3903
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
3904
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
3905
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
3906
|
+
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
3880
3907
|
|
|
3881
3908
|
var WorkbasketInputModel = /** @class */ (function () {
|
|
3882
|
-
function WorkbasketInputModel(
|
|
3883
|
-
this.label = label;
|
|
3884
|
-
this.order = order;
|
|
3885
|
-
this.field = field;
|
|
3886
|
-
this.metadata = metadata;
|
|
3887
|
-
this.display_context_parameter = display_context_parameter;
|
|
3909
|
+
function WorkbasketInputModel() {
|
|
3888
3910
|
}
|
|
3889
3911
|
return WorkbasketInputModel;
|
|
3890
3912
|
}());
|
|
@@ -3894,27 +3916,6 @@
|
|
|
3894
3916
|
return WorkbasketInput;
|
|
3895
3917
|
}());
|
|
3896
3918
|
|
|
3897
|
-
var PaginationMetadata = /** @class */ (function () {
|
|
3898
|
-
function PaginationMetadata() {
|
|
3899
|
-
}
|
|
3900
|
-
return PaginationMetadata;
|
|
3901
|
-
}());
|
|
3902
|
-
|
|
3903
|
-
exports.SortOrder = void 0;
|
|
3904
|
-
(function (SortOrder) {
|
|
3905
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
3906
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
3907
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
3908
|
-
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
3909
|
-
|
|
3910
|
-
var SortParameters = /** @class */ (function () {
|
|
3911
|
-
function SortParameters(comparator, sortOrder) {
|
|
3912
|
-
this.comparator = comparator;
|
|
3913
|
-
this.sortOrder = sortOrder;
|
|
3914
|
-
}
|
|
3915
|
-
return SortParameters;
|
|
3916
|
-
}());
|
|
3917
|
-
|
|
3918
3919
|
// @dynamic
|
|
3919
3920
|
var FieldsUtils = /** @class */ (function () {
|
|
3920
3921
|
function FieldsUtils() {
|
|
@@ -4443,6 +4444,7 @@
|
|
|
4443
4444
|
var elements = (result[field.id] || field.value);
|
|
4444
4445
|
if (elements) {
|
|
4445
4446
|
elements.forEach(function (elem) {
|
|
4447
|
+
// tslint:disable-next-line:switch-default
|
|
4446
4448
|
switch (field.field_type.collection_field_type.type) {
|
|
4447
4449
|
case 'MoneyGBP': {
|
|
4448
4450
|
elem.value = FieldsUtils.getMoneyGBP(elem.value);
|
|
@@ -4529,6 +4531,7 @@
|
|
|
4529
4531
|
}, true);
|
|
4530
4532
|
};
|
|
4531
4533
|
ConditionParser.evaluateJoin = function (leftResult, comparator, rightResult) {
|
|
4534
|
+
// tslint:disable-next-line:switch-default
|
|
4532
4535
|
switch (comparator) {
|
|
4533
4536
|
case 'OR': return leftResult || rightResult;
|
|
4534
4537
|
case 'AND': return leftResult && rightResult;
|
|
@@ -4618,8 +4621,7 @@
|
|
|
4618
4621
|
}
|
|
4619
4622
|
};
|
|
4620
4623
|
ConditionParser.unquoted = function (str) {
|
|
4621
|
-
|
|
4622
|
-
return res;
|
|
4624
|
+
return str.replace(/^"|"$/g, '');
|
|
4623
4625
|
};
|
|
4624
4626
|
ConditionParser.findValueForComplexCondition = function (fields, head, tail, path) {
|
|
4625
4627
|
if (!fields) {
|
|
@@ -4813,6 +4815,7 @@
|
|
|
4813
4815
|
}
|
|
4814
4816
|
// Consider what type of field this is.
|
|
4815
4817
|
var ft = caseField.field_type;
|
|
4818
|
+
// tslint:disable-next-line:switch-default
|
|
4816
4819
|
switch (ft.type) {
|
|
4817
4820
|
case 'Collection':
|
|
4818
4821
|
if (ft.collection_field_type.type === 'Complex' && ft.collection_field_type.complex_fields) {
|
|
@@ -5642,6 +5645,7 @@
|
|
|
5642
5645
|
return;
|
|
5643
5646
|
}
|
|
5644
5647
|
caseFields.forEach(function (caseField) {
|
|
5648
|
+
// tslint:disable-next-line:switch-default
|
|
5645
5649
|
switch (caseField.field_type.type) {
|
|
5646
5650
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
|
|
5647
5651
|
_this.convertArrayToDynamicListOutput(caseField, data);
|
|
@@ -7028,6 +7032,227 @@
|
|
|
7028
7032
|
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
7029
7033
|
})();
|
|
7030
7034
|
|
|
7035
|
+
var categoriesAndDocumentsTestData = {
|
|
7036
|
+
case_version: 1,
|
|
7037
|
+
categories: [
|
|
7038
|
+
{
|
|
7039
|
+
category_id: 'Beers',
|
|
7040
|
+
category_name: 'Beers',
|
|
7041
|
+
category_order: 1,
|
|
7042
|
+
documents: [
|
|
7043
|
+
{
|
|
7044
|
+
document_url: '/test',
|
|
7045
|
+
document_filename: 'Lager encyclopedia',
|
|
7046
|
+
document_binary_url: '/test/binary',
|
|
7047
|
+
attribute_path: '',
|
|
7048
|
+
upload_timestamp: new Date(2023, 4, 11)
|
|
7049
|
+
},
|
|
7050
|
+
{
|
|
7051
|
+
document_url: '/test',
|
|
7052
|
+
document_filename: 'Beers encyclopedia',
|
|
7053
|
+
document_binary_url: '/test/binary',
|
|
7054
|
+
attribute_path: '',
|
|
7055
|
+
upload_timestamp: new Date(2023, 3, 14)
|
|
7056
|
+
},
|
|
7057
|
+
{
|
|
7058
|
+
document_url: '/test',
|
|
7059
|
+
document_filename: 'Ale encyclopedia',
|
|
7060
|
+
document_binary_url: '/test/binary',
|
|
7061
|
+
attribute_path: '',
|
|
7062
|
+
upload_timestamp: new Date(2023, 2, 12)
|
|
7063
|
+
}
|
|
7064
|
+
],
|
|
7065
|
+
sub_categories: [
|
|
7066
|
+
{
|
|
7067
|
+
category_id: 'BeersBitters',
|
|
7068
|
+
category_name: 'Bitters',
|
|
7069
|
+
category_order: 1,
|
|
7070
|
+
documents: [],
|
|
7071
|
+
sub_categories: []
|
|
7072
|
+
},
|
|
7073
|
+
{
|
|
7074
|
+
category_id: 'BeersAmerican',
|
|
7075
|
+
category_name: 'American',
|
|
7076
|
+
category_order: 2,
|
|
7077
|
+
documents: [],
|
|
7078
|
+
sub_categories: []
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
category_id: 'BeersAsian',
|
|
7082
|
+
category_name: 'Asian',
|
|
7083
|
+
category_order: 3,
|
|
7084
|
+
documents: [],
|
|
7085
|
+
sub_categories: []
|
|
7086
|
+
}
|
|
7087
|
+
]
|
|
7088
|
+
},
|
|
7089
|
+
{
|
|
7090
|
+
category_id: 'Wines',
|
|
7091
|
+
category_name: 'Wines',
|
|
7092
|
+
category_order: 2,
|
|
7093
|
+
documents: [],
|
|
7094
|
+
sub_categories: [
|
|
7095
|
+
{
|
|
7096
|
+
category_id: 'WinesFrench',
|
|
7097
|
+
category_name: 'French',
|
|
7098
|
+
category_order: 1,
|
|
7099
|
+
documents: [],
|
|
7100
|
+
sub_categories: []
|
|
7101
|
+
},
|
|
7102
|
+
{
|
|
7103
|
+
category_id: 'WinesItalian',
|
|
7104
|
+
category_name: 'Italian',
|
|
7105
|
+
category_order: 2,
|
|
7106
|
+
documents: [
|
|
7107
|
+
{
|
|
7108
|
+
document_url: '/red-wine',
|
|
7109
|
+
document_filename: 'Details about red wine',
|
|
7110
|
+
document_binary_url: '/test/binary',
|
|
7111
|
+
attribute_path: '',
|
|
7112
|
+
upload_timestamp: null
|
|
7113
|
+
},
|
|
7114
|
+
{
|
|
7115
|
+
document_url: '/white-wine',
|
|
7116
|
+
document_filename: 'Details about white wine',
|
|
7117
|
+
document_binary_url: '/test/binary',
|
|
7118
|
+
attribute_path: '',
|
|
7119
|
+
upload_timestamp: new Date(2023, 1, 10)
|
|
7120
|
+
},
|
|
7121
|
+
{
|
|
7122
|
+
document_url: '/prosecco',
|
|
7123
|
+
document_filename: 'Details about Prosecco',
|
|
7124
|
+
document_binary_url: '/test/binary',
|
|
7125
|
+
attribute_path: '',
|
|
7126
|
+
upload_timestamp: new Date(2023, 3, 12)
|
|
7127
|
+
},
|
|
7128
|
+
{
|
|
7129
|
+
document_url: '/pinot-grigio',
|
|
7130
|
+
document_filename: 'Details about Pinot Grigio',
|
|
7131
|
+
document_binary_url: '/test/binary',
|
|
7132
|
+
attribute_path: '',
|
|
7133
|
+
upload_timestamp: new Date(2023, 2, 16)
|
|
7134
|
+
}
|
|
7135
|
+
],
|
|
7136
|
+
sub_categories: []
|
|
7137
|
+
}
|
|
7138
|
+
]
|
|
7139
|
+
},
|
|
7140
|
+
{
|
|
7141
|
+
category_id: 'Spirits',
|
|
7142
|
+
category_name: 'Spirits',
|
|
7143
|
+
category_order: 3,
|
|
7144
|
+
documents: [],
|
|
7145
|
+
sub_categories: [
|
|
7146
|
+
{
|
|
7147
|
+
category_id: 'SpiritsWhisky',
|
|
7148
|
+
category_name: 'Scotch whisky',
|
|
7149
|
+
category_order: 1,
|
|
7150
|
+
documents: [],
|
|
7151
|
+
sub_categories: [
|
|
7152
|
+
{
|
|
7153
|
+
category_id: 'WhiskyHighland',
|
|
7154
|
+
category_name: 'Highland',
|
|
7155
|
+
category_order: 1,
|
|
7156
|
+
documents: [],
|
|
7157
|
+
sub_categories: [
|
|
7158
|
+
{
|
|
7159
|
+
category_id: 'WhiskyHighland1',
|
|
7160
|
+
category_name: 'Highland 1',
|
|
7161
|
+
category_order: 1,
|
|
7162
|
+
documents: [],
|
|
7163
|
+
sub_categories: []
|
|
7164
|
+
}
|
|
7165
|
+
]
|
|
7166
|
+
},
|
|
7167
|
+
{
|
|
7168
|
+
category_id: 'WhiskyLowland',
|
|
7169
|
+
category_name: 'Lowland',
|
|
7170
|
+
category_order: 2,
|
|
7171
|
+
documents: [],
|
|
7172
|
+
sub_categories: [
|
|
7173
|
+
{
|
|
7174
|
+
category_id: 'WhiskyLowland1',
|
|
7175
|
+
category_name: 'Lowland 1',
|
|
7176
|
+
category_order: 1,
|
|
7177
|
+
documents: [
|
|
7178
|
+
{
|
|
7179
|
+
document_url: '/test',
|
|
7180
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
7181
|
+
document_binary_url: '/test/binary',
|
|
7182
|
+
attribute_path: '',
|
|
7183
|
+
upload_timestamp: new Date(2022, 5, 21)
|
|
7184
|
+
}
|
|
7185
|
+
],
|
|
7186
|
+
sub_categories: []
|
|
7187
|
+
},
|
|
7188
|
+
{
|
|
7189
|
+
category_id: 'WhiskyLowland2',
|
|
7190
|
+
category_name: 'Lowland 2',
|
|
7191
|
+
category_order: 2,
|
|
7192
|
+
documents: [],
|
|
7193
|
+
sub_categories: []
|
|
7194
|
+
}
|
|
7195
|
+
]
|
|
7196
|
+
},
|
|
7197
|
+
{
|
|
7198
|
+
category_id: 'WhiskyIslay',
|
|
7199
|
+
category_name: 'Islay',
|
|
7200
|
+
category_order: 3,
|
|
7201
|
+
documents: [
|
|
7202
|
+
{
|
|
7203
|
+
document_url: '/test',
|
|
7204
|
+
document_filename: 'Details about Whisky Islay',
|
|
7205
|
+
document_binary_url: '/test/binary',
|
|
7206
|
+
attribute_path: '',
|
|
7207
|
+
upload_timestamp: new Date(2022, 10, 4)
|
|
7208
|
+
},
|
|
7209
|
+
{
|
|
7210
|
+
document_url: '/test',
|
|
7211
|
+
document_filename: 'More information about Whisky Islay',
|
|
7212
|
+
document_binary_url: '/test/binary',
|
|
7213
|
+
attribute_path: '',
|
|
7214
|
+
upload_timestamp: new Date(2022, 11, 28)
|
|
7215
|
+
}
|
|
7216
|
+
],
|
|
7217
|
+
sub_categories: []
|
|
7218
|
+
},
|
|
7219
|
+
{
|
|
7220
|
+
category_id: 'WhiskySpeyside',
|
|
7221
|
+
category_name: 'Speyside',
|
|
7222
|
+
category_order: 4,
|
|
7223
|
+
documents: [],
|
|
7224
|
+
sub_categories: []
|
|
7225
|
+
},
|
|
7226
|
+
{
|
|
7227
|
+
category_id: 'WhiskyCampbeltown',
|
|
7228
|
+
category_name: 'Campbeltown',
|
|
7229
|
+
category_order: 5,
|
|
7230
|
+
documents: [],
|
|
7231
|
+
sub_categories: []
|
|
7232
|
+
}
|
|
7233
|
+
]
|
|
7234
|
+
}
|
|
7235
|
+
]
|
|
7236
|
+
}
|
|
7237
|
+
],
|
|
7238
|
+
uncategorised_documents: [
|
|
7239
|
+
{
|
|
7240
|
+
document_url: '/uncategorised-document-1',
|
|
7241
|
+
document_filename: 'Uncategorised document 1',
|
|
7242
|
+
document_binary_url: '/test/binary',
|
|
7243
|
+
attribute_path: '',
|
|
7244
|
+
upload_timestamp: new Date(2022, 10, 17)
|
|
7245
|
+
},
|
|
7246
|
+
{
|
|
7247
|
+
document_url: '/uncategorised-document-2',
|
|
7248
|
+
document_filename: 'Uncategorised document 2',
|
|
7249
|
+
document_binary_url: '/test/binary',
|
|
7250
|
+
attribute_path: '',
|
|
7251
|
+
upload_timestamp: new Date(2023, 1, 23)
|
|
7252
|
+
}
|
|
7253
|
+
]
|
|
7254
|
+
};
|
|
7255
|
+
|
|
7031
7256
|
var CaseFileViewService = /** @class */ (function () {
|
|
7032
7257
|
function CaseFileViewService(http, appConfig) {
|
|
7033
7258
|
this.http = http;
|
|
@@ -7040,6 +7265,16 @@
|
|
|
7040
7265
|
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
7041
7266
|
*/
|
|
7042
7267
|
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
7268
|
+
// Case file view v1.1 epic - https://tools.hmcts.net/jira/browse/EUI-7807
|
|
7269
|
+
// Display upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7819
|
|
7270
|
+
// Sort by upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7812
|
|
7271
|
+
// The property upload_timestamp is not available as it is not yet implemented by CCD
|
|
7272
|
+
// Using this case reference '1666863124102280' to return the mock data with upload_timestamp
|
|
7273
|
+
// The below 'if' statement should be removed once the upload_timestamp property is made available by CCD
|
|
7274
|
+
// https://tools.hmcts.net/jira/browse/EUI-8129
|
|
7275
|
+
if (caseRef === '1666863124102280') {
|
|
7276
|
+
return rxjs.of(categoriesAndDocumentsTestData);
|
|
7277
|
+
}
|
|
7043
7278
|
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
7044
7279
|
if (url) {
|
|
7045
7280
|
url += "/" + caseRef;
|
|
@@ -8290,31 +8525,31 @@
|
|
|
8290
8525
|
};
|
|
8291
8526
|
WizardPageFieldToCaseFieldMapper.prototype.processComplexFieldOverride = function (override, caseField, caseFields) {
|
|
8292
8527
|
var caseFieldIds = override.complex_field_element_id.split('.');
|
|
8293
|
-
var
|
|
8528
|
+
var caseFieldLeaf;
|
|
8294
8529
|
var children = this.getCaseFieldChildren(caseField);
|
|
8295
8530
|
if (children.length > 0) {
|
|
8296
8531
|
var _a = __read(caseFieldIds), _ = _a[0], tail = _a.slice(1);
|
|
8297
|
-
|
|
8532
|
+
caseFieldLeaf = this.getCaseFieldLeaf(tail, children);
|
|
8298
8533
|
}
|
|
8299
8534
|
else {
|
|
8300
|
-
|
|
8535
|
+
caseFieldLeaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
|
|
8301
8536
|
}
|
|
8302
8537
|
if (override.display_context !== 'HIDDEN') {
|
|
8303
|
-
|
|
8304
|
-
|
|
8538
|
+
caseFieldLeaf.hidden = false;
|
|
8539
|
+
caseFieldLeaf.display_context = override.display_context;
|
|
8305
8540
|
if (override.label && override.label.length > 0) {
|
|
8306
|
-
|
|
8541
|
+
caseFieldLeaf.label = override.label;
|
|
8307
8542
|
}
|
|
8308
8543
|
if (override.hint_text && override.hint_text.length > 0) {
|
|
8309
|
-
|
|
8544
|
+
caseFieldLeaf.hint_text = override.hint_text;
|
|
8310
8545
|
}
|
|
8311
8546
|
if (override.show_condition && override.show_condition.length > 0) {
|
|
8312
|
-
|
|
8547
|
+
caseFieldLeaf.show_condition = override.show_condition;
|
|
8313
8548
|
}
|
|
8314
8549
|
}
|
|
8315
8550
|
else {
|
|
8316
|
-
|
|
8317
|
-
|
|
8551
|
+
caseFieldLeaf.hidden = true;
|
|
8552
|
+
caseFieldLeaf.display_context = override.display_context;
|
|
8318
8553
|
}
|
|
8319
8554
|
};
|
|
8320
8555
|
WizardPageFieldToCaseFieldMapper.prototype.fixShowConditionPath = function (caseField, pathPrefix) {
|
|
@@ -10566,8 +10801,8 @@
|
|
|
10566
10801
|
}
|
|
10567
10802
|
};
|
|
10568
10803
|
CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
10569
|
-
this.ignoreWarning = errorContext.
|
|
10570
|
-
this.triggerText = errorContext.
|
|
10804
|
+
this.ignoreWarning = errorContext.ignoreWarning;
|
|
10805
|
+
this.triggerText = errorContext.triggerText;
|
|
10571
10806
|
};
|
|
10572
10807
|
CaseEditPageComponent.prototype.next = function () {
|
|
10573
10808
|
this.resetErrors();
|
|
@@ -10913,12 +11148,12 @@
|
|
|
10913
11148
|
CallbackErrorsComponent.prototype.buildCallbackErrorsContext = function () {
|
|
10914
11149
|
var errorContext = new CallbackErrorsContext();
|
|
10915
11150
|
if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
|
|
10916
|
-
errorContext.
|
|
10917
|
-
errorContext.
|
|
11151
|
+
errorContext.ignoreWarning = true;
|
|
11152
|
+
errorContext.triggerText = this.triggerTextIgnore;
|
|
10918
11153
|
}
|
|
10919
11154
|
else {
|
|
10920
|
-
errorContext.
|
|
10921
|
-
errorContext.
|
|
11155
|
+
errorContext.ignoreWarning = false;
|
|
11156
|
+
errorContext.triggerText = this.triggerTextContinue;
|
|
10922
11157
|
}
|
|
10923
11158
|
return errorContext;
|
|
10924
11159
|
};
|
|
@@ -12743,7 +12978,7 @@
|
|
|
12743
12978
|
}
|
|
12744
12979
|
};
|
|
12745
12980
|
WriteCollectionFieldComponent.prototype.buildCaseField = function (item, index, isNew) {
|
|
12746
|
-
var e_1,
|
|
12981
|
+
var e_1, _c;
|
|
12747
12982
|
if (isNew === void 0) { isNew = false; }
|
|
12748
12983
|
/**
|
|
12749
12984
|
* What follow is code that makes me want to go jump in the shower!
|
|
@@ -12779,8 +13014,8 @@
|
|
|
12779
13014
|
if (!value) {
|
|
12780
13015
|
value = new i2.FormGroup({});
|
|
12781
13016
|
try {
|
|
12782
|
-
for (var
|
|
12783
|
-
var key =
|
|
13017
|
+
for (var _d = __values(Object.keys(group.controls)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
13018
|
+
var key = _e.value;
|
|
12784
13019
|
value.addControl(key, group.get(key));
|
|
12785
13020
|
// DON'T remove the control for this key from the outer group or it
|
|
12786
13021
|
// goes awry. So DON'T uncomment the below line!
|
|
@@ -12790,7 +13025,7 @@
|
|
|
12790
13025
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
12791
13026
|
finally {
|
|
12792
13027
|
try {
|
|
12793
|
-
if (
|
|
13028
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
12794
13029
|
}
|
|
12795
13030
|
finally { if (e_1) throw e_1.error; }
|
|
12796
13031
|
}
|
|
@@ -12921,6 +13156,7 @@
|
|
|
12921
13156
|
this.formArray.removeAt(index);
|
|
12922
13157
|
};
|
|
12923
13158
|
WriteCollectionFieldComponent.prototype.resetIds = function (index) {
|
|
13159
|
+
var _a, _b;
|
|
12924
13160
|
for (var i = index; i < this.collItems.length; i++) {
|
|
12925
13161
|
var counter = i + 1;
|
|
12926
13162
|
if (this.collItems[i].index && this.collItems[i].index === counter) {
|
|
@@ -12935,8 +13171,7 @@
|
|
|
12935
13171
|
if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
|
|
12936
13172
|
this.collItems[i].prefix = idPrefix1;
|
|
12937
13173
|
}
|
|
12938
|
-
var idPrefixAvailable = this.collItems[i].container
|
|
12939
|
-
&& this.collItems[i].container['component'].idPrefix ? true : false;
|
|
13174
|
+
var idPrefixAvailable = !!((_b = (_a = this.collItems[i].container) === null || _a === void 0 ? void 0 : _a['component']) === null || _b === void 0 ? void 0 : _b.idPrefix);
|
|
12940
13175
|
var idPrefix2 = idPrefixAvailable ?
|
|
12941
13176
|
this.collItems[i].container['component'].idPrefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
|
|
12942
13177
|
var idPrefix2current = idPrefix2.replace("_" + i.toString(), "_" + counter.toString());
|
|
@@ -14295,40 +14530,52 @@
|
|
|
14295
14530
|
}], null, null);
|
|
14296
14531
|
})();
|
|
14297
14532
|
|
|
14298
|
-
var
|
|
14299
|
-
function
|
|
14533
|
+
var FixedListPipe = /** @class */ (function () {
|
|
14534
|
+
function FixedListPipe() {
|
|
14300
14535
|
}
|
|
14301
|
-
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14307
|
-
|
|
14536
|
+
FixedListPipe.prototype.transform = function (value, items) {
|
|
14537
|
+
if (!!items) {
|
|
14538
|
+
var item = items.find(function (i) { return i.code === value; });
|
|
14539
|
+
return item ? item.label : FixedListPipe.EMPTY;
|
|
14540
|
+
}
|
|
14541
|
+
else {
|
|
14542
|
+
return FixedListPipe.EMPTY;
|
|
14308
14543
|
}
|
|
14309
|
-
var item = items.find(function (i) { return i.code === value; });
|
|
14310
|
-
return item ? item.label : DynamicRadioListPipe.EMPTY;
|
|
14311
14544
|
};
|
|
14312
|
-
return
|
|
14545
|
+
return FixedListPipe;
|
|
14313
14546
|
}());
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14547
|
+
FixedListPipe.EMPTY = '';
|
|
14548
|
+
FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
|
|
14549
|
+
FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
|
|
14317
14550
|
(function () {
|
|
14318
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
14551
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
|
|
14319
14552
|
type: i0.Pipe,
|
|
14320
14553
|
args: [{
|
|
14321
|
-
name: '
|
|
14554
|
+
name: 'ccdFixedList'
|
|
14322
14555
|
}]
|
|
14323
14556
|
}], null, null);
|
|
14324
14557
|
})();
|
|
14325
14558
|
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
|
|
14559
|
+
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
|
|
14560
|
+
if (rf & 1) {
|
|
14561
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
14562
|
+
i0__namespace.ɵɵtext(1);
|
|
14563
|
+
i0__namespace.ɵɵpipe(2, "ccdFixedList");
|
|
14564
|
+
i0__namespace.ɵɵelementEnd();
|
|
14565
|
+
}
|
|
14566
|
+
if (rf & 2) {
|
|
14567
|
+
var value_r1 = ctx.$implicit;
|
|
14568
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
14569
|
+
i0__namespace.ɵɵadvance(1);
|
|
14570
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
14571
|
+
}
|
|
14572
|
+
}
|
|
14573
|
+
var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
14574
|
+
__extends(ReadDynamicMultiSelectListFieldComponent, _super);
|
|
14575
|
+
function ReadDynamicMultiSelectListFieldComponent() {
|
|
14329
14576
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14330
14577
|
}
|
|
14331
|
-
|
|
14578
|
+
ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
14332
14579
|
/**
|
|
14333
14580
|
*
|
|
14334
14581
|
* Reassigning list_items from formatted_list when list_items is empty
|
|
@@ -14336,43 +14583,37 @@
|
|
|
14336
14583
|
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
14337
14584
|
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
14338
14585
|
}
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
* Seems formatted_value can also be empty for DynamicRadioList's. Reassigning list_items from value.list_items in that case
|
|
14342
|
-
*/
|
|
14343
|
-
if (!this.caseField.list_items && this.caseField.value && this.caseField.value.list_items) {
|
|
14344
|
-
this.caseField.list_items = this.caseField.value.list_items;
|
|
14586
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
14587
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
14345
14588
|
}
|
|
14589
|
+
_super.prototype.ngOnInit.call(this);
|
|
14346
14590
|
};
|
|
14347
|
-
return
|
|
14591
|
+
return ReadDynamicMultiSelectListFieldComponent;
|
|
14348
14592
|
}(AbstractFieldReadComponent));
|
|
14349
|
-
|
|
14350
|
-
|
|
14593
|
+
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
14594
|
+
ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
14351
14595
|
if (rf & 1) {
|
|
14352
|
-
i0__namespace.ɵɵ
|
|
14353
|
-
i0__namespace.ɵɵtext(1);
|
|
14354
|
-
i0__namespace.ɵɵpipe(2, "ccdDynamicRadioList");
|
|
14355
|
-
i0__namespace.ɵɵelementEnd();
|
|
14596
|
+
i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
|
|
14356
14597
|
}
|
|
14357
14598
|
if (rf & 2) {
|
|
14358
|
-
i0__namespace.ɵɵ
|
|
14359
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx.caseField.value, ctx.caseField.list_items));
|
|
14599
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
14360
14600
|
}
|
|
14361
|
-
}, pipes: [
|
|
14362
|
-
var ɵ
|
|
14601
|
+
}, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
|
|
14602
|
+
var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
14363
14603
|
(function () {
|
|
14364
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
14604
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
14365
14605
|
type: i0.Component,
|
|
14366
14606
|
args: [{
|
|
14367
|
-
selector: 'ccd-read-dynamic-
|
|
14368
|
-
|
|
14607
|
+
selector: 'ccd-read-dynamic-multi-select-list-field',
|
|
14608
|
+
templateUrl: './read-dynamic-multi-select-list-field.html',
|
|
14609
|
+
styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
|
|
14369
14610
|
}]
|
|
14370
14611
|
}], null, null);
|
|
14371
14612
|
})();
|
|
14372
14613
|
|
|
14373
|
-
function
|
|
14614
|
+
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
|
|
14374
14615
|
if (rf & 1) {
|
|
14375
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
14616
|
+
i0__namespace.ɵɵelementStart(0, "span", 5);
|
|
14376
14617
|
i0__namespace.ɵɵtext(1);
|
|
14377
14618
|
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
14378
14619
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -14383,9 +14624,9 @@
|
|
|
14383
14624
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14384
14625
|
}
|
|
14385
14626
|
}
|
|
14386
|
-
function
|
|
14627
|
+
function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
|
|
14387
14628
|
if (rf & 1) {
|
|
14388
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
14629
|
+
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
14389
14630
|
i0__namespace.ɵɵtext(1);
|
|
14390
14631
|
i0__namespace.ɵɵelementEnd();
|
|
14391
14632
|
}
|
|
@@ -14395,27 +14636,272 @@
|
|
|
14395
14636
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
14396
14637
|
}
|
|
14397
14638
|
}
|
|
14398
|
-
function
|
|
14639
|
+
function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
|
|
14399
14640
|
if (rf & 1) {
|
|
14400
14641
|
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
14401
|
-
i0__namespace.ɵɵtext(1, "Select an option below");
|
|
14402
|
-
i0__namespace.ɵɵelementEnd();
|
|
14403
|
-
}
|
|
14404
|
-
}
|
|
14405
|
-
function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) {
|
|
14406
|
-
if (rf & 1) {
|
|
14407
|
-
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
14408
14642
|
i0__namespace.ɵɵtext(1);
|
|
14409
14643
|
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
14410
14644
|
i0__namespace.ɵɵelementEnd();
|
|
14411
14645
|
}
|
|
14412
14646
|
if (rf & 2) {
|
|
14413
|
-
var
|
|
14647
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
14414
14648
|
i0__namespace.ɵɵadvance(1);
|
|
14415
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1,
|
|
14649
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
|
|
14416
14650
|
}
|
|
14417
14651
|
}
|
|
14418
|
-
|
|
14652
|
+
function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
|
|
14653
|
+
if (rf & 1) {
|
|
14654
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
14655
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
14656
|
+
i0__namespace.ɵɵelementStart(1, "div", 8);
|
|
14657
|
+
i0__namespace.ɵɵelementStart(2, "input", 9);
|
|
14658
|
+
i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
|
|
14659
|
+
i0__namespace.ɵɵelementEnd();
|
|
14660
|
+
i0__namespace.ɵɵelementStart(3, "label", 10);
|
|
14661
|
+
i0__namespace.ɵɵtext(4);
|
|
14662
|
+
i0__namespace.ɵɵelementEnd();
|
|
14663
|
+
i0__namespace.ɵɵelementEnd();
|
|
14664
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
14665
|
+
}
|
|
14666
|
+
if (rf & 2) {
|
|
14667
|
+
var checkbox_r4 = ctx.$implicit;
|
|
14668
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
14669
|
+
i0__namespace.ɵɵadvance(2);
|
|
14670
|
+
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
|
|
14671
|
+
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
|
|
14672
|
+
i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
|
|
14673
|
+
i0__namespace.ɵɵadvance(1);
|
|
14674
|
+
i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
14675
|
+
i0__namespace.ɵɵadvance(1);
|
|
14676
|
+
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
14677
|
+
}
|
|
14678
|
+
}
|
|
14679
|
+
var _c0$L = function (a0) { return { "error": a0 }; };
|
|
14680
|
+
var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
14681
|
+
__extends(WriteDynamicMultiSelectListFieldComponent, _super);
|
|
14682
|
+
function WriteDynamicMultiSelectListFieldComponent() {
|
|
14683
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14684
|
+
}
|
|
14685
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
14686
|
+
var _this = this;
|
|
14687
|
+
this.checkboxes = new i2.FormArray([]);
|
|
14688
|
+
this.setInitialCaseList();
|
|
14689
|
+
this.setInitialCaseFieldValue();
|
|
14690
|
+
// Initialise array with existing values
|
|
14691
|
+
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
14692
|
+
var values = this.caseField.value;
|
|
14693
|
+
values.forEach(function (value) {
|
|
14694
|
+
_this.checkboxes.push(new i2.FormControl(value));
|
|
14695
|
+
});
|
|
14696
|
+
}
|
|
14697
|
+
this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
|
|
14698
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
14699
|
+
};
|
|
14700
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
|
|
14701
|
+
var _this = this;
|
|
14702
|
+
var target = event.target;
|
|
14703
|
+
if (!target || !target.value) {
|
|
14704
|
+
return;
|
|
14705
|
+
}
|
|
14706
|
+
var selectedListItem = this.getValueListItem(target.value);
|
|
14707
|
+
if (!this.isSelected(target.value)) {
|
|
14708
|
+
// Add a new control in the FormArray
|
|
14709
|
+
this.checkboxes.push(new i2.FormControl(selectedListItem));
|
|
14710
|
+
}
|
|
14711
|
+
else {
|
|
14712
|
+
// Remove the control from the FormArray
|
|
14713
|
+
this.checkboxes.controls.forEach(function (ctrl, i) {
|
|
14714
|
+
if (ctrl.value.code === target.value) {
|
|
14715
|
+
_this.checkboxes.removeAt(i);
|
|
14716
|
+
}
|
|
14717
|
+
});
|
|
14718
|
+
}
|
|
14719
|
+
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
14720
|
+
};
|
|
14721
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
|
|
14722
|
+
if (this.checkboxes && this.checkboxes.controls) {
|
|
14723
|
+
return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
|
|
14724
|
+
}
|
|
14725
|
+
};
|
|
14726
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
|
|
14727
|
+
return this.caseField.list_items.find(function (i) { return i.code === value; });
|
|
14728
|
+
};
|
|
14729
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
|
|
14730
|
+
var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
|
|
14731
|
+
var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
|
|
14732
|
+
if (!hasListItems && hasFormattedListItems) {
|
|
14733
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
14734
|
+
}
|
|
14735
|
+
};
|
|
14736
|
+
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
|
|
14737
|
+
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
14738
|
+
this.caseField.value = this.caseField.formatted_value.value;
|
|
14739
|
+
}
|
|
14740
|
+
var isNull = this.caseField.value === undefined || this.caseField.value === '';
|
|
14741
|
+
if (isNull || !Array.isArray(this.caseField.value)) {
|
|
14742
|
+
this.caseField.value = [];
|
|
14743
|
+
}
|
|
14744
|
+
};
|
|
14745
|
+
return WriteDynamicMultiSelectListFieldComponent;
|
|
14746
|
+
}(AbstractFieldWriteComponent));
|
|
14747
|
+
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
14748
|
+
WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
14749
|
+
if (rf & 1) {
|
|
14750
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
14751
|
+
i0__namespace.ɵɵelementStart(1, "fieldset");
|
|
14752
|
+
i0__namespace.ɵɵelementStart(2, "legend");
|
|
14753
|
+
i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
14754
|
+
i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
14755
|
+
i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
14756
|
+
i0__namespace.ɵɵelementEnd();
|
|
14757
|
+
i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
14758
|
+
i0__namespace.ɵɵelementEnd();
|
|
14759
|
+
i0__namespace.ɵɵelementEnd();
|
|
14760
|
+
}
|
|
14761
|
+
if (rf & 2) {
|
|
14762
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
14763
|
+
i0__namespace.ɵɵadvance(3);
|
|
14764
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14765
|
+
i0__namespace.ɵɵadvance(1);
|
|
14766
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
14767
|
+
i0__namespace.ɵɵadvance(1);
|
|
14768
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
|
|
14769
|
+
i0__namespace.ɵɵadvance(1);
|
|
14770
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
14771
|
+
}
|
|
14772
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14773
|
+
var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
14774
|
+
(function () {
|
|
14775
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
14776
|
+
type: i0.Component,
|
|
14777
|
+
args: [{
|
|
14778
|
+
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
14779
|
+
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
14780
|
+
}]
|
|
14781
|
+
}], null, null);
|
|
14782
|
+
})();
|
|
14783
|
+
|
|
14784
|
+
var DynamicRadioListPipe = /** @class */ (function () {
|
|
14785
|
+
function DynamicRadioListPipe() {
|
|
14786
|
+
}
|
|
14787
|
+
DynamicRadioListPipe.prototype.transform = function (value, items) {
|
|
14788
|
+
/**
|
|
14789
|
+
*
|
|
14790
|
+
* If value is object with element `value.code`, use code instead.
|
|
14791
|
+
*/
|
|
14792
|
+
if (value && value.value && value.value.code) {
|
|
14793
|
+
value = value.value.code;
|
|
14794
|
+
}
|
|
14795
|
+
var item = items.find(function (i) { return i.code === value; });
|
|
14796
|
+
return item ? item.label : DynamicRadioListPipe.EMPTY;
|
|
14797
|
+
};
|
|
14798
|
+
return DynamicRadioListPipe;
|
|
14799
|
+
}());
|
|
14800
|
+
DynamicRadioListPipe.EMPTY = '';
|
|
14801
|
+
DynamicRadioListPipe.ɵfac = function DynamicRadioListPipe_Factory(t) { return new (t || DynamicRadioListPipe)(); };
|
|
14802
|
+
DynamicRadioListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdDynamicRadioList", type: DynamicRadioListPipe, pure: true });
|
|
14803
|
+
(function () {
|
|
14804
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DynamicRadioListPipe, [{
|
|
14805
|
+
type: i0.Pipe,
|
|
14806
|
+
args: [{
|
|
14807
|
+
name: 'ccdDynamicRadioList'
|
|
14808
|
+
}]
|
|
14809
|
+
}], null, null);
|
|
14810
|
+
})();
|
|
14811
|
+
|
|
14812
|
+
var ReadDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
14813
|
+
__extends(ReadDynamicRadioListFieldComponent, _super);
|
|
14814
|
+
function ReadDynamicRadioListFieldComponent() {
|
|
14815
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14816
|
+
}
|
|
14817
|
+
ReadDynamicRadioListFieldComponent.prototype.ngOnInit = function () {
|
|
14818
|
+
/**
|
|
14819
|
+
*
|
|
14820
|
+
* Reassigning list_items from formatted_list when list_items is empty
|
|
14821
|
+
*/
|
|
14822
|
+
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
14823
|
+
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
14824
|
+
}
|
|
14825
|
+
/**
|
|
14826
|
+
*
|
|
14827
|
+
* Seems formatted_value can also be empty for DynamicRadioList's. Reassigning list_items from value.list_items in that case
|
|
14828
|
+
*/
|
|
14829
|
+
if (!this.caseField.list_items && this.caseField.value && this.caseField.value.list_items) {
|
|
14830
|
+
this.caseField.list_items = this.caseField.value.list_items;
|
|
14831
|
+
}
|
|
14832
|
+
};
|
|
14833
|
+
return ReadDynamicRadioListFieldComponent;
|
|
14834
|
+
}(AbstractFieldReadComponent));
|
|
14835
|
+
ReadDynamicRadioListFieldComponent.ɵfac = function ReadDynamicRadioListFieldComponent_Factory(t) { return ɵReadDynamicRadioListFieldComponent_BaseFactory(t || ReadDynamicRadioListFieldComponent); };
|
|
14836
|
+
ReadDynamicRadioListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicRadioListFieldComponent, selectors: [["ccd-read-dynamic-radio-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 4, consts: [[1, "text-16"]], template: function ReadDynamicRadioListFieldComponent_Template(rf, ctx) {
|
|
14837
|
+
if (rf & 1) {
|
|
14838
|
+
i0__namespace.ɵɵelementStart(0, "span", 0);
|
|
14839
|
+
i0__namespace.ɵɵtext(1);
|
|
14840
|
+
i0__namespace.ɵɵpipe(2, "ccdDynamicRadioList");
|
|
14841
|
+
i0__namespace.ɵɵelementEnd();
|
|
14842
|
+
}
|
|
14843
|
+
if (rf & 2) {
|
|
14844
|
+
i0__namespace.ɵɵadvance(1);
|
|
14845
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx.caseField.value, ctx.caseField.list_items));
|
|
14846
|
+
}
|
|
14847
|
+
}, pipes: [DynamicRadioListPipe], encapsulation: 2 });
|
|
14848
|
+
var ɵReadDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicRadioListFieldComponent);
|
|
14849
|
+
(function () {
|
|
14850
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicRadioListFieldComponent, [{
|
|
14851
|
+
type: i0.Component,
|
|
14852
|
+
args: [{
|
|
14853
|
+
selector: 'ccd-read-dynamic-radio-list-field',
|
|
14854
|
+
template: '<span class="text-16">{{caseField.value | ccdDynamicRadioList:caseField.list_items}}</span>',
|
|
14855
|
+
}]
|
|
14856
|
+
}], null, null);
|
|
14857
|
+
})();
|
|
14858
|
+
|
|
14859
|
+
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) {
|
|
14860
|
+
if (rf & 1) {
|
|
14861
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
14862
|
+
i0__namespace.ɵɵtext(1);
|
|
14863
|
+
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
14864
|
+
i0__namespace.ɵɵelementEnd();
|
|
14865
|
+
}
|
|
14866
|
+
if (rf & 2) {
|
|
14867
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
14868
|
+
i0__namespace.ɵɵadvance(1);
|
|
14869
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14870
|
+
}
|
|
14871
|
+
}
|
|
14872
|
+
function WriteDynamicRadioListFieldComponent_span_5_Template(rf, ctx) {
|
|
14873
|
+
if (rf & 1) {
|
|
14874
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
14875
|
+
i0__namespace.ɵɵtext(1);
|
|
14876
|
+
i0__namespace.ɵɵelementEnd();
|
|
14877
|
+
}
|
|
14878
|
+
if (rf & 2) {
|
|
14879
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
14880
|
+
i0__namespace.ɵɵadvance(1);
|
|
14881
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
14882
|
+
}
|
|
14883
|
+
}
|
|
14884
|
+
function WriteDynamicRadioListFieldComponent_span_6_Template(rf, ctx) {
|
|
14885
|
+
if (rf & 1) {
|
|
14886
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
14887
|
+
i0__namespace.ɵɵtext(1, "Select an option below");
|
|
14888
|
+
i0__namespace.ɵɵelementEnd();
|
|
14889
|
+
}
|
|
14890
|
+
}
|
|
14891
|
+
function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) {
|
|
14892
|
+
if (rf & 1) {
|
|
14893
|
+
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
14894
|
+
i0__namespace.ɵɵtext(1);
|
|
14895
|
+
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
14896
|
+
i0__namespace.ɵɵelementEnd();
|
|
14897
|
+
}
|
|
14898
|
+
if (rf & 2) {
|
|
14899
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
14900
|
+
i0__namespace.ɵɵadvance(1);
|
|
14901
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
14902
|
+
}
|
|
14903
|
+
}
|
|
14904
|
+
var _c0$K = function (a0) { return { selected: a0 }; };
|
|
14419
14905
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
14420
14906
|
if (rf & 1) {
|
|
14421
14907
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -14428,7 +14914,7 @@
|
|
|
14428
14914
|
if (rf & 2) {
|
|
14429
14915
|
var radioButton_r5 = ctx.$implicit;
|
|
14430
14916
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
14431
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
14917
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
14432
14918
|
i0__namespace.ɵɵadvance(1);
|
|
14433
14919
|
i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
14434
14920
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14592,7 +15078,7 @@
|
|
|
14592
15078
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
14593
15079
|
}
|
|
14594
15080
|
}
|
|
14595
|
-
var _c0$
|
|
15081
|
+
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
14596
15082
|
var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14597
15083
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
14598
15084
|
__extends(WriteEmailFieldComponent, _super);
|
|
@@ -14617,7 +15103,7 @@
|
|
|
14617
15103
|
i0__namespace.ɵɵelementEnd();
|
|
14618
15104
|
}
|
|
14619
15105
|
if (rf & 2) {
|
|
14620
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
15106
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
14621
15107
|
i0__namespace.ɵɵadvance(1);
|
|
14622
15108
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14623
15109
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14627,42 +15113,16 @@
|
|
|
14627
15113
|
i0__namespace.ɵɵadvance(1);
|
|
14628
15114
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
14629
15115
|
i0__namespace.ɵɵadvance(1);
|
|
14630
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
14631
|
-
}
|
|
14632
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14633
|
-
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
14634
|
-
(function () {
|
|
14635
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
14636
|
-
type: i0.Component,
|
|
14637
|
-
args: [{
|
|
14638
|
-
selector: 'ccd-write-email-field',
|
|
14639
|
-
templateUrl: 'write-email-field.html'
|
|
14640
|
-
}]
|
|
14641
|
-
}], null, null);
|
|
14642
|
-
})();
|
|
14643
|
-
|
|
14644
|
-
var FixedListPipe = /** @class */ (function () {
|
|
14645
|
-
function FixedListPipe() {
|
|
14646
|
-
}
|
|
14647
|
-
FixedListPipe.prototype.transform = function (value, items) {
|
|
14648
|
-
if (!!items) {
|
|
14649
|
-
var item = items.find(function (i) { return i.code === value; });
|
|
14650
|
-
return item ? item.label : FixedListPipe.EMPTY;
|
|
14651
|
-
}
|
|
14652
|
-
else {
|
|
14653
|
-
return FixedListPipe.EMPTY;
|
|
14654
|
-
}
|
|
14655
|
-
};
|
|
14656
|
-
return FixedListPipe;
|
|
14657
|
-
}());
|
|
14658
|
-
FixedListPipe.EMPTY = '';
|
|
14659
|
-
FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
|
|
14660
|
-
FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
|
|
15116
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15117
|
+
}
|
|
15118
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15119
|
+
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
14661
15120
|
(function () {
|
|
14662
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
14663
|
-
type: i0.
|
|
15121
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
15122
|
+
type: i0.Component,
|
|
14664
15123
|
args: [{
|
|
14665
|
-
|
|
15124
|
+
selector: 'ccd-write-email-field',
|
|
15125
|
+
templateUrl: 'write-email-field.html'
|
|
14666
15126
|
}]
|
|
14667
15127
|
}], null, null);
|
|
14668
15128
|
})();
|
|
@@ -14749,7 +15209,7 @@
|
|
|
14749
15209
|
i0__namespace.ɵɵtextInterpolate(type_r4.label);
|
|
14750
15210
|
}
|
|
14751
15211
|
}
|
|
14752
|
-
var _c0$
|
|
15212
|
+
var _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
14753
15213
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
14754
15214
|
__extends(WriteFixedListFieldComponent, _super);
|
|
14755
15215
|
function WriteFixedListFieldComponent() {
|
|
@@ -14798,7 +15258,7 @@
|
|
|
14798
15258
|
i0__namespace.ɵɵelementEnd();
|
|
14799
15259
|
}
|
|
14800
15260
|
if (rf & 2) {
|
|
14801
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15261
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
14802
15262
|
i0__namespace.ɵɵadvance(1);
|
|
14803
15263
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14804
15264
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14916,7 +15376,7 @@
|
|
|
14916
15376
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
14917
15377
|
}
|
|
14918
15378
|
}
|
|
14919
|
-
var _c0$
|
|
15379
|
+
var _c0$H = function (a0) { return { selected: a0 }; };
|
|
14920
15380
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
14921
15381
|
if (rf & 1) {
|
|
14922
15382
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -14929,7 +15389,7 @@
|
|
|
14929
15389
|
if (rf & 2) {
|
|
14930
15390
|
var radioButton_r4 = ctx.$implicit;
|
|
14931
15391
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
14932
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
15392
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
14933
15393
|
i0__namespace.ɵɵadvance(1);
|
|
14934
15394
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
14935
15395
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15099,7 +15559,7 @@
|
|
|
15099
15559
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
15100
15560
|
}
|
|
15101
15561
|
}
|
|
15102
|
-
var _c0$
|
|
15562
|
+
var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
15103
15563
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
|
|
15104
15564
|
if (rf & 1) {
|
|
15105
15565
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -15111,7 +15571,7 @@
|
|
|
15111
15571
|
if (rf & 2) {
|
|
15112
15572
|
var judicialUser_r5 = ctx.$implicit;
|
|
15113
15573
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15114
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
15574
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
15115
15575
|
i0__namespace.ɵɵadvance(1);
|
|
15116
15576
|
i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
15117
15577
|
}
|
|
@@ -15900,7 +16360,7 @@
|
|
|
15900
16360
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
15901
16361
|
}
|
|
15902
16362
|
}
|
|
15903
|
-
var _c0$
|
|
16363
|
+
var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
15904
16364
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
|
|
15905
16365
|
if (rf & 1) {
|
|
15906
16366
|
i0__namespace.ɵɵelementStart(0, "div", 35);
|
|
@@ -15918,7 +16378,7 @@
|
|
|
15918
16378
|
}
|
|
15919
16379
|
if (rf & 2) {
|
|
15920
16380
|
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
15921
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$
|
|
16381
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
|
|
15922
16382
|
i0__namespace.ɵɵadvance(3);
|
|
15923
16383
|
i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
15924
16384
|
}
|
|
@@ -15975,11 +16435,11 @@
|
|
|
15975
16435
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
15976
16436
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
15977
16437
|
i0__namespace.ɵɵadvance(1);
|
|
15978
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16438
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
|
|
15979
16439
|
i0__namespace.ɵɵadvance(3);
|
|
15980
16440
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
15981
16441
|
i0__namespace.ɵɵadvance(2);
|
|
15982
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
16442
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
|
|
15983
16443
|
i0__namespace.ɵɵadvance(5);
|
|
15984
16444
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
15985
16445
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -16413,7 +16873,7 @@
|
|
|
16413
16873
|
i0__namespace.ɵɵadvance(4);
|
|
16414
16874
|
i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
16415
16875
|
i0__namespace.ɵɵadvance(4);
|
|
16416
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
16876
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
|
|
16417
16877
|
i0__namespace.ɵɵadvance(1);
|
|
16418
16878
|
i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
16419
16879
|
i0__namespace.ɵɵadvance(18);
|
|
@@ -17097,7 +17557,7 @@
|
|
|
17097
17557
|
i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
17098
17558
|
}
|
|
17099
17559
|
}
|
|
17100
|
-
var _c0$
|
|
17560
|
+
var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
17101
17561
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
|
|
17102
17562
|
if (rf & 1) {
|
|
17103
17563
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
@@ -17109,7 +17569,7 @@
|
|
|
17109
17569
|
}
|
|
17110
17570
|
if (rf & 2) {
|
|
17111
17571
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
17112
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
17572
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
17113
17573
|
i0__namespace.ɵɵadvance(1);
|
|
17114
17574
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
17115
17575
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -17285,6 +17745,7 @@
|
|
|
17285
17745
|
}] });
|
|
17286
17746
|
})();
|
|
17287
17747
|
|
|
17748
|
+
// tslint:disable:variable-name
|
|
17288
17749
|
var LinkCaseReason = /** @class */ (function () {
|
|
17289
17750
|
function LinkCaseReason() {
|
|
17290
17751
|
}
|
|
@@ -18050,7 +18511,7 @@
|
|
|
18050
18511
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
18051
18512
|
}
|
|
18052
18513
|
}
|
|
18053
|
-
var _c0$
|
|
18514
|
+
var _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
18054
18515
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
18055
18516
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
18056
18517
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -18080,7 +18541,7 @@
|
|
|
18080
18541
|
i0__namespace.ɵɵelementEnd();
|
|
18081
18542
|
}
|
|
18082
18543
|
if (rf & 2) {
|
|
18083
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
18544
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
18084
18545
|
i0__namespace.ɵɵadvance(1);
|
|
18085
18546
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
18086
18547
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18228,7 +18689,7 @@
|
|
|
18228
18689
|
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
18229
18690
|
}
|
|
18230
18691
|
}
|
|
18231
|
-
var _c0$
|
|
18692
|
+
var _c0$C = function (a0) { return { "error": a0 }; };
|
|
18232
18693
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
18233
18694
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
18234
18695
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -18292,7 +18753,7 @@
|
|
|
18292
18753
|
i0__namespace.ɵɵelementEnd();
|
|
18293
18754
|
}
|
|
18294
18755
|
if (rf & 2) {
|
|
18295
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
18756
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
18296
18757
|
i0__namespace.ɵɵadvance(3);
|
|
18297
18758
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
18298
18759
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18383,7 +18844,7 @@
|
|
|
18383
18844
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
18384
18845
|
}
|
|
18385
18846
|
}
|
|
18386
|
-
var _c0$
|
|
18847
|
+
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
18387
18848
|
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18388
18849
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
18389
18850
|
__extends(WriteNumberFieldComponent, _super);
|
|
@@ -18408,7 +18869,7 @@
|
|
|
18408
18869
|
i0__namespace.ɵɵelementEnd();
|
|
18409
18870
|
}
|
|
18410
18871
|
if (rf & 2) {
|
|
18411
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
18872
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
18412
18873
|
i0__namespace.ɵɵadvance(1);
|
|
18413
18874
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
18414
18875
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18709,7 +19170,7 @@
|
|
|
18709
19170
|
i0__namespace.ɵɵelementEnd();
|
|
18710
19171
|
}
|
|
18711
19172
|
}
|
|
18712
|
-
var _c0$
|
|
19173
|
+
var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
|
|
18713
19174
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
|
|
18714
19175
|
if (rf & 1) {
|
|
18715
19176
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -18725,7 +19186,7 @@
|
|
|
18725
19186
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
18726
19187
|
var tmp_0_0 = null;
|
|
18727
19188
|
var tmp_2_0 = null;
|
|
18728
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
19189
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
18729
19190
|
i0__namespace.ɵɵadvance(2);
|
|
18730
19191
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
18731
19192
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19129,231 +19590,6 @@
|
|
|
19129
19590
|
}], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
|
|
19130
19591
|
})();
|
|
19131
19592
|
|
|
19132
|
-
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
|
|
19133
|
-
if (rf & 1) {
|
|
19134
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
19135
|
-
i0__namespace.ɵɵtext(1);
|
|
19136
|
-
i0__namespace.ɵɵpipe(2, "ccdFixedList");
|
|
19137
|
-
i0__namespace.ɵɵelementEnd();
|
|
19138
|
-
}
|
|
19139
|
-
if (rf & 2) {
|
|
19140
|
-
var value_r1 = ctx.$implicit;
|
|
19141
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19142
|
-
i0__namespace.ɵɵadvance(1);
|
|
19143
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
19144
|
-
}
|
|
19145
|
-
}
|
|
19146
|
-
var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
19147
|
-
__extends(ReadDynamicMultiSelectListFieldComponent, _super);
|
|
19148
|
-
function ReadDynamicMultiSelectListFieldComponent() {
|
|
19149
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19150
|
-
}
|
|
19151
|
-
ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
19152
|
-
/**
|
|
19153
|
-
*
|
|
19154
|
-
* Reassigning list_items from formatted_list when list_items is empty
|
|
19155
|
-
*/
|
|
19156
|
-
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
19157
|
-
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
19158
|
-
}
|
|
19159
|
-
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
19160
|
-
this.caseField.value = this.caseField.formatted_value.value;
|
|
19161
|
-
}
|
|
19162
|
-
_super.prototype.ngOnInit.call(this);
|
|
19163
|
-
};
|
|
19164
|
-
return ReadDynamicMultiSelectListFieldComponent;
|
|
19165
|
-
}(AbstractFieldReadComponent));
|
|
19166
|
-
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
19167
|
-
ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
19168
|
-
if (rf & 1) {
|
|
19169
|
-
i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
|
|
19170
|
-
}
|
|
19171
|
-
if (rf & 2) {
|
|
19172
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
19173
|
-
}
|
|
19174
|
-
}, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
|
|
19175
|
-
var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
19176
|
-
(function () {
|
|
19177
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
19178
|
-
type: i0.Component,
|
|
19179
|
-
args: [{
|
|
19180
|
-
selector: 'ccd-read-dynamic-multi-select-list-field',
|
|
19181
|
-
templateUrl: './read-dynamic-multi-select-list-field.html',
|
|
19182
|
-
styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
|
|
19183
|
-
}]
|
|
19184
|
-
}], null, null);
|
|
19185
|
-
})();
|
|
19186
|
-
|
|
19187
|
-
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
|
|
19188
|
-
if (rf & 1) {
|
|
19189
|
-
i0__namespace.ɵɵelementStart(0, "span", 5);
|
|
19190
|
-
i0__namespace.ɵɵtext(1);
|
|
19191
|
-
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
19192
|
-
i0__namespace.ɵɵelementEnd();
|
|
19193
|
-
}
|
|
19194
|
-
if (rf & 2) {
|
|
19195
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19196
|
-
i0__namespace.ɵɵadvance(1);
|
|
19197
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19198
|
-
}
|
|
19199
|
-
}
|
|
19200
|
-
function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
|
|
19201
|
-
if (rf & 1) {
|
|
19202
|
-
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
19203
|
-
i0__namespace.ɵɵtext(1);
|
|
19204
|
-
i0__namespace.ɵɵelementEnd();
|
|
19205
|
-
}
|
|
19206
|
-
if (rf & 2) {
|
|
19207
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
19208
|
-
i0__namespace.ɵɵadvance(1);
|
|
19209
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
19210
|
-
}
|
|
19211
|
-
}
|
|
19212
|
-
function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
|
|
19213
|
-
if (rf & 1) {
|
|
19214
|
-
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
19215
|
-
i0__namespace.ɵɵtext(1);
|
|
19216
|
-
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
19217
|
-
i0__namespace.ɵɵelementEnd();
|
|
19218
|
-
}
|
|
19219
|
-
if (rf & 2) {
|
|
19220
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
19221
|
-
i0__namespace.ɵɵadvance(1);
|
|
19222
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
|
|
19223
|
-
}
|
|
19224
|
-
}
|
|
19225
|
-
function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
|
|
19226
|
-
if (rf & 1) {
|
|
19227
|
-
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19228
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
19229
|
-
i0__namespace.ɵɵelementStart(1, "div", 8);
|
|
19230
|
-
i0__namespace.ɵɵelementStart(2, "input", 9);
|
|
19231
|
-
i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
|
|
19232
|
-
i0__namespace.ɵɵelementEnd();
|
|
19233
|
-
i0__namespace.ɵɵelementStart(3, "label", 10);
|
|
19234
|
-
i0__namespace.ɵɵtext(4);
|
|
19235
|
-
i0__namespace.ɵɵelementEnd();
|
|
19236
|
-
i0__namespace.ɵɵelementEnd();
|
|
19237
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19238
|
-
}
|
|
19239
|
-
if (rf & 2) {
|
|
19240
|
-
var checkbox_r4 = ctx.$implicit;
|
|
19241
|
-
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
19242
|
-
i0__namespace.ɵɵadvance(2);
|
|
19243
|
-
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
|
|
19244
|
-
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
|
|
19245
|
-
i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
|
|
19246
|
-
i0__namespace.ɵɵadvance(1);
|
|
19247
|
-
i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
19248
|
-
i0__namespace.ɵɵadvance(1);
|
|
19249
|
-
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
19250
|
-
}
|
|
19251
|
-
}
|
|
19252
|
-
var _c0$A = function (a0) { return { "error": a0 }; };
|
|
19253
|
-
var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
19254
|
-
__extends(WriteDynamicMultiSelectListFieldComponent, _super);
|
|
19255
|
-
function WriteDynamicMultiSelectListFieldComponent() {
|
|
19256
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19257
|
-
}
|
|
19258
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
19259
|
-
var _this = this;
|
|
19260
|
-
this.checkboxes = new i2.FormArray([]);
|
|
19261
|
-
this.setInitialCaseList();
|
|
19262
|
-
this.setInitialCaseFieldValue();
|
|
19263
|
-
// Initialise array with existing values
|
|
19264
|
-
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
19265
|
-
var values = this.caseField.value;
|
|
19266
|
-
values.forEach(function (value) {
|
|
19267
|
-
_this.checkboxes.push(new i2.FormControl(value));
|
|
19268
|
-
});
|
|
19269
|
-
}
|
|
19270
|
-
this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
|
|
19271
|
-
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
19272
|
-
};
|
|
19273
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
|
|
19274
|
-
var _this = this;
|
|
19275
|
-
var target = event.target;
|
|
19276
|
-
if (!target || !target.value) {
|
|
19277
|
-
return;
|
|
19278
|
-
}
|
|
19279
|
-
var selectedListItem = this.getValueListItem(target.value);
|
|
19280
|
-
if (!this.isSelected(target.value)) {
|
|
19281
|
-
// Add a new control in the FormArray
|
|
19282
|
-
this.checkboxes.push(new i2.FormControl(selectedListItem));
|
|
19283
|
-
}
|
|
19284
|
-
else {
|
|
19285
|
-
// Remove the control from the FormArray
|
|
19286
|
-
this.checkboxes.controls.forEach(function (ctrl, i) {
|
|
19287
|
-
if (ctrl.value.code === target.value) {
|
|
19288
|
-
_this.checkboxes.removeAt(i);
|
|
19289
|
-
}
|
|
19290
|
-
});
|
|
19291
|
-
}
|
|
19292
|
-
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
19293
|
-
};
|
|
19294
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
|
|
19295
|
-
if (this.checkboxes && this.checkboxes.controls) {
|
|
19296
|
-
return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
|
|
19297
|
-
}
|
|
19298
|
-
};
|
|
19299
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
|
|
19300
|
-
return this.caseField.list_items.find(function (i) { return i.code === value; });
|
|
19301
|
-
};
|
|
19302
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
|
|
19303
|
-
var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
|
|
19304
|
-
var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
|
|
19305
|
-
if (!hasListItems && hasFormattedListItems) {
|
|
19306
|
-
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
19307
|
-
}
|
|
19308
|
-
};
|
|
19309
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
|
|
19310
|
-
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
19311
|
-
this.caseField.value = this.caseField.formatted_value.value;
|
|
19312
|
-
}
|
|
19313
|
-
var isNull = this.caseField.value === undefined || this.caseField.value === '';
|
|
19314
|
-
if (isNull || !Array.isArray(this.caseField.value)) {
|
|
19315
|
-
this.caseField.value = [];
|
|
19316
|
-
}
|
|
19317
|
-
};
|
|
19318
|
-
return WriteDynamicMultiSelectListFieldComponent;
|
|
19319
|
-
}(AbstractFieldWriteComponent));
|
|
19320
|
-
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
19321
|
-
WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
19322
|
-
if (rf & 1) {
|
|
19323
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19324
|
-
i0__namespace.ɵɵelementStart(1, "fieldset");
|
|
19325
|
-
i0__namespace.ɵɵelementStart(2, "legend");
|
|
19326
|
-
i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
19327
|
-
i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
19328
|
-
i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
19329
|
-
i0__namespace.ɵɵelementEnd();
|
|
19330
|
-
i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
19331
|
-
i0__namespace.ɵɵelementEnd();
|
|
19332
|
-
i0__namespace.ɵɵelementEnd();
|
|
19333
|
-
}
|
|
19334
|
-
if (rf & 2) {
|
|
19335
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
19336
|
-
i0__namespace.ɵɵadvance(3);
|
|
19337
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
19338
|
-
i0__namespace.ɵɵadvance(1);
|
|
19339
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
19340
|
-
i0__namespace.ɵɵadvance(1);
|
|
19341
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
|
|
19342
|
-
i0__namespace.ɵɵadvance(1);
|
|
19343
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
19344
|
-
}
|
|
19345
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
19346
|
-
var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
19347
|
-
(function () {
|
|
19348
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
19349
|
-
type: i0.Component,
|
|
19350
|
-
args: [{
|
|
19351
|
-
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
19352
|
-
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
19353
|
-
}]
|
|
19354
|
-
}], null, null);
|
|
19355
|
-
})();
|
|
19356
|
-
|
|
19357
19593
|
var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
19358
19594
|
__extends(ReadPhoneUKFieldComponent, _super);
|
|
19359
19595
|
function ReadPhoneUKFieldComponent() {
|
|
@@ -19794,6 +20030,7 @@
|
|
|
19794
20030
|
return YesNoService.EMPTY;
|
|
19795
20031
|
};
|
|
19796
20032
|
YesNoService.prototype.isYes = function (value) {
|
|
20033
|
+
// tslint:disable-next-line:switch-default
|
|
19797
20034
|
switch (typeof (value)) {
|
|
19798
20035
|
case 'boolean':
|
|
19799
20036
|
return value;
|
|
@@ -19803,6 +20040,7 @@
|
|
|
19803
20040
|
return false;
|
|
19804
20041
|
};
|
|
19805
20042
|
YesNoService.prototype.isNo = function (value) {
|
|
20043
|
+
// tslint:disable-next-line:switch-default
|
|
19806
20044
|
switch (typeof (value)) {
|
|
19807
20045
|
case 'boolean':
|
|
19808
20046
|
return !value;
|
|
@@ -20728,6 +20966,12 @@
|
|
|
20728
20966
|
}] });
|
|
20729
20967
|
})();
|
|
20730
20968
|
|
|
20969
|
+
var CaseFileViewSortColumns;
|
|
20970
|
+
(function (CaseFileViewSortColumns) {
|
|
20971
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
20972
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
20973
|
+
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
20974
|
+
|
|
20731
20975
|
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
20732
20976
|
function CaseFileViewFolderSortComponent() {
|
|
20733
20977
|
var _this = this;
|
|
@@ -20735,8 +20979,10 @@
|
|
|
20735
20979
|
this.sortAscending = new i0.EventEmitter();
|
|
20736
20980
|
this.sortDescending = new i0.EventEmitter();
|
|
20737
20981
|
this.overlayMenuItems = [
|
|
20738
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
20739
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
20982
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
20983
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
20984
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
20985
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
20740
20986
|
];
|
|
20741
20987
|
}
|
|
20742
20988
|
return CaseFileViewFolderSortComponent;
|
|
@@ -20776,6 +21022,7 @@
|
|
|
20776
21022
|
return CaseFileViewCategory;
|
|
20777
21023
|
}());
|
|
20778
21024
|
|
|
21025
|
+
// tslint:disable:variable-name
|
|
20779
21026
|
var CaseFileViewDocument = /** @class */ (function () {
|
|
20780
21027
|
function CaseFileViewDocument() {
|
|
20781
21028
|
}
|
|
@@ -20819,48 +21066,56 @@
|
|
|
20819
21066
|
enumerable: false,
|
|
20820
21067
|
configurable: true
|
|
20821
21068
|
});
|
|
20822
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
21069
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function (column, sortOrder) {
|
|
21070
|
+
var _this = this;
|
|
20823
21071
|
var _a, _b;
|
|
20824
21072
|
var sortAscending = function () {
|
|
20825
21073
|
return function (a, b) {
|
|
20826
|
-
var
|
|
20827
|
-
var
|
|
21074
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
21075
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
20828
21076
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
20829
21077
|
return 0;
|
|
20830
21078
|
}
|
|
20831
|
-
if (
|
|
21079
|
+
if (!nodeA || !nodeB) {
|
|
21080
|
+
return 0;
|
|
21081
|
+
}
|
|
21082
|
+
if (nodeA < nodeB) {
|
|
20832
21083
|
return -1;
|
|
20833
21084
|
}
|
|
20834
|
-
if (
|
|
21085
|
+
if (nodeA > nodeB) {
|
|
20835
21086
|
return 1;
|
|
20836
21087
|
}
|
|
20837
21088
|
};
|
|
20838
21089
|
};
|
|
20839
21090
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
20840
21091
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
20841
|
-
childNodes.sortChildrenAscending();
|
|
21092
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
20842
21093
|
});
|
|
20843
21094
|
};
|
|
20844
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
21095
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function (column, sortOrder) {
|
|
21096
|
+
var _this = this;
|
|
20845
21097
|
var _a, _b;
|
|
20846
21098
|
var sortDescending = function () {
|
|
20847
21099
|
return function (a, b) {
|
|
20848
|
-
var
|
|
20849
|
-
var
|
|
21100
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
21101
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
20850
21102
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
20851
21103
|
return 0;
|
|
20852
21104
|
}
|
|
20853
|
-
if (
|
|
21105
|
+
if (!nodeA || !nodeB) {
|
|
21106
|
+
return 0;
|
|
21107
|
+
}
|
|
21108
|
+
if (nodeA > nodeB) {
|
|
20854
21109
|
return -1;
|
|
20855
21110
|
}
|
|
20856
|
-
if (
|
|
21111
|
+
if (nodeA < nodeB) {
|
|
20857
21112
|
return 1;
|
|
20858
21113
|
}
|
|
20859
21114
|
};
|
|
20860
21115
|
};
|
|
20861
21116
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
20862
21117
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
20863
|
-
childNodes.sortChildrenDescending();
|
|
21118
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
20864
21119
|
});
|
|
20865
21120
|
};
|
|
20866
21121
|
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
@@ -20886,6 +21141,24 @@
|
|
|
20886
21141
|
enumerable: false,
|
|
20887
21142
|
configurable: true
|
|
20888
21143
|
});
|
|
21144
|
+
DocumentTreeNode.prototype.getNodeToSort = function (node, column, sortOrder) {
|
|
21145
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
21146
|
+
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
21147
|
+
: '';
|
|
21148
|
+
}
|
|
21149
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
21150
|
+
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
21151
|
+
return new Date(node.upload_timestamp);
|
|
21152
|
+
}
|
|
21153
|
+
if (sortOrder === exports.SortOrder.ASCENDING) {
|
|
21154
|
+
return new Date(9999, 12, 31);
|
|
21155
|
+
}
|
|
21156
|
+
if (sortOrder === exports.SortOrder.DESCENDING) {
|
|
21157
|
+
return new Date(1111, 1, 1);
|
|
21158
|
+
}
|
|
21159
|
+
}
|
|
21160
|
+
return '';
|
|
21161
|
+
};
|
|
20889
21162
|
return DocumentTreeNode;
|
|
20890
21163
|
}());
|
|
20891
21164
|
__decorate([
|
|
@@ -21146,16 +21419,16 @@
|
|
|
21146
21419
|
return;
|
|
21147
21420
|
}
|
|
21148
21421
|
};
|
|
21149
|
-
CaseFileViewFolderComponent.prototype.
|
|
21422
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscending = function (column) {
|
|
21150
21423
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
21151
|
-
item.sortChildrenAscending();
|
|
21424
|
+
item.sortChildrenAscending(column, exports.SortOrder.ASCENDING);
|
|
21152
21425
|
return item;
|
|
21153
21426
|
});
|
|
21154
21427
|
this.updateNodeData(sortedData);
|
|
21155
21428
|
};
|
|
21156
|
-
CaseFileViewFolderComponent.prototype.
|
|
21429
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescending = function (column) {
|
|
21157
21430
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
21158
|
-
item.sortChildrenDescending();
|
|
21431
|
+
item.sortChildrenDescending(column, exports.SortOrder.DESCENDING);
|
|
21159
21432
|
return item;
|
|
21160
21433
|
});
|
|
21161
21434
|
this.updateNodeData(sortedData);
|
|
@@ -21229,7 +21502,7 @@
|
|
|
21229
21502
|
i0__namespace.ɵɵelementEnd();
|
|
21230
21503
|
i0__namespace.ɵɵelementStart(6, "div");
|
|
21231
21504
|
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
21232
|
-
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.
|
|
21505
|
+
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener($event) { return ctx.sortDataSourceAscending($event); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener($event) { return ctx.sortDataSourceDescending($event); });
|
|
21233
21506
|
i0__namespace.ɵɵelementEnd();
|
|
21234
21507
|
i0__namespace.ɵɵelementEnd();
|
|
21235
21508
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23109,13 +23382,6 @@
|
|
|
23109
23382
|
}] });
|
|
23110
23383
|
})();
|
|
23111
23384
|
|
|
23112
|
-
var SortOrder;
|
|
23113
|
-
(function (SortOrder) {
|
|
23114
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
23115
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
23116
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
23117
|
-
})(SortOrder || (SortOrder = {}));
|
|
23118
|
-
|
|
23119
23385
|
function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) {
|
|
23120
23386
|
if (rf & 1) {
|
|
23121
23387
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -23386,7 +23652,7 @@
|
|
|
23386
23652
|
return _this;
|
|
23387
23653
|
}
|
|
23388
23654
|
ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
|
|
23389
|
-
return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
|
|
23655
|
+
return !(column.sortOrder === exports.SortOrder.UNSORTED || column.sortOrder === exports.SortOrder.DESCENDING);
|
|
23390
23656
|
};
|
|
23391
23657
|
ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
|
|
23392
23658
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -23444,18 +23710,19 @@
|
|
|
23444
23710
|
});
|
|
23445
23711
|
};
|
|
23446
23712
|
ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
|
|
23447
|
-
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
23448
|
-
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
23713
|
+
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.UNSORTED
|
|
23714
|
+
|| this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.DESCENDING;
|
|
23715
|
+
// tslint:disable-next-line:switch-default
|
|
23449
23716
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
23450
23717
|
case 'Number':
|
|
23451
23718
|
case 'MoneyGBP': {
|
|
23452
23719
|
if (shouldSortInAscendingOrder) {
|
|
23453
23720
|
this.rows.sort(function (a, b) { return a[column] - b[column]; });
|
|
23454
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
23721
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
23455
23722
|
}
|
|
23456
23723
|
else {
|
|
23457
23724
|
this.rows.sort(function (a, b) { return b[column] - a[column]; });
|
|
23458
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
23725
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
23459
23726
|
}
|
|
23460
23727
|
break;
|
|
23461
23728
|
}
|
|
@@ -23472,11 +23739,11 @@
|
|
|
23472
23739
|
{
|
|
23473
23740
|
if (shouldSortInAscendingOrder) {
|
|
23474
23741
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
|
|
23475
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
23742
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
23476
23743
|
}
|
|
23477
23744
|
else {
|
|
23478
23745
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
|
|
23479
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
23746
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
23480
23747
|
}
|
|
23481
23748
|
}
|
|
23482
23749
|
break;
|
|
@@ -23492,7 +23759,7 @@
|
|
|
23492
23759
|
var id = _c.value;
|
|
23493
23760
|
var trimmedId = id.trim();
|
|
23494
23761
|
labelsHorizontal[trimmedId] = allLabels[trimmedId];
|
|
23495
|
-
labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
|
|
23762
|
+
labelsHorizontal[trimmedId].sortOrder = exports.SortOrder.UNSORTED;
|
|
23496
23763
|
delete labelsVertical[trimmedId];
|
|
23497
23764
|
}
|
|
23498
23765
|
}
|
|
@@ -24571,6 +24838,7 @@
|
|
|
24571
24838
|
return FeeValue;
|
|
24572
24839
|
}());
|
|
24573
24840
|
|
|
24841
|
+
// tslint:disable:variable-name
|
|
24574
24842
|
var Fee = /** @class */ (function () {
|
|
24575
24843
|
function Fee() {
|
|
24576
24844
|
}
|
|
@@ -25376,7 +25644,7 @@
|
|
|
25376
25644
|
}
|
|
25377
25645
|
return searchResults.sort(function (a, b) {
|
|
25378
25646
|
return sortParameters.comparator.compare(a, b)
|
|
25379
|
-
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
25647
|
+
* (sortParameters.sortOrder === exports.SortOrder.DESCENDING ? 1 : -1);
|
|
25380
25648
|
});
|
|
25381
25649
|
};
|
|
25382
25650
|
return SortSearchResultPipe;
|
|
@@ -26746,8 +27014,8 @@
|
|
|
26746
27014
|
this.caseEdit.navigateToPage(pageId);
|
|
26747
27015
|
};
|
|
26748
27016
|
CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
|
|
26749
|
-
this.ignoreWarning = errorContext.
|
|
26750
|
-
this.triggerText = errorContext.
|
|
27017
|
+
this.ignoreWarning = errorContext.ignoreWarning;
|
|
27018
|
+
this.triggerText = errorContext.triggerText;
|
|
26751
27019
|
};
|
|
26752
27020
|
CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
|
|
26753
27021
|
if (null === this.editForm.get('data').get(field.id)) {
|
|
@@ -27379,6 +27647,7 @@
|
|
|
27379
27647
|
{ provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
|
|
27380
27648
|
]
|
|
27381
27649
|
});
|
|
27650
|
+
// tslint:disable-next-line:switch-default
|
|
27382
27651
|
switch (portalType) {
|
|
27383
27652
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
27384
27653
|
this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
@@ -27913,36 +28182,36 @@
|
|
|
27913
28182
|
this.screenReaderCurrentLabel = "You're on page";
|
|
27914
28183
|
this.pageChange = new i0.EventEmitter();
|
|
27915
28184
|
this.pageBoundsCorrection = new i0.EventEmitter();
|
|
27916
|
-
this.
|
|
27917
|
-
this.
|
|
27918
|
-
this.
|
|
28185
|
+
this.pDirectionLinks = true;
|
|
28186
|
+
this.pAutoHide = false;
|
|
28187
|
+
this.pResponsive = false;
|
|
27919
28188
|
}
|
|
27920
28189
|
Object.defineProperty(PaginationComponent.prototype, "directionLinks", {
|
|
27921
28190
|
get: function () {
|
|
27922
|
-
return this.
|
|
28191
|
+
return this.pDirectionLinks;
|
|
27923
28192
|
},
|
|
27924
28193
|
set: function (value) {
|
|
27925
|
-
this.
|
|
28194
|
+
this.pDirectionLinks = coerceToBoolean(value);
|
|
27926
28195
|
},
|
|
27927
28196
|
enumerable: false,
|
|
27928
28197
|
configurable: true
|
|
27929
28198
|
});
|
|
27930
28199
|
Object.defineProperty(PaginationComponent.prototype, "autoHide", {
|
|
27931
28200
|
get: function () {
|
|
27932
|
-
return this.
|
|
28201
|
+
return this.pAutoHide;
|
|
27933
28202
|
},
|
|
27934
28203
|
set: function (value) {
|
|
27935
|
-
this.
|
|
28204
|
+
this.pAutoHide = coerceToBoolean(value);
|
|
27936
28205
|
},
|
|
27937
28206
|
enumerable: false,
|
|
27938
28207
|
configurable: true
|
|
27939
28208
|
});
|
|
27940
28209
|
Object.defineProperty(PaginationComponent.prototype, "responsive", {
|
|
27941
28210
|
get: function () {
|
|
27942
|
-
return this.
|
|
28211
|
+
return this.pResponsive;
|
|
27943
28212
|
},
|
|
27944
28213
|
set: function (value) {
|
|
27945
|
-
this.
|
|
28214
|
+
this.pResponsive = coerceToBoolean(value);
|
|
27946
28215
|
},
|
|
27947
28216
|
enumerable: false,
|
|
27948
28217
|
configurable: true
|
|
@@ -29890,7 +30159,7 @@
|
|
|
29890
30159
|
this.eventTrigger = this.route.snapshot.data.eventTrigger;
|
|
29891
30160
|
if (this.activityPollingService.isEnabled) {
|
|
29892
30161
|
this.ngZone.runOutsideAngular(function () {
|
|
29893
|
-
_this.activitySubscription = _this.postEditActivity().subscribe(function (
|
|
30162
|
+
_this.activitySubscription = _this.postEditActivity().subscribe(function () {
|
|
29894
30163
|
// console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
|
|
29895
30164
|
});
|
|
29896
30165
|
});
|
|
@@ -30862,8 +31131,8 @@
|
|
|
30862
31131
|
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
|
|
30863
31132
|
};
|
|
30864
31133
|
CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
|
|
30865
|
-
this.ignoreWarning = callbackErrorsContext.
|
|
30866
|
-
this.triggerText = callbackErrorsContext.
|
|
31134
|
+
this.ignoreWarning = callbackErrorsContext.ignoreWarning;
|
|
31135
|
+
this.triggerText = callbackErrorsContext.triggerText;
|
|
30867
31136
|
};
|
|
30868
31137
|
CaseFullAccessViewComponent.prototype.isDraft = function () {
|
|
30869
31138
|
return Draft.isDraft(this.caseDetails.case_id);
|
|
@@ -34501,7 +34770,7 @@
|
|
|
34501
34770
|
if (rf & 2) {
|
|
34502
34771
|
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
34503
34772
|
i0__namespace.ɵɵadvance(6);
|
|
34504
|
-
i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.
|
|
34773
|
+
i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.totalResultsCount), ". Only the first 10,000 records are available for display. ");
|
|
34505
34774
|
}
|
|
34506
34775
|
}
|
|
34507
34776
|
function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
|
|
@@ -35060,7 +35329,7 @@
|
|
|
35060
35329
|
};
|
|
35061
35330
|
Object.defineProperty(SearchResultComponent.prototype, "resultTotal", {
|
|
35062
35331
|
get: function () {
|
|
35063
|
-
var total = this.paginationMetadata.
|
|
35332
|
+
var total = this.paginationMetadata.totalResultsCount;
|
|
35064
35333
|
var maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
35065
35334
|
this.paginationLimitEnforced = maximumResultReached;
|
|
35066
35335
|
return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
@@ -35211,7 +35480,7 @@
|
|
|
35211
35480
|
return col;
|
|
35212
35481
|
};
|
|
35213
35482
|
SearchResultComponent.prototype.hasResults = function () {
|
|
35214
|
-
return this.resultView.results.length && this.paginationMetadata.
|
|
35483
|
+
return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
|
|
35215
35484
|
};
|
|
35216
35485
|
SearchResultComponent.prototype.hasDrafts = function () {
|
|
35217
35486
|
return this.resultView.hasDrafts();
|
|
@@ -35310,7 +35579,7 @@
|
|
|
35310
35579
|
return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
|
|
35311
35580
|
};
|
|
35312
35581
|
SearchResultComponent.prototype.getTotalResults = function () {
|
|
35313
|
-
var total = this.paginationMetadata.
|
|
35582
|
+
var total = this.paginationMetadata.totalResultsCount + this.draftsCount;
|
|
35314
35583
|
return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
35315
35584
|
};
|
|
35316
35585
|
SearchResultComponent.prototype.prepareCaseLinkUrl = function (caseId) {
|
|
@@ -35468,6 +35737,7 @@
|
|
|
35468
35737
|
})();
|
|
35469
35738
|
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
35470
35739
|
|
|
35740
|
+
// tslint:disable:variable-name
|
|
35471
35741
|
var ComplexFieldOverride = /** @class */ (function () {
|
|
35472
35742
|
function ComplexFieldOverride() {
|
|
35473
35743
|
}
|