@myrmidon/cadmus-core 0.1.0 → 0.2.0

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.
@@ -1,166 +1,11 @@
1
+ import { RomanNumber, NgToolsModule } from '@myrmidon/ng-tools';
1
2
  import * as i0 from '@angular/core';
2
3
  import { Injectable, Pipe, Inject, NgModule } from '@angular/core';
3
- import { throwError } from 'rxjs';
4
4
  import * as gravatar from 'gravatar';
5
5
  import * as rangy from 'rangy';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import { HttpClientModule } from '@angular/common/http';
8
8
 
9
- /**
10
- * Roman number converter.
11
- */
12
- class RomanNumber {
13
- /**
14
- * Convert the specified numeric value to a Roman number.
15
- *
16
- * @param value The value.
17
- * @param allowBar True to allow bar on letters. A bar on a letter
18
- * multiplies its value by 1000.
19
- * @param allowPrefix True to allow prefix notation.
20
- * @param ancient True to use the ancient preferred notation, i.e.
21
- * the preferred epigraphical notation (IIII instead of IV, VIIII instead of IX).
22
- */
23
- static toRoman(value, allowBar = true, allowPrefix = true, ancient = false) {
24
- if (value <= 0) {
25
- return '';
26
- }
27
- let place = allowBar ? 0 : 6;
28
- const sb = [];
29
- while (value > 0) {
30
- while (value >= this._postVal[place]) {
31
- sb.push(this._postAlpha[place]);
32
- value -= this._postVal[place];
33
- }
34
- if (allowPrefix) {
35
- if (value >= this._preVal[place]) {
36
- sb.push(this._preAlpha[place]);
37
- value -= this._preVal[place];
38
- }
39
- }
40
- place++;
41
- }
42
- if (ancient) {
43
- let s = sb.join('');
44
- s = s.replace('IV', 'IIII');
45
- return s.replace('IX', 'VIII');
46
- }
47
- return sb.join('');
48
- }
49
- static isLower(c) {
50
- return c.toLowerCase() === c;
51
- }
52
- static isUpper(c) {
53
- return c.toUpperCase() === c;
54
- }
55
- static isCaseEqual(c1, c2) {
56
- return ((this.isLower(c1) && this.isLower(c2)) ||
57
- (this.isUpper(c1) && this.isUpper(c2)));
58
- }
59
- static getRomanDigitValue(digit) {
60
- const i = this._romanDigits.indexOf(digit.toUpperCase());
61
- if (i === -1) {
62
- return 0;
63
- }
64
- return this.isLower(digit)
65
- ? this._romanValues[i] * 1000
66
- : this._romanValues[i];
67
- }
68
- /**
69
- * Convert the specified Roman number to a numeric value.
70
- *
71
- * @param roman: The Roman number.
72
- * @param allowBar: True to allow bar-on-letter notation.
73
- */
74
- static fromRoman(roman, allowBar = true) {
75
- if (!roman) {
76
- return 0;
77
- }
78
- let result = 0;
79
- if (!allowBar) {
80
- roman = roman.toUpperCase();
81
- }
82
- for (let index = 0; index < roman.length; index++) {
83
- // if the previous value was a sub-digit, it had to be subtracted instead
84
- // of added; thus, subtract it twice (once to compensate for the wrong addition,
85
- // and once to subtract from this value) from the current digit value
86
- result += this.getRomanDigitValue(roman[index]);
87
- if (index > 0) {
88
- const i = this._romanDigits.indexOf(roman[index]);
89
- if (roman[index - 1].toUpperCase() ===
90
- this._romanSubdigits[i].toUpperCase() &&
91
- this.isCaseEqual(roman[index - 1], roman[index])) {
92
- // tslint:disable-next-line:no-bitwise
93
- result -= this.getRomanDigitValue(this._romanSubdigits[i]) << 1;
94
- }
95
- }
96
- }
97
- return result;
98
- }
99
- }
100
- RomanNumber._postVal = [
101
- 1000000,
102
- 500000,
103
- 100000,
104
- 50000,
105
- 10000,
106
- 5000,
107
- 1000,
108
- 500,
109
- 100,
110
- 50,
111
- 10,
112
- 5,
113
- 1,
114
- ];
115
- RomanNumber._postAlpha = [
116
- 'm',
117
- 'd',
118
- 'c',
119
- 'l',
120
- 'x',
121
- 'v',
122
- 'M',
123
- 'D',
124
- 'C',
125
- 'L',
126
- 'X',
127
- 'V',
128
- 'I',
129
- ];
130
- RomanNumber._preVal = [
131
- 900000,
132
- 400000,
133
- 90000,
134
- 40000,
135
- 9000,
136
- 4000,
137
- 900,
138
- 400,
139
- 90,
140
- 40,
141
- 9,
142
- 4,
143
- 1,
144
- ];
145
- RomanNumber._preAlpha = [
146
- 'cm',
147
- 'cd',
148
- 'xc',
149
- 'xl',
150
- 'ix',
151
- 'iv',
152
- 'CM',
153
- 'CD',
154
- 'XC',
155
- 'XL',
156
- 'IX',
157
- 'IV',
158
- 'I',
159
- ];
160
- RomanNumber._romanDigits = 'IVXLCDM';
161
- RomanNumber._romanSubdigits = ' IIXXCC';
162
- RomanNumber._romanValues = [1, 5, 10, 50, 100, 500, 1000];
163
-
164
9
  /**
165
10
  * Default options for formatting a datation.
166
11
  */
