nath-angular-ui 0.4.0 → 0.4.2
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef, TemplateRef,
|
|
2
|
+
import { ElementRef, TemplateRef, InjectionToken, Injector, EmbeddedViewRef, OnInit, OnDestroy, AfterContentInit, Signal, StaticProvider } from '@angular/core';
|
|
3
3
|
import { FormValueControl, Field, FieldState } from '@angular/forms/signals';
|
|
4
4
|
import { LucideIcon, isLucideIconComponent, LucideMinimize2, LucideMaximize2, LucideMoon, LucideSun } from '@lucide/angular';
|
|
5
5
|
import * as nath_angular_ui from 'nath-angular-ui';
|
|
@@ -150,7 +150,7 @@ declare class NathDatepicker implements FormValueControl<Date | null> {
|
|
|
150
150
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NathDatepicker, "nath-datepicker", never, { "withTime": { "alias": "withTime"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "dateInputValue": { "alias": "dateInputValue"; "required": false; "isSignal": true; }; "dateTimeInputValue": { "alias": "dateTimeInputValue"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; "dirty": "dirtyChange"; "value": "valueChange"; "dateInputValue": "dateInputValueChange"; "dateTimeInputValue": "dateTimeInputValueChange"; }, never, never, true, never>;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
interface
|
|
153
|
+
interface NathConfirmationButton {
|
|
154
154
|
label: string;
|
|
155
155
|
/** Custom Tailwind v4 styling classes (e.g., 'bg-red-600 hover:bg-red-700 text-white') */
|
|
156
156
|
customClass?: string;
|
|
@@ -159,13 +159,13 @@ interface ConfirmationButton {
|
|
|
159
159
|
/** If set to true, the dialog will stay open after clicking this button */
|
|
160
160
|
preventClose?: boolean;
|
|
161
161
|
}
|
|
162
|
-
interface
|
|
162
|
+
interface NathConfirmationConfig {
|
|
163
163
|
header?: string | TemplateRef<any>;
|
|
164
164
|
/** Either a plain message string or a custom TemplateRef */
|
|
165
165
|
content: string | TemplateRef<any>;
|
|
166
166
|
width?: string;
|
|
167
167
|
/** Optional custom button array. If omitted, defaults to Yes/No */
|
|
168
|
-
buttons?:
|
|
168
|
+
buttons?: NathConfirmationButton[];
|
|
169
169
|
/** Accept and reject callbacks for the default Yes/No buttons */
|
|
170
170
|
accept?: () => void | Promise<void>;
|
|
171
171
|
reject?: () => void | Promise<void>;
|
|
@@ -175,12 +175,12 @@ interface ConfirmationConfig {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
declare const DIALOG_DATA: InjectionToken<any>;
|
|
178
|
-
interface
|
|
178
|
+
interface NathDialogConfig<D = any> {
|
|
179
179
|
data?: D;
|
|
180
180
|
header?: string | TemplateRef<any>;
|
|
181
181
|
width?: string;
|
|
182
182
|
}
|
|
183
|
-
declare class
|
|
183
|
+
declare class NathDialogRef<R = any> {
|
|
184
184
|
private readonly _afterClosed;
|
|
185
185
|
readonly afterClosedSignal: _angular_core.Signal<R | undefined>;
|
|
186
186
|
readonly afterClosed$: Observable<R | undefined>;
|
|
@@ -196,18 +196,18 @@ declare class DialogRef<R = any> {
|
|
|
196
196
|
close(result?: R): void;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
declare class
|
|
199
|
+
declare class NathConfirmationService {
|
|
200
200
|
private readonly dialogService;
|
|
201
201
|
/** Spawns a type-safe confirmation window */
|
|
202
|
-
confirm(config:
|
|
203
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
204
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
202
|
+
confirm(config: NathConfirmationConfig): NathDialogRef<string>;
|
|
203
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NathConfirmationService, never>;
|
|
204
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NathConfirmationService>;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
declare class NathConfirmationDialog {
|
|
208
|
-
protected readonly dialogRef:
|
|
209
|
-
protected readonly config:
|
|
210
|
-
protected get buttons(): nath_angular_ui.
|
|
208
|
+
protected readonly dialogRef: NathDialogRef<any>;
|
|
209
|
+
protected readonly config: NathConfirmationConfig;
|
|
210
|
+
protected get buttons(): nath_angular_ui.NathConfirmationButton[];
|
|
211
211
|
handleButtonClick(btn: any): Promise<void>;
|
|
212
212
|
protected isTemplateRef(value: any): value is TemplateRef<any>;
|
|
213
213
|
protected contentAsTemplate(): TemplateRef<any>;
|
|
@@ -215,26 +215,26 @@ declare class NathConfirmationDialog {
|
|
|
215
215
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NathConfirmationDialog, "ng-component", never, {}, {}, never, never, true, never>;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
declare class
|
|
218
|
+
declare class NathDialogService {
|
|
219
219
|
private readonly injector;
|
|
220
220
|
private readonly environmentInjector;
|
|
221
221
|
private readonly appRef;
|
|
222
222
|
private readonly router;
|
|
223
223
|
private readonly openDialogs;
|
|
224
224
|
constructor();
|
|
225
|
-
open<T, D = any, R = any>(content: ComponentType<T> | TemplateRef<any>, config:
|
|
225
|
+
open<T, D = any, R = any>(content: ComponentType<T> | TemplateRef<any>, config: NathDialogConfig<D>): NathDialogRef<R>;
|
|
226
226
|
/**
|
|
227
227
|
* Closes all currently open dialogs (e.g., when routing away).
|
|
228
228
|
*/
|
|
229
229
|
closeAll(): void;
|
|
230
230
|
private destroyDialog;
|
|
231
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
232
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
231
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NathDialogService, never>;
|
|
232
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NathDialogService>;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
declare class NathDialogContainer extends BasePortalOutlet {
|
|
236
236
|
readonly portalOutlet: _angular_core.Signal<CdkPortalOutlet>;
|
|
237
|
-
protected readonly dialogRef:
|
|
237
|
+
protected readonly dialogRef: NathDialogRef<any>;
|
|
238
238
|
readonly header: _angular_core.WritableSignal<string | TemplateRef<any> | undefined>;
|
|
239
239
|
readonly width: _angular_core.WritableSignal<string | undefined>;
|
|
240
240
|
attachComponentPortal<T>(portal: ComponentPortal<T>): _angular_core.ComponentRef<T>;
|
|
@@ -1162,5 +1162,5 @@ declare const rangeNotMinMax: (range: number[] | undefined, min: number | undefi
|
|
|
1162
1162
|
|
|
1163
1163
|
declare function isSortOrderValid(order: string): boolean;
|
|
1164
1164
|
|
|
1165
|
-
export { BreadcrumbService,
|
|
1166
|
-
export type { BooleanDisplayMode, Breadcrumb, CodeFile,
|
|
1165
|
+
export { BreadcrumbService, DARK_THEME_CLASS, DIALOG_DATA, NathAutocomplete, NathBooleanControl, NathBreadcrumbs, NathCodeViewer, NathConfirmationDialog, NathConfirmationService, NathDatepicker, NathDialogContainer, NathDialogRef, NathDialogService, NathDrawer, NathFileUpload, NathFloatingLabel, NathFormField, NathImagePreview, NathMenu, NathMenuList, NathMultiselect, NathPaginatedView, NathPaginator, NathPanel, NathPickList, NathProgressBar, NathProgressCircle, NathRadioButtonGroup, NathRatingHeart, NathRatingInput, NathSelect, NathShowErrors, NathSkeleton, NathSlider, NathSortIcon, NathSplitButton, NathTabs, NathThemeSwitch, NathToastContainer, NathToc, NathTooltipContainer, NathTooltipDirective, ORDER, RATING_MAP, THEME_CONFIG, TabDirective, TabPanelDirective, ThemeService, ToastService, getRatingColor, hasRequiredValidator, isRequired, isSortOrderValid, isTruthy, next, provideThemeConfig, rangeMinMax, rangeNotMinMax, validateAllFormFields };
|
|
1166
|
+
export type { BooleanDisplayMode, Breadcrumb, CodeFile, MenuItem, NathConfirmationButton, NathConfirmationConfig, NathDialogConfig, NathMenuPositionX, NathMenuPositionY, NathToastPosition, NathToastType, NathTooltipPosition, PaginatorChangeEvent, RadioOption, SelectItem, SliderValue, ThemeConfig, Toast, TrackByFnOrKey, TristateValue };
|