ngx-tethys 19.0.4 → 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 +21 -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/calendar/calendar-header.component.d.ts +3 -2
- 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/color-picker/color-picker.component.d.ts +15 -3
- 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/abstract-picker.component.d.ts +6 -1
- package/date-picker/base-picker.component.d.ts +1 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +4 -3
- package/date-picker/lib/popups/date-popup.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-picker/picker.util.d.ts +5 -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-action.mjs +11 -12
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +8 -9
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-alert.mjs +11 -12
- package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +26 -13
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +7 -7
- package/fesm2022/ngx-tethys-autocomplete.mjs +17 -18
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +25 -28
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +7 -7
- package/fesm2022/ngx-tethys-badge.mjs +7 -7
- package/fesm2022/ngx-tethys-breadcrumb.mjs +10 -10
- package/fesm2022/ngx-tethys-button.mjs +14 -15
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +18 -20
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +15 -17
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +28 -17
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +16 -16
- package/fesm2022/ngx-tethys-checkbox.mjs +7 -7
- package/fesm2022/ngx-tethys-collapse.mjs +97 -85
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +34 -36
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +15 -17
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +8 -9
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +21 -22
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +232 -248
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +10 -10
- package/fesm2022/ngx-tethys-dialog.mjs +22 -23
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +7 -7
- package/fesm2022/ngx-tethys-dot.mjs +8 -9
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +23 -30
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +58 -70
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +10 -10
- package/fesm2022/ngx-tethys-flexible-text.mjs +8 -8
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +47 -54
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +15 -16
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +46 -51
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +55 -61
- 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-icon.mjs +11 -12
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +32 -21
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +7 -7
- package/fesm2022/ngx-tethys-input.mjs +21 -23
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +73 -88
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +19 -22
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +7 -7
- package/fesm2022/ngx-tethys-mention.mjs +11 -12
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +30 -30
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +24 -24
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +26 -29
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +17 -17
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +15 -17
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +21 -23
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +13 -13
- package/fesm2022/ngx-tethys-property-operation.mjs +11 -11
- package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +11 -11
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +125 -115
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +10 -10
- package/fesm2022/ngx-tethys-resizable.mjs +18 -18
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +7 -7
- package/fesm2022/ngx-tethys-segment.mjs +10 -10
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +10 -10
- package/fesm2022/ngx-tethys-shared.mjs +81 -109
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +23 -24
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +36 -41
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +7 -7
- package/fesm2022/ngx-tethys-space.mjs +11 -12
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +7 -7
- package/fesm2022/ngx-tethys-stepper.mjs +22 -24
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +8 -8
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +7 -7
- package/fesm2022/ngx-tethys-table.mjs +22 -25
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +14 -15
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +12 -13
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +58 -56
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +13 -13
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +14 -15
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +10 -10
- package/fesm2022/ngx-tethys-tree-select.mjs +10 -10
- package/fesm2022/ngx-tethys-tree.mjs +17 -21
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +15 -17
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +18 -19
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs +418 -396
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +7 -7
- package/fesm2022/ngx-tethys-watermark.mjs +8 -9
- package/fesm2022/ngx-tethys-watermark.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/icon/index.d.ts +1 -1
- 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/layout/header.component.d.ts +6 -18
- 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 +2 -1
- package/popover/popover.directive.d.ts +6 -2
- 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 +9 -3
- 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-column.component.d.ts +5 -30
- 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/tag/tag.component.d.ts +2 -4
- package/time-picker/inner/inner-time-picker.component.d.ts +3 -1
- package/time-picker/inner/inner-time-picker.store.d.ts +5 -5
- package/time-picker/time-picker.utils.d.ts +5 -5
- 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/tooltip/tooltip.directive.d.ts +2 -10
- 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/util/helpers/helpers.d.ts +1 -0
- package/tree/tree-node.class.d.ts +0 -29
|
@@ -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
|
}
|
|
@@ -112,34 +112,9 @@ export declare class ThyTableColumnComponent implements OnInit {
|
|
|
112
112
|
private _generateKey;
|
|
113
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTableColumnComponent, never>;
|
|
114
114
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTableColumnComponent, "thy-table-column", never, { "model": { "alias": "thyModelKey"; "required": false; }; "title": { "alias": "thyTitle"; "required": false; }; "type": { "alias": "thyType"; "required": false; }; "thyWidth": { "alias": "thyWidth"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "className": { "alias": "thyClassName"; "required": false; }; "headerClassName": { "alias": "thyHeaderClassName"; "required": false; }; "disabled": { "alias": "thyDisabled"; "required": false; }; "selections": { "alias": "thySelections"; "required": false; }; "defaultText": { "alias": "thyDefaultText"; "required": false; }; "expand": { "alias": "thyExpand"; "required": false; }; "thySortable": { "alias": "thySortable"; "required": false; }; "sortDirection": { "alias": "thySortDirection"; "required": false; }; "fixed": { "alias": "thyFixed"; "required": false; }; "operational": { "alias": "thyOperational"; "required": false; }; "secondary": { "alias": "thySecondary"; "required": false; }; }, { "sortChange": "thySortChange"; }, ["headerTemplateRef", "cellTemplateRef", "templateRef"], ["*"], true, never>;
|
|
115
|
-
static ngAcceptInputType_disabled: boolean |
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
string | number;
|
|
121
|
-
static ngAcceptInputType_expand: boolean |
|
|
122
|
-
/**
|
|
123
|
-
* 设置自定义类型的禁用状态
|
|
124
|
-
* @type boolean
|
|
125
|
-
*/
|
|
126
|
-
string | number;
|
|
127
|
-
static ngAcceptInputType_thySortable: boolean |
|
|
128
|
-
/**
|
|
129
|
-
* 设置自定义类型的禁用状态
|
|
130
|
-
* @type boolean
|
|
131
|
-
*/
|
|
132
|
-
string | number;
|
|
133
|
-
static ngAcceptInputType_operational: boolean |
|
|
134
|
-
/**
|
|
135
|
-
* 设置自定义类型的禁用状态
|
|
136
|
-
* @type boolean
|
|
137
|
-
*/
|
|
138
|
-
string | number;
|
|
139
|
-
static ngAcceptInputType_secondary: boolean |
|
|
140
|
-
/**
|
|
141
|
-
* 设置自定义类型的禁用状态
|
|
142
|
-
* @type boolean
|
|
143
|
-
*/
|
|
144
|
-
string | number;
|
|
115
|
+
static ngAcceptInputType_disabled: boolean | string | number;
|
|
116
|
+
static ngAcceptInputType_expand: boolean | string | number;
|
|
117
|
+
static ngAcceptInputType_thySortable: boolean | string | number;
|
|
118
|
+
static ngAcceptInputType_operational: boolean | string | number;
|
|
119
|
+
static ngAcceptInputType_secondary: boolean | string | number;
|
|
145
120
|
}
|
|
@@ -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/tag/tag.component.d.ts
CHANGED
|
@@ -47,10 +47,8 @@ export declare class ThyTag implements OnInit, OnChanges {
|
|
|
47
47
|
private setColor;
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTag, never>;
|
|
49
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTag, "thy-tag,[thyTag]", never, { "thyTag": { "alias": "thyTag"; "required": false; }; "thyShape": { "alias": "thyShape"; "required": false; }; "thyColor": { "alias": "thyColor"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyHoverable": { "alias": "thyHoverable"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
50
|
-
static ngAcceptInputType_thyHoverable:
|
|
51
|
-
/**
|
|
50
|
+
static ngAcceptInputType_thyHoverable: /**
|
|
52
51
|
* 可 Hover 悬停的标签,设置为 true 时会有一个 Hover 效果
|
|
53
52
|
* @default false
|
|
54
|
-
*/
|
|
55
|
-
number;
|
|
53
|
+
*/ boolean | string | number;
|
|
56
54
|
}
|
|
@@ -43,6 +43,8 @@ export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePic
|
|
|
43
43
|
minutesPlaceholder: string;
|
|
44
44
|
/** placeholder for seconds field in timePicker */
|
|
45
45
|
secondsPlaceholder: string;
|
|
46
|
+
/** timezone */
|
|
47
|
+
timeZone: string;
|
|
46
48
|
/** emits true if value is a valid date */
|
|
47
49
|
isValid: EventEmitter<boolean>;
|
|
48
50
|
hours: string;
|
|
@@ -85,5 +87,5 @@ export declare class ThyInnerTimePicker implements ControlValueAccessor, TimePic
|
|
|
85
87
|
ngOnDestroy(): void;
|
|
86
88
|
private _renderTime;
|
|
87
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyInnerTimePicker, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyInnerTimePicker, "thy-inner-time-picker", never, { "hourStep": { "alias": "hourStep"; "required": false; }; "minuteStep": { "alias": "minuteStep"; "required": false; }; "secondsStep": { "alias": "secondsStep"; "required": false; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mousewheel": { "alias": "mousewheel"; "required": false; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; }; "showSpinners": { "alias": "showSpinners"; "required": false; }; "showMeridian": { "alias": "showMeridian"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "meridians": { "alias": "meridians"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "hoursPlaceholder": { "alias": "hoursPlaceholder"; "required": false; }; "minutesPlaceholder": { "alias": "minutesPlaceholder"; "required": false; }; "secondsPlaceholder": { "alias": "secondsPlaceholder"; "required": false; }; }, { "isValid": "isValid"; }, never, never, true, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyInnerTimePicker, "thy-inner-time-picker", never, { "hourStep": { "alias": "hourStep"; "required": false; }; "minuteStep": { "alias": "minuteStep"; "required": false; }; "secondsStep": { "alias": "secondsStep"; "required": false; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mousewheel": { "alias": "mousewheel"; "required": false; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; }; "showSpinners": { "alias": "showSpinners"; "required": false; }; "showMeridian": { "alias": "showMeridian"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "meridians": { "alias": "meridians"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "hoursPlaceholder": { "alias": "hoursPlaceholder"; "required": false; }; "minutesPlaceholder": { "alias": "minutesPlaceholder"; "required": false; }; "secondsPlaceholder": { "alias": "secondsPlaceholder"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, { "isValid": "isValid"; }, never, never, true, never>;
|
|
89
91
|
}
|
|
@@ -13,11 +13,11 @@ export declare const initialState: TimePickerState;
|
|
|
13
13
|
export declare class ThyTimePickerStore extends MiniStore<TimePickerState> {
|
|
14
14
|
constructor();
|
|
15
15
|
writeValue(value: Date): void;
|
|
16
|
-
changeHours(event: TimeChangeEvent): TimePickerState;
|
|
17
|
-
changeMinutes(event: TimeChangeEvent): TimePickerState;
|
|
18
|
-
changeSeconds(event: TimeChangeEvent): TimePickerState;
|
|
19
|
-
setTime(value: Time): TimePickerState;
|
|
20
|
-
updateControls(value: TimePickerComponentState): void;
|
|
16
|
+
changeHours(event: TimeChangeEvent, timeZone?: string): TimePickerState;
|
|
17
|
+
changeMinutes(event: TimeChangeEvent, timeZone?: string): TimePickerState;
|
|
18
|
+
changeSeconds(event: TimeChangeEvent, timeZone?: string): TimePickerState;
|
|
19
|
+
setTime(value: Time, timeZone?: string): TimePickerState;
|
|
20
|
+
updateControls(value: TimePickerComponentState, timeZone?: string): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTimePickerStore, never>;
|
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<ThyTimePickerStore>;
|
|
23
23
|
}
|
|
@@ -4,13 +4,13 @@ export declare function isValidLimit(controls: TimePickerComponentState, newDate
|
|
|
4
4
|
export declare function parseHours(value: string | number, isPM?: boolean): number;
|
|
5
5
|
export declare function parseMinutes(value: string | number): number;
|
|
6
6
|
export declare function parseSeconds(value: string | number): number;
|
|
7
|
-
export declare function parseTime(value: string | Date): Date;
|
|
8
|
-
export declare function changeTime(value: Date, diff: Time): Date;
|
|
9
|
-
export declare function setTime(value: Date, opts: Time): Date;
|
|
10
|
-
export declare function createDate(value: Date, hours: number, minutes: number, seconds: number): Date;
|
|
7
|
+
export declare function parseTime(value: string | Date, timeZone?: string): Date;
|
|
8
|
+
export declare function changeTime(value: Date, diff: Time, timeZone?: string): Date;
|
|
9
|
+
export declare function setTime(value: Date, opts: Time, timeZone?: string): Date;
|
|
10
|
+
export declare function createDate(value: Date, hours: number, minutes: number, seconds: number, timeZone?: string): Date;
|
|
11
11
|
export declare function padNumber(value: number): string;
|
|
12
12
|
export declare function isHourInputValid(hours: string, isPM: boolean): boolean;
|
|
13
13
|
export declare function isMinuteInputValid(minutes: string): boolean;
|
|
14
14
|
export declare function isSecondInputValid(seconds: string): boolean;
|
|
15
|
-
export declare function isInputLimitValid(diff: Time, max: Date, min: Date): boolean;
|
|
15
|
+
export declare function isInputLimitValid(diff: Time, max: Date, min: Date, timeZone?: string): boolean;
|
|
16
16
|
export declare function isInputValid(hours: string, minutes: string, seconds: string, isPM: boolean): boolean;
|
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';
|
|
@@ -76,15 +76,7 @@ export declare class ThyTooltipDirective extends ThyOverlayDirectiveBase impleme
|
|
|
76
76
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyTooltipDirective, "[thyTooltip],[thy-tooltip]", ["thyTooltip"], { "content": { "alias": "thyTooltip"; "required": false; }; "placement": { "alias": "thyTooltipPlacement"; "required": false; }; "thyTooltipClass": { "alias": "thyTooltipClass"; "required": false; }; "showDelay": { "alias": "thyTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "thyTooltipHideDelay"; "required": false; }; "thyTooltipTrigger": { "alias": "thyTooltipTrigger"; "required": false; }; "thyTooltipDisabled": { "alias": "thyTooltipDisabled"; "required": false; }; "data": { "alias": "thyTooltipTemplateContext"; "required": false; }; "tooltipOffset": { "alias": "thyTooltipOffset"; "required": false; }; "tooltipPin": { "alias": "thyTooltipPin"; "required": false; }; }, {}, never, never, true, never>;
|
|
77
77
|
static ngAcceptInputType_showDelay: unknown;
|
|
78
78
|
static ngAcceptInputType_hideDelay: unknown;
|
|
79
|
-
static ngAcceptInputType_thyTooltipDisabled: boolean
|
|
80
|
-
* 显示提示内容延迟毫秒
|
|
81
|
-
*/ | /**
|
|
82
|
-
* 显示提示内容延迟毫秒
|
|
83
|
-
*/ string | number;
|
|
79
|
+
static ngAcceptInputType_thyTooltipDisabled: boolean | string | number;
|
|
84
80
|
static ngAcceptInputType_tooltipOffset: unknown;
|
|
85
|
-
static ngAcceptInputType_tooltipPin: boolean
|
|
86
|
-
* 显示提示内容延迟毫秒
|
|
87
|
-
*/ | /**
|
|
88
|
-
* 显示提示内容延迟毫秒
|
|
89
|
-
*/ string | number;
|
|
81
|
+
static ngAcceptInputType_tooltipPin: boolean | string | number;
|
|
90
82
|
}
|
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
|
}
|
package/tree/tree.class.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
2
|
export declare enum ThyTreeNodeCheckState {
|
|
3
3
|
unchecked = 0,
|
|
4
4
|
checked = 1,
|
|
@@ -52,3 +52,42 @@ export declare class ThyTreeIcons {
|
|
|
52
52
|
collapse?: string;
|
|
53
53
|
}
|
|
54
54
|
export type ThyClickBehavior = 'default' | 'selectCheckbox';
|
|
55
|
+
export interface ThyTreeFormatEmitEvent {
|
|
56
|
+
eventName: string;
|
|
57
|
+
node: ThyTreeNode;
|
|
58
|
+
event?: MouseEvent | DragEvent;
|
|
59
|
+
}
|
|
60
|
+
export interface IThyTreeService {
|
|
61
|
+
statusChange$: Subject<ThyTreeFormatEmitEvent>;
|
|
62
|
+
syncFlattenTreeNodes: () => ThyTreeNode[];
|
|
63
|
+
setNodeChecked: (node: ThyTreeNode, checked: boolean, propagateUp?: boolean, propagateDown?: boolean) => void;
|
|
64
|
+
syncNodeCheckState: (node: ThyTreeNode) => void;
|
|
65
|
+
checkStateResolve: (node: ThyTreeNode) => ThyTreeNodeCheckState;
|
|
66
|
+
}
|
|
67
|
+
export declare class ThyTreeNode<T = any> {
|
|
68
|
+
key?: number | string;
|
|
69
|
+
title?: string;
|
|
70
|
+
children: ThyTreeNode[];
|
|
71
|
+
parentNode: ThyTreeNode;
|
|
72
|
+
level: number;
|
|
73
|
+
origin: ThyTreeNodeData<T>;
|
|
74
|
+
isExpanded: boolean;
|
|
75
|
+
isChecked: ThyTreeNodeCheckState;
|
|
76
|
+
isLoading: boolean;
|
|
77
|
+
isDisabled: boolean;
|
|
78
|
+
itemClass?: string[];
|
|
79
|
+
private readonly service;
|
|
80
|
+
get treeService(): IThyTreeService;
|
|
81
|
+
constructor(node: ThyTreeNodeData, parent?: ThyTreeNode, service?: IThyTreeService);
|
|
82
|
+
setKey(key: string): void;
|
|
83
|
+
setTitle(title: string): void;
|
|
84
|
+
setLevel(level: number): void;
|
|
85
|
+
private _setExpanded;
|
|
86
|
+
setExpanded(expanded: boolean, propagate?: boolean): void;
|
|
87
|
+
setLoading(loading: boolean): void;
|
|
88
|
+
setChecked(checked: boolean, propagateUp?: boolean, propagateDown?: boolean): void;
|
|
89
|
+
syncNodeCheckState(): void;
|
|
90
|
+
getParentNode(): ThyTreeNode;
|
|
91
|
+
getChildren(): ThyTreeNode[];
|
|
92
|
+
addChildren(children: ThyTreeNodeData | ThyTreeNodeData[], index?: number): void;
|
|
93
|
+
}
|
package/tree/tree.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
2
2
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
3
3
|
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { ThyTreeNode } from './tree
|
|
5
|
+
import { ThyTreeNode } from './tree.class';
|
|
6
6
|
import { ThyTreeBeforeDragDropContext, ThyTreeBeforeDragStartContext, ThyClickBehavior, ThyTreeDragDropEvent, ThyTreeEmitEvent, ThyTreeIcons, ThyTreeNodeCheckState, ThyTreeNodeData } from './tree.class';
|
|
7
7
|
import { ThyTreeService } from './tree.service';
|
|
8
8
|
import { CdkDrag, CdkDragDrop, CdkDragEnd, CdkDragMove, CdkDragStart } from '@angular/cdk/drag-drop';
|
package/tree/tree.pipe.d.ts
CHANGED
package/tree/tree.service.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { ThyTreeNode } from './tree
|
|
4
|
-
import { ThyTreeNodeCheckState, ThyTreeNodeData } from './tree.class';
|
|
3
|
+
import { ThyTreeNodeCheckState, ThyTreeNodeData, ThyTreeNode, IThyTreeService, ThyTreeFormatEmitEvent } from './tree.class';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export interface ThyTreeFormatEmitEvent {
|
|
7
|
-
eventName: string;
|
|
8
|
-
node: ThyTreeNode;
|
|
9
|
-
event?: MouseEvent | DragEvent;
|
|
10
|
-
}
|
|
11
5
|
/**
|
|
12
6
|
* @internal
|
|
13
7
|
*/
|
|
14
|
-
export declare class ThyTreeService implements OnDestroy {
|
|
8
|
+
export declare class ThyTreeService implements IThyTreeService, OnDestroy {
|
|
15
9
|
selectedNode: ThyTreeNode;
|
|
16
10
|
flattenNodes$: BehaviorSubject<ThyTreeNode<any>[]>;
|
|
17
11
|
flattenTreeNodes: ThyTreeNode[];
|
|
@@ -21,7 +15,7 @@ export declare class ThyTreeService implements OnDestroy {
|
|
|
21
15
|
statusChange$: Subject<ThyTreeFormatEmitEvent>;
|
|
22
16
|
constructor();
|
|
23
17
|
initializeTreeNodes(rootNodes: ThyTreeNodeData[]): void;
|
|
24
|
-
syncFlattenTreeNodes(): ThyTreeNode
|
|
18
|
+
syncFlattenTreeNodes(): ThyTreeNode[];
|
|
25
19
|
private getParallelTreeNodes;
|
|
26
20
|
setCheckStateResolve(resolve?: (node: ThyTreeNode) => ThyTreeNodeCheckState): void;
|
|
27
21
|
resetSortedTreeNodes(treeNodes: ThyTreeNode[], parent?: ThyTreeNode): void;
|
|
@@ -51,3 +51,4 @@ export declare function shallowEqual(objA?: Record<string, any>, objB?: Record<s
|
|
|
51
51
|
export declare function concatArray<TItem>(items: TItem | TItem[], originalItems?: TItem | TItem[]): TItem[];
|
|
52
52
|
export declare function humanizeBytes(bytes: number, noSpace?: boolean, fractionDigits?: number): string;
|
|
53
53
|
export declare function isFloat(value: string): boolean;
|
|
54
|
+
export declare function hasTimeInStringDate(dateString: string): boolean;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ThyTreeNodeCheckState, ThyTreeNodeData } from './tree.class';
|
|
2
|
-
import { ThyTreeService } from './tree.service';
|
|
3
|
-
export declare class ThyTreeNode<T = any> {
|
|
4
|
-
key?: number | string;
|
|
5
|
-
title?: string;
|
|
6
|
-
children: ThyTreeNode[];
|
|
7
|
-
parentNode: ThyTreeNode;
|
|
8
|
-
level: number;
|
|
9
|
-
origin: ThyTreeNodeData<T>;
|
|
10
|
-
isExpanded: boolean;
|
|
11
|
-
isChecked: ThyTreeNodeCheckState;
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
isDisabled: boolean;
|
|
14
|
-
itemClass?: string[];
|
|
15
|
-
private readonly service;
|
|
16
|
-
get treeService(): ThyTreeService;
|
|
17
|
-
constructor(node: ThyTreeNodeData, parent?: ThyTreeNode, service?: ThyTreeService);
|
|
18
|
-
setKey(key: string): void;
|
|
19
|
-
setTitle(title: string): void;
|
|
20
|
-
setLevel(level: number): void;
|
|
21
|
-
private _setExpanded;
|
|
22
|
-
setExpanded(expanded: boolean, propagate?: boolean): void;
|
|
23
|
-
setLoading(loading: boolean): void;
|
|
24
|
-
setChecked(checked: boolean, propagateUp?: boolean, propagateDown?: boolean): void;
|
|
25
|
-
syncNodeCheckState(): void;
|
|
26
|
-
getParentNode(): ThyTreeNode;
|
|
27
|
-
getChildren(): ThyTreeNode[];
|
|
28
|
-
addChildren(children: ThyTreeNodeData | ThyTreeNodeData[], index?: number): void;
|
|
29
|
-
}
|