@datarailsshared/datarailsshared 1.3.21 → 1.3.24

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.
@@ -11,6 +11,8 @@ export declare class DrInputComponent implements AfterViewInit, ControlValueAcce
11
11
  placeholder: string;
12
12
  readonly: boolean;
13
13
  clearable: boolean;
14
+ min: any;
15
+ step: any;
14
16
  blur: EventEmitter<any>;
15
17
  get elementClass(): string;
16
18
  innerValue: any;
@@ -1,15 +1,18 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, AfterViewInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- export declare class DrToggleComponent implements ControlValueAccessor {
3
+ export declare class DrToggleComponent implements ControlValueAccessor, AfterViewInit {
4
4
  private cdr;
5
5
  _disabled: boolean;
6
+ _elementClass: string[];
6
7
  toggleTitle: any;
7
8
  toggleTitleRight: boolean;
8
9
  successType: boolean;
9
10
  checkedStatus: boolean;
10
11
  set disabled(value: boolean);
11
12
  checkedChange: EventEmitter<any>;
13
+ get elementClass(): string;
12
14
  constructor(cdr: ChangeDetectorRef);
15
+ ngAfterViewInit(): void;
13
16
  onChange: (value: boolean) => void;
14
17
  onTouched: () => void;
15
18
  writeValue(value: boolean): void;
@@ -1,10 +1,11 @@
1
- import { ChangeDetectorRef } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  export declare class RadioButtonComponent implements ControlValueAccessor {
4
4
  private cdr;
5
5
  disabled: boolean;
6
6
  name: string;
7
7
  _value: any;
8
+ valueChange: EventEmitter<any>;
8
9
  modelValue: any;
9
10
  get value(): any;
10
11
  onChange: any;
@@ -15,4 +16,6 @@ export declare class RadioButtonComponent implements ControlValueAccessor {
15
16
  writeValue(value: any): void;
16
17
  toggleChange(event: any): void;
17
18
  valueChanged(event: any): void;
19
+ _setName(name: string): void;
20
+ _markForCheck(): void;
18
21
  }
@@ -0,0 +1,39 @@
1
+ import { AfterContentInit, EventEmitter, OnDestroy, QueryList, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { RadioButtonComponent } from './radio-button.component';
5
+ export declare class RadioGroupComponent implements AfterContentInit, OnDestroy, ControlValueAccessor {
6
+ protected hostElement: ElementRef<HTMLElement>;
7
+ protected platformId: any;
8
+ protected document: any;
9
+ get value(): any;
10
+ set value(value: any);
11
+ get name(): string;
12
+ set name(name: string);
13
+ get disabled(): boolean;
14
+ set disabled(disabled: boolean);
15
+ constructor(hostElement: ElementRef<HTMLElement>, platformId: any, document: any);
16
+ protected destroy$: Subject<void>;
17
+ protected _value: any;
18
+ protected _name: string;
19
+ protected _disabled: boolean;
20
+ radios: QueryList<RadioButtonComponent>;
21
+ valueChange: EventEmitter<any>;
22
+ protected onChange: (value: any) => void;
23
+ protected onTouched: () => void;
24
+ ngAfterContentInit(): void;
25
+ ngOnDestroy(): void;
26
+ registerOnChange(fn: any): void;
27
+ registerOnTouched(fn: any): void;
28
+ writeValue(value: any): void;
29
+ setDisabledState(isDisabled: boolean): void;
30
+ protected updateAndSubscribeToRadios(): void;
31
+ protected updateNames(): void;
32
+ protected updateValues(): void;
33
+ protected updateDisabled(): void;
34
+ protected subscribeOnRadiosValueChange(): void;
35
+ protected propagateValue(value: any): void;
36
+ protected subscribeOnRadiosBlur(): void;
37
+ protected updateAndMarkForCheckRadios(updateFn: (RadioButtonComponent: any) => void): void;
38
+ protected updateValueFromCheckedOption(): void;
39
+ }
@@ -4,7 +4,7 @@ export interface IDropdown<T> {
4
4
  position: ElPosition | IDropdownCoordinate;
5
5
  list: IDropdownItem<T>[];
6
6
  tag?: string;
7
- class?: string;
7
+ class?: string | undefined;
8
8
  }
9
9
  export interface IDropdownItem<T> {
10
10
  title?: string;
@@ -21,6 +21,7 @@ export interface IDropdownItem<T> {
21
21
  childOptions?: IDropdown<T>;
22
22
  actionIcons?: IDropdownActionIcon<T>[];
23
23
  selected?: (p: T) => boolean;
24
+ class?: string | undefined;
24
25
  }
25
26
  export interface IDropdownActionIcon<T> {
26
27
  icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.3.21",
3
+ "version": "1.3.24",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './lib/list-tags/list-tag.component';
9
9
  export * from './lib/date-tags/day-tag/day-tag.component';
10
10
  export * from './lib/date-tags/date-tag.component';
11
11
  export * from './lib/dr-inputs/radio-button/radio-button.component';
12
+ export * from './lib/dr-inputs/radio-button/radio-group.component';
12
13
  export * from './lib/dr-inputs/checkbox/checkbox.component';
13
14
  export * from './lib/dr-inputs/dr-input/dr-input.component';
14
15
  export * from './lib/dr-inputs/dr-select/dr-select.component';