@hmcts/ccd-case-ui-toolkit 7.4.15-5135 → 7.4.15-5135-rc2
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/README.md +324 -144
- package/core/index.d.ts +110 -0
- package/core/index.d.ts.map +1 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit-core.mjs +177 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit-core.mjs.map +1 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit-json-utils.mjs +20 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit-json-utils.mjs.map +1 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +1512 -723
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/index.d.ts +177 -60
- package/index.d.ts.map +1 -1
- package/json-utils/index.d.ts +4 -0
- package/json-utils/index.d.ts.map +1 -0
- package/package.json +30 -21
package/README.md
CHANGED
|
@@ -1,187 +1,367 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[](https://codecov.io/gh/hmcts/ccd-case-ui-toolkit)
|
|
4
|
-
[](https://snyk.io/test/github/hmcts/ccd-case-ui-toolkit)
|
|
5
|
-
[](#ccd-case-ui-toolkit)
|
|
6
|
-
[](http://issuestats.com/github/hmcts/ccd-case-ui-toolkit)
|
|
1
|
+
CCD CASE UI TOOLKIT
|
|
2
|
+
===================
|
|
7
3
|
|
|
8
|
-
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
@hmcts/ccd-case-ui-toolkit is an Angular component library for CCD and XUI
|
|
8
|
+
case-management applications. It provides reusable case-form components,
|
|
9
|
+
directives, services, models, fixtures and supporting utilities.
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
yarn link
|
|
11
|
+
The repository also contains:
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
- A library build using Angular and ng-packagr.
|
|
14
|
+
- A demo application and synthetic browser-test host.
|
|
15
|
+
- Karma/Jasmine unit tests.
|
|
16
|
+
- Playwright source-host tests.
|
|
17
|
+
- A packaged-consumer smoke test for the built package.
|
|
18
|
+
- Documentation generation with Compodoc.
|
|
19
|
+
- CI and publishing configuration.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
The published package name is:
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
# Go to consumer repository folder
|
|
25
|
-
cd case-management-web
|
|
23
|
+
@hmcts/ccd-case-ui-toolkit
|
|
26
24
|
|
|
27
|
-
# Link you library to the project
|
|
28
|
-
yarn link "@hmcts/ccd-case-ui-toolkit"
|
|
29
25
|
|
|
30
|
-
|
|
26
|
+
Prerequisites
|
|
27
|
+
-------------
|
|
31
28
|
|
|
32
|
-
|
|
29
|
+
- Node.js 24.22.2 or a later version accepted by package.json.
|
|
30
|
+
- Yarn 4.5.0, managed through the repository's Yarn configuration.
|
|
31
|
+
- A Git checkout with the repository files available.
|
|
32
|
+
- Chromium if you are running the Playwright browser tests.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Check the required Node.js version in .nvmrc and package.json before changing
|
|
35
|
+
your local runtime. On Windows, Git Bash or WSL is recommended for shell
|
|
36
|
+
commands that use Unix-style syntax.
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
# Install all dependencies
|
|
38
|
-
yarn install
|
|
38
|
+
Install dependencies from the repository root:
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
yarn
|
|
42
|
-
```
|
|
40
|
+
corepack enable
|
|
41
|
+
yarn install --immutable
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
The repository uses a node-modules linker. Do not commit node_modules, build
|
|
44
|
+
output, coverage or browser-test results.
|
|
45
45
|
|
|
46
|
-
```bash
|
|
47
|
-
# Go to consumer repository folder
|
|
48
|
-
cd case-management-web
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
Repository layout
|
|
48
|
+
-----------------
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
projects/ccd-case-ui-toolkit/
|
|
51
|
+
src/ Library source and public API
|
|
52
|
+
ng-package.json ng-packagr configuration
|
|
53
|
+
package.json Library metadata and peer dependencies
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
demo/ Example application and stubs
|
|
56
|
+
packaged-consumer/ Application that consumes the built package
|
|
57
|
+
playwright_tests/ Source-host browser tests and test host
|
|
58
|
+
scripts/ Build synchronisation and smoke checks
|
|
59
|
+
angular.json Angular workspace configuration
|
|
60
|
+
package.json Workspace scripts
|
|
61
|
+
dist/ Generated package output
|
|
62
|
+
docs/ Generated Compodoc output
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
The library entry point is projects/ccd-case-ui-toolkit/src/public-api.ts.
|
|
65
|
+
|
|
66
|
+
Lightweight entry points
|
|
67
|
+
------------------------
|
|
68
|
+
|
|
69
|
+
Import lightweight utilities from their focused entry point so consumers do not
|
|
70
|
+
make the complete component library reachable from application-shell code:
|
|
59
71
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# Build the toolkit and fire up the demo application to view it
|
|
63
|
-
yarn demo
|
|
72
|
+
```ts
|
|
73
|
+
import { safeJsonParse } from '@hmcts/ccd-case-ui-toolkit/json-utils';
|
|
64
74
|
```
|
|
65
75
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
# build UI Toolkit
|
|
69
|
-
yarn build:esm
|
|
76
|
+
The root `@hmcts/ccd-case-ui-toolkit` export remains supported for backwards
|
|
77
|
+
compatibility.
|
|
70
78
|
|
|
71
|
-
# copy UI Toolkit dist folder to demo/node_modules/@hmcts/ccd-case-ui-toolkit/dist
|
|
72
|
-
yarn build:demo
|
|
73
79
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
# Go to http://localhost:8080
|
|
77
|
-
```
|
|
80
|
+
Build the library
|
|
81
|
+
-----------------
|
|
78
82
|
|
|
79
|
-
|
|
83
|
+
Build the package once:
|
|
80
84
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
85
|
+
yarn build
|
|
86
|
+
|
|
87
|
+
This runs the condition-parser generation step, builds the
|
|
88
|
+
ccd-case-ui-toolkit-lib Angular library and synchronises the package output
|
|
89
|
+
into dist/.
|
|
90
|
+
|
|
91
|
+
The explicit library build command is:
|
|
92
|
+
|
|
93
|
+
yarn build:library
|
|
94
|
+
|
|
95
|
+
Build the library continuously while editing source files:
|
|
96
|
+
|
|
97
|
+
yarn build:library:watch
|
|
98
|
+
|
|
99
|
+
The generated package is written to:
|
|
100
|
+
|
|
101
|
+
dist/ccd-case-ui-toolkit/
|
|
102
|
+
|
|
103
|
+
Generated parser files are created by the condition-parser task. Do not edit
|
|
104
|
+
the generated condition-parser.generated.ts file by hand; change the source
|
|
105
|
+
condition grammar and regenerate it instead.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Use the library in a consumer application
|
|
109
|
+
------------------------------------------
|
|
110
|
+
|
|
111
|
+
The preferred verification path is the repository's packaged-consumer gate:
|
|
112
|
+
|
|
113
|
+
yarn test:packaged-consumer
|
|
114
|
+
|
|
115
|
+
This checks the webapp material contract, builds the library and runs the
|
|
116
|
+
packaged-consumer smoke test against the generated package.
|
|
117
|
+
|
|
118
|
+
For stricter peer-dependency validation, run:
|
|
119
|
+
|
|
120
|
+
yarn test:packaged-consumer:strict
|
|
121
|
+
|
|
122
|
+
The packaged consumer is configured to run on port 4301:
|
|
123
|
+
|
|
124
|
+
cd packaged-consumer
|
|
125
|
+
yarn start
|
|
126
|
+
|
|
127
|
+
Use the packaged-consumer workflow to validate the installed package rather
|
|
128
|
+
than relying only on source imports. Source-host tests and installed-package
|
|
129
|
+
tests prove different compatibility boundaries.
|
|
130
|
+
|
|
131
|
+
Legacy linking
|
|
132
|
+
|
|
133
|
+
The older README described yarn link and manual copying of dist/. Linking can
|
|
134
|
+
be useful for local investigation, but it is more fragile with modern Yarn,
|
|
135
|
+
Angular and peer dependencies. Prefer the packaged-consumer smoke test or the
|
|
136
|
+
consumer application's normal package workflow. If linking is unavoidable,
|
|
137
|
+
build the library first and verify that the consumer resolves the intended
|
|
138
|
+
package version and peer dependencies.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
Run the Playwright source host
|
|
142
|
+
------------------------------
|
|
143
|
+
|
|
144
|
+
Install the Chromium browser used by the suite:
|
|
145
|
+
|
|
146
|
+
yarn playwright install chromium --only-shell
|
|
147
|
+
|
|
148
|
+
Run Playwright support checks:
|
|
149
|
+
|
|
150
|
+
yarn lint:playwright
|
|
151
|
+
yarn test:playwright:typecheck
|
|
152
|
+
|
|
153
|
+
List available scenarios:
|
|
154
|
+
|
|
155
|
+
yarn test:playwright --list
|
|
156
|
+
|
|
157
|
+
Run the full source-host browser suite:
|
|
158
|
+
|
|
159
|
+
yarn test:playwright
|
|
160
|
+
|
|
161
|
+
Start the synthetic Angular host when inspecting it manually:
|
|
162
|
+
|
|
163
|
+
yarn serve:playwright
|
|
164
|
+
|
|
165
|
+
The host is served at:
|
|
166
|
+
|
|
167
|
+
http://127.0.0.1:4300
|
|
168
|
+
|
|
169
|
+
The Playwright runner starts the host as required by its configuration. Keep
|
|
170
|
+
ports 4300 and 4301 available when running browser or packaged-consumer tests.
|
|
171
|
+
|
|
172
|
+
Run a focused feature where appropriate:
|
|
173
|
+
|
|
174
|
+
yarn test:playwright payment-contract
|
|
175
|
+
yarn test:playwright advanced-fields
|
|
176
|
+
|
|
177
|
+
The source-host suite uses synthetic data, isolated browser contexts, an
|
|
178
|
+
en-GB locale and the Europe/London time zone. It validates named component
|
|
179
|
+
contracts; it does not prove that deployed services or every consuming
|
|
180
|
+
application are compatible.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
Playwright evidence
|
|
184
|
+
-------------------
|
|
185
|
+
|
|
186
|
+
Generated browser evidence is written below playwright_tests/test-results/.
|
|
187
|
+
It can include:
|
|
188
|
+
|
|
189
|
+
- JUnit results.
|
|
190
|
+
- Perfetto timeline data.
|
|
191
|
+
- Failure screenshots and traces.
|
|
192
|
+
- Odhín HTML reports.
|
|
193
|
+
|
|
194
|
+
The main report locations are:
|
|
195
|
+
|
|
196
|
+
playwright_tests/test-results/junit.xml
|
|
197
|
+
playwright_tests/test-results/perfetto.json
|
|
198
|
+
playwright_tests/odhin-report/toolkit-playwright.html
|
|
199
|
+
|
|
200
|
+
The packaged-consumer gate writes its evidence below
|
|
201
|
+
packaged-consumer-results/.
|
|
202
|
+
|
|
203
|
+
These outputs may contain test data and should be treated as generated,
|
|
204
|
+
potentially sensitive artefacts. They are ignored by Git and should not be
|
|
205
|
+
committed.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
Unit tests and coverage
|
|
209
|
+
-----------------------
|
|
210
|
+
|
|
211
|
+
Run the Angular unit tests with coverage:
|
|
212
|
+
|
|
213
|
+
yarn test
|
|
214
|
+
|
|
215
|
+
Run the unit tests in watch mode:
|
|
216
|
+
|
|
217
|
+
yarn test:watch
|
|
218
|
+
|
|
219
|
+
Coverage output is written under coverage/.
|
|
220
|
+
|
|
221
|
+
Create a coverage report when coverage data already exists:
|
|
222
|
+
|
|
223
|
+
yarn coverage
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
Linting, audits and documentation
|
|
227
|
+
---------------------------------
|
|
228
|
+
|
|
229
|
+
Run the library lint checks:
|
|
230
|
+
|
|
231
|
+
yarn lint
|
|
232
|
+
|
|
233
|
+
Run the Playwright-specific lint checks:
|
|
234
|
+
|
|
235
|
+
yarn lint:playwright
|
|
236
|
+
|
|
237
|
+
Run reporting and reporter checks:
|
|
238
|
+
|
|
239
|
+
yarn lint:playwright:reporting
|
|
240
|
+
|
|
241
|
+
Run the dependency audit against the repository's known-audit baseline:
|
|
242
|
+
|
|
243
|
+
yarn test:audit
|
|
244
|
+
|
|
245
|
+
Generate Compodoc documentation:
|
|
246
|
+
|
|
247
|
+
yarn docs
|
|
248
|
+
|
|
249
|
+
The generated documentation is written to docs/.
|
|
250
|
+
|
|
251
|
+
Run the main CI-style local checks:
|
|
252
|
+
|
|
253
|
+
yarn ci
|
|
254
|
+
|
|
255
|
+
The CI command runs lint, unit tests, the library build and documentation
|
|
256
|
+
generation. It may take longer than targeted checks.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
Development workflow
|
|
260
|
+
--------------------
|
|
261
|
+
|
|
262
|
+
1. Create a focused branch.
|
|
263
|
+
2. Install dependencies with yarn install --immutable.
|
|
264
|
+
3. Make the source change under projects/ccd-case-ui-toolkit/src/.
|
|
265
|
+
4. Run yarn build:library:watch while developing a consumer integration.
|
|
266
|
+
5. Run targeted unit tests and Playwright scenarios.
|
|
267
|
+
6. Run yarn lint and yarn test.
|
|
268
|
+
7. Run yarn test:packaged-consumer for package-boundary changes.
|
|
269
|
+
8. Run yarn ci before a release or when broad changes affect the library.
|
|
270
|
+
9. Review generated output and confirm that no sensitive artefacts are staged.
|
|
271
|
+
|
|
272
|
+
When a public component, directive, service, model or pipe is added, update
|
|
273
|
+
the public API exports and add or update focused tests. Keep assertions close
|
|
274
|
+
to the component or service contract they verify.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
Release and publishing notes
|
|
278
|
+
-----------------------------
|
|
279
|
+
|
|
280
|
+
The package is published as an npm package with public access configured in
|
|
281
|
+
package.json. Use the repository's approved release and CI process.
|
|
282
|
+
|
|
283
|
+
Before publishing:
|
|
284
|
+
|
|
285
|
+
- Confirm the package version and release notes.
|
|
286
|
+
- Run yarn ci.
|
|
287
|
+
- Run yarn test:packaged-consumer and, where required,
|
|
288
|
+
yarn test:packaged-consumer:strict.
|
|
289
|
+
- Confirm peer dependency ranges for supported Angular consumers.
|
|
290
|
+
- Review the generated dist/ package contents.
|
|
291
|
+
- Confirm that credentials, local configuration and test results are excluded.
|
|
292
|
+
|
|
293
|
+
Prerelease versions from a pull request should follow the repository's agreed
|
|
294
|
+
format, for example x.y.z-RDM-xxx-prerelease.
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
Troubleshooting
|
|
298
|
+
---------------
|
|
139
299
|
|
|
140
|
-
|
|
300
|
+
Dependencies do not install
|
|
141
301
|
|
|
142
|
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
302
|
+
- Check the Node.js version against .nvmrc and package.json.
|
|
303
|
+
- Run corepack enable.
|
|
304
|
+
- Use yarn install --immutable in a regular checkout.
|
|
305
|
+
- If a Git worktree prevents an install hook from running, use
|
|
306
|
+
yarn install --immutable --mode=skip-build as a temporary dependency-linking
|
|
307
|
+
workaround, then run the explicit lint, typecheck, browser and package
|
|
308
|
+
checks. This workaround does not prove that install hooks work normally.
|
|
145
309
|
|
|
146
|
-
|
|
147
|
-
- `yarn build:esm` - for building AOT/JIT compatible versions of files.
|
|
148
|
-
- `yarn build:esm:watch` - the same as previous command but in watch-mode.
|
|
149
|
-
- `yarn build:umd` - for building UMD bundle only.
|
|
150
|
-
- `yarn build:umd:watch` - the same as previous command but in watch-mode.
|
|
310
|
+
The library build fails
|
|
151
311
|
|
|
152
|
-
|
|
153
|
-
|
|
312
|
+
- Run yarn generate:condition-parser.
|
|
313
|
+
- Check the generated parser file is not being edited manually.
|
|
314
|
+
- Remove generated temporary output with yarn clean:tmp and rebuild.
|
|
315
|
+
- Check Angular, TypeScript and peer dependency versions.
|
|
154
316
|
|
|
155
|
-
|
|
317
|
+
Consumer cannot resolve the package
|
|
156
318
|
|
|
157
|
-
|
|
158
|
-
-
|
|
159
|
-
|
|
319
|
+
- Rebuild the library with yarn build.
|
|
320
|
+
- Confirm that the consumer is resolving the intended dist/ or package
|
|
321
|
+
version.
|
|
322
|
+
- Check Angular and peer dependency compatibility.
|
|
323
|
+
- Prefer the packaged-consumer smoke test over manual copying of dist/.
|
|
160
324
|
|
|
161
|
-
|
|
325
|
+
Playwright cannot start
|
|
162
326
|
|
|
163
|
-
|
|
327
|
+
- Install Chromium with yarn playwright install chromium --only-shell.
|
|
328
|
+
- Check that ports 4300 and 4301 are free.
|
|
329
|
+
- Run yarn test:playwright:typecheck.
|
|
330
|
+
- Run the scenario with --list to confirm that it is selected.
|
|
331
|
+
- Retain the failing trace and screenshot before starting another run, because
|
|
332
|
+
subsequent commands may overwrite the test-results directory.
|
|
164
333
|
|
|
165
|
-
|
|
166
|
-
- Use your **real library-consumer project** and link your library to it via `yarn link` command (see below).
|
|
167
|
-
- Use [Angular-CLI](https://cli.angular.io/) to generate library-consumer project for you and then use `yarn link` to link your library to it.
|
|
334
|
+
Reports are missing
|
|
168
335
|
|
|
169
|
-
|
|
336
|
+
- Check playwright_tests/test-results/ and playwright_tests/odhin-report/.
|
|
337
|
+
- Run the explicit reporter checks.
|
|
338
|
+
- If a run is interrupted before Odhín creates its report, use the repository
|
|
339
|
+
report helper and record that the report was generated as unavailable.
|
|
170
340
|
|
|
171
|
-
You may take advantage of watch-modes for library build in order to see changes to your library's source code immediately in your browser.
|
|
172
341
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
2. Launch library build in watch mode in first console instance by running `yarn build:watch` (assuming that you're in `case-ui-toolkit` root folder).
|
|
176
|
-
3. Launch your consumer project build (JIT version) in watch-mode by running `yarn start` in second console instance (for instance assuming that you're in `case-management-web` folder).
|
|
342
|
+
UK English and user-facing text
|
|
343
|
+
--------------------------------
|
|
177
344
|
|
|
178
|
-
|
|
345
|
+
Use UK English in documentation, test descriptions and user-facing examples.
|
|
346
|
+
Preferred spellings include:
|
|
179
347
|
|
|
180
|
-
|
|
348
|
+
organisation / organisations
|
|
349
|
+
authorise / authorisation
|
|
350
|
+
behaviour
|
|
351
|
+
centre
|
|
352
|
+
colour
|
|
353
|
+
customise / customisation
|
|
354
|
+
licence (noun) / license (verb)
|
|
355
|
+
analyse / analysed
|
|
356
|
+
catalogue
|
|
357
|
+
prioritise
|
|
181
358
|
|
|
359
|
+
Keep API names, package names, TypeScript identifiers, test tags and external
|
|
360
|
+
service names unchanged where their spelling is part of a technical contract.
|
|
182
361
|
|
|
183
|
-
Prerelease version from PR branch should follow the format as `x.y.z-RDM-xxx-prerelease`
|
|
184
362
|
|
|
185
|
-
|
|
363
|
+
Licence
|
|
364
|
+
-------
|
|
186
365
|
|
|
187
|
-
This project is licensed under the MIT
|
|
366
|
+
This project is licensed under the MIT Licence. See LICENSE.md for the full
|
|
367
|
+
licence text.
|
package/core/index.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { CanActivate, Router } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
declare abstract class AbstractAppConfig {
|
|
6
|
+
abstract load(): Promise<void>;
|
|
7
|
+
abstract getLoginUrl(): string;
|
|
8
|
+
abstract getApiUrl(): string;
|
|
9
|
+
abstract getCaseDataUrl(): string;
|
|
10
|
+
abstract getDocumentManagementUrl(): string;
|
|
11
|
+
abstract getDocumentManagementUrlV2(): string;
|
|
12
|
+
abstract getCdamExclusionList(): string;
|
|
13
|
+
abstract getDocumentSecureModeCaseTypeExclusions(): string;
|
|
14
|
+
abstract getRemoteDocumentManagementUrl(): string;
|
|
15
|
+
abstract getHrsUrl(): string;
|
|
16
|
+
abstract getRemoteHrsUrl(): string;
|
|
17
|
+
abstract getAnnotationApiUrl(): string;
|
|
18
|
+
abstract getPostcodeLookupUrl(): string;
|
|
19
|
+
abstract getOAuth2ClientId(): string;
|
|
20
|
+
abstract getPaymentsUrl(): string;
|
|
21
|
+
abstract getPayBulkScanBaseUrl(): string;
|
|
22
|
+
abstract getCreateOrUpdateDraftsUrl(ctid: string): string;
|
|
23
|
+
abstract getViewOrDeleteDraftsUrl(did: string): string;
|
|
24
|
+
abstract getActivityUrl(): string;
|
|
25
|
+
abstract getActivityNexPollRequestMs(): number;
|
|
26
|
+
abstract getActivityRetry(): number;
|
|
27
|
+
abstract getTimeoutsForCaseRetrieval(): number[];
|
|
28
|
+
abstract getTimeoutsCaseRetrievalArtificialDelay(): number;
|
|
29
|
+
abstract getActivityBatchCollectionDelayMs(): number;
|
|
30
|
+
abstract getActivityMaxRequestPerBatch(): number;
|
|
31
|
+
abstract getCaseHistoryUrl(caseId: string, eventId: string): string;
|
|
32
|
+
abstract getPrintServiceUrl(): string;
|
|
33
|
+
abstract getIcpEnable(): boolean;
|
|
34
|
+
abstract getIcpJurisdictions(): string[];
|
|
35
|
+
abstract logMessage(logMessage: string): void;
|
|
36
|
+
abstract getEnableServiceSpecificMultiFollowups(): string[];
|
|
37
|
+
abstract getPaginationPageSize(): number;
|
|
38
|
+
abstract getBannersUrl(): string;
|
|
39
|
+
abstract getPrdUrl(): string;
|
|
40
|
+
abstract getCacheTimeOut(): number;
|
|
41
|
+
abstract getWorkAllocationApiUrl(): string;
|
|
42
|
+
abstract getRefundsUrl(): string;
|
|
43
|
+
abstract getNotificationUrl(): string;
|
|
44
|
+
abstract getPaymentReturnUrl(): string;
|
|
45
|
+
abstract getCategoriesAndDocumentsUrl(): string;
|
|
46
|
+
abstract getDocumentDataUrl(): string;
|
|
47
|
+
abstract getCaseFlagsRefdataApiUrl(): string;
|
|
48
|
+
abstract getRDCommonDataApiUrl(): string;
|
|
49
|
+
abstract getCaseDataStoreApiUrl(): string;
|
|
50
|
+
abstract getEventsToHide(): string[];
|
|
51
|
+
getRemotePrintServiceUrl(): string;
|
|
52
|
+
getUserInfoApiUrl(): string;
|
|
53
|
+
getWAServiceConfig(): any;
|
|
54
|
+
getAccessManagementBasicViewMock(): any;
|
|
55
|
+
getAccessManagementRequestReviewMockModel(): any;
|
|
56
|
+
getLocationRefApiUrl(): string;
|
|
57
|
+
getCamRoleAssignmentsApiUrl(): string;
|
|
58
|
+
getEnvironment(): string;
|
|
59
|
+
}
|
|
60
|
+
declare class CaseEditorConfig {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}
|
|
63
|
+
declare class WindowService {
|
|
64
|
+
locationAssign(url: string): void;
|
|
65
|
+
setLocalStorage(key: string, value: string): void;
|
|
66
|
+
getLocalStorage(key: string): string | null;
|
|
67
|
+
clearLocalStorage(): void;
|
|
68
|
+
removeLocalStorage(key: string): void;
|
|
69
|
+
setSessionStorage(key: string, value: string): void;
|
|
70
|
+
getSessionStorage(key: string): string | null;
|
|
71
|
+
openOnNewTab(url: string): void;
|
|
72
|
+
confirm(message: string): boolean;
|
|
73
|
+
alert(message: string): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowService, never>;
|
|
75
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WindowService>;
|
|
76
|
+
}
|
|
77
|
+
declare class FocusService {
|
|
78
|
+
readonly elementIdToFocus = "focusService-elementIdToFocus";
|
|
79
|
+
focus(): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusService, never>;
|
|
81
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FocusService>;
|
|
82
|
+
}
|
|
83
|
+
declare class SessionStorageService {
|
|
84
|
+
getItem(key: string): string | null;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
|
|
86
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
|
|
87
|
+
}
|
|
88
|
+
declare const SessionErrorRoute: InjectionToken<string>;
|
|
89
|
+
type SessionJsonErrorLogger = (error: unknown) => void;
|
|
90
|
+
declare const SessionJsonErrorLogger: InjectionToken<SessionJsonErrorLogger>;
|
|
91
|
+
declare class SessionStorageGuard implements CanActivate {
|
|
92
|
+
private readonly sessionStorageService;
|
|
93
|
+
private readonly router;
|
|
94
|
+
private readonly errorRoute?;
|
|
95
|
+
private readonly errorLogger?;
|
|
96
|
+
constructor(sessionStorageService: SessionStorageService, router: Router, errorRoute?: string, errorLogger?: SessionJsonErrorLogger);
|
|
97
|
+
canActivate(): boolean;
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageGuard, [null, null, { optional: true; }, { optional: true; }]>;
|
|
99
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageGuard>;
|
|
100
|
+
}
|
|
101
|
+
declare class SessionErrorPageComponent {
|
|
102
|
+
title: string;
|
|
103
|
+
primaryMessage: string;
|
|
104
|
+
secondaryMessage: string;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionErrorPageComponent, never>;
|
|
106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SessionErrorPageComponent, "ccd-session-error-page", never, { "title": { "alias": "title"; "required": false; }; "primaryMessage": { "alias": "primaryMessage"; "required": false; }; "secondaryMessage": { "alias": "secondaryMessage"; "required": false; }; }, {}, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { AbstractAppConfig, CaseEditorConfig, FocusService, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, WindowService };
|
|
110
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../projects/ccd-case-ui-toolkit/core/src/core.ts"],"mappings":";;;;AAIA,uBAAA,iBAAsB;AACJ,qBAAQ,OAAO;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAOR;AAED,cAAA,gBAAa;AACX;AACD;AAED,cAAA,aACa;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AAIA;AACA;yCAbI,aAAa;6CAAb,aAAa;AAczB;AAED,cAAA,YACa;AACX;AACO;yCAFI,YAAY;6CAAZ,YAAY;AAKxB;AAED,cACM,qBAAqB;AAClB;yCADH,qBAAqB;6CAArB,qBAAqB;AAE1B;AAED,+CAA6C;AAC7C,KAAA,sBAAa;AACb,cAAA,sBAAa,EAAA,cAAsB,CAAA,sBAAA;AAEnC,cAAA,mBACa,uBAA+B;;;AAID;AACK;AAH3B,uCAAuB,qBAAqB,UACpC,MAAM,qCAE4C,sBAAsB;AAG5F;yCARI,mBAAmB;6CAAnB,mBAAmB;AAqB/B;AAED,cAAA,yBAgBa;AACK;AACA;AACA;yCAHL,yBAAyB;2CAAzB,yBAAyB;AAIrC;;","names":[]}
|