@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-query-details-v4 → 6.16.0-query-management-raise-query-trigger
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 +1210 -1188
- 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/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +48 -41
- package/esm2015/lib/shared/components/palette/palette.module.js +7 -6
- package/esm2015/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/query-management/index.js +2 -1
- package/esm2015/lib/shared/domain/case-view/case-view-event-ids.enum.js +6 -0
- package/esm2015/lib/shared/domain/case-view/case-view-trigger.model.js +1 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +978 -967
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +5 -5
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/index.d.ts +1 -0
- package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
- package/lib/shared/domain/case-view/case-view-event-ids.enum.d.ts +5 -0
- package/lib/shared/domain/case-view/case-view-event-ids.enum.d.ts.map +1 -0
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts +0 -1
- package/lib/shared/domain/case-view/case-view-trigger.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3707,7 +3707,6 @@
|
|
|
3707
3707
|
}
|
|
3708
3708
|
return CaseViewTrigger;
|
|
3709
3709
|
}());
|
|
3710
|
-
CaseViewTrigger.DELETE = 'DELETE';
|
|
3711
3710
|
|
|
3712
3711
|
var CaseEvent = /** @class */ (function () {
|
|
3713
3712
|
function CaseEvent() {
|
|
@@ -20136,231 +20135,730 @@
|
|
|
20136
20135
|
}], null, null);
|
|
20137
20136
|
})();
|
|
20138
20137
|
|
|
20139
|
-
var
|
|
20140
|
-
{
|
|
20141
|
-
|
|
20142
|
-
|
|
20143
|
-
|
|
20144
|
-
|
|
20145
|
-
|
|
20146
|
-
|
|
20147
|
-
|
|
20148
|
-
|
|
20149
|
-
|
|
20150
|
-
|
|
20151
|
-
|
|
20152
|
-
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20158
|
-
|
|
20159
|
-
|
|
20160
|
-
|
|
20161
|
-
|
|
20162
|
-
|
|
20163
|
-
|
|
20164
|
-
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
|
|
20172
|
-
|
|
20173
|
-
|
|
20174
|
-
|
|
20175
|
-
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20179
|
-
isHearingRelated: true,
|
|
20180
|
-
hearingDate: '10 Jan 2023',
|
|
20181
|
-
createdOn: new Date(2023, 0, 4),
|
|
20182
|
-
createdBy: '2222-2222-2222-2222',
|
|
20183
|
-
parentId: 'case-message-002'
|
|
20138
|
+
var CcdCaseTitlePipe = /** @class */ (function () {
|
|
20139
|
+
function CcdCaseTitlePipe(placeholderService, fieldsUtils) {
|
|
20140
|
+
this.placeholderService = placeholderService;
|
|
20141
|
+
this.fieldsUtils = fieldsUtils;
|
|
20142
|
+
}
|
|
20143
|
+
CcdCaseTitlePipe.prototype.transform = function (caseTitle, caseFields, values) {
|
|
20144
|
+
var caseFieldValues = this.getReadOnlyAndFormFields(values, caseFields);
|
|
20145
|
+
var result = this.placeholderService.resolvePlaceholders(caseFieldValues, caseTitle);
|
|
20146
|
+
return result;
|
|
20147
|
+
};
|
|
20148
|
+
CcdCaseTitlePipe.prototype.getReadOnlyAndFormFields = function (formGroup, caseFields) {
|
|
20149
|
+
return this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(caseFields, formGroup.getRawValue());
|
|
20150
|
+
};
|
|
20151
|
+
return CcdCaseTitlePipe;
|
|
20152
|
+
}());
|
|
20153
|
+
CcdCaseTitlePipe.ɵfac = function CcdCaseTitlePipe_Factory(t) { return new (t || CcdCaseTitlePipe)(i0__namespace.ɵɵdirectiveInject(exports.PlaceholderService), i0__namespace.ɵɵdirectiveInject(FieldsUtils)); };
|
|
20154
|
+
CcdCaseTitlePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCaseTitle", type: CcdCaseTitlePipe, pure: true });
|
|
20155
|
+
(function () {
|
|
20156
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCaseTitlePipe, [{
|
|
20157
|
+
type: i0.Pipe,
|
|
20158
|
+
args: [{
|
|
20159
|
+
name: 'ccdCaseTitle'
|
|
20160
|
+
}]
|
|
20161
|
+
}], function () { return [{ type: exports.PlaceholderService }, { type: FieldsUtils }]; }, null);
|
|
20162
|
+
})();
|
|
20163
|
+
|
|
20164
|
+
var CcdCollectionTableCaseFieldsFilterPipe = /** @class */ (function () {
|
|
20165
|
+
function CcdCollectionTableCaseFieldsFilterPipe() {
|
|
20166
|
+
}
|
|
20167
|
+
CcdCollectionTableCaseFieldsFilterPipe.prototype.transform = function (objs, caseField, value) {
|
|
20168
|
+
var fields = objs.map(function (obj) { return (Object.assign(Object.assign({}, obj.value.caseField), { type: obj.value.type.type ? obj.value.type.type : obj.value.type })); });
|
|
20169
|
+
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
20170
|
+
id: caseField ? caseField.id : '',
|
|
20171
|
+
label: caseField ? caseField.label : '',
|
|
20172
|
+
display_context: 'READONLY',
|
|
20173
|
+
value: value,
|
|
20174
|
+
field_type: {
|
|
20175
|
+
id: caseField ? caseField.id : '',
|
|
20176
|
+
type: 'Complex',
|
|
20177
|
+
complex_fields: fields,
|
|
20184
20178
|
}
|
|
20185
|
-
|
|
20186
|
-
}
|
|
20187
|
-
|
|
20188
|
-
|
|
20189
|
-
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20211
|
-
{
|
|
20212
|
-
id: 'case-message-007',
|
|
20213
|
-
subject: 'Food',
|
|
20214
|
-
name: 'Maggie Conroy',
|
|
20215
|
-
body: 'Can I eat in the hearings?',
|
|
20216
|
-
attachments: [],
|
|
20217
|
-
isHearingRelated: true,
|
|
20218
|
-
hearingDate: '10 Jan 2023',
|
|
20219
|
-
createdOn: new Date(2023, 0, 3),
|
|
20220
|
-
createdBy: '1111-1111-1111-1111'
|
|
20221
|
-
},
|
|
20222
|
-
{
|
|
20223
|
-
id: 'case-message-008',
|
|
20224
|
-
name: 'Maggie Conroy',
|
|
20225
|
-
body: 'Consumption of food is not allowed when a hearing is taking place.',
|
|
20226
|
-
attachments: [],
|
|
20227
|
-
isHearingRelated: true,
|
|
20228
|
-
hearingDate: '10 Jan 2023',
|
|
20229
|
-
createdOn: new Date(2023, 0, 5),
|
|
20230
|
-
createdBy: '2222-2222-2222-2222',
|
|
20231
|
-
parentId: 'case-message-007'
|
|
20232
|
-
},
|
|
20233
|
-
{
|
|
20234
|
-
id: 'case-message-009',
|
|
20235
|
-
subject: 'Bring relatives',
|
|
20236
|
-
name: 'Maggie Conroy',
|
|
20237
|
-
body: 'Can I bring my grandma with me so she get out from the residence?',
|
|
20238
|
-
attachments: [],
|
|
20239
|
-
isHearingRelated: true,
|
|
20240
|
-
hearingDate: '10 Jan 2023',
|
|
20241
|
-
createdOn: new Date(2023, 0, 6),
|
|
20242
|
-
createdBy: '1111-1111-1111-1111'
|
|
20243
|
-
},
|
|
20244
|
-
{
|
|
20245
|
-
id: 'case-message-010',
|
|
20246
|
-
name: 'Maggie Conroy',
|
|
20247
|
-
body: 'Sorry, only those required for the hearing should be present inside the court room.',
|
|
20248
|
-
attachments: [],
|
|
20249
|
-
isHearingRelated: true,
|
|
20250
|
-
hearingDate: '10 Jan 2023',
|
|
20251
|
-
createdOn: new Date(2023, 0, 7),
|
|
20252
|
-
createdBy: '2222-2222-2222-2222',
|
|
20253
|
-
parentId: 'case-message-009'
|
|
20179
|
+
});
|
|
20180
|
+
};
|
|
20181
|
+
return CcdCollectionTableCaseFieldsFilterPipe;
|
|
20182
|
+
}());
|
|
20183
|
+
CcdCollectionTableCaseFieldsFilterPipe.ɵfac = function CcdCollectionTableCaseFieldsFilterPipe_Factory(t) { return new (t || CcdCollectionTableCaseFieldsFilterPipe)(); };
|
|
20184
|
+
CcdCollectionTableCaseFieldsFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCollectionTableCaseFieldsFilter", type: CcdCollectionTableCaseFieldsFilterPipe, pure: true });
|
|
20185
|
+
(function () {
|
|
20186
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCollectionTableCaseFieldsFilterPipe, [{
|
|
20187
|
+
type: i0.Pipe,
|
|
20188
|
+
args: [{
|
|
20189
|
+
name: 'ccdCollectionTableCaseFieldsFilter'
|
|
20190
|
+
}]
|
|
20191
|
+
}], null, null);
|
|
20192
|
+
})();
|
|
20193
|
+
|
|
20194
|
+
var CcdCYAPageLabelFilterPipe = /** @class */ (function () {
|
|
20195
|
+
function CcdCYAPageLabelFilterPipe() {
|
|
20196
|
+
this.getNonLabelComplexFieldType = function (complexFields) { return complexFields.filter(function (caseField) { return caseField.field_type.type !== 'Label'; }); };
|
|
20197
|
+
}
|
|
20198
|
+
CcdCYAPageLabelFilterPipe.prototype.transform = function (caseFields) {
|
|
20199
|
+
var _this = this;
|
|
20200
|
+
return caseFields.map(function (caseField) {
|
|
20201
|
+
if (caseField.field_type.collection_field_type &&
|
|
20202
|
+
caseField.field_type.collection_field_type.complex_fields &&
|
|
20203
|
+
caseField.field_type.collection_field_type.complex_fields.length) {
|
|
20204
|
+
caseField.field_type.collection_field_type.complex_fields = _this.transform(caseField.field_type.collection_field_type.complex_fields);
|
|
20254
20205
|
}
|
|
20255
|
-
|
|
20206
|
+
if (caseField.field_type.complex_fields && caseField.field_type.complex_fields.length) {
|
|
20207
|
+
caseField.field_type.complex_fields = _this.getNonLabelComplexFieldType(caseField.field_type.complex_fields);
|
|
20208
|
+
}
|
|
20209
|
+
return caseField;
|
|
20210
|
+
});
|
|
20211
|
+
};
|
|
20212
|
+
return CcdCYAPageLabelFilterPipe;
|
|
20213
|
+
}());
|
|
20214
|
+
CcdCYAPageLabelFilterPipe.ɵfac = function CcdCYAPageLabelFilterPipe_Factory(t) { return new (t || CcdCYAPageLabelFilterPipe)(); };
|
|
20215
|
+
CcdCYAPageLabelFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCYAPageLabelFilter", type: CcdCYAPageLabelFilterPipe, pure: true });
|
|
20216
|
+
(function () {
|
|
20217
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCYAPageLabelFilterPipe, [{
|
|
20218
|
+
type: i0.Pipe,
|
|
20219
|
+
args: [{
|
|
20220
|
+
name: 'ccdCYAPageLabelFilter'
|
|
20221
|
+
}]
|
|
20222
|
+
}], null, null);
|
|
20223
|
+
})();
|
|
20224
|
+
|
|
20225
|
+
var ReadFieldsFilterPipe = /** @class */ (function () {
|
|
20226
|
+
function ReadFieldsFilterPipe() {
|
|
20256
20227
|
}
|
|
20228
|
+
/**
|
|
20229
|
+
* Complex type should have at least on simple field descendant with a value.
|
|
20230
|
+
*/
|
|
20231
|
+
ReadFieldsFilterPipe.isValidComplex = function (field, values) {
|
|
20232
|
+
values = values || {};
|
|
20233
|
+
var type = field.field_type;
|
|
20234
|
+
var value = ReadFieldsFilterPipe.getValue(field, values);
|
|
20235
|
+
var hasChildrenWithValue = type.complex_fields.find(function (f) {
|
|
20236
|
+
var willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
|
|
20237
|
+
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, value).hidden !== true;
|
|
20238
|
+
});
|
|
20239
|
+
return !!hasChildrenWithValue;
|
|
20240
|
+
};
|
|
20241
|
+
ReadFieldsFilterPipe.isValidCollection = function (field, values) {
|
|
20242
|
+
// if field is collection and it has complex/collection child field; parent field doesnt have value defined
|
|
20243
|
+
if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
|
|
20244
|
+
return true;
|
|
20245
|
+
}
|
|
20246
|
+
var isNotEmpty = Array.isArray(field.value) && field.value.length > 0;
|
|
20247
|
+
if (isNotEmpty && field.field_type.collection_field_type.type === 'Complex') {
|
|
20248
|
+
return !!field.value.find(function (item) {
|
|
20249
|
+
var complexField = classTransformer.plainToClassFromExist(new CaseField(), {
|
|
20250
|
+
id: field.field_type.collection_field_type.id,
|
|
20251
|
+
field_type: field.field_type.collection_field_type,
|
|
20252
|
+
value: item.value,
|
|
20253
|
+
label: null,
|
|
20254
|
+
});
|
|
20255
|
+
return ReadFieldsFilterPipe.isValidComplex(complexField);
|
|
20256
|
+
});
|
|
20257
|
+
}
|
|
20258
|
+
return isNotEmpty;
|
|
20259
|
+
};
|
|
20260
|
+
ReadFieldsFilterPipe.isEmpty = function (value) {
|
|
20261
|
+
return ReadFieldsFilterPipe.EMPTY_VALUES.indexOf(value) !== -1
|
|
20262
|
+
|| value.length === 0;
|
|
20263
|
+
};
|
|
20264
|
+
ReadFieldsFilterPipe.isCompound = function (field) {
|
|
20265
|
+
return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
|
|
20266
|
+
};
|
|
20267
|
+
ReadFieldsFilterPipe.isValidCompound = function (field, value) {
|
|
20268
|
+
return ReadFieldsFilterPipe.isCompound(field)
|
|
20269
|
+
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
20270
|
+
};
|
|
20271
|
+
ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels) {
|
|
20272
|
+
if (ignoreLabels === void 0) { ignoreLabels = false; }
|
|
20273
|
+
// We shouldn't ditch labels.
|
|
20274
|
+
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
20275
|
+
return true;
|
|
20276
|
+
}
|
|
20277
|
+
// We also shouldn't ditch fields that will always come back with a null value.
|
|
20278
|
+
if (this.ALWAYS_NULL_FIELDS.indexOf(field.field_type.type) !== -1) {
|
|
20279
|
+
return true;
|
|
20280
|
+
}
|
|
20281
|
+
value = value || {};
|
|
20282
|
+
if (ReadFieldsFilterPipe.isCompound(field)) {
|
|
20283
|
+
return ReadFieldsFilterPipe.isValidCompound(field, value);
|
|
20284
|
+
}
|
|
20285
|
+
return !ReadFieldsFilterPipe.isEmpty(field.value)
|
|
20286
|
+
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
20287
|
+
};
|
|
20288
|
+
ReadFieldsFilterPipe.getValue = function (field, values, index) {
|
|
20289
|
+
if (ReadFieldsFilterPipe.isEmpty(field.value)) {
|
|
20290
|
+
var value = void 0;
|
|
20291
|
+
if (index >= 0) {
|
|
20292
|
+
value = values[index].value[field.id];
|
|
20293
|
+
}
|
|
20294
|
+
else {
|
|
20295
|
+
value = values[field.id];
|
|
20296
|
+
}
|
|
20297
|
+
return value;
|
|
20298
|
+
}
|
|
20299
|
+
return field.value;
|
|
20300
|
+
};
|
|
20301
|
+
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
|
|
20302
|
+
if (field.display_context === 'HIDDEN') {
|
|
20303
|
+
field.hidden = true;
|
|
20304
|
+
}
|
|
20305
|
+
else if (field.show_condition) {
|
|
20306
|
+
var cond = void 0;
|
|
20307
|
+
if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
20308
|
+
var search = fieldId + ".";
|
|
20309
|
+
var searchRegExp = new RegExp(search, 'g');
|
|
20310
|
+
var replaceWith = '';
|
|
20311
|
+
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|
|
20312
|
+
}
|
|
20313
|
+
else {
|
|
20314
|
+
cond = ShowCondition.getInstance(field.show_condition);
|
|
20315
|
+
}
|
|
20316
|
+
field.hidden = !cond.match(formValue, path);
|
|
20317
|
+
}
|
|
20318
|
+
else {
|
|
20319
|
+
field.hidden = false;
|
|
20320
|
+
}
|
|
20321
|
+
return field;
|
|
20322
|
+
};
|
|
20323
|
+
/**
|
|
20324
|
+
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
20325
|
+
*/
|
|
20326
|
+
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path) {
|
|
20327
|
+
if (setupHidden === void 0) { setupHidden = false; }
|
|
20328
|
+
if (!complexField || !complexField.field_type) {
|
|
20329
|
+
return [];
|
|
20330
|
+
}
|
|
20331
|
+
var fields = complexField.field_type.complex_fields || [];
|
|
20332
|
+
var values = complexField.value || {};
|
|
20333
|
+
var checkConditionalShowAgainst = values;
|
|
20334
|
+
var formGroupAvailable = false;
|
|
20335
|
+
if (formGroup) {
|
|
20336
|
+
checkConditionalShowAgainst = formGroup.value;
|
|
20337
|
+
formGroupAvailable = true;
|
|
20338
|
+
}
|
|
20339
|
+
return fields
|
|
20340
|
+
.map(function (f) {
|
|
20341
|
+
var clone = FieldsUtils.cloneObject(f);
|
|
20342
|
+
var value = ReadFieldsFilterPipe.getValue(f, values, index);
|
|
20343
|
+
if (!ReadFieldsFilterPipe.isEmpty(value)) {
|
|
20344
|
+
clone.value = value;
|
|
20345
|
+
}
|
|
20346
|
+
return clone;
|
|
20347
|
+
})
|
|
20348
|
+
.map(function (f) {
|
|
20349
|
+
if (!f.display_context) {
|
|
20350
|
+
f.display_context = complexField.display_context;
|
|
20351
|
+
}
|
|
20352
|
+
if (setupHidden) {
|
|
20353
|
+
ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst, path, formGroupAvailable, complexField.id);
|
|
20354
|
+
}
|
|
20355
|
+
return f;
|
|
20356
|
+
})
|
|
20357
|
+
.filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f); });
|
|
20358
|
+
};
|
|
20359
|
+
return ReadFieldsFilterPipe;
|
|
20360
|
+
}());
|
|
20361
|
+
ReadFieldsFilterPipe.EMPTY_VALUES = [
|
|
20362
|
+
undefined,
|
|
20363
|
+
null,
|
|
20364
|
+
'',
|
|
20365
|
+
{}
|
|
20257
20366
|
];
|
|
20367
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
|
|
20368
|
+
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
20369
|
+
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
20370
|
+
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
20371
|
+
};
|
|
20372
|
+
ReadFieldsFilterPipe.ɵfac = function ReadFieldsFilterPipe_Factory(t) { return new (t || ReadFieldsFilterPipe)(); };
|
|
20373
|
+
ReadFieldsFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdReadFieldsFilter", type: ReadFieldsFilterPipe, pure: true });
|
|
20374
|
+
(function () {
|
|
20375
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadFieldsFilterPipe, [{
|
|
20376
|
+
type: i0.Pipe,
|
|
20377
|
+
args: [{
|
|
20378
|
+
name: 'ccdReadFieldsFilter'
|
|
20379
|
+
}]
|
|
20380
|
+
}], null, null);
|
|
20381
|
+
})();
|
|
20258
20382
|
|
|
20259
|
-
var
|
|
20260
|
-
function
|
|
20383
|
+
var CcdTabFieldsPipe = /** @class */ (function () {
|
|
20384
|
+
function CcdTabFieldsPipe() {
|
|
20261
20385
|
}
|
|
20262
|
-
|
|
20386
|
+
CcdTabFieldsPipe.prototype.transform = function (tab) {
|
|
20387
|
+
var value = tab.fields.reduce(function (acc, field) {
|
|
20388
|
+
var _a;
|
|
20389
|
+
return Object.assign(Object.assign({}, acc), (_a = {}, _a[field.id] = field.value, _a));
|
|
20390
|
+
}, {});
|
|
20391
|
+
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
20392
|
+
id: tab.id,
|
|
20393
|
+
label: tab.label,
|
|
20394
|
+
display_context: 'READONLY',
|
|
20395
|
+
value: value,
|
|
20396
|
+
field_type: {
|
|
20397
|
+
id: tab.id,
|
|
20398
|
+
type: 'Complex',
|
|
20399
|
+
complex_fields: tab.fields
|
|
20400
|
+
}
|
|
20401
|
+
});
|
|
20263
20402
|
};
|
|
20264
|
-
return
|
|
20403
|
+
return CcdTabFieldsPipe;
|
|
20265
20404
|
}());
|
|
20266
|
-
|
|
20267
|
-
|
|
20405
|
+
CcdTabFieldsPipe.ɵfac = function CcdTabFieldsPipe_Factory(t) { return new (t || CcdTabFieldsPipe)(); };
|
|
20406
|
+
CcdTabFieldsPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTabFieldsPipe, pure: true });
|
|
20268
20407
|
(function () {
|
|
20269
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
20270
|
-
type: i0.
|
|
20408
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdTabFieldsPipe, [{
|
|
20409
|
+
type: i0.Pipe,
|
|
20410
|
+
args: [{
|
|
20411
|
+
name: 'ccdTabFields'
|
|
20412
|
+
}]
|
|
20271
20413
|
}], null, null);
|
|
20272
20414
|
})();
|
|
20273
20415
|
|
|
20274
|
-
function
|
|
20416
|
+
var CcdPageFieldsPipe = /** @class */ (function () {
|
|
20417
|
+
function CcdPageFieldsPipe() {
|
|
20418
|
+
}
|
|
20419
|
+
CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
|
|
20420
|
+
var complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
|
|
20421
|
+
var control = dataFormGroup.controls['data'].get(key);
|
|
20422
|
+
return control['caseField'];
|
|
20423
|
+
}).filter(function (field) {
|
|
20424
|
+
return !!page.case_fields.find(function (pcf) { return pcf.id === field.id; });
|
|
20425
|
+
}).sort(function (a, b) { return a.order - b.order; });
|
|
20426
|
+
var rawValue = dataFormGroup.value;
|
|
20427
|
+
var value = page.case_fields.reduce(function (acc, field) {
|
|
20428
|
+
var _a;
|
|
20429
|
+
var fieldValue = rawValue[field.id] || field.value;
|
|
20430
|
+
return Object.assign(Object.assign({}, acc), (_a = {}, _a[field.id] = fieldValue, _a));
|
|
20431
|
+
}, {});
|
|
20432
|
+
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
20433
|
+
id: page.id,
|
|
20434
|
+
label: page.label,
|
|
20435
|
+
display_context: 'READONLY',
|
|
20436
|
+
value: value,
|
|
20437
|
+
field_type: {
|
|
20438
|
+
id: page.id,
|
|
20439
|
+
type: 'Complex',
|
|
20440
|
+
complex_fields: complexFields
|
|
20441
|
+
}
|
|
20442
|
+
});
|
|
20443
|
+
};
|
|
20444
|
+
return CcdPageFieldsPipe;
|
|
20445
|
+
}());
|
|
20446
|
+
CcdPageFieldsPipe.ɵfac = function CcdPageFieldsPipe_Factory(t) { return new (t || CcdPageFieldsPipe)(); };
|
|
20447
|
+
CcdPageFieldsPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdPageFields", type: CcdPageFieldsPipe, pure: true });
|
|
20448
|
+
(function () {
|
|
20449
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdPageFieldsPipe, [{
|
|
20450
|
+
type: i0.Pipe,
|
|
20451
|
+
args: [{
|
|
20452
|
+
name: 'ccdPageFields'
|
|
20453
|
+
}]
|
|
20454
|
+
}], null, null);
|
|
20455
|
+
})();
|
|
20456
|
+
|
|
20457
|
+
var EnumDisplayDescriptionPipe = /** @class */ (function () {
|
|
20458
|
+
function EnumDisplayDescriptionPipe() {
|
|
20459
|
+
}
|
|
20460
|
+
EnumDisplayDescriptionPipe.prototype.transform = function (value) {
|
|
20461
|
+
return Object.values(value);
|
|
20462
|
+
};
|
|
20463
|
+
return EnumDisplayDescriptionPipe;
|
|
20464
|
+
}());
|
|
20465
|
+
EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
|
|
20466
|
+
EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
|
|
20467
|
+
(function () {
|
|
20468
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
|
|
20469
|
+
type: i0.Pipe,
|
|
20470
|
+
args: [{
|
|
20471
|
+
name: 'enumDisplayDescription'
|
|
20472
|
+
}]
|
|
20473
|
+
}], null, null);
|
|
20474
|
+
})();
|
|
20475
|
+
|
|
20476
|
+
var LinkCasesFromReasonValuePipe = /** @class */ (function () {
|
|
20477
|
+
function LinkCasesFromReasonValuePipe(linkedCasesService) {
|
|
20478
|
+
this.linkedCasesService = linkedCasesService;
|
|
20479
|
+
}
|
|
20480
|
+
LinkCasesFromReasonValuePipe.prototype.transform = function (linkFromReason) {
|
|
20481
|
+
var _a, _b, _c;
|
|
20482
|
+
if (linkFromReason === null || linkFromReason === void 0 ? void 0 : linkFromReason.otherDescription) {
|
|
20483
|
+
var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkFromReason.reasonCode; });
|
|
20484
|
+
return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
|
|
20485
|
+
? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkFromReason.otherDescription
|
|
20486
|
+
: reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
|
|
20487
|
+
}
|
|
20488
|
+
return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkFromReason.reasonCode; })) === null || _c === void 0 ? void 0 : _c.value_en;
|
|
20489
|
+
};
|
|
20490
|
+
return LinkCasesFromReasonValuePipe;
|
|
20491
|
+
}());
|
|
20492
|
+
LinkCasesFromReasonValuePipe.ɵfac = function LinkCasesFromReasonValuePipe_Factory(t) { return new (t || LinkCasesFromReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
20493
|
+
LinkCasesFromReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesFromReasonValue", type: LinkCasesFromReasonValuePipe, pure: true });
|
|
20494
|
+
(function () {
|
|
20495
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesFromReasonValuePipe, [{
|
|
20496
|
+
type: i0.Pipe,
|
|
20497
|
+
args: [{
|
|
20498
|
+
name: 'ccdLinkCasesFromReasonValue'
|
|
20499
|
+
}]
|
|
20500
|
+
}], function () { return [{ type: LinkedCasesService }]; }, null);
|
|
20501
|
+
})();
|
|
20502
|
+
|
|
20503
|
+
var LinkCasesReasonValuePipe = /** @class */ (function () {
|
|
20504
|
+
function LinkCasesReasonValuePipe(linkedCasesService) {
|
|
20505
|
+
this.linkedCasesService = linkedCasesService;
|
|
20506
|
+
}
|
|
20507
|
+
LinkCasesReasonValuePipe.prototype.transform = function (linkReason) {
|
|
20508
|
+
var _a, _b, _c;
|
|
20509
|
+
if (linkReason === null || linkReason === void 0 ? void 0 : linkReason.OtherDescription) {
|
|
20510
|
+
var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkReason.Reason; });
|
|
20511
|
+
return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
|
|
20512
|
+
? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkReason.OtherDescription
|
|
20513
|
+
: reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
|
|
20514
|
+
}
|
|
20515
|
+
return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkReason.Reason; })) === null || _c === void 0 ? void 0 : _c.value_en;
|
|
20516
|
+
};
|
|
20517
|
+
return LinkCasesReasonValuePipe;
|
|
20518
|
+
}());
|
|
20519
|
+
LinkCasesReasonValuePipe.ɵfac = function LinkCasesReasonValuePipe_Factory(t) { return new (t || LinkCasesReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
20520
|
+
LinkCasesReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesReasonValue", type: LinkCasesReasonValuePipe, pure: true });
|
|
20521
|
+
(function () {
|
|
20522
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesReasonValuePipe, [{
|
|
20523
|
+
type: i0.Pipe,
|
|
20524
|
+
args: [{
|
|
20525
|
+
name: 'ccdLinkCasesReasonValue'
|
|
20526
|
+
}]
|
|
20527
|
+
}], function () { return [{ type: LinkedCasesService }]; }, null);
|
|
20528
|
+
})();
|
|
20529
|
+
|
|
20530
|
+
var SortOrder;
|
|
20531
|
+
(function (SortOrder) {
|
|
20532
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
20533
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
20534
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
20535
|
+
})(SortOrder || (SortOrder = {}));
|
|
20536
|
+
|
|
20537
|
+
var SortSearchResultPipe = /** @class */ (function () {
|
|
20538
|
+
function SortSearchResultPipe() {
|
|
20539
|
+
}
|
|
20540
|
+
SortSearchResultPipe.prototype.transform = function (searchResults, sortParameters) {
|
|
20541
|
+
if (util.isUndefined(searchResults) || util.isUndefined(sortParameters)) {
|
|
20542
|
+
return searchResults;
|
|
20543
|
+
}
|
|
20544
|
+
return searchResults.sort(function (a, b) {
|
|
20545
|
+
return sortParameters.comparator.compare(a, b)
|
|
20546
|
+
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
20547
|
+
});
|
|
20548
|
+
};
|
|
20549
|
+
return SortSearchResultPipe;
|
|
20550
|
+
}());
|
|
20551
|
+
SortSearchResultPipe.ɵfac = function SortSearchResultPipe_Factory(t) { return new (t || SortSearchResultPipe)(); };
|
|
20552
|
+
SortSearchResultPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdSortSearchResult", type: SortSearchResultPipe, pure: true });
|
|
20553
|
+
(function () {
|
|
20554
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SortSearchResultPipe, [{
|
|
20555
|
+
type: i0.Pipe,
|
|
20556
|
+
args: [{
|
|
20557
|
+
name: 'ccdSortSearchResult'
|
|
20558
|
+
}]
|
|
20559
|
+
}], null, null);
|
|
20560
|
+
})();
|
|
20561
|
+
|
|
20562
|
+
var pipeDeclarations = [
|
|
20563
|
+
CaseReferencePipe,
|
|
20564
|
+
SortSearchResultPipe,
|
|
20565
|
+
CcdCaseTitlePipe,
|
|
20566
|
+
CcdCollectionTableCaseFieldsFilterPipe,
|
|
20567
|
+
CcdCYAPageLabelFilterPipe,
|
|
20568
|
+
ReadFieldsFilterPipe,
|
|
20569
|
+
CcdTabFieldsPipe,
|
|
20570
|
+
CcdPageFieldsPipe,
|
|
20571
|
+
LinkCasesReasonValuePipe,
|
|
20572
|
+
LinkCasesFromReasonValuePipe,
|
|
20573
|
+
EnumDisplayDescriptionPipe
|
|
20574
|
+
];
|
|
20575
|
+
var PipesModule = /** @class */ (function () {
|
|
20576
|
+
function PipesModule() {
|
|
20577
|
+
}
|
|
20578
|
+
return PipesModule;
|
|
20579
|
+
}());
|
|
20580
|
+
PipesModule.ɵfac = function PipesModule_Factory(t) { return new (t || PipesModule)(); };
|
|
20581
|
+
PipesModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PipesModule });
|
|
20582
|
+
PipesModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
20583
|
+
i2.CommonModule,
|
|
20584
|
+
]] });
|
|
20585
|
+
(function () {
|
|
20586
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PipesModule, { declarations: [CaseReferencePipe,
|
|
20587
|
+
SortSearchResultPipe,
|
|
20588
|
+
CcdCaseTitlePipe,
|
|
20589
|
+
CcdCollectionTableCaseFieldsFilterPipe,
|
|
20590
|
+
CcdCYAPageLabelFilterPipe,
|
|
20591
|
+
ReadFieldsFilterPipe,
|
|
20592
|
+
CcdTabFieldsPipe,
|
|
20593
|
+
CcdPageFieldsPipe,
|
|
20594
|
+
LinkCasesReasonValuePipe,
|
|
20595
|
+
LinkCasesFromReasonValuePipe,
|
|
20596
|
+
EnumDisplayDescriptionPipe], imports: [i2.CommonModule], exports: [CaseReferencePipe,
|
|
20597
|
+
SortSearchResultPipe,
|
|
20598
|
+
CcdCaseTitlePipe,
|
|
20599
|
+
CcdCollectionTableCaseFieldsFilterPipe,
|
|
20600
|
+
CcdCYAPageLabelFilterPipe,
|
|
20601
|
+
ReadFieldsFilterPipe,
|
|
20602
|
+
CcdTabFieldsPipe,
|
|
20603
|
+
CcdPageFieldsPipe,
|
|
20604
|
+
LinkCasesReasonValuePipe,
|
|
20605
|
+
LinkCasesFromReasonValuePipe,
|
|
20606
|
+
EnumDisplayDescriptionPipe] });
|
|
20607
|
+
})();
|
|
20608
|
+
(function () {
|
|
20609
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
|
|
20610
|
+
type: i0.NgModule,
|
|
20611
|
+
args: [{
|
|
20612
|
+
imports: [
|
|
20613
|
+
i2.CommonModule,
|
|
20614
|
+
],
|
|
20615
|
+
declarations: __spread(pipeDeclarations),
|
|
20616
|
+
exports: __spread(pipeDeclarations)
|
|
20617
|
+
}]
|
|
20618
|
+
}], null, null);
|
|
20619
|
+
})();
|
|
20620
|
+
|
|
20621
|
+
var QueryCreateComponent = /** @class */ (function () {
|
|
20622
|
+
function QueryCreateComponent() {
|
|
20623
|
+
}
|
|
20624
|
+
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
20625
|
+
};
|
|
20626
|
+
return QueryCreateComponent;
|
|
20627
|
+
}());
|
|
20628
|
+
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
20629
|
+
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
20630
|
+
(function () {
|
|
20631
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
20632
|
+
type: i0.Component,
|
|
20633
|
+
args: [{
|
|
20634
|
+
selector: 'ccd-query-create',
|
|
20635
|
+
templateUrl: './query-create.component.html',
|
|
20636
|
+
}]
|
|
20637
|
+
}], function () { return []; }, null);
|
|
20638
|
+
})();
|
|
20639
|
+
|
|
20640
|
+
function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) {
|
|
20275
20641
|
if (rf & 1) {
|
|
20276
|
-
|
|
20277
|
-
i0__namespace.ɵɵelementStart(
|
|
20278
|
-
i0__namespace.ɵɵ
|
|
20279
|
-
i0__namespace.ɵɵ
|
|
20642
|
+
i0__namespace.ɵɵelementStart(0, "tr", 3);
|
|
20643
|
+
i0__namespace.ɵɵelementStart(1, "th", 4);
|
|
20644
|
+
i0__namespace.ɵɵtext(2);
|
|
20645
|
+
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
20646
|
+
i0__namespace.ɵɵelementEnd();
|
|
20647
|
+
i0__namespace.ɵɵelementStart(4, "td", 5);
|
|
20648
|
+
i0__namespace.ɵɵtext(5);
|
|
20649
|
+
i0__namespace.ɵɵpipe(6, "date");
|
|
20280
20650
|
i0__namespace.ɵɵelementEnd();
|
|
20281
20651
|
i0__namespace.ɵɵelementEnd();
|
|
20282
20652
|
}
|
|
20283
20653
|
if (rf & 2) {
|
|
20284
|
-
var
|
|
20654
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
20655
|
+
i0__namespace.ɵɵadvance(2);
|
|
20656
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "What is the date of the hearing your query related to?"));
|
|
20657
|
+
i0__namespace.ɵɵadvance(3);
|
|
20658
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(6, 4, ctx_r1.queryItem.hearingDate, "dd MMM yyyy"));
|
|
20659
|
+
}
|
|
20660
|
+
}
|
|
20661
|
+
function QueryDetailsTableComponent_ng_container_0_div_41_Template(rf, ctx) {
|
|
20662
|
+
if (rf & 1) {
|
|
20663
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
20664
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20665
|
+
i0__namespace.ɵɵtext(2);
|
|
20666
|
+
i0__namespace.ɵɵelementEnd();
|
|
20667
|
+
i0__namespace.ɵɵelementEnd();
|
|
20668
|
+
}
|
|
20669
|
+
if (rf & 2) {
|
|
20670
|
+
var attachment_r3 = ctx.$implicit;
|
|
20285
20671
|
i0__namespace.ɵɵadvance(1);
|
|
20286
|
-
i0__namespace.ɵɵproperty("
|
|
20672
|
+
i0__namespace.ɵɵproperty("href", attachment_r3._links.self.href, i0__namespace.ɵɵsanitizeUrl);
|
|
20673
|
+
i0__namespace.ɵɵadvance(1);
|
|
20674
|
+
i0__namespace.ɵɵtextInterpolate(attachment_r3.originalDocumentName);
|
|
20287
20675
|
}
|
|
20288
20676
|
}
|
|
20289
|
-
function
|
|
20677
|
+
function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) {
|
|
20290
20678
|
if (rf & 1) {
|
|
20291
20679
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
20292
|
-
i0__namespace.ɵɵ
|
|
20680
|
+
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
20681
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
20682
|
+
i0__namespace.ɵɵelementStart(3, "tbody", 2);
|
|
20683
|
+
i0__namespace.ɵɵelementStart(4, "tr", 3);
|
|
20684
|
+
i0__namespace.ɵɵelementStart(5, "th", 4);
|
|
20685
|
+
i0__namespace.ɵɵtext(6);
|
|
20686
|
+
i0__namespace.ɵɵpipe(7, "rpxTranslate");
|
|
20687
|
+
i0__namespace.ɵɵelementEnd();
|
|
20688
|
+
i0__namespace.ɵɵelementStart(8, "td", 5);
|
|
20689
|
+
i0__namespace.ɵɵtext(9);
|
|
20690
|
+
i0__namespace.ɵɵelementEnd();
|
|
20691
|
+
i0__namespace.ɵɵelementEnd();
|
|
20692
|
+
i0__namespace.ɵɵelementStart(10, "tr", 3);
|
|
20693
|
+
i0__namespace.ɵɵelementStart(11, "th", 4);
|
|
20694
|
+
i0__namespace.ɵɵtext(12);
|
|
20695
|
+
i0__namespace.ɵɵpipe(13, "rpxTranslate");
|
|
20696
|
+
i0__namespace.ɵɵelementEnd();
|
|
20697
|
+
i0__namespace.ɵɵelementStart(14, "td", 5);
|
|
20698
|
+
i0__namespace.ɵɵtext(15);
|
|
20699
|
+
i0__namespace.ɵɵpipe(16, "date");
|
|
20700
|
+
i0__namespace.ɵɵelementEnd();
|
|
20701
|
+
i0__namespace.ɵɵelementEnd();
|
|
20702
|
+
i0__namespace.ɵɵelementStart(17, "tr", 3);
|
|
20703
|
+
i0__namespace.ɵɵelementStart(18, "th", 4);
|
|
20704
|
+
i0__namespace.ɵɵtext(19);
|
|
20705
|
+
i0__namespace.ɵɵpipe(20, "rpxTranslate");
|
|
20706
|
+
i0__namespace.ɵɵelementEnd();
|
|
20707
|
+
i0__namespace.ɵɵelementStart(21, "td", 5);
|
|
20708
|
+
i0__namespace.ɵɵtext(22);
|
|
20709
|
+
i0__namespace.ɵɵelementEnd();
|
|
20710
|
+
i0__namespace.ɵɵelementEnd();
|
|
20711
|
+
i0__namespace.ɵɵelementStart(23, "tr", 3);
|
|
20712
|
+
i0__namespace.ɵɵelementStart(24, "th", 4);
|
|
20713
|
+
i0__namespace.ɵɵtext(25);
|
|
20714
|
+
i0__namespace.ɵɵpipe(26, "rpxTranslate");
|
|
20715
|
+
i0__namespace.ɵɵelementEnd();
|
|
20716
|
+
i0__namespace.ɵɵelementStart(27, "td", 5);
|
|
20717
|
+
i0__namespace.ɵɵtext(28);
|
|
20718
|
+
i0__namespace.ɵɵelementEnd();
|
|
20719
|
+
i0__namespace.ɵɵelementEnd();
|
|
20720
|
+
i0__namespace.ɵɵelementStart(29, "tr", 3);
|
|
20721
|
+
i0__namespace.ɵɵelementStart(30, "th", 4);
|
|
20722
|
+
i0__namespace.ɵɵtext(31);
|
|
20723
|
+
i0__namespace.ɵɵpipe(32, "rpxTranslate");
|
|
20724
|
+
i0__namespace.ɵɵelementEnd();
|
|
20725
|
+
i0__namespace.ɵɵelementStart(33, "td", 5);
|
|
20726
|
+
i0__namespace.ɵɵtext(34);
|
|
20727
|
+
i0__namespace.ɵɵelementEnd();
|
|
20728
|
+
i0__namespace.ɵɵelementEnd();
|
|
20729
|
+
i0__namespace.ɵɵtemplate(35, QueryDetailsTableComponent_ng_container_0_tr_35_Template, 7, 7, "tr", 6);
|
|
20730
|
+
i0__namespace.ɵɵelementStart(36, "tr", 3);
|
|
20731
|
+
i0__namespace.ɵɵelementStart(37, "th", 4);
|
|
20732
|
+
i0__namespace.ɵɵtext(38);
|
|
20733
|
+
i0__namespace.ɵɵpipe(39, "rpxTranslate");
|
|
20734
|
+
i0__namespace.ɵɵelementEnd();
|
|
20735
|
+
i0__namespace.ɵɵelementStart(40, "td", 5);
|
|
20736
|
+
i0__namespace.ɵɵtemplate(41, QueryDetailsTableComponent_ng_container_0_div_41_Template, 3, 2, "div", 7);
|
|
20737
|
+
i0__namespace.ɵɵelementEnd();
|
|
20738
|
+
i0__namespace.ɵɵelementEnd();
|
|
20739
|
+
i0__namespace.ɵɵelementEnd();
|
|
20740
|
+
i0__namespace.ɵɵelementEnd();
|
|
20293
20741
|
i0__namespace.ɵɵelementContainerEnd();
|
|
20294
20742
|
}
|
|
20295
20743
|
if (rf & 2) {
|
|
20296
20744
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
20297
20745
|
i0__namespace.ɵɵadvance(1);
|
|
20298
|
-
i0__namespace.ɵɵ
|
|
20746
|
+
i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 14, "Details of the query"));
|
|
20747
|
+
i0__namespace.ɵɵadvance(5);
|
|
20748
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 16, "Last submitted by"));
|
|
20749
|
+
i0__namespace.ɵɵadvance(3);
|
|
20750
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
|
|
20751
|
+
i0__namespace.ɵɵadvance(3);
|
|
20752
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(13, 18, "Submission date"));
|
|
20753
|
+
i0__namespace.ɵɵadvance(3);
|
|
20754
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(16, 20, ctx_r0.queryItem.createdOn, "dd MMM yyyy"));
|
|
20755
|
+
i0__namespace.ɵɵadvance(4);
|
|
20756
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(20, 23, "Query subject"));
|
|
20757
|
+
i0__namespace.ɵɵadvance(3);
|
|
20758
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
|
|
20759
|
+
i0__namespace.ɵɵadvance(3);
|
|
20760
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(26, 25, "Query body"));
|
|
20761
|
+
i0__namespace.ɵɵadvance(3);
|
|
20762
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.body);
|
|
20763
|
+
i0__namespace.ɵɵadvance(3);
|
|
20764
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(32, 27, "Is the query hearing related?"));
|
|
20765
|
+
i0__namespace.ɵɵadvance(3);
|
|
20766
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
|
|
20767
|
+
i0__namespace.ɵɵadvance(1);
|
|
20768
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.queryItem.isHearingRelated);
|
|
20769
|
+
i0__namespace.ɵɵadvance(3);
|
|
20770
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(39, 29, "Attachments"));
|
|
20771
|
+
i0__namespace.ɵɵadvance(3);
|
|
20772
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
|
|
20299
20773
|
}
|
|
20300
20774
|
}
|
|
20301
|
-
function
|
|
20775
|
+
var QueryDetailsTableComponent = /** @class */ (function () {
|
|
20776
|
+
function QueryDetailsTableComponent() {
|
|
20777
|
+
}
|
|
20778
|
+
return QueryDetailsTableComponent;
|
|
20779
|
+
}());
|
|
20780
|
+
QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
|
|
20781
|
+
QueryDetailsTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"]], template: function QueryDetailsTableComponent_Template(rf, ctx) {
|
|
20782
|
+
if (rf & 1) {
|
|
20783
|
+
i0__namespace.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 42, 31, "ng-container", 0);
|
|
20784
|
+
}
|
|
20785
|
+
if (rf & 2) {
|
|
20786
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.queryItem);
|
|
20787
|
+
}
|
|
20788
|
+
}, directives: [i2__namespace.NgIf, i2__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i2__namespace.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
20789
|
+
(function () {
|
|
20790
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsTableComponent, [{
|
|
20791
|
+
type: i0.Component,
|
|
20792
|
+
args: [{
|
|
20793
|
+
selector: 'ccd-query-details-table',
|
|
20794
|
+
templateUrl: './query-details-table.component.html',
|
|
20795
|
+
styleUrls: ['./query-details-table.component.scss']
|
|
20796
|
+
}]
|
|
20797
|
+
}], null, { queryItem: [{
|
|
20798
|
+
type: i0.Input
|
|
20799
|
+
}] });
|
|
20800
|
+
})();
|
|
20801
|
+
|
|
20802
|
+
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
|
|
20302
20803
|
if (rf & 1) {
|
|
20303
|
-
var
|
|
20304
|
-
i0__namespace.ɵɵ
|
|
20305
|
-
i0__namespace.ɵɵ
|
|
20804
|
+
var _r2_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20805
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
20806
|
+
i0__namespace.ɵɵelementStart(1, "p");
|
|
20807
|
+
i0__namespace.ɵɵelement(2, "br");
|
|
20808
|
+
i0__namespace.ɵɵelementStart(3, "a", 1);
|
|
20809
|
+
i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r2_1); var ctx_r1 = i0__namespace.ɵɵnextContext(); return ctx_r1.onBack(); });
|
|
20810
|
+
i0__namespace.ɵɵtext(4);
|
|
20811
|
+
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
20812
|
+
i0__namespace.ɵɵelementEnd();
|
|
20813
|
+
i0__namespace.ɵɵelementEnd();
|
|
20814
|
+
i0__namespace.ɵɵelementStart(6, "div", 2);
|
|
20815
|
+
i0__namespace.ɵɵtext(7);
|
|
20816
|
+
i0__namespace.ɵɵpipe(8, "rpxTranslate");
|
|
20306
20817
|
i0__namespace.ɵɵelementEnd();
|
|
20818
|
+
i0__namespace.ɵɵelement(9, "ccd-query-details-table", 3);
|
|
20819
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
20307
20820
|
}
|
|
20308
20821
|
if (rf & 2) {
|
|
20309
|
-
var
|
|
20310
|
-
i0__namespace.ɵɵ
|
|
20822
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
20823
|
+
i0__namespace.ɵɵadvance(4);
|
|
20824
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 3, "Back to queries"));
|
|
20825
|
+
i0__namespace.ɵɵadvance(3);
|
|
20826
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 5, "Query details"));
|
|
20827
|
+
i0__namespace.ɵɵadvance(2);
|
|
20828
|
+
i0__namespace.ɵɵproperty("queryItem", ctx_r0.query);
|
|
20311
20829
|
}
|
|
20312
20830
|
}
|
|
20313
|
-
var
|
|
20314
|
-
|
|
20315
|
-
|
|
20316
|
-
var _this = _super.call(this) || this;
|
|
20317
|
-
_this.route = route;
|
|
20318
|
-
_this.showQueryList = true;
|
|
20319
|
-
return _this;
|
|
20831
|
+
var QueryDetailsComponent = /** @class */ (function () {
|
|
20832
|
+
function QueryDetailsComponent() {
|
|
20833
|
+
this.backClicked = new i0.EventEmitter();
|
|
20320
20834
|
}
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
20324
|
-
this.partyMessagesGroups = partyMessagesMockData;
|
|
20325
|
-
// TODO: Actual implementation once the CCD API and data contract is available
|
|
20326
|
-
// Each parties will have a separate collection of party messages
|
|
20327
|
-
// Find whether queries tab is available in the case data
|
|
20328
|
-
var queriesTab = this.route.snapshot.data.case.tabs
|
|
20329
|
-
.filter(function (tab) { return tab.fields && tab.fields
|
|
20330
|
-
.some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
|
|
20331
|
-
// Loop through the list of parties and their case queries collections
|
|
20332
|
-
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
20333
|
-
}
|
|
20334
|
-
};
|
|
20335
|
-
ReadQueryManagementFieldComponent.prototype.setQuery = function (query) {
|
|
20336
|
-
this.showQueryList = false;
|
|
20337
|
-
this.query = query;
|
|
20835
|
+
QueryDetailsComponent.prototype.onBack = function () {
|
|
20836
|
+
this.backClicked.emit(true);
|
|
20338
20837
|
};
|
|
20339
|
-
return
|
|
20340
|
-
}(
|
|
20341
|
-
|
|
20342
|
-
|
|
20838
|
+
return QueryDetailsComponent;
|
|
20839
|
+
}());
|
|
20840
|
+
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
|
|
20841
|
+
QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"]], template: function QueryDetailsComponent_Template(rf, ctx) {
|
|
20343
20842
|
if (rf & 1) {
|
|
20344
|
-
i0__namespace.ɵɵ
|
|
20345
|
-
i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 0);
|
|
20346
|
-
i0__namespace.ɵɵtemplate(2, ReadQueryManagementFieldComponent_ccd_query_details_2_Template, 1, 1, "ccd-query-details", 1);
|
|
20347
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
20843
|
+
i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 7, "ng-container", 0);
|
|
20348
20844
|
}
|
|
20349
20845
|
if (rf & 2) {
|
|
20350
|
-
i0__namespace.ɵɵ
|
|
20351
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
20352
|
-
i0__namespace.ɵɵadvance(1);
|
|
20353
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.showQueryList);
|
|
20846
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.query);
|
|
20354
20847
|
}
|
|
20355
|
-
},
|
|
20848
|
+
}, styles: [".query_details_caption[_ngcontent-%COMP%]{background:#f3f2f1;padding:10px;font-size:x-large;font-weight:700}"] });
|
|
20356
20849
|
(function () {
|
|
20357
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
20850
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20358
20851
|
type: i0.Component,
|
|
20359
20852
|
args: [{
|
|
20360
|
-
selector: 'ccd-
|
|
20361
|
-
templateUrl: './
|
|
20853
|
+
selector: 'ccd-query-details',
|
|
20854
|
+
templateUrl: './query-details.component.html',
|
|
20855
|
+
styleUrls: ['./query-details.component.scss']
|
|
20362
20856
|
}]
|
|
20363
|
-
}],
|
|
20857
|
+
}], null, { query: [{
|
|
20858
|
+
type: i0.Input
|
|
20859
|
+
}], backClicked: [{
|
|
20860
|
+
type: i0.Output
|
|
20861
|
+
}] });
|
|
20364
20862
|
})();
|
|
20365
20863
|
|
|
20366
20864
|
var QueryListItem = /** @class */ (function () {
|
|
@@ -20456,6 +20954,417 @@
|
|
|
20456
20954
|
QueryListResponseStatus["RESPONDED"] = "Responded";
|
|
20457
20955
|
})(QueryListResponseStatus || (QueryListResponseStatus = {}));
|
|
20458
20956
|
|
|
20957
|
+
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
|
|
20958
|
+
if (rf & 1) {
|
|
20959
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20960
|
+
i0__namespace.ɵɵelementStart(0, "th", 8);
|
|
20961
|
+
i0__namespace.ɵɵtext(1);
|
|
20962
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
20963
|
+
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
20964
|
+
i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var col_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
|
|
20965
|
+
i0__namespace.ɵɵelementEnd();
|
|
20966
|
+
i0__namespace.ɵɵelementEnd();
|
|
20967
|
+
}
|
|
20968
|
+
if (rf & 2) {
|
|
20969
|
+
var col_r3 = ctx.$implicit;
|
|
20970
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
20971
|
+
i0__namespace.ɵɵadvance(1);
|
|
20972
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
20973
|
+
i0__namespace.ɵɵadvance(2);
|
|
20974
|
+
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
|
|
20975
|
+
}
|
|
20976
|
+
}
|
|
20977
|
+
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
|
|
20978
|
+
if (rf & 1) {
|
|
20979
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20980
|
+
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
20981
|
+
i0__namespace.ɵɵelementStart(1, "td", 10);
|
|
20982
|
+
i0__namespace.ɵɵelementStart(2, "a", 11);
|
|
20983
|
+
i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_tr_9_Template_a_click_2_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var message_r6 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.showDetails(message_r6); });
|
|
20984
|
+
i0__namespace.ɵɵtext(3);
|
|
20985
|
+
i0__namespace.ɵɵelementEnd();
|
|
20986
|
+
i0__namespace.ɵɵelementEnd();
|
|
20987
|
+
i0__namespace.ɵɵelementStart(4, "td", 12);
|
|
20988
|
+
i0__namespace.ɵɵtext(5);
|
|
20989
|
+
i0__namespace.ɵɵelementEnd();
|
|
20990
|
+
i0__namespace.ɵɵelementStart(6, "td", 12);
|
|
20991
|
+
i0__namespace.ɵɵtext(7);
|
|
20992
|
+
i0__namespace.ɵɵpipe(8, "date");
|
|
20993
|
+
i0__namespace.ɵɵelementEnd();
|
|
20994
|
+
i0__namespace.ɵɵelementStart(9, "td", 12);
|
|
20995
|
+
i0__namespace.ɵɵtext(10);
|
|
20996
|
+
i0__namespace.ɵɵpipe(11, "date");
|
|
20997
|
+
i0__namespace.ɵɵelementEnd();
|
|
20998
|
+
i0__namespace.ɵɵelementStart(12, "td", 12);
|
|
20999
|
+
i0__namespace.ɵɵtext(13);
|
|
21000
|
+
i0__namespace.ɵɵelementEnd();
|
|
21001
|
+
i0__namespace.ɵɵelementEnd();
|
|
21002
|
+
}
|
|
21003
|
+
if (rf & 2) {
|
|
21004
|
+
var message_r6 = ctx.$implicit;
|
|
21005
|
+
i0__namespace.ɵɵadvance(3);
|
|
21006
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.subject);
|
|
21007
|
+
i0__namespace.ɵɵadvance(2);
|
|
21008
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
21009
|
+
i0__namespace.ɵɵadvance(2);
|
|
21010
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
21011
|
+
i0__namespace.ɵɵadvance(3);
|
|
21012
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
21013
|
+
i0__namespace.ɵɵadvance(3);
|
|
21014
|
+
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
21015
|
+
}
|
|
21016
|
+
}
|
|
21017
|
+
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
21018
|
+
if (rf & 1) {
|
|
21019
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
21020
|
+
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
21021
|
+
i0__namespace.ɵɵelementStart(2, "caption", 2);
|
|
21022
|
+
i0__namespace.ɵɵelementStart(3, "div");
|
|
21023
|
+
i0__namespace.ɵɵtext(4);
|
|
21024
|
+
i0__namespace.ɵɵelementEnd();
|
|
21025
|
+
i0__namespace.ɵɵelementEnd();
|
|
21026
|
+
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
21027
|
+
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
21028
|
+
i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
21029
|
+
i0__namespace.ɵɵelementEnd();
|
|
21030
|
+
i0__namespace.ɵɵelementEnd();
|
|
21031
|
+
i0__namespace.ɵɵelementStart(8, "tbody", 6);
|
|
21032
|
+
i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
21033
|
+
i0__namespace.ɵɵelementEnd();
|
|
21034
|
+
i0__namespace.ɵɵelementEnd();
|
|
21035
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
21036
|
+
}
|
|
21037
|
+
if (rf & 2) {
|
|
21038
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
21039
|
+
i0__namespace.ɵɵadvance(4);
|
|
21040
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
21041
|
+
i0__namespace.ɵɵadvance(3);
|
|
21042
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
21043
|
+
i0__namespace.ɵɵadvance(2);
|
|
21044
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
21045
|
+
}
|
|
21046
|
+
}
|
|
21047
|
+
var QueryListComponent = /** @class */ (function () {
|
|
21048
|
+
function QueryListComponent() {
|
|
21049
|
+
this.selectedQuery = new i0.EventEmitter();
|
|
21050
|
+
this.displayedColumns = [
|
|
21051
|
+
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
21052
|
+
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
21053
|
+
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
21054
|
+
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
21055
|
+
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
21056
|
+
];
|
|
21057
|
+
}
|
|
21058
|
+
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
21059
|
+
var _a;
|
|
21060
|
+
var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
21061
|
+
if (currentPartyMessageGroup) {
|
|
21062
|
+
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
21063
|
+
}
|
|
21064
|
+
};
|
|
21065
|
+
QueryListComponent.prototype.sortTable = function (col) {
|
|
21066
|
+
switch (col.displayName) {
|
|
21067
|
+
case 'Last submission date':
|
|
21068
|
+
case 'Last response date': {
|
|
21069
|
+
this.sortDate(col);
|
|
21070
|
+
break;
|
|
21071
|
+
}
|
|
21072
|
+
default: {
|
|
21073
|
+
this.sort(col);
|
|
21074
|
+
break;
|
|
21075
|
+
}
|
|
21076
|
+
}
|
|
21077
|
+
};
|
|
21078
|
+
QueryListComponent.prototype.sortWidget = function (col) {
|
|
21079
|
+
switch (col.sortOrder) {
|
|
21080
|
+
case SortOrder.ASCENDING: {
|
|
21081
|
+
return '▲';
|
|
21082
|
+
}
|
|
21083
|
+
default: {
|
|
21084
|
+
return '▼';
|
|
21085
|
+
}
|
|
21086
|
+
}
|
|
21087
|
+
};
|
|
21088
|
+
QueryListComponent.prototype.showDetails = function (query) {
|
|
21089
|
+
this.selectedQuery.emit(query);
|
|
21090
|
+
};
|
|
21091
|
+
QueryListComponent.prototype.sort = function (col) {
|
|
21092
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
21093
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
|
|
21094
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
21095
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
21096
|
+
}
|
|
21097
|
+
else {
|
|
21098
|
+
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
|
|
21099
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
21100
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
21101
|
+
}
|
|
21102
|
+
};
|
|
21103
|
+
QueryListComponent.prototype.sortDate = function (col) {
|
|
21104
|
+
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
21105
|
+
this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
|
|
21106
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
21107
|
+
col.sortOrder = SortOrder.DESCENDING;
|
|
21108
|
+
}
|
|
21109
|
+
else {
|
|
21110
|
+
this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
|
|
21111
|
+
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
21112
|
+
col.sortOrder = SortOrder.ASCENDING;
|
|
21113
|
+
}
|
|
21114
|
+
};
|
|
21115
|
+
return QueryListComponent;
|
|
21116
|
+
}());
|
|
21117
|
+
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
21118
|
+
QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, outputs: { selectedQuery: "selectedQuery" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__cell", "query-list__caption", "query-list__row"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__header"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
|
|
21119
|
+
if (rf & 1) {
|
|
21120
|
+
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
21121
|
+
}
|
|
21122
|
+
if (rf & 2) {
|
|
21123
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
21124
|
+
}
|
|
21125
|
+
}, directives: [i2__namespace.NgIf, i2__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i2__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
|
|
21126
|
+
(function () {
|
|
21127
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
21128
|
+
type: i0.Component,
|
|
21129
|
+
args: [{
|
|
21130
|
+
selector: 'ccd-query-list',
|
|
21131
|
+
templateUrl: './query-list.component.html',
|
|
21132
|
+
styleUrls: ['./query-list.component.scss']
|
|
21133
|
+
}]
|
|
21134
|
+
}], null, { partyMessageGroup: [{
|
|
21135
|
+
type: i0.Input
|
|
21136
|
+
}], selectedQuery: [{
|
|
21137
|
+
type: i0.Output
|
|
21138
|
+
}] });
|
|
21139
|
+
})();
|
|
21140
|
+
|
|
21141
|
+
var partyMessagesMockData = [
|
|
21142
|
+
{
|
|
21143
|
+
partyName: 'John Smith - Appellant',
|
|
21144
|
+
roleOnCase: null,
|
|
21145
|
+
partyMessages: [
|
|
21146
|
+
{
|
|
21147
|
+
id: 'case-message-001',
|
|
21148
|
+
subject: 'Review attached document',
|
|
21149
|
+
name: 'Maggie Conroy',
|
|
21150
|
+
body: 'Please review attached document and advise if hearing should proceed?',
|
|
21151
|
+
attachments: [
|
|
21152
|
+
{
|
|
21153
|
+
_links: {
|
|
21154
|
+
self: { href: '/' },
|
|
21155
|
+
binary: { href: '/' },
|
|
21156
|
+
},
|
|
21157
|
+
originalDocumentName: 'documentName.pdf',
|
|
21158
|
+
}
|
|
21159
|
+
],
|
|
21160
|
+
isHearingRelated: true,
|
|
21161
|
+
hearingDate: '10 Jan 2023',
|
|
21162
|
+
createdOn: new Date(2023, 0, 3),
|
|
21163
|
+
createdBy: '1111-1111-1111-1111'
|
|
21164
|
+
},
|
|
21165
|
+
{
|
|
21166
|
+
id: 'case-message-002',
|
|
21167
|
+
subject: 'Games',
|
|
21168
|
+
name: 'Maggie Conroy',
|
|
21169
|
+
body: 'Can I play games in my phone when my solicitor is talking?',
|
|
21170
|
+
attachments: [],
|
|
21171
|
+
isHearingRelated: true,
|
|
21172
|
+
hearingDate: '10 Jan 2023',
|
|
21173
|
+
createdOn: new Date(2023, 0, 3),
|
|
21174
|
+
createdBy: '1111-1111-1111-1111'
|
|
21175
|
+
},
|
|
21176
|
+
{
|
|
21177
|
+
id: 'case-message-003',
|
|
21178
|
+
name: 'Maggie Conroy',
|
|
21179
|
+
body: 'Using mobile phone is strictly prohibited in the court room.',
|
|
21180
|
+
attachments: [],
|
|
21181
|
+
isHearingRelated: true,
|
|
21182
|
+
hearingDate: '10 Jan 2023',
|
|
21183
|
+
createdOn: new Date(2023, 0, 4),
|
|
21184
|
+
createdBy: '2222-2222-2222-2222',
|
|
21185
|
+
parentId: 'case-message-002'
|
|
21186
|
+
}
|
|
21187
|
+
]
|
|
21188
|
+
},
|
|
21189
|
+
{
|
|
21190
|
+
partyName: 'Kevin Peterson - Respondent',
|
|
21191
|
+
roleOnCase: null,
|
|
21192
|
+
partyMessages: [
|
|
21193
|
+
{
|
|
21194
|
+
id: 'case-message-005',
|
|
21195
|
+
subject: 'Add respondent detention order',
|
|
21196
|
+
name: 'Maggie Conroy',
|
|
21197
|
+
body: 'Please add respondent detention order to the file XX20230423-DX.',
|
|
21198
|
+
attachments: [],
|
|
21199
|
+
isHearingRelated: false,
|
|
21200
|
+
createdOn: new Date(2023, 1, 5),
|
|
21201
|
+
createdBy: '1111-1111-1111-1111'
|
|
21202
|
+
},
|
|
21203
|
+
{
|
|
21204
|
+
id: 'case-message-006',
|
|
21205
|
+
name: 'Maggie Conroy',
|
|
21206
|
+
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
|
|
21207
|
+
attachments: [],
|
|
21208
|
+
isHearingRelated: false,
|
|
21209
|
+
createdOn: new Date(2023, 1, 6),
|
|
21210
|
+
createdBy: '2222-2222-2222-2222',
|
|
21211
|
+
parentId: 'case-message-005'
|
|
21212
|
+
},
|
|
21213
|
+
{
|
|
21214
|
+
id: 'case-message-007',
|
|
21215
|
+
subject: 'Food',
|
|
21216
|
+
name: 'Maggie Conroy',
|
|
21217
|
+
body: 'Can I eat in the hearings?',
|
|
21218
|
+
attachments: [],
|
|
21219
|
+
isHearingRelated: true,
|
|
21220
|
+
hearingDate: '10 Jan 2023',
|
|
21221
|
+
createdOn: new Date(2023, 0, 3),
|
|
21222
|
+
createdBy: '1111-1111-1111-1111'
|
|
21223
|
+
},
|
|
21224
|
+
{
|
|
21225
|
+
id: 'case-message-008',
|
|
21226
|
+
name: 'Maggie Conroy',
|
|
21227
|
+
body: 'Consumption of food is not allowed when a hearing is taking place.',
|
|
21228
|
+
attachments: [],
|
|
21229
|
+
isHearingRelated: true,
|
|
21230
|
+
hearingDate: '10 Jan 2023',
|
|
21231
|
+
createdOn: new Date(2023, 0, 5),
|
|
21232
|
+
createdBy: '2222-2222-2222-2222',
|
|
21233
|
+
parentId: 'case-message-007'
|
|
21234
|
+
},
|
|
21235
|
+
{
|
|
21236
|
+
id: 'case-message-009',
|
|
21237
|
+
subject: 'Bring relatives',
|
|
21238
|
+
name: 'Maggie Conroy',
|
|
21239
|
+
body: 'Can I bring my grandma with me so she get out from the residence?',
|
|
21240
|
+
attachments: [],
|
|
21241
|
+
isHearingRelated: true,
|
|
21242
|
+
hearingDate: '10 Jan 2023',
|
|
21243
|
+
createdOn: new Date(2023, 0, 6),
|
|
21244
|
+
createdBy: '1111-1111-1111-1111'
|
|
21245
|
+
},
|
|
21246
|
+
{
|
|
21247
|
+
id: 'case-message-010',
|
|
21248
|
+
name: 'Maggie Conroy',
|
|
21249
|
+
body: 'Sorry, only those required for the hearing should be present inside the court room.',
|
|
21250
|
+
attachments: [],
|
|
21251
|
+
isHearingRelated: true,
|
|
21252
|
+
hearingDate: '10 Jan 2023',
|
|
21253
|
+
createdOn: new Date(2023, 0, 7),
|
|
21254
|
+
createdBy: '2222-2222-2222-2222',
|
|
21255
|
+
parentId: 'case-message-009'
|
|
21256
|
+
}
|
|
21257
|
+
]
|
|
21258
|
+
}
|
|
21259
|
+
];
|
|
21260
|
+
|
|
21261
|
+
var QueryManagementUtils = /** @class */ (function () {
|
|
21262
|
+
function QueryManagementUtils() {
|
|
21263
|
+
}
|
|
21264
|
+
QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
|
|
21265
|
+
};
|
|
21266
|
+
return QueryManagementUtils;
|
|
21267
|
+
}());
|
|
21268
|
+
QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
|
|
21269
|
+
QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
21270
|
+
(function () {
|
|
21271
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
|
|
21272
|
+
type: i0.Injectable
|
|
21273
|
+
}], null, null);
|
|
21274
|
+
})();
|
|
21275
|
+
|
|
21276
|
+
function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template(rf, ctx) {
|
|
21277
|
+
if (rf & 1) {
|
|
21278
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21279
|
+
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
21280
|
+
i0__namespace.ɵɵelementStart(1, "ccd-query-list", 4);
|
|
21281
|
+
i0__namespace.ɵɵlistener("selectedQuery", function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template_ccd_query_list_selectedQuery_1_listener($event) { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.setQuery($event); });
|
|
21282
|
+
i0__namespace.ɵɵelementEnd();
|
|
21283
|
+
i0__namespace.ɵɵelementEnd();
|
|
21284
|
+
}
|
|
21285
|
+
if (rf & 2) {
|
|
21286
|
+
var singlePartyMessageGroup_r2 = i0__namespace.ɵɵnextContext().$implicit;
|
|
21287
|
+
i0__namespace.ɵɵadvance(1);
|
|
21288
|
+
i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r2);
|
|
21289
|
+
}
|
|
21290
|
+
}
|
|
21291
|
+
function ReadQueryManagementFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
21292
|
+
if (rf & 1) {
|
|
21293
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
21294
|
+
i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_1_div_1_Template, 2, 1, "div", 2);
|
|
21295
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
21296
|
+
}
|
|
21297
|
+
if (rf & 2) {
|
|
21298
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
21299
|
+
i0__namespace.ɵɵadvance(1);
|
|
21300
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.showQueryList);
|
|
21301
|
+
}
|
|
21302
|
+
}
|
|
21303
|
+
function ReadQueryManagementFieldComponent_ccd_query_details_2_Template(rf, ctx) {
|
|
21304
|
+
if (rf & 1) {
|
|
21305
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21306
|
+
i0__namespace.ɵɵelementStart(0, "ccd-query-details", 5);
|
|
21307
|
+
i0__namespace.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ccd_query_details_2_Template_ccd_query_details_backClicked_0_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.showQueryList = true; });
|
|
21308
|
+
i0__namespace.ɵɵelementEnd();
|
|
21309
|
+
}
|
|
21310
|
+
if (rf & 2) {
|
|
21311
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
21312
|
+
i0__namespace.ɵɵproperty("query", ctx_r1.query);
|
|
21313
|
+
}
|
|
21314
|
+
}
|
|
21315
|
+
var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
|
|
21316
|
+
__extends(ReadQueryManagementFieldComponent, _super);
|
|
21317
|
+
function ReadQueryManagementFieldComponent(route) {
|
|
21318
|
+
var _this = _super.call(this) || this;
|
|
21319
|
+
_this.route = route;
|
|
21320
|
+
_this.showQueryList = true;
|
|
21321
|
+
return _this;
|
|
21322
|
+
}
|
|
21323
|
+
ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
|
|
21324
|
+
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
21325
|
+
// EUI-8303 Using mock data until CCD is ready with the API and data contract
|
|
21326
|
+
this.partyMessagesGroups = partyMessagesMockData;
|
|
21327
|
+
// TODO: Actual implementation once the CCD API and data contract is available
|
|
21328
|
+
// Each parties will have a separate collection of party messages
|
|
21329
|
+
// Find whether queries tab is available in the case data
|
|
21330
|
+
var queriesTab = this.route.snapshot.data.case.tabs
|
|
21331
|
+
.filter(function (tab) { return tab.fields && tab.fields
|
|
21332
|
+
.some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
|
|
21333
|
+
// Loop through the list of parties and their case queries collections
|
|
21334
|
+
QueryManagementUtils.extractCaseQueriesFromCaseField();
|
|
21335
|
+
}
|
|
21336
|
+
};
|
|
21337
|
+
ReadQueryManagementFieldComponent.prototype.setQuery = function (query) {
|
|
21338
|
+
this.showQueryList = false;
|
|
21339
|
+
this.query = query;
|
|
21340
|
+
};
|
|
21341
|
+
return ReadQueryManagementFieldComponent;
|
|
21342
|
+
}(AbstractFieldReadComponent));
|
|
21343
|
+
ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
21344
|
+
ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [3, "query", "backClicked", 4, "ngIf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "partyMessageGroup", "selectedQuery"], [3, "query", "backClicked"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
|
|
21345
|
+
if (rf & 1) {
|
|
21346
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
21347
|
+
i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 0);
|
|
21348
|
+
i0__namespace.ɵɵtemplate(2, ReadQueryManagementFieldComponent_ccd_query_details_2_Template, 1, 1, "ccd-query-details", 1);
|
|
21349
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
21350
|
+
}
|
|
21351
|
+
if (rf & 2) {
|
|
21352
|
+
i0__namespace.ɵɵadvance(1);
|
|
21353
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
|
|
21354
|
+
i0__namespace.ɵɵadvance(1);
|
|
21355
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.showQueryList);
|
|
21356
|
+
}
|
|
21357
|
+
}, encapsulation: 2 });
|
|
21358
|
+
(function () {
|
|
21359
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21360
|
+
type: i0.Component,
|
|
21361
|
+
args: [{
|
|
21362
|
+
selector: 'ccd-read-query-management-field',
|
|
21363
|
+
templateUrl: './read-query-management-field.component.html',
|
|
21364
|
+
}]
|
|
21365
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
21366
|
+
})();
|
|
21367
|
+
|
|
20459
21368
|
function WriteQueryManagementFieldComponent_p_28_Template(rf, ctx) {
|
|
20460
21369
|
if (rf & 1) {
|
|
20461
21370
|
i0__namespace.ɵɵelementStart(0, "p", 25);
|
|
@@ -20659,6 +21568,59 @@
|
|
|
20659
21568
|
}], function () { return []; }, null);
|
|
20660
21569
|
})();
|
|
20661
21570
|
|
|
21571
|
+
var QueryManagementModule = /** @class */ (function () {
|
|
21572
|
+
function QueryManagementModule() {
|
|
21573
|
+
}
|
|
21574
|
+
return QueryManagementModule;
|
|
21575
|
+
}());
|
|
21576
|
+
QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
|
|
21577
|
+
QueryManagementModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: QueryManagementModule });
|
|
21578
|
+
QueryManagementModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
21579
|
+
i2.CommonModule,
|
|
21580
|
+
i3.ReactiveFormsModule,
|
|
21581
|
+
i1.RpxTranslationModule.forChild(),
|
|
21582
|
+
PipesModule
|
|
21583
|
+
]] });
|
|
21584
|
+
(function () {
|
|
21585
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
|
|
21586
|
+
WriteQueryManagementFieldComponent,
|
|
21587
|
+
QueryDetailsComponent,
|
|
21588
|
+
QueryCreateComponent,
|
|
21589
|
+
QueryListComponent,
|
|
21590
|
+
QueryDetailsTableComponent], imports: [i2.CommonModule,
|
|
21591
|
+
i3.ReactiveFormsModule, i1__namespace.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
|
|
21592
|
+
WriteQueryManagementFieldComponent] });
|
|
21593
|
+
})();
|
|
21594
|
+
(function () {
|
|
21595
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementModule, [{
|
|
21596
|
+
type: i0.NgModule,
|
|
21597
|
+
args: [{
|
|
21598
|
+
declarations: [
|
|
21599
|
+
ReadQueryManagementFieldComponent,
|
|
21600
|
+
WriteQueryManagementFieldComponent,
|
|
21601
|
+
QueryDetailsComponent,
|
|
21602
|
+
QueryCreateComponent,
|
|
21603
|
+
QueryListComponent,
|
|
21604
|
+
QueryDetailsTableComponent,
|
|
21605
|
+
],
|
|
21606
|
+
imports: [
|
|
21607
|
+
i2.CommonModule,
|
|
21608
|
+
i3.ReactiveFormsModule,
|
|
21609
|
+
i1.RpxTranslationModule.forChild(),
|
|
21610
|
+
PipesModule
|
|
21611
|
+
],
|
|
21612
|
+
exports: [
|
|
21613
|
+
ReadQueryManagementFieldComponent,
|
|
21614
|
+
WriteQueryManagementFieldComponent
|
|
21615
|
+
],
|
|
21616
|
+
}]
|
|
21617
|
+
}], null, null);
|
|
21618
|
+
})();
|
|
21619
|
+
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i2__namespace.NgForOf, i2__namespace.NgIf, QueryListComponent,
|
|
21620
|
+
QueryDetailsComponent], []);
|
|
21621
|
+
i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i2__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe, CaseReferencePipe]);
|
|
21622
|
+
i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i2__namespace.NgIf, QueryDetailsTableComponent], [i1__namespace.RpxTranslatePipe]);
|
|
21623
|
+
|
|
20662
21624
|
var ReadTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
20663
21625
|
__extends(ReadTextAreaFieldComponent, _super);
|
|
20664
21626
|
function ReadTextAreaFieldComponent() {
|
|
@@ -25786,13 +26748,6 @@
|
|
|
25786
26748
|
}] });
|
|
25787
26749
|
})();
|
|
25788
26750
|
|
|
25789
|
-
var SortOrder;
|
|
25790
|
-
(function (SortOrder) {
|
|
25791
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
25792
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
25793
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
25794
|
-
})(SortOrder || (SortOrder = {}));
|
|
25795
|
-
|
|
25796
26751
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
|
|
25797
26752
|
if (rf & 1) {
|
|
25798
26753
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -27759,482 +28714,6 @@
|
|
|
27759
28714
|
}], null, null);
|
|
27760
28715
|
})();
|
|
27761
28716
|
|
|
27762
|
-
var CcdCaseTitlePipe = /** @class */ (function () {
|
|
27763
|
-
function CcdCaseTitlePipe(placeholderService, fieldsUtils) {
|
|
27764
|
-
this.placeholderService = placeholderService;
|
|
27765
|
-
this.fieldsUtils = fieldsUtils;
|
|
27766
|
-
}
|
|
27767
|
-
CcdCaseTitlePipe.prototype.transform = function (caseTitle, caseFields, values) {
|
|
27768
|
-
var caseFieldValues = this.getReadOnlyAndFormFields(values, caseFields);
|
|
27769
|
-
var result = this.placeholderService.resolvePlaceholders(caseFieldValues, caseTitle);
|
|
27770
|
-
return result;
|
|
27771
|
-
};
|
|
27772
|
-
CcdCaseTitlePipe.prototype.getReadOnlyAndFormFields = function (formGroup, caseFields) {
|
|
27773
|
-
return this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(caseFields, formGroup.getRawValue());
|
|
27774
|
-
};
|
|
27775
|
-
return CcdCaseTitlePipe;
|
|
27776
|
-
}());
|
|
27777
|
-
CcdCaseTitlePipe.ɵfac = function CcdCaseTitlePipe_Factory(t) { return new (t || CcdCaseTitlePipe)(i0__namespace.ɵɵdirectiveInject(exports.PlaceholderService), i0__namespace.ɵɵdirectiveInject(FieldsUtils)); };
|
|
27778
|
-
CcdCaseTitlePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCaseTitle", type: CcdCaseTitlePipe, pure: true });
|
|
27779
|
-
(function () {
|
|
27780
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCaseTitlePipe, [{
|
|
27781
|
-
type: i0.Pipe,
|
|
27782
|
-
args: [{
|
|
27783
|
-
name: 'ccdCaseTitle'
|
|
27784
|
-
}]
|
|
27785
|
-
}], function () { return [{ type: exports.PlaceholderService }, { type: FieldsUtils }]; }, null);
|
|
27786
|
-
})();
|
|
27787
|
-
|
|
27788
|
-
var CcdCollectionTableCaseFieldsFilterPipe = /** @class */ (function () {
|
|
27789
|
-
function CcdCollectionTableCaseFieldsFilterPipe() {
|
|
27790
|
-
}
|
|
27791
|
-
CcdCollectionTableCaseFieldsFilterPipe.prototype.transform = function (objs, caseField, value) {
|
|
27792
|
-
var fields = objs.map(function (obj) { return (Object.assign(Object.assign({}, obj.value.caseField), { type: obj.value.type.type ? obj.value.type.type : obj.value.type })); });
|
|
27793
|
-
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
27794
|
-
id: caseField ? caseField.id : '',
|
|
27795
|
-
label: caseField ? caseField.label : '',
|
|
27796
|
-
display_context: 'READONLY',
|
|
27797
|
-
value: value,
|
|
27798
|
-
field_type: {
|
|
27799
|
-
id: caseField ? caseField.id : '',
|
|
27800
|
-
type: 'Complex',
|
|
27801
|
-
complex_fields: fields,
|
|
27802
|
-
}
|
|
27803
|
-
});
|
|
27804
|
-
};
|
|
27805
|
-
return CcdCollectionTableCaseFieldsFilterPipe;
|
|
27806
|
-
}());
|
|
27807
|
-
CcdCollectionTableCaseFieldsFilterPipe.ɵfac = function CcdCollectionTableCaseFieldsFilterPipe_Factory(t) { return new (t || CcdCollectionTableCaseFieldsFilterPipe)(); };
|
|
27808
|
-
CcdCollectionTableCaseFieldsFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCollectionTableCaseFieldsFilter", type: CcdCollectionTableCaseFieldsFilterPipe, pure: true });
|
|
27809
|
-
(function () {
|
|
27810
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCollectionTableCaseFieldsFilterPipe, [{
|
|
27811
|
-
type: i0.Pipe,
|
|
27812
|
-
args: [{
|
|
27813
|
-
name: 'ccdCollectionTableCaseFieldsFilter'
|
|
27814
|
-
}]
|
|
27815
|
-
}], null, null);
|
|
27816
|
-
})();
|
|
27817
|
-
|
|
27818
|
-
var CcdCYAPageLabelFilterPipe = /** @class */ (function () {
|
|
27819
|
-
function CcdCYAPageLabelFilterPipe() {
|
|
27820
|
-
this.getNonLabelComplexFieldType = function (complexFields) { return complexFields.filter(function (caseField) { return caseField.field_type.type !== 'Label'; }); };
|
|
27821
|
-
}
|
|
27822
|
-
CcdCYAPageLabelFilterPipe.prototype.transform = function (caseFields) {
|
|
27823
|
-
var _this = this;
|
|
27824
|
-
return caseFields.map(function (caseField) {
|
|
27825
|
-
if (caseField.field_type.collection_field_type &&
|
|
27826
|
-
caseField.field_type.collection_field_type.complex_fields &&
|
|
27827
|
-
caseField.field_type.collection_field_type.complex_fields.length) {
|
|
27828
|
-
caseField.field_type.collection_field_type.complex_fields = _this.transform(caseField.field_type.collection_field_type.complex_fields);
|
|
27829
|
-
}
|
|
27830
|
-
if (caseField.field_type.complex_fields && caseField.field_type.complex_fields.length) {
|
|
27831
|
-
caseField.field_type.complex_fields = _this.getNonLabelComplexFieldType(caseField.field_type.complex_fields);
|
|
27832
|
-
}
|
|
27833
|
-
return caseField;
|
|
27834
|
-
});
|
|
27835
|
-
};
|
|
27836
|
-
return CcdCYAPageLabelFilterPipe;
|
|
27837
|
-
}());
|
|
27838
|
-
CcdCYAPageLabelFilterPipe.ɵfac = function CcdCYAPageLabelFilterPipe_Factory(t) { return new (t || CcdCYAPageLabelFilterPipe)(); };
|
|
27839
|
-
CcdCYAPageLabelFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdCYAPageLabelFilter", type: CcdCYAPageLabelFilterPipe, pure: true });
|
|
27840
|
-
(function () {
|
|
27841
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdCYAPageLabelFilterPipe, [{
|
|
27842
|
-
type: i0.Pipe,
|
|
27843
|
-
args: [{
|
|
27844
|
-
name: 'ccdCYAPageLabelFilter'
|
|
27845
|
-
}]
|
|
27846
|
-
}], null, null);
|
|
27847
|
-
})();
|
|
27848
|
-
|
|
27849
|
-
var ReadFieldsFilterPipe = /** @class */ (function () {
|
|
27850
|
-
function ReadFieldsFilterPipe() {
|
|
27851
|
-
}
|
|
27852
|
-
/**
|
|
27853
|
-
* Complex type should have at least on simple field descendant with a value.
|
|
27854
|
-
*/
|
|
27855
|
-
ReadFieldsFilterPipe.isValidComplex = function (field, values) {
|
|
27856
|
-
values = values || {};
|
|
27857
|
-
var type = field.field_type;
|
|
27858
|
-
var value = ReadFieldsFilterPipe.getValue(field, values);
|
|
27859
|
-
var hasChildrenWithValue = type.complex_fields.find(function (f) {
|
|
27860
|
-
var willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
|
|
27861
|
-
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, value).hidden !== true;
|
|
27862
|
-
});
|
|
27863
|
-
return !!hasChildrenWithValue;
|
|
27864
|
-
};
|
|
27865
|
-
ReadFieldsFilterPipe.isValidCollection = function (field, values) {
|
|
27866
|
-
// if field is collection and it has complex/collection child field; parent field doesnt have value defined
|
|
27867
|
-
if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
|
|
27868
|
-
return true;
|
|
27869
|
-
}
|
|
27870
|
-
var isNotEmpty = Array.isArray(field.value) && field.value.length > 0;
|
|
27871
|
-
if (isNotEmpty && field.field_type.collection_field_type.type === 'Complex') {
|
|
27872
|
-
return !!field.value.find(function (item) {
|
|
27873
|
-
var complexField = classTransformer.plainToClassFromExist(new CaseField(), {
|
|
27874
|
-
id: field.field_type.collection_field_type.id,
|
|
27875
|
-
field_type: field.field_type.collection_field_type,
|
|
27876
|
-
value: item.value,
|
|
27877
|
-
label: null,
|
|
27878
|
-
});
|
|
27879
|
-
return ReadFieldsFilterPipe.isValidComplex(complexField);
|
|
27880
|
-
});
|
|
27881
|
-
}
|
|
27882
|
-
return isNotEmpty;
|
|
27883
|
-
};
|
|
27884
|
-
ReadFieldsFilterPipe.isEmpty = function (value) {
|
|
27885
|
-
return ReadFieldsFilterPipe.EMPTY_VALUES.indexOf(value) !== -1
|
|
27886
|
-
|| value.length === 0;
|
|
27887
|
-
};
|
|
27888
|
-
ReadFieldsFilterPipe.isCompound = function (field) {
|
|
27889
|
-
return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
|
|
27890
|
-
};
|
|
27891
|
-
ReadFieldsFilterPipe.isValidCompound = function (field, value) {
|
|
27892
|
-
return ReadFieldsFilterPipe.isCompound(field)
|
|
27893
|
-
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
27894
|
-
};
|
|
27895
|
-
ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels) {
|
|
27896
|
-
if (ignoreLabels === void 0) { ignoreLabels = false; }
|
|
27897
|
-
// We shouldn't ditch labels.
|
|
27898
|
-
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
27899
|
-
return true;
|
|
27900
|
-
}
|
|
27901
|
-
// We also shouldn't ditch fields that will always come back with a null value.
|
|
27902
|
-
if (this.ALWAYS_NULL_FIELDS.indexOf(field.field_type.type) !== -1) {
|
|
27903
|
-
return true;
|
|
27904
|
-
}
|
|
27905
|
-
value = value || {};
|
|
27906
|
-
if (ReadFieldsFilterPipe.isCompound(field)) {
|
|
27907
|
-
return ReadFieldsFilterPipe.isValidCompound(field, value);
|
|
27908
|
-
}
|
|
27909
|
-
return !ReadFieldsFilterPipe.isEmpty(field.value)
|
|
27910
|
-
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
27911
|
-
};
|
|
27912
|
-
ReadFieldsFilterPipe.getValue = function (field, values, index) {
|
|
27913
|
-
if (ReadFieldsFilterPipe.isEmpty(field.value)) {
|
|
27914
|
-
var value = void 0;
|
|
27915
|
-
if (index >= 0) {
|
|
27916
|
-
value = values[index].value[field.id];
|
|
27917
|
-
}
|
|
27918
|
-
else {
|
|
27919
|
-
value = values[field.id];
|
|
27920
|
-
}
|
|
27921
|
-
return value;
|
|
27922
|
-
}
|
|
27923
|
-
return field.value;
|
|
27924
|
-
};
|
|
27925
|
-
ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
|
|
27926
|
-
if (field.display_context === 'HIDDEN') {
|
|
27927
|
-
field.hidden = true;
|
|
27928
|
-
}
|
|
27929
|
-
else if (field.show_condition) {
|
|
27930
|
-
var cond = void 0;
|
|
27931
|
-
if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
27932
|
-
var search = fieldId + ".";
|
|
27933
|
-
var searchRegExp = new RegExp(search, 'g');
|
|
27934
|
-
var replaceWith = '';
|
|
27935
|
-
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|
|
27936
|
-
}
|
|
27937
|
-
else {
|
|
27938
|
-
cond = ShowCondition.getInstance(field.show_condition);
|
|
27939
|
-
}
|
|
27940
|
-
field.hidden = !cond.match(formValue, path);
|
|
27941
|
-
}
|
|
27942
|
-
else {
|
|
27943
|
-
field.hidden = false;
|
|
27944
|
-
}
|
|
27945
|
-
return field;
|
|
27946
|
-
};
|
|
27947
|
-
/**
|
|
27948
|
-
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
27949
|
-
*/
|
|
27950
|
-
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path) {
|
|
27951
|
-
if (setupHidden === void 0) { setupHidden = false; }
|
|
27952
|
-
if (!complexField || !complexField.field_type) {
|
|
27953
|
-
return [];
|
|
27954
|
-
}
|
|
27955
|
-
var fields = complexField.field_type.complex_fields || [];
|
|
27956
|
-
var values = complexField.value || {};
|
|
27957
|
-
var checkConditionalShowAgainst = values;
|
|
27958
|
-
var formGroupAvailable = false;
|
|
27959
|
-
if (formGroup) {
|
|
27960
|
-
checkConditionalShowAgainst = formGroup.value;
|
|
27961
|
-
formGroupAvailable = true;
|
|
27962
|
-
}
|
|
27963
|
-
return fields
|
|
27964
|
-
.map(function (f) {
|
|
27965
|
-
var clone = FieldsUtils.cloneObject(f);
|
|
27966
|
-
var value = ReadFieldsFilterPipe.getValue(f, values, index);
|
|
27967
|
-
if (!ReadFieldsFilterPipe.isEmpty(value)) {
|
|
27968
|
-
clone.value = value;
|
|
27969
|
-
}
|
|
27970
|
-
return clone;
|
|
27971
|
-
})
|
|
27972
|
-
.map(function (f) {
|
|
27973
|
-
if (!f.display_context) {
|
|
27974
|
-
f.display_context = complexField.display_context;
|
|
27975
|
-
}
|
|
27976
|
-
if (setupHidden) {
|
|
27977
|
-
ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst, path, formGroupAvailable, complexField.id);
|
|
27978
|
-
}
|
|
27979
|
-
return f;
|
|
27980
|
-
})
|
|
27981
|
-
.filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f); });
|
|
27982
|
-
};
|
|
27983
|
-
return ReadFieldsFilterPipe;
|
|
27984
|
-
}());
|
|
27985
|
-
ReadFieldsFilterPipe.EMPTY_VALUES = [
|
|
27986
|
-
undefined,
|
|
27987
|
-
null,
|
|
27988
|
-
'',
|
|
27989
|
-
{}
|
|
27990
|
-
];
|
|
27991
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
|
|
27992
|
-
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
27993
|
-
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
27994
|
-
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
27995
|
-
};
|
|
27996
|
-
ReadFieldsFilterPipe.ɵfac = function ReadFieldsFilterPipe_Factory(t) { return new (t || ReadFieldsFilterPipe)(); };
|
|
27997
|
-
ReadFieldsFilterPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdReadFieldsFilter", type: ReadFieldsFilterPipe, pure: true });
|
|
27998
|
-
(function () {
|
|
27999
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadFieldsFilterPipe, [{
|
|
28000
|
-
type: i0.Pipe,
|
|
28001
|
-
args: [{
|
|
28002
|
-
name: 'ccdReadFieldsFilter'
|
|
28003
|
-
}]
|
|
28004
|
-
}], null, null);
|
|
28005
|
-
})();
|
|
28006
|
-
|
|
28007
|
-
var CcdTabFieldsPipe = /** @class */ (function () {
|
|
28008
|
-
function CcdTabFieldsPipe() {
|
|
28009
|
-
}
|
|
28010
|
-
CcdTabFieldsPipe.prototype.transform = function (tab) {
|
|
28011
|
-
var value = tab.fields.reduce(function (acc, field) {
|
|
28012
|
-
var _a;
|
|
28013
|
-
return Object.assign(Object.assign({}, acc), (_a = {}, _a[field.id] = field.value, _a));
|
|
28014
|
-
}, {});
|
|
28015
|
-
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
28016
|
-
id: tab.id,
|
|
28017
|
-
label: tab.label,
|
|
28018
|
-
display_context: 'READONLY',
|
|
28019
|
-
value: value,
|
|
28020
|
-
field_type: {
|
|
28021
|
-
id: tab.id,
|
|
28022
|
-
type: 'Complex',
|
|
28023
|
-
complex_fields: tab.fields
|
|
28024
|
-
}
|
|
28025
|
-
});
|
|
28026
|
-
};
|
|
28027
|
-
return CcdTabFieldsPipe;
|
|
28028
|
-
}());
|
|
28029
|
-
CcdTabFieldsPipe.ɵfac = function CcdTabFieldsPipe_Factory(t) { return new (t || CcdTabFieldsPipe)(); };
|
|
28030
|
-
CcdTabFieldsPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTabFieldsPipe, pure: true });
|
|
28031
|
-
(function () {
|
|
28032
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdTabFieldsPipe, [{
|
|
28033
|
-
type: i0.Pipe,
|
|
28034
|
-
args: [{
|
|
28035
|
-
name: 'ccdTabFields'
|
|
28036
|
-
}]
|
|
28037
|
-
}], null, null);
|
|
28038
|
-
})();
|
|
28039
|
-
|
|
28040
|
-
var CcdPageFieldsPipe = /** @class */ (function () {
|
|
28041
|
-
function CcdPageFieldsPipe() {
|
|
28042
|
-
}
|
|
28043
|
-
CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
|
|
28044
|
-
var complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
|
|
28045
|
-
var control = dataFormGroup.controls['data'].get(key);
|
|
28046
|
-
return control['caseField'];
|
|
28047
|
-
}).filter(function (field) {
|
|
28048
|
-
return !!page.case_fields.find(function (pcf) { return pcf.id === field.id; });
|
|
28049
|
-
}).sort(function (a, b) { return a.order - b.order; });
|
|
28050
|
-
var rawValue = dataFormGroup.value;
|
|
28051
|
-
var value = page.case_fields.reduce(function (acc, field) {
|
|
28052
|
-
var _a;
|
|
28053
|
-
var fieldValue = rawValue[field.id] || field.value;
|
|
28054
|
-
return Object.assign(Object.assign({}, acc), (_a = {}, _a[field.id] = fieldValue, _a));
|
|
28055
|
-
}, {});
|
|
28056
|
-
return classTransformer.plainToClassFromExist(new CaseField(), {
|
|
28057
|
-
id: page.id,
|
|
28058
|
-
label: page.label,
|
|
28059
|
-
display_context: 'READONLY',
|
|
28060
|
-
value: value,
|
|
28061
|
-
field_type: {
|
|
28062
|
-
id: page.id,
|
|
28063
|
-
type: 'Complex',
|
|
28064
|
-
complex_fields: complexFields
|
|
28065
|
-
}
|
|
28066
|
-
});
|
|
28067
|
-
};
|
|
28068
|
-
return CcdPageFieldsPipe;
|
|
28069
|
-
}());
|
|
28070
|
-
CcdPageFieldsPipe.ɵfac = function CcdPageFieldsPipe_Factory(t) { return new (t || CcdPageFieldsPipe)(); };
|
|
28071
|
-
CcdPageFieldsPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdPageFields", type: CcdPageFieldsPipe, pure: true });
|
|
28072
|
-
(function () {
|
|
28073
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CcdPageFieldsPipe, [{
|
|
28074
|
-
type: i0.Pipe,
|
|
28075
|
-
args: [{
|
|
28076
|
-
name: 'ccdPageFields'
|
|
28077
|
-
}]
|
|
28078
|
-
}], null, null);
|
|
28079
|
-
})();
|
|
28080
|
-
|
|
28081
|
-
var EnumDisplayDescriptionPipe = /** @class */ (function () {
|
|
28082
|
-
function EnumDisplayDescriptionPipe() {
|
|
28083
|
-
}
|
|
28084
|
-
EnumDisplayDescriptionPipe.prototype.transform = function (value) {
|
|
28085
|
-
return Object.values(value);
|
|
28086
|
-
};
|
|
28087
|
-
return EnumDisplayDescriptionPipe;
|
|
28088
|
-
}());
|
|
28089
|
-
EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
|
|
28090
|
-
EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
|
|
28091
|
-
(function () {
|
|
28092
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
|
|
28093
|
-
type: i0.Pipe,
|
|
28094
|
-
args: [{
|
|
28095
|
-
name: 'enumDisplayDescription'
|
|
28096
|
-
}]
|
|
28097
|
-
}], null, null);
|
|
28098
|
-
})();
|
|
28099
|
-
|
|
28100
|
-
var LinkCasesFromReasonValuePipe = /** @class */ (function () {
|
|
28101
|
-
function LinkCasesFromReasonValuePipe(linkedCasesService) {
|
|
28102
|
-
this.linkedCasesService = linkedCasesService;
|
|
28103
|
-
}
|
|
28104
|
-
LinkCasesFromReasonValuePipe.prototype.transform = function (linkFromReason) {
|
|
28105
|
-
var _a, _b, _c;
|
|
28106
|
-
if (linkFromReason === null || linkFromReason === void 0 ? void 0 : linkFromReason.otherDescription) {
|
|
28107
|
-
var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkFromReason.reasonCode; });
|
|
28108
|
-
return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
|
|
28109
|
-
? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkFromReason.otherDescription
|
|
28110
|
-
: reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
|
|
28111
|
-
}
|
|
28112
|
-
return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkFromReason.reasonCode; })) === null || _c === void 0 ? void 0 : _c.value_en;
|
|
28113
|
-
};
|
|
28114
|
-
return LinkCasesFromReasonValuePipe;
|
|
28115
|
-
}());
|
|
28116
|
-
LinkCasesFromReasonValuePipe.ɵfac = function LinkCasesFromReasonValuePipe_Factory(t) { return new (t || LinkCasesFromReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
28117
|
-
LinkCasesFromReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesFromReasonValue", type: LinkCasesFromReasonValuePipe, pure: true });
|
|
28118
|
-
(function () {
|
|
28119
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesFromReasonValuePipe, [{
|
|
28120
|
-
type: i0.Pipe,
|
|
28121
|
-
args: [{
|
|
28122
|
-
name: 'ccdLinkCasesFromReasonValue'
|
|
28123
|
-
}]
|
|
28124
|
-
}], function () { return [{ type: LinkedCasesService }]; }, null);
|
|
28125
|
-
})();
|
|
28126
|
-
|
|
28127
|
-
var LinkCasesReasonValuePipe = /** @class */ (function () {
|
|
28128
|
-
function LinkCasesReasonValuePipe(linkedCasesService) {
|
|
28129
|
-
this.linkedCasesService = linkedCasesService;
|
|
28130
|
-
}
|
|
28131
|
-
LinkCasesReasonValuePipe.prototype.transform = function (linkReason) {
|
|
28132
|
-
var _a, _b, _c;
|
|
28133
|
-
if (linkReason === null || linkReason === void 0 ? void 0 : linkReason.OtherDescription) {
|
|
28134
|
-
var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkReason.Reason; });
|
|
28135
|
-
return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
|
|
28136
|
-
? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkReason.OtherDescription
|
|
28137
|
-
: reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
|
|
28138
|
-
}
|
|
28139
|
-
return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkReason.Reason; })) === null || _c === void 0 ? void 0 : _c.value_en;
|
|
28140
|
-
};
|
|
28141
|
-
return LinkCasesReasonValuePipe;
|
|
28142
|
-
}());
|
|
28143
|
-
LinkCasesReasonValuePipe.ɵfac = function LinkCasesReasonValuePipe_Factory(t) { return new (t || LinkCasesReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
28144
|
-
LinkCasesReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesReasonValue", type: LinkCasesReasonValuePipe, pure: true });
|
|
28145
|
-
(function () {
|
|
28146
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesReasonValuePipe, [{
|
|
28147
|
-
type: i0.Pipe,
|
|
28148
|
-
args: [{
|
|
28149
|
-
name: 'ccdLinkCasesReasonValue'
|
|
28150
|
-
}]
|
|
28151
|
-
}], function () { return [{ type: LinkedCasesService }]; }, null);
|
|
28152
|
-
})();
|
|
28153
|
-
|
|
28154
|
-
var SortSearchResultPipe = /** @class */ (function () {
|
|
28155
|
-
function SortSearchResultPipe() {
|
|
28156
|
-
}
|
|
28157
|
-
SortSearchResultPipe.prototype.transform = function (searchResults, sortParameters) {
|
|
28158
|
-
if (util.isUndefined(searchResults) || util.isUndefined(sortParameters)) {
|
|
28159
|
-
return searchResults;
|
|
28160
|
-
}
|
|
28161
|
-
return searchResults.sort(function (a, b) {
|
|
28162
|
-
return sortParameters.comparator.compare(a, b)
|
|
28163
|
-
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
28164
|
-
});
|
|
28165
|
-
};
|
|
28166
|
-
return SortSearchResultPipe;
|
|
28167
|
-
}());
|
|
28168
|
-
SortSearchResultPipe.ɵfac = function SortSearchResultPipe_Factory(t) { return new (t || SortSearchResultPipe)(); };
|
|
28169
|
-
SortSearchResultPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdSortSearchResult", type: SortSearchResultPipe, pure: true });
|
|
28170
|
-
(function () {
|
|
28171
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SortSearchResultPipe, [{
|
|
28172
|
-
type: i0.Pipe,
|
|
28173
|
-
args: [{
|
|
28174
|
-
name: 'ccdSortSearchResult'
|
|
28175
|
-
}]
|
|
28176
|
-
}], null, null);
|
|
28177
|
-
})();
|
|
28178
|
-
|
|
28179
|
-
var pipeDeclarations = [
|
|
28180
|
-
CaseReferencePipe,
|
|
28181
|
-
SortSearchResultPipe,
|
|
28182
|
-
CcdCaseTitlePipe,
|
|
28183
|
-
CcdCollectionTableCaseFieldsFilterPipe,
|
|
28184
|
-
CcdCYAPageLabelFilterPipe,
|
|
28185
|
-
ReadFieldsFilterPipe,
|
|
28186
|
-
CcdTabFieldsPipe,
|
|
28187
|
-
CcdPageFieldsPipe,
|
|
28188
|
-
LinkCasesReasonValuePipe,
|
|
28189
|
-
LinkCasesFromReasonValuePipe,
|
|
28190
|
-
EnumDisplayDescriptionPipe
|
|
28191
|
-
];
|
|
28192
|
-
var PipesModule = /** @class */ (function () {
|
|
28193
|
-
function PipesModule() {
|
|
28194
|
-
}
|
|
28195
|
-
return PipesModule;
|
|
28196
|
-
}());
|
|
28197
|
-
PipesModule.ɵfac = function PipesModule_Factory(t) { return new (t || PipesModule)(); };
|
|
28198
|
-
PipesModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PipesModule });
|
|
28199
|
-
PipesModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
28200
|
-
i2.CommonModule,
|
|
28201
|
-
]] });
|
|
28202
|
-
(function () {
|
|
28203
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PipesModule, { declarations: [CaseReferencePipe,
|
|
28204
|
-
SortSearchResultPipe,
|
|
28205
|
-
CcdCaseTitlePipe,
|
|
28206
|
-
CcdCollectionTableCaseFieldsFilterPipe,
|
|
28207
|
-
CcdCYAPageLabelFilterPipe,
|
|
28208
|
-
ReadFieldsFilterPipe,
|
|
28209
|
-
CcdTabFieldsPipe,
|
|
28210
|
-
CcdPageFieldsPipe,
|
|
28211
|
-
LinkCasesReasonValuePipe,
|
|
28212
|
-
LinkCasesFromReasonValuePipe,
|
|
28213
|
-
EnumDisplayDescriptionPipe], imports: [i2.CommonModule], exports: [CaseReferencePipe,
|
|
28214
|
-
SortSearchResultPipe,
|
|
28215
|
-
CcdCaseTitlePipe,
|
|
28216
|
-
CcdCollectionTableCaseFieldsFilterPipe,
|
|
28217
|
-
CcdCYAPageLabelFilterPipe,
|
|
28218
|
-
ReadFieldsFilterPipe,
|
|
28219
|
-
CcdTabFieldsPipe,
|
|
28220
|
-
CcdPageFieldsPipe,
|
|
28221
|
-
LinkCasesReasonValuePipe,
|
|
28222
|
-
LinkCasesFromReasonValuePipe,
|
|
28223
|
-
EnumDisplayDescriptionPipe] });
|
|
28224
|
-
})();
|
|
28225
|
-
(function () {
|
|
28226
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
|
|
28227
|
-
type: i0.NgModule,
|
|
28228
|
-
args: [{
|
|
28229
|
-
imports: [
|
|
28230
|
-
i2.CommonModule,
|
|
28231
|
-
],
|
|
28232
|
-
declarations: __spread(pipeDeclarations),
|
|
28233
|
-
exports: __spread(pipeDeclarations)
|
|
28234
|
-
}]
|
|
28235
|
-
}], null, null);
|
|
28236
|
-
})();
|
|
28237
|
-
|
|
28238
28717
|
var CollectionCreateCheckerService = /** @class */ (function () {
|
|
28239
28718
|
function CollectionCreateCheckerService() {
|
|
28240
28719
|
}
|
|
@@ -28307,486 +28786,6 @@
|
|
|
28307
28786
|
}], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null);
|
|
28308
28787
|
})();
|
|
28309
28788
|
|
|
28310
|
-
var QueryCreateComponent = /** @class */ (function () {
|
|
28311
|
-
function QueryCreateComponent() {
|
|
28312
|
-
}
|
|
28313
|
-
QueryCreateComponent.prototype.ngOnInit = function () {
|
|
28314
|
-
};
|
|
28315
|
-
return QueryCreateComponent;
|
|
28316
|
-
}());
|
|
28317
|
-
QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
|
|
28318
|
-
QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
28319
|
-
(function () {
|
|
28320
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
|
|
28321
|
-
type: i0.Component,
|
|
28322
|
-
args: [{
|
|
28323
|
-
selector: 'ccd-query-create',
|
|
28324
|
-
templateUrl: './query-create.component.html',
|
|
28325
|
-
}]
|
|
28326
|
-
}], function () { return []; }, null);
|
|
28327
|
-
})();
|
|
28328
|
-
|
|
28329
|
-
function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) {
|
|
28330
|
-
if (rf & 1) {
|
|
28331
|
-
i0__namespace.ɵɵelementStart(0, "tr", 3);
|
|
28332
|
-
i0__namespace.ɵɵelementStart(1, "th", 4);
|
|
28333
|
-
i0__namespace.ɵɵtext(2);
|
|
28334
|
-
i0__namespace.ɵɵpipe(3, "rpxTranslate");
|
|
28335
|
-
i0__namespace.ɵɵelementEnd();
|
|
28336
|
-
i0__namespace.ɵɵelementStart(4, "td", 5);
|
|
28337
|
-
i0__namespace.ɵɵtext(5);
|
|
28338
|
-
i0__namespace.ɵɵpipe(6, "date");
|
|
28339
|
-
i0__namespace.ɵɵelementEnd();
|
|
28340
|
-
i0__namespace.ɵɵelementEnd();
|
|
28341
|
-
}
|
|
28342
|
-
if (rf & 2) {
|
|
28343
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
28344
|
-
i0__namespace.ɵɵadvance(2);
|
|
28345
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "What is the date of the hearing your query is related to?"));
|
|
28346
|
-
i0__namespace.ɵɵadvance(3);
|
|
28347
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(6, 4, ctx_r1.queryItem.hearingDate, "dd MMM yyyy"));
|
|
28348
|
-
}
|
|
28349
|
-
}
|
|
28350
|
-
function QueryDetailsTableComponent_ng_container_0_div_41_Template(rf, ctx) {
|
|
28351
|
-
if (rf & 1) {
|
|
28352
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
28353
|
-
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
28354
|
-
i0__namespace.ɵɵtext(2);
|
|
28355
|
-
i0__namespace.ɵɵelementEnd();
|
|
28356
|
-
i0__namespace.ɵɵelementEnd();
|
|
28357
|
-
}
|
|
28358
|
-
if (rf & 2) {
|
|
28359
|
-
var attachment_r3 = ctx.$implicit;
|
|
28360
|
-
i0__namespace.ɵɵadvance(1);
|
|
28361
|
-
i0__namespace.ɵɵproperty("href", attachment_r3._links.self.href, i0__namespace.ɵɵsanitizeUrl);
|
|
28362
|
-
i0__namespace.ɵɵadvance(1);
|
|
28363
|
-
i0__namespace.ɵɵtextInterpolate(attachment_r3.originalDocumentName);
|
|
28364
|
-
}
|
|
28365
|
-
}
|
|
28366
|
-
function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) {
|
|
28367
|
-
if (rf & 1) {
|
|
28368
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
28369
|
-
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
28370
|
-
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
28371
|
-
i0__namespace.ɵɵelementStart(3, "tbody", 2);
|
|
28372
|
-
i0__namespace.ɵɵelementStart(4, "tr", 3);
|
|
28373
|
-
i0__namespace.ɵɵelementStart(5, "th", 4);
|
|
28374
|
-
i0__namespace.ɵɵtext(6);
|
|
28375
|
-
i0__namespace.ɵɵpipe(7, "rpxTranslate");
|
|
28376
|
-
i0__namespace.ɵɵelementEnd();
|
|
28377
|
-
i0__namespace.ɵɵelementStart(8, "td", 5);
|
|
28378
|
-
i0__namespace.ɵɵtext(9);
|
|
28379
|
-
i0__namespace.ɵɵelementEnd();
|
|
28380
|
-
i0__namespace.ɵɵelementEnd();
|
|
28381
|
-
i0__namespace.ɵɵelementStart(10, "tr", 3);
|
|
28382
|
-
i0__namespace.ɵɵelementStart(11, "th", 4);
|
|
28383
|
-
i0__namespace.ɵɵtext(12);
|
|
28384
|
-
i0__namespace.ɵɵpipe(13, "rpxTranslate");
|
|
28385
|
-
i0__namespace.ɵɵelementEnd();
|
|
28386
|
-
i0__namespace.ɵɵelementStart(14, "td", 5);
|
|
28387
|
-
i0__namespace.ɵɵtext(15);
|
|
28388
|
-
i0__namespace.ɵɵpipe(16, "date");
|
|
28389
|
-
i0__namespace.ɵɵelementEnd();
|
|
28390
|
-
i0__namespace.ɵɵelementEnd();
|
|
28391
|
-
i0__namespace.ɵɵelementStart(17, "tr", 3);
|
|
28392
|
-
i0__namespace.ɵɵelementStart(18, "th", 4);
|
|
28393
|
-
i0__namespace.ɵɵtext(19);
|
|
28394
|
-
i0__namespace.ɵɵpipe(20, "rpxTranslate");
|
|
28395
|
-
i0__namespace.ɵɵelementEnd();
|
|
28396
|
-
i0__namespace.ɵɵelementStart(21, "td", 5);
|
|
28397
|
-
i0__namespace.ɵɵtext(22);
|
|
28398
|
-
i0__namespace.ɵɵelementEnd();
|
|
28399
|
-
i0__namespace.ɵɵelementEnd();
|
|
28400
|
-
i0__namespace.ɵɵelementStart(23, "tr", 3);
|
|
28401
|
-
i0__namespace.ɵɵelementStart(24, "th", 4);
|
|
28402
|
-
i0__namespace.ɵɵtext(25);
|
|
28403
|
-
i0__namespace.ɵɵpipe(26, "rpxTranslate");
|
|
28404
|
-
i0__namespace.ɵɵelementEnd();
|
|
28405
|
-
i0__namespace.ɵɵelementStart(27, "td", 5);
|
|
28406
|
-
i0__namespace.ɵɵtext(28);
|
|
28407
|
-
i0__namespace.ɵɵelementEnd();
|
|
28408
|
-
i0__namespace.ɵɵelementEnd();
|
|
28409
|
-
i0__namespace.ɵɵelementStart(29, "tr", 3);
|
|
28410
|
-
i0__namespace.ɵɵelementStart(30, "th", 4);
|
|
28411
|
-
i0__namespace.ɵɵtext(31);
|
|
28412
|
-
i0__namespace.ɵɵpipe(32, "rpxTranslate");
|
|
28413
|
-
i0__namespace.ɵɵelementEnd();
|
|
28414
|
-
i0__namespace.ɵɵelementStart(33, "td", 5);
|
|
28415
|
-
i0__namespace.ɵɵtext(34);
|
|
28416
|
-
i0__namespace.ɵɵelementEnd();
|
|
28417
|
-
i0__namespace.ɵɵelementEnd();
|
|
28418
|
-
i0__namespace.ɵɵtemplate(35, QueryDetailsTableComponent_ng_container_0_tr_35_Template, 7, 7, "tr", 6);
|
|
28419
|
-
i0__namespace.ɵɵelementStart(36, "tr", 3);
|
|
28420
|
-
i0__namespace.ɵɵelementStart(37, "th", 4);
|
|
28421
|
-
i0__namespace.ɵɵtext(38);
|
|
28422
|
-
i0__namespace.ɵɵpipe(39, "rpxTranslate");
|
|
28423
|
-
i0__namespace.ɵɵelementEnd();
|
|
28424
|
-
i0__namespace.ɵɵelementStart(40, "td", 5);
|
|
28425
|
-
i0__namespace.ɵɵtemplate(41, QueryDetailsTableComponent_ng_container_0_div_41_Template, 3, 2, "div", 7);
|
|
28426
|
-
i0__namespace.ɵɵelementEnd();
|
|
28427
|
-
i0__namespace.ɵɵelementEnd();
|
|
28428
|
-
i0__namespace.ɵɵelementEnd();
|
|
28429
|
-
i0__namespace.ɵɵelementEnd();
|
|
28430
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
28431
|
-
}
|
|
28432
|
-
if (rf & 2) {
|
|
28433
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
28434
|
-
i0__namespace.ɵɵadvance(1);
|
|
28435
|
-
i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 14, "Details of the query"));
|
|
28436
|
-
i0__namespace.ɵɵadvance(5);
|
|
28437
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 16, "Last submitted by"));
|
|
28438
|
-
i0__namespace.ɵɵadvance(3);
|
|
28439
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
|
|
28440
|
-
i0__namespace.ɵɵadvance(3);
|
|
28441
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(13, 18, "Submission date"));
|
|
28442
|
-
i0__namespace.ɵɵadvance(3);
|
|
28443
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(16, 20, ctx_r0.queryItem.createdOn, "dd MMM yyyy"));
|
|
28444
|
-
i0__namespace.ɵɵadvance(4);
|
|
28445
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(20, 23, "Query subject"));
|
|
28446
|
-
i0__namespace.ɵɵadvance(3);
|
|
28447
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
|
|
28448
|
-
i0__namespace.ɵɵadvance(3);
|
|
28449
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(26, 25, "Query body"));
|
|
28450
|
-
i0__namespace.ɵɵadvance(3);
|
|
28451
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.body);
|
|
28452
|
-
i0__namespace.ɵɵadvance(3);
|
|
28453
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(32, 27, "Is the query hearing related?"));
|
|
28454
|
-
i0__namespace.ɵɵadvance(3);
|
|
28455
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
|
|
28456
|
-
i0__namespace.ɵɵadvance(1);
|
|
28457
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.queryItem.isHearingRelated);
|
|
28458
|
-
i0__namespace.ɵɵadvance(3);
|
|
28459
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(39, 29, "Attachments"));
|
|
28460
|
-
i0__namespace.ɵɵadvance(3);
|
|
28461
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
|
|
28462
|
-
}
|
|
28463
|
-
}
|
|
28464
|
-
var QueryDetailsTableComponent = /** @class */ (function () {
|
|
28465
|
-
function QueryDetailsTableComponent() {
|
|
28466
|
-
}
|
|
28467
|
-
return QueryDetailsTableComponent;
|
|
28468
|
-
}());
|
|
28469
|
-
QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
|
|
28470
|
-
QueryDetailsTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"]], template: function QueryDetailsTableComponent_Template(rf, ctx) {
|
|
28471
|
-
if (rf & 1) {
|
|
28472
|
-
i0__namespace.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 42, 31, "ng-container", 0);
|
|
28473
|
-
}
|
|
28474
|
-
if (rf & 2) {
|
|
28475
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.queryItem);
|
|
28476
|
-
}
|
|
28477
|
-
}, directives: [i2__namespace.NgIf, i2__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i2__namespace.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
28478
|
-
(function () {
|
|
28479
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsTableComponent, [{
|
|
28480
|
-
type: i0.Component,
|
|
28481
|
-
args: [{
|
|
28482
|
-
selector: 'ccd-query-details-table',
|
|
28483
|
-
templateUrl: './query-details-table.component.html',
|
|
28484
|
-
styleUrls: ['./query-details-table.component.scss']
|
|
28485
|
-
}]
|
|
28486
|
-
}], null, { queryItem: [{
|
|
28487
|
-
type: i0.Input
|
|
28488
|
-
}] });
|
|
28489
|
-
})();
|
|
28490
|
-
|
|
28491
|
-
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
|
|
28492
|
-
if (rf & 1) {
|
|
28493
|
-
var _r2_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28494
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
28495
|
-
i0__namespace.ɵɵelementStart(1, "p");
|
|
28496
|
-
i0__namespace.ɵɵelement(2, "br");
|
|
28497
|
-
i0__namespace.ɵɵelementStart(3, "a", 1);
|
|
28498
|
-
i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r2_1); var ctx_r1 = i0__namespace.ɵɵnextContext(); return ctx_r1.onBack(); });
|
|
28499
|
-
i0__namespace.ɵɵtext(4);
|
|
28500
|
-
i0__namespace.ɵɵpipe(5, "rpxTranslate");
|
|
28501
|
-
i0__namespace.ɵɵelementEnd();
|
|
28502
|
-
i0__namespace.ɵɵelementEnd();
|
|
28503
|
-
i0__namespace.ɵɵelementStart(6, "div", 2);
|
|
28504
|
-
i0__namespace.ɵɵtext(7);
|
|
28505
|
-
i0__namespace.ɵɵpipe(8, "rpxTranslate");
|
|
28506
|
-
i0__namespace.ɵɵelementEnd();
|
|
28507
|
-
i0__namespace.ɵɵelement(9, "ccd-query-details-table", 3);
|
|
28508
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
28509
|
-
}
|
|
28510
|
-
if (rf & 2) {
|
|
28511
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
28512
|
-
i0__namespace.ɵɵadvance(4);
|
|
28513
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 3, "Back to queries"));
|
|
28514
|
-
i0__namespace.ɵɵadvance(3);
|
|
28515
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 5, "Query details"));
|
|
28516
|
-
i0__namespace.ɵɵadvance(2);
|
|
28517
|
-
i0__namespace.ɵɵproperty("queryItem", ctx_r0.query);
|
|
28518
|
-
}
|
|
28519
|
-
}
|
|
28520
|
-
var QueryDetailsComponent = /** @class */ (function () {
|
|
28521
|
-
function QueryDetailsComponent() {
|
|
28522
|
-
this.backClicked = new i0.EventEmitter();
|
|
28523
|
-
}
|
|
28524
|
-
QueryDetailsComponent.prototype.onBack = function () {
|
|
28525
|
-
this.backClicked.emit(true);
|
|
28526
|
-
};
|
|
28527
|
-
return QueryDetailsComponent;
|
|
28528
|
-
}());
|
|
28529
|
-
QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
|
|
28530
|
-
QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"]], template: function QueryDetailsComponent_Template(rf, ctx) {
|
|
28531
|
-
if (rf & 1) {
|
|
28532
|
-
i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 7, "ng-container", 0);
|
|
28533
|
-
}
|
|
28534
|
-
if (rf & 2) {
|
|
28535
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.query);
|
|
28536
|
-
}
|
|
28537
|
-
}, styles: [".query_details_caption[_ngcontent-%COMP%]{background:#f3f2f1;padding:10px;font-size:x-large;font-weight:700}"] });
|
|
28538
|
-
(function () {
|
|
28539
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
28540
|
-
type: i0.Component,
|
|
28541
|
-
args: [{
|
|
28542
|
-
selector: 'ccd-query-details',
|
|
28543
|
-
templateUrl: './query-details.component.html',
|
|
28544
|
-
styleUrls: ['./query-details.component.scss']
|
|
28545
|
-
}]
|
|
28546
|
-
}], null, { query: [{
|
|
28547
|
-
type: i0.Input
|
|
28548
|
-
}], backClicked: [{
|
|
28549
|
-
type: i0.Output
|
|
28550
|
-
}] });
|
|
28551
|
-
})();
|
|
28552
|
-
|
|
28553
|
-
function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
|
|
28554
|
-
if (rf & 1) {
|
|
28555
|
-
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28556
|
-
i0__namespace.ɵɵelementStart(0, "th", 8);
|
|
28557
|
-
i0__namespace.ɵɵtext(1);
|
|
28558
|
-
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
28559
|
-
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
28560
|
-
i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var col_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
|
|
28561
|
-
i0__namespace.ɵɵelementEnd();
|
|
28562
|
-
i0__namespace.ɵɵelementEnd();
|
|
28563
|
-
}
|
|
28564
|
-
if (rf & 2) {
|
|
28565
|
-
var col_r3 = ctx.$implicit;
|
|
28566
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
28567
|
-
i0__namespace.ɵɵadvance(1);
|
|
28568
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
|
|
28569
|
-
i0__namespace.ɵɵadvance(2);
|
|
28570
|
-
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
|
|
28571
|
-
}
|
|
28572
|
-
}
|
|
28573
|
-
function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
|
|
28574
|
-
if (rf & 1) {
|
|
28575
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
28576
|
-
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
28577
|
-
i0__namespace.ɵɵelementStart(1, "td", 10);
|
|
28578
|
-
i0__namespace.ɵɵelementStart(2, "a", 11);
|
|
28579
|
-
i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_tr_9_Template_a_click_2_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var message_r6 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.showDetails(message_r6); });
|
|
28580
|
-
i0__namespace.ɵɵtext(3);
|
|
28581
|
-
i0__namespace.ɵɵelementEnd();
|
|
28582
|
-
i0__namespace.ɵɵelementEnd();
|
|
28583
|
-
i0__namespace.ɵɵelementStart(4, "td", 12);
|
|
28584
|
-
i0__namespace.ɵɵtext(5);
|
|
28585
|
-
i0__namespace.ɵɵelementEnd();
|
|
28586
|
-
i0__namespace.ɵɵelementStart(6, "td", 12);
|
|
28587
|
-
i0__namespace.ɵɵtext(7);
|
|
28588
|
-
i0__namespace.ɵɵpipe(8, "date");
|
|
28589
|
-
i0__namespace.ɵɵelementEnd();
|
|
28590
|
-
i0__namespace.ɵɵelementStart(9, "td", 12);
|
|
28591
|
-
i0__namespace.ɵɵtext(10);
|
|
28592
|
-
i0__namespace.ɵɵpipe(11, "date");
|
|
28593
|
-
i0__namespace.ɵɵelementEnd();
|
|
28594
|
-
i0__namespace.ɵɵelementStart(12, "td", 12);
|
|
28595
|
-
i0__namespace.ɵɵtext(13);
|
|
28596
|
-
i0__namespace.ɵɵelementEnd();
|
|
28597
|
-
i0__namespace.ɵɵelementEnd();
|
|
28598
|
-
}
|
|
28599
|
-
if (rf & 2) {
|
|
28600
|
-
var message_r6 = ctx.$implicit;
|
|
28601
|
-
i0__namespace.ɵɵadvance(3);
|
|
28602
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.subject);
|
|
28603
|
-
i0__namespace.ɵɵadvance(2);
|
|
28604
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
28605
|
-
i0__namespace.ɵɵadvance(2);
|
|
28606
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
|
|
28607
|
-
i0__namespace.ɵɵadvance(3);
|
|
28608
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
|
|
28609
|
-
i0__namespace.ɵɵadvance(3);
|
|
28610
|
-
i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
|
|
28611
|
-
}
|
|
28612
|
-
}
|
|
28613
|
-
function QueryListComponent_ng_container_0_Template(rf, ctx) {
|
|
28614
|
-
if (rf & 1) {
|
|
28615
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
28616
|
-
i0__namespace.ɵɵelementStart(1, "table", 1);
|
|
28617
|
-
i0__namespace.ɵɵelementStart(2, "caption", 2);
|
|
28618
|
-
i0__namespace.ɵɵelementStart(3, "div");
|
|
28619
|
-
i0__namespace.ɵɵtext(4);
|
|
28620
|
-
i0__namespace.ɵɵelementEnd();
|
|
28621
|
-
i0__namespace.ɵɵelementEnd();
|
|
28622
|
-
i0__namespace.ɵɵelementStart(5, "thead", 3);
|
|
28623
|
-
i0__namespace.ɵɵelementStart(6, "tr", 4);
|
|
28624
|
-
i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
|
|
28625
|
-
i0__namespace.ɵɵelementEnd();
|
|
28626
|
-
i0__namespace.ɵɵelementEnd();
|
|
28627
|
-
i0__namespace.ɵɵelementStart(8, "tbody", 6);
|
|
28628
|
-
i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
|
|
28629
|
-
i0__namespace.ɵɵelementEnd();
|
|
28630
|
-
i0__namespace.ɵɵelementEnd();
|
|
28631
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
28632
|
-
}
|
|
28633
|
-
if (rf & 2) {
|
|
28634
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
28635
|
-
i0__namespace.ɵɵadvance(4);
|
|
28636
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
|
|
28637
|
-
i0__namespace.ɵɵadvance(3);
|
|
28638
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
|
|
28639
|
-
i0__namespace.ɵɵadvance(2);
|
|
28640
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
|
|
28641
|
-
}
|
|
28642
|
-
}
|
|
28643
|
-
var QueryListComponent = /** @class */ (function () {
|
|
28644
|
-
function QueryListComponent() {
|
|
28645
|
-
this.selectedQuery = new i0.EventEmitter();
|
|
28646
|
-
this.displayedColumns = [
|
|
28647
|
-
{ name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
|
|
28648
|
-
{ name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
|
|
28649
|
-
{ name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
|
|
28650
|
-
{ name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
|
|
28651
|
-
{ name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
|
|
28652
|
-
];
|
|
28653
|
-
}
|
|
28654
|
-
QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
|
|
28655
|
-
var _a;
|
|
28656
|
-
var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
|
|
28657
|
-
if (currentPartyMessageGroup) {
|
|
28658
|
-
this.queryListData = new QueryListData(currentPartyMessageGroup);
|
|
28659
|
-
}
|
|
28660
|
-
};
|
|
28661
|
-
QueryListComponent.prototype.sortTable = function (col) {
|
|
28662
|
-
switch (col.displayName) {
|
|
28663
|
-
case 'Last submission date':
|
|
28664
|
-
case 'Last response date': {
|
|
28665
|
-
this.sortDate(col);
|
|
28666
|
-
break;
|
|
28667
|
-
}
|
|
28668
|
-
default: {
|
|
28669
|
-
this.sort(col);
|
|
28670
|
-
break;
|
|
28671
|
-
}
|
|
28672
|
-
}
|
|
28673
|
-
};
|
|
28674
|
-
QueryListComponent.prototype.sortWidget = function (col) {
|
|
28675
|
-
switch (col.sortOrder) {
|
|
28676
|
-
case SortOrder.ASCENDING: {
|
|
28677
|
-
return '▲';
|
|
28678
|
-
}
|
|
28679
|
-
default: {
|
|
28680
|
-
return '▼';
|
|
28681
|
-
}
|
|
28682
|
-
}
|
|
28683
|
-
};
|
|
28684
|
-
QueryListComponent.prototype.showDetails = function (query) {
|
|
28685
|
-
this.selectedQuery.emit(query);
|
|
28686
|
-
};
|
|
28687
|
-
QueryListComponent.prototype.sort = function (col) {
|
|
28688
|
-
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
28689
|
-
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
|
|
28690
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
28691
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
28692
|
-
}
|
|
28693
|
-
else {
|
|
28694
|
-
this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
|
|
28695
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
28696
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
28697
|
-
}
|
|
28698
|
-
};
|
|
28699
|
-
QueryListComponent.prototype.sortDate = function (col) {
|
|
28700
|
-
if (col.sortOrder === SortOrder.ASCENDING) {
|
|
28701
|
-
this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
|
|
28702
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
28703
|
-
col.sortOrder = SortOrder.DESCENDING;
|
|
28704
|
-
}
|
|
28705
|
-
else {
|
|
28706
|
-
this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
|
|
28707
|
-
this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
|
|
28708
|
-
col.sortOrder = SortOrder.ASCENDING;
|
|
28709
|
-
}
|
|
28710
|
-
};
|
|
28711
|
-
return QueryListComponent;
|
|
28712
|
-
}());
|
|
28713
|
-
QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
|
|
28714
|
-
QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, outputs: { selectedQuery: "selectedQuery" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__cell", "query-list__caption", "query-list__row"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__header"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
|
|
28715
|
-
if (rf & 1) {
|
|
28716
|
-
i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
|
|
28717
|
-
}
|
|
28718
|
-
if (rf & 2) {
|
|
28719
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
|
|
28720
|
-
}
|
|
28721
|
-
}, directives: [i2__namespace.NgIf, i2__namespace.NgForOf], pipes: [i1__namespace.RpxTranslatePipe, i2__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
|
|
28722
|
-
(function () {
|
|
28723
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
|
|
28724
|
-
type: i0.Component,
|
|
28725
|
-
args: [{
|
|
28726
|
-
selector: 'ccd-query-list',
|
|
28727
|
-
templateUrl: './query-list.component.html',
|
|
28728
|
-
styleUrls: ['./query-list.component.scss']
|
|
28729
|
-
}]
|
|
28730
|
-
}], null, { partyMessageGroup: [{
|
|
28731
|
-
type: i0.Input
|
|
28732
|
-
}], selectedQuery: [{
|
|
28733
|
-
type: i0.Output
|
|
28734
|
-
}] });
|
|
28735
|
-
})();
|
|
28736
|
-
|
|
28737
|
-
var QueryManagementModule = /** @class */ (function () {
|
|
28738
|
-
function QueryManagementModule() {
|
|
28739
|
-
}
|
|
28740
|
-
return QueryManagementModule;
|
|
28741
|
-
}());
|
|
28742
|
-
QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
|
|
28743
|
-
QueryManagementModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: QueryManagementModule });
|
|
28744
|
-
QueryManagementModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
28745
|
-
i2.CommonModule,
|
|
28746
|
-
i3.ReactiveFormsModule,
|
|
28747
|
-
i1.RpxTranslationModule.forChild(),
|
|
28748
|
-
PipesModule
|
|
28749
|
-
]] });
|
|
28750
|
-
(function () {
|
|
28751
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
|
|
28752
|
-
WriteQueryManagementFieldComponent,
|
|
28753
|
-
QueryDetailsComponent,
|
|
28754
|
-
QueryCreateComponent,
|
|
28755
|
-
QueryListComponent,
|
|
28756
|
-
QueryDetailsTableComponent], imports: [i2.CommonModule,
|
|
28757
|
-
i3.ReactiveFormsModule, i1__namespace.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
|
|
28758
|
-
WriteQueryManagementFieldComponent] });
|
|
28759
|
-
})();
|
|
28760
|
-
(function () {
|
|
28761
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementModule, [{
|
|
28762
|
-
type: i0.NgModule,
|
|
28763
|
-
args: [{
|
|
28764
|
-
declarations: [
|
|
28765
|
-
ReadQueryManagementFieldComponent,
|
|
28766
|
-
WriteQueryManagementFieldComponent,
|
|
28767
|
-
QueryDetailsComponent,
|
|
28768
|
-
QueryCreateComponent,
|
|
28769
|
-
QueryListComponent,
|
|
28770
|
-
QueryDetailsTableComponent,
|
|
28771
|
-
],
|
|
28772
|
-
imports: [
|
|
28773
|
-
i2.CommonModule,
|
|
28774
|
-
i3.ReactiveFormsModule,
|
|
28775
|
-
i1.RpxTranslationModule.forChild(),
|
|
28776
|
-
PipesModule
|
|
28777
|
-
],
|
|
28778
|
-
exports: [
|
|
28779
|
-
ReadQueryManagementFieldComponent,
|
|
28780
|
-
WriteQueryManagementFieldComponent
|
|
28781
|
-
],
|
|
28782
|
-
}]
|
|
28783
|
-
}], null, null);
|
|
28784
|
-
})();
|
|
28785
|
-
i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i2__namespace.NgForOf, i2__namespace.NgIf, QueryListComponent,
|
|
28786
|
-
QueryDetailsComponent], []);
|
|
28787
|
-
i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i2__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe, CaseReferencePipe]);
|
|
28788
|
-
i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i2__namespace.NgIf, QueryDetailsTableComponent], [i1__namespace.RpxTranslatePipe]);
|
|
28789
|
-
|
|
28790
28789
|
var PALETTE_COMPONENTS = [
|
|
28791
28790
|
UnsupportedFieldComponent,
|
|
28792
28791
|
DatetimePickerComponent,
|
|
@@ -28943,7 +28942,6 @@
|
|
|
28943
28942
|
i1$4.OverlayModule,
|
|
28944
28943
|
i3$1.PaymentLibModule,
|
|
28945
28944
|
i2$1.ScrollToModule.forRoot(),
|
|
28946
|
-
i1.RpxTranslationModule.forChild(),
|
|
28947
28945
|
i1$3.MatDialogModule,
|
|
28948
28946
|
i12.MediaViewerModule,
|
|
28949
28947
|
LoadingModule,
|
|
@@ -28954,7 +28952,8 @@
|
|
|
28954
28952
|
i4.NgxMatTimepickerModule,
|
|
28955
28953
|
TabsModule,
|
|
28956
28954
|
PaletteUtilsModule,
|
|
28957
|
-
PipesModule
|
|
28955
|
+
PipesModule,
|
|
28956
|
+
QueryManagementModule] });
|
|
28958
28957
|
(function () {
|
|
28959
28958
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaletteModule, { declarations: [FixedListPipe,
|
|
28960
28959
|
FixedRadioListPipe,
|
|
@@ -29093,14 +29092,15 @@
|
|
|
29093
29092
|
i5.MatAutocompleteModule,
|
|
29094
29093
|
i7.CdkTreeModule,
|
|
29095
29094
|
i1$4.OverlayModule,
|
|
29096
|
-
i3$1.PaymentLibModule, i2__namespace$1.ScrollToModule,
|
|
29095
|
+
i3$1.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
29097
29096
|
i12.MediaViewerModule,
|
|
29098
29097
|
LoadingModule, i1__namespace.RpxTranslationModule, QueryManagementModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
29099
29098
|
i4.NgxMatNativeDateModule,
|
|
29100
29099
|
i4.NgxMatTimepickerModule,
|
|
29101
29100
|
TabsModule,
|
|
29102
29101
|
PaletteUtilsModule,
|
|
29103
|
-
PipesModule,
|
|
29102
|
+
PipesModule,
|
|
29103
|
+
QueryManagementModule, UnsupportedFieldComponent,
|
|
29104
29104
|
DatetimePickerComponent,
|
|
29105
29105
|
WaysToPayFieldComponent,
|
|
29106
29106
|
MarkdownComponent,
|
|
@@ -29238,7 +29238,6 @@
|
|
|
29238
29238
|
i1$4.OverlayModule,
|
|
29239
29239
|
i3$1.PaymentLibModule,
|
|
29240
29240
|
i2$1.ScrollToModule.forRoot(),
|
|
29241
|
-
i1.RpxTranslationModule.forChild(),
|
|
29242
29241
|
i1$3.MatDialogModule,
|
|
29243
29242
|
i12.MediaViewerModule,
|
|
29244
29243
|
LoadingModule,
|
|
@@ -29262,7 +29261,8 @@
|
|
|
29262
29261
|
i4.NgxMatTimepickerModule,
|
|
29263
29262
|
TabsModule,
|
|
29264
29263
|
PaletteUtilsModule,
|
|
29265
|
-
PipesModule
|
|
29264
|
+
PipesModule,
|
|
29265
|
+
QueryManagementModule
|
|
29266
29266
|
], PALETTE_COMPONENTS),
|
|
29267
29267
|
providers: [
|
|
29268
29268
|
i0.ChangeDetectorRef,
|
|
@@ -33930,6 +33930,12 @@
|
|
|
33930
33930
|
}] });
|
|
33931
33931
|
})();
|
|
33932
33932
|
|
|
33933
|
+
var CaseViewEventIds;
|
|
33934
|
+
(function (CaseViewEventIds) {
|
|
33935
|
+
CaseViewEventIds["DELETE"] = "DELETE";
|
|
33936
|
+
CaseViewEventIds["QueryManagementRaiseQuery"] = "queryManagementRaiseQuery";
|
|
33937
|
+
})(CaseViewEventIds || (CaseViewEventIds = {}));
|
|
33938
|
+
|
|
33933
33939
|
var DeleteOrCancelDialogComponent = /** @class */ (function () {
|
|
33934
33940
|
function DeleteOrCancelDialogComponent(matDialogRef) {
|
|
33935
33941
|
this.matDialogRef = matDialogRef;
|
|
@@ -34460,45 +34466,60 @@
|
|
|
34460
34466
|
this.triggerText = CaseFullAccessViewComponent.TRIGGER_TEXT_START;
|
|
34461
34467
|
};
|
|
34462
34468
|
CaseFullAccessViewComponent.prototype.applyTrigger = function (trigger) {
|
|
34463
|
-
|
|
34464
|
-
|
|
34465
|
-
|
|
34466
|
-
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
|
|
34470
|
-
|
|
34471
|
-
|
|
34472
|
-
|
|
34473
|
-
|
|
34474
|
-
|
|
34475
|
-
.
|
|
34476
|
-
|
|
34477
|
-
|
|
34478
|
-
|
|
34479
|
-
|
|
34469
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
34470
|
+
var theQueryParams, dialogRef;
|
|
34471
|
+
var _this = this;
|
|
34472
|
+
return __generator(this, function (_a) {
|
|
34473
|
+
switch (_a.label) {
|
|
34474
|
+
case 0:
|
|
34475
|
+
this.error = null;
|
|
34476
|
+
theQueryParams = {};
|
|
34477
|
+
if (this.ignoreWarning) {
|
|
34478
|
+
theQueryParams['ignoreWarning'] = this.ignoreWarning;
|
|
34479
|
+
}
|
|
34480
|
+
if (!(trigger.id === CaseViewEventIds.QueryManagementRaiseQuery)) return [3 /*break*/, 2];
|
|
34481
|
+
return [4 /*yield*/, this.router.navigate(["/cases/query/" + this.caseDetails.case_id])];
|
|
34482
|
+
case 1:
|
|
34483
|
+
_a.sent();
|
|
34484
|
+
return [3 /*break*/, 3];
|
|
34485
|
+
case 2:
|
|
34486
|
+
if (trigger.id === CaseViewEventIds.DELETE) {
|
|
34487
|
+
dialogRef = this.dialog.open(DeleteOrCancelDialogComponent, this.dialogConfig);
|
|
34488
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
34489
|
+
if (result === 'Delete') {
|
|
34490
|
+
_this.draftService.deleteDraft(_this.caseDetails.case_id)
|
|
34491
|
+
.subscribe(function (_) {
|
|
34492
|
+
_this.navigationNotifierService.announceNavigation({ action: exports.NavigationOrigin.DRAFT_DELETED });
|
|
34493
|
+
}, function (_) {
|
|
34494
|
+
_this.navigationNotifierService.announceNavigation({ action: exports.NavigationOrigin.ERROR_DELETING_DRAFT });
|
|
34495
|
+
});
|
|
34496
|
+
}
|
|
34497
|
+
});
|
|
34498
|
+
}
|
|
34499
|
+
else if (this.isDraft() && trigger.id !== CaseViewEventIds.DELETE) {
|
|
34500
|
+
theQueryParams[DRAFT_QUERY_PARAM] = this.caseDetails.case_id;
|
|
34501
|
+
theQueryParams[CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM] = 'viewDraft';
|
|
34502
|
+
this.navigationNotifierService.announceNavigation({
|
|
34503
|
+
action: exports.NavigationOrigin.DRAFT_RESUMED,
|
|
34504
|
+
jid: this.caseDetails.case_type.jurisdiction.id,
|
|
34505
|
+
ctid: this.caseDetails.case_type.id,
|
|
34506
|
+
etid: trigger.id,
|
|
34507
|
+
queryParams: theQueryParams
|
|
34508
|
+
});
|
|
34509
|
+
}
|
|
34510
|
+
else {
|
|
34511
|
+
this.navigationNotifierService.announceNavigation({
|
|
34512
|
+
action: exports.NavigationOrigin.EVENT_TRIGGERED,
|
|
34513
|
+
queryParams: theQueryParams,
|
|
34514
|
+
etid: trigger.id,
|
|
34515
|
+
relativeTo: this.route
|
|
34516
|
+
});
|
|
34517
|
+
}
|
|
34518
|
+
_a.label = 3;
|
|
34519
|
+
case 3: return [2 /*return*/];
|
|
34480
34520
|
}
|
|
34481
34521
|
});
|
|
34482
|
-
}
|
|
34483
|
-
else if (this.isDraft() && trigger.id !== CaseViewTrigger.DELETE) {
|
|
34484
|
-
theQueryParams[DRAFT_QUERY_PARAM] = this.caseDetails.case_id;
|
|
34485
|
-
theQueryParams[CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM] = 'viewDraft';
|
|
34486
|
-
this.navigationNotifierService.announceNavigation({
|
|
34487
|
-
action: exports.NavigationOrigin.DRAFT_RESUMED,
|
|
34488
|
-
jid: this.caseDetails.case_type.jurisdiction.id,
|
|
34489
|
-
ctid: this.caseDetails.case_type.id,
|
|
34490
|
-
etid: trigger.id,
|
|
34491
|
-
queryParams: theQueryParams
|
|
34492
|
-
});
|
|
34493
|
-
}
|
|
34494
|
-
else {
|
|
34495
|
-
this.navigationNotifierService.announceNavigation({
|
|
34496
|
-
action: exports.NavigationOrigin.EVENT_TRIGGERED,
|
|
34497
|
-
queryParams: theQueryParams,
|
|
34498
|
-
etid: trigger.id,
|
|
34499
|
-
relativeTo: this.route
|
|
34500
|
-
});
|
|
34501
|
-
}
|
|
34522
|
+
});
|
|
34502
34523
|
};
|
|
34503
34524
|
CaseFullAccessViewComponent.prototype.hasTabsPresent = function () {
|
|
34504
34525
|
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
|
|
@@ -34650,7 +34671,7 @@
|
|
|
34650
34671
|
// Clone and sort tabs array
|
|
34651
34672
|
this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
|
|
34652
34673
|
this.caseFields = this.getTabFields();
|
|
34653
|
-
this.sortedTabs = this.sortTabFieldsAndFilterTabs(this.sortedTabs);
|
|
34674
|
+
// this.sortedTabs = this.sortTabFieldsAndFilterTabs(this.sortedTabs);
|
|
34654
34675
|
this.formGroup = this.buildFormGroup(this.caseFields);
|
|
34655
34676
|
if (this.caseDetails.triggers && this.error) {
|
|
34656
34677
|
this.resetErrors();
|
|
@@ -39937,6 +39958,7 @@
|
|
|
39937
39958
|
exports.Profile = Profile;
|
|
39938
39959
|
exports.ProfileNotifier = ProfileNotifier;
|
|
39939
39960
|
exports.ProfileService = ProfileService;
|
|
39961
|
+
exports.QueryManagementModule = QueryManagementModule;
|
|
39940
39962
|
exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
|
|
39941
39963
|
exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
|
|
39942
39964
|
exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
|