ud-components 0.3.11 → 0.3.13

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.
@@ -22,6 +22,7 @@ export declare class AutocompleteComponent implements OnInit, OnChanges, OnDestr
22
22
  iconFontSet: string;
23
23
  options: UdSelectOption[];
24
24
  loading: boolean;
25
+ disabled: boolean;
25
26
  /** Internal text control that drives the visible input */
26
27
  searchControl: FormControl<string | null>;
27
28
  filteredOptions: UdSelectOption[];
@@ -30,9 +31,9 @@ export declare class AutocompleteComponent implements OnInit, OnChanges, OnDestr
30
31
  private labelMap;
31
32
  get formControl(): FormControl;
32
33
  ngOnChanges(changes: SimpleChanges): void;
34
+ onFocus(): void;
33
35
  ngOnInit(): void;
34
36
  ngOnDestroy(): void;
35
- onFocus(): void;
36
37
  /** Called when the user selects an option from the dropdown */
37
38
  onOptionSelected(value: any): void;
38
39
  /** Display function for mat-autocomplete — shows the label, not the raw value */
@@ -40,5 +41,5 @@ export declare class AutocompleteComponent implements OnInit, OnChanges, OnDestr
40
41
  private filter;
41
42
  private buildLabelMap;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ud-autocomplete", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ud-autocomplete", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
44
45
  }
@@ -1,3 +1,5 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
1
3
  import * as i0 from "@angular/core";
2
4
  /**
3
5
  * Styled date picker that participates in the parent FormGroup.
@@ -8,7 +10,7 @@ import * as i0 from "@angular/core";
8
10
  * label="Date of birth"
9
11
  * icon="calendar_today" />
10
12
  */
