@alauda/ui 7.3.3-beta.43 → 7.3.3-beta.44

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.
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const LabelPosition: {
3
3
  readonly Top: "top";
4
4
  readonly Left: "left";
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const InlineAlertType: {
3
3
  readonly Primary: "primary";
4
4
  readonly Success: "success";
@@ -1,16 +1,17 @@
1
1
  import { ElementRef, Renderer2 } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
+ import { ComponentSize } from '../internal/types';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class InputComponent {
5
6
  elementRef: ElementRef<HTMLInputElement>;
6
7
  private readonly renderer;
7
- get size(): "" | "small" | "large" | "medium" | "mini";
8
- set size(val: "" | "small" | "large" | "medium" | "mini");
8
+ get size(): ComponentSize;
9
+ set size(val: ComponentSize);
9
10
  get disabled(): boolean;
10
11
  set disabled(val: boolean | '');
11
12
  private _size;
12
13
  private _disabled;
13
- size$: BehaviorSubject<"" | "small" | "large" | "medium" | "mini">;
14
+ size$: BehaviorSubject<ComponentSize>;
14
15
  disabled$: BehaviorSubject<boolean>;
15
16
  constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ export type ValueOf<T> = T[keyof T];
2
2
  export declare const ComponentSize: {
3
3
  readonly Large: "large";
4
4
  readonly Medium: "medium";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "7.3.3-beta.43",
3
+ "version": "7.3.3-beta.44",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const RadioSize: {
3
3
  readonly Medium: "medium";
4
4
  readonly Small: "small";
@@ -1,14 +1,15 @@
1
1
  import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
2
2
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
3
3
  import { CommonFormControl } from '../form';
4
+ import { ComponentSize } from '../internal/types';
4
5
  import { TooltipDirective } from '../tooltip';
5
6
  import { OptionContentDirective } from './helper-directives';
6
7
  import { OptionComponent } from './option/option.component';
7
8
  import { OptionFilterFn, SelectFilterOption, TrackFn } from './select.types';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare abstract class BaseSelect<T, V = T> extends CommonFormControl<V> implements AfterContentInit, AfterViewInit, OnDestroy {
10
- get size(): "" | "small" | "large" | "medium" | "mini";
11
- set size(val: "" | "small" | "large" | "medium" | "mini");
11
+ get size(): ComponentSize;
12
+ set size(val: ComponentSize);
12
13
  filterable: boolean;
13
14
  clearable: boolean;
14
15
  filterFn: OptionFilterFn<T>;
@@ -42,9 +43,9 @@ export declare abstract class BaseSelect<T, V = T> extends CommonFormControl<V>
42
43
  private _size;
43
44
  private _filterString;
44
45
  protected destroy$$: Subject<void>;
45
- protected size$$: BehaviorSubject<"" | "small" | "large" | "medium" | "mini">;
46
+ protected size$$: BehaviorSubject<ComponentSize>;
46
47
  private readonly filterString$$;
47
- size$: Observable<"" | "small" | "large" | "medium" | "mini">;
48
+ size$: Observable<ComponentSize>;
48
49
  filterString$: Observable<string>;
49
50
  optionVisibles$: Observable<boolean[]>;
50
51
  hasVisibleOption$: Observable<boolean>;
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export interface Status {
3
3
  type?: StatusType;
4
4
  class?: string;
package/steps/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const StepState: {
3
3
  readonly Default: "default";
4
4
  readonly Done: "done";
@@ -4,7 +4,7 @@ import { Bem } from '../internal/utils';
4
4
  import { TabHeaderAddonDirective, TabTitleDirective } from './tab-body.component';
5
5
  import { TabHeaderComponent } from './tab-header.component';
6
6
  import { TabComponent } from './tab.component';
7
- import { TabType } from './tabs.types';
7
+ import { TabSize, TabType } from './tabs.types';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class TabChangeEvent {
10
10
  index: number;
@@ -35,8 +35,8 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
35
35
  get type(): TabType;
36
36
  set type(type: TabType);
37
37
  title: string | TemplateRef<unknown>;
38
- get size(): "small" | "large" | "medium";
39
- set size(val: "small" | "large" | "medium");
38
+ get size(): TabSize;
39
+ set size(val: TabSize);
40
40
  get lazy(): boolean;
41
41
  set lazy(lazy: boolean);
42
42
  readonly selectedIndexChange: EventEmitter<number>;
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const TabSize: {
3
3
  readonly Large: "large";
4
4
  readonly Medium: "medium";
@@ -1,4 +1,4 @@
1
- import { ValueOf } from 'ts-essentials';
1
+ import { ValueOf } from "src/internal/types";
2
2
  export declare const TagType: {
3
3
  readonly Primary: "primary";
4
4
  readonly Success: "success";