@@ -1183,42 +1028,6 @@ class TokenLocation {
1183
1028
  }
1184
1029
  }
1185
1030
 
1186
- /**
1187
- * Deep-copy an object.
1188
- */
1189
- function deepCopy(obj) {
1190
- let copy;
1191
- // handle the 3 simple types, and null or undefined
1192
- if (null == obj || 'object' !== typeof obj) {
1193
- return obj;
1194
- }
1195
- // handle date
1196
- if (obj instanceof Date) {
1197
- copy = new Date();
1198
- copy.setTime(obj.getTime());
1199
- return copy;
1200
- }
1201
- // handle array
1202
- if (obj instanceof Array) {
1203
- copy = [];
1204
- for (let i = 0, len = obj.length; i < len; i++) {
1205
- copy[i] = deepCopy(obj[i]);
1206
- }
1207
- return copy;
1208
- }
1209
- // handle object
1210
- if (obj instanceof Object) {
1211
- copy = {};
1212
- for (const attr in obj) {
1213
- if (obj.hasOwnProperty(attr)) {
1214
- copy[attr] = deepCopy(obj[attr]);
1215
- }
1216
- }
1217
- return copy;
1218
- }
1219
- throw new Error('Unable to copy object!');
1220
- }
1221
-
1222
1031
  class PendingChangesGuard {
1223
1032
  canDeactivate(component) {
1224
1033
  // if there are no pending changes, just allow deactivation; else confirm first
@@ -1232,9 +1041,9 @@ class PendingChangesGuard {
1232
1041
  'Press Cancel to go back and save, OK to continue.');
1233
1042
  }
1234
1043
  }
1235
- PendingChangesGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: PendingChangesGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1236
- PendingChangesGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: PendingChangesGuard, providedIn: 'root' });
1237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: PendingChangesGuard, decorators: [{
1044
+ PendingChangesGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: PendingChangesGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1045
+ PendingChangesGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: PendingChangesGuard, providedIn: 'root' });
1046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: PendingChangesGuard, decorators: [{
1238
1047
  type: Injectable,
1239
1048
  args: [{
1240
1049
  providedIn: 'root'
@@ -1271,157 +1080,15 @@ class SortPipe {
1271
1080
  });
1272
1081
  }
1273
1082
  }
1274
- SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1275
- SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: SortPipe, name: "sort" });
1276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: SortPipe, decorators: [{
1083
+ SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1084
+ SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SortPipe, name: "sort" });
1085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: SortPipe, decorators: [{
1277
1086
  type: Pipe,
1278
1087
  args: [{
1279
1088
  name: 'sort',
1280
1089
  }]
1281
1090
  }] });
1282
1091
 
