@ptsecurity/mosaic 14.3.0 → 14.4.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.
- package/_theming.scss +13 -4
- package/_visual.scss +8 -3
- package/core/formatters/date/formatter.pipe.d.ts +79 -66
- package/core/formatters/number/formatter.d.ts +13 -3
- package/datepicker/datepicker-input.directive.d.ts +1 -0
- package/design-tokens/legacy-2017/tokens/components/datepicker.json5 +15 -6
- package/design-tokens/legacy-2017/tokens/components/popup.json5 +1 -1
- package/design-tokens/legacy-2017/tokens.d.ts +9 -3
- package/design-tokens/pt-2022/tokens/components/datepicker.json5 +13 -4
- package/design-tokens/pt-2022/tokens/components/popup.json5 +1 -1
- package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +1 -2
- package/design-tokens/pt-2022/tokens.d.ts +8 -3
- package/esm2020/core/formatters/date/formatter.pipe.mjs +87 -54
- package/esm2020/core/formatters/number/formatter.mjs +26 -10
- package/esm2020/core/select/constants.mjs +1 -1
- package/esm2020/core/version.mjs +2 -2
- package/esm2020/datepicker/calendar-body.component.mjs +2 -2
- package/esm2020/datepicker/datepicker-input.directive.mjs +9 -6
- package/esm2020/datepicker/datepicker.component.mjs +3 -3
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +10 -4
- package/esm2020/design-tokens/pt-2022/tokens.mjs +9 -4
- package/esm2020/form-field/form-field.mjs +50 -9
- package/esm2020/form-field/form-field.module.mjs +10 -6
- package/esm2020/form-field/password-hint.mjs +4 -4
- package/esm2020/input/input.mjs +10 -21
- package/esm2020/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2020/select/select.component.mjs +10 -2
- package/esm2020/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2020/sidepanel/sidepanel-directives.mjs +16 -11
- package/esm2020/tags/tag-input.mjs +19 -7
- package/esm2020/toast/toast.service.mjs +5 -4
- package/fesm2015/ptsecurity-mosaic-core.mjs +110 -60
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +12 -9
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +26 -9
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +62 -15
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +10 -20
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +9 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +18 -13
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +19 -8
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toast.mjs +4 -3
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +110 -63
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +12 -9
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +26 -9
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +60 -17
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +9 -20
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +9 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +18 -13
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +16 -5
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toast.mjs +4 -3
- package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/form-field/form-field.d.ts +12 -2
- package/form-field/form-field.module.d.ts +1 -1
- package/input/input.d.ts +1 -2
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/select/select.component.d.ts +2 -0
- package/tags/tag-input.d.ts +5 -2
@@ -17,7 +17,7 @@ import { takeUntil, distinctUntilChanged, delay } from 'rxjs/operators';
|
|
17
17
|
import * as i1$1 from '@angular/cdk/a11y';
|
18
18
|
import { ComponentPortal } from '@angular/cdk/portal';
|
19
19
|
|
20
|
-
const VERSION = new Version('14.
|
20
|
+
const VERSION = new Version('14.2.6+sha-9dfb9002');
|
21
21
|
|
22
22
|
function isBoolean(val) { return typeof val === 'boolean'; }
|
23
23
|
function toBoolean(value) {
|
@@ -1184,190 +1184,228 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImpor
|
|
1184
1184
|
} });
|
1185
1185
|
|
1186
1186
|
class AbsoluteDateFormatterPipe {
|
1187
|
-
constructor(formatter) {
|
1187
|
+
constructor(adapter, formatter) {
|
1188
|
+
this.adapter = adapter;
|
1188
1189
|
this.formatter = formatter;
|
1189
1190
|
}
|
1190
1191
|
transform(value, currYear) {
|
1191
|
-
|
1192
|
+
const date = this.adapter.deserialize(value);
|
1193
|
+
return date ? this.formatter.absoluteLongDate(date, currYear) : '';
|
1192
1194
|
}
|
1193
1195
|
}
|
1194
|
-
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1196
|
+
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1195
1197
|
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
|
1196
1198
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
1197
1199
|
type: Pipe,
|
1198
1200
|
args: [{ name: 'absoluteLongDate' }]
|
1199
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1201
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1200
1202
|
class AbsoluteDateTimeFormatterPipe {
|
1201
|
-
constructor(formatter) {
|
1203
|
+
constructor(adapter, formatter) {
|
1204
|
+
this.adapter = adapter;
|
1202
1205
|
this.formatter = formatter;
|
1203
1206
|
}
|
1204
1207
|
transform(value, options) {
|
1205
|
-
|
1208
|
+
const date = this.adapter.deserialize(value);
|
1209
|
+
return date ? this.formatter.absoluteLongDateTime(date, options) : '';
|
1206
1210
|
}
|
1207
1211
|
}
|
1208
|
-
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1212
|
+
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1209
1213
|
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
|
1210
1214
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
1211
1215
|
type: Pipe,
|
1212
1216
|
args: [{ name: 'absoluteLongDateTime' }]
|
1213
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1217
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1214
1218
|
class AbsoluteDateShortFormatterPipe {
|
1215
|
-
constructor(formatter) {
|
1219
|
+
constructor(adapter, formatter) {
|
1220
|
+
this.adapter = adapter;
|
1216
1221
|
this.formatter = formatter;
|
1217
1222
|
}
|
1218
1223
|
transform(value, currYear) {
|
1219
|
-
|
1224
|
+
const date = this.adapter.deserialize(value);
|
1225
|
+
return date ? this.formatter.absoluteShortDate(date, currYear) : '';
|
1220
1226
|
}
|
1221
1227
|
}
|
1222
|
-
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1228
|
+
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1223
1229
|
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
|
1224
1230
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
1225
1231
|
type: Pipe,
|
1226
1232
|
args: [{ name: 'absoluteShortDate' }]
|
1227
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1233
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1228
1234
|
class AbsoluteShortDateTimeFormatterPipe {
|
1229
|
-
constructor(formatter) {
|
1235
|
+
constructor(adapter, formatter) {
|
1236
|
+
this.adapter = adapter;
|
1230
1237
|
this.formatter = formatter;
|
1231
1238
|
}
|
1232
1239
|
transform(value, options) {
|
1233
|
-
|
1240
|
+
const date = this.adapter.deserialize(value);
|
1241
|
+
return date ? this.formatter.absoluteShortDateTime(date, options) : '';
|
1234
1242
|
}
|
1235
1243
|
}
|
1236
|
-
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1244
|
+
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1237
1245
|
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
|
1238
1246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
1239
1247
|
type: Pipe,
|
1240
1248
|
args: [{ name: 'absoluteShortDateTime' }]
|
1241
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1249
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1242
1250
|
class RelativeDateFormatterPipe {
|
1243
|
-
constructor(formatter) {
|
1251
|
+
constructor(adapter, formatter) {
|
1252
|
+
this.adapter = adapter;
|
1244
1253
|
this.formatter = formatter;
|
1245
1254
|
}
|
1246
1255
|
transform(value) {
|
1247
|
-
|
1256
|
+
const date = this.adapter.deserialize(value);
|
1257
|
+
return date ? this.formatter.relativeLongDate(date) : '';
|
1248
1258
|
}
|
1249
1259
|
}
|
1250
|
-
/** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1260
|
+
/** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1251
1261
|
/** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
|
1252
1262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
1253
1263
|
type: Pipe,
|
1254
1264
|
args: [{ name: 'relativeLongDate' }]
|
1255
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1265
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1256
1266
|
class RelativeDateTimeFormatterPipe {
|
1257
|
-
constructor(formatter) {
|
1267
|
+
constructor(adapter, formatter) {
|
1268
|
+
this.adapter = adapter;
|
1258
1269
|
this.formatter = formatter;
|
1259
1270
|
}
|
1260
1271
|
transform(value, options) {
|
1261
|
-
|
1272
|
+
const date = this.adapter.deserialize(value);
|
1273
|
+
return date ? this.formatter.relativeLongDateTime(date, options) : '';
|
1262
1274
|
}
|
1263
1275
|
}
|
1264
|
-
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1276
|
+
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1265
1277
|
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
|
1266
1278
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
1267
1279
|
type: Pipe,
|
1268
1280
|
args: [{ name: 'relativeLongDateTime' }]
|
1269
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1281
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1270
1282
|
class RelativeShortDateFormatterPipe {
|
1271
|
-
constructor(formatter) {
|
1283
|
+
constructor(adapter, formatter) {
|
1284
|
+
this.adapter = adapter;
|
1272
1285
|
this.formatter = formatter;
|
1273
1286
|
}
|
1274
1287
|
transform(value) {
|
1275
|
-
|
1288
|
+
const date = this.adapter.deserialize(value);
|
1289
|
+
return date ? this.formatter.relativeShortDate(date) : '';
|
1276
1290
|
}
|
1277
1291
|
}
|
1278
|
-
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1292
|
+
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1279
1293
|
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
|
1280
1294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
1281
1295
|
type: Pipe,
|
1282
1296
|
args: [{ name: 'relativeShortDate' }]
|
1283
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1297
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1284
1298
|
class RelativeShortDateTimeFormatterPipe {
|
1285
|
-
constructor(formatter) {
|
1299
|
+
constructor(adapter, formatter) {
|
1300
|
+
this.adapter = adapter;
|
1286
1301
|
this.formatter = formatter;
|
1287
1302
|
}
|
1288
1303
|
transform(value, options) {
|
1289
|
-
|
1304
|
+
const date = this.adapter.deserialize(value);
|
1305
|
+
return date ? this.formatter.relativeShortDateTime(date, options) : '';
|
1290
1306
|
}
|
1291
1307
|
}
|
1292
|
-
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1308
|
+
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1293
1309
|
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
|
1294
1310
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
1295
1311
|
type: Pipe,
|
1296
1312
|
args: [{ name: 'relativeShortDateTime' }]
|
1297
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1313
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1298
1314
|
class RangeDateFormatterPipe {
|
1299
|
-
constructor(formatter) {
|
1315
|
+
constructor(adapter, formatter) {
|
1316
|
+
this.adapter = adapter;
|
1300
1317
|
this.formatter = formatter;
|
1301
1318
|
}
|
1302
1319
|
transform([value1, value2]) {
|
1303
|
-
|
1320
|
+
const date1 = this.adapter.deserialize(value1);
|
1321
|
+
const date2 = this.adapter.deserialize(value2);
|
1322
|
+
return this.formatter.rangeLongDate(date1, date2);
|
1304
1323
|
}
|
1305
1324
|
}
|
1306
|
-
/** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1325
|
+
/** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1307
1326
|
/** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
|
1308
1327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
1309
1328
|
type: Pipe,
|
1310
1329
|
args: [{ name: 'rangeLongDate' }]
|
1311
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1330
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1312
1331
|
class RangeShortDateFormatterPipe {
|
1313
|
-
constructor(formatter) {
|
1332
|
+
constructor(adapter, formatter) {
|
1333
|
+
this.adapter = adapter;
|
1314
1334
|
this.formatter = formatter;
|
1315
1335
|
}
|
1316
1336
|
transform([value1, value2]) {
|
1317
|
-
|
1337
|
+
const date1 = this.adapter.deserialize(value1);
|
1338
|
+
const date2 = this.adapter.deserialize(value2);
|
1339
|
+
return this.formatter.rangeShortDate(date1, date2);
|
1318
1340
|
}
|
1319
1341
|
}
|
1320
|
-
/** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1342
|
+
/** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1321
1343
|
/** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
|
1322
1344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
1323
1345
|
type: Pipe,
|
1324
1346
|
args: [{ name: 'rangeShortDate' }]
|
1325
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1347
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1326
1348
|
class RangeDateTimeFormatterPipe {
|
1327
|
-
constructor(formatter) {
|
1349
|
+
constructor(adapter, formatter) {
|
1350
|
+
this.adapter = adapter;
|
1328
1351
|
this.formatter = formatter;
|
1329
1352
|
}
|
1330
1353
|
transform([value1, value2], options) {
|
1331
|
-
|
1354
|
+
const date1 = this.adapter.deserialize(value1);
|
1355
|
+
const date2 = this.adapter.deserialize(value2);
|
1356
|
+
return this.formatter.rangeLongDateTime(date1, date2, options);
|
1332
1357
|
}
|
1333
1358
|
}
|
1334
|
-
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1359
|
+
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1335
1360
|
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
|
1336
1361
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
1337
1362
|
type: Pipe,
|
1338
1363
|
args: [{ name: 'rangeLongDateTime' }]
|
1339
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1364
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1340
1365
|
class RangeMiddleDateTimeFormatterPipe {
|
1341
|
-
constructor(formatter) {
|
1366
|
+
constructor(adapter, formatter) {
|
1367
|
+
this.adapter = adapter;
|
1342
1368
|
this.formatter = formatter;
|
1343
1369
|
}
|
1344
1370
|
transform([value1, value2], options) {
|
1345
|
-
|
1371
|
+
const date1 = this.adapter.deserialize(value1);
|
1372
|
+
const date2 = this.adapter.deserialize(value2);
|
1373
|
+
return this.formatter.rangeMiddleDateTime(date1, date2, options);
|
1346
1374
|
}
|
1347
1375
|
}
|
1348
|
-
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1376
|
+
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1349
1377
|
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
|
1350
1378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
|
1351
1379
|
type: Pipe,
|
1352
1380
|
args: [{ name: 'rangeMiddleDateTime' }]
|
1353
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1381
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1354
1382
|
class RangeShortDateTimeFormatterPipe {
|
1355
|
-
constructor(formatter) {
|
1383
|
+
constructor(adapter, formatter) {
|
1384
|
+
this.adapter = adapter;
|
1356
1385
|
this.formatter = formatter;
|
1357
1386
|
}
|
1358
1387
|
transform([value1, value2], options) {
|
1359
|
-
|
1388
|
+
const date1 = this.adapter.deserialize(value1);
|
1389
|
+
const date2 = this.adapter.deserialize(value2);
|
1390
|
+
return this.formatter.rangeShortDateTime(date1, date2, options);
|
1360
1391
|
}
|
1361
1392
|
}
|
1362
|
-
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1393
|
+
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: i1.DateAdapter }, { token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1363
1394
|
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
|
1364
1395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
|
1365
1396
|
type: Pipe,
|
1366
1397
|
args: [{ name: 'rangeShortDateTime' }]
|
1367
|
-
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1398
|
+
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: DateFormatter }]; } });
|
1368
1399
|
|
1369
1400
|
/* tslint:disable:naming-convention */
|
1370
1401
|
const MC_LOCALE_ID = new InjectionToken('McLocaleId');
|
1402
|
+
const MC_NUMBER_FORMATTER_OPTIONS = new InjectionToken('McNumberFormatterOptions');
|
1403
|
+
const MC_NUMBER_FORMATTER_DEFAULT_OPTIONS = {
|
1404
|
+
useGrouping: true,
|
1405
|
+
minimumIntegerDigits: 1,
|
1406
|
+
minimumFractionDigits: 0,
|
1407
|
+
maximumFractionDigits: 3
|
1408
|
+
};
|
1371
1409
|
const DEFAULT_MC_LOCALE_ID = 'ru';
|
1372
1410
|
function isEmpty(value) {
|
1373
1411
|
return value == null || value === '' || value !== value;
|
@@ -1381,10 +1419,11 @@ function strToNumber(value) {
|
|
1381
1419
|
}
|
1382
1420
|
return value;
|
1383
1421
|
}
|
1384
|
-
const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
|
1422
|
+
const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?(-(true|false))?)?$/;
|
1385
1423
|
const minIntGroupPosition = 1;
|
1386
1424
|
const minFractionGroupPosition = 3;
|
1387
1425
|
const maxFractionGroupPosition = 5;
|
1426
|
+
const useGroupingPosition = 7;
|
1388
1427
|
class ParsedDigitsInfo {
|
1389
1428
|
}
|
1390
1429
|
function parseDigitsInfo(digitsInfo) {
|
@@ -1395,6 +1434,7 @@ function parseDigitsInfo(digitsInfo) {
|
|
1395
1434
|
const minIntPart = parts[minIntGroupPosition];
|
1396
1435
|
const minFractionPart = parts[minFractionGroupPosition];
|
1397
1436
|
const maxFractionPart = parts[maxFractionGroupPosition];
|
1437
|
+
const useGroupingPart = parts[useGroupingPosition];
|
1398
1438
|
const result = new ParsedDigitsInfo();
|
1399
1439
|
if (minIntPart != null) {
|
1400
1440
|
result.minimumIntegerDigits = parseInt(minIntPart);
|
@@ -1408,11 +1448,16 @@ function parseDigitsInfo(digitsInfo) {
|
|
1408
1448
|
else if (minFractionPart != null && result.minimumFractionDigits > result.maximumFractionDigits) {
|
1409
1449
|
result.maximumFractionDigits = result.minimumFractionDigits;
|
1410
1450
|
}
|
1451
|
+
if (useGroupingPart != null) {
|
1452
|
+
result.useGrouping = useGroupingPart === 'true';
|
1453
|
+
}
|
1411
1454
|
return result;
|
1412
1455
|
}
|
1413
1456
|
class McDecimalPipe {
|
1414
|
-
constructor(
|
1415
|
-
this.
|
1457
|
+
constructor(locale, options) {
|
1458
|
+
this.locale = locale;
|
1459
|
+
this.options = options;
|
1460
|
+
this.options = this.options || MC_NUMBER_FORMATTER_DEFAULT_OPTIONS;
|
1416
1461
|
}
|
1417
1462
|
/**
|
1418
1463
|
* @param value The number to be formatted.
|
@@ -1432,12 +1477,12 @@ class McDecimalPipe {
|
|
1432
1477
|
if (isEmpty(value)) {
|
1433
1478
|
return null;
|
1434
1479
|
}
|
1435
|
-
const currentLocale = locale || this.
|
1480
|
+
const currentLocale = locale || this.locale || DEFAULT_MC_LOCALE_ID;
|
1436
1481
|
let parsedDigitsInfo;
|
1437
1482
|
if (digitsInfo) {
|
1438
1483
|
parsedDigitsInfo = parseDigitsInfo(digitsInfo);
|
1439
1484
|
}
|
1440
|
-
const options = Object.assign({
|
1485
|
+
const options = Object.assign(Object.assign({}, this.options), parsedDigitsInfo);
|
1441
1486
|
try {
|
1442
1487
|
const num = strToNumber(value);
|
1443
1488
|
return Intl.NumberFormat.call(this, currentLocale, options).format(num);
|
@@ -1447,7 +1492,7 @@ class McDecimalPipe {
|
|
1447
1492
|
}
|
1448
1493
|
}
|
1449
1494
|
}
|
1450
|
-
/** @nocollapse */ McDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
1495
|
+
/** @nocollapse */ McDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }, { token: MC_NUMBER_FORMATTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
1451
1496
|
/** @nocollapse */ McDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.5", ngImport: i0, type: McDecimalPipe, name: "mcNumber" });
|
1452
1497
|
/** @nocollapse */ McDecimalPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: McDecimalPipe, providedIn: 'root' });
|
1453
1498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImport: i0, type: McDecimalPipe, decorators: [{
|
@@ -1462,6 +1507,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImpor
|
|
1462
1507
|
}, {
|
1463
1508
|
type: Inject,
|
1464
1509
|
args: [MC_LOCALE_ID]
|
1510
|
+
}] }, { type: ParsedDigitsInfo, decorators: [{
|
1511
|
+
type: Optional
|
1512
|
+
}, {
|
1513
|
+
type: Inject,
|
1514
|
+
args: [MC_NUMBER_FORMATTER_OPTIONS]
|
1465
1515
|
}] }];
|
1466
1516
|
} });
|
1467
1517
|
|
@@ -2887,5 +2937,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.5", ngImpor
|
|
2887
2937
|
* Generated bundle index. Do not edit.
|
2888
2938
|
*/
|
2889
2939
|
|
2890
|
-
export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DEFAULT_MC_LOCALE_ID, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_ID, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_VALIDATION, McCommonModule, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, countGroupLabelsBeforeOption, fadeAnimation, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
|
2940
|
+
export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DEFAULT_MC_LOCALE_ID, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_ID, MC_NUMBER_FORMATTER_DEFAULT_OPTIONS, MC_NUMBER_FORMATTER_OPTIONS, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_VALIDATION, McCommonModule, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, countGroupLabelsBeforeOption, fadeAnimation, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
|
2891
2941
|
//# sourceMappingURL=ptsecurity-mosaic-core.mjs.map
|