@taiga-ui/kit 3.16.0-dev.main-f183fac → 3.16.0-dev.main-e7166ca
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/bundles/taiga-ui-kit-components-elastic-container.umd.js +131 -0
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components.umd.js +10 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/components/elastic-container/elastic-container.component.d.ts +6 -0
- package/components/elastic-container/elastic-container.directive.d.ts +12 -0
- package/components/elastic-container/elastic-container.module.d.ts +8 -0
- package/components/elastic-container/index.d.ts +3 -0
- package/components/elastic-container/package.json +10 -0
- package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +5 -0
- package/components/index.d.ts +1 -0
- package/esm2015/components/elastic-container/elastic-container.component.js +23 -0
- package/esm2015/components/elastic-container/elastic-container.directive.js +58 -0
- package/esm2015/components/elastic-container/elastic-container.module.js +17 -0
- package/esm2015/components/elastic-container/index.js +4 -0
- package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +5 -0
- package/esm2015/components/index.js +2 -1
- package/fesm2015/taiga-ui-kit-components-elastic-container.js +98 -0
- package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components.js +1 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/mutation-observer'), require('@ng-web-apis/resize-observer'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/elastic-container', ['exports', '@angular/core', '@ng-web-apis/mutation-observer', '@ng-web-apis/resize-observer', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["elastic-container"] = {}), global.ng.core, global.mutationObserver, global.resizeObserver, global.rxjs, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, i0, mutationObserver, resizeObserver, i1, operators) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
|
|
28
|
+
var TuiElasticContainerDirective = /** @class */ (function () {
|
|
29
|
+
function TuiElasticContainerDirective(elementRef, resize$, mutation$) {
|
|
30
|
+
var _this = this;
|
|
31
|
+
this.elementRef = elementRef;
|
|
32
|
+
this.resize$ = resize$;
|
|
33
|
+
this.mutation$ = mutation$;
|
|
34
|
+
this.tuiElasticContainer = i1.merge(this.resize$, this.mutation$).pipe(operators.debounceTime(0), operators.map(function () { return _this.elementRef.nativeElement.clientHeight; }), operators.distinctUntilChanged());
|
|
35
|
+
}
|
|
36
|
+
return TuiElasticContainerDirective;
|
|
37
|
+
}());
|
|
38
|
+
TuiElasticContainerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerDirective, deps: [{ token: i0.ElementRef }, { token: resizeObserver.ResizeObserverService }, { token: mutationObserver.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
39
|
+
TuiElasticContainerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: { tuiElasticContainer: "tuiElasticContainer" }, providers: [
|
|
40
|
+
resizeObserver.ResizeObserverService,
|
|
41
|
+
mutationObserver.MutationObserverService,
|
|
42
|
+
{
|
|
43
|
+
provide: mutationObserver.MUTATION_OBSERVER_INIT,
|
|
44
|
+
useValue: {
|
|
45
|
+
childList: true,
|
|
46
|
+
characterData: true,
|
|
47
|
+
subtree: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
], ngImport: i0__namespace });
|
|
51
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerDirective, decorators: [{
|
|
52
|
+
type: i0.Directive,
|
|
53
|
+
args: [{
|
|
54
|
+
selector: '[tuiElasticContainer]',
|
|
55
|
+
providers: [
|
|
56
|
+
resizeObserver.ResizeObserverService,
|
|
57
|
+
mutationObserver.MutationObserverService,
|
|
58
|
+
{
|
|
59
|
+
provide: mutationObserver.MUTATION_OBSERVER_INIT,
|
|
60
|
+
useValue: {
|
|
61
|
+
childList: true,
|
|
62
|
+
characterData: true,
|
|
63
|
+
subtree: true,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
}]
|
|
68
|
+
}], ctorParameters: function () {
|
|
69
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
70
|
+
type: i0.Inject,
|
|
71
|
+
args: [i0.ElementRef]
|
|
72
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
73
|
+
type: i0.Inject,
|
|
74
|
+
args: [resizeObserver.ResizeObserverService]
|
|
75
|
+
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
76
|
+
type: i0.Inject,
|
|
77
|
+
args: [mutationObserver.MutationObserverService]
|
|
78
|
+
}] }];
|
|
79
|
+
}, propDecorators: { tuiElasticContainer: [{
|
|
80
|
+
type: i0.Output
|
|
81
|
+
}] } });
|
|
82
|
+
|
|
83
|
+
var TuiElasticContainerComponent = /** @class */ (function () {
|
|
84
|
+
function TuiElasticContainerComponent() {
|
|
85
|
+
this.height = NaN;
|
|
86
|
+
}
|
|
87
|
+
return TuiElasticContainerComponent;
|
|
88
|
+
}());
|
|
89
|
+
TuiElasticContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
90
|
+
TuiElasticContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerComponent, selector: "tui-elastic-container", host: { properties: { "style.height.px": "this.height" } }, ngImport: i0__namespace, template: "<div (tuiElasticContainer)=\"height = $event\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{transition-property:height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden}\n"], directives: [{ type: TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: ["tuiElasticContainer"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
91
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerComponent, decorators: [{
|
|
92
|
+
type: i0.Component,
|
|
93
|
+
args: [{
|
|
94
|
+
selector: 'tui-elastic-container',
|
|
95
|
+
templateUrl: './elastic-container.component.html',
|
|
96
|
+
styleUrls: ['./elastic-container.component.less'],
|
|
97
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
98
|
+
}]
|
|
99
|
+
}], propDecorators: { height: [{
|
|
100
|
+
type: i0.HostBinding,
|
|
101
|
+
args: ['style.height.px']
|
|
102
|
+
}] } });
|
|
103
|
+
|
|
104
|
+
var TuiElasticContainerModule = /** @class */ (function () {
|
|
105
|
+
function TuiElasticContainerModule() {
|
|
106
|
+
}
|
|
107
|
+
return TuiElasticContainerModule;
|
|
108
|
+
}());
|
|
109
|
+
TuiElasticContainerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
110
|
+
TuiElasticContainerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerModule, declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective], exports: [TuiElasticContainerComponent] });
|
|
111
|
+
TuiElasticContainerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerModule });
|
|
112
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiElasticContainerModule, decorators: [{
|
|
113
|
+
type: i0.NgModule,
|
|
114
|
+
args: [{
|
|
115
|
+
declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective],
|
|
116
|
+
exports: [TuiElasticContainerComponent],
|
|
117
|
+
}]
|
|
118
|
+
}] });
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Generated bundle index. Do not edit.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
exports.TuiElasticContainerComponent = TuiElasticContainerComponent;
|
|
125
|
+
exports.TuiElasticContainerDirective = TuiElasticContainerDirective;
|
|
126
|
+
exports.TuiElasticContainerModule = TuiElasticContainerModule;
|
|
127
|
+
|
|
128
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
129
|
+
|
|
130
|
+
}));
|
|
131
|
+
//# sourceMappingURL=taiga-ui-kit-components-elastic-container.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-elastic-container.umd.js","sources":["../../../projects/kit/components/elastic-container/elastic-container.directive.ts","../../../projects/kit/components/elastic-container/elastic-container.component.ts","../../../projects/kit/components/elastic-container/elastic-container.component.html","../../../projects/kit/components/elastic-container/elastic-container.module.ts","../../../projects/kit/components/elastic-container/taiga-ui-kit-components-elastic-container.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {merge, Observable} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, map} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiElasticContainer]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n})\nexport class TuiElasticContainerDirective {\n @Output()\n readonly tuiElasticContainer = merge(this.resize$, this.mutation$).pipe(\n debounceTime(0),\n map(() => this.elementRef.nativeElement.clientHeight),\n distinctUntilChanged(),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ResizeObserverService) private readonly resize$: Observable<unknown>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\n\n@Component({\n selector: 'tui-elastic-container',\n templateUrl: './elastic-container.component.html',\n styleUrls: ['./elastic-container.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiElasticContainerComponent {\n @HostBinding('style.height.px')\n height = NaN;\n}\n","<div (tuiElasticContainer)=\"height = $event\">\n <ng-content></ng-content>\n</div>\n","import {NgModule} from '@angular/core';\n\nimport {TuiElasticContainerComponent} from './elastic-container.component';\nimport {TuiElasticContainerDirective} from './elastic-container.directive';\n\n@NgModule({\n declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective],\n exports: [TuiElasticContainerComponent],\n})\nexport class TuiElasticContainerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["merge","debounceTime","map","distinctUntilChanged","i0","ElementRef","ResizeObserverService","MutationObserverService","MUTATION_OBSERVER_INIT","Directive","Inject","Output","i1.TuiElasticContainerDirective","Component","ChangeDetectionStrategy","HostBinding","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,QAAA,4BAAA,kBAAA,YAAA;IAQI,IAAA,SAAA,4BAAA,CACyC,UAAmC,EACxB,OAA4B,EAC1B,SAA8B,EAAA;YAHpF,IAII,KAAA,GAAA,IAAA,CAAA;IAHqC,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;IACxB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAqB;IAC1B,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAqB;IAT3E,QAAA,IAAA,CAAA,mBAAmB,GAAGA,QAAK,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CACnEC,sBAAY,CAAC,CAAC,CAAC,EACfC,aAAG,CAAC,YAAA,EAAM,OAAA,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,GAAA,CAAC,EACrDC,8BAAoB,EAAE,CACzB,CAAC;SAME;;;IAZK,4BAAA,CAAA,IAAA,GAAAC,aAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IA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,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,yBAAyB,EAHnB,YAAA,EAAA,CAAA,4BAA4B,EAAE,4BAA4B,aAC/D,4BAA4B,CAAA,EAAA,CAAA,CAAA;kJAE7B,yBAAyB,EAAA,CAAA,CAAA;sHAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;sBAJrCY,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACN,oBAAA,YAAY,EAAE,CAAC,4BAA4B,EAAE,4BAA4B,CAAC;wBAC1E,OAAO,EAAE,CAAC,4BAA4B,CAAC;qBAC1C,CAAA;;;ICRD;;IAEG;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/kit/components/accordion'), require('@taiga-ui/kit/components/action'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/avatar'), require('@taiga-ui/kit/components/badge'), require('@taiga-ui/kit/components/badged-content'), require('@taiga-ui/kit/components/breadcrumbs'), require('@taiga-ui/kit/components/calendar-month'), require('@taiga-ui/kit/components/calendar-range'), require('@taiga-ui/kit/components/carousel'), require('@taiga-ui/kit/components/checkbox'), require('@taiga-ui/kit/components/checkbox-block'), require('@taiga-ui/kit/components/checkbox-labeled'), require('@taiga-ui/kit/components/combo-box'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@taiga-ui/kit/components/files'), require('@taiga-ui/kit/components/filter'), require('@taiga-ui/kit/components/input'), require('@taiga-ui/kit/components/input-copy'), require('@taiga-ui/kit/components/input-count'), require('@taiga-ui/kit/components/input-date'), require('@taiga-ui/kit/components/input-date-range'), require('@taiga-ui/kit/components/input-date-time'), require('@taiga-ui/kit/components/input-files'), require('@taiga-ui/kit/components/input-inline'), require('@taiga-ui/kit/components/input-month'), require('@taiga-ui/kit/components/input-month-range'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/input-password'), require('@taiga-ui/kit/components/input-phone'), require('@taiga-ui/kit/components/input-phone-international'), require('@taiga-ui/kit/components/input-range'), require('@taiga-ui/kit/components/input-slider'), require('@taiga-ui/kit/components/input-tag'), require('@taiga-ui/kit/components/input-time'), require('@taiga-ui/kit/components/input-year'), require('@taiga-ui/kit/components/island'), require('@taiga-ui/kit/components/items-with-more'), require('@taiga-ui/kit/components/line-clamp'), require('@taiga-ui/kit/components/marker-icon'), require('@taiga-ui/kit/components/multi-select'), require('@taiga-ui/kit/components/multi-select-option'), require('@taiga-ui/kit/components/pagination'), require('@taiga-ui/kit/components/pdf-viewer'), require('@taiga-ui/kit/components/progress'), require('@taiga-ui/kit/components/push'), require('@taiga-ui/kit/components/radio'), require('@taiga-ui/kit/components/radio-block'), require('@taiga-ui/kit/components/radio-group'), require('@taiga-ui/kit/components/radio-labeled'), require('@taiga-ui/kit/components/radio-list'), require('@taiga-ui/kit/components/range'), require('@taiga-ui/kit/components/rating'), require('@taiga-ui/kit/components/select'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/components/stepper'), require('@taiga-ui/kit/components/tabs'), require('@taiga-ui/kit/components/tag'), require('@taiga-ui/kit/components/text-area'), require('@taiga-ui/kit/components/tiles'), require('@taiga-ui/kit/components/toggle'), require('@taiga-ui/kit/components/tree')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components', ['exports', '@taiga-ui/kit/components/accordion', '@taiga-ui/kit/components/action', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/avatar', '@taiga-ui/kit/components/badge', '@taiga-ui/kit/components/badged-content', '@taiga-ui/kit/components/breadcrumbs', '@taiga-ui/kit/components/calendar-month', '@taiga-ui/kit/components/calendar-range', '@taiga-ui/kit/components/carousel', '@taiga-ui/kit/components/checkbox', '@taiga-ui/kit/components/checkbox-block', '@taiga-ui/kit/components/checkbox-labeled', '@taiga-ui/kit/components/combo-box', '@taiga-ui/kit/components/data-list-wrapper', '@taiga-ui/kit/components/files', '@taiga-ui/kit/components/filter', '@taiga-ui/kit/components/input', '@taiga-ui/kit/components/input-copy', '@taiga-ui/kit/components/input-count', '@taiga-ui/kit/components/input-date', '@taiga-ui/kit/components/input-date-range', '@taiga-ui/kit/components/input-date-time', '@taiga-ui/kit/components/input-files', '@taiga-ui/kit/components/input-inline', '@taiga-ui/kit/components/input-month', '@taiga-ui/kit/components/input-month-range', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/input-password', '@taiga-ui/kit/components/input-phone', '@taiga-ui/kit/components/input-phone-international', '@taiga-ui/kit/components/input-range', '@taiga-ui/kit/components/input-slider', '@taiga-ui/kit/components/input-tag', '@taiga-ui/kit/components/input-time', '@taiga-ui/kit/components/input-year', '@taiga-ui/kit/components/island', '@taiga-ui/kit/components/items-with-more', '@taiga-ui/kit/components/line-clamp', '@taiga-ui/kit/components/marker-icon', '@taiga-ui/kit/components/multi-select', '@taiga-ui/kit/components/multi-select-option', '@taiga-ui/kit/components/pagination', '@taiga-ui/kit/components/pdf-viewer', '@taiga-ui/kit/components/progress', '@taiga-ui/kit/components/push', '@taiga-ui/kit/components/radio', '@taiga-ui/kit/components/radio-block', '@taiga-ui/kit/components/radio-group', '@taiga-ui/kit/components/radio-labeled', '@taiga-ui/kit/components/radio-list', '@taiga-ui/kit/components/range', '@taiga-ui/kit/components/rating', '@taiga-ui/kit/components/select', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/components/stepper', '@taiga-ui/kit/components/tabs', '@taiga-ui/kit/components/tag', '@taiga-ui/kit/components/text-area', '@taiga-ui/kit/components/tiles', '@taiga-ui/kit/components/toggle', '@taiga-ui/kit/components/tree'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = {}), global["taiga-ui"].kit.components.accordion, global["taiga-ui"].kit.components.action, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components.avatar, global["taiga-ui"].kit.components.badge, global["taiga-ui"].kit.components["badged-content"], global["taiga-ui"].kit.components.breadcrumbs, global["taiga-ui"].kit.components["calendar-month"], global["taiga-ui"].kit.components["calendar-range"], global["taiga-ui"].kit.components.carousel, global["taiga-ui"].kit.components.checkbox, global["taiga-ui"].kit.components["checkbox-block"], global["taiga-ui"].kit.components["checkbox-labeled"], global["taiga-ui"].kit.components["combo-box"], global["taiga-ui"].kit.components["data-list-wrapper"], global["taiga-ui"].kit.components.files, global["taiga-ui"].kit.components.filter, global["taiga-ui"].kit.components.input, global["taiga-ui"].kit.components["input-copy"], global["taiga-ui"].kit.components["input-count"], global["taiga-ui"].kit.components["input-date"], global["taiga-ui"].kit.components["input-date-range"], global["taiga-ui"].kit.components["input-date-time"], global["taiga-ui"].kit.components["input-files"], global["taiga-ui"].kit.components["input-inline"], global["taiga-ui"].kit.components["input-month"], global["taiga-ui"].kit.components["input-month-range"], global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.components["input-password"], global["taiga-ui"].kit.components["input-phone"], global["taiga-ui"].kit.components["input-phone-international"], global["taiga-ui"].kit.components["input-range"], global["taiga-ui"].kit.components["input-slider"], global["taiga-ui"].kit.components["input-tag"], global["taiga-ui"].kit.components["input-time"], global["taiga-ui"].kit.components["input-year"], global["taiga-ui"].kit.components.island, global["taiga-ui"].kit.components["items-with-more"], global["taiga-ui"].kit.components["line-clamp"], global["taiga-ui"].kit.components["marker-icon"], global["taiga-ui"].kit.components["multi-select"], global["taiga-ui"].kit.components["multi-select-option"], global["taiga-ui"].kit.components.pagination, global["taiga-ui"].kit.components["pdf-viewer"], global["taiga-ui"].kit.components.progress, global["taiga-ui"].kit.components.push, global["taiga-ui"].kit.components.radio, global["taiga-ui"].kit.components["radio-block"], global["taiga-ui"].kit.components["radio-group"], global["taiga-ui"].kit.components["radio-labeled"], global["taiga-ui"].kit.components["radio-list"], global["taiga-ui"].kit.components.range, global["taiga-ui"].kit.components.rating, global["taiga-ui"].kit.components.select, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.components.slider, global["taiga-ui"].kit.components.stepper, global["taiga-ui"].kit.components.tabs, global["taiga-ui"].kit.components.tag, global["taiga-ui"].kit.components["text-area"], global["taiga-ui"].kit.components.tiles, global["taiga-ui"].kit.components.toggle, global["taiga-ui"].kit.components.tree));
|
|
5
|
-
})(this, (function (exports, accordion, action, arrow, avatar, badge, badgedContent, breadcrumbs, calendarMonth, calendarRange, carousel, checkbox, checkboxBlock, checkboxLabeled, comboBox, dataListWrapper, files, filter, input, inputCopy, inputCount, inputDate, inputDateRange, inputDateTime, inputFiles, inputInline, inputMonth, inputMonthRange, inputNumber, inputPassword, inputPhone, inputPhoneInternational, inputRange, inputSlider, inputTag, inputTime, inputYear, island, itemsWithMore, lineClamp, markerIcon, multiSelect, multiSelectOption, pagination, pdfViewer, progress, push, radio, radioBlock, radioGroup, radioLabeled, radioList, range, rating, select, selectOption, slider, stepper, tabs, tag, textArea, tiles, toggle, tree) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/kit/components/accordion'), require('@taiga-ui/kit/components/action'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/avatar'), require('@taiga-ui/kit/components/badge'), require('@taiga-ui/kit/components/badged-content'), require('@taiga-ui/kit/components/breadcrumbs'), require('@taiga-ui/kit/components/calendar-month'), require('@taiga-ui/kit/components/calendar-range'), require('@taiga-ui/kit/components/carousel'), require('@taiga-ui/kit/components/checkbox'), require('@taiga-ui/kit/components/checkbox-block'), require('@taiga-ui/kit/components/checkbox-labeled'), require('@taiga-ui/kit/components/combo-box'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@taiga-ui/kit/components/elastic-container'), require('@taiga-ui/kit/components/files'), require('@taiga-ui/kit/components/filter'), require('@taiga-ui/kit/components/input'), require('@taiga-ui/kit/components/input-copy'), require('@taiga-ui/kit/components/input-count'), require('@taiga-ui/kit/components/input-date'), require('@taiga-ui/kit/components/input-date-range'), require('@taiga-ui/kit/components/input-date-time'), require('@taiga-ui/kit/components/input-files'), require('@taiga-ui/kit/components/input-inline'), require('@taiga-ui/kit/components/input-month'), require('@taiga-ui/kit/components/input-month-range'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/input-password'), require('@taiga-ui/kit/components/input-phone'), require('@taiga-ui/kit/components/input-phone-international'), require('@taiga-ui/kit/components/input-range'), require('@taiga-ui/kit/components/input-slider'), require('@taiga-ui/kit/components/input-tag'), require('@taiga-ui/kit/components/input-time'), require('@taiga-ui/kit/components/input-year'), require('@taiga-ui/kit/components/island'), require('@taiga-ui/kit/components/items-with-more'), require('@taiga-ui/kit/components/line-clamp'), require('@taiga-ui/kit/components/marker-icon'), require('@taiga-ui/kit/components/multi-select'), require('@taiga-ui/kit/components/multi-select-option'), require('@taiga-ui/kit/components/pagination'), require('@taiga-ui/kit/components/pdf-viewer'), require('@taiga-ui/kit/components/progress'), require('@taiga-ui/kit/components/push'), require('@taiga-ui/kit/components/radio'), require('@taiga-ui/kit/components/radio-block'), require('@taiga-ui/kit/components/radio-group'), require('@taiga-ui/kit/components/radio-labeled'), require('@taiga-ui/kit/components/radio-list'), require('@taiga-ui/kit/components/range'), require('@taiga-ui/kit/components/rating'), require('@taiga-ui/kit/components/select'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/components/stepper'), require('@taiga-ui/kit/components/tabs'), require('@taiga-ui/kit/components/tag'), require('@taiga-ui/kit/components/text-area'), require('@taiga-ui/kit/components/tiles'), require('@taiga-ui/kit/components/toggle'), require('@taiga-ui/kit/components/tree')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components', ['exports', '@taiga-ui/kit/components/accordion', '@taiga-ui/kit/components/action', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/avatar', '@taiga-ui/kit/components/badge', '@taiga-ui/kit/components/badged-content', '@taiga-ui/kit/components/breadcrumbs', '@taiga-ui/kit/components/calendar-month', '@taiga-ui/kit/components/calendar-range', '@taiga-ui/kit/components/carousel', '@taiga-ui/kit/components/checkbox', '@taiga-ui/kit/components/checkbox-block', '@taiga-ui/kit/components/checkbox-labeled', '@taiga-ui/kit/components/combo-box', '@taiga-ui/kit/components/data-list-wrapper', '@taiga-ui/kit/components/elastic-container', '@taiga-ui/kit/components/files', '@taiga-ui/kit/components/filter', '@taiga-ui/kit/components/input', '@taiga-ui/kit/components/input-copy', '@taiga-ui/kit/components/input-count', '@taiga-ui/kit/components/input-date', '@taiga-ui/kit/components/input-date-range', '@taiga-ui/kit/components/input-date-time', '@taiga-ui/kit/components/input-files', '@taiga-ui/kit/components/input-inline', '@taiga-ui/kit/components/input-month', '@taiga-ui/kit/components/input-month-range', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/input-password', '@taiga-ui/kit/components/input-phone', '@taiga-ui/kit/components/input-phone-international', '@taiga-ui/kit/components/input-range', '@taiga-ui/kit/components/input-slider', '@taiga-ui/kit/components/input-tag', '@taiga-ui/kit/components/input-time', '@taiga-ui/kit/components/input-year', '@taiga-ui/kit/components/island', '@taiga-ui/kit/components/items-with-more', '@taiga-ui/kit/components/line-clamp', '@taiga-ui/kit/components/marker-icon', '@taiga-ui/kit/components/multi-select', '@taiga-ui/kit/components/multi-select-option', '@taiga-ui/kit/components/pagination', '@taiga-ui/kit/components/pdf-viewer', '@taiga-ui/kit/components/progress', '@taiga-ui/kit/components/push', '@taiga-ui/kit/components/radio', '@taiga-ui/kit/components/radio-block', '@taiga-ui/kit/components/radio-group', '@taiga-ui/kit/components/radio-labeled', '@taiga-ui/kit/components/radio-list', '@taiga-ui/kit/components/range', '@taiga-ui/kit/components/rating', '@taiga-ui/kit/components/select', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/components/stepper', '@taiga-ui/kit/components/tabs', '@taiga-ui/kit/components/tag', '@taiga-ui/kit/components/text-area', '@taiga-ui/kit/components/tiles', '@taiga-ui/kit/components/toggle', '@taiga-ui/kit/components/tree'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = {}), global["taiga-ui"].kit.components.accordion, global["taiga-ui"].kit.components.action, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components.avatar, global["taiga-ui"].kit.components.badge, global["taiga-ui"].kit.components["badged-content"], global["taiga-ui"].kit.components.breadcrumbs, global["taiga-ui"].kit.components["calendar-month"], global["taiga-ui"].kit.components["calendar-range"], global["taiga-ui"].kit.components.carousel, global["taiga-ui"].kit.components.checkbox, global["taiga-ui"].kit.components["checkbox-block"], global["taiga-ui"].kit.components["checkbox-labeled"], global["taiga-ui"].kit.components["combo-box"], global["taiga-ui"].kit.components["data-list-wrapper"], global["taiga-ui"].kit.components["elastic-container"], global["taiga-ui"].kit.components.files, global["taiga-ui"].kit.components.filter, global["taiga-ui"].kit.components.input, global["taiga-ui"].kit.components["input-copy"], global["taiga-ui"].kit.components["input-count"], global["taiga-ui"].kit.components["input-date"], global["taiga-ui"].kit.components["input-date-range"], global["taiga-ui"].kit.components["input-date-time"], global["taiga-ui"].kit.components["input-files"], global["taiga-ui"].kit.components["input-inline"], global["taiga-ui"].kit.components["input-month"], global["taiga-ui"].kit.components["input-month-range"], global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.components["input-password"], global["taiga-ui"].kit.components["input-phone"], global["taiga-ui"].kit.components["input-phone-international"], global["taiga-ui"].kit.components["input-range"], global["taiga-ui"].kit.components["input-slider"], global["taiga-ui"].kit.components["input-tag"], global["taiga-ui"].kit.components["input-time"], global["taiga-ui"].kit.components["input-year"], global["taiga-ui"].kit.components.island, global["taiga-ui"].kit.components["items-with-more"], global["taiga-ui"].kit.components["line-clamp"], global["taiga-ui"].kit.components["marker-icon"], global["taiga-ui"].kit.components["multi-select"], global["taiga-ui"].kit.components["multi-select-option"], global["taiga-ui"].kit.components.pagination, global["taiga-ui"].kit.components["pdf-viewer"], global["taiga-ui"].kit.components.progress, global["taiga-ui"].kit.components.push, global["taiga-ui"].kit.components.radio, global["taiga-ui"].kit.components["radio-block"], global["taiga-ui"].kit.components["radio-group"], global["taiga-ui"].kit.components["radio-labeled"], global["taiga-ui"].kit.components["radio-list"], global["taiga-ui"].kit.components.range, global["taiga-ui"].kit.components.rating, global["taiga-ui"].kit.components.select, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.components.slider, global["taiga-ui"].kit.components.stepper, global["taiga-ui"].kit.components.tabs, global["taiga-ui"].kit.components.tag, global["taiga-ui"].kit.components["text-area"], global["taiga-ui"].kit.components.tiles, global["taiga-ui"].kit.components.toggle, global["taiga-ui"].kit.components.tree));
|
|
5
|
+
})(this, (function (exports, accordion, action, arrow, avatar, badge, badgedContent, breadcrumbs, calendarMonth, calendarRange, carousel, checkbox, checkboxBlock, checkboxLabeled, comboBox, dataListWrapper, elasticContainer, files, filter, input, inputCopy, inputCount, inputDate, inputDateRange, inputDateTime, inputFiles, inputInline, inputMonth, inputMonthRange, inputNumber, inputPassword, inputPhone, inputPhoneInternational, inputRange, inputSlider, inputTag, inputTime, inputYear, island, itemsWithMore, lineClamp, markerIcon, multiSelect, multiSelectOption, pagination, pdfViewer, progress, push, radio, radioBlock, radioGroup, radioLabeled, radioList, range, rating, select, selectOption, slider, stepper, tabs, tag, textArea, tiles, toggle, tree) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generated bundle index. Do not edit.
|
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
get: function () { return dataListWrapper[k]; }
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
+
Object.keys(elasticContainer).forEach(function (k) {
|
|
102
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return elasticContainer[k]; }
|
|
105
|
+
});
|
|
106
|
+
});
|
|
101
107
|
Object.keys(files).forEach(function (k) {
|
|
102
108
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
103
109
|
enumerable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components.umd.js","sources":["../../../projects/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components.umd.js","sources":["../../../projects/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TuiElasticContainerComponent {
|
|
3
|
+
height: number;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiElasticContainerComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiElasticContainerComponent, "tui-elastic-container", never, {}, {}, never, ["*"]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiElasticContainerDirective {
|
|
5
|
+
private readonly elementRef;
|
|
6
|
+
private readonly resize$;
|
|
7
|
+
private readonly mutation$;
|
|
8
|
+
readonly tuiElasticContainer: Observable<number>;
|
|
9
|
+
constructor(elementRef: ElementRef<HTMLElement>, resize$: Observable<unknown>, mutation$: Observable<unknown>);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiElasticContainerDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiElasticContainerDirective, "[tuiElasticContainer]", never, {}, { "tuiElasticContainer": "tuiElasticContainer"; }, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./elastic-container.component";
|
|
3
|
+
import * as i2 from "./elastic-container.directive";
|
|
4
|
+
export declare class TuiElasticContainerModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiElasticContainerModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiElasticContainerModule, [typeof i1.TuiElasticContainerComponent, typeof i2.TuiElasticContainerDirective], never, [typeof i1.TuiElasticContainerComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiElasticContainerModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-kit-components-elastic-container.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-kit-components-elastic-container.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-kit-components-elastic-container.js",
|
|
5
|
+
"esm2015": "../../esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-kit-components-elastic-container.js",
|
|
7
|
+
"typings": "taiga-ui-kit-components-elastic-container.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/kit/components/elastic-container"
|
|
10
|
+
}
|
package/components/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from '@taiga-ui/kit/components/checkbox-block';
|
|
|
13
13
|
export * from '@taiga-ui/kit/components/checkbox-labeled';
|
|
14
14
|
export * from '@taiga-ui/kit/components/combo-box';
|
|
15
15
|
export * from '@taiga-ui/kit/components/data-list-wrapper';
|
|
16
|
+
export * from '@taiga-ui/kit/components/elastic-container';
|
|
16
17
|
export * from '@taiga-ui/kit/components/files';
|
|
17
18
|
export * from '@taiga-ui/kit/components/filter';
|
|
18
19
|
export * from '@taiga-ui/kit/components/input';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, HostBinding } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./elastic-container.directive";
|
|
4
|
+
export class TuiElasticContainerComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.height = NaN;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
TuiElasticContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
TuiElasticContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerComponent, selector: "tui-elastic-container", host: { properties: { "style.height.px": "this.height" } }, ngImport: i0, template: "<div (tuiElasticContainer)=\"height = $event\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{transition-property:height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden}\n"], directives: [{ type: i1.TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: ["tuiElasticContainer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'tui-elastic-container',
|
|
15
|
+
templateUrl: './elastic-container.component.html',
|
|
16
|
+
styleUrls: ['./elastic-container.component.less'],
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { height: [{
|
|
20
|
+
type: HostBinding,
|
|
21
|
+
args: ['style.height.px']
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvZWxhc3RpYy1jb250YWluZXIvZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvZWxhc3RpYy1jb250YWluZXIvZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUMsTUFBTSxlQUFlLENBQUM7OztBQVE5RSxNQUFNLE9BQU8sNEJBQTRCO0lBTnpDO1FBUUksV0FBTSxHQUFHLEdBQUcsQ0FBQztLQUNoQjs7MEhBSFksNEJBQTRCOzhHQUE1Qiw0QkFBNEIseUhDUnpDLDBGQUdBOzRGREthLDRCQUE0QjtrQkFOeEMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsdUJBQXVCO29CQUNqQyxXQUFXLEVBQUUsb0NBQW9DO29CQUNqRCxTQUFTLEVBQUUsQ0FBQyxvQ0FBb0MsQ0FBQztvQkFDakQsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07aUJBQ2xEOzhCQUdHLE1BQU07c0JBREwsV0FBVzt1QkFBQyxpQkFBaUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NoYW5nZURldGVjdGlvblN0cmF0ZWd5LCBDb21wb25lbnQsIEhvc3RCaW5kaW5nfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICd0dWktZWxhc3RpYy1jb250YWluZXInLFxuICAgIHRlbXBsYXRlVXJsOiAnLi9lbGFzdGljLWNvbnRhaW5lci5jb21wb25lbnQuaHRtbCcsXG4gICAgc3R5bGVVcmxzOiBbJy4vZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50Lmxlc3MnXSxcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgVHVpRWxhc3RpY0NvbnRhaW5lckNvbXBvbmVudCB7XG4gICAgQEhvc3RCaW5kaW5nKCdzdHlsZS5oZWlnaHQucHgnKVxuICAgIGhlaWdodCA9IE5hTjtcbn1cbiIsIjxkaXYgKHR1aUVsYXN0aWNDb250YWluZXIpPVwiaGVpZ2h0ID0gJGV2ZW50XCI+XG4gICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Directive, ElementRef, Inject, Output } from '@angular/core';
|
|
2
|
+
import { MUTATION_OBSERVER_INIT, MutationObserverService, } from '@ng-web-apis/mutation-observer';
|
|
3
|
+
import { ResizeObserverService } from '@ng-web-apis/resize-observer';
|
|
4
|
+
import { merge } from 'rxjs';
|
|
5
|
+
import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "rxjs";
|
|
8
|
+
export class TuiElasticContainerDirective {
|
|
9
|
+
constructor(elementRef, resize$, mutation$) {
|
|
10
|
+
this.elementRef = elementRef;
|
|
11
|
+
this.resize$ = resize$;
|
|
12
|
+
this.mutation$ = mutation$;
|
|
13
|
+
this.tuiElasticContainer = merge(this.resize$, this.mutation$).pipe(debounceTime(0), map(() => this.elementRef.nativeElement.clientHeight), distinctUntilChanged());
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
TuiElasticContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerDirective, deps: [{ token: ElementRef }, { token: ResizeObserverService }, { token: MutationObserverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
TuiElasticContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: { tuiElasticContainer: "tuiElasticContainer" }, providers: [
|
|
18
|
+
ResizeObserverService,
|
|
19
|
+
MutationObserverService,
|
|
20
|
+
{
|
|
21
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
22
|
+
useValue: {
|
|
23
|
+
childList: true,
|
|
24
|
+
characterData: true,
|
|
25
|
+
subtree: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
], ngImport: i0 });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerDirective, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[tuiElasticContainer]',
|
|
33
|
+
providers: [
|
|
34
|
+
ResizeObserverService,
|
|
35
|
+
MutationObserverService,
|
|
36
|
+
{
|
|
37
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
38
|
+
useValue: {
|
|
39
|
+
childList: true,
|
|
40
|
+
characterData: true,
|
|
41
|
+
subtree: true,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
}]
|
|
46
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
47
|
+
type: Inject,
|
|
48
|
+
args: [ElementRef]
|
|
49
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
50
|
+
type: Inject,
|
|
51
|
+
args: [ResizeObserverService]
|
|
52
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
53
|
+
type: Inject,
|
|
54
|
+
args: [MutationObserverService]
|
|
55
|
+
}] }]; }, propDecorators: { tuiElasticContainer: [{
|
|
56
|
+
type: Output
|
|
57
|
+
}] } });
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxhc3RpYy1jb250YWluZXIuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvZWxhc3RpYy1jb250YWluZXIvZWxhc3RpYy1jb250YWluZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUNILHNCQUFzQixFQUN0Qix1QkFBdUIsR0FDMUIsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN4QyxPQUFPLEVBQUMscUJBQXFCLEVBQUMsTUFBTSw4QkFBOEIsQ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Byb3ZpZGU6IE1VVEFUSU9OX09CU0VSVkVSX0lOSVQsXG4gICAgICAgICAgICB1c2VWYWx1ZToge1xuICAgICAgICAgICAgICAgIGNoaWxkTGlzdDogdHJ1ZSxcbiAgICAgICAgICAgICAgICBjaGFyYWN0ZXJEYXRhOiB0cnVlLFxuICAgICAgICAgICAgICAgIHN1YnRyZWU6IHRydWUsXG4gICAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgIF0sXG59KVxuZXhwb3J0IGNsYXNzIFR1aUVsYXN0aWNDb250YWluZXJEaXJlY3RpdmUge1xuICAgIEBPdXRwdXQoKVxuICAgIHJlYWRvbmx5IHR1aUVsYXN0aWNDb250YWluZXIgPSBtZXJnZSh0aGlzLnJlc2l6ZSQsIHRoaXMubXV0YXRpb24kKS5waXBlKFxuICAgICAgICBkZWJvdW5jZVRpbWUoMCksXG4gICAgICAgIG1hcCgoKSA9PiB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudC5jbGllbnRIZWlnaHQpLFxuICAgICAgICBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpLFxuICAgICk7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgQEluamVjdChFbGVtZW50UmVmKSBwcml2YXRlIHJlYWRvbmx5IGVsZW1lbnRSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+LFxuICAgICAgICBASW5qZWN0KFJlc2l6ZU9ic2VydmVyU2VydmljZSkgcHJpdmF0ZSByZWFkb25seSByZXNpemUkOiBPYnNlcnZhYmxlPHVua25vd24+LFxuICAgICAgICBASW5qZWN0KE11dGF0aW9uT2JzZXJ2ZXJTZXJ2aWNlKSBwcml2YXRlIHJlYWRvbmx5IG11dGF0aW9uJDogT2JzZXJ2YWJsZTx1bmtub3duPixcbiAgICApIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { TuiElasticContainerComponent } from './elastic-container.component';
|
|
3
|
+
import { TuiElasticContainerDirective } from './elastic-container.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TuiElasticContainerModule {
|
|
6
|
+
}
|
|
7
|
+
TuiElasticContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
TuiElasticContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective], exports: [TuiElasticContainerComponent] });
|
|
9
|
+
TuiElasticContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective],
|
|
14
|
+
exports: [TuiElasticContainerComponent],
|
|
15
|
+
}]
|
|
16
|
+
}] });
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxhc3RpYy1jb250YWluZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvZWxhc3RpYy1jb250YWluZXIvZWxhc3RpYy1jb250YWluZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdkMsT0FBTyxFQUFDLDRCQUE0QixFQUFDLE1BQU0sK0JBQStCLENBQUM7QUFDM0UsT0FBTyxFQUFDLDRCQUE0QixFQUFDLE1BQU0sK0JBQStCLENBQUM7O0FBTTNFLE1BQU0sT0FBTyx5QkFBeUI7O3VIQUF6Qix5QkFBeUI7d0hBQXpCLHlCQUF5QixpQkFIbkIsNEJBQTRCLEVBQUUsNEJBQTRCLGFBQy9ELDRCQUE0Qjt3SEFFN0IseUJBQXlCOzRGQUF6Qix5QkFBeUI7a0JBSnJDLFFBQVE7bUJBQUM7b0JBQ04sWUFBWSxFQUFFLENBQUMsNEJBQTRCLEVBQUUsNEJBQTRCLENBQUM7b0JBQzFFLE9BQU8sRUFBRSxDQUFDLDRCQUE0QixDQUFDO2lCQUMxQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge1R1aUVsYXN0aWNDb250YWluZXJDb21wb25lbnR9IGZyb20gJy4vZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50JztcbmltcG9ydCB7VHVpRWxhc3RpY0NvbnRhaW5lckRpcmVjdGl2ZX0gZnJvbSAnLi9lbGFzdGljLWNvbnRhaW5lci5kaXJlY3RpdmUnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGRlY2xhcmF0aW9uczogW1R1aUVsYXN0aWNDb250YWluZXJDb21wb25lbnQsIFR1aUVsYXN0aWNDb250YWluZXJEaXJlY3RpdmVdLFxuICAgIGV4cG9ydHM6IFtUdWlFbGFzdGljQ29udGFpbmVyQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpRWxhc3RpY0NvbnRhaW5lck1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './elastic-container.component';
|
|
2
|
+
export * from './elastic-container.directive';
|
|
3
|
+
export * from './elastic-container.module';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9lbGFzdGljLWNvbnRhaW5lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZWxhc3RpYy1jb250YWluZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZWxhc3RpYy1jb250YWluZXIuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vZWxhc3RpYy1jb250YWluZXIubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWkta2l0LWNvbXBvbmVudHMtZWxhc3RpYy1jb250YWluZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9lbGFzdGljLWNvbnRhaW5lci90YWlnYS11aS1raXQtY29tcG9uZW50cy1lbGFzdGljLWNvbnRhaW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -13,6 +13,7 @@ export * from '@taiga-ui/kit/components/checkbox-block';
|
|
|
13
13
|
export * from '@taiga-ui/kit/components/checkbox-labeled';
|
|
14
14
|
export * from '@taiga-ui/kit/components/combo-box';
|
|
15
15
|
export * from '@taiga-ui/kit/components/data-list-wrapper';
|
|
16
|
+
export * from '@taiga-ui/kit/components/elastic-container';
|
|
16
17
|
export * from '@taiga-ui/kit/components/files';
|
|
17
18
|
export * from '@taiga-ui/kit/components/filter';
|
|
18
19
|
export * from '@taiga-ui/kit/components/input';
|
|
@@ -61,4 +62,4 @@ export * from '@taiga-ui/kit/components/text-area';
|
|
|
61
62
|
export * from '@taiga-ui/kit/components/tiles';
|
|
62
63
|
export * from '@taiga-ui/kit/components/toggle';
|
|
63
64
|
export * from '@taiga-ui/kit/components/tree';
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9DQUFvQyxDQUFDO0FBQ25ELGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyx5Q0FBeUMsQ0FBQztBQUN4RCxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyx5Q0FBeUMsQ0FBQztBQUN4RCxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyx5Q0FBeUMsQ0FBQztBQUN4RCxjQUFjLDJDQUEyQyxDQUFDO0FBQzF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XVpL2tpdC9jb21wb25lbnRzL3JhZGlvLWxpc3QnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2tpdC9jb21wb25lbnRzL3JhbmdlJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9yYXRpbmcnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2tpdC9jb21wb25lbnRzL3NlbGVjdCc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvc2VsZWN0LW9wdGlvbic7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvc2xpZGVyJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9zdGVwcGVyJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90YWJzJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90YWcnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2tpdC9jb21wb25lbnRzL3RleHQtYXJlYSc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdGlsZXMnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2tpdC9jb21wb25lbnRzL3RvZ2dsZSc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdHJlZSc7XG4iXX0=
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Directive, Inject, Output, Component, ChangeDetectionStrategy, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
import { MutationObserverService, MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
|
|
4
|
+
import { ResizeObserverService } from '@ng-web-apis/resize-observer';
|
|
5
|
+
import * as i1 from 'rxjs';
|
|
6
|
+
import { merge } from 'rxjs';
|
|
7
|
+
import { debounceTime, map, distinctUntilChanged } from 'rxjs/operators';
|
|
8
|
+
|
|
9
|
+
class TuiElasticContainerDirective {
|
|
10
|
+
constructor(elementRef, resize$, mutation$) {
|
|
11
|
+
this.elementRef = elementRef;
|
|
12
|
+
this.resize$ = resize$;
|
|
13
|
+
this.mutation$ = mutation$;
|
|
14
|
+
this.tuiElasticContainer = merge(this.resize$, this.mutation$).pipe(debounceTime(0), map(() => this.elementRef.nativeElement.clientHeight), distinctUntilChanged());
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
TuiElasticContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerDirective, deps: [{ token: ElementRef }, { token: ResizeObserverService }, { token: MutationObserverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
TuiElasticContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: { tuiElasticContainer: "tuiElasticContainer" }, providers: [
|
|
19
|
+
ResizeObserverService,
|
|
20
|
+
MutationObserverService,
|
|
21
|
+
{
|
|
22
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
23
|
+
useValue: {
|
|
24
|
+
childList: true,
|
|
25
|
+
characterData: true,
|
|
26
|
+
subtree: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
], ngImport: i0 });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[tuiElasticContainer]',
|
|
34
|
+
providers: [
|
|
35
|
+
ResizeObserverService,
|
|
36
|
+
MutationObserverService,
|
|
37
|
+
{
|
|
38
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
39
|
+
useValue: {
|
|
40
|
+
childList: true,
|
|
41
|
+
characterData: true,
|
|
42
|
+
subtree: true,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
}]
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
48
|
+
type: Inject,
|
|
49
|
+
args: [ElementRef]
|
|
50
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
51
|
+
type: Inject,
|
|
52
|
+
args: [ResizeObserverService]
|
|
53
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [MutationObserverService]
|
|
56
|
+
}] }]; }, propDecorators: { tuiElasticContainer: [{
|
|
57
|
+
type: Output
|
|
58
|
+
}] } });
|
|
59
|
+
|
|
60
|
+
class TuiElasticContainerComponent {
|
|
61
|
+
constructor() {
|
|
62
|
+
this.height = NaN;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
TuiElasticContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
TuiElasticContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiElasticContainerComponent, selector: "tui-elastic-container", host: { properties: { "style.height.px": "this.height" } }, ngImport: i0, template: "<div (tuiElasticContainer)=\"height = $event\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{transition-property:height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden}\n"], directives: [{ type: TuiElasticContainerDirective, selector: "[tuiElasticContainer]", outputs: ["tuiElasticContainer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerComponent, decorators: [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: 'tui-elastic-container',
|
|
71
|
+
templateUrl: './elastic-container.component.html',
|
|
72
|
+
styleUrls: ['./elastic-container.component.less'],
|
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
|
+
}]
|
|
75
|
+
}], propDecorators: { height: [{
|
|
76
|
+
type: HostBinding,
|
|
77
|
+
args: ['style.height.px']
|
|
78
|
+
}] } });
|
|
79
|
+
|
|
80
|
+
class TuiElasticContainerModule {
|
|
81
|
+
}
|
|
82
|
+
TuiElasticContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
83
|
+
TuiElasticContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective], exports: [TuiElasticContainerComponent] });
|
|
84
|
+
TuiElasticContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiElasticContainerModule, decorators: [{
|
|
86
|
+
type: NgModule,
|
|
87
|
+
args: [{
|
|
88
|
+
declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective],
|
|
89
|
+
exports: [TuiElasticContainerComponent],
|
|
90
|
+
}]
|
|
91
|
+
}] });
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Generated bundle index. Do not edit.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
export { TuiElasticContainerComponent, TuiElasticContainerDirective, TuiElasticContainerModule };
|
|
98
|
+
//# sourceMappingURL=taiga-ui-kit-components-elastic-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-elastic-container.js","sources":["../../../projects/kit/components/elastic-container/elastic-container.directive.ts","../../../projects/kit/components/elastic-container/elastic-container.component.ts","../../../projects/kit/components/elastic-container/elastic-container.component.html","../../../projects/kit/components/elastic-container/elastic-container.module.ts","../../../projects/kit/components/elastic-container/taiga-ui-kit-components-elastic-container.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {merge, Observable} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, map} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiElasticContainer]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n})\nexport class TuiElasticContainerDirective {\n @Output()\n readonly tuiElasticContainer = merge(this.resize$, this.mutation$).pipe(\n debounceTime(0),\n map(() => this.elementRef.nativeElement.clientHeight),\n distinctUntilChanged(),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ResizeObserverService) private readonly resize$: Observable<unknown>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\n\n@Component({\n selector: 'tui-elastic-container',\n templateUrl: './elastic-container.component.html',\n styleUrls: ['./elastic-container.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiElasticContainerComponent {\n @HostBinding('style.height.px')\n height = NaN;\n}\n","<div (tuiElasticContainer)=\"height = $event\">\n <ng-content></ng-content>\n</div>\n","import {NgModule} from '@angular/core';\n\nimport {TuiElasticContainerComponent} from './elastic-container.component';\nimport {TuiElasticContainerDirective} from './elastic-container.directive';\n\n@NgModule({\n declarations: [TuiElasticContainerComponent, TuiElasticContainerDirective],\n exports: [TuiElasticContainerComponent],\n})\nexport class TuiElasticContainerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiElasticContainerDirective"],"mappings":";;;;;;;;MAwBa,4BAA4B,CAAA;AAQrC,IAAA,WAAA,CACyC,UAAmC,EACxB,OAA4B,EAC1B,SAA8B,EAAA;QAF3C,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACxB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAqB;QAC1B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAqB;AAT3E,QAAA,IAAA,CAAA,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CACnE,YAAY,CAAC,CAAC,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,CAAC,EACrD,oBAAoB,EAAE,CACzB,CAAC;KAME;;AAZK,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,EASzB,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,UAAU,EACV,EAAA,EAAA,KAAA,EAAA,qBAAqB,aACrB,uBAAuB,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAX1B,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,EAb1B,QAAA,EAAA,uBAAA,EAAA,OAAA,EAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,EAAA,SAAA,EAAA;QAC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* from '@taiga-ui/kit/components/combo-box';
|
|
15
15
|
export * from '@taiga-ui/kit/components/data-list-wrapper';
|
|
16
|
+
export * from '@taiga-ui/kit/components/elastic-container';
|
|
16
17
|
export * from '@taiga-ui/kit/components/files';
|
|
17
18
|
export * from '@taiga-ui/kit/components/filter';
|
|
18
19
|
export * from '@taiga-ui/kit/components/input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components.js","sources":["../../../projects/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components.js","sources":["../../../projects/kit/components/taiga-ui-kit-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
|