@ptsecurity/mosaic 13.10.0 → 13.11.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.
Files changed (50) hide show
  1. package/_theming.scss +12 -8
  2. package/_visual.scss +13 -9
  3. package/core/formatters/date/formatter.pipe.d.ts +95 -0
  4. package/core/formatters/index.d.ts +3 -1
  5. package/core/pop-up/pop-up-trigger.d.ts +3 -1
  6. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +4 -0
  7. package/design-tokens/legacy-2017/tokens.d.ts +4 -0
  8. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +4 -0
  9. package/design-tokens/pt-2022/tokens.d.ts +4 -0
  10. package/design-tokens/style-dictionary/formats/figma.js +2 -2
  11. package/esm2020/core/formatters/date/formatter.pipe.mjs +187 -0
  12. package/esm2020/core/formatters/index.mjs +62 -4
  13. package/esm2020/core/pop-up/pop-up-trigger.mjs +13 -11
  14. package/esm2020/design-tokens/legacy-2017/tokens.mjs +5 -1
  15. package/esm2020/design-tokens/pt-2022/tokens.mjs +5 -1
  16. package/esm2020/modal/modal.service.mjs +2 -1
  17. package/esm2020/popover/popover.component.mjs +11 -2
  18. package/esm2020/sidepanel/sidepanel.service.mjs +2 -1
  19. package/esm2020/toast/toast-container.component.mjs +2 -2
  20. package/esm2020/toast/toast.service.mjs +12 -3
  21. package/fesm2015/ptsecurity-mosaic-core.mjs +258 -14
  22. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  23. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +13 -1
  24. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  25. package/fesm2015/ptsecurity-mosaic-modal.mjs +1 -0
  26. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  27. package/fesm2015/ptsecurity-mosaic-popover.mjs +11 -2
  28. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  29. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +1 -0
  30. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  31. package/fesm2015/ptsecurity-mosaic-toast.mjs +13 -4
  32. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
  33. package/fesm2020/ptsecurity-mosaic-core.mjs +255 -14
  34. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  35. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +13 -1
  36. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  37. package/fesm2020/ptsecurity-mosaic-modal.mjs +1 -0
  38. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  39. package/fesm2020/ptsecurity-mosaic-popover.mjs +11 -2
  40. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  41. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +1 -0
  42. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  43. package/fesm2020/ptsecurity-mosaic-toast.mjs +13 -4
  44. package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
  45. package/package.json +4 -4
  46. package/popover/popover.component.d.ts +2 -1
  47. package/prebuilt-themes/dark-theme.css +1 -1
  48. package/prebuilt-themes/default-theme.css +1 -1
  49. package/prebuilt-visual/default-visual.css +1 -1
  50. package/toast/toast.service.d.ts +1 -0
@@ -1213,6 +1213,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1213
1213
  args: [MC_DATE_LOCALE]
1214
1214
  }] }]; } });
1215
1215
 
