ngx-tethys 19.0.5 → 19.0.6
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/CHANGELOG.md +11 -0
- package/anchor/anchor-link.component.d.ts +2 -1
- package/anchor/anchor.component.d.ts +2 -1
- package/anchor/anchor.token.d.ts +9 -0
- package/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel.token.d.ts +7 -0
- package/carousel/engine/carousel-base.d.ts +3 -3
- package/carousel/engine/carousel-fade.d.ts +2 -2
- package/carousel/engine/carousel-noop.d.ts +2 -2
- package/carousel/engine/carousel-slide.d.ts +2 -2
- package/collapse/collapse-item.component.d.ts +2 -1
- package/collapse/collapse.component.d.ts +5 -5
- package/collapse/collapse.token.d.ts +15 -0
- package/core/theme/enum.d.ts +5 -0
- package/core/theme/index.d.ts +1 -0
- package/core/theme/store.d.ts +1 -1
- package/core/theme/theme.d.ts +0 -5
- package/date-picker/standard-types.d.ts +7 -2
- package/drag-drop/drag-drop.service.d.ts +2 -2
- package/drag-drop/{drop-container.class.d.ts → drag-drop.token.d.ts} +12 -7
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag-ref.d.ts +3 -5
- package/drag-drop/drag.directive.d.ts +3 -3
- package/drag-drop/drop-container.directive.d.ts +1 -1
- package/drag-drop/index.d.ts +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +17 -4
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +15 -3
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +90 -77
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +0 -3
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +11 -10
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +41 -46
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +51 -54
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +17 -4
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +2 -2
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +2 -2
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +118 -108
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-resizable.mjs +1 -0
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +3 -18
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree.mjs +0 -3
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs +4 -8
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/grid/grid.type.d.ts +5 -0
- package/grid/index.d.ts +1 -0
- package/grid/thy-grid-item.component.d.ts +1 -1
- package/grid/thy-grid.component.d.ts +1 -11
- package/guider/guider-manager.d.ts +2 -1
- package/guider/guider-ref.d.ts +6 -6
- package/guider/guider-step-ref.d.ts +3 -4
- package/guider/guider.interface.d.ts +26 -0
- package/i18n/i18n.service.d.ts +1 -1
- package/i18n/index.d.ts +2 -5
- package/i18n/locale.d.ts +1 -7
- package/i18n/locales/index.d.ts +5 -0
- package/i18n/util.d.ts +3 -0
- package/image/image-group.component.d.ts +4 -4
- package/image/image.directive.d.ts +2 -1
- package/image/image.token.d.ts +17 -0
- package/list/selection/selection-list.d.ts +2 -1
- package/list/selection/selection.interface.d.ts +2 -3
- package/message/abstract/abstract-message-queue.service.d.ts +2 -2
- package/message/abstract/abstract-message-ref.d.ts +6 -2
- package/package.json +1 -1
- package/radio/group/radio-group.component.d.ts +2 -1
- package/radio/radio.component.d.ts +3 -3
- package/radio/radio.token.d.ts +12 -0
- package/resizable/interface.d.ts +5 -0
- package/resizable/resizable.directive.d.ts +6 -18
- package/resizable/resizable.service.d.ts +1 -1
- package/resizable/resize-handle.component.d.ts +1 -6
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +2 -1
- package/segment/segment.token.d.ts +10 -4
- package/shared/index.d.ts +1 -0
- package/shared/option/list-option/list-option.component.d.ts +10 -5
- package/shared/option/option.component.d.ts +1 -3
- package/shared/option/option.token.d.ts +11 -11
- package/shared/shared.type.d.ts +1 -0
- package/table/index.d.ts +1 -0
- package/table/styles/table.scss +9 -1
- package/table/table-skeleton.component.d.ts +11 -3
- package/table/table.component.d.ts +1 -3
- package/table/table.type.d.ts +3 -0
- package/timeline/index.d.ts +1 -0
- package/timeline/timeline-item.component.d.ts +1 -1
- package/timeline/timeline.component.d.ts +1 -1
- package/timeline/timeline.type.d.ts +1 -0
- package/tree/index.d.ts +0 -1
- package/tree/tree-abstract.d.ts +1 -1
- package/tree/tree-node.component.d.ts +17 -8
- package/tree/tree.class.d.ts +40 -1
- package/tree/tree.component.d.ts +1 -1
- package/tree/tree.pipe.d.ts +1 -1
- package/tree/tree.service.d.ts +3 -9
- package/tree/tree-node.class.d.ts +0 -29
package/i18n/index.d.ts
CHANGED
|
@@ -2,8 +2,5 @@ export * from './i18n';
|
|
|
2
2
|
export * from './i18n.service';
|
|
3
3
|
export * from './i18n.token';
|
|
4
4
|
export * from './locale';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export { default as enUsLocale } from './locales/en-us';
|
|
8
|
-
export { default as jaJpLocale } from './locales/ja-jp';
|
|
9
|
-
export { default as deDeLocale } from './locales/de-de';
|
|
5
|
+
export * from './locales';
|
|
6
|
+
export * from './util';
|
package/i18n/locale.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ThyModuleLocaleType, ThyModuleType, ThyI18nLocale } from './i18n';
|
|
3
3
|
export declare function injectLocale(): Signal<ThyI18nLocale>;
|
|
4
4
|
export declare function injectLocale<K extends ThyModuleType>(key: K): Signal<ThyModuleLocaleType<K>>;
|
|
5
|
-
export declare function normalizeLocale(localeId: string): ThyLocaleType;
|
|
6
|
-
/**
|
|
7
|
-
* 支持语言列表中获取默认语言
|
|
8
|
-
* return ThyLocaleType
|
|
9
|
-
*/
|
|
10
|
-
export declare function getDefaultLocaleId(): ThyLocaleType;
|
package/i18n/util.d.ts
ADDED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Injector, ElementRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IThyImageDirective, IThyImageGroupComponent } from './image.token';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* 图片分组,提供 thyImageGroup 指令和 thy-image-group 标签两种使用方式
|
|
6
6
|
* @name thy-image-group,[thyImageGroup]
|
|
7
7
|
*/
|
|
8
|
-
export declare class ThyImageGroup {
|
|
8
|
+
export declare class ThyImageGroup implements IThyImageGroupComponent {
|
|
9
9
|
injector: Injector;
|
|
10
10
|
element: ElementRef<any>;
|
|
11
|
-
images:
|
|
12
|
-
addImage(image:
|
|
11
|
+
images: IThyImageDirective[];
|
|
12
|
+
addImage(image: IThyImageDirective, index: number): void;
|
|
13
13
|
removeImage(index: number): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyImageGroup, never>;
|
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyImageGroup, "thy-image-group, [thyImageGroup]", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges, OnDestroy, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { IThyImageDirective } from './image.token';
|
|
2
3
|
import { ThyImageMeta } from './image.class';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -6,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
6
7
|
* @name img[thyImage]
|
|
7
8
|
* @order 10
|
|
8
9
|
*/
|
|
9
|
-
export declare class ThyImageDirective implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
10
|
+
export declare class ThyImageDirective implements IThyImageDirective, OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
10
11
|
private thyImageService;
|
|
11
12
|
private injector;
|
|
12
13
|
private elementRef;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, InjectionToken, Injector } from '@angular/core';
|
|
2
|
+
import { ThyImageMeta } from './image.class';
|
|
3
|
+
export interface IThyImageDirective {
|
|
4
|
+
previewable: boolean;
|
|
5
|
+
thySrc: string;
|
|
6
|
+
thyPreviewSrc: string;
|
|
7
|
+
thyOriginSrc: string;
|
|
8
|
+
thyImageMeta: ThyImageMeta;
|
|
9
|
+
}
|
|
10
|
+
export interface IThyImageGroupComponent {
|
|
11
|
+
injector: Injector;
|
|
12
|
+
element: ElementRef;
|
|
13
|
+
images: IThyImageDirective[];
|
|
14
|
+
addImage: (image: IThyImageDirective, index: number) => void;
|
|
15
|
+
removeImage: (index: number) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const THY_IMAGE_GROUP_COMPONENT: InjectionToken<IThyImageGroupComponent>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IThyListOptionParentComponent,
|
|
1
|
+
import { IThyListOptionParentComponent, ThyListOption } from 'ngx-tethys/shared';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
3
|
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { ThyListLayout } from 'ngx-tethys/shared';
|
|
5
6
|
import { ThySelectionListChange } from './selection.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export type ThyListSize = 'sm' | 'md' | 'lg';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ThyListOption } from 'ngx-tethys/shared';
|
|
1
|
+
import { ThyListOption, IThyListOptionParentComponent } from 'ngx-tethys/shared';
|
|
3
2
|
export interface ThySelectionListChange<TValue = any> {
|
|
4
|
-
source:
|
|
3
|
+
source: IThyListOptionParentComponent;
|
|
5
4
|
option: ThyListOption;
|
|
6
5
|
value: TValue;
|
|
7
6
|
event: Event;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { ThyGlobalMessageConfig } from '../message.config';
|
|
3
|
-
import { ThyAbstractMessageRef } from './abstract-message-ref';
|
|
3
|
+
import { IThyAbstractMessageQueue, ThyAbstractMessageRef } from './abstract-message-ref';
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export declare class ThyAbstractMessageQueue<TReferences extends ThyAbstractMessageRef = ThyAbstractMessageRef> {
|
|
7
|
+
export declare class ThyAbstractMessageQueue<TReferences extends ThyAbstractMessageRef = ThyAbstractMessageRef> implements IThyAbstractMessageQueue {
|
|
8
8
|
queues$: BehaviorSubject<TReferences[]>;
|
|
9
9
|
protected defaultConfig: ThyGlobalMessageConfig;
|
|
10
10
|
get queues(): TReferences[];
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import { ThyMessageBaseConfig } from '../message.config';
|
|
3
|
-
import {
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
export interface IThyAbstractMessageQueue<TReferences extends ThyAbstractMessageRef = ThyAbstractMessageRef> {
|
|
5
|
+
queues$: BehaviorSubject<TReferences[]>;
|
|
6
|
+
queues: TReferences[];
|
|
7
|
+
}
|
|
4
8
|
export declare class ThyAbstractMessageRef<TConfig extends ThyMessageBaseConfig = ThyMessageBaseConfig> {
|
|
5
9
|
id: string;
|
|
6
10
|
config: TConfig;
|
|
7
11
|
private overlayRef;
|
|
8
12
|
private queueService;
|
|
9
13
|
private _afterClosed;
|
|
10
|
-
constructor(config: TConfig, overlayRef: OverlayRef, queueService:
|
|
14
|
+
constructor(config: TConfig, overlayRef: OverlayRef, queueService: IThyAbstractMessageQueue);
|
|
11
15
|
close(): void;
|
|
12
16
|
afterClosed(): import("rxjs").Observable<void>;
|
|
13
17
|
getOverlayRef(): OverlayRef;
|
package/package.json
CHANGED
|
@@ -2,12 +2,13 @@ import { AfterContentInit, OnChanges, OnInit, SimpleChanges } from '@angular/cor
|
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { ThyRadioButton } from '../button/radio-button.component';
|
|
4
4
|
import { ThyRadio } from '../radio.component';
|
|
5
|
+
import { IThyRadioGroupComponent } from '../radio.token';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @name thy-radio-group
|
|
8
9
|
* @order 20
|
|
9
10
|
*/
|
|
10
|
-
export declare class ThyRadioGroup implements ControlValueAccessor, OnInit, OnChanges, AfterContentInit {
|
|
11
|
+
export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlValueAccessor, OnInit, OnChanges, AfterContentInit {
|
|
11
12
|
private changeDetectorRef;
|
|
12
13
|
thyRadioGroup: boolean;
|
|
13
14
|
isButtonGroup: boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';
|
|
3
|
-
import {
|
|
3
|
+
import { IThyRadioComponent } from './radio.token';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* 单选框组件
|
|
7
7
|
* @name thy-radio,[thyRadio]
|
|
8
8
|
* @order 10
|
|
9
9
|
*/
|
|
10
|
-
export declare class ThyRadio extends ThyFormCheckBaseComponent implements OnInit {
|
|
11
|
-
thyRadioGroupComponent:
|
|
10
|
+
export declare class ThyRadio extends ThyFormCheckBaseComponent implements IThyRadioComponent, OnInit {
|
|
11
|
+
thyRadioGroupComponent: import("./radio.token").IThyRadioGroupComponent;
|
|
12
12
|
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* 当和 thy-radio-group 配合使用时的值,选中后的 NgModel 值
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export interface IThyRadioComponent {
|
|
3
|
+
thyValue: string;
|
|
4
|
+
thyChecked: boolean;
|
|
5
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
6
|
+
}
|
|
7
|
+
export interface IThyRadioGroupComponent {
|
|
8
|
+
addRadio(radio: IThyRadioComponent): void;
|
|
9
|
+
updateValue(value: string, emit: boolean): void;
|
|
10
|
+
setGroup(): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const THY_RADIO_GROUP_COMPONENT: InjectionToken<IThyRadioGroupComponent>;
|
package/resizable/interface.d.ts
CHANGED
|
@@ -5,3 +5,8 @@ export interface ThyResizeEvent {
|
|
|
5
5
|
col?: number;
|
|
6
6
|
mouseEvent?: MouseEvent | TouchEvent;
|
|
7
7
|
}
|
|
8
|
+
export declare class ThyResizeHandleMouseDownEvent {
|
|
9
|
+
direction: ThyResizeDirection;
|
|
10
|
+
mouseEvent: MouseEvent | TouchEvent;
|
|
11
|
+
constructor(direction: ThyResizeDirection, mouseEvent: MouseEvent | TouchEvent);
|
|
12
|
+
}
|
|
@@ -96,25 +96,13 @@ export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
|
|
|
96
96
|
static ngAcceptInputType_thyGridColumnCount: unknown;
|
|
97
97
|
static ngAcceptInputType_thyMaxColumn: unknown;
|
|
98
98
|
static ngAcceptInputType_thyMinColumn: unknown;
|
|
99
|
-
static ngAcceptInputType_thyLockAspectRatio: boolean
|
|
100
|
-
/**
|
|
99
|
+
static ngAcceptInputType_thyLockAspectRatio: boolean /**
|
|
101
100
|
* 栅格最大列数
|
|
102
|
-
*/
|
|
103
|
-
|
|
101
|
+
*/ | string | number;
|
|
102
|
+
static ngAcceptInputType_thyPreview: boolean /**
|
|
104
103
|
* 栅格最大列数
|
|
105
|
-
*/ number;
|
|
106
|
-
static
|
|
107
|
-
/**
|
|
108
|
-
* 栅格最大列数
|
|
109
|
-
*/
|
|
110
|
-
| /**
|
|
111
|
-
* 栅格最大列数
|
|
112
|
-
*/ number;
|
|
113
|
-
static ngAcceptInputType_thyDisabled: boolean | string
|
|
114
|
-
/**
|
|
115
|
-
* 栅格最大列数
|
|
116
|
-
*/
|
|
117
|
-
| /**
|
|
104
|
+
*/ | string | number;
|
|
105
|
+
static ngAcceptInputType_thyDisabled: boolean /**
|
|
118
106
|
* 栅格最大列数
|
|
119
|
-
*/ number;
|
|
107
|
+
*/ | string | number;
|
|
120
108
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { ThyResizeHandleMouseDownEvent } from './
|
|
3
|
+
import { ThyResizeHandleMouseDownEvent } from './interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ThyResizeDirection } from './interface';
|
|
2
|
+
import { ThyResizeDirection, ThyResizeHandleMouseDownEvent } from './interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ThyResizeHandleMouseDownEvent {
|
|
5
|
-
direction: ThyResizeDirection;
|
|
6
|
-
mouseEvent: MouseEvent | TouchEvent;
|
|
7
|
-
constructor(direction: ThyResizeDirection, mouseEvent: MouseEvent | TouchEvent);
|
|
8
|
-
}
|
|
9
4
|
/**
|
|
10
5
|
* 定义调整手柄及方向
|
|
11
6
|
* @name thy-resize-handle
|
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "19.0.
|
|
1
|
+
export declare const VERSION = "19.0.6";
|
package/schematics/version.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { IThySegmentItemComponent } from './segment.token';
|
|
2
3
|
import { SafeAny } from 'ngx-tethys/types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* 分段控制器的选项组件
|
|
6
7
|
* @name thy-segment-item,[thy-segment-item]
|
|
7
8
|
*/
|
|
8
|
-
export declare class ThySegmentItem implements AfterViewInit, OnDestroy {
|
|
9
|
+
export declare class ThySegmentItem implements IThySegmentItemComponent, AfterViewInit, OnDestroy {
|
|
9
10
|
elementRef: ElementRef<any>;
|
|
10
11
|
private ngZone;
|
|
11
12
|
private cdr;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { SafeAny } from 'ngx-tethys/types';
|
|
3
|
+
export interface IThySegmentItemComponent {
|
|
4
|
+
elementRef: ElementRef<HTMLElement>;
|
|
5
|
+
thyValue: SafeAny;
|
|
6
|
+
unselect: () => void;
|
|
7
|
+
select: () => void;
|
|
8
|
+
}
|
|
3
9
|
export interface IThySegmentComponent {
|
|
4
10
|
thyMode: string;
|
|
5
11
|
thyDisabled: boolean;
|
|
6
|
-
selectedItem:
|
|
7
|
-
changeSelectedItem: (item:
|
|
12
|
+
selectedItem: IThySegmentItemComponent;
|
|
13
|
+
changeSelectedItem: (item: IThySegmentItemComponent, event?: Event) => void;
|
|
8
14
|
}
|
|
9
15
|
export declare const THY_SEGMENTED_COMPONENT: InjectionToken<IThySegmentComponent>;
|
package/shared/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
3
|
-
import {
|
|
3
|
+
import { IThyOptionComponent } from '../option.token';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type ThyListLayout = 'list' | 'grid';
|
|
6
5
|
/**
|
|
7
6
|
* @private
|
|
8
7
|
* @order 30
|
|
9
8
|
*/
|
|
10
|
-
export declare class ThyListOption implements Highlightable {
|
|
9
|
+
export declare class ThyListOption implements IThyOptionComponent, Highlightable {
|
|
11
10
|
element: ElementRef<HTMLElement>;
|
|
12
11
|
private changeDetector;
|
|
13
|
-
parentSelectionList: IThyListOptionParentComponent;
|
|
12
|
+
parentSelectionList: import("../option.token").IThyListOptionParentComponent;
|
|
14
13
|
get _isListOption(): boolean;
|
|
15
14
|
get _parentLayout(): boolean;
|
|
16
15
|
_role: string;
|
|
@@ -32,5 +31,11 @@ export declare class ThyListOption implements Highlightable {
|
|
|
32
31
|
getLabel(): string;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyListOption, never>;
|
|
34
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyListOption, "thy-list-option,[thy-list-option]", never, { "id": { "alias": "id"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
35
|
-
static ngAcceptInputType_thyDisabled: boolean
|
|
34
|
+
static ngAcceptInputType_thyDisabled: boolean
|
|
35
|
+
/** Allows for programmatic focusing of the option. */
|
|
36
|
+
| // }
|
|
37
|
+
/** Allows for programmatic focusing of the option. */
|
|
38
|
+
string
|
|
39
|
+
/** Allows for programmatic focusing of the option. */
|
|
40
|
+
| /** Allows for programmatic focusing of the option. */ number;
|
|
36
41
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TemplateRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
3
3
|
import { SelectOptionBase } from './select-option-base';
|
|
4
|
-
import { IThyOptionParentComponent } from './option.token';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class ThyOptionSelectionChangeEvent {
|
|
7
6
|
option: ThyOption;
|
|
@@ -17,8 +16,7 @@ export declare class ThyOptionVisibleChangeEvent {
|
|
|
17
16
|
*/
|
|
18
17
|
export declare class ThyOption extends SelectOptionBase implements OnDestroy, Highlightable {
|
|
19
18
|
element: ElementRef<HTMLElement>;
|
|
20
|
-
parent: IThyOptionParentComponent;
|
|
21
|
-
group: import("ngx-tethys/shared").ThySelectOptionGroup;
|
|
19
|
+
parent: import("./option.token").IThyOptionParentComponent;
|
|
22
20
|
private cdr;
|
|
23
21
|
private _selected;
|
|
24
22
|
private _hidden;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ThyListLayout, ThyListOption } from './list-option/list-option.component';
|
|
1
|
+
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { ThyListLayout } from '../shared.type';
|
|
4
3
|
export interface IThyOptionParentComponent {
|
|
5
4
|
isMultiple: boolean;
|
|
6
5
|
}
|
|
7
6
|
export interface IThyOptionGroupComponent {
|
|
8
7
|
hidden: boolean;
|
|
9
8
|
}
|
|
9
|
+
export interface IThyOptionComponent {
|
|
10
|
+
thyValue: any;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
element: ElementRef<HTMLElement>;
|
|
13
|
+
}
|
|
10
14
|
export interface IThyListOptionParentComponent {
|
|
11
15
|
multiple?: boolean;
|
|
12
16
|
layout?: ThyListLayout;
|
|
13
|
-
toggleOption(option:
|
|
14
|
-
setActiveOption(option:
|
|
15
|
-
scrollIntoView(option:
|
|
16
|
-
isSelected(option:
|
|
17
|
+
toggleOption(option: IThyOptionComponent, event?: Event): void;
|
|
18
|
+
setActiveOption(option: IThyOptionComponent, event?: Event): void;
|
|
19
|
+
scrollIntoView(option: IThyOptionComponent): void;
|
|
20
|
+
isSelected(option: IThyOptionComponent): boolean;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Injection token used to provide the parent component to options.
|
|
20
24
|
*/
|
|
21
25
|
export declare const THY_OPTION_PARENT_COMPONENT: InjectionToken<IThyOptionParentComponent>;
|
|
22
|
-
/**
|
|
23
|
-
* Injection token used to provide the parent component to options.
|
|
24
|
-
*/
|
|
25
|
-
export declare const THY_OPTION_GROUP_COMPONENT: InjectionToken<ThySelectOptionGroup>;
|
|
26
26
|
/**
|
|
27
27
|
* Injection token used to provide the parent component to options.
|
|
28
28
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ThyListLayout = 'list' | 'grid';
|
package/table/index.d.ts
CHANGED
package/table/styles/table.scss
CHANGED
|
@@ -345,12 +345,20 @@
|
|
|
345
345
|
|
|
346
346
|
&-fixed-header {
|
|
347
347
|
thead {
|
|
348
|
-
border: 1px solid variables.$gray-200;
|
|
349
348
|
background-color: variables.$bg-default;
|
|
350
349
|
position: sticky;
|
|
351
350
|
left: 0;
|
|
352
351
|
top: 0;
|
|
353
352
|
z-index: variables.$z-index-6;
|
|
353
|
+
&::after {
|
|
354
|
+
content: '';
|
|
355
|
+
position: absolute;
|
|
356
|
+
left: 0;
|
|
357
|
+
right: 0;
|
|
358
|
+
bottom: 0;
|
|
359
|
+
height: 1px;
|
|
360
|
+
background: variables.$gray-200;
|
|
361
|
+
}
|
|
354
362
|
th {
|
|
355
363
|
border-bottom: 0;
|
|
356
364
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { ThyTableSkeletonColumn } from './table.interface';
|
|
3
3
|
import { ThyTableColumnSkeletonType } from './enums';
|
|
4
|
-
import { ThyTableSize, ThyTableTheme } from './table.
|
|
4
|
+
import { ThyTableSize, ThyTableTheme } from './table.type';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* 表格的骨架屏组件
|
|
@@ -87,6 +87,14 @@ export declare class ThyTableSkeleton implements AfterViewInit {
|
|
|
87
87
|
ngAfterViewInit(): void;
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTableSkeleton, never>;
|
|
89
89
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableSkeleton, "thy-table-skeleton", never, { "thyBorderRadius": { "alias": "thyBorderRadius"; "required": false; }; "thyRowHeight": { "alias": "thyRowHeight"; "required": false; }; "thyAnimated": { "alias": "thyAnimated"; "required": false; }; "thyAnimatedInterval": { "alias": "thyAnimatedInterval"; "required": false; }; "thyPrimaryColor": { "alias": "thyPrimaryColor"; "required": false; }; "thySecondaryColor": { "alias": "thySecondaryColor"; "required": false; }; "thyRowCount": { "alias": "thyRowCount"; "required": false; }; "thyHeadless": { "alias": "thyHeadless"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyColumns": { "alias": "thyColumns"; "required": false; }; }, {}, never, never, true, never>;
|
|
90
|
-
static ngAcceptInputType_thyAnimated: boolean |
|
|
91
|
-
|
|
90
|
+
static ngAcceptInputType_thyAnimated: boolean |
|
|
91
|
+
/**
|
|
92
|
+
* 行数
|
|
93
|
+
*/
|
|
94
|
+
string | number;
|
|
95
|
+
static ngAcceptInputType_thyHeadless: boolean |
|
|
96
|
+
/**
|
|
97
|
+
* 行数
|
|
98
|
+
*/
|
|
99
|
+
string | number;
|
|
92
100
|
}
|
|
@@ -4,10 +4,8 @@ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit,
|
|
|
4
4
|
import { IThyTableColumnParentComponent, ThyTableColumnComponent } from './table-column.component';
|
|
5
5
|
import { PageChangedEvent, ThyMultiSelectEvent, ThyPage, ThyRadioSelectEvent, ThySwitchEvent, ThyTableSkeletonColumn, ThyTableDraggableEvent, ThyTableEmptyOptions, ThyTableEvent, ThyTableRowEvent, ThyTableSortEvent } from './table.interface';
|
|
6
6
|
import { ThyTableColumnSkeletonType } from './enums';
|
|
7
|
+
import { ThyTableTheme, ThyTableMode, ThyTableSize } from './table.type';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export type ThyTableTheme = 'default' | 'bordered' | 'boxed';
|
|
9
|
-
export type ThyTableMode = 'list' | 'group' | 'tree';
|
|
10
|
-
export type ThyTableSize = 'md' | 'sm' | 'xs' | 'lg' | 'xlg' | 'default';
|
|
11
9
|
export declare enum ThyFixedDirection {
|
|
12
10
|
left = "left",
|
|
13
11
|
right = "right"
|
package/timeline/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnChanges, TemplateRef, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { SafeAny } from 'ngx-tethys/types';
|
|
3
|
-
import { ThyTimeMode } from './timeline.
|
|
3
|
+
import { ThyTimeMode } from './timeline.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type thyColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryList, AfterContentInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ThyTimelineItem } from './timeline-item.component';
|
|
3
|
+
import { ThyTimeMode } from './timeline.type';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type ThyTimeMode = 'left' | 'right' | 'center';
|
|
5
5
|
export declare enum ThyTimeModes {
|
|
6
6
|
left = "left",
|
|
7
7
|
right = "right",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ThyTimeMode = 'left' | 'right' | 'center';
|
package/tree/index.d.ts
CHANGED
package/tree/tree-abstract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ThyTreeNode } from './tree
|
|
2
|
+
import { ThyTreeNode } from './tree.class';
|
|
3
3
|
import { ThyTreeBeforeDragDropContext, ThyTreeBeforeDragStartContext, ThyTreeDragDropEvent, ThyTreeIcons } from './tree.class';
|
|
4
4
|
export interface ThyTreeAbstractComponent {
|
|
5
5
|
thyMultiple: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ThyTreeNode } from './tree-node.class';
|
|
2
|
+
import { ThyTreeNode } from './tree.class';
|
|
4
3
|
import { ThyTreeEmitEvent, ThyTreeNodeCheckState, ThyClickBehavior } from './tree.class';
|
|
5
4
|
import { ThyTreeService } from './tree.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -10,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
10
9
|
* @name thy-tree-node
|
|
11
10
|
*/
|
|
12
11
|
export declare class ThyTreeNodeComponent implements OnDestroy, OnInit, OnChanges {
|
|
13
|
-
root: ThyTreeAbstractComponent;
|
|
12
|
+
root: import("./tree-abstract").ThyTreeAbstractComponent;
|
|
14
13
|
thyTreeService: ThyTreeService;
|
|
15
14
|
/**
|
|
16
15
|
* node 节点展现所需的数据
|
|
@@ -98,11 +97,21 @@ export declare class ThyTreeNodeComponent implements OnDestroy, OnInit, OnChange
|
|
|
98
97
|
ngOnDestroy(): void;
|
|
99
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTreeNodeComponent, never>;
|
|
100
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTreeNodeComponent, "thy-tree-node", never, { "node": { "alias": "node"; "required": false; }; "thyAsync": { "alias": "thyAsync"; "required": false; }; "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyDraggable": { "alias": "thyDraggable"; "required": false; }; "thyCheckable": { "alias": "thyCheckable"; "required": false; }; "thyClickBehavior": { "alias": "thyClickBehavior"; "required": false; }; "thyTitleTruncate": { "alias": "thyTitleTruncate"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "emptyChildrenTemplateRef": { "alias": "emptyChildrenTemplateRef"; "required": false; }; "thyItemSize": { "alias": "thyItemSize"; "required": false; }; "thyIndent": { "alias": "thyIndent"; "required": false; }; }, { "thyOnClick": "thyOnClick"; "thyDblClick": "thyDblClick"; "thyOnExpandChange": "thyOnExpandChange"; "thyOnCheckboxChange": "thyOnCheckboxChange"; }, ["childrenTreeTemplateRef"], never, true, never>;
|
|
101
|
-
static ngAcceptInputType_thyAsync:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
static
|
|
105
|
-
|
|
100
|
+
static ngAcceptInputType_thyAsync: /**
|
|
101
|
+
* 设置 TreeNode 的渲染模板
|
|
102
|
+
*/ boolean | string | number;
|
|
103
|
+
static ngAcceptInputType_thyMultiple: /**
|
|
104
|
+
* 设置 TreeNode 的渲染模板
|
|
105
|
+
*/ boolean | string | number;
|
|
106
|
+
static ngAcceptInputType_thyDraggable: /**
|
|
107
|
+
* 设置 TreeNode 的渲染模板
|
|
108
|
+
*/ boolean | string | number;
|
|
109
|
+
static ngAcceptInputType_thyCheckable: /**
|
|
110
|
+
* 设置 TreeNode 的渲染模板
|
|
111
|
+
*/ boolean | string | number;
|
|
112
|
+
static ngAcceptInputType_thyTitleTruncate: /**
|
|
113
|
+
* 设置 TreeNode 的渲染模板
|
|
114
|
+
*/ boolean | string | number;
|
|
106
115
|
static ngAcceptInputType_thyItemSize: unknown;
|
|
107
116
|
static ngAcceptInputType_thyIndent: unknown;
|
|
108
117
|
}
|