@patter/ngx-components 0.5.12 → 0.5.14
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/esm2022/lib/components/tabs/ptr-tab/ptr-tab.component.mjs +23 -0
- package/esm2022/lib/components/tabs/ptr-tabs/ptr-tabs.component.mjs +71 -0
- package/esm2022/lib/dialog/ptr-dialog/ptr-dialog.component.mjs +6 -3
- package/esm2022/lib/forms/form/form.component.mjs +5 -5
- package/esm2022/lib/forms/input/ptr-input/ptr-input.component.mjs +11 -6
- package/esm2022/lib/forms/input/select/select.component.mjs +10 -4
- package/esm2022/lib/forms/interfaces.mjs +1 -1
- package/esm2022/lib/ptr-breadcrumbs/interfaces.mjs +2 -0
- package/esm2022/lib/ptr-breadcrumbs/ptr-breadcrumbs.component.mjs +59 -0
- package/esm2022/lib/ptr-title/ptr-title.component.mjs +6 -3
- package/esm2022/lib/ptr-toaster/interfaces.mjs +2 -0
- package/esm2022/lib/ptr-toaster/ptr-toaster/ptr-toaster.component.mjs +15 -0
- package/esm2022/lib/ptr-toaster/ptr-toaster.service.mjs +52 -0
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/patter-ngx-components.mjs +238 -20
- package/fesm2022/patter-ngx-components.mjs.map +1 -1
- package/lib/components/tabs/ptr-tab/ptr-tab.component.d.ts +8 -0
- package/lib/components/tabs/ptr-tabs/ptr-tabs.component.d.ts +23 -0
- package/lib/dialog/ptr-dialog/ptr-dialog.component.d.ts +2 -1
- package/lib/forms/form/form.component.d.ts +1 -1
- package/lib/forms/input/ptr-input/ptr-input.component.d.ts +3 -2
- package/lib/forms/input/select/select.component.d.ts +4 -2
- package/lib/forms/interfaces.d.ts +2 -0
- package/lib/ptr-breadcrumbs/interfaces.d.ts +8 -0
- package/lib/ptr-breadcrumbs/ptr-breadcrumbs.component.d.ts +13 -0
- package/lib/ptr-title/ptr-title.component.d.ts +2 -1
- package/lib/ptr-toaster/interfaces.d.ts +5 -0
- package/lib/ptr-toaster/ptr-toaster/ptr-toaster.component.d.ts +7 -0
- package/lib/ptr-toaster/ptr-toaster.service.d.ts +18 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
|
@@ -5,14 +5,16 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class PtrSelectComponent {
|
|
6
6
|
options: (PtrOption | PtrOptionGroup | string)[] | undefined;
|
|
7
7
|
showSearch: boolean;
|
|
8
|
-
placeholder?: string |
|
|
8
|
+
placeholder?: string | null;
|
|
9
9
|
label?: string | undefined;
|
|
10
10
|
description?: string | undefined;
|
|
11
|
+
labelPosition?: 'top' | 'inline';
|
|
11
12
|
selectionChange: EventEmitter<string | null>;
|
|
12
13
|
selectButton: ElementRef<HTMLButtonElement>;
|
|
13
14
|
dialogList: PtrDialogListComponent;
|
|
14
15
|
value: import("@angular/core").WritableSignal<string | null>;
|
|
15
16
|
displayValue: import("@angular/core").Signal<string | null>;
|
|
17
|
+
effectivePlaceholder: import("@angular/core").Signal<string>;
|
|
16
18
|
private componentId;
|
|
17
19
|
labelId: string;
|
|
18
20
|
inputId: string;
|
|
@@ -27,5 +29,5 @@ export declare class PtrSelectComponent {
|
|
|
27
29
|
setDisabledState?(isDisabled: boolean): void;
|
|
28
30
|
private flattenOptions;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<PtrSelectComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PtrSelectComponent, "ptr-select", never, { "options": { "alias": "options"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtrSelectComponent, "ptr-select", never, { "options": { "alias": "options"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
31
33
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PtrBreadcrumb } from './interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PtrBreadcrumbsComponent {
|
|
4
|
+
showFirstSeparator: boolean;
|
|
5
|
+
private router;
|
|
6
|
+
private activatedRoute;
|
|
7
|
+
private routeEvents;
|
|
8
|
+
breadcrumbs: import("@angular/core").Signal<PtrBreadcrumb[]>;
|
|
9
|
+
private createBreadcrumbs;
|
|
10
|
+
private getLabelForRoute;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtrBreadcrumbsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtrBreadcrumbsComponent, "ptr-breadcrumbs", never, { "showFirstSeparator": { "alias": "showFirstSeparator"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class PtrTitleComponent implements OnInit {
|
|
5
5
|
styleClass: string;
|
|
6
6
|
wrapperStyleClass: string;
|
|
7
|
+
screenReaderOnly: boolean;
|
|
7
8
|
private router;
|
|
8
9
|
private activatedRoute;
|
|
9
10
|
private titleStrategy;
|
|
@@ -12,5 +13,5 @@ export declare class PtrTitleComponent implements OnInit {
|
|
|
12
13
|
ngOnInit(): void;
|
|
13
14
|
private getRoute;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PtrTitleComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PtrTitleComponent, "ptr-title", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "wrapperStyleClass": { "alias": "wrapperStyleClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtrTitleComponent, "ptr-title", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "wrapperStyleClass": { "alias": "wrapperStyleClass"; "required": false; }; "screenReaderOnly": { "alias": "screenReaderOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PtrToasterService } from '../ptr-toaster.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PtrToasterComponent {
|
|
4
|
+
protected toasterService: PtrToasterService;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtrToasterComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtrToasterComponent, "ptr-toaster", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PtrToast } from './interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PtrToasterService {
|
|
4
|
+
private destroyRef;
|
|
5
|
+
private injector;
|
|
6
|
+
private environmentInjector;
|
|
7
|
+
private appRef;
|
|
8
|
+
private toasts;
|
|
9
|
+
private counter;
|
|
10
|
+
private toasterComponentRef;
|
|
11
|
+
constructor();
|
|
12
|
+
private injectToasterComponent;
|
|
13
|
+
getToasts(): import("@angular/core").Signal<PtrToast[]>;
|
|
14
|
+
show(message: string, type?: PtrToast['type']): void;
|
|
15
|
+
remove(id: number): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtrToasterService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PtrToasterService>;
|
|
18
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,3 +11,10 @@ export { PtrButtonComponent } from './lib/ptr-button/ptr-button.component';
|
|
|
11
11
|
export { PtrDialogService } from './lib/dialog/ptr-dialog.service';
|
|
12
12
|
export { PtrDialogComponent } from './lib/dialog/ptr-dialog/ptr-dialog.component';
|
|
13
13
|
export { PtrTooltipComponent } from './lib/dialog/ptr-tooltip/ptr-tooltip.component';
|
|
14
|
+
export { PtrBreadcrumbsComponent } from './lib/ptr-breadcrumbs/ptr-breadcrumbs.component';
|
|
15
|
+
export { PtrBreadcrumb } from './lib/ptr-breadcrumbs/interfaces';
|
|
16
|
+
export { PtrTabsComponent } from './lib/components/tabs/ptr-tabs/ptr-tabs.component';
|
|
17
|
+
export { PtrTabComponent } from './lib/components/tabs/ptr-tab/ptr-tab.component';
|
|
18
|
+
export { PtrToasterService } from './lib/ptr-toaster/ptr-toaster.service';
|
|
19
|
+
export { PtrToasterComponent } from './lib/ptr-toaster/ptr-toaster/ptr-toaster.component';
|
|
20
|
+
export { PtrToast } from './lib/ptr-toaster/interfaces';
|