1216
+ class AbsoluteDateFormatterPipe {
1217
+ constructor(formatter) {
1218
+ this.formatter = formatter;
1219
+ }
1220
+ transform(value, currYear) {
1221
+ return this.formatter.absoluteLongDate(value, currYear);
1222
+ }
1223
+ }
1224
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1225
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
1226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
1227
+ type: Pipe,
1228
+ args: [{ name: 'absoluteLongDate' }]
1229
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1230
+ class AbsoluteDateTimeFormatterPipe {
1231
+ constructor(formatter) {
1232
+ this.formatter = formatter;
1233
+ }
1234
+ transform(value, options) {
1235
+ return this.formatter.absoluteLongDateTime(value, options);
1236
+ }
1237
+ }
1238
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1239
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
1240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
1241
+ type: Pipe,
1242
+ args: [{ name: 'absoluteLongDateTime' }]
1243
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1244
+ class AbsoluteDateShortFormatterPipe {
1245
+ constructor(formatter) {
1246
+ this.formatter = formatter;
1247
+ }
1248
+ transform(value, currYear) {
1249
+ return this.formatter.absoluteShortDate(value, currYear);
1250
+ }
1251
+ }
1252
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1253
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
1254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
1255
+ type: Pipe,
1256
+ args: [{ name: 'absoluteShortDate' }]
1257
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1258
+ class AbsoluteShortDateTimeFormatterPipe {
1259
+ constructor(formatter) {
1260
+ this.formatter = formatter;
1261
+ }
1262
+ transform(value, options) {
1263
+ return this.formatter.absoluteShortDateTime(value, options);
1264
+ }
1265
+ }
1266
+ /** @nocollapse */ /** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1267
+ /** @nocollapse */ /** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
1268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
1269
+ type: Pipe,
1270
+ args: [{ name: 'absoluteShortDateTime' }]
1271
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1272
+ class RelativeDateFormatterPipe {
1273
+ constructor(formatter) {
1274
+ this.formatter = formatter;
1275
+ }
1276
+ transform(value) {
1277
+ return this.formatter.relativeLongDate(value);
1278
+ }
1279
+ }
1280
+ /** @nocollapse */ /** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1281
+ /** @nocollapse */ /** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
1282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
1283
+ type: Pipe,
1284
+ args: [{ name: 'relativeLongDate' }]
1285
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1286
+ class RelativeDateTimeFormatterPipe {
1287
+ constructor(formatter) {
1288
+ this.formatter = formatter;
1289
+ }
1290
+ transform(value, options) {
1291
+ return this.formatter.relativeLongDateTime(value, options);
1292
+ }
1293
+ }
1294
+ /** @nocollapse */ /** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1295
+ /** @nocollapse */ /** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
1296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
1297
+ type: Pipe,
1298
+ args: [{ name: 'relativeLongDateTime' }]
1299
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1300
+ class RelativeShortDateFormatterPipe {
1301
+ constructor(formatter) {
1302
+ this.formatter = formatter;
1303
+ }
1304
+ transform(value) {
1305
+ return this.formatter.relativeShortDate(value);
1306
+ }
1307
+ }
1308
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1309
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
1310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
1311
+ type: Pipe,
1312
+ args: [{ name: 'relativeShortDate' }]
1313
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1314
+ class RelativeShortDateTimeFormatterPipe {
1315
+ constructor(formatter) {
1316
+ this.formatter = formatter;
1317
+ }
1318
+ transform(value, options) {
1319
+ return this.formatter.relativeShortDateTime(value, options);
1320
+ }
1321
+ }
1322
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1323
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
1324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
1325
+ type: Pipe,
1326
+ args: [{ name: 'relativeShortDateTime' }]
1327
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1328
+ class RangeDateFormatterPipe {
1329
+ constructor(formatter) {
1330
+ this.formatter = formatter;
1331
+ }
1332
+ transform([value1, value2]) {
1333
+ return this.formatter.rangeLongDate(value1, value2);
1334
+ }
1335
+ }
1336
+ /** @nocollapse */ /** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1337
+ /** @nocollapse */ /** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
1338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
1339
+ type: Pipe,
1340
+ args: [{ name: 'rangeLongDate' }]
1341
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1342
+ class RangeShortDateFormatterPipe {
1343
+ constructor(formatter) {
1344
+ this.formatter = formatter;
1345
+ }
1346
+ transform([value1, value2]) {
1347
+ return this.formatter.rangeShortDate(value1, value2);
1348
+ }
1349
+ }
1350
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1351
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
1352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
1353
+ type: Pipe,
1354
+ args: [{ name: 'rangeShortDate' }]
1355
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1356
+ class RangeDateTimeFormatterPipe {
1357
+ constructor(formatter) {
1358
+ this.formatter = formatter;
1359
+ }
1360
+ transform([value1, value2], options) {
1361
+ return this.formatter.rangeLongDateTime(value1, value2, options);
1362
+ }
1363
+ }
1364
+ /** @nocollapse */ /** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1365
+ /** @nocollapse */ /** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
1366
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
1367
+ type: Pipe,
1368
+ args: [{ name: 'rangeLongDateTime' }]
1369
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1370
+ class RangeMiddleDateTimeFormatterPipe {
1371
+ constructor(formatter) {
1372
+ this.formatter = formatter;
1373
+ }
1374
+ transform([value1, value2], options) {
1375
+ return this.formatter.rangeMiddleDateTime(value1, value2, options);
1376
+ }
1377
+ }
1378
+ /** @nocollapse */ /** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1379
+ /** @nocollapse */ /** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
1380
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
1381
+ type: Pipe,
1382
+ args: [{ name: 'rangeMiddleDateTime' }]
1383
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1384
+ class RangeShortDateTimeFormatterPipe {
1385
+ constructor(formatter) {
1386
+ this.formatter = formatter;
1387
+ }
1388
+ transform([value1, value2], options) {
1389
+ return this.formatter.rangeShortDateTime(value1, value2, options);
1390
+ }
1391
+ }
1392
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
1393
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
1394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
1395
+ type: Pipe,
1396
+ args: [{ name: 'rangeShortDateTime' }]
1397
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1398
+
1216
1399
  /* tslint:disable:naming-convention */
