ngx-smz-ui 3.2.11 → 3.2.15

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputnumber'), require('primeng/inputtextarea'), require('@angular/flex-layout/extended'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('@angular/common/http'), require('moment'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('primeng/utils'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('primeng/accordion'), require('@ngxs/router-plugin'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('primeng/sidebar'), require('primeng/selectbutton'), require('ngx-pipes'), require('primeng/badge'), require('primeng/contextmenu'), require('primeng/tree'), require('chart.js/auto'), require('chart.js/helpers'), require('ngx-device-detector')) :
3
3
  typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputnumber', 'primeng/inputtextarea', '@angular/flex-layout/extended', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', '@angular/common/http', 'moment', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'primeng/utils', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'primeng/accordion', '@ngxs/router-plugin', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', 'primeng/sidebar', 'primeng/selectbutton', 'ngx-pipes', 'primeng/badge', 'primeng/contextmenu', 'primeng/tree', 'chart.js/auto', 'chart.js/helpers', 'ngx-device-detector'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-smz-ui'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global['lodash-es'], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputnumber, global.inputtextarea, global.ng.flexLayout.extended, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.ng.common.http, global.moment, global.ng.animations, global.dom, global['until-destroy'], global.progressbar, global.utils, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.accordion, global['router-plugin'], global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global.sidebar, global.selectbutton, global.ngxpipes, global.badge, global.contextmenu, global.tree, global.chartjaauto, global.chartjshelpers, global.ngxDeviceDetector));
5
- }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7$1, i5$1, i5, message, progressspinner, i7, i1$6, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$7, i2, i3$1, i4$1, i2$1, i4$2, i1$8, i1$9, i3$2, i1$a, i1$c, i1$b, i1$d, i1$e, fileupload, i1$f, moment_, animations, dom, untilDestroy, progressbar, utils, angular2Uuid, angularJwt, i9, i1$g, i3$3, i3$4, routerPlugin, animations$1, localePt, menubar, i3$5, i4$3, i3$6, i5$2, i1$h, i2$2, Chart, helpers, ngxDeviceDetector) { 'use strict';
5
+ }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7$1, i5$1, i5, message, progressspinner, i7, i1$6, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$7, i2, i3$1, i4$1, i2$1, i4$2, i1$8, i1$9, i3$2, i1$a, i1$c, i1$b, i1$d, i1$e, fileupload, i1$f, moment_, animations, dom, untilDestroy, progressbar, utils, angular2Uuid, angularJwt, i9, i1$g, i3$3, i3$4, routerPlugin, animations$1, localePt, menubar, i3$5, i4$3, i3$6, i6, i1$h, i2$2, Chart, helpers, ngxDeviceDetector) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -64,7 +64,7 @@
64
64
  var i3__namespace$5 = /*#__PURE__*/_interopNamespace(i3$5);
65
65
  var i4__namespace$3 = /*#__PURE__*/_interopNamespace(i4$3);
66
66
  var i3__namespace$6 = /*#__PURE__*/_interopNamespace(i3$6);
67
- var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
67
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
68
68
  var i1__namespace$h = /*#__PURE__*/_interopNamespace(i1$h);
69
69
  var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
70
70
  var Chart__default = /*#__PURE__*/_interopDefaultLegacy(Chart);
@@ -2921,7 +2921,7 @@
2921
2921
  return CalendarComponent;
2922
2922
  }());
2923
2923
  CalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: CalendarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2924
- CalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: CalendarComponent, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 p-col-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper\">\n <p-calendar\n fxFlex=\"grow\"\n class=\"p-col-12 p-col-nogutter smz__input_value\"\n [monthNavigator]=\"true\"\n [yearNavigator]=\"true\"\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\n\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\n [timeOnly]=\"input.timeOnly\"\n\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n appendTo=\"body\">\n </p-calendar>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1__namespace$9.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "numberOfMonths", "view", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace$1.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1__namespace$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$3.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
2924
+ CalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: CalendarComponent, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 p-col-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper\">\n <p-calendar\n fxFlex=\"grow\"\n class=\"p-col-12 p-col-nogutter smz__input_value\"\n [monthNavigator]=\"true\"\n [yearNavigator]=\"true\"\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\n\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\n [timeOnly]=\"input.timeOnly\"\n [showTime]=\"input.showTime\"\n\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n appendTo=\"body\">\n </p-calendar>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1__namespace$9.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "numberOfMonths", "view", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace$1.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1__namespace$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$3.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
2925
2925
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: CalendarComponent, decorators: [{
2926
2926
  type: i0.Component,
2927
2927
  args: [{
@@ -4585,7 +4585,9 @@
4585
4585
  function CalendarPipe() {
4586
4586
  }
4587
4587
  CalendarPipe.prototype.transform = function (data, method, days, format) {
4588
- if (moment$1(data) > moment$1(new Date()).subtract(days, 'days')) {
4588
+ var date = moment$1(data).set({ h: 0, m: 0, s: 0 });
4589
+ var comparison = moment$1().set({ h: 23, m: 59, s: 59 }).subtract(days, days > 1 ? 'days' : 'day');
4590
+ if (date > comparison) {
4589
4591
  switch (method) {
4590
4592
  case 'fromNow':
4591
4593
  return moment$1(data).fromNow();
@@ -10081,6 +10083,8 @@
10081
10083
  var _this = _super.call(this, _groupBuilder, _calendarInput) || this;
10082
10084
  _this._groupBuilder = _groupBuilder;
10083
10085
  _this._calendarInput = _calendarInput;
10086
+ _calendarInput.timeOnly = false;
10087
+ _calendarInput.showTime = false;
10084
10088
  return _this;
10085
10089
  }
10086
10090
  SmzFormCalendarBuilder.prototype.enableTouchUI = function () {
@@ -10095,10 +10099,14 @@
10095
10099
  this._calendarInput.defaultValue = new Date();
10096
10100
  return this;
10097
10101
  };
10098
- SmzFormCalendarBuilder.prototype.setTimeOnly = function () {
10102
+ SmzFormCalendarBuilder.prototype.useTimeOnly = function () {
10099
10103
  this._calendarInput.timeOnly = true;
10100
10104
  return this;
10101
10105
  };
10106
+ SmzFormCalendarBuilder.prototype.enableDateAndTime = function () {
10107
+ this._calendarInput.showTime = true;
10108
+ return this;
10109
+ };
10102
10110
  return SmzFormCalendarBuilder;
10103
10111
  }(SmzFormInputBuilder));
10104
10112
  var SmzFormCheckboxGroupBuilder = /** @class */ (function (_super) {
@@ -18031,7 +18039,7 @@
18031
18039
  return NotificationItemComponent;
18032
18040
  }());
18033
18041
  NotificationItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NotificationItemComponent, deps: [{ token: NgxRbkUtilsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
18034
- NotificationItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: NotificationItemComponent, selector: "smz-notification-item", inputs: { item: "item", charactersLimit: "charactersLimit", showDate: "showDate" }, ngImport: i0__namespace, template: "<div class=\"p-grid p-nogutter p-flex-row p-flex-nowrap p-align-center p-justify-between relative flex-gap-1 pl-2 py-2\">\n\n <div class=\"p-grid p-nogutter p-flex-column p-align-stretch p-justify-start relative pl-2\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-start mb-1\" [ngClass]=\"rbkConfig.notifications.showTypeIndicators ? typeClass[item.type] : ''\">\n <div class=\"font-medium\" [ngClass]=\"{ 'font-extrabold': item.status === status.NEW || item.status === status.NOTIFIED }\">{{item.title}}</div>\n <div *ngIf=\"item.status === status.NEW\" class=\"rounded bg-blue-500 text-white px-1 py-0.5 ml-2 text-xs\">NOVO</div>\n </div>\n <div class=\"text-sm\" [ngClass]=\"{ 'font-bold': item.status === status.NEW || item.status === status.NOTIFIED }\">{{ charactersLimit != null ? (item.body | shorten : charactersLimit : '...') : item.body}}</div>\n </div>\n\n <div *ngIf=\"showDate\">\n <span *ngIf=\"rbkConfig.notifications.date as date\" class=\"text-xs text-right whitespace-nowrap\">\n {{ item.date | calendar : date.method : date.days : date.format }}\n </span>\n </div>\n\n</div>\n", styles: ["smz-notification-item .success-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-success)}smz-notification-item .info-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-info)}smz-notification-item .warning-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-warning)}smz-notification-item .danger-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-danger)}smz-notification-item .help-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-help)}"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "shorten": i3__namespace$6.ShortenPipe, "calendar": CalendarPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
18042
+ NotificationItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: NotificationItemComponent, selector: "smz-notification-item", inputs: { item: "item", charactersLimit: "charactersLimit", showDate: "showDate" }, ngImport: i0__namespace, template: "<div class=\"p-grid p-nogutter p-flex-row p-flex-nowrap p-align-center p-justify-between relative flex-gap-1 py-2\">\n\n <div class=\"p-grid p-nogutter p-flex-column p-align-stretch p-justify-start relative flex-gap-1\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-start mb-1\" [ngClass]=\"rbkConfig.notifications.showTypeIndicators ? typeClass[item.type] : ''\">\n <div class=\"font-medium\" [ngClass]=\"{ 'font-extrabold': item.status === status.NEW || item.status === status.NOTIFIED }\">{{item.title}}</div>\n <div *ngIf=\"item.status === status.NEW\" class=\"rounded bg-blue-500 text-white px-1 py-0.5 ml-2 text-xs\">NOVO</div>\n </div>\n <div class=\"text-sm\" [ngClass]=\"{ 'font-bold': item.status === status.NEW || item.status === status.NOTIFIED }\">{{ charactersLimit != null ? (item.body | shorten : charactersLimit : '...') : item.body}}</div>\n </div>\n\n <div *ngIf=\"showDate\">\n <span *ngIf=\"rbkConfig.notifications.date as date\" class=\"text-xs text-right whitespace-nowrap\">\n {{ item.date | calendar : date.recentsMethod : date.recentsDaysCount : date.othersFormat }}\n </span>\n </div>\n\n</div>\n", styles: ["smz-notification-item .success-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-success)}smz-notification-item .info-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-info)}smz-notification-item .warning-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-warning)}smz-notification-item .danger-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-danger)}smz-notification-item .help-type:before{content:\"\";position:absolute;top:0;left:-5px;width:5px;bottom:0;background-color:var(--color-help)}"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "shorten": i3__namespace$6.ShortenPipe, "calendar": CalendarPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
18035
18043
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NotificationItemComponent, decorators: [{
18036
18044
  type: i0.Component,
18037
18045
  args: [{
@@ -18218,13 +18226,14 @@
18218
18226
  }], batchRemove: [], remove: [] } });
18219
18227
 
18220
18228
  var SmzNotificationsComponent = /** @class */ (function () {
18221
- function SmzNotificationsComponent(store) {
18229
+ function SmzNotificationsComponent(store, rbkConfig) {
18222
18230
  this.store = store;
18231
+ this.rbkConfig = rbkConfig;
18223
18232
  }
18224
18233
  return SmzNotificationsComponent;
18225
18234
  }());
18226
- SmzNotificationsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzNotificationsComponent, deps: [{ token: i1__namespace$e.Store }], target: i0__namespace.ɵɵFactoryTarget.Component });
18227
- SmzNotificationsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzNotificationsComponent, selector: "smz-ui-notifications", ngImport: i0__namespace, template: "<ng-container *ngIf=\"notifications$ | async as notifications\">\n <i class=\"pi pi-bell badge-color regular-badge\" pBadge [value]=\"(newCount$ | async).toString()\">\n <div class=\"absolute inset-0 notification-container cursor-pointer\" (click)=\"op.toggle($event)\"></div>\n </i>\n\n <p-overlayPanel #op [style]=\"{ 'width': '550px', 'z-index': 990 }\" appendTo=\"body\" [autoZIndex]=\"false\">\n <ng-template pTemplate>\n <smz-notifications-list [notifications]=\"notifications\"></smz-notifications-list>\n </ng-template>\n </p-overlayPanel>\n\n</ng-container>", styles: ["smz-ui-notifications .notification-container{min-width:40px}smz-ui-notifications .badge-color{color:var(--primary-color-text)}smz-ui-notifications .p-badge{background:var(--surface-a);color:var(--primary-color)}smz-ui-notifications .regular-badge{font-size:1.6rem;line-height:1.6rem}smz-ui-notifications .regular-badge .p-badge{font-size:.8rem;font-weight:700;min-width:1.1rem;height:1.1rem;line-height:1.1rem}"], components: [{ type: i2__namespace$1.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: NotificationsListComponent, selector: "smz-notifications-list", inputs: ["notifications"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.BadgeDirective, selector: "[pBadge]", inputs: ["iconPos", "value", "severity"] }, { type: i1__namespace$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
18235
+ SmzNotificationsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzNotificationsComponent, deps: [{ token: i1__namespace$e.Store }, { token: NgxRbkUtilsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
18236
+ SmzNotificationsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzNotificationsComponent, selector: "smz-ui-notifications", ngImport: i0__namespace, template: "<ng-container *ngIf=\"notifications$ | async as notifications\">\n <i class=\"pi pi-bell badge-color regular-badge\" pBadge [value]=\"(newCount$ | async).toString()\">\n <div class=\"absolute inset-0 notification-container cursor-pointer\" (click)=\"op.toggle($event)\"></div>\n </i>\n\n <p-overlayPanel #op [style]=\"{ 'width': rbkConfig.notifications.width, 'z-index': rbkConfig.notifications.zIndex }\" [ngClass]=\"rbkConfig.notifications.styleClass\" appendTo=\"body\" [autoZIndex]=\"false\">\n <ng-template pTemplate>\n <smz-notifications-list [notifications]=\"notifications\"></smz-notifications-list>\n </ng-template>\n </p-overlayPanel>\n\n</ng-container>", styles: ["smz-ui-notifications .notification-container{min-width:40px}smz-ui-notifications .badge-color{color:var(--primary-color-text)}smz-ui-notifications .p-badge{background:var(--surface-a);color:var(--primary-color)}smz-ui-notifications .regular-badge{font-size:1.6rem;line-height:1.6rem}smz-ui-notifications .regular-badge .p-badge{font-size:.8rem;font-weight:700;min-width:1.1rem;height:1.1rem;line-height:1.1rem}"], components: [{ type: i2__namespace$1.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: NotificationsListComponent, selector: "smz-notifications-list", inputs: ["notifications"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.BadgeDirective, selector: "[pBadge]", inputs: ["iconPos", "value", "severity"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
18228
18237
  __decorate([
18229
18238
  i1$5.Select(NotificationsUiSelectors.all)
18230
18239
  ], SmzNotificationsComponent.prototype, "notifications$", void 0);
@@ -18240,7 +18249,7 @@
18240
18249
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
18241
18250
  encapsulation: i0.ViewEncapsulation.None
18242
18251
  }]
18243
- }], ctorParameters: function () { return [{ type: i1__namespace$e.Store }]; }, propDecorators: { notifications$: [], newCount$: [] } });
18252
+ }], ctorParameters: function () { return [{ type: i1__namespace$e.Store }, { type: NgxRbkUtilsConfig }]; }, propDecorators: { notifications$: [], newCount$: [] } });
18244
18253
 
18245
18254
  var AthenaNotificationItemsComponent = /** @class */ (function () {
18246
18255
  function AthenaNotificationItemsComponent(_eref) {
@@ -18970,7 +18979,7 @@
18970
18979
  SmzNotificationsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzNotificationsModule, deps: [{ token: NgxRbkUtilsConfig }, { token: SmzNotificationsService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
18971
18980
  SmzNotificationsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzNotificationsModule, declarations: [SmzNotificationsComponent, NotificationsListComponent, NotificationItemComponent], imports: [i1$1.CommonModule,
18972
18981
  i1.FormsModule,
18973
- i5$2.BadgeModule,
18982
+ i6.BadgeModule,
18974
18983
  i2$1.OverlayPanelModule,
18975
18984
  i5.ButtonModule,
18976
18985
  NgxSmzTablesModule,
@@ -18984,7 +18993,7 @@
18984
18993
  SmzNotificationsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzNotificationsModule, imports: [[
18985
18994
  i1$1.CommonModule,
18986
18995
  i1.FormsModule,
18987
- i5$2.BadgeModule,
18996
+ i6.BadgeModule,
18988
18997
  i2$1.OverlayPanelModule,
18989
18998
  i5.ButtonModule,
18990
18999
  NgxSmzTablesModule,
@@ -19002,7 +19011,7 @@
19002
19011
  imports: [
19003
19012
  i1$1.CommonModule,
19004
19013
  i1.FormsModule,
19005
- i5$2.BadgeModule,
19014
+ i6.BadgeModule,
19006
19015
  i2$1.OverlayPanelModule,
19007
19016
  i5.ButtonModule,
19008
19017
  NgxSmzTablesModule,