@tetacom/ng-components 1.7.4 → 1.7.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/package.json
CHANGED
package/style/hint.scss
CHANGED
|
@@ -1885,10 +1885,13 @@ declare class TableService<T> {
|
|
|
1885
1885
|
declare abstract class CellComponentBase<T> implements OnInit, OnDestroy {
|
|
1886
1886
|
protected svc: TableService<T>;
|
|
1887
1887
|
protected cdr: ChangeDetectorRef;
|
|
1888
|
+
private transloco;
|
|
1889
|
+
private hint;
|
|
1888
1890
|
private _formGroup;
|
|
1889
1891
|
readonly cellClass = true;
|
|
1890
1892
|
get cellInvalid(): boolean;
|
|
1891
1893
|
get control(): FormControl;
|
|
1894
|
+
get validationHint(): string | null;
|
|
1892
1895
|
protected _column: TableColumn;
|
|
1893
1896
|
set column(column: TableColumn);
|
|
1894
1897
|
get column(): TableColumn;
|
|
@@ -1911,6 +1914,10 @@ declare abstract class CellComponentBase<T> implements OnInit, OnDestroy {
|
|
|
1911
1914
|
private setupControl;
|
|
1912
1915
|
private start;
|
|
1913
1916
|
private stop;
|
|
1917
|
+
private setupValidationHint;
|
|
1918
|
+
private updateValidationHint;
|
|
1919
|
+
private getValidationHint;
|
|
1920
|
+
private translate;
|
|
1914
1921
|
static ɵfac: i0.ɵɵFactoryDeclaration<CellComponentBase<any>, never>;
|
|
1915
1922
|
static ɵcmp: i0.ɵɵComponentDeclaration<CellComponentBase<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
1916
1923
|
}
|
|
@@ -2255,6 +2262,7 @@ declare class SelectComponent implements ControlValueAccessor {
|
|
|
2255
2262
|
registerOnTouched(fn: () => void): void;
|
|
2256
2263
|
setDisabledState?(isDisabled: boolean): void;
|
|
2257
2264
|
private getSelectedValue;
|
|
2265
|
+
trackOption(item: any, index: number): any;
|
|
2258
2266
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
2259
2267
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "teta-select", never, { "multiple": { "alias": "multiple"; "required": false; }; "options": { "alias": "options"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseIgnore": { "alias": "autoCloseIgnore"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "valueRef": { "alias": "valueRef"; "required": false; }; "textRef": { "alias": "textRef"; "required": false; }; "searchRef": { "alias": "searchRef"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, ["optionDirective", "valueDirective"], never, true, never>;
|
|
2260
2268
|
}
|
|
@@ -2546,6 +2554,58 @@ declare class CellHostComponent<T> implements OnInit, OnChanges {
|
|
|
2546
2554
|
static ɵcmp: i0.ɵɵComponentDeclaration<CellHostComponent<any>, "teta-cell-host", never, { "column": { "alias": "column"; "required": false; }; "row": { "alias": "row"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; }, {}, never, never, true, never>;
|
|
2547
2555
|
}
|
|
2548
2556
|
|
|
2557
|
+
declare abstract class DynamicContentBaseDirective implements OnDestroy {
|
|
2558
|
+
protected _document: Document;
|
|
2559
|
+
protected _elementRef: ElementRef<any>;
|
|
2560
|
+
protected _service: DynamicComponentService;
|
|
2561
|
+
protected _injector: Injector;
|
|
2562
|
+
protected _zone: NgZone;
|
|
2563
|
+
protected _cdr: ChangeDetectorRef;
|
|
2564
|
+
data: any;
|
|
2565
|
+
className?: string | string[];
|
|
2566
|
+
align: Align;
|
|
2567
|
+
verticalAlign: VerticalAlign;
|
|
2568
|
+
appendToBody: boolean;
|
|
2569
|
+
set open(open: boolean);
|
|
2570
|
+
openChange: EventEmitter<boolean>;
|
|
2571
|
+
protected _alive: boolean;
|
|
2572
|
+
protected _componentRef?: ComponentRef<any> | null;
|
|
2573
|
+
protected _content?: TetaContentRef;
|
|
2574
|
+
protected _open: boolean;
|
|
2575
|
+
protected abstract get _dynamicContent(): string | TemplateRef<any> | Type<any> | null | undefined;
|
|
2576
|
+
protected constructor();
|
|
2577
|
+
ngOnDestroy(): void;
|
|
2578
|
+
protected createContentRef<T>(className?: string | string[]): ComponentRef<T>;
|
|
2579
|
+
protected destroyContentRef(): void;
|
|
2580
|
+
protected abstract setPosition(): void;
|
|
2581
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentBaseDirective, never>;
|
|
2582
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicContentBaseDirective, never, never, { "data": { "alias": "data"; "required": false; }; "className": { "alias": "className"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
declare class HintDirective extends DynamicContentBaseDirective implements OnDestroy {
|
|
2586
|
+
/**
|
|
2587
|
+
* Строка, шаблон или компонент для создания контекстного меню
|
|
2588
|
+
*/
|
|
2589
|
+
tetaHint?: string | TemplateRef<any> | Type<any>;
|
|
2590
|
+
align: Align;
|
|
2591
|
+
verticalAlign: VerticalAlign;
|
|
2592
|
+
delay: number;
|
|
2593
|
+
viewType: viewType;
|
|
2594
|
+
overflownOnly: boolean;
|
|
2595
|
+
get _dynamicContent(): string | Type<any> | TemplateRef<any>;
|
|
2596
|
+
private _timeout?;
|
|
2597
|
+
private _componentRect;
|
|
2598
|
+
constructor();
|
|
2599
|
+
mouseenter(): void;
|
|
2600
|
+
mouseleave(): void;
|
|
2601
|
+
click(event: MouseEvent): void;
|
|
2602
|
+
protected setPosition(): void;
|
|
2603
|
+
private createHint;
|
|
2604
|
+
ngOnDestroy(): void;
|
|
2605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HintDirective, never>;
|
|
2606
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HintDirective, "[tetaHint]", never, { "tetaHint": { "alias": "tetaHint"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "overflownOnly": { "alias": "overflownOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2549
2609
|
declare class DateCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2550
2610
|
input: DatePickerComponent;
|
|
2551
2611
|
open: i0.WritableSignal<boolean>;
|
|
@@ -2553,7 +2613,7 @@ declare class DateCellComponent<T> extends CellComponentBase<T> implements OnIni
|
|
|
2553
2613
|
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2554
2614
|
stopEdit(): void;
|
|
2555
2615
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateCellComponent<any>, never>;
|
|
2556
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateCellComponent<any>, "teta-date-cell", never, {}, {}, never, never, true,
|
|
2616
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCellComponent<any>, "teta-date-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2557
2617
|
}
|
|
2558
2618
|
|
|
2559
2619
|
declare class BooleanCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2562,7 +2622,7 @@ declare class BooleanCellComponent<T> extends CellComponentBase<T> implements On
|
|
|
2562
2622
|
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2563
2623
|
stopEdit(): void;
|
|
2564
2624
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCellComponent<any>, never>;
|
|
2565
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCellComponent<any>, "teta-boolean-cell", never, {}, {}, never, never, true,
|
|
2625
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCellComponent<any>, "teta-boolean-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2566
2626
|
}
|
|
2567
2627
|
|
|
2568
2628
|
declare class ColorCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2575,7 +2635,7 @@ declare class ColorCellComponent<T> extends CellComponentBase<T> implements OnIn
|
|
|
2575
2635
|
getHexColor(color: string): string;
|
|
2576
2636
|
ngOnInit(): void;
|
|
2577
2637
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorCellComponent<any>, never>;
|
|
2578
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorCellComponent<any>, "teta-color-cell", never, {}, {}, never, never, true,
|
|
2638
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorCellComponent<any>, "teta-color-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2579
2639
|
}
|
|
2580
2640
|
|
|
2581
2641
|
declare class DateTimeCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2585,7 +2645,7 @@ declare class DateTimeCellComponent<T> extends CellComponentBase<T> implements O
|
|
|
2585
2645
|
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2586
2646
|
stopEdit(): void;
|
|
2587
2647
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeCellComponent<any>, never>;
|
|
2588
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeCellComponent<any>, "teta-date-time-cell", never, {}, {}, never, never, true,
|
|
2648
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeCellComponent<any>, "teta-date-time-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2589
2649
|
}
|
|
2590
2650
|
|
|
2591
2651
|
declare class ListCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2598,7 +2658,7 @@ declare class ListCellComponent<T> extends CellComponentBase<T> implements OnIni
|
|
|
2598
2658
|
ngOnInit(): void;
|
|
2599
2659
|
protected getValue(value: any): string;
|
|
2600
2660
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListCellComponent<any>, never>;
|
|
2601
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListCellComponent<any>, "teta-list-cell", never, {}, {}, never, never, true,
|
|
2661
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListCellComponent<any>, "teta-list-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2602
2662
|
}
|
|
2603
2663
|
|
|
2604
2664
|
declare class NumericCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2607,7 +2667,7 @@ declare class NumericCellComponent<T> extends CellComponentBase<T> implements On
|
|
|
2607
2667
|
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2608
2668
|
stopEdit(): void;
|
|
2609
2669
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericCellComponent<any>, never>;
|
|
2610
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericCellComponent<any>, "teta-numeric-cell", never, {}, {}, never, never, true,
|
|
2670
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericCellComponent<any>, "teta-numeric-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2611
2671
|
}
|
|
2612
2672
|
|
|
2613
2673
|
declare class StringCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
@@ -2617,7 +2677,7 @@ declare class StringCellComponent<T> extends CellComponentBase<T> implements OnI
|
|
|
2617
2677
|
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2618
2678
|
stopEdit(): void;
|
|
2619
2679
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringCellComponent<any>, never>;
|
|
2620
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringCellComponent<any>, "teta-string-cell", never, {}, {}, never, never, true,
|
|
2680
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringCellComponent<any>, "teta-string-cell", never, {}, {}, never, never, true, [{ directive: typeof HintDirective; inputs: {}; outputs: {}; }]>;
|
|
2621
2681
|
}
|
|
2622
2682
|
|
|
2623
2683
|
declare abstract class HeadCellComponentBase<T> {
|
|
@@ -2951,34 +3011,6 @@ declare class ClickOutsideDirective implements OnDestroy {
|
|
|
2951
3011
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[tetaClickOutside]", never, { "rightClick": { "alias": "rightClick"; "required": false; }; "tetaClickOutside": { "alias": "tetaClickOutside"; "required": false; }; }, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
2952
3012
|
}
|
|
2953
3013
|
|
|
2954
|
-
declare abstract class DynamicContentBaseDirective implements OnDestroy {
|
|
2955
|
-
protected _document: Document;
|
|
2956
|
-
protected _elementRef: ElementRef<any>;
|
|
2957
|
-
protected _service: DynamicComponentService;
|
|
2958
|
-
protected _injector: Injector;
|
|
2959
|
-
protected _zone: NgZone;
|
|
2960
|
-
protected _cdr: ChangeDetectorRef;
|
|
2961
|
-
data: any;
|
|
2962
|
-
className?: string | string[];
|
|
2963
|
-
align: Align;
|
|
2964
|
-
verticalAlign: VerticalAlign;
|
|
2965
|
-
appendToBody: boolean;
|
|
2966
|
-
set open(open: boolean);
|
|
2967
|
-
openChange: EventEmitter<boolean>;
|
|
2968
|
-
protected _alive: boolean;
|
|
2969
|
-
protected _componentRef?: ComponentRef<any> | null;
|
|
2970
|
-
protected _content?: TetaContentRef;
|
|
2971
|
-
protected _open: boolean;
|
|
2972
|
-
protected abstract get _dynamicContent(): string | TemplateRef<any> | Type<any> | null | undefined;
|
|
2973
|
-
protected constructor();
|
|
2974
|
-
ngOnDestroy(): void;
|
|
2975
|
-
protected createContentRef<T>(className?: string | string[]): ComponentRef<T>;
|
|
2976
|
-
protected destroyContentRef(): void;
|
|
2977
|
-
protected abstract setPosition(): void;
|
|
2978
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentBaseDirective, never>;
|
|
2979
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicContentBaseDirective, never, never, { "data": { "alias": "data"; "required": false; }; "className": { "alias": "className"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
2980
|
-
}
|
|
2981
|
-
|
|
2982
3014
|
declare class ContextMenuDirective extends DynamicContentBaseDirective implements OnDestroy {
|
|
2983
3015
|
private _click;
|
|
2984
3016
|
/**
|
|
@@ -3237,30 +3269,6 @@ declare class HighlightDirective {
|
|
|
3237
3269
|
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightDirective, "[tetaHighlight]", never, { "tetaHighlight": { "alias": "tetaHighlight"; "required": false; }; }, {}, never, never, true, never>;
|
|
3238
3270
|
}
|
|
3239
3271
|
|
|
3240
|
-
declare class HintDirective extends DynamicContentBaseDirective implements OnDestroy {
|
|
3241
|
-
/**
|
|
3242
|
-
* Строка, шаблон или компонент для создания контекстного меню
|
|
3243
|
-
*/
|
|
3244
|
-
tetaHint?: string | TemplateRef<any> | Type<any>;
|
|
3245
|
-
align: Align;
|
|
3246
|
-
verticalAlign: VerticalAlign;
|
|
3247
|
-
delay: number;
|
|
3248
|
-
viewType: viewType;
|
|
3249
|
-
overflownOnly: boolean;
|
|
3250
|
-
get _dynamicContent(): string | Type<any> | TemplateRef<any>;
|
|
3251
|
-
private _timeout?;
|
|
3252
|
-
private _componentRect;
|
|
3253
|
-
constructor();
|
|
3254
|
-
mouseenter(): void;
|
|
3255
|
-
mouseleave(): void;
|
|
3256
|
-
click(event: MouseEvent): void;
|
|
3257
|
-
protected setPosition(): void;
|
|
3258
|
-
private createHint;
|
|
3259
|
-
ngOnDestroy(): void;
|
|
3260
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HintDirective, never>;
|
|
3261
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HintDirective, "[tetaHint]", never, { "tetaHint": { "alias": "tetaHint"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "overflownOnly": { "alias": "overflownOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
3272
|
declare class LoaderDirective implements OnDestroy {
|
|
3265
3273
|
private _elementRef;
|
|
3266
3274
|
private _renderer;
|