ngx-smz-ui 3.2.7 → 3.2.11
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/bundles/ngx-smz-ui.umd.js +67 -15
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-forms/form-group-builder.js +8 -1
- package/esm2015/lib/common/data-pipes/data-pipes.module.js +10 -5
- package/esm2015/lib/common/data-pipes/pipes/calendar.pipe.js +35 -0
- package/esm2015/lib/modules/rbk-utils/ngx-rbk-utils.config.js +1 -1
- package/esm2015/lib/modules/smz-forms/components/input-number/input-number.component.js +3 -2
- package/esm2015/lib/modules/smz-forms/features/form-group/form-group.component.js +2 -1
- package/esm2015/lib/modules/smz-forms/models/control-types.js +1 -1
- package/esm2015/lib/modules/smz-notifications/components/item/notification-item.component.js +5 -2
- package/esm2015/lib/modules/smz-notifications/components/list/notifications-list.component.js +2 -2
- package/esm2015/lib/modules/smz-notifications/ngx-smz-notifications.module.js +8 -4
- package/esm2015/public-api.js +2 -1
- package/fesm2015/ngx-smz-ui.js +62 -12
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-forms/form-group-builder.d.ts +1 -0
- package/lib/common/data-pipes/data-pipes.module.d.ts +3 -2
- package/lib/common/data-pipes/pipes/calendar.pipe.d.ts +9 -0
- package/lib/modules/rbk-utils/ngx-rbk-utils.config.d.ts +5 -0
- package/lib/modules/smz-forms/models/control-types.d.ts +1 -0
- package/lib/modules/smz-notifications/components/item/notification-item.component.d.ts +2 -1
- package/lib/modules/smz-notifications/ngx-smz-notifications.module.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -112,6 +112,7 @@ export declare class SmzFormNumberBuilder<TResponse> extends SmzFormInputBuilder
|
|
|
112
112
|
private _numberInput;
|
|
113
113
|
constructor(_groupBuilder: SmzFormGroupBuilder<TResponse>, _numberInput: SmzNumberControl);
|
|
114
114
|
setFraction(minFractionDigits?: number, maxFractionDigits?: number): SmzFormNumberBuilder<TResponse>;
|
|
115
|
+
useGrouping(): SmzFormNumberBuilder<TResponse>;
|
|
115
116
|
setLocale(locale: 'pt-BR'): SmzFormNumberBuilder<TResponse>;
|
|
116
117
|
}
|
|
117
118
|
export declare class SmzFormTextAreaBuilder<TResponse> extends SmzFormInputBuilder<TResponse> {
|
|
@@ -6,9 +6,10 @@ import * as i4 from "./pipes/unique-filter.pipe";
|
|
|
6
6
|
import * as i5 from "./pipes/describe-simple-named.pipe";
|
|
7
7
|
import * as i6 from "./pipes/describe-array.pipe";
|
|
8
8
|
import * as i7 from "./pipes/describe-any.pipe";
|
|
9
|
-
import * as i8 from "
|
|
9
|
+
import * as i8 from "./pipes/calendar.pipe";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
10
11
|
export declare class NgxSmzDataPipesModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmzDataPipesModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmzDataPipesModule, [typeof i1.ClonePipe, typeof i2.SafeHtmlPipe, typeof i3.SafeUrlPipe, typeof i4.UniqueFilterPipe, typeof i5.DescribeSimpleNamedPipe, typeof i6.DescribeArrayPipe, typeof i7.DescribeAnyPipe], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmzDataPipesModule, [typeof i1.ClonePipe, typeof i2.SafeHtmlPipe, typeof i3.SafeUrlPipe, typeof i4.UniqueFilterPipe, typeof i5.DescribeSimpleNamedPipe, typeof i6.DescribeArrayPipe, typeof i7.DescribeAnyPipe, typeof i8.CalendarPipe], [typeof i9.CommonModule], [typeof i1.ClonePipe, typeof i2.SafeHtmlPipe, typeof i3.SafeUrlPipe, typeof i4.UniqueFilterPipe, typeof i5.DescribeSimpleNamedPipe, typeof i6.DescribeArrayPipe, typeof i7.DescribeAnyPipe, typeof i8.CalendarPipe]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmzDataPipesModule>;
|
|
14
15
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CalendarPipe implements PipeTransform {
|
|
4
|
+
constructor();
|
|
5
|
+
transform(data: Date, method: 'fromNow' | 'calendar', days: number, format: string): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CalendarPipe, "calendar">;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarPipe>;
|
|
9
|
+
}
|
|
@@ -18,6 +18,11 @@ export declare class NgxRbkUtilsConfig {
|
|
|
18
18
|
pageOptions?: number[];
|
|
19
19
|
showTypeIndicators?: boolean;
|
|
20
20
|
showRefreshButton?: boolean;
|
|
21
|
+
date?: {
|
|
22
|
+
method: 'fromNow' | 'calendar';
|
|
23
|
+
days: number;
|
|
24
|
+
format: string;
|
|
25
|
+
};
|
|
21
26
|
};
|
|
22
27
|
uiDefinitions: {
|
|
23
28
|
url: string;
|
|
@@ -81,6 +81,7 @@ export interface SmzNumberControl extends SmzFormsBaseControl {
|
|
|
81
81
|
useFraction?: boolean;
|
|
82
82
|
minFractionDigits?: number;
|
|
83
83
|
maxFractionDigits?: number;
|
|
84
|
+
useGrouping?: boolean;
|
|
84
85
|
locale?: 'pt-BR';
|
|
85
86
|
}
|
|
86
87
|
export interface SmzTextAreaControl extends SmzFormsBaseControl {
|
|
@@ -6,6 +6,7 @@ export declare class NotificationItemComponent implements OnInit {
|
|
|
6
6
|
rbkConfig: NgxRbkUtilsConfig;
|
|
7
7
|
item: NotificationData;
|
|
8
8
|
charactersLimit: number;
|
|
9
|
+
showDate: boolean;
|
|
9
10
|
status: typeof NotificationStatus;
|
|
10
11
|
typeClass: {
|
|
11
12
|
0: string;
|
|
@@ -17,5 +18,5 @@ export declare class NotificationItemComponent implements OnInit {
|
|
|
17
18
|
constructor(rbkConfig: NgxRbkUtilsConfig);
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationItemComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "smz-notification-item", never, { "item": "item"; "charactersLimit": "charactersLimit"; }, {}, never, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "smz-notification-item", never, { "item": "item"; "charactersLimit": "charactersLimit"; "showDate": "showDate"; }, {}, never, never>;
|
|
21
22
|
}
|
|
@@ -16,9 +16,10 @@ import * as i12 from "primeng/selectbutton";
|
|
|
16
16
|
import * as i13 from "ngx-pipes";
|
|
17
17
|
import * as i14 from "../../common/directives/ng-var/ng-var.module";
|
|
18
18
|
import * as i15 from "../../common/stop-click-propagation/click-stop-propagation.module";
|
|
19
|
+
import * as i16 from "../../common/data-pipes/data-pipes.module";
|
|
19
20
|
export declare class SmzNotificationsModule {
|
|
20
21
|
constructor(configuration: NgxRbkUtilsConfig, service: SmzNotificationsService);
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmzNotificationsModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmzNotificationsModule, [typeof i1.SmzNotificationsComponent, typeof i2.NotificationsListComponent, typeof i3.NotificationItemComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.BadgeModule, typeof i7.OverlayPanelModule, typeof i8.ButtonModule, typeof i9.NgxSmzTablesModule, typeof i10.InputTextModule, typeof i11.TooltipModule, typeof i12.SelectButtonModule, typeof i13.NgPipesModule, typeof i14.NgVarModule, typeof i15.ClickStopPropagationModule], [typeof i1.SmzNotificationsComponent]>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmzNotificationsModule, [typeof i1.SmzNotificationsComponent, typeof i2.NotificationsListComponent, typeof i3.NotificationItemComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.BadgeModule, typeof i7.OverlayPanelModule, typeof i8.ButtonModule, typeof i9.NgxSmzTablesModule, typeof i10.InputTextModule, typeof i11.TooltipModule, typeof i12.SelectButtonModule, typeof i13.NgPipesModule, typeof i14.NgVarModule, typeof i15.ClickStopPropagationModule, typeof i16.NgxSmzDataPipesModule], [typeof i1.SmzNotificationsComponent]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmzNotificationsModule>;
|
|
24
25
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { SafeHtmlPipe } from './lib/common/data-pipes/pipes/safe-html.pipe';
|
|
|
22
22
|
export { SafeUrlPipe } from './lib/common/data-pipes/pipes/safe-url.pipe';
|
|
23
23
|
export { UniqueFilterPipe } from './lib/common/data-pipes/pipes/unique-filter.pipe';
|
|
24
24
|
export { DescribeArrayPipe } from './lib/common/data-pipes/pipes/describe-array.pipe';
|
|
25
|
+
export { CalendarPipe } from './lib/common/data-pipes/pipes/calendar.pipe';
|
|
25
26
|
export { DescribeSimpleNamedPipe } from './lib/common/data-pipes/pipes/describe-simple-named.pipe';
|
|
26
27
|
export { DescribeAnyPipe } from './lib/common/data-pipes/pipes/describe-any.pipe';
|
|
27
28
|
export { UrlCheckerPipeModule } from './lib/common/url-checker/url-checker.pipe';
|