@taiga-ui/core 3.33.1 → 3.34.0
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-core-components-button.umd.js +0 -15
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +0 -348
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +0 -18
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +0 -321
- package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +200 -524
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.js +136 -469
- package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +0 -9
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.js +4 -325
- package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +0 -333
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +0 -330
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +0 -327
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +0 -336
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +4 -343
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +0 -12
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +0 -27
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +0 -333
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +0 -321
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +0 -3
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +0 -3
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +0 -27
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +0 -24
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +0 -321
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +0 -327
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
- package/constants/cache-basting-payload.d.ts +1 -1
- package/esm2015/components/button/button.component.js +2 -18
- package/esm2015/components/calendar/calendar.component.js +2 -33
- package/esm2015/components/data-list/data-list.component.js +2 -8
- package/esm2015/components/data-list/opt-group.directive.js +1 -6
- package/esm2015/components/data-list/option/option.component.js +2 -11
- package/esm2015/components/error/error.component.js +2 -6
- package/esm2015/components/expand/expand.component.js +2 -9
- package/esm2015/components/group/group.directive.js +2 -18
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +2 -11
- package/esm2015/components/label/label.component.js +1 -6
- package/esm2015/components/link/link.component.js +2 -18
- package/esm2015/components/loader/loader.component.js +2 -15
- package/esm2015/components/notification/notification.component.js +2 -12
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +2 -21
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +1 -24
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +2 -15
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +2 -29
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +2 -18
- package/esm2015/components/root/root.component.js +1 -1
- package/esm2015/components/scrollbar/scrollbar.component.js +2 -6
- package/esm2015/components/svg/svg.component.js +2 -5
- package/esm2015/components/tooltip/tooltip.component.js +2 -6
- package/esm2015/directives/dropdown/dropdown-hover.directive.js +2 -9
- package/esm2015/directives/dropdown/dropdown-options.directive.js +1 -21
- package/esm2015/directives/dropdown/dropdown-selection.directive.js +2 -6
- package/esm2015/directives/hint/hint-hover.directive.js +2 -9
- package/esm2015/directives/hint/hint-options.directive.js +2 -15
- package/esm2015/directives/hint/hint-position.directive.js +2 -5
- package/esm2015/directives/hint/hint.directive.js +2 -6
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -6
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -12
- package/fesm2015/taiga-ui-core-components-button.js +1 -17
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +1 -32
- package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +1 -19
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +1 -5
- package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +1 -8
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-group.js +1 -17
- package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -10
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-label.js +0 -5
- package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +1 -17
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +1 -14
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +1 -11
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -20
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +0 -23
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +1 -14
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +1 -28
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +1 -17
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +1 -5
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +1 -4
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +1 -5
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +1 -28
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +2 -25
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -5
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -11
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,545 +1,221 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/constants'), require('@taiga-ui/core/components/loader'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/expand', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/constants', '@taiga-ui/core/components/loader', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.components = global["taiga-ui"].core.components || {}, global["taiga-ui"].core.components.expand = {}), global.ng.core, global.cdk, global["taiga-ui"].core.constants, global["taiga-ui"].core.components.loader, global.ng.common));
|
|
5
5
|
})(this, (function (exports, i0, cdk, constants, i1, i2) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
});
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
20
23
|
}
|
|
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
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
-
***************************************************************************** */
|
|
43
|
-
/* global Reflect, Promise */
|
|
44
|
-
var extendStatics = function (d, b) {
|
|
45
|
-
extendStatics = Object.setPrototypeOf ||
|
|
46
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47
|
-
function (d, b) { for (var p in b)
|
|
48
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
49
|
-
d[p] = b[p]; };
|
|
50
|
-
return extendStatics(d, b);
|
|
51
|
-
};
|
|
52
|
-
function __extends(d, b) {
|
|
53
|
-
if (typeof b !== "function" && b !== null)
|
|
54
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55
|
-
extendStatics(d, b);
|
|
56
|
-
function __() { this.constructor = d; }
|
|
57
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
58
|
-
}
|
|
59
|
-
var __assign = function () {
|
|
60
|
-
__assign = Object.assign || function __assign(t) {
|
|
61
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
62
|
-
s = arguments[i];
|
|
63
|
-
for (var p in s)
|
|
64
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
65
|
-
t[p] = s[p];
|
|
66
|
-
}
|
|
67
|
-
return t;
|
|
68
|
-
};
|
|
69
|
-
return __assign.apply(this, arguments);
|
|
70
|
-
};
|
|
71
|
-
function __rest(s, e) {
|
|
72
|
-
var t = {};
|
|
73
|
-
for (var p in s)
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
75
|
-
t[p] = s[p];
|
|
76
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
77
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
79
|
-
t[p[i]] = s[p[i]];
|
|
29
|
+
var TuiExpandContentDirective = /** @class */ (function () {
|
|
30
|
+
function TuiExpandContentDirective() {
|
|
80
31
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
reject(e);
|
|
108
|
-
} }
|
|
109
|
-
function rejected(value) { try {
|
|
110
|
-
step(generator["throw"](value));
|
|
32
|
+
return TuiExpandContentDirective;
|
|
33
|
+
}());
|
|
34
|
+
TuiExpandContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandContentDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
35
|
+
TuiExpandContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiExpandContentDirective, selector: "[tuiExpandContent]", ngImport: i0__namespace });
|
|
36
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandContentDirective, decorators: [{
|
|
37
|
+
type: i0.Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: '[tuiExpandContent]',
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
42
|
+
|
|
43
|
+
var State;
|
|
44
|
+
(function (State) {
|
|
45
|
+
State[State["Idle"] = 0] = "Idle";
|
|
46
|
+
State[State["Loading"] = 1] = "Loading";
|
|
47
|
+
State[State["Prepared"] = 2] = "Prepared";
|
|
48
|
+
State[State["Animated"] = 3] = "Animated";
|
|
49
|
+
})(State || (State = {}));
|
|
50
|
+
var LOADER_HEIGHT = 48;
|
|
51
|
+
var TuiExpandComponent = /** @class */ (function () {
|
|
52
|
+
function TuiExpandComponent(cdr) {
|
|
53
|
+
this.cdr = cdr;
|
|
54
|
+
this.state = State.Idle;
|
|
55
|
+
this.async = false;
|
|
56
|
+
this.content = null;
|
|
57
|
+
this.expanded = null;
|
|
111
58
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function __generator(thisArg, body) {
|
|
120
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
121
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
122
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
123
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
124
|
-
function step(op) {
|
|
125
|
-
if (f)
|
|
126
|
-
throw new TypeError("Generator is already executing.");
|
|
127
|
-
while (_)
|
|
128
|
-
try {
|
|
129
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
130
|
-
return t;
|
|
131
|
-
if (y = 0, t)
|
|
132
|
-
op = [op[0] & 2, t.value];
|
|
133
|
-
switch (op[0]) {
|
|
134
|
-
case 0:
|
|
135
|
-
case 1:
|
|
136
|
-
t = op;
|
|
137
|
-
break;
|
|
138
|
-
case 4:
|
|
139
|
-
_.label++;
|
|
140
|
-
return { value: op[1], done: false };
|
|
141
|
-
case 5:
|
|
142
|
-
_.label++;
|
|
143
|
-
y = op[1];
|
|
144
|
-
op = [0];
|
|
145
|
-
continue;
|
|
146
|
-
case 7:
|
|
147
|
-
op = _.ops.pop();
|
|
148
|
-
_.trys.pop();
|
|
149
|
-
continue;
|
|
150
|
-
default:
|
|
151
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
152
|
-
_ = 0;
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
156
|
-
_.label = op[1];
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
160
|
-
_.label = t[1];
|
|
161
|
-
t = op;
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
if (t && _.label < t[2]) {
|
|
165
|
-
_.label = t[2];
|
|
166
|
-
_.ops.push(op);
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
if (t[2])
|
|
170
|
-
_.ops.pop();
|
|
171
|
-
_.trys.pop();
|
|
172
|
-
continue;
|
|
59
|
+
Object.defineProperty(TuiExpandComponent.prototype, "expandedSetter", {
|
|
60
|
+
set: function (expanded) {
|
|
61
|
+
if (this.expanded === null) {
|
|
62
|
+
this.expanded = expanded;
|
|
63
|
+
return;
|
|
173
64
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
65
|
+
if (this.state !== State.Idle) {
|
|
66
|
+
this.expanded = expanded;
|
|
67
|
+
this.state = State.Animated;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this.expanded = expanded;
|
|
71
|
+
this.retrigger(this.async && expanded ? State.Loading : State.Animated);
|
|
72
|
+
},
|
|
73
|
+
enumerable: false,
|
|
74
|
+
configurable: true
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(TuiExpandComponent.prototype, "overflow", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this.state !== State.Idle;
|
|
79
|
+
},
|
|
80
|
+
enumerable: false,
|
|
81
|
+
configurable: true
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(TuiExpandComponent.prototype, "loading", {
|
|
84
|
+
get: function () {
|
|
85
|
+
return !!this.expanded && this.async && this.state === State.Loading;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(TuiExpandComponent.prototype, "height", {
|
|
91
|
+
get: function () {
|
|
92
|
+
var _a = this, expanded = _a.expanded, state = _a.state, contentWrapper = _a.contentWrapper;
|
|
93
|
+
if ((expanded && state === State.Prepared) ||
|
|
94
|
+
(!expanded && state === State.Animated)) {
|
|
95
|
+
return 0;
|
|
96
|
+
}
|
|
97
|
+
if (contentWrapper &&
|
|
98
|
+
((!expanded && state === State.Prepared) ||
|
|
99
|
+
(expanded && state === State.Animated))) {
|
|
100
|
+
return contentWrapper.nativeElement.offsetHeight;
|
|
101
|
+
}
|
|
102
|
+
if (contentWrapper && expanded && state === State.Loading) {
|
|
103
|
+
return Math.max(contentWrapper.nativeElement.offsetHeight, LOADER_HEIGHT);
|
|
104
|
+
}
|
|
105
|
+
return null;
|
|
106
|
+
},
|
|
107
|
+
enumerable: false,
|
|
108
|
+
configurable: true
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(TuiExpandComponent.prototype, "contentVisible", {
|
|
111
|
+
get: function () {
|
|
112
|
+
return this.expanded || this.state !== State.Idle;
|
|
113
|
+
},
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
117
|
+
TuiExpandComponent.prototype.onTransitionEnd = function (_a) {
|
|
118
|
+
var propertyName = _a.propertyName;
|
|
119
|
+
if (propertyName === 'opacity' && this.state === State.Animated) {
|
|
120
|
+
this.state = State.Idle;
|
|
212
121
|
}
|
|
213
122
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
if (!m)
|
|
219
|
-
return o;
|
|
220
|
-
var i = m.call(o), r, ar = [], e;
|
|
221
|
-
try {
|
|
222
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
223
|
-
ar.push(r.value);
|
|
224
|
-
}
|
|
225
|
-
catch (error) {
|
|
226
|
-
e = { error: error };
|
|
227
|
-
}
|
|
228
|
-
finally {
|
|
229
|
-
try {
|
|
230
|
-
if (r && !r.done && (m = i["return"]))
|
|
231
|
-
m.call(i);
|
|
232
|
-
}
|
|
233
|
-
finally {
|
|
234
|
-
if (e)
|
|
235
|
-
throw e.error;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
return ar;
|
|
239
|
-
}
|
|
240
|
-
/** @deprecated */
|
|
241
|
-
function __spread() {
|
|
242
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
243
|
-
ar = ar.concat(__read(arguments[i]));
|
|
244
|
-
return ar;
|
|
245
|
-
}
|
|
246
|
-
/** @deprecated */
|
|
247
|
-
function __spreadArrays() {
|
|
248
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
249
|
-
s += arguments[i].length;
|
|
250
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
251
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
252
|
-
r[k] = a[j];
|
|
253
|
-
return r;
|
|
254
|
-
}
|
|
255
|
-
function __spreadArray(to, from, pack) {
|
|
256
|
-
if (pack || arguments.length === 2)
|
|
257
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
258
|
-
if (ar || !(i in from)) {
|
|
259
|
-
if (!ar)
|
|
260
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
261
|
-
ar[i] = from[i];
|
|
123
|
+
TuiExpandComponent.prototype.onExpandLoaded = function (event) {
|
|
124
|
+
event.stopPropagation();
|
|
125
|
+
if (this.state === State.Loading) {
|
|
126
|
+
this.retrigger(State.Animated);
|
|
262
127
|
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
function __importDefault(mod) {
|
|
328
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
329
|
-
}
|
|
330
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
331
|
-
if (kind === "a" && !f)
|
|
332
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
333
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
334
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
335
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
336
|
-
}
|
|
337
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
338
|
-
if (kind === "m")
|
|
339
|
-
throw new TypeError("Private method is not writable");
|
|
340
|
-
if (kind === "a" && !f)
|
|
341
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
342
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
343
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
344
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
var TuiExpandContentDirective = /** @class */ (function () {
|
|
348
|
-
function TuiExpandContentDirective() {
|
|
349
|
-
}
|
|
350
|
-
return TuiExpandContentDirective;
|
|
351
|
-
}());
|
|
352
|
-
TuiExpandContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandContentDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
353
|
-
TuiExpandContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiExpandContentDirective, selector: "[tuiExpandContent]", ngImport: i0__namespace });
|
|
354
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandContentDirective, decorators: [{
|
|
355
|
-
type: i0.Directive,
|
|
356
|
-
args: [{
|
|
357
|
-
selector: '[tuiExpandContent]',
|
|
358
|
-
}]
|
|
359
|
-
}] });
|
|
128
|
+
};
|
|
129
|
+
TuiExpandComponent.prototype.retrigger = function (state) {
|
|
130
|
+
var _this = this;
|
|
131
|
+
this.state = State.Prepared;
|
|
132
|
+
// We need delay to re-trigger CSS height transition from the correct number
|
|
133
|
+
setTimeout(function () {
|
|
134
|
+
if (_this.state !== State.Prepared) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
_this.state = state;
|
|
138
|
+
_this.cdr.markForCheck();
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
return TuiExpandComponent;
|
|
142
|
+
}());
|
|
143
|
+
TuiExpandComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
144
|
+
TuiExpandComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiExpandComponent, selector: "tui-expand", inputs: { async: "async", expandedSetter: ["expanded", "expandedSetter"] }, host: { listeners: { "transitionend.self": "onTransitionEnd($event)", "tui-expand-loaded": "onExpandLoaded($event)" }, properties: { "class._expanded": "this.expanded", "attr.aria-expanded": "this.expanded", "class._overflow": "this.overflow", "class._loading": "this.loading", "style.height.px": "this.height" } }, queries: [{ propertyName: "content", first: true, predicate: TuiExpandContentDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0__namespace, template: "<div\n #wrapper\n class=\"t-wrapper\"\n @tuiParentAnimation\n [@.disabled]=\"overflow\"\n>\n <ng-container *ngIf=\"contentVisible\">\n <ng-content></ng-content>\n <tui-loader\n *ngIf=\"async; else content\"\n size=\"l\"\n [overlay]=\"true\"\n [showLoader]=\"loading\"\n >\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n </tui-loader>\n </ng-container>\n</div>\n", styles: [":host{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}:host._overflow{overflow:hidden}:host._expanded{opacity:1;transform:translate(0)}:host._loading{opacity:.99}.t-wrapper:before,.t-wrapper:after{content:\"\";display:table}\n"], components: [{ type: i1__namespace.TuiLoaderComponent, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [cdk.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
145
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandComponent, decorators: [{
|
|
146
|
+
type: i0.Component,
|
|
147
|
+
args: [{
|
|
148
|
+
selector: 'tui-expand',
|
|
149
|
+
templateUrl: './expand.template.html',
|
|
150
|
+
styleUrls: ['./expand.style.less'],
|
|
151
|
+
animations: [cdk.TUI_PARENT_ANIMATION],
|
|
152
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
153
|
+
}]
|
|
154
|
+
}], ctorParameters: function () {
|
|
155
|
+
return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
156
|
+
type: i0.Inject,
|
|
157
|
+
args: [i0.ChangeDetectorRef]
|
|
158
|
+
}] }];
|
|
159
|
+
}, propDecorators: { contentWrapper: [{
|
|
160
|
+
type: i0.ViewChild,
|
|
161
|
+
args: ['wrapper']
|
|
162
|
+
}], async: [{
|
|
163
|
+
type: i0.Input
|
|
164
|
+
}], expandedSetter: [{
|
|
165
|
+
type: i0.Input,
|
|
166
|
+
args: ['expanded']
|
|
167
|
+
}], content: [{
|
|
168
|
+
type: i0.ContentChild,
|
|
169
|
+
args: [TuiExpandContentDirective, { read: i0.TemplateRef }]
|
|
170
|
+
}], expanded: [{
|
|
171
|
+
type: i0.HostBinding,
|
|
172
|
+
args: ['class._expanded']
|
|
173
|
+
}, {
|
|
174
|
+
type: i0.HostBinding,
|
|
175
|
+
args: ['attr.aria-expanded']
|
|
176
|
+
}], overflow: [{
|
|
177
|
+
type: i0.HostBinding,
|
|
178
|
+
args: ['class._overflow']
|
|
179
|
+
}], loading: [{
|
|
180
|
+
type: i0.HostBinding,
|
|
181
|
+
args: ['class._loading']
|
|
182
|
+
}], height: [{
|
|
183
|
+
type: i0.HostBinding,
|
|
184
|
+
args: ['style.height.px']
|
|
185
|
+
}], onTransitionEnd: [{
|
|
186
|
+
type: i0.HostListener,
|
|
187
|
+
args: ['transitionend.self', ['$event']]
|
|
188
|
+
}], onExpandLoaded: [{
|
|
189
|
+
type: i0.HostListener,
|
|
190
|
+
args: [constants.TUI_EXPAND_LOADED, ['$event']]
|
|
191
|
+
}] } });
|
|
360
192
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
State[State["Idle"] = 0] = "Idle";
|
|
364
|
-
State[State["Loading"] = 1] = "Loading";
|
|
365
|
-
State[State["Prepared"] = 2] = "Prepared";
|
|
366
|
-
State[State["Animated"] = 3] = "Animated";
|
|
367
|
-
})(State || (State = {}));
|
|
368
|
-
var LOADER_HEIGHT = 48;
|
|
369
|
-
var TuiExpandComponent = /** @class */ (function () {
|
|
370
|
-
function TuiExpandComponent(cdr) {
|
|
371
|
-
this.cdr = cdr;
|
|
372
|
-
this.state = State.Idle;
|
|
373
|
-
this.async = false;
|
|
374
|
-
this.content = null;
|
|
375
|
-
this.expanded = null;
|
|
376
|
-
}
|
|
377
|
-
Object.defineProperty(TuiExpandComponent.prototype, "expandedSetter", {
|
|
378
|
-
set: function (expanded) {
|
|
379
|
-
if (this.expanded === null) {
|
|
380
|
-
this.expanded = expanded;
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
if (this.state !== State.Idle) {
|
|
384
|
-
this.expanded = expanded;
|
|
385
|
-
this.state = State.Animated;
|
|
386
|
-
return;
|
|
387
|
-
}
|
|
388
|
-
this.expanded = expanded;
|
|
389
|
-
this.retrigger(this.async && expanded ? State.Loading : State.Animated);
|
|
390
|
-
},
|
|
391
|
-
enumerable: false,
|
|
392
|
-
configurable: true
|
|
393
|
-
});
|
|
394
|
-
Object.defineProperty(TuiExpandComponent.prototype, "overflow", {
|
|
395
|
-
get: function () {
|
|
396
|
-
return this.state !== State.Idle;
|
|
397
|
-
},
|
|
398
|
-
enumerable: false,
|
|
399
|
-
configurable: true
|
|
400
|
-
});
|
|
401
|
-
Object.defineProperty(TuiExpandComponent.prototype, "loading", {
|
|
402
|
-
get: function () {
|
|
403
|
-
return !!this.expanded && this.async && this.state === State.Loading;
|
|
404
|
-
},
|
|
405
|
-
enumerable: false,
|
|
406
|
-
configurable: true
|
|
407
|
-
});
|
|
408
|
-
Object.defineProperty(TuiExpandComponent.prototype, "height", {
|
|
409
|
-
get: function () {
|
|
410
|
-
var _a = this, expanded = _a.expanded, state = _a.state, contentWrapper = _a.contentWrapper;
|
|
411
|
-
if ((expanded && state === State.Prepared) ||
|
|
412
|
-
(!expanded && state === State.Animated)) {
|
|
413
|
-
return 0;
|
|
414
|
-
}
|
|
415
|
-
if (contentWrapper &&
|
|
416
|
-
((!expanded && state === State.Prepared) ||
|
|
417
|
-
(expanded && state === State.Animated))) {
|
|
418
|
-
return contentWrapper.nativeElement.offsetHeight;
|
|
419
|
-
}
|
|
420
|
-
if (contentWrapper && expanded && state === State.Loading) {
|
|
421
|
-
return Math.max(contentWrapper.nativeElement.offsetHeight, LOADER_HEIGHT);
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
},
|
|
425
|
-
enumerable: false,
|
|
426
|
-
configurable: true
|
|
427
|
-
});
|
|
428
|
-
Object.defineProperty(TuiExpandComponent.prototype, "contentVisible", {
|
|
429
|
-
get: function () {
|
|
430
|
-
return this.expanded || this.state !== State.Idle;
|
|
431
|
-
},
|
|
432
|
-
enumerable: false,
|
|
433
|
-
configurable: true
|
|
434
|
-
});
|
|
435
|
-
TuiExpandComponent.prototype.onTransitionEnd = function (_a) {
|
|
436
|
-
var propertyName = _a.propertyName;
|
|
437
|
-
if (propertyName === 'opacity' && this.state === State.Animated) {
|
|
438
|
-
this.state = State.Idle;
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
TuiExpandComponent.prototype.onExpandLoaded = function (event) {
|
|
442
|
-
event.stopPropagation();
|
|
443
|
-
if (this.state === State.Loading) {
|
|
444
|
-
this.retrigger(State.Animated);
|
|
193
|
+
var TuiExpandModule = /** @class */ (function () {
|
|
194
|
+
function TuiExpandModule() {
|
|
445
195
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return TuiExpandComponent;
|
|
460
|
-
}());
|
|
461
|
-
TuiExpandComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
462
|
-
TuiExpandComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiExpandComponent, selector: "tui-expand", inputs: { async: "async", expandedSetter: ["expanded", "expandedSetter"] }, host: { listeners: { "transitionend.self": "onTransitionEnd($event)", "tui-expand-loaded": "onExpandLoaded($event)" }, properties: { "class._expanded": "this.expanded", "attr.aria-expanded": "this.expanded", "class._overflow": "this.overflow", "class._loading": "this.loading", "style.height.px": "this.height" } }, queries: [{ propertyName: "content", first: true, predicate: TuiExpandContentDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0__namespace, template: "<div\n #wrapper\n class=\"t-wrapper\"\n @tuiParentAnimation\n [@.disabled]=\"overflow\"\n>\n <ng-container *ngIf=\"contentVisible\">\n <ng-content></ng-content>\n <tui-loader\n *ngIf=\"async; else content\"\n size=\"l\"\n [overlay]=\"true\"\n [showLoader]=\"loading\"\n >\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n </tui-loader>\n </ng-container>\n</div>\n", styles: [":host{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}:host._overflow{overflow:hidden}:host._expanded{opacity:1;transform:translate(0)}:host._loading{opacity:.99}.t-wrapper:before,.t-wrapper:after{content:\"\";display:table}\n"], components: [{ type: i1__namespace.TuiLoaderComponent, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [cdk.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
463
|
-
__decorate([
|
|
464
|
-
cdk.tuiDefaultProp()
|
|
465
|
-
], TuiExpandComponent.prototype, "async", void 0);
|
|
466
|
-
__decorate([
|
|
467
|
-
cdk.tuiRequiredSetter()
|
|
468
|
-
], TuiExpandComponent.prototype, "expandedSetter", null);
|
|
469
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandComponent, decorators: [{
|
|
470
|
-
type: i0.Component,
|
|
471
|
-
args: [{
|
|
472
|
-
selector: 'tui-expand',
|
|
473
|
-
templateUrl: './expand.template.html',
|
|
474
|
-
styleUrls: ['./expand.style.less'],
|
|
475
|
-
animations: [cdk.TUI_PARENT_ANIMATION],
|
|
476
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
477
|
-
}]
|
|
478
|
-
}], ctorParameters: function () {
|
|
479
|
-
return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
480
|
-
type: i0.Inject,
|
|
481
|
-
args: [i0.ChangeDetectorRef]
|
|
482
|
-
}] }];
|
|
483
|
-
}, propDecorators: { contentWrapper: [{
|
|
484
|
-
type: i0.ViewChild,
|
|
485
|
-
args: ['wrapper']
|
|
486
|
-
}], async: [{
|
|
487
|
-
type: i0.Input
|
|
488
|
-
}], expandedSetter: [{
|
|
489
|
-
type: i0.Input,
|
|
490
|
-
args: ['expanded']
|
|
491
|
-
}], content: [{
|
|
492
|
-
type: i0.ContentChild,
|
|
493
|
-
args: [TuiExpandContentDirective, { read: i0.TemplateRef }]
|
|
494
|
-
}], expanded: [{
|
|
495
|
-
type: i0.HostBinding,
|
|
496
|
-
args: ['class._expanded']
|
|
497
|
-
}, {
|
|
498
|
-
type: i0.HostBinding,
|
|
499
|
-
args: ['attr.aria-expanded']
|
|
500
|
-
}], overflow: [{
|
|
501
|
-
type: i0.HostBinding,
|
|
502
|
-
args: ['class._overflow']
|
|
503
|
-
}], loading: [{
|
|
504
|
-
type: i0.HostBinding,
|
|
505
|
-
args: ['class._loading']
|
|
506
|
-
}], height: [{
|
|
507
|
-
type: i0.HostBinding,
|
|
508
|
-
args: ['style.height.px']
|
|
509
|
-
}], onTransitionEnd: [{
|
|
510
|
-
type: i0.HostListener,
|
|
511
|
-
args: ['transitionend.self', ['$event']]
|
|
512
|
-
}], onExpandLoaded: [{
|
|
513
|
-
type: i0.HostListener,
|
|
514
|
-
args: [constants.TUI_EXPAND_LOADED, ['$event']]
|
|
515
|
-
}] } });
|
|
516
|
-
|
|
517
|
-
var TuiExpandModule = /** @class */ (function () {
|
|
518
|
-
function TuiExpandModule() {
|
|
519
|
-
}
|
|
520
|
-
return TuiExpandModule;
|
|
521
|
-
}());
|
|
522
|
-
TuiExpandModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
523
|
-
TuiExpandModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, declarations: [TuiExpandComponent, TuiExpandContentDirective], imports: [i2.CommonModule, i1.TuiLoaderModule], exports: [TuiExpandComponent, TuiExpandContentDirective] });
|
|
524
|
-
TuiExpandModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, imports: [[i2.CommonModule, i1.TuiLoaderModule]] });
|
|
525
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, decorators: [{
|
|
526
|
-
type: i0.NgModule,
|
|
527
|
-
args: [{
|
|
528
|
-
imports: [i2.CommonModule, i1.TuiLoaderModule],
|
|
529
|
-
declarations: [TuiExpandComponent, TuiExpandContentDirective],
|
|
530
|
-
exports: [TuiExpandComponent, TuiExpandContentDirective],
|
|
531
|
-
}]
|
|
532
|
-
}] });
|
|
196
|
+
return TuiExpandModule;
|
|
197
|
+
}());
|
|
198
|
+
TuiExpandModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
199
|
+
TuiExpandModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, declarations: [TuiExpandComponent, TuiExpandContentDirective], imports: [i2.CommonModule, i1.TuiLoaderModule], exports: [TuiExpandComponent, TuiExpandContentDirective] });
|
|
200
|
+
TuiExpandModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, imports: [[i2.CommonModule, i1.TuiLoaderModule]] });
|
|
201
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiExpandModule, decorators: [{
|
|
202
|
+
type: i0.NgModule,
|
|
203
|
+
args: [{
|
|
204
|
+
imports: [i2.CommonModule, i1.TuiLoaderModule],
|
|
205
|
+
declarations: [TuiExpandComponent, TuiExpandContentDirective],
|
|
206
|
+
exports: [TuiExpandComponent, TuiExpandContentDirective],
|
|
207
|
+
}]
|
|
208
|
+
}] });
|
|
533
209
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Generated bundle index. Do not edit.
|
|
212
|
+
*/
|
|
537
213
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
214
|
+
exports.TuiExpandComponent = TuiExpandComponent;
|
|
215
|
+
exports.TuiExpandContentDirective = TuiExpandContentDirective;
|
|
216
|
+
exports.TuiExpandModule = TuiExpandModule;
|
|
541
217
|
|
|
542
|
-
|
|
218
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
543
219
|
|
|
544
220
|
}));
|
|
545
221
|
//# sourceMappingURL=taiga-ui-core-components-expand.umd.js.map
|