1217
1400
  const MC_LOCALE_ID = new InjectionToken('McLocaleId');
1218
1401
  const DEFAULT_MC_LOCALE_ID = 'ru';
@@ -1319,13 +1502,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1319
1502
  class McFormattersModule {
1320
1503
  }
1321
1504
  /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1322
- /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe], exports: [McDecimalPipe] });
1505
+ /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe,
1506
+ AbsoluteDateFormatterPipe,
1507
+ AbsoluteDateTimeFormatterPipe,
1508
+ AbsoluteDateShortFormatterPipe,
1509
+ AbsoluteShortDateTimeFormatterPipe,
1510
+ RelativeDateFormatterPipe,
1511
+ RelativeDateTimeFormatterPipe,
1512
+ RelativeShortDateFormatterPipe,
1513
+ RelativeShortDateTimeFormatterPipe,
1514
+ RangeDateFormatterPipe,
1515
+ RangeShortDateFormatterPipe,
1516
+ RangeDateTimeFormatterPipe,
1517
+ RangeShortDateTimeFormatterPipe,
1518
+ RangeMiddleDateTimeFormatterPipe], exports: [McDecimalPipe,
1519
+ AbsoluteDateFormatterPipe,
1520
+ AbsoluteDateTimeFormatterPipe,
1521
+ AbsoluteDateShortFormatterPipe,
1522
+ AbsoluteShortDateTimeFormatterPipe,
1523
+ RelativeDateFormatterPipe,
1524
+ RelativeDateTimeFormatterPipe,
1525
+ RelativeShortDateFormatterPipe,
1526
+ RelativeShortDateTimeFormatterPipe,
1527
+ RangeDateFormatterPipe,
1528
+ RangeShortDateFormatterPipe,
1529
+ RangeDateTimeFormatterPipe,
1530
+ RangeShortDateTimeFormatterPipe,
1531
+ RangeMiddleDateTimeFormatterPipe] });
1323
1532
  /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, providers: [DateFormatter] });
1324
1533
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, decorators: [{
1325
1534
  type: NgModule,
1326
1535
  args: [{
1327
- exports: [McDecimalPipe],
1328
- declarations: [McDecimalPipe],
1536
+ declarations: [
1537
+ McDecimalPipe,
1538
+ AbsoluteDateFormatterPipe,
1539
+ AbsoluteDateTimeFormatterPipe,
1540
+ AbsoluteDateShortFormatterPipe,
1541
+ AbsoluteShortDateTimeFormatterPipe,
1542
+ RelativeDateFormatterPipe,
1543
+ RelativeDateTimeFormatterPipe,
1544
+ RelativeShortDateFormatterPipe,
1545
+ RelativeShortDateTimeFormatterPipe,
1546
+ RangeDateFormatterPipe,
1547
+ RangeShortDateFormatterPipe,
1548
+ RangeDateTimeFormatterPipe,
1549
+ RangeShortDateTimeFormatterPipe,
1550
+ RangeMiddleDateTimeFormatterPipe
1551
+ ],
1552
+ exports: [
1553
+ McDecimalPipe,
1554
+ AbsoluteDateFormatterPipe,
1555
+ AbsoluteDateTimeFormatterPipe,
1556
+ AbsoluteDateShortFormatterPipe,
1557
+ AbsoluteShortDateTimeFormatterPipe,
1558
+ RelativeDateFormatterPipe,
1559
+ RelativeDateTimeFormatterPipe,
1560
+ RelativeShortDateFormatterPipe,
1561
+ RelativeShortDateTimeFormatterPipe,
1562
+ RangeDateFormatterPipe,
1563
+ RangeShortDateFormatterPipe,
1564
+ RangeDateTimeFormatterPipe,
1565
+ RangeShortDateTimeFormatterPipe,
1566
+ RangeMiddleDateTimeFormatterPipe
1567
+ ],
1329
1568
  providers: [DateFormatter]
1330
1569
  }]
1331
1570
  }] });
