@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
@@ -1190,6 +1190,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1190
1190
  }] }];
1191
1191
  } });
1192
1192
 
1193
+ class AbsoluteDateFormatterPipe {
1194
+ constructor(formatter) {
1195
+ this.formatter = formatter;
1196
+ }
1197
+ transform(value, currYear) {
1198
+ return this.formatter.absoluteLongDate(value, currYear);
1199
+ }
1200
+ }
1201
+ /** @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 });
1202
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
1203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
1204
+ type: Pipe,
1205
+ args: [{ name: 'absoluteLongDate' }]
1206
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1207
+ class AbsoluteDateTimeFormatterPipe {
1208
+ constructor(formatter) {
1209
+ this.formatter = formatter;
1210
+ }
1211
+ transform(value, options) {
1212
+ return this.formatter.absoluteLongDateTime(value, options);
1213
+ }
1214
+ }
1215
+ /** @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 });
1216
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
1217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
1218
+ type: Pipe,
1219
+ args: [{ name: 'absoluteLongDateTime' }]
1220
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1221
+ class AbsoluteDateShortFormatterPipe {
1222
+ constructor(formatter) {
1223
+ this.formatter = formatter;
1224
+ }
1225
+ transform(value, currYear) {
1226
+ return this.formatter.absoluteShortDate(value, currYear);
1227
+ }
1228
+ }
1229
+ /** @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 });
1230
+ /** @nocollapse */ /** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
1231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
1232
+ type: Pipe,
1233
+ args: [{ name: 'absoluteShortDate' }]
1234
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1235
+ class AbsoluteShortDateTimeFormatterPipe {
1236
+ constructor(formatter) {
1237
+ this.formatter = formatter;
1238
+ }
1239
+ transform(value, options) {
1240
+ return this.formatter.absoluteShortDateTime(value, options);
1241
+ }
1242
+ }
1243
+ /** @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 });
1244
+ /** @nocollapse */ /** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
1245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
1246
+ type: Pipe,
1247
+ args: [{ name: 'absoluteShortDateTime' }]
1248
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1249
+ class RelativeDateFormatterPipe {
1250
+ constructor(formatter) {
1251
+ this.formatter = formatter;
1252
+ }
1253
+ transform(value) {
1254
+ return this.formatter.relativeLongDate(value);
1255
+ }
1256
+ }
1257
+ /** @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 });
1258
+ /** @nocollapse */ /** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
1259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
1260
+ type: Pipe,
1261
+ args: [{ name: 'relativeLongDate' }]
1262
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1263
+ class RelativeDateTimeFormatterPipe {
1264
+ constructor(formatter) {
1265
+ this.formatter = formatter;
1266
+ }
1267
+ transform(value, options) {
1268
+ return this.formatter.relativeLongDateTime(value, options);
1269
+ }
1270
+ }
1271
+ /** @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 });
1272
+ /** @nocollapse */ /** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
1273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
1274
+ type: Pipe,
1275
+ args: [{ name: 'relativeLongDateTime' }]
1276
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1277
+ class RelativeShortDateFormatterPipe {
1278
+ constructor(formatter) {
1279
+ this.formatter = formatter;
1280
+ }
1281
+ transform(value) {
1282
+ return this.formatter.relativeShortDate(value);
1283
+ }
1284
+ }
1285
+ /** @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 });
1286
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
1287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
1288
+ type: Pipe,
1289
+ args: [{ name: 'relativeShortDate' }]
1290
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1291
+ class RelativeShortDateTimeFormatterPipe {
1292
+ constructor(formatter) {
1293
+ this.formatter = formatter;
1294
+ }
1295
+ transform(value, options) {
1296
+ return this.formatter.relativeShortDateTime(value, options);
1297
+ }
1298
+ }
1299
+ /** @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 });
1300
+ /** @nocollapse */ /** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
1301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
1302
+ type: Pipe,
1303
+ args: [{ name: 'relativeShortDateTime' }]
1304
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1305
+ class RangeDateFormatterPipe {
1306
+ constructor(formatter) {
1307
+ this.formatter = formatter;
1308
+ }
1309
+ transform([value1, value2]) {
1310
+ return this.formatter.rangeLongDate(value1, value2);
1311
+ }
1312
+ }
1313
+ /** @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 });
1314
+ /** @nocollapse */ /** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
1315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
1316
+ type: Pipe,
1317
+ args: [{ name: 'rangeLongDate' }]
1318
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1319
+ class RangeShortDateFormatterPipe {
1320
+ constructor(formatter) {
1321
+ this.formatter = formatter;
1322
+ }
1323
+ transform([value1, value2]) {
1324
+ return this.formatter.rangeShortDate(value1, value2);
1325
+ }
1326
+ }
1327
+ /** @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 });
1328
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
1329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
1330
+ type: Pipe,
1331
+ args: [{ name: 'rangeShortDate' }]
1332
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1333
+ class RangeDateTimeFormatterPipe {
1334
+ constructor(formatter) {
1335
+ this.formatter = formatter;
1336
+ }
1337
+ transform([value1, value2], options) {
1338
+ return this.formatter.rangeLongDateTime(value1, value2, options);
1339
+ }
1340
+ }
1341
+ /** @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 });
1342
+ /** @nocollapse */ /** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
1343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
1344
+ type: Pipe,
1345
+ args: [{ name: 'rangeLongDateTime' }]
1346
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1347
+ class RangeMiddleDateTimeFormatterPipe {
1348
+ constructor(formatter) {
1349
+ this.formatter = formatter;
1350
+ }
1351
+ transform([value1, value2], options) {
1352
+ return this.formatter.rangeMiddleDateTime(value1, value2, options);
1353
+ }
1354
+ }
1355
+ /** @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 });
1356
+ /** @nocollapse */ /** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
1357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
1358
+ type: Pipe,
1359
+ args: [{ name: 'rangeMiddleDateTime' }]
1360
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1361
+ class RangeShortDateTimeFormatterPipe {
1362
+ constructor(formatter) {
1363
+ this.formatter = formatter;
1364
+ }
1365
+ transform([value1, value2], options) {
1366
+ return this.formatter.rangeShortDateTime(value1, value2, options);
1367
+ }
1368
+ }
1369
+ /** @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 });
1370
+ /** @nocollapse */ /** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
1371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
1372
+ type: Pipe,
1373
+ args: [{ name: 'rangeShortDateTime' }]
1374
+ }], ctorParameters: function () { return [{ type: DateFormatter }]; } });
1375
+
1193
1376
  /* tslint:disable:naming-convention */
