@hmcts/ccd-case-ui-toolkit 7.0.34-pre-release-markdown → 7.0.34
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/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +38 -83
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +5 -6
- package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +4 -4
- package/esm2020/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +3 -26
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +1 -4
- package/esm2020/lib/shared/services/form/form-validators.service.mjs +2 -27
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +109 -214
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +109 -205
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +3 -8
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/markdown/markdown.component.d.ts +1 -4
- package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/services/form/form-validators.service.d.ts +0 -4
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import { CaseEventTrigger, CaseField, Profile } from '../../../domain';
|
|
6
6
|
import { Task } from '../../../domain/work-allocation/Task';
|
|
7
|
-
import { CaseFieldService, FieldsUtils,
|
|
7
|
+
import { CaseFieldService, FieldsUtils, OrderService, ProfileNotifier } from '../../../services';
|
|
8
8
|
import { CallbackErrorsContext } from '../../error';
|
|
9
9
|
import { PaletteContext } from '../../palette';
|
|
10
10
|
import { CaseEditComponent } from '../case-edit/case-edit.component';
|
|
@@ -17,7 +17,6 @@ export declare class CaseEditSubmitComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
private readonly route;
|
|
18
18
|
private readonly orderService;
|
|
19
19
|
private readonly profileNotifier;
|
|
20
|
-
private readonly formValidatorsService;
|
|
21
20
|
eventTrigger: CaseEventTrigger;
|
|
22
21
|
editForm: FormGroup;
|
|
23
22
|
triggerText: string;
|
|
@@ -31,13 +30,9 @@ export declare class CaseEditSubmitComponent implements OnInit, OnDestroy {
|
|
|
31
30
|
pageTitle: string;
|
|
32
31
|
metadataFieldsObject: object;
|
|
33
32
|
allFieldsValues: any;
|
|
34
|
-
summary: AbstractControl;
|
|
35
|
-
description: AbstractControl;
|
|
36
|
-
eventSummaryLabel: string;
|
|
37
|
-
eventDescriptionLabel: string;
|
|
38
33
|
static readonly SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION: (a: CaseField, b: CaseField) => number;
|
|
39
34
|
get isDisabled(): boolean;
|
|
40
|
-
constructor(caseEdit: CaseEditComponent, fieldsUtils: FieldsUtils, caseFieldService: CaseFieldService, route: ActivatedRoute, orderService: OrderService, profileNotifier: ProfileNotifier
|
|
35
|
+
constructor(caseEdit: CaseEditComponent, fieldsUtils: FieldsUtils, caseFieldService: CaseFieldService, route: ActivatedRoute, orderService: OrderService, profileNotifier: ProfileNotifier);
|
|
41
36
|
ngOnInit(): void;
|
|
42
37
|
ngOnDestroy(): void;
|
|
43
38
|
submit(): void;
|
package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-edit-submit.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"case-edit-submit.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;;AAI/C,qBAKa,uBAAwB,YAAW,MAAM,EAAE,S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SAAS,GAAG,SAAS;IAa7C,MAAM,IAAI,IAAI;IAYd,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAIlC,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAI1C,oCAAoC,IAAI,OAAO;IAqB/C,oCAAoC,IAAI,OAAO;IAI/C,cAAc,IAAI,OAAO;IAYhC,OAAO,CAAC,gBAAgB;IAWjB,QAAQ,IAAI,IAAI;IAOhB,WAAW,IAAI,OAAO;IAItB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;IAMlC,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAInD,OAAO,CAAC,8BAA8B;IAMtC,OAAO,CAAC,aAAa;IAQd,SAAS,IAAI,MAAM;IAInB,YAAY,IAAI,MAAM;IAKtB,aAAa,IAAI,MAAM;yCApPnB,uBAAuB;2CAAvB,uBAAuB;CA2PnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/abstract-form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;;
|
|
1
|
+
{"version":3,"file":"abstract-form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/abstract-form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAIxE,aAAK,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3C,8BACsB,0BAA0B;IAEvC,SAAS,EAAE,SAAS,CAAC;IAGrB,SAAS,EAAE,SAAS,CAAC;IAGrB,MAAM,CAAC,EAAE,aAAa,CAAC;IAGvB,QAAQ,SAAM;IAEd,EAAE;IAIT,SAAS,CAAC,eAAe,CAAC,CAAC,SAAS,eAAe,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,UAAQ,GAAG,eAAe;IAuBlG,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAI7E,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,qBAAqB;yCA7DT,0BAA0B;2CAA1B,0BAA0B;CAyE/C"}
|
|
@@ -3,13 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class MarkdownComponent implements OnInit {
|
|
4
4
|
content: string;
|
|
5
5
|
markdownUseHrefAsRouterLink: boolean;
|
|
6
|
-
renderUrlToTextFeature?: boolean;
|
|
7
6
|
constructor();
|
|
8
7
|
ngOnInit(): void;
|
|
9
8
|
onMarkdownClick(event: MouseEvent): boolean;
|
|
10
|
-
private renderUrlToText;
|
|
11
|
-
private isAllowedUrl;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownComponent, "ccd-markdown", never, { "content": "content"; "markdownUseHrefAsRouterLink": "markdownUseHrefAsRouterLink";
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownComponent, "ccd-markdown", never, { "content": "content"; "markdownUseHrefAsRouterLink": "markdownUseHrefAsRouterLink"; }, {}, never, never, false, never>;
|
|
14
11
|
}
|
|
15
12
|
//# sourceMappingURL=markdown.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/markdown/markdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,EAAE,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"markdown.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/markdown/markdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,EAAE,MAAM,eAAe,CAAC;;AAEvE,qBAIa,iBAAkB,YAAW,MAAM;IAEvC,OAAO,EAAE,MAAM,CAAC;IAEhB,2BAA2B,EAAG,OAAO,CAAC;;IAItC,QAAQ,IAAI,IAAI;IAKhB,eAAe,CAAC,KAAK,EAAE,UAAU;yCAb7B,iBAAiB;2CAAjB,iBAAiB;CAoB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-error.pipe.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils/first-error.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,SAAS,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAG5D,qBAIa,cAAe,YAAW,aAAa,EAAE,SAAS;IAI3D,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,OAAO,CAAC,SAAS,CAAY;gBAGV,qBAAqB,EAAE,qBAAqB,EAC5C,QAAQ,EAAE,QAAQ;IAK9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"first-error.pipe.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/utils/first-error.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,SAAS,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAG5D,qBAIa,cAAe,YAAW,aAAa,EAAE,SAAS;IAI3D,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,OAAO,CAAC,SAAS,CAAY;gBAGV,qBAAqB,EAAE,qBAAqB,EAC5C,QAAQ,EAAE,QAAQ;IAK9B,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAqCzD,WAAW,IAAI,IAAI;yCA/Cf,cAAc;uCAAd,cAAc;CAkD1B"}
|
|
@@ -3,13 +3,9 @@ import { CaseField } from '../../domain/definition/case-field.model';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormValidatorsService {
|
|
5
5
|
private static readonly CUSTOM_VALIDATED_TYPES;
|
|
6
|
-
private static readonly DEFAULT_INPUT_TEXT;
|
|
7
|
-
private static readonly DEFAULT_INPUT_TEXTAREA;
|
|
8
6
|
static addValidators(caseField: CaseField, control: AbstractControl): AbstractControl;
|
|
9
7
|
static emptyValidator(): ValidatorFn;
|
|
10
|
-
static markDownPatternValidator(): ValidatorFn;
|
|
11
8
|
addValidators(caseField: CaseField, control: AbstractControl): AbstractControl;
|
|
12
|
-
addMarkDownValidators(formGroup: AbstractControl, controlPath: string): AbstractControl;
|
|
13
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormValidatorsService, never>;
|
|
14
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormValidatorsService>;
|
|
15
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-validators.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-validators.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAoB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAG5F,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;;AAGrE,qBACa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"form-validators.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-validators.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAoB,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAG5F,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;;AAGrE,qBACa,qBAAqB;IAEhC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAE5C;WACY,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,eAAe;WA2B9E,cAAc,IAAI,WAAW;IAcpC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,eAAe;yCA9C1E,qBAAqB;6CAArB,qBAAqB;CAiDjC"}
|