@vallift/ngl 22.0.47 → 22.0.48
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/fesm2022/vallift-ngl.mjs
CHANGED
|
@@ -5376,14 +5376,14 @@ class ToastComponent {
|
|
|
5376
5376
|
ngOnDestroy() {
|
|
5377
5377
|
}
|
|
5378
5378
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5379
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: ToastComponent, isStandalone: true, selector: "app-toast", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: false, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: false, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: false, isRequired: false, transformFunction: null }, themeType: { classPropertyName: "themeType", publicName: "themeType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disposeEvent: "disposeEvent" }, ngImport: i0, template: "<div\n class=\"toast-panel mb-3 flex min-w-72 max-w-96 items-center gap-3 rounded-full border border-neutral-100 bg-white px-4 py-3 shadow-[0_8px_24px_rgb(15_23_42/0.10)]\"\n [ngClass]=\"themeClass()\">\n <div class=\"flex shrink-0 items-center justify-center\">\n @switch (type) {\n @case (ToastType.success) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-green-500 text-white\">\n <svg height=\"
|
|
5379
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: ToastComponent, isStandalone: true, selector: "app-toast", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: false, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: false, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: false, isRequired: false, transformFunction: null }, themeType: { classPropertyName: "themeType", publicName: "themeType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disposeEvent: "disposeEvent" }, ngImport: i0, template: "<div\n class=\"toast-panel mb-3 flex min-w-72 max-w-96 items-center gap-3 rounded-full border border-neutral-100 bg-white px-4 py-3 shadow-[0_8px_24px_rgb(15_23_42/0.10)]\"\n [ngClass]=\"themeClass()\">\n <div class=\"flex shrink-0 items-center justify-center\">\n @switch (type) {\n @case (ToastType.success) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-green-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.error) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-red-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM14.59 8L12 10.59L9.41 8L8 9.41L10.59 12L8 14.59L9.41 16L12 13.41L14.59 16L16 14.59L13.41 12L16 9.41L14.59 8Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.info) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-blue-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M11 9H13V7H11M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM11 17H13V11H11V17Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.warning) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-amber-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM14.59 8L12 10.59L9.41 8L8 9.41L10.59 12L8 14.59L9.41 16L12 13.41L14.59 16L16 14.59L13.41 12L16 9.41L14.59 8Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n }\n </div>\n\n <div class=\"min-w-0 flex-1 flex flex-col gap-0.5\">\n @if (title) {\n <p class=\"truncate text-sm font-semibold text-neutral-900\">{{ title }}</p>\n }\n <p class=\"text-sm text-neutral-500\" [class.truncate]=\"!!title\">{{ message }}</p>\n </div>\n\n <app-toast-close-button (closeEvent)=\"hide()\"></app-toast-close-button>\n</div>\n", styles: ["@keyframes toast-slide-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}:host{display:block}.toast-panel{animation:toast-slide-in .25s ease-out}.toast-panel.bg-black{background-color:#111827;border-color:#1f2937;color:#f9fafb}.toast-panel.bg-black .text-neutral-900{color:#f9fafb}.toast-panel.bg-black .text-neutral-500{color:#9ca3af}\n"], dependencies: [{ kind: "component", type: ToastCloseButtonComponent, selector: "app-toast-close-button", outputs: ["closeEvent"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
5380
5380
|
}
|
|
5381
5381
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: ToastComponent, decorators: [{
|
|
5382
5382
|
type: Component,
|
|
5383
5383
|
args: [{ selector: 'app-toast', standalone: true, imports: [
|
|
5384
5384
|
ToastCloseButtonComponent,
|
|
5385
5385
|
NgClass
|
|
5386
|
-
], template: "<div\n class=\"toast-panel mb-3 flex min-w-72 max-w-96 items-center gap-3 rounded-full border border-neutral-100 bg-white px-4 py-3 shadow-[0_8px_24px_rgb(15_23_42/0.10)]\"\n [ngClass]=\"themeClass()\">\n <div class=\"flex shrink-0 items-center justify-center\">\n @switch (type) {\n @case (ToastType.success) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-green-500 text-white\">\n <svg height=\"
|
|
5386
|
+
], template: "<div\n class=\"toast-panel mb-3 flex min-w-72 max-w-96 items-center gap-3 rounded-full border border-neutral-100 bg-white px-4 py-3 shadow-[0_8px_24px_rgb(15_23_42/0.10)]\"\n [ngClass]=\"themeClass()\">\n <div class=\"flex shrink-0 items-center justify-center\">\n @switch (type) {\n @case (ToastType.success) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-green-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.error) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-red-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM14.59 8L12 10.59L9.41 8L8 9.41L10.59 12L8 14.59L9.41 16L12 13.41L14.59 16L16 14.59L13.41 12L16 9.41L14.59 8Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.info) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-blue-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M11 9H13V7H11M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM11 17H13V11H11V17Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n @case (ToastType.warning) {\n <div class=\"flex h-8 w-8 items-center justify-center rounded-full bg-amber-500 text-white\">\n <svg height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n d=\"M12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM14.59 8L12 10.59L9.41 8L8 9.41L10.59 12L8 14.59L9.41 16L12 13.41L14.59 16L16 14.59L13.41 12L16 9.41L14.59 8Z\"\n fill=\"currentColor\"/>\n </svg>\n </div>\n }\n }\n </div>\n\n <div class=\"min-w-0 flex-1 flex flex-col gap-0.5\">\n @if (title) {\n <p class=\"truncate text-sm font-semibold text-neutral-900\">{{ title }}</p>\n }\n <p class=\"text-sm text-neutral-500\" [class.truncate]=\"!!title\">{{ message }}</p>\n </div>\n\n <app-toast-close-button (closeEvent)=\"hide()\"></app-toast-close-button>\n</div>\n", styles: ["@keyframes toast-slide-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}:host{display:block}.toast-panel{animation:toast-slide-in .25s ease-out}.toast-panel.bg-black{background-color:#111827;border-color:#1f2937;color:#f9fafb}.toast-panel.bg-black .text-neutral-900{color:#f9fafb}.toast-panel.bg-black .text-neutral-500{color:#9ca3af}\n"] }]
|
|
5387
5387
|
}], propDecorators: { disposeEvent: [{
|
|
5388
5388
|
type: Output
|
|
5389
5389
|
}], type: [{
|