1194
1377
  const MC_LOCALE_ID = new InjectionToken('McLocaleId');
1195
1378
  const DEFAULT_MC_LOCALE_ID = 'ru';
@@ -1292,13 +1475,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1292
1475
  class McFormattersModule {
1293
1476
  }
1294
1477
  /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1295
- /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe], exports: [McDecimalPipe] });
1478
+ /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe,
1479
+ AbsoluteDateFormatterPipe,
1480
+ AbsoluteDateTimeFormatterPipe,
1481
+ AbsoluteDateShortFormatterPipe,
1482
+ AbsoluteShortDateTimeFormatterPipe,
1483
+ RelativeDateFormatterPipe,
1484
+ RelativeDateTimeFormatterPipe,
1485
+ RelativeShortDateFormatterPipe,
1486
+ RelativeShortDateTimeFormatterPipe,
1487
+ RangeDateFormatterPipe,
1488
+ RangeShortDateFormatterPipe,
1489
+ RangeDateTimeFormatterPipe,
1490
+ RangeShortDateTimeFormatterPipe,
1491
+ RangeMiddleDateTimeFormatterPipe], exports: [McDecimalPipe,
1492
+ AbsoluteDateFormatterPipe,
1493
+ AbsoluteDateTimeFormatterPipe,
1494
+ AbsoluteDateShortFormatterPipe,
1495
+ AbsoluteShortDateTimeFormatterPipe,
1496
+ RelativeDateFormatterPipe,
1497
+ RelativeDateTimeFormatterPipe,
1498
+ RelativeShortDateFormatterPipe,
1499
+ RelativeShortDateTimeFormatterPipe,
1500
+ RangeDateFormatterPipe,
1501
+ RangeShortDateFormatterPipe,
1502
+ RangeDateTimeFormatterPipe,
1503
+ RangeShortDateTimeFormatterPipe,
1504
+ RangeMiddleDateTimeFormatterPipe] });
1296
1505
  /** @nocollapse */ /** @nocollapse */ McFormattersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, providers: [DateFormatter] });