1283
- /**
1284
- * Environment variables service. This requires EnvServiceProvider.
1285
- * See https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/.
1286
- *
1287
- * To use this service:
1288
- * 1. ensure to add env.js from your app's src folder to the app's assets
1289
- * ("src/env.js" under architect/build/options/assets);
1290
- * 2. add the EnvServiceProvider to your app's providers array;
1291
- * 3. ensure to include env.js in the head of your index.html:
1292
- * <script src="env.js"></script>.
1293
- *
1294
- * The env.js file should include all your environment-dependent settings,
1295
- * e.g.:
1296
- *
1297
- * (function (window) {
1298
- * window.__env = window.__env || {};
1299
- * window.__env.apiUrl = 'http://localhost:60200/api/';
1300
- * }(this));
1301
- */
1302
- class EnvService {
1303
- constructor() {
1304
- this._map = new Map();
1305
- }
1306
- /**
1307
- * Get the value for the specified key. If the key is not found,
1308
- * defValue will be returned.
1309
- *
1310
- * @param key The key.
1311
- * @param defValue The default value to return if key is not found.
1312
- */
1313
- get(key, defValue) {
1314
- if (this._map.has(key)) {
1315
- return this._map.get(key);
1316
- }
1317
- return defValue;
1318
- }
1319
- /**
1320
- * Enumerate all the keys in this store.
1321
- */
1322
- getKeys() {
1323
- return this._map.keys();
1324
- }
1325
- /**
1326
- * Set a value with the specified key.
1327
- *
1328
- * @param key The key.
1329
- * @param value The value.
1330
- */
1331
- set(key, value) {
1332
- this._map.set(key, value);
1333
- }
1334
- /**
1335
- * Delete the value with the specified key, if any.
1336
- *
1337
- * @param key The key.
1338
- */
1339
- delete(key) {
1340
- this._map.delete(key);
1341
- }
1342
- /**
1343
- * Clear this store.
1344
- */
1345
- clear() {
1346
- this._map.clear();
1347
- }
1348
- }
1349
- EnvService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: EnvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1350
- EnvService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: EnvService, providedIn: 'root' });
1351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: EnvService, decorators: [{
1352
- type: Injectable,
1353
- args: [{
1354
- providedIn: 'root',
1355
- }]
1356
- }], ctorParameters: function () { return []; } });
1357
-
1358
- // https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/
1359
- /**
1360
- * This function creates an instance of EnvService, and copies
1361
- * all the properties from window.__env object into it.
1362
- */
1363
- const EnvServiceFactory = () => {
1364
- const env = new EnvService();
1365
- // read environment variables from browser window
1366
- const browserWindow = window || {};
1367
- const browserWindowEnv = browserWindow['__env'] || {};
1368
- // assign environment variables from browser window to env;
1369
- // in the current implementation, properties from env.js
1370
- // overwrite defaults (if any) from the EnvService.
1371
- for (const key in browserWindowEnv) {
1372
- if (browserWindowEnv.hasOwnProperty(key)) {
1373
- env.set(key, browserWindowEnv[key]);
1374
- }
1375
- }
1376
- return env;
1377
- };
1378
- /**
1379
- * A provider recipe for the EnvService.
1380
- * This must be registered in the applications providers array.
1381
- */
1382
- const EnvServiceProvider = {
1383
- provide: EnvService,
1384
- useFactory: EnvServiceFactory,
1385
- deps: [],
1386
- };
1387
-
1388
- // https://angular.io/guide/http
1389
- /**
1390
- * Error handler for services. To use this in your service, pipe a catchError
1391
- * operator with its argument equal to the handleError method of this service.
1392
- * Note: pipe this method after retry, if using it.
1393
- */
1394
- class ErrorService {
1395
- /**
1396
- * Handle the specified error response.
1397
- * @param error The error response.
1398
- */
1399
- handleError(error) {
1400
- if (error.error instanceof ErrorEvent) {
1401
- // A client-side or network error occurred. Handle it accordingly.
1402
- console.error('A client-side or network error occurred: ', error.error.message);
1403
- }
1404
- else {
1405
- // The backend returned an unsuccessful response code.
1406
- // The response body may contain clues as to what went wrong,
1407
- console.error(`Backend returned code ${error.status}, ` + `body was: ${error.error}`);
1408
- if (typeof error === 'object') {
1409
- console.log(JSON.stringify(error));
1410
- }
1411
- }
1412
- // return an observable with a user-facing error message
1413
- return throwError('Something bad happened; please try again later.');
1414
- }
1415
- }
1416
- ErrorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1417
- ErrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ErrorService, providedIn: 'root' });
1418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ErrorService, decorators: [{
1419
- type: Injectable,
1420
- args: [{
1421
- providedIn: 'root',
1422
- }]
1423
- }] });
1424
-
1425
1092
  // npm i gravatar --save
