@vallift/ngl 0.0.5 → 0.0.7
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.
|
@@ -8,6 +8,7 @@ export declare class BaseOverlayComponent implements AfterViewInit {
|
|
|
8
8
|
title: import("@angular/core").InputSignal<String>;
|
|
9
9
|
showTitle: import("@angular/core").InputSignal<boolean>;
|
|
10
10
|
showBackButton: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
enableDefaultLayout: import("@angular/core").InputSignal<boolean>;
|
|
11
12
|
onBackClicked: import("@angular/core").OutputEmitterRef<void>;
|
|
12
13
|
renderer: Renderer2;
|
|
13
14
|
dialogRef: DialogRef<any, any>;
|
|
@@ -16,5 +17,5 @@ export declare class BaseOverlayComponent implements AfterViewInit {
|
|
|
16
17
|
goBack(): void;
|
|
17
18
|
onCloseClicked(): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseOverlayComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseOverlayComponent, "app-base-overlay", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "showTitle": { "alias": "showTitle"; "required": false; "isSignal": true; }; "showBackButton": { "alias": "showBackButton"; "required": false; "isSignal": true; }; }, { "onBackClicked": "onBackClicked"; }, never, ["[body]", "[actions]"], true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseOverlayComponent, "app-base-overlay", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "showTitle": { "alias": "showTitle"; "required": false; "isSignal": true; }; "showBackButton": { "alias": "showBackButton"; "required": false; "isSignal": true; }; "enableDefaultLayout": { "alias": "enableDefaultLayout"; "required": false; "isSignal": true; }; }, { "onBackClicked": "onBackClicked"; }, never, ["[body]", "[actions]"], true, never>;
|
|
20
21
|
}
|
package/fesm2022/vallift-ngl.mjs
CHANGED
|
@@ -569,16 +569,16 @@ class PaginationState {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
if (response?.pageNumber) {
|
|
572
|
-
this.pageNumber.set(response.pageNumber);
|
|
572
|
+
this.pageNumber.set(Number(response.pageNumber));
|
|
573
573
|
}
|
|
574
574
|
if (response?.pageSize) {
|
|
575
|
-
this.pageSize.set(response.pageSize);
|
|
575
|
+
this.pageSize.set(Number(response.pageSize));
|
|
576
576
|
}
|
|
577
577
|
if (response?.totalRecords) {
|
|
578
|
-
this.totalRecords.set(response.totalRecords);
|
|
578
|
+
this.totalRecords.set(Number(response.totalRecords));
|
|
579
579
|
}
|
|
580
580
|
if (response?.totalPages) {
|
|
581
|
-
this.totalPages.set(response.totalPages);
|
|
581
|
+
this.totalPages.set(response.totalRecords(response.totalPages));
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
notifyError(errorMsg) {
|
|
@@ -2353,6 +2353,7 @@ class BaseOverlayComponent {
|
|
|
2353
2353
|
title = input.required();
|
|
2354
2354
|
showTitle = input(true);
|
|
2355
2355
|
showBackButton = input(false);
|
|
2356
|
+
enableDefaultLayout = input(true);
|
|
2356
2357
|
onBackClicked = output();
|
|
2357
2358
|
renderer = inject(Renderer2);
|
|
2358
2359
|
dialogRef = inject((DialogRef));
|
|
@@ -2373,11 +2374,13 @@ class BaseOverlayComponent {
|
|
|
2373
2374
|
this.dialogRef.close();
|
|
2374
2375
|
}
|
|
2375
2376
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BaseOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2376
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: BaseOverlayComponent, isStandalone: true, selector: "app-base-overlay", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, showTitle: { classPropertyName: "showTitle", publicName: "showTitle", isSignal: true, isRequired: false, transformFunction: null }, showBackButton: { classPropertyName: "showBackButton", publicName: "showBackButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onBackClicked: "onBackClicked" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "actionsDiv", first: true, predicate: ["actions"], descendants: true }, { propertyName: "actionsContainerDiv", first: true, predicate: ["actionsContainer"], descendants: true }], ngImport: i0, template: "<div class=\"base-overlay flex flex-col rounded-3xl h-full overflow-hidden bg-white relative\">\n @if (showTitle()) {\n
|
|
2377
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: BaseOverlayComponent, isStandalone: true, selector: "app-base-overlay", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, showTitle: { classPropertyName: "showTitle", publicName: "showTitle", isSignal: true, isRequired: false, transformFunction: null }, showBackButton: { classPropertyName: "showBackButton", publicName: "showBackButton", isSignal: true, isRequired: false, transformFunction: null }, enableDefaultLayout: { classPropertyName: "enableDefaultLayout", publicName: "enableDefaultLayout", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onBackClicked: "onBackClicked" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "actionsDiv", first: true, predicate: ["actions"], descendants: true }, { propertyName: "actionsContainerDiv", first: true, predicate: ["actionsContainer"], descendants: true }], ngImport: i0, template: "<div class=\"base-overlay flex flex-col rounded-3xl h-full overflow-hidden bg-white relative\">\n\n @if (enableDefaultLayout()) {\n @if (showTitle()) {\n <div class=\"flex justify-center items-center px-3 py-6 border-b border-neutral-200\">\n\n @if (showBackButton()) {\n <div class=\"absolute left-3 rounded-full p-3 cursor-pointer hover:bg-neutral-50 transition-all duration-500\"\n (click)=\"goBack()\">\n <svg class=\"w-[18px] h-[18px] text-neutral-600\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"\n fill=\"none\">\n <path d=\"M20 11V13H8.00003L13.5 18.5L12.08 19.92L4.16003 12L12.08 4.07996L13.5 5.49996L8.00003 11H20Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n\n <span class=\"text-body1\">{{ title() }}</span>\n <div class=\"absolute right-3 rounded-lg p-2 border border-neutral-300 cursor-pointer hover:bg-neutral-50\"\n (click)=\"onCloseClicked()\">\n <svg class=\"w-[18px] h-[18px]\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n </div>\n }\n }\n\n <div class=\"flex-1 min-h-0 overflow-y-auto\" [ngClass]=\"enableDefaultLayout() ? 'px-5 py-4' : ''\">\n <ng-content select=\"[body]\">\n <ng-container #container></ng-container>\n </ng-content>\n </div>\n\n\n @if (enableDefaultLayout()) {\n <div #actionsContainer class=\"actions-container border-t px-4 py-4\">\n <div #actions class=\"w-full\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n }\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2377
2378
|
}
|
|
2378
2379
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BaseOverlayComponent, decorators: [{
|
|
2379
2380
|
type: Component,
|
|
2380
|
-
args: [{ selector: 'app-base-overlay', imports: [
|
|
2381
|
+
args: [{ selector: 'app-base-overlay', imports: [
|
|
2382
|
+
NgClass
|
|
2383
|
+
], standalone: true, template: "<div class=\"base-overlay flex flex-col rounded-3xl h-full overflow-hidden bg-white relative\">\n\n @if (enableDefaultLayout()) {\n @if (showTitle()) {\n <div class=\"flex justify-center items-center px-3 py-6 border-b border-neutral-200\">\n\n @if (showBackButton()) {\n <div class=\"absolute left-3 rounded-full p-3 cursor-pointer hover:bg-neutral-50 transition-all duration-500\"\n (click)=\"goBack()\">\n <svg class=\"w-[18px] h-[18px] text-neutral-600\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"\n fill=\"none\">\n <path d=\"M20 11V13H8.00003L13.5 18.5L12.08 19.92L4.16003 12L12.08 4.07996L13.5 5.49996L8.00003 11H20Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n\n <span class=\"text-body1\">{{ title() }}</span>\n <div class=\"absolute right-3 rounded-lg p-2 border border-neutral-300 cursor-pointer hover:bg-neutral-50\"\n (click)=\"onCloseClicked()\">\n <svg class=\"w-[18px] h-[18px]\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n </div>\n }\n }\n\n <div class=\"flex-1 min-h-0 overflow-y-auto\" [ngClass]=\"enableDefaultLayout() ? 'px-5 py-4' : ''\">\n <ng-content select=\"[body]\">\n <ng-container #container></ng-container>\n </ng-content>\n </div>\n\n\n @if (enableDefaultLayout()) {\n <div #actionsContainer class=\"actions-container border-t px-4 py-4\">\n <div #actions class=\"w-full\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n }\n\n</div>\n" }]
|
|
2381
2384
|
}], propDecorators: { container: [{
|
|
2382
2385
|
type: ViewChild,
|
|
2383
2386
|
args: ['container', { read: ViewContainerRef, static: true }]
|