1297
1506
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormattersModule, decorators: [{
1298
1507
  type: NgModule,
1299
1508
  args: [{
1300
- exports: [McDecimalPipe],
1301
- declarations: [McDecimalPipe],
1509
+ declarations: [
1510
+ McDecimalPipe,
1511
+ AbsoluteDateFormatterPipe,
1512
+ AbsoluteDateTimeFormatterPipe,
1513
+ AbsoluteDateShortFormatterPipe,
1514
+ AbsoluteShortDateTimeFormatterPipe,
1515
+ RelativeDateFormatterPipe,
1516
+ RelativeDateTimeFormatterPipe,
1517
+ RelativeShortDateFormatterPipe,
1518
+ RelativeShortDateTimeFormatterPipe,
1519
+ RangeDateFormatterPipe,
1520
+ RangeShortDateFormatterPipe,
1521
+ RangeDateTimeFormatterPipe,
1522
+ RangeShortDateTimeFormatterPipe,
1523
+ RangeMiddleDateTimeFormatterPipe
1524
+ ],
1525
+ exports: [
1526
+ McDecimalPipe,
1527
+ AbsoluteDateFormatterPipe,
1528
+ AbsoluteDateTimeFormatterPipe,
1529
+ AbsoluteDateShortFormatterPipe,
1530
+ AbsoluteShortDateTimeFormatterPipe,
1531
+ RelativeDateFormatterPipe,
1532
+ RelativeDateTimeFormatterPipe,
1533
+ RelativeShortDateFormatterPipe,
1534
+ RelativeShortDateTimeFormatterPipe,
1535
+ RangeDateFormatterPipe,
1536
+ RangeShortDateFormatterPipe,
1537
+ RangeDateTimeFormatterPipe,
1538
+ RangeShortDateTimeFormatterPipe,
1539
+ RangeMiddleDateTimeFormatterPipe
1540
+ ],
1302
1541
  providers: [DateFormatter]
1303
1542
  }]
1304
1543
  }] });
@@ -2552,7 +2791,8 @@ class McPopUpTrigger {
2552
2791
  this.listeners = new Map();
2553
2792
  this.destroyed = new Subject();
2554
2793
  this.detach = () => {
2555
- if (this.overlayRef && this.overlayRef.hasAttached()) {
2794
+ var _a;
2795
+ if ((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
2556
2796
  this.overlayRef.detach();
2557
2797
  }
2558
2798
  this.instance = null;
@@ -2587,9 +2827,8 @@ class McPopUpTrigger {
2587
2827
  this.initListeners();
2588
2828
  }
2589
2829
  ngOnDestroy() {
2590
- if (this.overlayRef) {
2591
- this.overlayRef.dispose();
2592
- }
2830
+ var _a;
2831
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
2593
2832
  this.listeners.forEach(this.removeEventListener);
2594
2833
  this.listeners.clear();
2595
2834
  this.destroyed.next();
@@ -2641,6 +2880,7 @@ class McPopUpTrigger {
2641
2880
  return;
2642
2881
  }
2643
2882
  this.overlayRef = this.createOverlay();
2883
+ this.subscribeOnClosingActions();
2644
2884
  this.detach();
2645
2885
  this.portal = this.portal || new ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
2646
2886
  this.instance = this.overlayRef.attach(this.portal).instance;
@@ -2681,12 +2921,7 @@ class McPopUpTrigger {
2681
2921
  .pipe(takeUntil(this.destroyed))
2682
2922
  .subscribe(this.onPositionChange);
2683
2923
  this.overlayRef = this.overlay.create(Object.assign(Object.assign({}, this.overlayConfig), { direction: this.direction, positionStrategy: strategy, scrollStrategy: this.scrollStrategy() }));
2684
- this.closingActions()
2685
- .pipe(takeUntil(this.destroyed))
2686
- .pipe(delay(0))
2687
- .subscribe(() => this.hide());
2688
- this.overlayRef.outsidePointerEvents()
2689
- .subscribe(() => this.instance.handleBodyInteraction());
2924
+ this.subscribeOnClosingActions();
2690
2925
  this.overlayRef.detachments()
2691
2926
  .pipe(takeUntil(this.destroyed))
2692
2927
  .subscribe(this.detach);
@@ -2715,6 +2950,7 @@ class McPopUpTrigger {
2715
2950
  /** Updates the position of the current popover. */
2716
2951
  updatePosition(reapplyPosition = false) {
2717
2952
  this.overlayRef = this.createOverlay();
2953
+ this.subscribeOnClosingActions();
2718
2954
  const position = this.overlayRef.getConfig().positionStrategy
2719
2955
  .withPositions(this.getPrioritizedPositions())
2720
2956
  .withPush(true);
@@ -2747,6 +2983,14 @@ class McPopUpTrigger {
2747
2983
  this.listeners.forEach(this.removeEventListener);
2748
2984
  this.listeners.clear();
2749
2985
  }
2986
+ subscribeOnClosingActions() {
2987
+ var _a;
2988
+ (_a = this.closingActionsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2989
+ this.closingActionsSubscription = this.closingActions()
2990
+ .pipe(takeUntil(this.destroyed))
2991
+ .pipe(delay(0))
2992
+ .subscribe(() => this.hide());
2993
+ }
2750
2994
  }
2751
2995
  /** @nocollapse */ /** @nocollapse */ McPopUpTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPopUpTrigger, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
2752
2996
  /** @nocollapse */ /** @nocollapse */ McPopUpTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McPopUpTrigger, ngImport: i0 });
@@ -2758,5 +3002,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2758
3002
  * Generated bundle index. Do not edit.
2759
3003
  */
2760
3004
 
2761
- 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 };
3005
+ 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 };
2762
3006
  //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map