1426
1093
  // npm i @types/gravatar --save
1427
1094
  class GravatarService {
@@ -1440,9 +1107,9 @@ class GravatarService {
1440
1107
  // return this.buildGravatarUrlFromHash(hash, size);
1441
1108
  }
1442
1109
  }
1443
- GravatarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: GravatarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1444
- GravatarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: GravatarService, providedIn: 'root' });
1445
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: GravatarService, decorators: [{
1110
+ GravatarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GravatarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1111
+ GravatarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GravatarService, providedIn: 'root' });
1112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: GravatarService, decorators: [{
1446
1113
  type: Injectable,
1447
1114
  args: [{
1448
1115
  providedIn: 'root'
@@ -1645,9 +1312,9 @@ class LibraryRouteService {
1645
1312
  };
1646
1313
  }
1647
1314
  }
1648
- LibraryRouteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LibraryRouteService, deps: [{ token: 'partEditorKeys' }], target: i0.ɵɵFactoryTarget.Injectable });
1649
- LibraryRouteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LibraryRouteService, providedIn: 'root' });
1650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LibraryRouteService, decorators: [{
1315
+ LibraryRouteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LibraryRouteService, deps: [{ token: 'partEditorKeys' }], target: i0.ɵɵFactoryTarget.Injectable });
1316
+ LibraryRouteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LibraryRouteService, providedIn: 'root' });
1317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LibraryRouteService, decorators: [{
1651
1318
  type: Injectable,
1652
1319
  args: [{
1653
1320
  providedIn: 'root'
@@ -1659,105 +1326,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImpor
1659
1326
  }] }];
1660
1327
  } });
1661
1328
 
1662
- class LocalStorageService {
1663
- /**
1664
- * Retrieve the object with the specified key from the specified storage.
1665
- * @param key key.
1666
- * @param session true to use session instead of local storage.
1667
- */
1668
- retrieve(key, session = false) {
1669
- const json = session
1670
- ? sessionStorage.getItem(key)
1671
- : localStorage.getItem(key);
1672
- if (!json) {
1673
- return null;
1674
- }
1675
- return JSON.parse(json);
1676
- }
1677
- /**
1678
- * Store the specified object with the specified key in the specified storage.
1679
- * @param key key.
1680
- * @param value object.
1681
- * @param session true to use session instead of local storage.
1682
- */
1683
- store(key, value, session = false) {
1684
- if (session) {
1685
- sessionStorage.setItem(key, JSON.stringify(value));
1686
- }
1687
- else {
1688
- localStorage.setItem(key, JSON.stringify(value));
1689
- }
1690
- }
1691
- /**
1692
- * Remove the object with the specified key from the specified storage.
1693
- * @param key key.
1694
- * @param session true to use session instead of local storage.
1695
- */
1696
- remove(key, session = false) {
1697
- if (session) {
1698
- sessionStorage.removeItem(key);
1699
- }
1700
- else {
1701
- localStorage.removeItem(key);
1702
- }
1703
- }
1704
- /**
1705
- * Get all the stored entities keys starting with the specified prefix.
1706
- * @param prefix key prefix.
1707
- * @param session true to use session instead of local storage.
1708
- */
1709
- getKeys(prefix, session = false) {
1710
- const keys = [];
1711
- if (session) {
1712
- for (let i = 0, len = sessionStorage.length; i < len; i++) {
1713
- const key = sessionStorage.key(i);
1714
- if (key.startsWith(prefix)) {
1715
- keys.push(key);
1716
- }
1717
- }
1718
- }
1719
- else {
1720
- for (let i = 0, len = localStorage.length; i < len; i++) {
1721
- const key = localStorage.key(i);
1722
- if (key.startsWith(prefix)) {
1723
- keys.push(key);
1724
- }
1725
- }
1726
- }
1727
- return keys;
1728
- }
1729
- /**
1730
- * Remove all the entries whose key starts with the specified prefix.
1731
- * @param prefix key prefix.
1732
- */
1733
- clear(prefix, session = false) {
1734
- if (session) {
1735
- for (let i = 0, len = sessionStorage.length; i < len; i++) {
1736
- const key = sessionStorage.key(i);
1737
- if (key.startsWith(prefix)) {
1738
- sessionStorage.removeItem(key);
1739
- }
1740
- }
1741
- }
1742
- else {
1743
- for (let i = 0, len = localStorage.length; i < len; i++) {
1744
- const key = localStorage.key(i);
1745
- if (key.startsWith(prefix)) {
1746
- localStorage.removeItem(key);
1747
- }
1748
- }
1749
- }
1750
- }
1751
- }
1752
- LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1753
- LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LocalStorageService, providedIn: 'root' });
1754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: LocalStorageService, decorators: [{
1755
- type: Injectable,
1756
- args: [{
1757
- providedIn: 'root',
1758
- }]
1759
- }] });
1760
-
1761
1329
  class TextLayerService {
1762
1330
  constructor() {
1763
1331
  this._wsRegex = new RegExp('^\\s$', 'g');
@@ -2428,9 +1996,9 @@ class TextLayerService {
2428
1996
  return sel.getRangeAt(0);
2429
1997
  }
2430
1998
  }
2431
- TextLayerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: TextLayerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2432
- TextLayerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: TextLayerService, providedIn: 'root' });
2433
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: TextLayerService, decorators: [{
1999
+ TextLayerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: TextLayerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2000
+ TextLayerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: TextLayerService, providedIn: 'root' });
2001
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: TextLayerService, decorators: [{
2434
2002
  type: Injectable,
2435
2003
  args: [{ providedIn: 'root' }]
2436
2004
  }], ctorParameters: function () { return []; } });