@@ -2576,7 +2815,7 @@ class McPopUpTrigger {
2576
2815
  this.listeners = new Map();
2577
2816
  this.destroyed = new Subject();
2578
2817
  this.detach = () => {
2579
- if (this.overlayRef && this.overlayRef.hasAttached()) {
2818
+ if (this.overlayRef?.hasAttached()) {
2580
2819
  this.overlayRef.detach();
2581
2820
  }
2582
2821
  this.instance = null;
@@ -2611,9 +2850,7 @@ class McPopUpTrigger {
2611
2850
  this.initListeners();
2612
2851
  }
2613
2852
  ngOnDestroy() {
2614
- if (this.overlayRef) {
2615
- this.overlayRef.dispose();
2616
- }
2853
+ this.overlayRef?.dispose();
2617
2854
  this.listeners.forEach(this.removeEventListener);
2618
2855
  this.listeners.clear();
2619
2856
  this.destroyed.next();
@@ -2665,6 +2902,7 @@ class McPopUpTrigger {
2665
2902
  return;
2666
2903
  }
2667
2904
  this.overlayRef = this.createOverlay();
2905
+ this.subscribeOnClosingActions();
2668
2906
  this.detach();
2669
2907
  this.portal = this.portal || new ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
2670
2908
  this.instance = this.overlayRef.attach(this.portal).instance;
@@ -2710,12 +2948,7 @@ class McPopUpTrigger {
2710
2948
  positionStrategy: strategy,
2711
2949
  scrollStrategy: this.scrollStrategy()
2712
2950
  });
2713
- this.closingActions()
2714
- .pipe(takeUntil(this.destroyed))
2715
- .pipe(delay(0))
2716
- .subscribe(() => this.hide());
2717
- this.overlayRef.outsidePointerEvents()
2718
- .subscribe(() => this.instance.handleBodyInteraction());
2951
+ this.subscribeOnClosingActions();
2719
2952
  this.overlayRef.detachments()
2720
2953
  .pipe(takeUntil(this.destroyed))
2721
2954
  .subscribe(this.detach);
@@ -2744,6 +2977,7 @@ class McPopUpTrigger {
2744
2977
  /** Updates the position of the current popover. */
2745
2978
  updatePosition(reapplyPosition = false) {
2746
2979
  this.overlayRef = this.createOverlay();
2980
+ this.subscribeOnClosingActions();
2747
2981
  const position = this.overlayRef.getConfig().positionStrategy
2748
2982
  .withPositions(this.getPrioritizedPositions())
2749
2983
  .withPush(true);
@@ -2776,6 +3010,13 @@ class McPopUpTrigger {
2776
3010
  this.listeners.forEach(this.removeEventListener);
2777
3011
  this.listeners.clear();
2778
3012
  }
3013
+ subscribeOnClosingActions() {
3014
+ this.closingActionsSubscription?.unsubscribe();
3015
+ this.closingActionsSubscription = this.closingActions()
3016
+ .pipe(takeUntil(this.destroyed))
3017
+ .pipe(delay(0))
3018
+ .subscribe(() => this.hide());
3019
+ }
2779
3020
  }
2780
3021
  /** @nocollapse */ /** @nocollapse */ McPopUpTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPopUpTrigger, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
2781
3022
  /** @nocollapse */ /** @nocollapse */ McPopUpTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McPopUpTrigger, ngImport: i0 });
@@ -2787,5 +3028,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2787
3028
  * Generated bundle index. Do not edit.
2788
3029
  */
2789
3030
 
2790
- export { 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, 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, setMosaicValidation, setMosaicValidationForCustomFormControl, setMosaicValidationForFormControl, setMosaicValidationForModelControl, setValidState, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
3031
+ 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, setMosaicValidation, setMosaicValidationForCustomFormControl, setMosaicValidationForFormControl, setMosaicValidationForModelControl, setValidState, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
2791
3032
  //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map