@vsn-ux/ngx-gaia 0.9.1 → 0.9.3
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/vsn-ux-ngx-gaia.mjs +1124 -102
- package/fesm2022/vsn-ux-ngx-gaia.mjs.map +1 -1
- package/index.d.ts +305 -31
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as lucide_angular from 'lucide-angular';
|
|
2
2
|
import { X, LucideIconData } from 'lucide-angular';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { Provider, TemplateRef, WritableSignal, AfterViewInit, Renderer2, ElementRef,
|
|
4
|
+
import { Provider, Type, OnInit, InjectionToken, TemplateRef, WritableSignal, AfterViewInit, Renderer2, ElementRef, OnDestroy, AfterContentInit, Signal } from '@angular/core';
|
|
5
5
|
import * as _angular_forms from '@angular/forms';
|
|
6
|
-
import { ControlValueAccessor, CheckboxRequiredValidator,
|
|
6
|
+
import { ControlValueAccessor, CheckboxRequiredValidator, Validator, AbstractControl, ValidationErrors, NgControl, RequiredValidator, FormGroupDirective, NgForm } from '@angular/forms';
|
|
7
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
8
|
+
import { CdkOverlayOrigin, ConnectedPosition, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
7
9
|
import * as i1 from '@angular/cdk/menu';
|
|
8
10
|
import * as _vsn_ux_ngx_gaia from '@vsn-ux/ngx-gaia';
|
|
9
11
|
import * as rxjs from 'rxjs';
|
|
@@ -11,8 +13,6 @@ import { Observable, Subject } from 'rxjs';
|
|
|
11
13
|
import * as i1$1 from '@angular/cdk/a11y';
|
|
12
14
|
import { ComponentType } from '@angular/cdk/portal';
|
|
13
15
|
import * as i1$2 from '@angular/cdk/scrolling';
|
|
14
|
-
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
15
|
-
import { ConnectedPosition, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
16
16
|
import * as i1$3 from '@angular/cdk/listbox';
|
|
17
17
|
import { CdkOption, CdkListbox } from '@angular/cdk/listbox';
|
|
18
18
|
|
|
@@ -219,6 +219,299 @@ declare class GaCheckboxModule {
|
|
|
219
219
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaCheckboxModule>;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
declare function GA_DATEPICKER_I18N_FACTORY(): GaDatepickerI18nDefault;
|
|
223
|
+
interface IGaDatepickerI18n {
|
|
224
|
+
previousLabel: string;
|
|
225
|
+
nextLabel: string;
|
|
226
|
+
selectMonthLabel: string;
|
|
227
|
+
selectYearLabel: string;
|
|
228
|
+
openCalendarLabel: string;
|
|
229
|
+
todayButtonLabel: string;
|
|
230
|
+
monthNames?: string[];
|
|
231
|
+
monthNamesShort?: string[];
|
|
232
|
+
weekDays?: string[];
|
|
233
|
+
}
|
|
234
|
+
declare abstract class GaDatepickerI18n implements IGaDatepickerI18n {
|
|
235
|
+
abstract previousLabel: string;
|
|
236
|
+
abstract nextLabel: string;
|
|
237
|
+
abstract selectMonthLabel: string;
|
|
238
|
+
abstract selectYearLabel: string;
|
|
239
|
+
abstract openCalendarLabel: string;
|
|
240
|
+
abstract todayButtonLabel: string;
|
|
241
|
+
abstract monthNames: string[];
|
|
242
|
+
abstract monthNamesShort: string[];
|
|
243
|
+
abstract weekDays: string[];
|
|
244
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerI18n, never>;
|
|
245
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerI18n>;
|
|
246
|
+
}
|
|
247
|
+
declare class GaDatepickerI18nDefault extends GaDatepickerI18n {
|
|
248
|
+
private readonly localeId;
|
|
249
|
+
selectMonthLabel: string;
|
|
250
|
+
selectYearLabel: string;
|
|
251
|
+
previousLabel: string;
|
|
252
|
+
nextLabel: string;
|
|
253
|
+
openCalendarLabel: string;
|
|
254
|
+
todayButtonLabel: string;
|
|
255
|
+
monthNames: string[];
|
|
256
|
+
monthNamesShort: string[];
|
|
257
|
+
weekDays: string[];
|
|
258
|
+
constructor();
|
|
259
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerI18nDefault, never>;
|
|
260
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerI18nDefault>;
|
|
261
|
+
}
|
|
262
|
+
declare function provideGaDatepickerI18n(value: IGaDatepickerI18n | Type<GaDatepickerI18n> | (() => IGaDatepickerI18n)): _angular_core.EnvironmentProviders;
|
|
263
|
+
|
|
264
|
+
interface GaDatepickerStruct {
|
|
265
|
+
year: number;
|
|
266
|
+
month: number;
|
|
267
|
+
day: number;
|
|
268
|
+
}
|
|
269
|
+
declare function GA_DATEPICKER_VALUE_ADAPTER_FACTORY(): GaDatepickerStructValueAdapter;
|
|
270
|
+
declare abstract class GaDatepickerValueAdapter<T = any> {
|
|
271
|
+
/**
|
|
272
|
+
* Converts the external value to internal struct representation
|
|
273
|
+
*/
|
|
274
|
+
abstract toStruct(value: T | null): GaDatepickerStruct | null;
|
|
275
|
+
/**
|
|
276
|
+
* Converts the internal struct to external value representation
|
|
277
|
+
*/
|
|
278
|
+
abstract fromStruct(struct: GaDatepickerStruct | null): T | null;
|
|
279
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerValueAdapter<any>, never>;
|
|
280
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerValueAdapter<any>>;
|
|
281
|
+
}
|
|
282
|
+
declare class GaDatepickerStructValueAdapter extends GaDatepickerValueAdapter<GaDatepickerStruct> {
|
|
283
|
+
/**
|
|
284
|
+
* Checks if a value is a valid GaDatepickerStruct
|
|
285
|
+
*/
|
|
286
|
+
protected isStruct(value: any): value is GaDatepickerStruct;
|
|
287
|
+
/**
|
|
288
|
+
* Handles GaDatepickerStruct natively - pass through as-is
|
|
289
|
+
*/
|
|
290
|
+
toStruct(value: GaDatepickerStruct | null): GaDatepickerStruct | null;
|
|
291
|
+
/**
|
|
292
|
+
* Returns struct as-is (no conversion needed)
|
|
293
|
+
*/
|
|
294
|
+
fromStruct(struct: GaDatepickerStruct | null): GaDatepickerStruct | null;
|
|
295
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerStructValueAdapter, never>;
|
|
296
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerStructValueAdapter>;
|
|
297
|
+
}
|
|
298
|
+
declare function provideGaDatepickerValueAdapter<T = any>(value: Type<GaDatepickerValueAdapter<T>>): Provider;
|
|
299
|
+
/**
|
|
300
|
+
* Compares two structs for equality
|
|
301
|
+
*/
|
|
302
|
+
declare function compareStructs(structA: GaDatepickerStruct | null, structB: GaDatepickerStruct | null): -1 | 0 | 1;
|
|
303
|
+
|
|
304
|
+
interface GaDatepickerViewStruct {
|
|
305
|
+
year: number;
|
|
306
|
+
month: number;
|
|
307
|
+
}
|
|
308
|
+
type ViewMode = 'day' | 'month' | 'year';
|
|
309
|
+
declare class GaDatepickerComponent implements OnInit {
|
|
310
|
+
protected readonly i18n: GaDatepickerI18n;
|
|
311
|
+
protected readonly valueAdapter: GaDatepickerValueAdapter<any>;
|
|
312
|
+
protected readonly icons: {
|
|
313
|
+
ChevronLeft: lucide_angular.LucideIconData;
|
|
314
|
+
ChevronRight: lucide_angular.LucideIconData;
|
|
315
|
+
ChevronUp: lucide_angular.LucideIconData;
|
|
316
|
+
ChevronDown: lucide_angular.LucideIconData;
|
|
317
|
+
};
|
|
318
|
+
readonly value: _angular_core.ModelSignal<any>;
|
|
319
|
+
readonly min: _angular_core.InputSignal<any>;
|
|
320
|
+
readonly max: _angular_core.InputSignal<any>;
|
|
321
|
+
protected readonly internalValue: _angular_core.Signal<GaDatepickerStruct | null>;
|
|
322
|
+
protected readonly internalMinDate: _angular_core.Signal<GaDatepickerStruct | null>;
|
|
323
|
+
protected readonly internalMaxDate: _angular_core.Signal<GaDatepickerStruct | null>;
|
|
324
|
+
protected readonly viewMode: _angular_core.WritableSignal<ViewMode>;
|
|
325
|
+
protected readonly viewDate: _angular_core.WritableSignal<GaDatepickerViewStruct>;
|
|
326
|
+
ngOnInit(): void;
|
|
327
|
+
private getInitialViewDate;
|
|
328
|
+
protected readonly weekDays: _angular_core.Signal<string[]>;
|
|
329
|
+
protected readonly calendarDays: _angular_core.Signal<GaDatepickerStruct[]>;
|
|
330
|
+
protected readonly months: _angular_core.Signal<{
|
|
331
|
+
index: number;
|
|
332
|
+
name: string;
|
|
333
|
+
shortName: string;
|
|
334
|
+
}[]>;
|
|
335
|
+
protected readonly years: _angular_core.Signal<number[]>;
|
|
336
|
+
protected selectDate(dateStruct: GaDatepickerStruct): void;
|
|
337
|
+
protected selectMonth(monthIndex: number): void;
|
|
338
|
+
protected selectYear(year: number): void;
|
|
339
|
+
protected navigatePrevious(): void;
|
|
340
|
+
protected navigateNext(): void;
|
|
341
|
+
protected toggleMonthView(): void;
|
|
342
|
+
protected toggleYearView(): void;
|
|
343
|
+
protected isToday(dateStruct: GaDatepickerStruct): boolean;
|
|
344
|
+
protected isSelected(dateStruct: GaDatepickerStruct): boolean;
|
|
345
|
+
protected isCurrentMonth(dateStruct: GaDatepickerStruct): boolean;
|
|
346
|
+
protected isWeekend(dateStruct: GaDatepickerStruct): boolean;
|
|
347
|
+
protected isDateDisabled(dateStruct: GaDatepickerStruct): boolean;
|
|
348
|
+
protected isMonthDisabled(monthIndex: number): boolean;
|
|
349
|
+
protected isYearDisabled(year: number): boolean;
|
|
350
|
+
protected isSelectedMonth(monthIndex: number): boolean;
|
|
351
|
+
protected isSelectedYear(year: number): boolean;
|
|
352
|
+
protected getMonthName(monthIndex: number): string;
|
|
353
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerComponent, never>;
|
|
354
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaDatepickerComponent, "ga-datepicker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare class GaInputDirective {
|
|
358
|
+
readonly uniqueId: string;
|
|
359
|
+
private readonly formFieldConnector;
|
|
360
|
+
protected readonly hasWrapper: GaInputComponent | null;
|
|
361
|
+
private readonly renderer;
|
|
362
|
+
private readonly elementRef;
|
|
363
|
+
private readonly implicitNgControlState;
|
|
364
|
+
readonly invalidInput: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
365
|
+
readonly idInput: _angular_core.InputSignal<string | undefined>;
|
|
366
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
367
|
+
readonly invalid: _angular_core.Signal<boolean>;
|
|
368
|
+
readonly id: _angular_core.Signal<string>;
|
|
369
|
+
readonly disabled: _angular_core.Signal<boolean>;
|
|
370
|
+
constructor(placeholder?: string);
|
|
371
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaInputDirective, [{ attribute: "placeholder"; }]>;
|
|
372
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaInputDirective, "[gaInput]", never, { "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare class GaInputComponent {
|
|
376
|
+
protected readonly gaInput: _angular_core.Signal<GaInputDirective>;
|
|
377
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaInputComponent, never>;
|
|
378
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaInputComponent, "ga-input", never, {}, {}, ["gaInput"], ["*"], true, [{ directive: typeof _angular_cdk_overlay.CdkOverlayOrigin; inputs: {}; outputs: {}; }]>;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare class GaDatepickerInputDirective implements ControlValueAccessor, Validator {
|
|
382
|
+
private readonly inputElRef;
|
|
383
|
+
private readonly parserFormatter;
|
|
384
|
+
private readonly valueAdapter;
|
|
385
|
+
readonly valueInput: _angular_core.InputSignal<any>;
|
|
386
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
387
|
+
readonly min: _angular_core.InputSignal<any>;
|
|
388
|
+
readonly max: _angular_core.InputSignal<any>;
|
|
389
|
+
readonly dateInput: _angular_core.OutputEmitterRef<any>;
|
|
390
|
+
readonly dateChange: _angular_core.OutputEmitterRef<any>;
|
|
391
|
+
readonly value: _angular_core.WritableSignal<any>;
|
|
392
|
+
readonly dateStruct: _angular_core.Signal<GaDatepickerStruct | null>;
|
|
393
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
394
|
+
private readonly lastEmittedStruct;
|
|
395
|
+
private readonly lastValueValid;
|
|
396
|
+
private onNgChangeFn?;
|
|
397
|
+
private onNgTouchedFn?;
|
|
398
|
+
constructor();
|
|
399
|
+
onInput(event: Event): void;
|
|
400
|
+
onBlur(): void;
|
|
401
|
+
formatValue(): void;
|
|
402
|
+
updateValue(value: any | null, { updateView, emitToNgModel, }?: {
|
|
403
|
+
updateView?: boolean;
|
|
404
|
+
emitToNgModel?: boolean;
|
|
405
|
+
}): void;
|
|
406
|
+
writeValue(value: any | null): void;
|
|
407
|
+
registerOnChange(fn: (value: GaDatepickerStruct | null) => void): void;
|
|
408
|
+
registerOnTouched(fn: () => void): void;
|
|
409
|
+
setDisabledState(isDisabled: boolean): void;
|
|
410
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
411
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerInputDirective, never>;
|
|
412
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GaDatepickerInputDirective, "input[gaDatepickerInput]", ["gaDatepickerInput"], { "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "dateInput": "dateInput"; "dateChange": "dateChange"; }, never, never, true, never>;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare class GaDatepickerToggleComponent {
|
|
416
|
+
protected readonly icons: {
|
|
417
|
+
CalendarDays: lucide_angular.LucideIconData;
|
|
418
|
+
};
|
|
419
|
+
protected readonly i18n: GaDatepickerI18n;
|
|
420
|
+
protected readonly gaInput: GaInputComponent;
|
|
421
|
+
protected readonly valueAdapter: GaDatepickerValueAdapter<any>;
|
|
422
|
+
private readonly injector;
|
|
423
|
+
protected readonly overlayOrigin: CdkOverlayOrigin;
|
|
424
|
+
protected readonly repositionScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
425
|
+
protected readonly positions: ConnectedPosition[];
|
|
426
|
+
private readonly _isOpen;
|
|
427
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
428
|
+
readonly for: _angular_core.InputSignal<GaDatepickerInputDirective>;
|
|
429
|
+
toggle(): void;
|
|
430
|
+
open(): void;
|
|
431
|
+
close(): void;
|
|
432
|
+
protected onDatepickerValueChange(value: any | null): void;
|
|
433
|
+
protected setToday(): void;
|
|
434
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerToggleComponent, never>;
|
|
435
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaDatepickerToggleComponent, "ga-datepicker-toggle", never, { "for": { "alias": "for"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare class GaDatepickerModule {
|
|
439
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerModule, never>;
|
|
440
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GaDatepickerModule, never, [typeof GaDatepickerComponent, typeof GaDatepickerToggleComponent, typeof GaDatepickerInputDirective], [typeof GaDatepickerComponent, typeof GaDatepickerToggleComponent, typeof GaDatepickerInputDirective]>;
|
|
441
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaDatepickerModule>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare function GA_DATEPICKER_PARSER_FORMATTER_FACTORY(): GaDatepickerParserFormatterDefault;
|
|
445
|
+
/**
|
|
446
|
+
* Converts between the internal `GaDatepickerStruct` model presentation and a `string` that is displayed in the input element.
|
|
447
|
+
*/
|
|
448
|
+
declare abstract class GaDatepickerParserFormatter {
|
|
449
|
+
/**
|
|
450
|
+
* When user types something in the input this method attempts to parse it into a `GaDatepickerStruct` object.
|
|
451
|
+
* `null` must be returned if the value can't be parsed.
|
|
452
|
+
*/
|
|
453
|
+
abstract parse(value: string): GaDatepickerStruct | null;
|
|
454
|
+
/**
|
|
455
|
+
* When users enters a valid date (either via keyboard or mouse click) this method reformats it into a preferred format.
|
|
456
|
+
* An empty string must be returned if the given date is `null`.
|
|
457
|
+
*/
|
|
458
|
+
abstract format(date: GaDatepickerStruct | null): string;
|
|
459
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerParserFormatter, never>;
|
|
460
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerParserFormatter>;
|
|
461
|
+
}
|
|
462
|
+
type GaDatepickerFormats = Record<string, {
|
|
463
|
+
input: string[];
|
|
464
|
+
output: string;
|
|
465
|
+
}>;
|
|
466
|
+
declare const GA_DEFAULT_DATEPICKER_FORMATS: GaDatepickerFormats;
|
|
467
|
+
declare const GA_DATE_PARSER_FORMATTER_CONFIG: InjectionToken<GaDatepickerFormats>;
|
|
468
|
+
declare function extendGaDateParserFormatter(formats: GaDatepickerFormats): Provider;
|
|
469
|
+
declare class GaDatepickerParserFormatterDefault extends GaDatepickerParserFormatter {
|
|
470
|
+
/** @ignore */
|
|
471
|
+
private readonly locale;
|
|
472
|
+
/** @ignore */
|
|
473
|
+
private readonly formats;
|
|
474
|
+
parse(value: string): GaDatepickerStruct | null;
|
|
475
|
+
format(date: GaDatepickerStruct): string;
|
|
476
|
+
private formatDate;
|
|
477
|
+
private dateFormatToRegexp;
|
|
478
|
+
private addYearPadding;
|
|
479
|
+
private printUnknownLocaleWarning;
|
|
480
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerParserFormatterDefault, never>;
|
|
481
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerParserFormatterDefault>;
|
|
482
|
+
}
|
|
483
|
+
declare function provideGaDatepickerParserFormatter(value: Type<GaDatepickerParserFormatter> | (() => GaDatepickerParserFormatter)): Provider;
|
|
484
|
+
|
|
485
|
+
declare class GaDatepickerNativeUtcValueAdapter extends GaDatepickerValueAdapter<Date> {
|
|
486
|
+
/**
|
|
487
|
+
* Converts Date to internal struct representation
|
|
488
|
+
* Uses UTC to avoid timezone issues and normalizes to midnight
|
|
489
|
+
*/
|
|
490
|
+
toStruct(value: Date | null): GaDatepickerStruct | null;
|
|
491
|
+
/**
|
|
492
|
+
* Converts internal struct to Date representation
|
|
493
|
+
* Creates UTC Date at midnight (00:00:00)
|
|
494
|
+
*/
|
|
495
|
+
fromStruct(struct: GaDatepickerStruct | null): Date | null;
|
|
496
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerNativeUtcValueAdapter, never>;
|
|
497
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerNativeUtcValueAdapter>;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare class GaDatepickerNativeUtcIsoValueAdapter extends GaDatepickerValueAdapter<string> {
|
|
501
|
+
/**
|
|
502
|
+
* Converts ISO Date to internal struct representation
|
|
503
|
+
* Uses UTC to avoid timezone issues and normalizes to midnight
|
|
504
|
+
*/
|
|
505
|
+
toStruct(value: string | null): GaDatepickerStruct | null;
|
|
506
|
+
/**
|
|
507
|
+
* Converts internal struct to ISO Date representation
|
|
508
|
+
* Creates UTC Date at midnight (00:00:00)
|
|
509
|
+
*/
|
|
510
|
+
fromStruct(struct: GaDatepickerStruct | null): string | null;
|
|
511
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaDatepickerNativeUtcIsoValueAdapter, never>;
|
|
512
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaDatepickerNativeUtcIsoValueAdapter>;
|
|
513
|
+
}
|
|
514
|
+
|
|
222
515
|
declare class GaSegmentedControlComponent {
|
|
223
516
|
readonly selected: _angular_core.ModelSignal<string | undefined>;
|
|
224
517
|
readonly change: _angular_core.OutputEmitterRef<string | undefined>;
|
|
@@ -277,28 +570,6 @@ declare class GaIconModule {
|
|
|
277
570
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaIconModule>;
|
|
278
571
|
}
|
|
279
572
|
|
|
280
|
-
declare class GaInputDirective {
|
|
281
|
-
readonly uniqueId: string;
|
|
282
|
-
private readonly formFieldConnector;
|
|
283
|
-
protected readonly hasWrapper: GaInputComponent | null;
|
|
284
|
-
private readonly implicitNgControlState;
|
|
285
|
-
readonly invalidInput: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
286
|
-
readonly idInput: _angular_core.InputSignal<string | undefined>;
|
|
287
|
-
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
288
|
-
readonly invalid: _angular_core.Signal<boolean>;
|
|
289
|
-
readonly id: _angular_core.Signal<string>;
|
|
290
|
-
readonly disabled: _angular_core.Signal<boolean>;
|
|
291
|
-
constructor();
|
|
292
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaInputDirective, never>;
|
|
293
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaInputDirective, "[gaInput]", never, { "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
declare class GaInputComponent {
|
|
297
|
-
protected readonly gaInput: _angular_core.Signal<GaInputDirective>;
|
|
298
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaInputComponent, never>;
|
|
299
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaInputComponent, "ga-input", never, {}, {}, ["gaInput"], ["*"], true, never>;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
573
|
declare class GaInputModule {
|
|
303
574
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaInputModule, never>;
|
|
304
575
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GaInputModule, never, [typeof GaInputComponent, typeof GaInputDirective], [typeof GaInputComponent, typeof GaInputDirective]>;
|
|
@@ -654,7 +925,7 @@ declare class GaTooltipComponent {
|
|
|
654
925
|
readonly content: _angular_core.InputSignal<string | TemplateRef<any>>;
|
|
655
926
|
readonly template: _angular_core.Signal<TemplateRef<any> | null>;
|
|
656
927
|
readonly text: _angular_core.Signal<string | null>;
|
|
657
|
-
readonly position: _angular_core.InputSignal<"
|
|
928
|
+
readonly position: _angular_core.InputSignal<"bottom-start" | "bottom-center" | "bottom-end" | "top-start" | "top-center" | "top-end" | "left-start" | "left-center" | "left-end" | "right-start" | "right-center" | "right-end" | undefined>;
|
|
658
929
|
readonly offset: _angular_core.InputSignal<number>;
|
|
659
930
|
readonly hideTriggered: _angular_core.OutputEmitterRef<void>;
|
|
660
931
|
readonly triggerHide: () => void;
|
|
@@ -804,6 +1075,7 @@ declare class GaSelectComponent implements ControlValueAccessor, AfterContentIni
|
|
|
804
1075
|
protected readonly customSelectValue: _angular_core.Signal<GaSelectValueComponent | undefined>;
|
|
805
1076
|
protected readonly inputSearch: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
806
1077
|
protected readonly content: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1078
|
+
protected readonly connectedOverlay: _angular_core.Signal<CdkConnectedOverlay | undefined>;
|
|
807
1079
|
readonly id: _angular_core.Signal<string>;
|
|
808
1080
|
readonly isOpen: _angular_core.Signal<boolean>;
|
|
809
1081
|
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
@@ -1065,6 +1337,8 @@ declare class GaLinkModule {
|
|
|
1065
1337
|
declare class GaTextAreaDirective {
|
|
1066
1338
|
private readonly implicitNgControlState;
|
|
1067
1339
|
private readonly formFieldConnector;
|
|
1340
|
+
private readonly renderer;
|
|
1341
|
+
private readonly elementRef;
|
|
1068
1342
|
private readonly uniqueId;
|
|
1069
1343
|
readonly idInput: _angular_core.InputSignal<string | undefined>;
|
|
1070
1344
|
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -1072,8 +1346,8 @@ declare class GaTextAreaDirective {
|
|
|
1072
1346
|
private readonly disabled;
|
|
1073
1347
|
protected readonly invalid: _angular_core.Signal<boolean>;
|
|
1074
1348
|
protected readonly id: _angular_core.Signal<string>;
|
|
1075
|
-
constructor();
|
|
1076
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTextAreaDirective,
|
|
1349
|
+
constructor(placeholder?: string);
|
|
1350
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaTextAreaDirective, [{ attribute: "placeholder"; }]>;
|
|
1077
1351
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GaTextAreaDirective, "[gaTextArea]", never, { "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1078
1352
|
}
|
|
1079
1353
|
|
|
@@ -1083,5 +1357,5 @@ declare class GaTextAreaModule {
|
|
|
1083
1357
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GaTextAreaModule>;
|
|
1084
1358
|
}
|
|
1085
1359
|
|
|
1086
|
-
export { CHECKBOX_CONTROL_VALUE_ACCESSOR, DEFAULT_MODAL_OPTIONS, GA_ALERT_I18N_FACTORY, GA_BASE_FONT_SIZE, GA_BUTTON_I18N_FACTORY, GA_CHECKBOX_REQUIRED_VALIDATOR, GA_FORM_CONTROL_ADAPTER, GA_ICON_DEFAULT_SIZE, GA_MODAL_DATA, GA_MODAL_I18N_FACTORY, GA_SELECT_I18N_FACTORY, GA_SELECT_REQUIRED_VALIDATOR, GA_TOOLTIP_DEFAULT_OFFSET, GaAlertComponent, GaAlertI18n, GaAlertI18nDefault, GaAlertModule, GaAlertTitleActionsComponent, GaAlertTitleComponent, GaBadgeComponent, GaBadgeModule, GaButtonDirective, GaButtonI18n, GaButtonI18nDefault, GaButtonModule, GaCardComponent, GaCardModule, GaCheckboxComponent, GaCheckboxModule, GaCheckboxRequiredValidator, GaFieldErrorDirective, GaFieldInfoComponent, GaFieldLabelComponent, GaFormControlDirective, GaFormControlErrorsDirective, GaFormFieldComponent, GaFormFieldConnector, GaFormFieldModule, GaIconButtonDirective, GaIconComponent, GaIconModule, GaInputComponent, GaInputDirective, GaInputModule, GaLabelledByFormFieldDirective, GaLinkDirective, GaLinkModule, GaMenuComponent, GaMenuItemComponent, GaMenuModule, GaMenuSeparatorComponent, GaMenuTitleComponent, GaMenuTriggerDirective, GaMenuTriggerIconComponent, GaModalActionsComponent, GaModalCloseDirective, GaModalComponent, GaModalContentComponent, GaModalDescriptionComponent, GaModalDescriptionDirective, GaModalHeaderComponent, GaModalI18n, GaModalI18nDefault, GaModalLabelDirective, GaModalModule, GaModalOptions, GaModalRef, GaModalService, GaModalTitleDirective, GaOptgroupComponent, GaOptionComponent, GaRadioButtonComponent, GaRadioGroupComponent, GaRadioModule, GaSegmentedControlButtonDirective, GaSegmentedControlComponent, GaSegmentedControlIconButtonComponent, GaSegmentedControlModule, GaSegmentedControlTextButtonComponent, GaSelectComponent, GaSelectDropdownComponent, GaSelectDropdownSpinnerComponent, GaSelectI18n, GaSelectI18nDefault, GaSelectModule, GaSelectRequiredValidator, GaSelectValueComponent, GaSpinnerComponent, GaSpinnerModule, GaSwitchComponent, GaSwitchModule, GaTextAreaDirective, GaTextAreaModule, GaTooltipComponent, GaTooltipDirective, GaTooltipModule, RADIO_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, injectNgControlState, provideGaAlertI18n, provideGaBaseFontSize, provideGaButtonI18n, provideGaModalI18n, provideGaModalOptions, provideGaSelectI18n };
|
|
1087
|
-
export type { GaAlertVariant, GaBadgeType, GaBadgeVariant, GaButtonType, GaFormControlAdapter, GaIconButtonVariant, GaIconData, GaLinkSize, GaLinkVariant, GaModalRole, GaModalSize, GaModalType, GaTooltipControlMode, GaTooltipDirection, GaTooltipPlacement, GaTooltipPosition };
|
|
1360
|
+
export { CHECKBOX_CONTROL_VALUE_ACCESSOR, DEFAULT_MODAL_OPTIONS, GA_ALERT_I18N_FACTORY, GA_BASE_FONT_SIZE, GA_BUTTON_I18N_FACTORY, GA_CHECKBOX_REQUIRED_VALIDATOR, GA_DATEPICKER_I18N_FACTORY, GA_DATEPICKER_PARSER_FORMATTER_FACTORY, GA_DATEPICKER_VALUE_ADAPTER_FACTORY, GA_DATE_PARSER_FORMATTER_CONFIG, GA_DEFAULT_DATEPICKER_FORMATS, GA_FORM_CONTROL_ADAPTER, GA_ICON_DEFAULT_SIZE, GA_MODAL_DATA, GA_MODAL_I18N_FACTORY, GA_SELECT_I18N_FACTORY, GA_SELECT_REQUIRED_VALIDATOR, GA_TOOLTIP_DEFAULT_OFFSET, GaAlertComponent, GaAlertI18n, GaAlertI18nDefault, GaAlertModule, GaAlertTitleActionsComponent, GaAlertTitleComponent, GaBadgeComponent, GaBadgeModule, GaButtonDirective, GaButtonI18n, GaButtonI18nDefault, GaButtonModule, GaCardComponent, GaCardModule, GaCheckboxComponent, GaCheckboxModule, GaCheckboxRequiredValidator, GaDatepickerComponent, GaDatepickerI18n, GaDatepickerI18nDefault, GaDatepickerInputDirective, GaDatepickerModule, GaDatepickerNativeUtcIsoValueAdapter, GaDatepickerNativeUtcValueAdapter, GaDatepickerParserFormatter, GaDatepickerParserFormatterDefault, GaDatepickerStructValueAdapter, GaDatepickerToggleComponent, GaDatepickerValueAdapter, GaFieldErrorDirective, GaFieldInfoComponent, GaFieldLabelComponent, GaFormControlDirective, GaFormControlErrorsDirective, GaFormFieldComponent, GaFormFieldConnector, GaFormFieldModule, GaIconButtonDirective, GaIconComponent, GaIconModule, GaInputComponent, GaInputDirective, GaInputModule, GaLabelledByFormFieldDirective, GaLinkDirective, GaLinkModule, GaMenuComponent, GaMenuItemComponent, GaMenuModule, GaMenuSeparatorComponent, GaMenuTitleComponent, GaMenuTriggerDirective, GaMenuTriggerIconComponent, GaModalActionsComponent, GaModalCloseDirective, GaModalComponent, GaModalContentComponent, GaModalDescriptionComponent, GaModalDescriptionDirective, GaModalHeaderComponent, GaModalI18n, GaModalI18nDefault, GaModalLabelDirective, GaModalModule, GaModalOptions, GaModalRef, GaModalService, GaModalTitleDirective, GaOptgroupComponent, GaOptionComponent, GaRadioButtonComponent, GaRadioGroupComponent, GaRadioModule, GaSegmentedControlButtonDirective, GaSegmentedControlComponent, GaSegmentedControlIconButtonComponent, GaSegmentedControlModule, GaSegmentedControlTextButtonComponent, GaSelectComponent, GaSelectDropdownComponent, GaSelectDropdownSpinnerComponent, GaSelectI18n, GaSelectI18nDefault, GaSelectModule, GaSelectRequiredValidator, GaSelectValueComponent, GaSpinnerComponent, GaSpinnerModule, GaSwitchComponent, GaSwitchModule, GaTextAreaDirective, GaTextAreaModule, GaTooltipComponent, GaTooltipDirective, GaTooltipModule, RADIO_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, compareStructs, extendGaDateParserFormatter, injectNgControlState, provideGaAlertI18n, provideGaBaseFontSize, provideGaButtonI18n, provideGaDatepickerI18n, provideGaDatepickerParserFormatter, provideGaDatepickerValueAdapter, provideGaModalI18n, provideGaModalOptions, provideGaSelectI18n };
|
|
1361
|
+
export type { GaAlertVariant, GaBadgeType, GaBadgeVariant, GaButtonType, GaDatepickerFormats, GaDatepickerStruct, GaFormControlAdapter, GaIconButtonVariant, GaIconData, GaLinkSize, GaLinkVariant, GaModalRole, GaModalSize, GaModalType, GaTooltipControlMode, GaTooltipDirection, GaTooltipPlacement, GaTooltipPosition, IGaDatepickerI18n };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsn-ux/ngx-gaia",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^20.0.0",
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
|
-
"@vsn-ux/gaia-styles": "^0.5.
|
|
8
|
+
"@vsn-ux/gaia-styles": "^0.5.7",
|
|
9
9
|
"lucide-angular": ">=0.518.0 <1.0.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|