@tetacom/ng-components 1.0.65 → 1.0.68
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/common/util/dom-util.d.ts +1 -0
- package/component/input/input.module.d.ts +2 -1
- package/component/tabs/tabs/tabs.component.d.ts +1 -1
- package/directive/hint/hint.directive.d.ts +2 -1
- package/esm2020/common/util/dom-util.mjs +4 -1
- package/esm2020/component/input/input/input.component.mjs +4 -3
- package/esm2020/component/input/input.module.mjs +5 -4
- package/esm2020/component/input/text-field/text-field.component.mjs +1 -12
- package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +3 -3
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +1 -1
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +4 -3
- package/esm2020/component/table/head-cell/head-cell.component.mjs +3 -6
- package/esm2020/component/tabs/tabs/tabs.component.mjs +3 -3
- package/esm2020/directive/hint/hint.directive.mjs +6 -3
- package/fesm2015/tetacom-ng-components.mjs +347 -355
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +347 -355
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, HostBinding, Directive, Optional, Inject, ContentChild, Input, Host, HostListener, Injectable, NgModule, forwardRef, EventEmitter, ElementRef, Output, Pipe, ViewChild,
|
|
2
|
+
import { Component, ChangeDetectionStrategy, HostBinding, Directive, Optional, Inject, ContentChild, Input, Host, HostListener, Injectable, NgModule, forwardRef, EventEmitter, ElementRef, Output, Pipe, ViewChild, TemplateRef, Injector, ViewEncapsulation, ChangeDetectorRef, ContentChildren, SkipSelf, ViewContainerRef, PLATFORM_ID } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { DOCUMENT, CommonModule, isPlatformBrowser } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
@@ -1062,6 +1062,9 @@ class DomUtil {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
return null;
|
|
1064
1064
|
}
|
|
1065
|
+
static isOverflown(element) {
|
|
1066
|
+
return element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;
|
|
1067
|
+
}
|
|
1065
1068
|
}
|
|
1066
1069
|
|
|
1067
1070
|
class PositionUtil {
|
|
@@ -3607,6 +3610,281 @@ class NumericFilterValue {
|
|
|
3607
3610
|
}
|
|
3608
3611
|
}
|
|
3609
3612
|
|
|
3613
|
+
class TetaContentRef {
|
|
3614
|
+
constructor(nodes, viewRef, componentRef) {
|
|
3615
|
+
this.nodes = nodes;
|
|
3616
|
+
this.viewRef = viewRef;
|
|
3617
|
+
this.componentRef = componentRef;
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
class DynamicData {
|
|
3622
|
+
constructor(value) {
|
|
3623
|
+
for (const key in value) {
|
|
3624
|
+
if (value.hasOwnProperty(key)) {
|
|
3625
|
+
this[key] = value[key];
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
class DynamicComponentService {
|
|
3632
|
+
constructor(_componentFactoryResolver, _rendererFactory, _appRef) {
|
|
3633
|
+
this._componentFactoryResolver = _componentFactoryResolver;
|
|
3634
|
+
this._rendererFactory = _rendererFactory;
|
|
3635
|
+
this._appRef = _appRef;
|
|
3636
|
+
this._renderer = this._rendererFactory.createRenderer(null, null);
|
|
3637
|
+
}
|
|
3638
|
+
createComponent(component, contentRef, injector, container) {
|
|
3639
|
+
const componentRef = this._componentFactoryResolver
|
|
3640
|
+
.resolveComponentFactory(component)
|
|
3641
|
+
.create(injector, contentRef.nodes);
|
|
3642
|
+
this._appRef.attachView(componentRef.hostView);
|
|
3643
|
+
container.appendChild(componentRef.location.nativeElement);
|
|
3644
|
+
return componentRef;
|
|
3645
|
+
}
|
|
3646
|
+
createContent(content, injector, context) {
|
|
3647
|
+
if (content === null || content === undefined) {
|
|
3648
|
+
throw new Error('Content is undefined');
|
|
3649
|
+
}
|
|
3650
|
+
if (typeof content === 'string') {
|
|
3651
|
+
return this.fromString(content);
|
|
3652
|
+
}
|
|
3653
|
+
else if (content instanceof TemplateRef) {
|
|
3654
|
+
return this.fromTemplate(content, context);
|
|
3655
|
+
}
|
|
3656
|
+
else {
|
|
3657
|
+
return this.fromComponent(content, injector, context);
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
destroy(component, content, container) {
|
|
3661
|
+
if (component) {
|
|
3662
|
+
this._appRef.detachView(component.hostView);
|
|
3663
|
+
component.destroy();
|
|
3664
|
+
}
|
|
3665
|
+
if (content && content.viewRef) {
|
|
3666
|
+
content.viewRef.destroy();
|
|
3667
|
+
}
|
|
3668
|
+
content = null;
|
|
3669
|
+
}
|
|
3670
|
+
getContext(content, context) {
|
|
3671
|
+
if (content instanceof TemplateRef) {
|
|
3672
|
+
return {
|
|
3673
|
+
$implicit: context,
|
|
3674
|
+
data: context,
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
return context;
|
|
3678
|
+
}
|
|
3679
|
+
getInjector(data, parent) {
|
|
3680
|
+
return Injector.create({
|
|
3681
|
+
providers: [
|
|
3682
|
+
{
|
|
3683
|
+
provide: DynamicData,
|
|
3684
|
+
useValue: data,
|
|
3685
|
+
},
|
|
3686
|
+
],
|
|
3687
|
+
parent,
|
|
3688
|
+
});
|
|
3689
|
+
}
|
|
3690
|
+
fromString(content) {
|
|
3691
|
+
return new TetaContentRef([[this._renderer.createText(`${content}`)]]);
|
|
3692
|
+
}
|
|
3693
|
+
fromTemplate(content, context) {
|
|
3694
|
+
const viewRef = content.createEmbeddedView(context);
|
|
3695
|
+
this._appRef.attachView(viewRef);
|
|
3696
|
+
return new TetaContentRef([viewRef.rootNodes], viewRef);
|
|
3697
|
+
}
|
|
3698
|
+
fromComponent(content, injector, context) {
|
|
3699
|
+
const componentFactory = this._componentFactoryResolver.resolveComponentFactory(content);
|
|
3700
|
+
const componentRef = componentFactory.create(injector);
|
|
3701
|
+
for (const key in context) {
|
|
3702
|
+
if (context.hasOwnProperty(key)) {
|
|
3703
|
+
componentRef.instance[key] = context[key];
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
const componentNativeEl = componentRef.location.nativeElement;
|
|
3707
|
+
this._appRef.attachView(componentRef.hostView);
|
|
3708
|
+
return new TetaContentRef([[componentNativeEl]], componentRef.hostView, componentRef);
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
DynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.RendererFactory2 }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3712
|
+
DynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, providedIn: 'root' });
|
|
3713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, decorators: [{
|
|
3714
|
+
type: Injectable,
|
|
3715
|
+
args: [{
|
|
3716
|
+
providedIn: 'root',
|
|
3717
|
+
}]
|
|
3718
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.RendererFactory2 }, { type: i0.ApplicationRef }]; } });
|
|
3719
|
+
|
|
3720
|
+
class DynamicContentBaseDirective {
|
|
3721
|
+
constructor(_document, _elementRef, _service, _injector, _zone, _cdr) {
|
|
3722
|
+
this._document = _document;
|
|
3723
|
+
this._elementRef = _elementRef;
|
|
3724
|
+
this._service = _service;
|
|
3725
|
+
this._injector = _injector;
|
|
3726
|
+
this._zone = _zone;
|
|
3727
|
+
this._cdr = _cdr;
|
|
3728
|
+
this.align = Align.left;
|
|
3729
|
+
this.verticalAlign = VerticalAlign.bottom;
|
|
3730
|
+
this.openChange = new EventEmitter();
|
|
3731
|
+
this._alive = true;
|
|
3732
|
+
this._open = false;
|
|
3733
|
+
this._zone.onStable
|
|
3734
|
+
.pipe(takeWhile((_) => this._alive), filter((_) => this._open))
|
|
3735
|
+
.subscribe((_) => {
|
|
3736
|
+
this.setPosition();
|
|
3737
|
+
});
|
|
3738
|
+
}
|
|
3739
|
+
set open(open) {
|
|
3740
|
+
this._open = open;
|
|
3741
|
+
if (this._open) {
|
|
3742
|
+
this.createContentRef();
|
|
3743
|
+
}
|
|
3744
|
+
else {
|
|
3745
|
+
this.destroyContentRef();
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
ngOnDestroy() {
|
|
3749
|
+
this._alive = false;
|
|
3750
|
+
this.destroyContentRef();
|
|
3751
|
+
}
|
|
3752
|
+
ngOnInit() {
|
|
3753
|
+
}
|
|
3754
|
+
createContentRef(className) {
|
|
3755
|
+
if (!this._componentRef) {
|
|
3756
|
+
this._open = true;
|
|
3757
|
+
const injector = this._service.getInjector(this.data, this._injector);
|
|
3758
|
+
const context = this._service.getContext(this._dynamicContent, this.data);
|
|
3759
|
+
this._content = this._service.createContent(this._dynamicContent, this._injector, context);
|
|
3760
|
+
this._componentRef = this._service.createComponent(PopupContentComponent, this._content, injector, this.appendToBody ? this._document.body : this._elementRef.nativeElement);
|
|
3761
|
+
if (className) {
|
|
3762
|
+
this._componentRef.instance.addClass(className);
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
return this._componentRef;
|
|
3766
|
+
}
|
|
3767
|
+
destroyContentRef() {
|
|
3768
|
+
this._open = false;
|
|
3769
|
+
this._service.destroy(this._componentRef, this._content, this.appendToBody ? this._document.body : this._elementRef.nativeElement);
|
|
3770
|
+
this._componentRef = null;
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
DynamicContentBaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicContentBaseDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
3774
|
+
DynamicContentBaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: DynamicContentBaseDirective, inputs: { data: "data", className: "className", align: "align", verticalAlign: "verticalAlign", appendToBody: "appendToBody", open: "open" }, outputs: { openChange: "openChange" }, ngImport: i0 });
|
|
3775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicContentBaseDirective, decorators: [{
|
|
3776
|
+
type: Directive
|
|
3777
|
+
}], ctorParameters: function () { return [{ type: undefined }, { type: i0.ElementRef }, { type: DynamicComponentService }, { type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
3778
|
+
type: Input
|
|
3779
|
+
}], className: [{
|
|
3780
|
+
type: Input
|
|
3781
|
+
}], align: [{
|
|
3782
|
+
type: Input
|
|
3783
|
+
}], verticalAlign: [{
|
|
3784
|
+
type: Input
|
|
3785
|
+
}], appendToBody: [{
|
|
3786
|
+
type: Input
|
|
3787
|
+
}], open: [{
|
|
3788
|
+
type: Input
|
|
3789
|
+
}], openChange: [{
|
|
3790
|
+
type: Output
|
|
3791
|
+
}] } });
|
|
3792
|
+
|
|
3793
|
+
class HintDirective extends DynamicContentBaseDirective {
|
|
3794
|
+
constructor(_document, _elementRef, _service, _injector, _zone, _cdr) {
|
|
3795
|
+
super(_document, _elementRef, _service, _injector, _zone, _cdr);
|
|
3796
|
+
this._document = _document;
|
|
3797
|
+
this._elementRef = _elementRef;
|
|
3798
|
+
this._service = _service;
|
|
3799
|
+
this._injector = _injector;
|
|
3800
|
+
this._zone = _zone;
|
|
3801
|
+
this._cdr = _cdr;
|
|
3802
|
+
this.align = Align.center;
|
|
3803
|
+
this.verticalAlign = VerticalAlign.top;
|
|
3804
|
+
this.delay = 300;
|
|
3805
|
+
this.overflownOnly = false;
|
|
3806
|
+
}
|
|
3807
|
+
get _dynamicContent() {
|
|
3808
|
+
return this.tetaHint;
|
|
3809
|
+
}
|
|
3810
|
+
mouseenter() {
|
|
3811
|
+
clearTimeout(this._timeout);
|
|
3812
|
+
this._timeout = setTimeout(() => {
|
|
3813
|
+
this.createHint();
|
|
3814
|
+
}, this.delay);
|
|
3815
|
+
}
|
|
3816
|
+
mouseleave() {
|
|
3817
|
+
clearTimeout(this._timeout);
|
|
3818
|
+
if (this._open && this._componentRef) {
|
|
3819
|
+
this._timeout = setTimeout(() => {
|
|
3820
|
+
this.destroyContentRef();
|
|
3821
|
+
}, this.delay);
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
click(event) {
|
|
3825
|
+
if (this._open &&
|
|
3826
|
+
this._componentRef &&
|
|
3827
|
+
DomUtil.clickedInside(this._componentRef.location.nativeElement, event)) {
|
|
3828
|
+
event.stopPropagation();
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
setPosition() {
|
|
3832
|
+
if (this._componentRef && this._open) {
|
|
3833
|
+
if (!this._componentRect) {
|
|
3834
|
+
this._componentRect =
|
|
3835
|
+
this._componentRef.location.nativeElement.getBoundingClientRect();
|
|
3836
|
+
}
|
|
3837
|
+
const position = PositionUtil.getPosition(this._elementRef.nativeElement.getBoundingClientRect(), this._componentRect, this.align, this.verticalAlign, 0, 4);
|
|
3838
|
+
PositionUtil.setElementPosition(this._componentRef.location.nativeElement, position);
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
createHint() {
|
|
3842
|
+
if (!this._dynamicContent || (this.overflownOnly && !DomUtil.isOverflown(this._elementRef.nativeElement))) {
|
|
3843
|
+
return;
|
|
3844
|
+
}
|
|
3845
|
+
this._componentRef = this.createContentRef();
|
|
3846
|
+
this._componentRef.instance.className = [
|
|
3847
|
+
...ArrayUtil.asArray(this.className),
|
|
3848
|
+
'hint',
|
|
3849
|
+
];
|
|
3850
|
+
}
|
|
3851
|
+
ngOnDestroy() {
|
|
3852
|
+
super.ngOnDestroy();
|
|
3853
|
+
}
|
|
3854
|
+
}
|
|
3855
|
+
HintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintDirective, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: DynamicComponentService }, { token: i0.Injector }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3856
|
+
HintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: HintDirective, selector: "[tetaHint]", inputs: { tetaHint: "tetaHint", align: "align", verticalAlign: "verticalAlign", delay: "delay", overflownOnly: "overflownOnly" }, host: { listeners: { "mouseenter": "mouseenter($event)", "mouseleave": "mouseleave($event)", "click": "click($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
3857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintDirective, decorators: [{
|
|
3858
|
+
type: Directive,
|
|
3859
|
+
args: [{
|
|
3860
|
+
selector: '[tetaHint]',
|
|
3861
|
+
}]
|
|
3862
|
+
}], ctorParameters: function () {
|
|
3863
|
+
return [{ type: undefined, decorators: [{
|
|
3864
|
+
type: Inject,
|
|
3865
|
+
args: [DOCUMENT]
|
|
3866
|
+
}] }, { type: i0.ElementRef }, { type: DynamicComponentService }, { type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
|
|
3867
|
+
}, propDecorators: { tetaHint: [{
|
|
3868
|
+
type: Input
|
|
3869
|
+
}], align: [{
|
|
3870
|
+
type: Input
|
|
3871
|
+
}], verticalAlign: [{
|
|
3872
|
+
type: Input
|
|
3873
|
+
}], delay: [{
|
|
3874
|
+
type: Input
|
|
3875
|
+
}], overflownOnly: [{
|
|
3876
|
+
type: Input
|
|
3877
|
+
}], mouseenter: [{
|
|
3878
|
+
type: HostListener,
|
|
3879
|
+
args: ['mouseenter', ['$event']]
|
|
3880
|
+
}], mouseleave: [{
|
|
3881
|
+
type: HostListener,
|
|
3882
|
+
args: ['mouseleave', ['$event']]
|
|
3883
|
+
}], click: [{
|
|
3884
|
+
type: HostListener,
|
|
3885
|
+
args: ['click', ['$event']]
|
|
3886
|
+
}] } });
|
|
3887
|
+
|
|
3610
3888
|
class InputComponent {
|
|
3611
3889
|
constructor() {
|
|
3612
3890
|
this.required = false;
|
|
@@ -3617,10 +3895,10 @@ class InputComponent {
|
|
|
3617
3895
|
ngOnInit() { }
|
|
3618
3896
|
}
|
|
3619
3897
|
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3620
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: InputComponent, selector: "teta-input", inputs: { label: "label", horizontal: "horizontal", required: "required" }, host: { properties: { "class.row": "this.horizontal", "class.column": "this.column" } }, ngImport: i0, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n {{label}}\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3898
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: InputComponent, selector: "teta-input", inputs: { label: "label", horizontal: "horizontal", required: "required" }, host: { properties: { "class.row": "this.horizontal", "class.column": "this.column" } }, ngImport: i0, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"label\"\n [overflownOnly]=\"true\">\n {{label}}\n </span>\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3621
3899
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputComponent, decorators: [{
|
|
3622
3900
|
type: Component,
|
|
3623
|
-
args: [{ selector: 'teta-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n {{label}}\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"] }]
|
|
3901
|
+
args: [{ selector: 'teta-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"font-caption color-text-90 align-center row nowrap overflow-hidden text-overflow-ellipsis\"\n [class.row_6]=\"horizontal\"\n [class.text-field_required]=\"required\"\n *ngIf=\"label?.length > 0\">\n <span class=\"overflow-hidden text-overflow-ellipsis\"\n [tetaHint]=\"label\"\n [overflownOnly]=\"true\">\n {{label}}\n </span>\n</div>\n<div class=\"input-container\" [class.row_6]=\"horizontal\">\n <ng-content></ng-content>\n <div class=\"input-message font-error-message\">\n <ng-content select=\"message\"></ng-content>\n </div>\n</div>\n", styles: [":host{display:flex;grid-gap:4px;flex-grow:1;flex-basis:10px}\n"] }]
|
|
3624
3902
|
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
3625
3903
|
type: Input
|
|
3626
3904
|
}], horizontal: [{
|
|
@@ -3791,10 +4069,6 @@ class TextFieldComponent {
|
|
|
3791
4069
|
this.placeholder = '';
|
|
3792
4070
|
this.disabled = false;
|
|
3793
4071
|
this.onlyNumber = false;
|
|
3794
|
-
// @HostBinding('attr.tabindex')
|
|
3795
|
-
// private get tabindex() {
|
|
3796
|
-
// return this.disabled ? null : 0;
|
|
3797
|
-
// }
|
|
3798
4072
|
this.textField = true;
|
|
3799
4073
|
this.value = '';
|
|
3800
4074
|
}
|
|
@@ -3804,13 +4078,6 @@ class TextFieldComponent {
|
|
|
3804
4078
|
}
|
|
3805
4079
|
this.input.nativeElement.focus();
|
|
3806
4080
|
}
|
|
3807
|
-
//
|
|
3808
|
-
// @HostListener('focus') focus() {
|
|
3809
|
-
// if (this.disabled) {
|
|
3810
|
-
// return;
|
|
3811
|
-
// }
|
|
3812
|
-
// this.input.nativeElement.focus();
|
|
3813
|
-
// }
|
|
3814
4081
|
keyPress(event) {
|
|
3815
4082
|
if (event.key === 'Enter' || event.keyCode === 13) {
|
|
3816
4083
|
this.input.nativeElement.blur();
|
|
@@ -4851,17 +5118,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
4851
5118
|
args: ['class.form-group-title']
|
|
4852
5119
|
}] } });
|
|
4853
5120
|
|
|
5121
|
+
class HintModule {
|
|
5122
|
+
}
|
|
5123
|
+
HintModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5124
|
+
HintModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: HintModule, declarations: [HintDirective], imports: [CommonModule,
|
|
5125
|
+
DynamicComponentModule], exports: [HintDirective] });
|
|
5126
|
+
HintModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, imports: [CommonModule,
|
|
5127
|
+
DynamicComponentModule] });
|
|
5128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, decorators: [{
|
|
5129
|
+
type: NgModule,
|
|
5130
|
+
args: [{
|
|
5131
|
+
declarations: [HintDirective],
|
|
5132
|
+
exports: [HintDirective],
|
|
5133
|
+
imports: [
|
|
5134
|
+
CommonModule,
|
|
5135
|
+
DynamicComponentModule
|
|
5136
|
+
]
|
|
5137
|
+
}]
|
|
5138
|
+
}] });
|
|
5139
|
+
|
|
4854
5140
|
class InputModule {
|
|
4855
5141
|
}
|
|
4856
5142
|
InputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4857
|
-
InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: InputModule, declarations: [InputComponent, TextFieldComponent, FormGroupTitleComponent], imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule], exports: [InputComponent, TextFieldComponent, FormGroupTitleComponent] });
|
|
4858
|
-
InputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputModule, imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule] });
|
|
5143
|
+
InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: InputModule, declarations: [InputComponent, TextFieldComponent, FormGroupTitleComponent], imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule, HintModule], exports: [InputComponent, TextFieldComponent, FormGroupTitleComponent] });
|
|
5144
|
+
InputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputModule, imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule, HintModule] });
|
|
4859
5145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InputModule, decorators: [{
|
|
4860
5146
|
type: NgModule,
|
|
4861
5147
|
args: [{
|
|
4862
5148
|
declarations: [InputComponent, TextFieldComponent, FormGroupTitleComponent],
|
|
4863
5149
|
exports: [InputComponent, TextFieldComponent, FormGroupTitleComponent],
|
|
4864
|
-
imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule],
|
|
5150
|
+
imports: [CommonModule, IconModule, FormsModule, OnlyNumberModule, HintModule],
|
|
4865
5151
|
}]
|
|
4866
5152
|
}] });
|
|
4867
5153
|
|
|
@@ -5472,16 +5758,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
5472
5758
|
class CurrentModal {
|
|
5473
5759
|
}
|
|
5474
5760
|
|
|
5475
|
-
class DynamicData {
|
|
5476
|
-
constructor(value) {
|
|
5477
|
-
for (const key in value) {
|
|
5478
|
-
if (value.hasOwnProperty(key)) {
|
|
5479
|
-
this[key] = value[key];
|
|
5480
|
-
}
|
|
5481
|
-
}
|
|
5482
|
-
}
|
|
5483
|
-
}
|
|
5484
|
-
|
|
5485
5761
|
class DialogComponent {
|
|
5486
5762
|
constructor(modal, data) {
|
|
5487
5763
|
this.modal = modal;
|
|
@@ -5547,145 +5823,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
5547
5823
|
TranslocoModule,
|
|
5548
5824
|
IconModule,
|
|
5549
5825
|
],
|
|
5550
|
-
providers: [
|
|
5551
|
-
{
|
|
5552
|
-
provide: TRANSLOCO_SCOPE,
|
|
5553
|
-
useValue: { scope: 'common', alias: 'common' },
|
|
5554
|
-
multi: true,
|
|
5555
|
-
},
|
|
5556
|
-
],
|
|
5557
|
-
}]
|
|
5558
|
-
}] });
|
|
5559
|
-
|
|
5560
|
-
class ModalInstance {
|
|
5561
|
-
constructor(_window, _content) {
|
|
5562
|
-
this._window = _window;
|
|
5563
|
-
this._content = _content;
|
|
5564
|
-
this._onClose = new Subject();
|
|
5565
|
-
this.close = (event) => {
|
|
5566
|
-
this._onClose.next(event);
|
|
5567
|
-
this._onClose.complete();
|
|
5568
|
-
this.destroy();
|
|
5569
|
-
};
|
|
5570
|
-
this.onClose = this._onClose.asObservable();
|
|
5571
|
-
if (this._window && this._window.instance) {
|
|
5572
|
-
this._window.instance.closeEvent.subscribe((event) => {
|
|
5573
|
-
this.close(event);
|
|
5574
|
-
});
|
|
5575
|
-
}
|
|
5576
|
-
}
|
|
5577
|
-
get window() {
|
|
5578
|
-
return this._window;
|
|
5579
|
-
}
|
|
5580
|
-
get component() {
|
|
5581
|
-
return this._content.componentRef ? this._content.componentRef : null;
|
|
5582
|
-
}
|
|
5583
|
-
destroy() {
|
|
5584
|
-
this._window.destroy();
|
|
5585
|
-
if (this._content && this._content.viewRef) {
|
|
5586
|
-
setTimeout(() => {
|
|
5587
|
-
this._content.viewRef.destroy();
|
|
5588
|
-
}, 150);
|
|
5589
|
-
}
|
|
5590
|
-
}
|
|
5591
|
-
}
|
|
5592
|
-
|
|
5593
|
-
class TetaContentRef {
|
|
5594
|
-
constructor(nodes, viewRef, componentRef) {
|
|
5595
|
-
this.nodes = nodes;
|
|
5596
|
-
this.viewRef = viewRef;
|
|
5597
|
-
this.componentRef = componentRef;
|
|
5598
|
-
}
|
|
5599
|
-
}
|
|
5600
|
-
|
|
5601
|
-
class DynamicComponentService {
|
|
5602
|
-
constructor(_componentFactoryResolver, _rendererFactory, _appRef) {
|
|
5603
|
-
this._componentFactoryResolver = _componentFactoryResolver;
|
|
5604
|
-
this._rendererFactory = _rendererFactory;
|
|
5605
|
-
this._appRef = _appRef;
|
|
5606
|
-
this._renderer = this._rendererFactory.createRenderer(null, null);
|
|
5607
|
-
}
|
|
5608
|
-
createComponent(component, contentRef, injector, container) {
|
|
5609
|
-
const componentRef = this._componentFactoryResolver
|
|
5610
|
-
.resolveComponentFactory(component)
|
|
5611
|
-
.create(injector, contentRef.nodes);
|
|
5612
|
-
this._appRef.attachView(componentRef.hostView);
|
|
5613
|
-
container.appendChild(componentRef.location.nativeElement);
|
|
5614
|
-
return componentRef;
|
|
5615
|
-
}
|
|
5616
|
-
createContent(content, injector, context) {
|
|
5617
|
-
if (content === null || content === undefined) {
|
|
5618
|
-
throw new Error('Content is undefined');
|
|
5619
|
-
}
|
|
5620
|
-
if (typeof content === 'string') {
|
|
5621
|
-
return this.fromString(content);
|
|
5622
|
-
}
|
|
5623
|
-
else if (content instanceof TemplateRef) {
|
|
5624
|
-
return this.fromTemplate(content, context);
|
|
5625
|
-
}
|
|
5626
|
-
else {
|
|
5627
|
-
return this.fromComponent(content, injector, context);
|
|
5628
|
-
}
|
|
5629
|
-
}
|
|
5630
|
-
destroy(component, content, container) {
|
|
5631
|
-
if (component) {
|
|
5632
|
-
this._appRef.detachView(component.hostView);
|
|
5633
|
-
component.destroy();
|
|
5634
|
-
}
|
|
5635
|
-
if (content && content.viewRef) {
|
|
5636
|
-
content.viewRef.destroy();
|
|
5637
|
-
}
|
|
5638
|
-
content = null;
|
|
5639
|
-
}
|
|
5640
|
-
getContext(content, context) {
|
|
5641
|
-
if (content instanceof TemplateRef) {
|
|
5642
|
-
return {
|
|
5643
|
-
$implicit: context,
|
|
5644
|
-
data: context,
|
|
5645
|
-
};
|
|
5826
|
+
providers: [
|
|
5827
|
+
{
|
|
5828
|
+
provide: TRANSLOCO_SCOPE,
|
|
5829
|
+
useValue: { scope: 'common', alias: 'common' },
|
|
5830
|
+
multi: true,
|
|
5831
|
+
},
|
|
5832
|
+
],
|
|
5833
|
+
}]
|
|
5834
|
+
}] });
|
|
5835
|
+
|
|
5836
|
+
class ModalInstance {
|
|
5837
|
+
constructor(_window, _content) {
|
|
5838
|
+
this._window = _window;
|
|
5839
|
+
this._content = _content;
|
|
5840
|
+
this._onClose = new Subject();
|
|
5841
|
+
this.close = (event) => {
|
|
5842
|
+
this._onClose.next(event);
|
|
5843
|
+
this._onClose.complete();
|
|
5844
|
+
this.destroy();
|
|
5845
|
+
};
|
|
5846
|
+
this.onClose = this._onClose.asObservable();
|
|
5847
|
+
if (this._window && this._window.instance) {
|
|
5848
|
+
this._window.instance.closeEvent.subscribe((event) => {
|
|
5849
|
+
this.close(event);
|
|
5850
|
+
});
|
|
5646
5851
|
}
|
|
5647
|
-
return context;
|
|
5648
|
-
}
|
|
5649
|
-
getInjector(data, parent) {
|
|
5650
|
-
return Injector.create({
|
|
5651
|
-
providers: [
|
|
5652
|
-
{
|
|
5653
|
-
provide: DynamicData,
|
|
5654
|
-
useValue: data,
|
|
5655
|
-
},
|
|
5656
|
-
],
|
|
5657
|
-
parent,
|
|
5658
|
-
});
|
|
5659
5852
|
}
|
|
5660
|
-
|
|
5661
|
-
return
|
|
5853
|
+
get window() {
|
|
5854
|
+
return this._window;
|
|
5662
5855
|
}
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
this._appRef.attachView(viewRef);
|
|
5666
|
-
return new TetaContentRef([viewRef.rootNodes], viewRef);
|
|
5856
|
+
get component() {
|
|
5857
|
+
return this._content.componentRef ? this._content.componentRef : null;
|
|
5667
5858
|
}
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
}
|
|
5859
|
+
destroy() {
|
|
5860
|
+
this._window.destroy();
|
|
5861
|
+
if (this._content && this._content.viewRef) {
|
|
5862
|
+
setTimeout(() => {
|
|
5863
|
+
this._content.viewRef.destroy();
|
|
5864
|
+
}, 150);
|
|
5675
5865
|
}
|
|
5676
|
-
const componentNativeEl = componentRef.location.nativeElement;
|
|
5677
|
-
this._appRef.attachView(componentRef.hostView);
|
|
5678
|
-
return new TetaContentRef([[componentNativeEl]], componentRef.hostView, componentRef);
|
|
5679
5866
|
}
|
|
5680
5867
|
}
|
|
5681
|
-
DynamicComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.RendererFactory2 }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5682
|
-
DynamicComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, providedIn: 'root' });
|
|
5683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicComponentService, decorators: [{
|
|
5684
|
-
type: Injectable,
|
|
5685
|
-
args: [{
|
|
5686
|
-
providedIn: 'root',
|
|
5687
|
-
}]
|
|
5688
|
-
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.RendererFactory2 }, { type: i0.ApplicationRef }]; } });
|
|
5689
5868
|
|
|
5690
5869
|
class ModalService {
|
|
5691
5870
|
constructor(_document, _injector, _factory) {
|
|
@@ -6270,171 +6449,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6270
6449
|
args: ['click']
|
|
6271
6450
|
}] } });
|
|
6272
6451
|
|
|
6273
|
-
class DynamicContentBaseDirective {
|
|
6274
|
-
constructor(_document, _elementRef, _service, _injector, _zone, _cdr) {
|
|
6275
|
-
this._document = _document;
|
|
6276
|
-
this._elementRef = _elementRef;
|
|
6277
|
-
this._service = _service;
|
|
6278
|
-
this._injector = _injector;
|
|
6279
|
-
this._zone = _zone;
|
|
6280
|
-
this._cdr = _cdr;
|
|
6281
|
-
this.align = Align.left;
|
|
6282
|
-
this.verticalAlign = VerticalAlign.bottom;
|
|
6283
|
-
this.openChange = new EventEmitter();
|
|
6284
|
-
this._alive = true;
|
|
6285
|
-
this._open = false;
|
|
6286
|
-
this._zone.onStable
|
|
6287
|
-
.pipe(takeWhile((_) => this._alive), filter((_) => this._open))
|
|
6288
|
-
.subscribe((_) => {
|
|
6289
|
-
this.setPosition();
|
|
6290
|
-
});
|
|
6291
|
-
}
|
|
6292
|
-
set open(open) {
|
|
6293
|
-
this._open = open;
|
|
6294
|
-
if (this._open) {
|
|
6295
|
-
this.createContentRef();
|
|
6296
|
-
}
|
|
6297
|
-
else {
|
|
6298
|
-
this.destroyContentRef();
|
|
6299
|
-
}
|
|
6300
|
-
}
|
|
6301
|
-
ngOnDestroy() {
|
|
6302
|
-
this._alive = false;
|
|
6303
|
-
this.destroyContentRef();
|
|
6304
|
-
}
|
|
6305
|
-
ngOnInit() {
|
|
6306
|
-
}
|
|
6307
|
-
createContentRef(className) {
|
|
6308
|
-
if (!this._componentRef) {
|
|
6309
|
-
this._open = true;
|
|
6310
|
-
const injector = this._service.getInjector(this.data, this._injector);
|
|
6311
|
-
const context = this._service.getContext(this._dynamicContent, this.data);
|
|
6312
|
-
this._content = this._service.createContent(this._dynamicContent, this._injector, context);
|
|
6313
|
-
this._componentRef = this._service.createComponent(PopupContentComponent, this._content, injector, this.appendToBody ? this._document.body : this._elementRef.nativeElement);
|
|
6314
|
-
if (className) {
|
|
6315
|
-
this._componentRef.instance.addClass(className);
|
|
6316
|
-
}
|
|
6317
|
-
}
|
|
6318
|
-
return this._componentRef;
|
|
6319
|
-
}
|
|
6320
|
-
destroyContentRef() {
|
|
6321
|
-
this._open = false;
|
|
6322
|
-
this._service.destroy(this._componentRef, this._content, this.appendToBody ? this._document.body : this._elementRef.nativeElement);
|
|
6323
|
-
this._componentRef = null;
|
|
6324
|
-
}
|
|
6325
|
-
}
|
|
6326
|
-
DynamicContentBaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicContentBaseDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
6327
|
-
DynamicContentBaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: DynamicContentBaseDirective, inputs: { data: "data", className: "className", align: "align", verticalAlign: "verticalAlign", appendToBody: "appendToBody", open: "open" }, outputs: { openChange: "openChange" }, ngImport: i0 });
|
|
6328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DynamicContentBaseDirective, decorators: [{
|
|
6329
|
-
type: Directive
|
|
6330
|
-
}], ctorParameters: function () { return [{ type: undefined }, { type: i0.ElementRef }, { type: DynamicComponentService }, { type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
6331
|
-
type: Input
|
|
6332
|
-
}], className: [{
|
|
6333
|
-
type: Input
|
|
6334
|
-
}], align: [{
|
|
6335
|
-
type: Input
|
|
6336
|
-
}], verticalAlign: [{
|
|
6337
|
-
type: Input
|
|
6338
|
-
}], appendToBody: [{
|
|
6339
|
-
type: Input
|
|
6340
|
-
}], open: [{
|
|
6341
|
-
type: Input
|
|
6342
|
-
}], openChange: [{
|
|
6343
|
-
type: Output
|
|
6344
|
-
}] } });
|
|
6345
|
-
|
|
6346
|
-
class HintDirective extends DynamicContentBaseDirective {
|
|
6347
|
-
constructor(_document, _elementRef, _service, _injector, _zone, _cdr) {
|
|
6348
|
-
super(_document, _elementRef, _service, _injector, _zone, _cdr);
|
|
6349
|
-
this._document = _document;
|
|
6350
|
-
this._elementRef = _elementRef;
|
|
6351
|
-
this._service = _service;
|
|
6352
|
-
this._injector = _injector;
|
|
6353
|
-
this._zone = _zone;
|
|
6354
|
-
this._cdr = _cdr;
|
|
6355
|
-
this.align = Align.center;
|
|
6356
|
-
this.verticalAlign = VerticalAlign.top;
|
|
6357
|
-
this.delay = 300;
|
|
6358
|
-
}
|
|
6359
|
-
get _dynamicContent() {
|
|
6360
|
-
return this.tetaHint;
|
|
6361
|
-
}
|
|
6362
|
-
mouseenter() {
|
|
6363
|
-
clearTimeout(this._timeout);
|
|
6364
|
-
this._timeout = setTimeout(() => {
|
|
6365
|
-
this.createHint();
|
|
6366
|
-
}, this.delay);
|
|
6367
|
-
}
|
|
6368
|
-
mouseleave() {
|
|
6369
|
-
clearTimeout(this._timeout);
|
|
6370
|
-
if (this._open && this._componentRef) {
|
|
6371
|
-
this._timeout = setTimeout(() => {
|
|
6372
|
-
this.destroyContentRef();
|
|
6373
|
-
}, this.delay);
|
|
6374
|
-
}
|
|
6375
|
-
}
|
|
6376
|
-
click(event) {
|
|
6377
|
-
if (this._open &&
|
|
6378
|
-
this._componentRef &&
|
|
6379
|
-
DomUtil.clickedInside(this._componentRef.location.nativeElement, event)) {
|
|
6380
|
-
event.stopPropagation();
|
|
6381
|
-
}
|
|
6382
|
-
}
|
|
6383
|
-
setPosition() {
|
|
6384
|
-
if (this._componentRef && this._open) {
|
|
6385
|
-
if (!this._componentRect) {
|
|
6386
|
-
this._componentRect =
|
|
6387
|
-
this._componentRef.location.nativeElement.getBoundingClientRect();
|
|
6388
|
-
}
|
|
6389
|
-
const position = PositionUtil.getPosition(this._elementRef.nativeElement.getBoundingClientRect(), this._componentRect, this.align, this.verticalAlign, 0, 4);
|
|
6390
|
-
PositionUtil.setElementPosition(this._componentRef.location.nativeElement, position);
|
|
6391
|
-
}
|
|
6392
|
-
}
|
|
6393
|
-
createHint() {
|
|
6394
|
-
if (!this._dynamicContent) {
|
|
6395
|
-
return;
|
|
6396
|
-
}
|
|
6397
|
-
this._componentRef = this.createContentRef();
|
|
6398
|
-
this._componentRef.instance.className = [
|
|
6399
|
-
...ArrayUtil.asArray(this.className),
|
|
6400
|
-
'hint',
|
|
6401
|
-
];
|
|
6402
|
-
}
|
|
6403
|
-
ngOnDestroy() {
|
|
6404
|
-
super.ngOnDestroy();
|
|
6405
|
-
}
|
|
6406
|
-
}
|
|
6407
|
-
HintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintDirective, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: DynamicComponentService }, { token: i0.Injector }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6408
|
-
HintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: HintDirective, selector: "[tetaHint]", inputs: { tetaHint: "tetaHint", align: "align", verticalAlign: "verticalAlign", delay: "delay" }, host: { listeners: { "mouseenter": "mouseenter($event)", "mouseleave": "mouseleave($event)", "click": "click($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
6409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintDirective, decorators: [{
|
|
6410
|
-
type: Directive,
|
|
6411
|
-
args: [{
|
|
6412
|
-
selector: '[tetaHint]',
|
|
6413
|
-
}]
|
|
6414
|
-
}], ctorParameters: function () {
|
|
6415
|
-
return [{ type: undefined, decorators: [{
|
|
6416
|
-
type: Inject,
|
|
6417
|
-
args: [DOCUMENT]
|
|
6418
|
-
}] }, { type: i0.ElementRef }, { type: DynamicComponentService }, { type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
|
|
6419
|
-
}, propDecorators: { tetaHint: [{
|
|
6420
|
-
type: Input
|
|
6421
|
-
}], align: [{
|
|
6422
|
-
type: Input
|
|
6423
|
-
}], verticalAlign: [{
|
|
6424
|
-
type: Input
|
|
6425
|
-
}], delay: [{
|
|
6426
|
-
type: Input
|
|
6427
|
-
}], mouseenter: [{
|
|
6428
|
-
type: HostListener,
|
|
6429
|
-
args: ['mouseenter', ['$event']]
|
|
6430
|
-
}], mouseleave: [{
|
|
6431
|
-
type: HostListener,
|
|
6432
|
-
args: ['mouseleave', ['$event']]
|
|
6433
|
-
}], click: [{
|
|
6434
|
-
type: HostListener,
|
|
6435
|
-
args: ['click', ['$event']]
|
|
6436
|
-
}] } });
|
|
6437
|
-
|
|
6438
6452
|
class PropertyGridItemComponent {
|
|
6439
6453
|
constructor(_transloco) {
|
|
6440
6454
|
this._transloco = _transloco;
|
|
@@ -6508,10 +6522,10 @@ class PropertyGridItemComponent {
|
|
|
6508
6522
|
}
|
|
6509
6523
|
}
|
|
6510
6524
|
PropertyGridItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemComponent, deps: [{ token: i1$1.TranslocoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6511
|
-
PropertyGridItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict", formGroup: "formGroup", horizontal: "horizontal" }, outputs: { controlValueChange: "controlValueChange" }, ngImport: i0, template: "<teta-input [label]=\"caption\"\n [tetaHint]=\"column.hint\"\n [align]=\"align.left\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container [ngSwitch]=\"column.filterType\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">{{column.caption}}</teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n (focusout)=\"valueChange()\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: DatePickerComponent, selector: "teta-date-picker", inputs: ["disabled", "invalid", "firstDayOfWeek", "disabledDates", "disabledPeriods", "disabledDays", "minDate", "maxDate", "minYearDate", "maxYearDate", "align", "verticalAlign", "appendToBody", "allowNull", "backdrop", "showTime", "format"] }, { kind: "component", type: SelectComponent, selector: "teta-select", inputs: ["multiple", "options", "invalid", "align", "verticalAlign", "autoClose", "autoCloseIgnore", "disabled", "itemSize", "virtual", "icon", "placeholder", "appendToBody", "allowNull", "valueRef", "textRef", "searchRef"] }, { kind: "component", type: InputComponent, selector: "teta-input", inputs: ["label", "horizontal", "required"] }, { kind: "component", type: TextFieldComponent, selector: "teta-text-field", inputs: ["placeholder", "leftIconName", "disabled", "onlyNumber", "invalid"] }, { kind: "component", type: ToggleComponent, selector: "teta-toggle", inputs: ["palette", "noLabel", "disabled"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }] });
|
|
6525
|
+
PropertyGridItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PropertyGridItemComponent, selector: "teta-property-grid-item", inputs: { column: "column", hideNonEditable: "hideNonEditable", dict: "dict", formGroup: "formGroup", horizontal: "horizontal" }, outputs: { controlValueChange: "controlValueChange" }, ngImport: i0, template: "<teta-input [label]=\"caption\"\n [tetaHint]=\"column.hint\"\n [align]=\"align.left\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n [required]=\"column.required\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container [ngSwitch]=\"column.filterType\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">{{column.caption}}</teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n (focusout)=\"valueChange()\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: DatePickerComponent, selector: "teta-date-picker", inputs: ["disabled", "invalid", "firstDayOfWeek", "disabledDates", "disabledPeriods", "disabledDays", "minDate", "maxDate", "minYearDate", "maxYearDate", "align", "verticalAlign", "appendToBody", "allowNull", "backdrop", "showTime", "format"] }, { kind: "component", type: SelectComponent, selector: "teta-select", inputs: ["multiple", "options", "invalid", "align", "verticalAlign", "autoClose", "autoCloseIgnore", "disabled", "itemSize", "virtual", "icon", "placeholder", "appendToBody", "allowNull", "valueRef", "textRef", "searchRef"] }, { kind: "component", type: InputComponent, selector: "teta-input", inputs: ["label", "horizontal", "required"] }, { kind: "component", type: TextFieldComponent, selector: "teta-text-field", inputs: ["placeholder", "leftIconName", "disabled", "onlyNumber", "invalid"] }, { kind: "component", type: ToggleComponent, selector: "teta-toggle", inputs: ["palette", "noLabel", "disabled"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }] });
|
|
6512
6526
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridItemComponent, decorators: [{
|
|
6513
6527
|
type: Component,
|
|
6514
|
-
args: [{ selector: 'teta-property-grid-item', template: "<teta-input [label]=\"caption\"\n [tetaHint]=\"column.hint\"\n [align]=\"align.left\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container [ngSwitch]=\"column.filterType\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">{{column.caption}}</teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n (focusout)=\"valueChange()\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n" }]
|
|
6528
|
+
args: [{ selector: 'teta-property-grid-item', template: "<teta-input [label]=\"caption\"\n [tetaHint]=\"column.hint\"\n [align]=\"align.left\"\n [formGroup]=\"formGroup\"\n [horizontal]=\"horizontal\"\n [required]=\"column.required\"\n *ngIf=\"column.editable || !hideNonEditable\">\n <ng-container [ngSwitch]=\"column.filterType\">\n <teta-select class=\"row_auto\"\n *ngSwitchCase=\"filterTypeEnum.list\"\n [searchRef]=\"getDict()?.length > 10 ? 'name' : ''\"\n [allowNull]=\"!column.required\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"\n [options]=\"getDict()\"\n [valueRef]=\"'id'\"\n [textRef]=\"'name'\"\n [multiple]=\"false\"></teta-select>\n <teta-date-picker *ngSwitchCase=\"filterTypeEnum.date\"\n class=\"row_auto\"\n [appendToBody]=\"true\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-date-picker>\n <teta-toggle *ngSwitchCase=\"filterTypeEnum.boolean\"\n [formControlName]=\"column.name\">{{column.caption}}</teta-toggle>\n <teta-text-field class=\"row_auto\"\n *ngSwitchDefault\n (focusout)=\"valueChange()\"\n [onlyNumber]=\"column.filterType === filterTypeEnum.number\"\n [placeholder]=\"column.caption\"\n [invalid]=\"controlIsInvalid(column.name)\"\n [formControlName]=\"column.name\"></teta-text-field>\n </ng-container>\n <div *ngIf=\"controlIsInvalid(column.name)\"\n ngProjectAs=\"message\"\n class=\"color-red-50\">\n {{getError(column)}}\n </div>\n</teta-input>\n" }]
|
|
6515
6529
|
}], ctorParameters: function () { return [{ type: i1$1.TranslocoService }]; }, propDecorators: { column: [{
|
|
6516
6530
|
type: Input
|
|
6517
6531
|
}], hideNonEditable: [{
|
|
@@ -6706,25 +6720,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
6706
6720
|
}]
|
|
6707
6721
|
}] });
|
|
6708
6722
|
|
|
6709
|
-
class HintModule {
|
|
6710
|
-
}
|
|
6711
|
-
HintModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6712
|
-
HintModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: HintModule, declarations: [HintDirective], imports: [CommonModule,
|
|
6713
|
-
DynamicComponentModule], exports: [HintDirective] });
|
|
6714
|
-
HintModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, imports: [CommonModule,
|
|
6715
|
-
DynamicComponentModule] });
|
|
6716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HintModule, decorators: [{
|
|
6717
|
-
type: NgModule,
|
|
6718
|
-
args: [{
|
|
6719
|
-
declarations: [HintDirective],
|
|
6720
|
-
exports: [HintDirective],
|
|
6721
|
-
imports: [
|
|
6722
|
-
CommonModule,
|
|
6723
|
-
DynamicComponentModule
|
|
6724
|
-
]
|
|
6725
|
-
}]
|
|
6726
|
-
}] });
|
|
6727
|
-
|
|
6728
6723
|
class PropertyGridModule {
|
|
6729
6724
|
}
|
|
6730
6725
|
PropertyGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PropertyGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -8228,7 +8223,7 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8228
8223
|
}
|
|
8229
8224
|
}
|
|
8230
8225
|
DefaultHeadCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DefaultHeadCellComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8231
|
-
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", columns: "columns", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption color-text-70\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8226
|
+
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", columns: "columns", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption color-text-70\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8232
8227
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DefaultHeadCellComponent, decorators: [{
|
|
8233
8228
|
type: Component,
|
|
8234
8229
|
args: [{ selector: 'teta-default-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption color-text-70\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"] }]
|
|
@@ -8410,10 +8405,10 @@ class TabsComponent {
|
|
|
8410
8405
|
}
|
|
8411
8406
|
}
|
|
8412
8407
|
TabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8413
|
-
TabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TabsComponent, selector: "teta-tabs", inputs: { activeId: "activeId", destroyOnHide: "destroyOnHide" }, outputs: { tabChange: "tabChange" }, host: { properties: { "class.tabs": "this.classTabs" } }, queries: [{ propertyName: "tabs", predicate: TabComponent }], ngImport: i0, template: "<div class=\"tabs-head\" role=\"tablist\">\n <div class=\"tabs-head-item\"\n *ngFor=\"let tab of tabs\"\n (click)=\"select(tab.id);\"\n [class.tabs-head-item_active]=\"tab.id === activeId\"\n [class.tabs-head-item_disabled]=\"tab.disabled\">\n <span [id]=\"tab.id\" class=\"tabs-title\"\n role=\"tab\"\n [attr.tabindex]=\"(tab.disabled ? '-1': undefined)\"\n [attr.aria-controls]=\"(!destroyOnHide || tab.id === activeId ? tab.id + '-panel' : null)\"\n [attr.aria-expanded]=\"tab.id === activeId\"\n [attr.aria-disabled]=\"tab.disabled\">\n {{tab.title}}\n <ng-template [ngTemplateOutlet]=\"tab.titleTpl?.template\"></ng-template>\n </span>\n </div>\n</div>\n<div class=\"tabs-content\">\n <ng-template ngFor let-tab [ngForOf]=\"tabs\">\n <ng-container *ngIf=\"!destroyOnHide || tab.id === activeId\">\n <ng-template [ngTemplateOutlet]=\"tab.contentTpl?.template\"></ng-template>\n </ng-container>\n </ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8408
|
+
TabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: TabsComponent, selector: "teta-tabs", inputs: { activeId: "activeId", destroyOnHide: "destroyOnHide" }, outputs: { tabChange: "tabChange" }, host: { properties: { "class.tabs": "this.classTabs" } }, queries: [{ propertyName: "tabs", predicate: TabComponent }], ngImport: i0, template: "<div class=\"tabs-head\" role=\"tablist\">\n <div class=\"tabs-head-item\"\n *ngFor=\"let tab of tabs\"\n (click)=\"select(tab.id);\"\n [class.tabs-head-item_active]=\"tab.id === activeId\"\n [class.tabs-head-item_disabled]=\"tab.disabled\">\n <span [id]=\"tab.id\" class=\"tabs-title\"\n role=\"tab\"\n [attr.tabindex]=\"(tab.disabled ? '-1': undefined)\"\n [attr.aria-controls]=\"(!destroyOnHide || tab.id === activeId ? tab.id + '-panel' : null)\"\n [attr.aria-expanded]=\"tab.id === activeId\"\n [attr.aria-disabled]=\"tab.disabled\">\n {{tab.title}}\n <ng-template [ngTemplateOutlet]=\"tab.titleTpl?.template\"></ng-template>\n </span>\n </div>\n <ng-content></ng-content>\n</div>\n<div class=\"tabs-content\">\n <ng-template ngFor let-tab [ngForOf]=\"tabs\">\n <ng-container *ngIf=\"!destroyOnHide || tab.id === activeId\">\n <ng-template [ngTemplateOutlet]=\"tab.contentTpl?.template\"></ng-template>\n </ng-container>\n </ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8414
8409
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TabsComponent, decorators: [{
|
|
8415
8410
|
type: Component,
|
|
8416
|
-
args: [{ selector: 'teta-tabs', template: "<div class=\"tabs-head\" role=\"tablist\">\n <div class=\"tabs-head-item\"\n *ngFor=\"let tab of tabs\"\n (click)=\"select(tab.id);\"\n [class.tabs-head-item_active]=\"tab.id === activeId\"\n [class.tabs-head-item_disabled]=\"tab.disabled\">\n <span [id]=\"tab.id\" class=\"tabs-title\"\n role=\"tab\"\n [attr.tabindex]=\"(tab.disabled ? '-1': undefined)\"\n [attr.aria-controls]=\"(!destroyOnHide || tab.id === activeId ? tab.id + '-panel' : null)\"\n [attr.aria-expanded]=\"tab.id === activeId\"\n [attr.aria-disabled]=\"tab.disabled\">\n {{tab.title}}\n <ng-template [ngTemplateOutlet]=\"tab.titleTpl?.template\"></ng-template>\n </span>\n </div>\n</div>\n<div class=\"tabs-content\">\n <ng-template ngFor let-tab [ngForOf]=\"tabs\">\n <ng-container *ngIf=\"!destroyOnHide || tab.id === activeId\">\n <ng-template [ngTemplateOutlet]=\"tab.contentTpl?.template\"></ng-template>\n </ng-container>\n </ng-template>\n</div>\n" }]
|
|
8411
|
+
args: [{ selector: 'teta-tabs', template: "<div class=\"tabs-head\" role=\"tablist\">\n <div class=\"tabs-head-item\"\n *ngFor=\"let tab of tabs\"\n (click)=\"select(tab.id);\"\n [class.tabs-head-item_active]=\"tab.id === activeId\"\n [class.tabs-head-item_disabled]=\"tab.disabled\">\n <span [id]=\"tab.id\" class=\"tabs-title\"\n role=\"tab\"\n [attr.tabindex]=\"(tab.disabled ? '-1': undefined)\"\n [attr.aria-controls]=\"(!destroyOnHide || tab.id === activeId ? tab.id + '-panel' : null)\"\n [attr.aria-expanded]=\"tab.id === activeId\"\n [attr.aria-disabled]=\"tab.disabled\">\n {{tab.title}}\n <ng-template [ngTemplateOutlet]=\"tab.titleTpl?.template\"></ng-template>\n </span>\n </div>\n <ng-content></ng-content>\n</div>\n<div class=\"tabs-content\">\n <ng-template ngFor let-tab [ngForOf]=\"tabs\">\n <ng-container *ngIf=\"!destroyOnHide || tab.id === activeId\">\n <ng-template [ngTemplateOutlet]=\"tab.contentTpl?.template\"></ng-template>\n </ng-container>\n </ng-template>\n</div>\n" }]
|
|
8417
8412
|
}], ctorParameters: function () { return []; }, propDecorators: { classTabs: [{
|
|
8418
8413
|
type: HostBinding,
|
|
8419
8414
|
args: ['class.tabs']
|
|
@@ -9050,10 +9045,10 @@ class HeadCellComponent {
|
|
|
9050
9045
|
}
|
|
9051
9046
|
}
|
|
9052
9047
|
HeadCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HeadCellComponent, deps: [{ token: TableService }, { token: i0.ApplicationRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9053
|
-
HeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: HeadCellComponent, selector: "teta-head-cell", inputs: { column: "column", showHeadCellMenu: "showHeadCellMenu", data: "data" }, host: { listeners: { "
|
|
9048
|
+
HeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: HeadCellComponent, selector: "teta-head-cell", inputs: { column: "column", showHeadCellMenu: "showHeadCellMenu", data: "data" }, host: { listeners: { "dragenter": "dragenter($event)", "dragover": "allowDrop($event)", "dragleave": "dragleave($event)", "dragend": "dragend($event)", "drop": "drop($event)" }, properties: { "class.table-head__cell_active": "this.dropDownOpen" } }, viewQueries: [{ propertyName: "mainTemplate", first: true, predicate: ["mainTemplate"], descendants: true, static: true }, { propertyName: "filterTemplate", first: true, predicate: ["filterTemplate"], descendants: true, static: true }, { propertyName: "columnsTemplate", first: true, predicate: ["columnsTemplate"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead\n draggable=\"true\"\n class=\"table-head__cell__wrapper\"\n (dragstart)=\"dragstart($event)\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [columns]=\"columns | async\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { kind: "component", type: DropdownComponent, selector: "teta-dropdown", exportAs: ["dropdown"] }, { kind: "directive", type: DropdownHeadDirective, selector: "[tetaDropdownHead]" }, { kind: "directive", type: DropdownContentDirective, selector: "[tetaDropdownContent]" }, { kind: "directive", type: ResizeDragDirective, selector: "[tetaResizeDrag]", inputs: ["tetaResizeDrag"], outputs: ["resizeStart", "resizeProcess", "resizeEnd"] }, { kind: "component", type: HeadCellHostComponent, selector: "teta-head-cell-host", inputs: ["column", "columns", "data"] }, { kind: "component", type: HeadCellDropdownComponent, selector: "teta-head-cell-dropdown", inputs: ["columns", "column", "state", "data", "tabTemplates", "dropDownOpen"], outputs: ["dropDownOpenChange"] }, { kind: "component", type: MainDropdownTabComponent, selector: "teta-main-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: FilterDropdownTabComponent, selector: "teta-filter-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "component", type: VisibilityDropdownTabComponent, selector: "teta-visibility-dropdown-tab", inputs: ["columns", "column", "state", "data", "close"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9054
9049
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HeadCellComponent, decorators: [{
|
|
9055
9050
|
type: Component,
|
|
9056
|
-
args: [{ selector: 'teta-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div
|
|
9051
|
+
args: [{ selector: 'teta-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"row row_auto\">\n <teta-dropdown [autoCloseIgnore]=\"['enter', 'inside']\"\n [verticalAlign]=\"verticalAlign.bottom\"\n [appendToBody]=\"false\"\n [(open)]=\"dropDownOpen\"\n [align]=\"align.left\"\n (click)=\"$event.preventDefault()\"\n [class.table-head__cell__menu_open]=\"dropDownOpen\"\n class=\"column column_auto justify-content-center\">\n <div tetaDropdownHead\n draggable=\"true\"\n class=\"table-head__cell__wrapper\"\n (dragstart)=\"dragstart($event)\"\n [ngClass]=\"column.headCellClass\">\n <teta-head-cell-host [column]=\"column\" [columns]=\"columns | async\" [data]=\"data\"></teta-head-cell-host>\n <teta-icon *ngIf=\"iconName | async as icon\"\n [palette]=\"'text'\"\n [name]=\"icon\"></teta-icon>\n </div>\n <teta-head-cell-dropdown tetaDropdownContent\n *ngIf=\"showHeadCellMenu\"\n [tabTemplates]=\"tabTemplates\"\n [data]=\"data\"\n [column]=\"column\"\n [columns]=\"columns | async\"\n [state]=\"state | async\"\n [(dropDownOpen)]=\"dropDownOpen\"></teta-head-cell-dropdown>\n </teta-dropdown>\n <div class=\"drop-area\"\n draggable=\"false\"\n [class.drop-area_left]=\"showDrag === 'left'\"\n [class.drop-area_right]=\"showDrag === 'right'\"\n *ngIf=\"showDrag\"></div>\n</div>\n<div class=\"table-head__cell__resize\"\n draggable=\"false\"\n (dragstart)=\"$event.preventDefault();$event.stopPropagation()\"\n (drag)=\"$event.preventDefault();$event.stopPropagation()\"\n [tetaResizeDrag]=\"'vertical'\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd()\">\n <div class=\"table-head__cell__resize_drag\"></div>\n</div>\n<ng-template #mainTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-main-dropdown-tab [column]=\"column\" [state]=\"state\" [close]=\"close\"></teta-main-dropdown-tab>\n</ng-template>\n<ng-template #filterTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-filter-dropdown-tab [column]=\"column\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-filter-dropdown-tab>\n</ng-template>\n<ng-template #columnsTemplate let-column=\"column\" let-columns=\"columns\" let-data=\"data\" let-state=\"state\"\n let-close=\"close\">\n <teta-visibility-dropdown-tab [column]=\"column\"\n [columns]=\"columns\"\n [state]=\"state\"\n [close]=\"close\"\n [data]=\"data\"></teta-visibility-dropdown-tab>\n</ng-template>\n", styles: [".drop-area{position:absolute;width:1px;background:var(--color-text-50);top:0;bottom:0;z-index:10}.drop-area_left{left:-1px}.drop-area_right{right:-1px}\n"] }]
|
|
9057
9052
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ApplicationRef }, { type: i0.ElementRef }]; }, propDecorators: { column: [{
|
|
9058
9053
|
type: Input
|
|
9059
9054
|
}], showHeadCellMenu: [{
|
|
@@ -9072,9 +9067,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
9072
9067
|
}], columnsTemplate: [{
|
|
9073
9068
|
type: ViewChild,
|
|
9074
9069
|
args: ['columnsTemplate', { static: true }]
|
|
9075
|
-
}], dragstart: [{
|
|
9076
|
-
type: HostListener,
|
|
9077
|
-
args: ['dragstart', ['$event']]
|
|
9078
9070
|
}], dragenter: [{
|
|
9079
9071
|
type: HostListener,
|
|
9080
9072
|
args: ['dragenter', ['$event']]
|
|
@@ -9560,10 +9552,10 @@ class StringCellComponent extends CellComponentBase {
|
|
|
9560
9552
|
}
|
|
9561
9553
|
}
|
|
9562
9554
|
StringCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringCellComponent, deps: [{ token: TableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9563
|
-
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: StringCellComponent, selector: "teta-string-cell", inputs: { column: "column", row: "row" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9555
|
+
StringCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: StringCellComponent, selector: "teta-string-cell", inputs: { column: "column", row: "row" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay", "overflownOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9564
9556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: StringCellComponent, decorators: [{
|
|
9565
9557
|
type: Component,
|
|
9566
|
-
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n" }]
|
|
9558
|
+
args: [{ selector: 'teta-string-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [style.display]=\"edit ? 'none' : 'block'\"\n class=\"cell-text\"\n [tetaHint]=\"row[column.name]\"\n [appendToBody]=\"true\"\n [overflownOnly]=\"true\"\n [class.cell-text_disabled]=\"!editable\">\n {{row[column.name]}}\n</span>\n<input #input\n *ngIf=\"edit\"\n type=\"text\"\n class=\"input row_auto border-radius-0\"\n (blur)=\"setValue()\"\n [ngModel]=\"row[column.name]\"\n (ngModelChange)=\"row[column.name]=$event\"/>\n\n" }]
|
|
9567
9559
|
}], ctorParameters: function () { return [{ type: TableService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
9568
9560
|
type: Input
|
|
9569
9561
|
}], row: [{
|