@hmcts/ccd-case-ui-toolkit 7.3.98-exui-4454-2 → 7.3.98-exui-5185-rc1
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/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +202 -114
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +13 -7
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6308,7 +6308,7 @@ class FormValidatorsService {
|
|
|
6308
6308
|
// Matches: [text](url), , <img ...>, <a ...>...</a>
|
|
6309
6309
|
const inlineMarkdownPattern = /(?:!?\[[^\]]{0,500}\]\([^)]{0,500}\)|<(?:img\b[^>]{0,500}>|a\b[^>]{0,500}>[\s\S]*?<\/a>))/i;
|
|
6310
6310
|
// Matches: [text][id], ![alt][id], and the collapsed form [text][]
|
|
6311
|
-
const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\
|
|
6311
|
+
const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\[([^\]]{0,100})\](?!\s*\/)/;
|
|
6312
6312
|
// Matches: autolinks such as <http://example.com>
|
|
6313
6313
|
const autolinkPattern = /<(?:[A-Za-z][A-Za-z0-9+.-]*:[^ <>\n]*|[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+)>/;
|
|
6314
6314
|
// Matches: bare www.example.com autolinks
|
|
@@ -9353,63 +9353,30 @@ class WindowService {
|
|
|
9353
9353
|
locationAssign(url) {
|
|
9354
9354
|
window.location.assign(url);
|
|
9355
9355
|
}
|
|
9356
|
+
setLocalStorage(key, value) {
|
|
9357
|
+
window.localStorage.setItem(key, value);
|
|
9358
|
+
}
|
|
9359
|
+
getLocalStorage(key) {
|
|
9360
|
+
return window.localStorage.getItem(key);
|
|
9361
|
+
}
|
|
9362
|
+
clearLocalStorage() {
|
|
9363
|
+
window.localStorage.clear();
|
|
9364
|
+
}
|
|
9365
|
+
removeLocalStorage(key) {
|
|
9366
|
+
window.localStorage.removeItem(key);
|
|
9367
|
+
}
|
|
9356
9368
|
setSessionStorage(key, value) {
|
|
9357
9369
|
window.sessionStorage.setItem(key, value);
|
|
9358
9370
|
}
|
|
9359
9371
|
getSessionStorage(key) {
|
|
9360
9372
|
return window.sessionStorage.getItem(key);
|
|
9361
9373
|
}
|
|
9362
|
-
removeSessionStorage(key) {
|
|
9363
|
-
window.sessionStorage.removeItem(key);
|
|
9364
|
-
}
|
|
9365
|
-
clearSessionStorage() {
|
|
9366
|
-
window.sessionStorage.clear();
|
|
9367
|
-
}
|
|
9368
9374
|
openOnNewTab(url) {
|
|
9369
9375
|
const openedWindow = window.open(url, '_blank', 'noopener,noreferrer');
|
|
9370
9376
|
if (openedWindow) {
|
|
9371
9377
|
openedWindow.opener = null;
|
|
9372
9378
|
}
|
|
9373
9379
|
}
|
|
9374
|
-
openOnNewTabWithMessage(url, message, token) {
|
|
9375
|
-
const openedWindow = window.open(url, '_blank');
|
|
9376
|
-
if (!openedWindow) {
|
|
9377
|
-
return;
|
|
9378
|
-
}
|
|
9379
|
-
const targetOrigin = window.location.origin;
|
|
9380
|
-
const handoff = { type: 'MEDIA_VIEWER_HANDOFF', token, payload: message };
|
|
9381
|
-
let attempts = 0;
|
|
9382
|
-
let retryTimer;
|
|
9383
|
-
let acknowledged = false;
|
|
9384
|
-
const complete = () => {
|
|
9385
|
-
acknowledged = true;
|
|
9386
|
-
window.clearTimeout(retryTimer);
|
|
9387
|
-
window.removeEventListener('message', acknowledgementListener);
|
|
9388
|
-
if (!openedWindow.closed) {
|
|
9389
|
-
openedWindow.opener = null;
|
|
9390
|
-
}
|
|
9391
|
-
};
|
|
9392
|
-
const acknowledgementListener = (event) => {
|
|
9393
|
-
const data = event.data;
|
|
9394
|
-
if (event.origin === targetOrigin && event.source === openedWindow &&
|
|
9395
|
-
data?.type === 'MEDIA_VIEWER_HANDOFF_RECEIVED' && data.token === token) {
|
|
9396
|
-
complete();
|
|
9397
|
-
}
|
|
9398
|
-
};
|
|
9399
|
-
window.addEventListener('message', acknowledgementListener);
|
|
9400
|
-
const send = () => {
|
|
9401
|
-
if (acknowledged || openedWindow.closed || attempts++ >= 20) {
|
|
9402
|
-
window.removeEventListener('message', acknowledgementListener);
|
|
9403
|
-
if (!openedWindow.closed) {
|
|
9404
|
-
openedWindow.opener = null;
|
|
9405
|
-
}
|
|
9406
|
-
return;
|
|
9407
|
-
}
|
|
9408
|
-
openedWindow.postMessage(handoff, targetOrigin);
|
|
9409
|
-
retryTimer = window.setTimeout(send, 100);
|
|
9410
|
-
};
|
|
9411
|
-
send();
|
|
9412
|
-
}
|
|
9413
9380
|
confirm(message) {
|
|
9414
9381
|
return window.confirm(message);
|
|
9415
9382
|
}
|
|
@@ -16970,6 +16937,7 @@ function ReadDocumentFieldComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
16970
16937
|
i0.ɵɵadvance();
|
|
16971
16938
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.value.document_filename, "\n");
|
|
16972
16939
|
} }
|
|
16940
|
+
const MEDIA_VIEWER_INFO = 'media-viewer-info';
|
|
16973
16941
|
class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
16974
16942
|
windowService;
|
|
16975
16943
|
documentManagement;
|
|
@@ -17014,8 +16982,10 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
|
17014
16982
|
return;
|
|
17015
16983
|
}
|
|
17016
16984
|
const token = FieldsUtils.createToken();
|
|
16985
|
+
const storageKey = `${MEDIA_VIEWER_INFO}:${token}`;
|
|
17017
16986
|
const payload = this.documentManagement.getMediaViewerInfo(documentFieldValue);
|
|
17018
|
-
this.windowService.
|
|
16987
|
+
this.windowService.setLocalStorage(storageKey, payload);
|
|
16988
|
+
this.windowService.openOnNewTab(this.getMediaViewerUrl(token));
|
|
17019
16989
|
}
|
|
17020
16990
|
getMediaViewerUrl(token) {
|
|
17021
16991
|
const routerMediaViewer = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } });
|
|
@@ -17037,7 +17007,7 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
|
|
|
17037
17007
|
type: Component,
|
|
17038
17008
|
args: [{ selector: 'ccd-read-document-field', standalone: false, template: "<button type=\"button\" *ngIf=\"caseField.value\" class=\"govuk-js-link\"\n (click)=\"showMediaViewer()\">\n {{ caseField.value.document_filename }}\n</button>\n" }]
|
|
17039
17009
|
}], () => [{ type: WindowService }, { type: DocumentManagementService }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: CasesService }], null); })();
|
|
17040
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber:
|
|
17010
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber: 17 }); })();
|
|
17041
17011
|
|
|
17042
17012
|
class DocumentDialogComponent {
|
|
17043
17013
|
matDialogRef;
|
|
@@ -26608,6 +26578,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
26608
26578
|
},
|
|
26609
26579
|
plugins: [
|
|
26610
26580
|
new Plugin({
|
|
26581
|
+
appendTransaction: (transactions, oldState, newState) => this.renumberContinuedOrderedLists(transactions, oldState, newState),
|
|
26611
26582
|
props: {
|
|
26612
26583
|
handlePaste: (_view, event) => this.handleEditorPaste(event),
|
|
26613
26584
|
handleDOMEvents: {
|
|
@@ -27091,6 +27062,71 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27091
27062
|
? candidateOrder === adjacentOrder + adjacentList.childCount
|
|
27092
27063
|
: candidateOrder + candidateList.childCount === adjacentOrder;
|
|
27093
27064
|
}
|
|
27065
|
+
renumberContinuedOrderedLists(transactions, oldState, newState) {
|
|
27066
|
+
if (!transactions.some((transaction) => transaction.docChanged)) {
|
|
27067
|
+
return null;
|
|
27068
|
+
}
|
|
27069
|
+
const oldChildren = [];
|
|
27070
|
+
let oldPosition = 0;
|
|
27071
|
+
oldState.doc.forEach((node) => {
|
|
27072
|
+
oldChildren.push({ node, position: oldPosition });
|
|
27073
|
+
oldPosition += node.nodeSize;
|
|
27074
|
+
});
|
|
27075
|
+
const mapPosition = (position) => transactions.reduce((mappedPosition, transaction) => transaction.mapping.map(mappedPosition, 1), position);
|
|
27076
|
+
const effectiveOrders = new Map();
|
|
27077
|
+
let result = null;
|
|
27078
|
+
oldChildren.forEach(({ node: candidate, position: candidatePosition }, candidateIndex) => {
|
|
27079
|
+
if (candidate.type.name !== 'ordered_list') {
|
|
27080
|
+
return;
|
|
27081
|
+
}
|
|
27082
|
+
let previousIndex = candidateIndex - 1;
|
|
27083
|
+
while (previousIndex >= 0 &&
|
|
27084
|
+
this.isOrderedListContinuationSeparator(oldChildren[previousIndex].node, candidate)) {
|
|
27085
|
+
previousIndex--;
|
|
27086
|
+
}
|
|
27087
|
+
if (previousIndex < 0) {
|
|
27088
|
+
return;
|
|
27089
|
+
}
|
|
27090
|
+
const previous = oldChildren[previousIndex].node;
|
|
27091
|
+
const previousPosition = oldChildren[previousIndex].position;
|
|
27092
|
+
if (previous.type.name !== 'ordered_list' ||
|
|
27093
|
+
!this.hasMatchingListType(candidate, previous) ||
|
|
27094
|
+
candidate.attrs.indent !== previous.attrs.indent ||
|
|
27095
|
+
!this.isSequentialList(candidate, previous, 1)) {
|
|
27096
|
+
return;
|
|
27097
|
+
}
|
|
27098
|
+
const mappedPreviousPosition = mapPosition(previousPosition);
|
|
27099
|
+
const mappedCandidatePosition = mapPosition(candidatePosition);
|
|
27100
|
+
const newPrevious = newState.doc.nodeAt(mappedPreviousPosition);
|
|
27101
|
+
const newCandidate = newState.doc.nodeAt(mappedCandidatePosition);
|
|
27102
|
+
if (!newPrevious || !newCandidate ||
|
|
27103
|
+
newPrevious.type.name !== 'ordered_list' || newCandidate.type.name !== 'ordered_list' ||
|
|
27104
|
+
newPrevious.firstChild?.textContent !== previous.firstChild?.textContent ||
|
|
27105
|
+
newCandidate.firstChild?.textContent !== candidate.firstChild?.textContent ||
|
|
27106
|
+
!this.hasMatchingListType(newCandidate, newPrevious) ||
|
|
27107
|
+
newCandidate.attrs.indent !== newPrevious.attrs.indent) {
|
|
27108
|
+
return;
|
|
27109
|
+
}
|
|
27110
|
+
const previousOrder = effectiveOrders.get(previousPosition) ?? (Number(newPrevious.attrs.order) || 1);
|
|
27111
|
+
const expectedOrder = previousOrder + newPrevious.childCount;
|
|
27112
|
+
effectiveOrders.set(candidatePosition, expectedOrder);
|
|
27113
|
+
if (Number(newCandidate.attrs.order) === expectedOrder) {
|
|
27114
|
+
return;
|
|
27115
|
+
}
|
|
27116
|
+
result = (result || newState.tr).setNodeMarkup(mappedCandidatePosition, newCandidate.type, {
|
|
27117
|
+
...newCandidate.attrs,
|
|
27118
|
+
order: expectedOrder
|
|
27119
|
+
});
|
|
27120
|
+
});
|
|
27121
|
+
return result;
|
|
27122
|
+
}
|
|
27123
|
+
isOrderedListContinuationSeparator(node, candidate) {
|
|
27124
|
+
if (this.isEmptyParagraph(node) || this.isListSectionHeading(node)) {
|
|
27125
|
+
return true;
|
|
27126
|
+
}
|
|
27127
|
+
return this.isList(node) &&
|
|
27128
|
+
(Number(node.attrs.indent) || 0) > (Number(candidate.attrs.indent) || 0);
|
|
27129
|
+
}
|
|
27094
27130
|
hasListContinuation(list) {
|
|
27095
27131
|
return list.type.name === 'ordered_list' || Boolean(list.attrs.continuationOrder);
|
|
27096
27132
|
}
|
|
@@ -27356,7 +27392,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27356
27392
|
this.removeUnsupportedMarkup(documentElement);
|
|
27357
27393
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27358
27394
|
this.removeUnsupportedAttributes(documentElement);
|
|
27359
|
-
|
|
27395
|
+
const sanitisedValue = sanitiseRichTextDocument(documentElement);
|
|
27396
|
+
return this.hasMeaningfulRichTextContent(documentElement)
|
|
27397
|
+
? this.normalisePlainTextValue(sanitisedValue)
|
|
27398
|
+
: '';
|
|
27360
27399
|
}
|
|
27361
27400
|
normaliseRichTextValue(value) {
|
|
27362
27401
|
if (!value) {
|
|
@@ -27374,7 +27413,15 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27374
27413
|
this.removeUnsupportedMarkup(documentElement);
|
|
27375
27414
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27376
27415
|
this.removeUnsupportedAttributes(documentElement);
|
|
27377
|
-
|
|
27416
|
+
const sanitisedValue = sanitiseRichTextDocument(documentElement);
|
|
27417
|
+
return this.hasMeaningfulRichTextContent(documentElement)
|
|
27418
|
+
? this.normalisePlainTextValue(sanitisedValue)
|
|
27419
|
+
: '';
|
|
27420
|
+
}
|
|
27421
|
+
hasMeaningfulRichTextContent(documentElement) {
|
|
27422
|
+
const visibleText = (documentElement.body.textContent || '')
|
|
27423
|
+
.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
|
|
27424
|
+
return visibleText.length > 0 || Boolean(documentElement.body.querySelector('hr'));
|
|
27378
27425
|
}
|
|
27379
27426
|
syncAccessibilityLater() {
|
|
27380
27427
|
setTimeout(() => this.syncAccessibilityState());
|
|
@@ -27487,13 +27534,31 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27487
27534
|
}
|
|
27488
27535
|
this.isNormalisingValue = true;
|
|
27489
27536
|
try {
|
|
27490
|
-
this.richTextAreaControl.setValue(normalisedValue, {
|
|
27491
|
-
|
|
27537
|
+
this.richTextAreaControl.setValue(normalisedValue, {
|
|
27538
|
+
emitEvent: false,
|
|
27539
|
+
emitModelToViewChange: false
|
|
27540
|
+
});
|
|
27541
|
+
if (normalisedValue || this.editorHasMeaningfulRichTextContent()) {
|
|
27542
|
+
this.editor.setContent(normalisedValue || '');
|
|
27543
|
+
}
|
|
27492
27544
|
}
|
|
27493
27545
|
finally {
|
|
27494
27546
|
this.isNormalisingValue = false;
|
|
27495
27547
|
}
|
|
27496
27548
|
}
|
|
27549
|
+
editorHasMeaningfulRichTextContent() {
|
|
27550
|
+
const documentNode = this.editor.view.state.doc;
|
|
27551
|
+
const visibleText = documentNode.textContent.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
|
|
27552
|
+
let hasHorizontalRule = false;
|
|
27553
|
+
documentNode.descendants((node) => {
|
|
27554
|
+
if (node.type.name === 'horizontal_rule') {
|
|
27555
|
+
hasHorizontalRule = true;
|
|
27556
|
+
return false;
|
|
27557
|
+
}
|
|
27558
|
+
return !hasHorizontalRule;
|
|
27559
|
+
});
|
|
27560
|
+
return visibleText.length > 0 || hasHorizontalRule;
|
|
27561
|
+
}
|
|
27497
27562
|
richTextRequiredValidator() {
|
|
27498
27563
|
return (control) => {
|
|
27499
27564
|
const textValue = this.htmlToText(control.value);
|
|
@@ -28144,7 +28209,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28144
28209
|
}
|
|
28145
28210
|
return value
|
|
28146
28211
|
.replace(/!?\[([^\]]{0,500})\]\(([^)]{0,500})\)/g, (_match, text, url) => text || url)
|
|
28147
|
-
.replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\
|
|
28212
|
+
.replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\[[^\]]{0,100}\](?!\s*\/)/g, '$1');
|
|
28148
28213
|
}
|
|
28149
28214
|
unwrapElement(element) {
|
|
28150
28215
|
const parentNode = element.parentNode;
|
|
@@ -28163,6 +28228,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28163
28228
|
const state = {
|
|
28164
28229
|
listStack: [],
|
|
28165
28230
|
listParents: [],
|
|
28231
|
+
listRunDeclaredLevel: null,
|
|
28232
|
+
listRunVisualLevel: null,
|
|
28166
28233
|
resetListLevels: new Map(),
|
|
28167
28234
|
previousListId: null
|
|
28168
28235
|
};
|
|
@@ -28191,12 +28258,19 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28191
28258
|
resetWordListConversionState(state) {
|
|
28192
28259
|
state.listStack.length = 0;
|
|
28193
28260
|
state.listParents.length = 0;
|
|
28261
|
+
state.listRunDeclaredLevel = null;
|
|
28262
|
+
state.listRunVisualLevel = null;
|
|
28194
28263
|
state.resetListLevels.clear();
|
|
28195
28264
|
state.previousListId = null;
|
|
28196
28265
|
}
|
|
28197
28266
|
wordListRequestedLevel(paragraph, listId, wordListIndents, state) {
|
|
28198
28267
|
const declaredLevel = this.wordListDeclaredLevel(paragraph);
|
|
28199
|
-
|
|
28268
|
+
const visualLevel = this.wordListVisualLevel(paragraph, wordListIndents);
|
|
28269
|
+
if (state.listRunDeclaredLevel === null || state.listRunVisualLevel === null) {
|
|
28270
|
+
state.listRunDeclaredLevel = declaredLevel;
|
|
28271
|
+
state.listRunVisualLevel = visualLevel;
|
|
28272
|
+
}
|
|
28273
|
+
let requestedLevel = Math.max(1, declaredLevel - state.listRunDeclaredLevel + 1, visualLevel - state.listRunVisualLevel + 1);
|
|
28200
28274
|
const rememberedResetLevel = declaredLevel === 1 ? state.resetListLevels.get(listId) : null;
|
|
28201
28275
|
if (rememberedResetLevel) {
|
|
28202
28276
|
return Math.max(requestedLevel, rememberedResetLevel);
|
|
@@ -28217,7 +28291,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28217
28291
|
let currentList = state.listStack[stackIndex];
|
|
28218
28292
|
if (currentList?.tagName.toLowerCase() !== listType || currentList?.getAttribute('type') !== orderedListType ||
|
|
28219
28293
|
state.listParents[stackIndex] !== listParent) {
|
|
28220
|
-
|
|
28294
|
+
const rootIndent = level === 1 ? state.listRunVisualLevel - 1 : 0;
|
|
28295
|
+
currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent);
|
|
28221
28296
|
state.listStack[stackIndex] = currentList;
|
|
28222
28297
|
state.listParents[stackIndex] = listParent;
|
|
28223
28298
|
}
|
|
@@ -28225,15 +28300,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28225
28300
|
state.listParents.length = level;
|
|
28226
28301
|
return currentList;
|
|
28227
28302
|
}
|
|
28228
|
-
createWordList(documentElement, paragraph, listType, orderedListType, parentListItem) {
|
|
28303
|
+
createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent) {
|
|
28229
28304
|
const list = documentElement.createElement(listType);
|
|
28230
|
-
const listStart = this.wordListStart(paragraph);
|
|
28305
|
+
const listStart = this.wordListStart(paragraph, orderedListType);
|
|
28231
28306
|
if (listType === 'ol' && listStart > 1) {
|
|
28232
28307
|
list.setAttribute('start', listStart.toString());
|
|
28233
28308
|
}
|
|
28234
28309
|
if (orderedListType) {
|
|
28235
28310
|
list.setAttribute('type', orderedListType);
|
|
28236
28311
|
}
|
|
28312
|
+
if (rootIndent > 0) {
|
|
28313
|
+
list.dataset.indent = Math.min(6, rootIndent).toString();
|
|
28314
|
+
}
|
|
28237
28315
|
if (parentListItem) {
|
|
28238
28316
|
parentListItem.appendChild(list);
|
|
28239
28317
|
}
|
|
@@ -28292,11 +28370,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28292
28370
|
.find((element) => /mso-list:\s*Ignore/i.test(element.getAttribute('style') || ''));
|
|
28293
28371
|
return (markerElement ? markerElement.textContent : paragraph.textContent).trim();
|
|
28294
28372
|
}
|
|
28295
|
-
|
|
28296
|
-
const declaredLevel = this.wordListDeclaredLevel(paragraph);
|
|
28373
|
+
wordListVisualLevel(paragraph, wordListIndents) {
|
|
28297
28374
|
const indent = this.wordListIndent(paragraph);
|
|
28298
28375
|
const visualLevel = wordListIndents.indexOf(indent) + 1;
|
|
28299
|
-
return
|
|
28376
|
+
return visualLevel || 1;
|
|
28300
28377
|
}
|
|
28301
28378
|
wordListDeclaredLevel(paragraph) {
|
|
28302
28379
|
const match = (paragraph.getAttribute('style') || '').match(/mso-list:[^;]*\blevel(\d+)/i);
|
|
@@ -28317,9 +28394,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28317
28394
|
const indent = Math.max(this.cssLengthToPixels(this.cssStyleLength(style, 'margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'margin-inline-start')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-para-margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-margin-left-alt')), this.cssLengthToPixels(this.cssMarginLeftLength(style)));
|
|
28318
28395
|
return Math.round(indent);
|
|
28319
28396
|
}
|
|
28320
|
-
wordListStart(paragraph) {
|
|
28321
|
-
const match =
|
|
28322
|
-
|
|
28397
|
+
wordListStart(paragraph, orderedListType) {
|
|
28398
|
+
const match = /^\(?([a-z]+|\d+)[.)]/i.exec(this.wordListMarker(paragraph));
|
|
28399
|
+
if (!match) {
|
|
28400
|
+
return 1;
|
|
28401
|
+
}
|
|
28402
|
+
if (/^\d+$/.test(match[1])) {
|
|
28403
|
+
return Number(match[1]);
|
|
28404
|
+
}
|
|
28405
|
+
if (orderedListType === 'a') {
|
|
28406
|
+
return match[1].toLowerCase().split('').reduce((start, character) => (start * 26) + character.charCodeAt(0) - 96, 0);
|
|
28407
|
+
}
|
|
28408
|
+
return 1;
|
|
28323
28409
|
}
|
|
28324
28410
|
copyListItemContents(documentElement, paragraph, listItem) {
|
|
28325
28411
|
Array.prototype.slice.call(paragraph.childNodes).forEach((childNode) => {
|
|
@@ -29038,7 +29124,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
29038
29124
|
type: ViewChild,
|
|
29039
29125
|
args: ['editorHost']
|
|
29040
29126
|
}] }); })();
|
|
29041
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber:
|
|
29127
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber: 139 }); })();
|
|
29042
29128
|
|
|
29043
29129
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
29044
29130
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(__ngFactoryType__ || ReadTextFieldComponent); }; })();
|
|
@@ -30415,6 +30501,7 @@ function CaseFileViewFolderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
30415
30501
|
i0.ɵɵadvance(2);
|
|
30416
30502
|
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r2.nestedChildren);
|
|
30417
30503
|
} }
|
|
30504
|
+
const MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
30418
30505
|
class CaseFileViewFolderComponent {
|
|
30419
30506
|
windowService;
|
|
30420
30507
|
router;
|
|
@@ -30584,14 +30671,16 @@ class CaseFileViewFolderComponent {
|
|
|
30584
30671
|
}
|
|
30585
30672
|
}
|
|
30586
30673
|
const token = FieldsUtils.createToken();
|
|
30674
|
+
const storageKey = `${MEDIA_VIEWER_LOCALSTORAGE_KEY}:${token}`;
|
|
30587
30675
|
const payload = this.documentManagementService.getMediaViewerInfo({
|
|
30588
30676
|
document_binary_url: documentTreeNode.document_binary_url,
|
|
30589
30677
|
document_filename: documentTreeNode.document_filename,
|
|
30590
30678
|
content_type: documentTreeNode.content_type
|
|
30591
30679
|
});
|
|
30680
|
+
this.windowService.setLocalStorage(storageKey, payload);
|
|
30592
30681
|
const mediaViewerUrl = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } })?.toString();
|
|
30593
30682
|
if (mediaViewerUrl) {
|
|
30594
|
-
this.windowService.
|
|
30683
|
+
this.windowService.openOnNewTab(mediaViewerUrl);
|
|
30595
30684
|
}
|
|
30596
30685
|
break;
|
|
30597
30686
|
case ('download'):
|
|
@@ -30706,7 +30795,7 @@ class CaseFileViewFolderComponent {
|
|
|
30706
30795
|
}], moveDocument: [{
|
|
30707
30796
|
type: Output
|
|
30708
30797
|
}] }); })();
|
|
30709
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber:
|
|
30798
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
|
|
30710
30799
|
|
|
30711
30800
|
const _c0$u = a0 => ({ "form-group-error": a0 });
|
|
30712
30801
|
function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -38907,8 +38996,8 @@ function WorkbasketFiltersComponent_ng_container_39_Template(rf, ctx) { if (rf &
|
|
|
38907
38996
|
i0.ɵɵadvance(2);
|
|
38908
38997
|
i0.ɵɵproperty("ngForOf", ctx_r4.workbasketInputs);
|
|
38909
38998
|
} }
|
|
38910
|
-
const
|
|
38911
|
-
const
|
|
38999
|
+
const FORM_GROUP_VAL_LOC_STORAGE = 'workbasket-filter-form-group-value';
|
|
39000
|
+
const SAVED_QUERY_PARAM_LOC_STORAGE = 'savedQueryParams';
|
|
38912
39001
|
const REGION_LIST_AND_FRC_FILTER = 'regionList';
|
|
38913
39002
|
class WorkbasketFiltersComponent {
|
|
38914
39003
|
route;
|
|
@@ -39002,8 +39091,7 @@ class WorkbasketFiltersComponent {
|
|
|
39002
39091
|
this.alertService.setPreserveAlerts(!this.initialised);
|
|
39003
39092
|
}
|
|
39004
39093
|
if (Object.keys(this.formGroup.controls).length === 0) {
|
|
39005
|
-
|
|
39006
|
-
this.selected.formGroup = storedFormGroup && Object.keys(storedFormGroup).length > 0 ? storedFormGroup : null;
|
|
39094
|
+
this.selected.formGroup = JSON.parse(localStorage.getItem(FORM_GROUP_VAL_LOC_STORAGE));
|
|
39007
39095
|
}
|
|
39008
39096
|
else {
|
|
39009
39097
|
// Update form group filters
|
|
@@ -39014,14 +39102,14 @@ class WorkbasketFiltersComponent {
|
|
|
39014
39102
|
this.selected.page = 1;
|
|
39015
39103
|
this.selected.metadataFields = this.getMetadataFields();
|
|
39016
39104
|
if (init) {
|
|
39017
|
-
this.windowService.
|
|
39105
|
+
this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
|
|
39018
39106
|
if (Object.keys(this.formGroup.controls).length > 0) {
|
|
39019
39107
|
// Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
|
|
39020
39108
|
// FormGroup value because these values are not intended to be stored and subsequently passed as query string
|
|
39021
39109
|
// parameters when calling searchCases API endpoint
|
|
39022
39110
|
const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
|
|
39023
39111
|
judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
|
|
39024
|
-
this.windowService.
|
|
39112
|
+
this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
|
|
39025
39113
|
}
|
|
39026
39114
|
}
|
|
39027
39115
|
// Announce selected jurisdiction via JurisdictionService
|
|
@@ -39035,8 +39123,8 @@ class WorkbasketFiltersComponent {
|
|
|
39035
39123
|
this.setFocusToTop();
|
|
39036
39124
|
}
|
|
39037
39125
|
reset() {
|
|
39038
|
-
this.windowService.
|
|
39039
|
-
this.windowService.
|
|
39126
|
+
this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
39127
|
+
this.windowService.removeLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE);
|
|
39040
39128
|
setTimeout(() => {
|
|
39041
39129
|
this.resetFieldsWhenNoDefaults();
|
|
39042
39130
|
this.onReset.emit(true);
|
|
@@ -39087,7 +39175,7 @@ class WorkbasketFiltersComponent {
|
|
|
39087
39175
|
this.workbasketInputsReady = true;
|
|
39088
39176
|
this.workbasketInputs = workbasketInputs
|
|
39089
39177
|
.sort(this.orderService.sortAsc);
|
|
39090
|
-
const formValue = this.windowService.
|
|
39178
|
+
const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
39091
39179
|
workbasketInputs.forEach(item => {
|
|
39092
39180
|
if (item.field.elementPath) {
|
|
39093
39181
|
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
@@ -39127,18 +39215,18 @@ class WorkbasketFiltersComponent {
|
|
|
39127
39215
|
* in future to incorporate other dynamic filters.
|
|
39128
39216
|
*/
|
|
39129
39217
|
updateFormGroupFilters() {
|
|
39130
|
-
// Read the form group
|
|
39131
|
-
const
|
|
39132
|
-
// Form group
|
|
39133
|
-
if (!!
|
|
39218
|
+
// Read the form group local storage
|
|
39219
|
+
const formGroupLS = JSON.parse(this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE));
|
|
39220
|
+
// Form group local storage is available and contains regionList property
|
|
39221
|
+
if (!!formGroupLS && formGroupLS.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
|
|
39134
39222
|
if (this.formGroup.get(REGION_LIST_AND_FRC_FILTER)) {
|
|
39135
|
-
// If regionList value does not match between
|
|
39223
|
+
// If regionList value does not match between local storage and form group
|
|
39136
39224
|
// then the filter value has been changed and we need to clear the old filter values
|
|
39137
|
-
if (
|
|
39138
|
-
for (const key in
|
|
39139
|
-
if (
|
|
39140
|
-
const value =
|
|
39141
|
-
// Clear the filter form group control values if it has a value in
|
|
39225
|
+
if (formGroupLS[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
|
|
39226
|
+
for (const key in formGroupLS) {
|
|
39227
|
+
if (formGroupLS.hasOwnProperty(key)) {
|
|
39228
|
+
const value = formGroupLS[key];
|
|
39229
|
+
// Clear the filter form group control values if it has a value in local storage
|
|
39142
39230
|
// The regionList form group control value should be ignored as it always contain the latest value
|
|
39143
39231
|
if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
|
|
39144
39232
|
this.formGroup.get(key).setValue(null);
|
|
@@ -39157,7 +39245,7 @@ class WorkbasketFiltersComponent {
|
|
|
39157
39245
|
* Query parameters, when available, take precedence over workbasket defaults.
|
|
39158
39246
|
*/
|
|
39159
39247
|
initFilters(init) {
|
|
39160
|
-
const savedQueryParams = this.windowService.
|
|
39248
|
+
const savedQueryParams = this.windowService.getLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE);
|
|
39161
39249
|
const routeSnapshot = this.route.snapshot;
|
|
39162
39250
|
if (savedQueryParams) {
|
|
39163
39251
|
routeSnapshot.queryParams = JSON.parse(savedQueryParams);
|
|
@@ -39218,7 +39306,7 @@ class WorkbasketFiltersComponent {
|
|
|
39218
39306
|
this.workbasketInputs = [];
|
|
39219
39307
|
}
|
|
39220
39308
|
clearStoredWorkbasketFilterValues() {
|
|
39221
|
-
this.windowService.
|
|
39309
|
+
this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
39222
39310
|
}
|
|
39223
39311
|
resetCaseState() {
|
|
39224
39312
|
this.defaults.state_id = null;
|
|
@@ -39362,7 +39450,7 @@ class WorkbasketFiltersComponent {
|
|
|
39362
39450
|
}], onReset: [{
|
|
39363
39451
|
type: Output
|
|
39364
39452
|
}] }); })();
|
|
39365
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber:
|
|
39453
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 28 }); })();
|
|
39366
39454
|
|
|
39367
39455
|
class WorkbasketFiltersModule {
|
|
39368
39456
|
static ɵfac = function WorkbasketFiltersModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersModule)(); };
|
|
@@ -44699,10 +44787,10 @@ function SearchFiltersComponent_ng_container_16_Template(rf, ctx) { if (rf & 1)
|
|
|
44699
44787
|
i0.ɵɵadvance(2);
|
|
44700
44788
|
i0.ɵɵproperty("ngForOf", ctx_r3.searchInputs);
|
|
44701
44789
|
} }
|
|
44702
|
-
const
|
|
44703
|
-
const
|
|
44704
|
-
const
|
|
44705
|
-
const
|
|
44790
|
+
const JURISDICTION_LOC_STORAGE = 'search-jurisdiction';
|
|
44791
|
+
const META_FIELDS_LOC_STORAGE = 'search-metadata-fields';
|
|
44792
|
+
const FORM_GROUP_VALUE_LOC_STORAGE = 'search-form-group-value';
|
|
44793
|
+
const CASE_TYPE_LOC_STORAGE = 'search-caseType';
|
|
44706
44794
|
class SearchFiltersComponent {
|
|
44707
44795
|
searchService;
|
|
44708
44796
|
orderService;
|
|
@@ -44731,7 +44819,7 @@ class SearchFiltersComponent {
|
|
|
44731
44819
|
this.selected = {};
|
|
44732
44820
|
}
|
|
44733
44821
|
ngOnInit() {
|
|
44734
|
-
const jurisdiction = this.
|
|
44822
|
+
const jurisdiction = this.getValuesFromLocalStorage();
|
|
44735
44823
|
if (this.jurisdictions.length === 1 || jurisdiction) {
|
|
44736
44824
|
this.selected.jurisdiction = this.jurisdictions[0];
|
|
44737
44825
|
if (jurisdiction) {
|
|
@@ -44758,10 +44846,10 @@ class SearchFiltersComponent {
|
|
|
44758
44846
|
});
|
|
44759
44847
|
}
|
|
44760
44848
|
reset() {
|
|
44761
|
-
this.windowService.
|
|
44762
|
-
this.windowService.
|
|
44763
|
-
this.windowService.
|
|
44764
|
-
this.windowService.
|
|
44849
|
+
this.windowService.removeLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE);
|
|
44850
|
+
this.windowService.removeLocalStorage(CASE_TYPE_LOC_STORAGE);
|
|
44851
|
+
this.windowService.removeLocalStorage(JURISDICTION_LOC_STORAGE);
|
|
44852
|
+
this.windowService.removeLocalStorage(META_FIELDS_LOC_STORAGE);
|
|
44765
44853
|
this.selected = {};
|
|
44766
44854
|
if (this.jurisdictions.length === 1) {
|
|
44767
44855
|
this.selected.jurisdiction = this.jurisdictions[0];
|
|
@@ -44773,39 +44861,39 @@ class SearchFiltersComponent {
|
|
|
44773
44861
|
this.selected.formGroup = this.formGroup;
|
|
44774
44862
|
this.selected.page = 1;
|
|
44775
44863
|
this.selected.metadataFields = this.getMetadataFields();
|
|
44776
|
-
this.
|
|
44864
|
+
this.populateValuesInLocalStorage();
|
|
44777
44865
|
this.onApply.emit({
|
|
44778
44866
|
selected: this.selected,
|
|
44779
44867
|
queryParams: this.getQueryParams()
|
|
44780
44868
|
});
|
|
44781
44869
|
this.setFocusToTop();
|
|
44782
44870
|
}
|
|
44783
|
-
|
|
44784
|
-
this.windowService.
|
|
44785
|
-
this.windowService.
|
|
44871
|
+
populateValuesInLocalStorage() {
|
|
44872
|
+
this.windowService.setLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE, JSON.stringify(this.selected.formGroup.value));
|
|
44873
|
+
this.windowService.setLocalStorage(META_FIELDS_LOC_STORAGE, JSON.stringify(this.selected.metadataFields));
|
|
44786
44874
|
try {
|
|
44787
44875
|
const compJurisd = compressToUTF16(JSON.stringify(this.selected.jurisdiction));
|
|
44788
|
-
this.windowService.
|
|
44876
|
+
this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, compJurisd);
|
|
44789
44877
|
}
|
|
44790
44878
|
catch (e) {
|
|
44791
|
-
this.windowService.
|
|
44879
|
+
this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
|
|
44792
44880
|
}
|
|
44793
44881
|
if (this.selected.caseType) {
|
|
44794
|
-
this.windowService.
|
|
44882
|
+
this.windowService.setLocalStorage(CASE_TYPE_LOC_STORAGE, JSON.stringify(this.selected.caseType));
|
|
44795
44883
|
}
|
|
44796
44884
|
}
|
|
44797
|
-
|
|
44798
|
-
const jurisdiction = this.windowService.
|
|
44885
|
+
getValuesFromLocalStorage() {
|
|
44886
|
+
const jurisdiction = this.windowService.getLocalStorage(JURISDICTION_LOC_STORAGE);
|
|
44799
44887
|
if (jurisdiction) {
|
|
44800
44888
|
try {
|
|
44801
|
-
const
|
|
44802
|
-
if (
|
|
44803
|
-
return
|
|
44889
|
+
const localStorageJurisdiction = JSON.parse(decompressFromUTF16(jurisdiction));
|
|
44890
|
+
if (localStorageJurisdiction) {
|
|
44891
|
+
return localStorageJurisdiction;
|
|
44804
44892
|
}
|
|
44805
44893
|
}
|
|
44806
44894
|
catch (e) {
|
|
44807
|
-
this.logger.error('Failed to retrieve jurisdiction from
|
|
44808
|
-
this.windowService.
|
|
44895
|
+
this.logger.error('Failed to retrieve jurisdiction from local storage.', { error: e });
|
|
44896
|
+
this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
|
|
44809
44897
|
}
|
|
44810
44898
|
}
|
|
44811
44899
|
return null;
|
|
@@ -44843,7 +44931,7 @@ class SearchFiltersComponent {
|
|
|
44843
44931
|
this.searchInputs = [];
|
|
44844
44932
|
this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(tap(() => this.searchInputsReady = true)).subscribe(searchInputs => {
|
|
44845
44933
|
this.searchInputs = searchInputs.sort(this.orderService.sortAsc);
|
|
44846
|
-
const formValue = this.windowService.
|
|
44934
|
+
const formValue = this.windowService.getLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE);
|
|
44847
44935
|
let formValueObject = null;
|
|
44848
44936
|
if (formValue) {
|
|
44849
44937
|
formValueObject = JSON.parse(formValue);
|
|
@@ -44881,7 +44969,7 @@ class SearchFiltersComponent {
|
|
|
44881
44969
|
selectCaseType(caseTypes) {
|
|
44882
44970
|
if (caseTypes && caseTypes.length > 0) {
|
|
44883
44971
|
this.selected.caseType = caseTypes[0];
|
|
44884
|
-
const caseType = this.windowService.
|
|
44972
|
+
const caseType = this.windowService.getLocalStorage(CASE_TYPE_LOC_STORAGE);
|
|
44885
44973
|
if (caseType) {
|
|
44886
44974
|
const caseTypeObject = JSON.parse(caseType);
|
|
44887
44975
|
const result = caseTypes.filter(c => c.id === caseTypeObject.id);
|
|
@@ -46211,5 +46299,5 @@ class TestRouteSnapshotBuilder {
|
|
|
46211
46299
|
* Generated bundle index. Do not edit.
|
|
46212
46300
|
*/
|
|
46213
46301
|
|
|
46214
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
|
|
46302
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
|
|
46215
46303
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|