@@ -2532,15 +2100,15 @@ class PasswordValidator {
2532
2100
 
2533
2101
  class CadmusCoreModule {
2534
2102
  }
2535
- CadmusCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: CadmusCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2536
- CadmusCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: CadmusCoreModule, declarations: [SortPipe], imports: [CommonModule, HttpClientModule], exports: [SortPipe] });
2537
- CadmusCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: CadmusCoreModule, imports: [[CommonModule, HttpClientModule]] });
2538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: CadmusCoreModule, decorators: [{
2103
+ CadmusCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2104
+ CadmusCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusCoreModule, declarations: [SortPipe], imports: [CommonModule, HttpClientModule, NgToolsModule], exports: [SortPipe] });
2105
+ CadmusCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusCoreModule, imports: [[CommonModule, HttpClientModule, NgToolsModule]] });
2106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusCoreModule, decorators: [{
2539
2107
  type: NgModule,
2540
2108
  args: [{
2541
- imports: [CommonModule, HttpClientModule],
2109
+ imports: [CommonModule, HttpClientModule, NgToolsModule],
2542
2110
  declarations: [SortPipe],
2543
- exports: [SortPipe]
2111
+ exports: [SortPipe],
2544
2112
  }]
2545
2113
  }] });
2546
2114
 
@@ -2552,4 +2120,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImpor
2552
2120
  * Generated bundle index. Do not edit.
2553
2121
  */
2554
2122
 
2555
- export { CadmusCoreModule, CadmusValidators, DATATION_FORMAT_OPTIONS, DataPinValueType, Datation, EnvService, EnvServiceFactory, EnvServiceProvider, ErrorService, GravatarService, HistoricalDate, HistoricalDateType, LibraryRouteService, LocalStorageService, PasswordValidator, PendingChangesGuard, RomanNumber, SortPipe, TextLayerService, TextRange, TokenLocation, TokenPoint, deepCopy };
2123
+ export { CadmusCoreModule, CadmusValidators, DATATION_FORMAT_OPTIONS, DataPinValueType, Datation, GravatarService, HistoricalDate, HistoricalDateType, LibraryRouteService, PasswordValidator, PendingChangesGuard, SortPipe, TextLayerService, TextRange, TokenLocation, TokenPoint };