@zajno/common 1.4.0 → 1.4.1
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/coverage/clover.xml +88 -79
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/src/__tests__/helpers/index.html +1 -1
- package/coverage/lcov-report/src/__tests__/helpers/main.ts.html +1 -1
- package/coverage/lcov-report/src/async/arrays.ts.html +1 -1
- package/coverage/lcov-report/src/async/index.html +1 -1
- package/coverage/lcov-report/src/dates/calc.ts.html +1 -1
- package/coverage/lcov-report/src/dates/convert.ts.html +1 -1
- package/coverage/lcov-report/src/dates/datex.ts.html +1 -1
- package/coverage/lcov-report/src/dates/format.ts.html +1 -1
- package/coverage/lcov-report/src/dates/index.html +1 -1
- package/coverage/lcov-report/src/dates/index.ts.html +1 -1
- package/coverage/lcov-report/src/dates/parse.ts.html +1 -1
- package/coverage/lcov-report/src/dates/period.ts.html +1 -1
- package/coverage/lcov-report/src/dates/shift.ts.html +1 -1
- package/coverage/lcov-report/src/dates/types.ts.html +1 -1
- package/coverage/lcov-report/src/dates/yearDate.ts.html +1 -1
- package/coverage/lcov-report/src/enumHelper.ts.html +1 -1
- package/coverage/lcov-report/src/event.ts.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +1 -1
- package/coverage/lcov-report/src/fields/update.ts.html +1 -1
- package/coverage/lcov-report/src/functions.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/lazy.light.ts.html +4 -4
- package/coverage/lcov-report/src/logger/batch.ts.html +1 -1
- package/coverage/lcov-report/src/logger/console.ts.html +1 -1
- package/coverage/lcov-report/src/logger/index.html +1 -1
- package/coverage/lcov-report/src/logger/index.ts.html +1 -1
- package/coverage/lcov-report/src/logger/named.ts.html +1 -1
- package/coverage/lcov-report/src/logger/proxy.ts.html +1 -1
- package/coverage/lcov-report/src/math/arrays.ts.html +1 -1
- package/coverage/lcov-report/src/math/calc.ts.html +1 -1
- package/coverage/lcov-report/src/math/distribution.ts.html +1 -1
- package/coverage/lcov-report/src/math/index.html +1 -1
- package/coverage/lcov-report/src/math/index.ts.html +1 -1
- package/coverage/lcov-report/src/transitionObserver.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +1 -1
- package/coverage/lcov-report/src/validation/ValidationErrors.ts.html +1 -1
- package/coverage/lcov-report/src/validation/creditCard.ts.html +1 -1
- package/coverage/lcov-report/src/validation/helpers.ts.html +1 -1
- package/coverage/lcov-report/src/validation/index.html +1 -1
- package/coverage/lcov-report/src/validation/index.ts.html +1 -1
- package/coverage/lcov-report/src/validation/types.ts.html +1 -1
- package/coverage/lcov-report/src/validation/validators.ts.html +1 -1
- package/coverage/lcov-report/src/validation/wrappers.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/FlagModel.ts.html +3 -3
- package/coverage/lcov-report/src/viewModels/MultiSelectModel.ts.html +20 -8
- package/coverage/lcov-report/src/viewModels/NumberModel.ts.html +1 -1
- package/coverage/lcov-report/src/viewModels/SelectModel.ts.html +48 -21
- package/coverage/lcov-report/src/viewModels/Validatable.ts.html +28 -10
- package/coverage/lcov-report/src/viewModels/index.html +35 -35
- package/coverage/lcov-report/src/viewModels/wrappers.ts.html +1 -1
- package/coverage/lcov.info +222 -204
- package/lib/viewModels/CommonModel.d.ts +0 -2
- package/lib/viewModels/CommonModel.d.ts.map +1 -1
- package/lib/viewModels/CommonModel.js +0 -5
- package/lib/viewModels/CommonModel.js.map +1 -1
- package/lib/viewModels/MultiSelectModel.d.ts.map +1 -1
- package/lib/viewModels/MultiSelectModel.js +3 -0
- package/lib/viewModels/MultiSelectModel.js.map +1 -1
- package/lib/viewModels/SelectModel.d.ts +1 -0
- package/lib/viewModels/SelectModel.d.ts.map +1 -1
- package/lib/viewModels/SelectModel.js +24 -14
- package/lib/viewModels/SelectModel.js.map +1 -1
- package/lib/viewModels/TextModel.d.ts.map +1 -1
- package/lib/viewModels/TextModel.js +3 -0
- package/lib/viewModels/TextModel.js.map +1 -1
- package/lib/viewModels/Validatable.d.ts +2 -0
- package/lib/viewModels/Validatable.d.ts.map +1 -1
- package/lib/viewModels/Validatable.js +5 -0
- package/lib/viewModels/Validatable.js.map +1 -1
- package/package.json +1 -1
- package/src/viewModels/CommonModel.ts +0 -6
- package/src/viewModels/MultiSelectModel.ts +4 -0
- package/src/viewModels/SelectModel.ts +11 -2
- package/src/viewModels/TextModel.ts +4 -0
- package/src/viewModels/Validatable.ts +6 -0
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1643639460812" clover="3.2.0">
|
|
3
|
+
<project timestamp="1643639460812" name="All files">
|
|
4
|
+
<metrics statements="1215" coveredstatements="1029" conditionals="781" coveredconditionals="623" methods="358" coveredmethods="257" elements="2354" coveredelements="1909" complexity="0" loc="1215" ncloc="1215" packages="9" files="41" classes="41"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="182" coveredstatements="159" conditionals="101" coveredconditionals="83" methods="68" coveredmethods="55"/>
|
|
7
7
|
<file name="enumHelper.ts" path="/Users/idudinov/projects/zajno-common-utils/src/enumHelper.ts">
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
<line num="11" count="11" type="stmt"/>
|
|
96
96
|
<line num="12" count="11" type="stmt"/>
|
|
97
97
|
<line num="14" count="11" type="stmt"/>
|
|
98
|
-
<line num="16" count="
|
|
98
|
+
<line num="16" count="23" type="cond" truecount="2" falsecount="0"/>
|
|
99
99
|
<line num="17" count="1" type="stmt"/>
|
|
100
|
-
<line num="19" count="
|
|
101
|
-
<line num="21" count="
|
|
100
|
+
<line num="19" count="23" type="stmt"/>
|
|
101
|
+
<line num="21" count="31" type="stmt"/>
|
|
102
102
|
<line num="23" count="0" type="stmt"/>
|
|
103
103
|
<line num="25" count="0" type="stmt"/>
|
|
104
104
|
<line num="28" count="11" type="stmt"/>
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
</file>
|
|
1102
1102
|
</package>
|
|
1103
1103
|
<package name="src.viewModels">
|
|
1104
|
-
<metrics statements="
|
|
1104
|
+
<metrics statements="246" coveredstatements="180" conditionals="64" coveredconditionals="26" methods="110" coveredmethods="69"/>
|
|
1105
1105
|
<file name="FlagModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/FlagModel.ts">
|
|
1106
1106
|
<metrics statements="22" coveredstatements="13" conditionals="1" coveredconditionals="1" methods="9" coveredmethods="4"/>
|
|
1107
1107
|
<line num="1" count="3" type="stmt"/>
|
|
@@ -1110,9 +1110,9 @@
|
|
|
1110
1110
|
<line num="21" count="17" type="stmt"/>
|
|
1111
1111
|
<line num="22" count="17" type="stmt"/>
|
|
1112
1112
|
<line num="26" count="39" type="stmt"/>
|
|
1113
|
-
<line num="30" count="
|
|
1113
|
+
<line num="30" count="50" type="stmt"/>
|
|
1114
1114
|
<line num="34" count="17" type="stmt"/>
|
|
1115
|
-
<line num="35" count="
|
|
1115
|
+
<line num="35" count="50" type="stmt"/>
|
|
1116
1116
|
<line num="38" count="0" type="stmt"/>
|
|
1117
1117
|
<line num="41" count="17" type="stmt"/>
|
|
1118
1118
|
<line num="42" count="0" type="stmt"/>
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
<line num="61" count="0" type="stmt"/>
|
|
1129
1129
|
</file>
|
|
1130
1130
|
<file name="MultiSelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/MultiSelectModel.ts">
|
|
1131
|
-
<metrics statements="
|
|
1131
|
+
<metrics statements="85" coveredstatements="65" conditionals="18" coveredconditionals="8" methods="42" coveredmethods="28"/>
|
|
1132
1132
|
<line num="1" count="1" type="stmt"/>
|
|
1133
1133
|
<line num="2" count="1" type="stmt"/>
|
|
1134
1134
|
<line num="3" count="1" type="stmt"/>
|
|
@@ -1189,29 +1189,31 @@
|
|
|
1189
1189
|
<line num="107" count="5" type="stmt"/>
|
|
1190
1190
|
<line num="109" count="3" type="stmt"/>
|
|
1191
1191
|
<line num="112" count="8" type="cond" truecount="1" falsecount="1"/>
|
|
1192
|
-
<line num="113" count="
|
|
1193
|
-
<line num="116" count="
|
|
1194
|
-
<line num="117" count="
|
|
1195
|
-
<line num="118" count="0" type="stmt"/>
|
|
1192
|
+
<line num="113" count="0" type="stmt"/>
|
|
1193
|
+
<line num="116" count="8" type="cond" truecount="1" falsecount="1"/>
|
|
1194
|
+
<line num="117" count="8" type="stmt"/>
|
|
1196
1195
|
<line num="120" count="0" type="stmt"/>
|
|
1197
|
-
<line num="
|
|
1198
|
-
<line num="
|
|
1199
|
-
<line num="
|
|
1200
|
-
<line num="128" count="
|
|
1201
|
-
<line num="129" count="
|
|
1202
|
-
<line num="
|
|
1203
|
-
<line num="
|
|
1204
|
-
<line num="
|
|
1205
|
-
<line num="137" count="
|
|
1206
|
-
<line num="
|
|
1207
|
-
<line num="
|
|
1196
|
+
<line num="121" count="0" type="stmt"/>
|
|
1197
|
+
<line num="122" count="0" type="stmt"/>
|
|
1198
|
+
<line num="124" count="0" type="stmt"/>
|
|
1199
|
+
<line num="128" count="6" type="stmt"/>
|
|
1200
|
+
<line num="129" count="6" type="stmt"/>
|
|
1201
|
+
<line num="131" count="6" type="stmt"/>
|
|
1202
|
+
<line num="132" count="1" type="stmt"/>
|
|
1203
|
+
<line num="133" count="1" type="stmt"/>
|
|
1204
|
+
<line num="137" count="7" type="stmt"/>
|
|
1205
|
+
<line num="138" count="7" type="stmt"/>
|
|
1206
|
+
<line num="140" count="7" type="cond" truecount="1" falsecount="1"/>
|
|
1207
|
+
<line num="141" count="0" type="stmt"/>
|
|
1208
1208
|
<line num="146" count="0" type="stmt"/>
|
|
1209
|
+
<line num="148" count="0" type="stmt"/>
|
|
1209
1210
|
<line num="150" count="0" type="stmt"/>
|
|
1210
|
-
<line num="
|
|
1211
|
-
<line num="153" count="0" type="stmt"/>
|
|
1211
|
+
<line num="154" count="0" type="stmt"/>
|
|
1212
1212
|
<line num="155" count="0" type="stmt"/>
|
|
1213
|
-
<line num="
|
|
1214
|
-
<line num="
|
|
1213
|
+
<line num="157" count="0" type="stmt"/>
|
|
1214
|
+
<line num="159" count="0" type="stmt"/>
|
|
1215
|
+
<line num="163" count="1" type="stmt"/>
|
|
1216
|
+
<line num="166" count="3" type="stmt"/>
|
|
1215
1217
|
</file>
|
|
1216
1218
|
<file name="NumberModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/NumberModel.ts">
|
|
1217
1219
|
<metrics statements="17" coveredstatements="15" conditionals="3" coveredconditionals="1" methods="8" coveredmethods="4"/>
|
|
@@ -1234,7 +1236,7 @@
|
|
|
1234
1236
|
<line num="44" count="1" type="stmt"/>
|
|
1235
1237
|
</file>
|
|
1236
1238
|
<file name="SelectModel.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/SelectModel.ts">
|
|
1237
|
-
<metrics statements="
|
|
1239
|
+
<metrics statements="60" coveredstatements="54" conditionals="18" coveredconditionals="15" methods="26" coveredmethods="22"/>
|
|
1238
1240
|
<line num="1" count="1" type="stmt"/>
|
|
1239
1241
|
<line num="2" count="1" type="stmt"/>
|
|
1240
1242
|
<line num="3" count="1" type="stmt"/>
|
|
@@ -1270,30 +1272,34 @@
|
|
|
1270
1272
|
<line num="67" count="4" type="stmt"/>
|
|
1271
1273
|
<line num="71" count="0" type="stmt"/>
|
|
1272
1274
|
<line num="74" count="11" type="stmt"/>
|
|
1273
|
-
<line num="78" count="16" type="
|
|
1274
|
-
<line num="
|
|
1275
|
-
<line num="
|
|
1276
|
-
<line num="
|
|
1277
|
-
<line num="
|
|
1278
|
-
<line num="
|
|
1279
|
-
<line num="
|
|
1280
|
-
<line num="
|
|
1281
|
-
<line num="
|
|
1282
|
-
<line num="97" count="
|
|
1283
|
-
<line num="98" count="
|
|
1284
|
-
<line num="
|
|
1285
|
-
<line num="
|
|
1286
|
-
<line num="106" count="
|
|
1287
|
-
<line num="
|
|
1288
|
-
<line num="111" count="
|
|
1289
|
-
<line num="
|
|
1290
|
-
<line num="
|
|
1291
|
-
<line num="119" count="
|
|
1292
|
-
<line num="
|
|
1293
|
-
<line num="
|
|
1275
|
+
<line num="78" count="16" type="stmt"/>
|
|
1276
|
+
<line num="82" count="5" type="stmt"/>
|
|
1277
|
+
<line num="83" count="16" type="cond" truecount="1" falsecount="1"/>
|
|
1278
|
+
<line num="84" count="0" type="stmt"/>
|
|
1279
|
+
<line num="87" count="16" type="stmt"/>
|
|
1280
|
+
<line num="89" count="16" type="cond" truecount="1" falsecount="1"/>
|
|
1281
|
+
<line num="90" count="0" type="stmt"/>
|
|
1282
|
+
<line num="94" count="16" type="stmt"/>
|
|
1283
|
+
<line num="95" count="16" type="stmt"/>
|
|
1284
|
+
<line num="97" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
1285
|
+
<line num="98" count="45" type="stmt"/>
|
|
1286
|
+
<line num="101" count="16" type="stmt"/>
|
|
1287
|
+
<line num="105" count="5" type="stmt"/>
|
|
1288
|
+
<line num="106" count="1" type="stmt"/>
|
|
1289
|
+
<line num="107" count="1" type="stmt"/>
|
|
1290
|
+
<line num="111" count="1" type="stmt"/>
|
|
1291
|
+
<line num="113" count="3" type="stmt"/>
|
|
1292
|
+
<line num="115" count="9" type="stmt"/>
|
|
1293
|
+
<line num="119" count="18" type="stmt"/>
|
|
1294
|
+
<line num="120" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
1295
|
+
<line num="121" count="7" type="stmt"/>
|
|
1296
|
+
<line num="125" count="3" type="stmt"/>
|
|
1297
|
+
<line num="128" count="1" type="stmt"/>
|
|
1298
|
+
<line num="133" count="1" type="stmt"/>
|
|
1299
|
+
<line num="135" count="3" type="stmt"/>
|
|
1294
1300
|
</file>
|
|
1295
1301
|
<file name="Validatable.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/Validatable.ts">
|
|
1296
|
-
<metrics statements="
|
|
1302
|
+
<metrics statements="43" coveredstatements="17" conditionals="24" coveredconditionals="1" methods="15" coveredmethods="4"/>
|
|
1297
1303
|
<line num="1" count="2" type="stmt"/>
|
|
1298
1304
|
<line num="2" count="2" type="stmt"/>
|
|
1299
1305
|
<line num="3" count="2" type="stmt"/>
|
|
@@ -1303,37 +1309,40 @@
|
|
|
1303
1309
|
<line num="18" count="11" type="stmt"/>
|
|
1304
1310
|
<line num="21" count="11" type="stmt"/>
|
|
1305
1311
|
<line num="23" count="11" type="stmt"/>
|
|
1306
|
-
<line num="
|
|
1307
|
-
<line num="
|
|
1308
|
-
<line num="
|
|
1309
|
-
<line num="
|
|
1310
|
-
<line num="37" count="0" type="cond" truecount="0" falsecount="
|
|
1311
|
-
<line num="38" count="0" type="
|
|
1312
|
-
<line num="
|
|
1312
|
+
<line num="24" count="11" type="stmt"/>
|
|
1313
|
+
<line num="27" count="11" type="stmt"/>
|
|
1314
|
+
<line num="32" count="0" type="stmt"/>
|
|
1315
|
+
<line num="34" count="1" type="stmt"/>
|
|
1316
|
+
<line num="37" count="0" type="cond" truecount="0" falsecount="6"/>
|
|
1317
|
+
<line num="38" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1318
|
+
<line num="39" count="0" type="stmt"/>
|
|
1313
1319
|
<line num="43" count="0" type="stmt"/>
|
|
1314
1320
|
<line num="44" count="0" type="stmt"/>
|
|
1315
|
-
<line num="
|
|
1316
|
-
<line num="
|
|
1317
|
-
<line num="
|
|
1318
|
-
<line num="
|
|
1319
|
-
<line num="
|
|
1320
|
-
<line num="
|
|
1321
|
+
<line num="48" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1322
|
+
<line num="49" count="0" type="stmt"/>
|
|
1323
|
+
<line num="50" count="0" type="stmt"/>
|
|
1324
|
+
<line num="52" count="0" type="stmt"/>
|
|
1325
|
+
<line num="56" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
1326
|
+
<line num="57" count="1" type="stmt"/>
|
|
1321
1327
|
<line num="60" count="0" type="stmt"/>
|
|
1322
|
-
<line num="
|
|
1323
|
-
<line num="
|
|
1324
|
-
<line num="
|
|
1325
|
-
<line num="
|
|
1326
|
-
<line num="
|
|
1328
|
+
<line num="61" count="0" type="stmt"/>
|
|
1329
|
+
<line num="62" count="0" type="stmt"/>
|
|
1330
|
+
<line num="66" count="0" type="stmt"/>
|
|
1331
|
+
<line num="69" count="0" type="stmt"/>
|
|
1332
|
+
<line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1327
1333
|
<line num="71" count="0" type="stmt"/>
|
|
1328
|
-
<line num="
|
|
1329
|
-
<line num="
|
|
1330
|
-
<line num="
|
|
1331
|
-
<line num="81" count="
|
|
1332
|
-
<line num="82" count="
|
|
1333
|
-
<line num="86" count="
|
|
1334
|
-
<line num="87" count="
|
|
1335
|
-
<line num="
|
|
1336
|
-
<line num="
|
|
1334
|
+
<line num="73" count="0" type="stmt"/>
|
|
1335
|
+
<line num="74" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1336
|
+
<line num="77" count="0" type="stmt"/>
|
|
1337
|
+
<line num="81" count="0" type="stmt"/>
|
|
1338
|
+
<line num="82" count="0" type="stmt"/>
|
|
1339
|
+
<line num="86" count="2" type="stmt"/>
|
|
1340
|
+
<line num="87" count="2" type="stmt"/>
|
|
1341
|
+
<line num="88" count="2" type="stmt"/>
|
|
1342
|
+
<line num="92" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1343
|
+
<line num="93" count="0" type="stmt"/>
|
|
1344
|
+
<line num="96" count="0" type="stmt"/>
|
|
1345
|
+
<line num="97" count="0" type="stmt"/>
|
|
1337
1346
|
</file>
|
|
1338
1347
|
<file name="wrappers.ts" path="/Users/idudinov/projects/zajno-common-utils/src/viewModels/wrappers.ts">
|
|
1339
1348
|
<metrics statements="19" coveredstatements="16" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="7"/>
|