11
- export declare class DateInputComponent {
13
+ export declare class DateInputComponent implements OnChanges {
12
14
  controlName: string;
13
15
  label: string;
14
16
  placeholder: string;
@@ -16,6 +18,10 @@ export declare class DateInputComponent {
16
18
  iconFontSet: string;
17
19
  min?: Date;
18
20
  max?: Date;
21
+ disabled: boolean;
22
+ private controlContainer;
23
+ get control(): FormControl;
24
+ ngOnChanges(changes: SimpleChanges): void;
19
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "ud-date-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "ud-date-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
21
27
  }
@@ -1,3 +1,5 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
1
3
  import * as i0 from "@angular/core";
2
4
  /**
3
5
  * Styled date range picker that participates in the parent FormGroup.
@@ -10,7 +12,7 @@ import * as i0 from "@angular/core";
10
12
  * label="Stay period"
11
13
  * icon="date_range" />
12
14
  */
13
- export declare class DateRangeInputComponent {
15
+ export declare class DateRangeInputComponent implements OnChanges {
14
16
  startControlName: string;
15
17
  endControlName: string;
16
18
  label: string;
@@ -20,6 +22,11 @@ export declare class DateRangeInputComponent {
20
22
  endPlaceholder: string;
21
23
  min?: Date;
22
24
  max?: Date;
25
+ disabled: boolean;
26
+ private controlContainer;
27
+ get startControl(): FormControl;
28
+ get endControl(): FormControl;
29
+ ngOnChanges(changes: SimpleChanges): void;
23
30
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent, "ud-date-range-input", never, { "startControlName": { "alias": "startControlName"; "required": true; }; "endControlName": { "alias": "endControlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent, "ud-date-range-input", never, { "startControlName": { "alias": "startControlName"; "required": true; }; "endControlName": { "alias": "endControlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
25
32
  }
@@ -38,6 +38,7 @@ export declare class MultiSelectComponent implements OnInit, OnChanges, OnDestro
38
38
  */
39
39
  moreText: string;
40
40
  loading: boolean;
41
+ disabled: boolean;
41
42
  selectedValues: any[];
42
43
  private controlContainer;
43
44
  private destroy$;
@@ -50,5 +51,5 @@ export declare class MultiSelectComponent implements OnInit, OnChanges, OnDestro
50
51
  getMoreText(count: number): string;
51
52
  private buildLabelMap;
52
53
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "ud-multi-select", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxChipsVisible": { "alias": "maxChipsVisible"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "ud-multi-select", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxChipsVisible": { "alias": "maxChipsVisible"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
54
55
  }
@@ -1,17 +1,20 @@
1
1
  import { CountryCode } from '../../../interfaces/phone.interface';
2
- import { OnInit } from '@angular/core';
2
+ import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
3
3
  import { FormControl, FormGroup } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PhoneInputComponent implements OnInit {
5
+ export declare class PhoneInputComponent implements OnInit, OnChanges {
6
6
  controlName: string;
7
7
  label: string;
8
8
  placeholder: string;
9
+ disabled: boolean;
10
+ get isDisabled(): boolean;
9
11
  private controlContainer;
10
12
  protected displayValue: string;
11
13
  protected readonly countries: CountryCode[];
12
14
  get phoneGroup(): FormGroup;
13
15
  get countryCodeControl(): FormControl;
14
16
  get phoneNumberControl(): FormControl;
17
+ ngOnChanges(changes: SimpleChanges): void;
15
18
  ngOnInit(): void;
16
19
  selectCountry(country: CountryCode): void;
17
20
  onPhoneInput(event: Event): void;
@@ -19,5 +22,5 @@ export declare class PhoneInputComponent implements OnInit {
19
22
  private formatLocal;
20
23
  private getCursorPosition;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<PhoneInputComponent, "ud-phone-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<PhoneInputComponent, "ud-phone-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
23
26
  }
@@ -1,3 +1,4 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import * as i0 from "@angular/core";
3
4
  export interface PillToggleOption {
@@ -15,13 +16,15 @@ export interface PillToggleOption {
15
16
  * label="Gender"
16
17
  * [options]="[{ value: 'male', label: 'Male' }, { value: 'female', label: 'Female' }]" />
17
18
  */
18
- export declare class PillToggleComponent {
19
+ export declare class PillToggleComponent implements OnChanges {
19
20
  controlName: string;
20
21
  label: string;
21
22
  options: PillToggleOption[];
23
+ disabled: boolean;
22
24
  private controlContainer;
25
+ ngOnChanges(changes: SimpleChanges): void;
23
26
  get control(): FormControl;
24
27
  select(value: string): void;
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PillToggleComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<PillToggleComponent, "ud-pill-toggle", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PillToggleComponent, "ud-pill-toggle", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
27
30
  }
@@ -1,3 +1,4 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
@@ -10,7 +11,7 @@ import * as i0 from "@angular/core";
10
11
  * icon="account_circle"
11
12
  * placeholder="Enter name" />
12
13
  */
13
- export declare class TextInputComponent {
14
+ export declare class TextInputComponent implements OnChanges {
14
15
  /** Key of the control inside the parent FormGroup */
15
16
  controlName: string;
16
17
  label: string;
@@ -22,10 +23,12 @@ export declare class TextInputComponent {
22
23
  loading: boolean;
23
24
  /** Step amount for number type increment/decrement. */
24
25
  step: number;
26
+ disabled: boolean;
25
27
  private controlContainer;
28
+ ngOnChanges(changes: SimpleChanges): void;
26
29
  get control(): FormControl;
27
30
  increment(): void;
28
31
  decrement(): void;
29
32
  static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ud-text-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ud-text-input", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "step": { "alias": "step"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
31
34
  }
@@ -1,3 +1,5 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
1
3
  import * as i0 from "@angular/core";
2
4
  /**
3
5
  * Styled auto-growing textarea that participates in the parent FormGroup.
@@ -10,7 +12,7 @@ import * as i0 from "@angular/core";
10
12
  * [minRows]="3"
11
13
  * [maxRows]="8" />
12
14
  */
13
- export declare class TextareaComponent {
15
+ export declare class TextareaComponent implements OnChanges {
14
16
  controlName: string;
15
17
  label: string;
16
18
  placeholder: string;
@@ -20,6 +22,10 @@ export declare class TextareaComponent {
20
22
  minRows: number;
21
23
  /** Maximum number of rows before a scrollbar appears. */
22
24
  maxRows: number;
25
+ disabled: boolean;
26
+ private controlContainer;
27
+ get control(): FormControl;
28
+ ngOnChanges(changes: SimpleChanges): void;
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "ud-textarea", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; }, {}, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "ud-textarea", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
25
31
  }
@@ -1,3 +1,5 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
1
3
  import { MatTimepickerOption } from '@angular/material/timepicker';
2
4
  import * as i0 from "@angular/core";
3
5
  /**
@@ -15,7 +17,7 @@ import * as i0 from "@angular/core";
15
17
  * label="Check-in time"
16
18
  * [options]="timeOptions" />
17
19
  */
18
- export declare class TimePickerComponent {
20
+ export declare class TimePickerComponent implements OnChanges {
19
21
  controlName: string;
20
22
  label: string;
21
23
  placeholder: string;
@@ -29,7 +31,11 @@ export declare class TimePickerComponent {
29
31
  intervalMinutes?: number;
30
32
  /** Pre-defined list of selectable times. When set, `intervalMinutes` is ignored. */
31
33
  options?: readonly MatTimepickerOption<Date>[] | null;
34
+ disabled: boolean;
35
+ private controlContainer;
36
+ get control(): FormControl;
37
+ ngOnChanges(changes: SimpleChanges): void;
32
38
  get _intervalSeconds(): number | null;
33
39
  static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "ud-time-picker", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "intervalMinutes": { "alias": "intervalMinutes"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "ud-time-picker", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "intervalMinutes": { "alias": "intervalMinutes"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
35
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ud-components",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"