igniteui-webcomponents-layouts 4.0.4 → 4.2.3-alpha
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/igniteui-webcomponents-layouts.umd.js +1495 -2681
- package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
- package/esm2015/lib/ListPanelView_combined.js +31 -18
- package/esm2015/lib/PropertyEditorPanelView_combined.js +154 -154
- package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +127 -116
- package/esm2015/lib/ToolActionButton.js +1 -91
- package/esm2015/lib/ToolPanelView_combined.js +862 -692
- package/esm2015/lib/ToolbarView_combined.js +123 -96
- package/esm2015/lib/igc-property-editor-property-description-component.js +66 -31
- package/esm2015/lib/igc-tool-action-component.js +42 -31
- package/esm2015/lib/igc-tool-action-menu-base-component.js +1 -1
- package/esm2015/lib/igc-tool-action-radio-component.js +7 -4
- package/esm2015/lib/igc-tool-panel-component.js +21 -10
- package/esm2015/lib/igc-toolbar-component.js +23 -12
- package/esm2015/public_api.js +0 -13
- package/esm5/lib/ListPanelView_combined.js +31 -18
- package/esm5/lib/PropertyEditorPanelView_combined.js +154 -154
- package/esm5/lib/PropertyEditorPropertyDescription_combined.js +131 -116
- package/esm5/lib/ToolActionButton.js +1 -94
- package/esm5/lib/ToolPanelView_combined.js +877 -693
- package/esm5/lib/ToolbarView_combined.js +123 -92
- package/esm5/lib/igc-property-editor-property-description-component.js +70 -31
- package/esm5/lib/igc-tool-action-component.js +46 -31
- package/esm5/lib/igc-tool-action-menu-base-component.js +1 -1
- package/esm5/lib/igc-tool-action-radio-component.js +6 -3
- package/esm5/lib/igc-tool-panel-component.js +25 -10
- package/esm5/lib/igc-toolbar-component.js +27 -12
- package/esm5/public_api.js +0 -13
- package/fesm2015/igniteui-webcomponents-layouts.js +1460 -2516
- package/fesm5/igniteui-webcomponents-layouts.js +1493 -2663
- package/lib/PropertyEditorPropertyDescription_combined.d.ts +24 -22
- package/lib/ToolActionButton.d.ts +1 -23
- package/lib/ToolPanelView_combined.d.ts +172 -146
- package/lib/ToolbarView_combined.d.ts +33 -28
- package/lib/igc-property-editor-property-description-component.d.ts +3 -0
- package/lib/igc-tool-action-component.d.ts +5 -0
- package/lib/igc-tool-action-radio-component.d.ts +4 -1
- package/lib/igc-tool-panel-component.d.ts +5 -0
- package/lib/igc-toolbar-component.d.ts +5 -0
- package/package.json +3 -3
- package/public_api.d.ts +0 -13
- package/esm2015/lib/OnClosedEventArgs.js +0 -16
- package/esm2015/lib/OnPopupEventArgs.js +0 -16
- package/esm2015/lib/Popup.js +0 -7
- package/esm2015/lib/PopupAlignment.js +0 -29
- package/esm2015/lib/PopupDirection.js +0 -29
- package/esm2015/lib/PopupView.js +0 -7
- package/esm2015/lib/PopupView_combined.js +0 -647
- package/esm2015/lib/PopupVisualModelExport.js +0 -36
- package/esm2015/lib/Popup_InnerAnimationInfo.js +0 -21
- package/esm2015/lib/Popup_OuterAnimationInfo.js +0 -23
- package/esm2015/lib/igc-on-closed-event-args.js +0 -24
- package/esm2015/lib/igc-on-popup-event-args.js +0 -24
- package/esm2015/lib/igc-popup-component.js +0 -388
- package/esm2015/lib/igc-popup-module.js +0 -19
- package/esm5/lib/OnClosedEventArgs.js +0 -20
- package/esm5/lib/OnPopupEventArgs.js +0 -20
- package/esm5/lib/Popup.js +0 -7
- package/esm5/lib/PopupAlignment.js +0 -29
- package/esm5/lib/PopupDirection.js +0 -29
- package/esm5/lib/PopupView.js +0 -7
- package/esm5/lib/PopupView_combined.js +0 -700
- package/esm5/lib/PopupVisualModelExport.js +0 -38
- package/esm5/lib/Popup_InnerAnimationInfo.js +0 -23
- package/esm5/lib/Popup_OuterAnimationInfo.js +0 -25
- package/esm5/lib/igc-on-closed-event-args.js +0 -30
- package/esm5/lib/igc-on-popup-event-args.js +0 -30
- package/esm5/lib/igc-popup-component.js +0 -473
- package/esm5/lib/igc-popup-module.js +0 -23
- package/lib/OnClosedEventArgs.d.ts +0 -7
- package/lib/OnPopupEventArgs.d.ts +0 -7
- package/lib/Popup.d.ts +0 -1
- package/lib/PopupAlignment.d.ts +0 -22
- package/lib/PopupDirection.d.ts +0 -22
- package/lib/PopupView.d.ts +0 -1
- package/lib/PopupView_combined.d.ts +0 -126
- package/lib/PopupVisualModelExport.d.ts +0 -14
- package/lib/Popup_InnerAnimationInfo.d.ts +0 -10
- package/lib/Popup_OuterAnimationInfo.d.ts +0 -12
- package/lib/igc-on-closed-event-args.d.ts +0 -12
- package/lib/igc-on-popup-event-args.d.ts +0 -12
- package/lib/igc-popup-component.d.ts +0 -110
- package/lib/igc-popup-module.d.ts +0 -3
|
@@ -1,700 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
-
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
-
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
-
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
-
*/
|
|
7
|
-
import * as tslib_1 from "tslib";
|
|
8
|
-
import { Base, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs } from "igniteui-webcomponents-core";
|
|
9
|
-
import { Size } from "igniteui-webcomponents-core";
|
|
10
|
-
import { ElevationHelper } from "igniteui-webcomponents-core";
|
|
11
|
-
import { Popup_OuterAnimationInfo } from "./Popup_OuterAnimationInfo";
|
|
12
|
-
import { Popup_InnerAnimationInfo } from "./Popup_InnerAnimationInfo";
|
|
13
|
-
import { AnimationKeyFrameEffect } from "igniteui-webcomponents-core";
|
|
14
|
-
import { AnimationKeyFrameEffectTiming } from "igniteui-webcomponents-core";
|
|
15
|
-
import { KeyFrameAnimationFactory } from "igniteui-webcomponents-core";
|
|
16
|
-
import { Rect } from "igniteui-webcomponents-core";
|
|
17
|
-
import { stringEmpty } from "igniteui-webcomponents-core";
|
|
18
|
-
import { stringFormat } from "igniteui-webcomponents-core";
|
|
19
|
-
import { OnClosedEventArgs } from "./OnClosedEventArgs";
|
|
20
|
-
import { List$1 } from "igniteui-webcomponents-core";
|
|
21
|
-
import { AnimationKeyFrameProperty } from "igniteui-webcomponents-core";
|
|
22
|
-
import { TranslateTransform } from "igniteui-webcomponents-core";
|
|
23
|
-
import { OnPopupEventArgs } from "./OnPopupEventArgs";
|
|
24
|
-
import { PopupVisualModelExport } from "./PopupVisualModelExport";
|
|
25
|
-
import { AppearanceHelper } from "igniteui-webcomponents-core";
|
|
26
|
-
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
27
|
-
import { truncate } from "igniteui-webcomponents-core";
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
var PopupView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
32
|
-
tslib_1.__extends(PopupView, _super);
|
|
33
|
-
function PopupView() {
|
|
34
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
_this.k = null;
|
|
36
|
-
_this.c = null;
|
|
37
|
-
_this.o = null;
|
|
38
|
-
_this.n = null;
|
|
39
|
-
_this.m = null;
|
|
40
|
-
_this.p = null;
|
|
41
|
-
_this.f = false;
|
|
42
|
-
_this.h = 0;
|
|
43
|
-
_this.al = new Size(1, 0, 0);
|
|
44
|
-
_this.e = true;
|
|
45
|
-
_this.g = false;
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
Object.defineProperty(PopupView.prototype, "d", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this.c;
|
|
51
|
-
},
|
|
52
|
-
enumerable: true,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(PopupView.prototype, "l", {
|
|
56
|
-
get: function () {
|
|
57
|
-
return this.k;
|
|
58
|
-
},
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true
|
|
61
|
-
});
|
|
62
|
-
PopupView.prototype.ab = function () {
|
|
63
|
-
this.o.setStyleProperty("height", "0%");
|
|
64
|
-
this.o.setStyleProperty("width", "0%");
|
|
65
|
-
this.n = this.k.createElement("div");
|
|
66
|
-
this.n.setStyleProperty("position", "absolute");
|
|
67
|
-
this.n.setStyleProperty("overflow", "hidden");
|
|
68
|
-
this.n.setStyleProperty("z-index", "10000");
|
|
69
|
-
this.n.setAttribute("key", "popupContentAreaOuter");
|
|
70
|
-
this.m = this.k.createElement("div");
|
|
71
|
-
this.m.setAttribute("key", "popupContentAreaInner");
|
|
72
|
-
this.n.append(this.m);
|
|
73
|
-
};
|
|
74
|
-
PopupView.prototype.ai = function () {
|
|
75
|
-
var a = this.d;
|
|
76
|
-
var b = ElevationHelper.e(a.w, a.a7, a.a6, a.a5);
|
|
77
|
-
this.n.setStyleProperty("box-shadow", b);
|
|
78
|
-
};
|
|
79
|
-
PopupView.prototype.ah = function () {
|
|
80
|
-
if (this.d.a8 != null) {
|
|
81
|
-
this.n.setStyleProperty("background-color", this.d.a8._fill);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
PopupView.prototype.aj = function () {
|
|
85
|
-
if (null == this.o) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
this.ai();
|
|
89
|
-
this.ah();
|
|
90
|
-
};
|
|
91
|
-
PopupView.prototype.s = function () {
|
|
92
|
-
if (null != this.n) {
|
|
93
|
-
this.aj();
|
|
94
|
-
this.n.setStyleProperty("height", "0px");
|
|
95
|
-
var a = this.n.getNativeElement();
|
|
96
|
-
if (false == this.f) {
|
|
97
|
-
document.body.appendChild(a);
|
|
98
|
-
this.f = true;
|
|
99
|
-
if (this.e) {
|
|
100
|
-
this.z();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
PopupView.prototype.t = function (a, b) {
|
|
106
|
-
this.n.setStyleProperty("top", PopupView.q(a.b));
|
|
107
|
-
this.n.setStyleProperty("height", PopupView.r(a.d));
|
|
108
|
-
this.m.setStyleProperty("top", PopupView.r(b.b));
|
|
109
|
-
this.m.setStyleProperty("opacity", "1");
|
|
110
|
-
this.m.setStyleProperty("transform", stringEmpty());
|
|
111
|
-
this.h = 0;
|
|
112
|
-
if (this.g) {
|
|
113
|
-
this.ag();
|
|
114
|
-
}
|
|
115
|
-
return {
|
|
116
|
-
p0: a,
|
|
117
|
-
p1: b
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
PopupView.prototype.u = function (a) {
|
|
121
|
-
this.h = a;
|
|
122
|
-
};
|
|
123
|
-
PopupView.prototype.ae = function () {
|
|
124
|
-
if (null != this.n && this.f) {
|
|
125
|
-
var a = this.n.getNativeElement();
|
|
126
|
-
document.body.removeChild(a);
|
|
127
|
-
this.f = false;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
PopupView.prototype.v = function (a) {
|
|
131
|
-
this.m.append(a);
|
|
132
|
-
};
|
|
133
|
-
PopupView.prototype.a = function (a) {
|
|
134
|
-
return new AnimationKeyFrameEffect(0, this.m, 0, null, a);
|
|
135
|
-
};
|
|
136
|
-
PopupView.prototype.b = function (a) {
|
|
137
|
-
return new AnimationKeyFrameEffect(0, this.n, 0, null, a);
|
|
138
|
-
};
|
|
139
|
-
PopupView.prototype.w = function () {
|
|
140
|
-
if (KeyFrameAnimationFactory.h == null) {
|
|
141
|
-
KeyFrameAnimationFactory.h = this.l;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
Object.defineProperty(PopupView.prototype, "am", {
|
|
145
|
-
get: function () {
|
|
146
|
-
if (this.e) {
|
|
147
|
-
this.z();
|
|
148
|
-
}
|
|
149
|
-
return this.al;
|
|
150
|
-
},
|
|
151
|
-
enumerable: true,
|
|
152
|
-
configurable: true
|
|
153
|
-
});
|
|
154
|
-
PopupView.prototype.i = function (a, b) {
|
|
155
|
-
var c;
|
|
156
|
-
var t1 = b;
|
|
157
|
-
L0: while (true) {
|
|
158
|
-
switch (t1) {
|
|
159
|
-
case 0:
|
|
160
|
-
case 1:
|
|
161
|
-
c = a.left;
|
|
162
|
-
break;
|
|
163
|
-
case 2:
|
|
164
|
-
c = a.right - this.am.width;
|
|
165
|
-
break;
|
|
166
|
-
default:
|
|
167
|
-
t1 = 0;
|
|
168
|
-
continue L0;
|
|
169
|
-
}
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
return c;
|
|
173
|
-
};
|
|
174
|
-
PopupView.prototype.j = function (a, b) {
|
|
175
|
-
var c;
|
|
176
|
-
var t1 = b;
|
|
177
|
-
L0: while (true) {
|
|
178
|
-
switch (t1) {
|
|
179
|
-
case 0:
|
|
180
|
-
case 1:
|
|
181
|
-
c = a.bottom;
|
|
182
|
-
break;
|
|
183
|
-
case 2:
|
|
184
|
-
c = a.top - this.am.height;
|
|
185
|
-
break;
|
|
186
|
-
default:
|
|
187
|
-
t1 = 0;
|
|
188
|
-
continue L0;
|
|
189
|
-
}
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
return c;
|
|
193
|
-
};
|
|
194
|
-
PopupView.r = function (a) {
|
|
195
|
-
return stringFormat("{0}px", a);
|
|
196
|
-
};
|
|
197
|
-
PopupView.q = function (a) {
|
|
198
|
-
return stringFormat("{0}px", a);
|
|
199
|
-
};
|
|
200
|
-
PopupView.prototype.ak = function (a, b, c) {
|
|
201
|
-
var d = this.j(a, b);
|
|
202
|
-
var e = this.i(a, c);
|
|
203
|
-
this.af(e, d);
|
|
204
|
-
if (b == 2 || c == 2) {
|
|
205
|
-
var f = 10;
|
|
206
|
-
while (f > 0) {
|
|
207
|
-
var g = this.j(a, b);
|
|
208
|
-
var h = this.i(a, c);
|
|
209
|
-
if (g == d && h == e) {
|
|
210
|
-
f = 0;
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
d = g;
|
|
214
|
-
e = h;
|
|
215
|
-
this.af(e, d);
|
|
216
|
-
f--;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return new Rect(0, e, d, this.am.width, this.am.height);
|
|
220
|
-
};
|
|
221
|
-
PopupView.prototype.z = function () {
|
|
222
|
-
if (this.f) {
|
|
223
|
-
this.n.setStyleProperty("width", stringEmpty());
|
|
224
|
-
this.n.setStyleProperty("height", stringEmpty());
|
|
225
|
-
this.al = new Size(1, this.m.outerWidth(), this.m.outerHeight());
|
|
226
|
-
this.e = false;
|
|
227
|
-
this.ag();
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
this.e = true;
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
PopupView.prototype.af = function (a, b) {
|
|
234
|
-
var c = stringFormat("{0}px", a);
|
|
235
|
-
var d = stringFormat("{0}px", b);
|
|
236
|
-
this.n.setStyleProperty("left", c);
|
|
237
|
-
this.n.setStyleProperty("top", d);
|
|
238
|
-
};
|
|
239
|
-
PopupView.prototype.ac = function (a) {
|
|
240
|
-
var _this = this;
|
|
241
|
-
if (a == null) {
|
|
242
|
-
this.k = null;
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
this.k = a;
|
|
246
|
-
var b = a.rootWrapper;
|
|
247
|
-
this.x(b);
|
|
248
|
-
this.k.getPortal(this.m, "ChildContent", function (c) {
|
|
249
|
-
var comp_ = c.componentRef;
|
|
250
|
-
_this.p = comp_;
|
|
251
|
-
}, true);
|
|
252
|
-
};
|
|
253
|
-
PopupView.prototype.ag = function () {
|
|
254
|
-
var a = new Size(1, this.am.width, this.am.height);
|
|
255
|
-
if (!this.f || !this.d.t) {
|
|
256
|
-
a.height = 0;
|
|
257
|
-
}
|
|
258
|
-
var b = a.width;
|
|
259
|
-
var c = a.height;
|
|
260
|
-
if (this.c.r()) {
|
|
261
|
-
if (this.h == c) {
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
this.c.an();
|
|
265
|
-
this.g = true;
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
this.g = false;
|
|
269
|
-
var d = stringFormat("{0}px", b);
|
|
270
|
-
var e = stringFormat("{0}px", c);
|
|
271
|
-
this.n.setStyleProperty("width", d);
|
|
272
|
-
this.n.setStyleProperty("height", e);
|
|
273
|
-
};
|
|
274
|
-
PopupView.prototype.x = function (a) {
|
|
275
|
-
this.o = a;
|
|
276
|
-
this.ab();
|
|
277
|
-
};
|
|
278
|
-
PopupView.prototype.y = function (a) {
|
|
279
|
-
this.c = a;
|
|
280
|
-
};
|
|
281
|
-
PopupView.prototype.aa = function () {
|
|
282
|
-
};
|
|
283
|
-
PopupView.prototype.ad = function () {
|
|
284
|
-
this.s();
|
|
285
|
-
if (this.d.t) {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
this.ag();
|
|
289
|
-
};
|
|
290
|
-
PopupView.$t = markType(PopupView, 'PopupView');
|
|
291
|
-
return PopupView;
|
|
292
|
-
}(Base));
|
|
293
|
-
export { PopupView };
|
|
294
|
-
/**
|
|
295
|
-
* @hidden
|
|
296
|
-
*/
|
|
297
|
-
var Popup = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
298
|
-
tslib_1.__extends(Popup, _super);
|
|
299
|
-
function Popup() {
|
|
300
|
-
var _this = _super.call(this) || this;
|
|
301
|
-
_this.i = 0;
|
|
302
|
-
_this.h = 0;
|
|
303
|
-
_this.bc = null;
|
|
304
|
-
_this.n = null;
|
|
305
|
-
_this.o = null;
|
|
306
|
-
_this.onClosed = null;
|
|
307
|
-
_this.onPopup = null;
|
|
308
|
-
_this.propertyChanged = null;
|
|
309
|
-
_this.k = null;
|
|
310
|
-
_this.x = 50;
|
|
311
|
-
_this.p = true;
|
|
312
|
-
_this.v = -1;
|
|
313
|
-
_this.u = Popup.z;
|
|
314
|
-
_this.s = false;
|
|
315
|
-
_this.a3 = Popup.bb;
|
|
316
|
-
_this.a2 = Popup.ba;
|
|
317
|
-
_this.a1 = Popup.a9;
|
|
318
|
-
_this.a4 = null;
|
|
319
|
-
var a = _this.j();
|
|
320
|
-
_this.k = a;
|
|
321
|
-
a.y(_this);
|
|
322
|
-
return _this;
|
|
323
|
-
}
|
|
324
|
-
Popup.prototype.au = function (a, b, c) {
|
|
325
|
-
if (this.propertyChanged != null) {
|
|
326
|
-
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
327
|
-
}
|
|
328
|
-
this.aw(a, b, c);
|
|
329
|
-
};
|
|
330
|
-
Object.defineProperty(Popup.prototype, "y", {
|
|
331
|
-
get: function () {
|
|
332
|
-
return this.x;
|
|
333
|
-
},
|
|
334
|
-
set: function (a) {
|
|
335
|
-
var b = this.x;
|
|
336
|
-
this.x = a;
|
|
337
|
-
if (b != this.x) {
|
|
338
|
-
this.au("AnimationDuration", b, a);
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
enumerable: true,
|
|
342
|
-
configurable: true
|
|
343
|
-
});
|
|
344
|
-
Object.defineProperty(Popup.prototype, "q", {
|
|
345
|
-
get: function () {
|
|
346
|
-
return this.p;
|
|
347
|
-
},
|
|
348
|
-
set: function (a) {
|
|
349
|
-
var b = this.p;
|
|
350
|
-
this.p = a;
|
|
351
|
-
if (b != this.p) {
|
|
352
|
-
this.au("AnimationEnabled", b, a);
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
enumerable: true,
|
|
356
|
-
configurable: true
|
|
357
|
-
});
|
|
358
|
-
Object.defineProperty(Popup.prototype, "aa", {
|
|
359
|
-
get: function () {
|
|
360
|
-
return this.v;
|
|
361
|
-
},
|
|
362
|
-
set: function (a) {
|
|
363
|
-
var b = this.v;
|
|
364
|
-
this.v = a;
|
|
365
|
-
if (b != this.v) {
|
|
366
|
-
this.au("Elevation", b, a);
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
enumerable: true,
|
|
370
|
-
configurable: true
|
|
371
|
-
});
|
|
372
|
-
Object.defineProperty(Popup.prototype, "w", {
|
|
373
|
-
get: function () {
|
|
374
|
-
return this.u;
|
|
375
|
-
},
|
|
376
|
-
set: function (a) {
|
|
377
|
-
var b = this.u;
|
|
378
|
-
this.u = a;
|
|
379
|
-
if (b != this.u) {
|
|
380
|
-
this.au("ActualElevation", b, a);
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
enumerable: true,
|
|
384
|
-
configurable: true
|
|
385
|
-
});
|
|
386
|
-
Object.defineProperty(Popup.prototype, "t", {
|
|
387
|
-
get: function () {
|
|
388
|
-
return this.s;
|
|
389
|
-
},
|
|
390
|
-
enumerable: true,
|
|
391
|
-
configurable: true
|
|
392
|
-
});
|
|
393
|
-
Object.defineProperty(Popup.prototype, "a7", {
|
|
394
|
-
get: function () {
|
|
395
|
-
return this.a3;
|
|
396
|
-
},
|
|
397
|
-
set: function (a) {
|
|
398
|
-
var b = this.a3;
|
|
399
|
-
this.a3 = a;
|
|
400
|
-
if (b != this.a3) {
|
|
401
|
-
this.au("ActualUmbraShadowColor", b, a);
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
enumerable: true,
|
|
405
|
-
configurable: true
|
|
406
|
-
});
|
|
407
|
-
Object.defineProperty(Popup.prototype, "a6", {
|
|
408
|
-
get: function () {
|
|
409
|
-
return this.a2;
|
|
410
|
-
},
|
|
411
|
-
set: function (a) {
|
|
412
|
-
var b = this.a2;
|
|
413
|
-
this.a2 = a;
|
|
414
|
-
if (b != this.a2) {
|
|
415
|
-
this.au("ActualPenumbraShadowColor", b, a);
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
enumerable: true,
|
|
419
|
-
configurable: true
|
|
420
|
-
});
|
|
421
|
-
Object.defineProperty(Popup.prototype, "a5", {
|
|
422
|
-
get: function () {
|
|
423
|
-
return this.a1;
|
|
424
|
-
},
|
|
425
|
-
set: function (a) {
|
|
426
|
-
var b = this.a1;
|
|
427
|
-
this.a1 = a;
|
|
428
|
-
if (b != this.a1) {
|
|
429
|
-
this.au("ActualAmbientShadowColor", b, a);
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
enumerable: true,
|
|
433
|
-
configurable: true
|
|
434
|
-
});
|
|
435
|
-
Object.defineProperty(Popup.prototype, "a8", {
|
|
436
|
-
get: function () {
|
|
437
|
-
return this.a4;
|
|
438
|
-
},
|
|
439
|
-
set: function (a) {
|
|
440
|
-
var b = this.a4;
|
|
441
|
-
this.a4 = a;
|
|
442
|
-
if (b != this.a4) {
|
|
443
|
-
this.au("Background", b, this.a4);
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
enumerable: true,
|
|
447
|
-
configurable: true
|
|
448
|
-
});
|
|
449
|
-
Popup.prototype.j = function () {
|
|
450
|
-
return new PopupView();
|
|
451
|
-
};
|
|
452
|
-
Popup.prototype.aw = function (a, b, c) {
|
|
453
|
-
switch (a) {
|
|
454
|
-
case "IsShown":
|
|
455
|
-
if (false == this.t) {
|
|
456
|
-
this.k.ae();
|
|
457
|
-
}
|
|
458
|
-
break;
|
|
459
|
-
case "Elevation":
|
|
460
|
-
this.w = this.aa == -1 ? Popup.z : this.aa;
|
|
461
|
-
break;
|
|
462
|
-
case "ActualElevation":
|
|
463
|
-
case "ActualUmbraShadowColor":
|
|
464
|
-
case "ActualPenumbraShadowColor":
|
|
465
|
-
case "ActualAmbientShadowColor":
|
|
466
|
-
case "Background":
|
|
467
|
-
this.k.aj();
|
|
468
|
-
break;
|
|
469
|
-
case "AnimationEnabled":
|
|
470
|
-
if (false == this.q) {
|
|
471
|
-
this.an();
|
|
472
|
-
}
|
|
473
|
-
break;
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
Popup.prototype.an = function () {
|
|
477
|
-
if (this.r()) {
|
|
478
|
-
if (null != this.o && this.o.playState == 1) {
|
|
479
|
-
this.o.cancel();
|
|
480
|
-
}
|
|
481
|
-
if (null != this.n && this.n.playState == 1) {
|
|
482
|
-
this.n.cancel();
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
Popup.prototype.l = function (a) {
|
|
487
|
-
var b = this.f(a);
|
|
488
|
-
var c = a ? this.b() : this.a();
|
|
489
|
-
var d = this.k.a(c);
|
|
490
|
-
var e = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
491
|
-
var f = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
492
|
-
var g = new TranslateTransform();
|
|
493
|
-
g.k = b.a;
|
|
494
|
-
var h = new TranslateTransform();
|
|
495
|
-
h.k = b.b;
|
|
496
|
-
var i = new AnimationKeyFrameProperty(14, g);
|
|
497
|
-
var j = new AnimationKeyFrameProperty(14, h);
|
|
498
|
-
e.add(i);
|
|
499
|
-
f.add(j);
|
|
500
|
-
d.m.apply(d, tslib_1.__spread(e.toArray()));
|
|
501
|
-
d.m.apply(d, tslib_1.__spread(f.toArray()));
|
|
502
|
-
return KeyFrameAnimationFactory.f.c(d);
|
|
503
|
-
};
|
|
504
|
-
Popup.prototype.m = function (a) {
|
|
505
|
-
var b = this.g(a);
|
|
506
|
-
this.k.u(b.d);
|
|
507
|
-
var c = a ? this.b() : this.a();
|
|
508
|
-
var d = this.k.b(c);
|
|
509
|
-
var e = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
510
|
-
var f = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
511
|
-
var g = new AnimationKeyFrameProperty(10, b.c);
|
|
512
|
-
var h = new AnimationKeyFrameProperty(10, b.d);
|
|
513
|
-
e.add(g);
|
|
514
|
-
f.add(h);
|
|
515
|
-
if (this.i == 2) {
|
|
516
|
-
var i = b.a;
|
|
517
|
-
var j = b.b;
|
|
518
|
-
var k = new AnimationKeyFrameProperty(12, i);
|
|
519
|
-
var l = new AnimationKeyFrameProperty(12, j);
|
|
520
|
-
e.add(k);
|
|
521
|
-
f.add(l);
|
|
522
|
-
}
|
|
523
|
-
d.m.apply(d, tslib_1.__spread(e.toArray()));
|
|
524
|
-
d.m.apply(d, tslib_1.__spread(f.toArray()));
|
|
525
|
-
return KeyFrameAnimationFactory.f.c(d);
|
|
526
|
-
};
|
|
527
|
-
Popup.prototype.a = function () {
|
|
528
|
-
var a = new AnimationKeyFrameEffectTiming();
|
|
529
|
-
a.g = this.y;
|
|
530
|
-
a.b = 3;
|
|
531
|
-
return a;
|
|
532
|
-
};
|
|
533
|
-
Popup.prototype.b = function () {
|
|
534
|
-
var a = new AnimationKeyFrameEffectTiming();
|
|
535
|
-
a.g = this.y;
|
|
536
|
-
a.b = 3;
|
|
537
|
-
return a;
|
|
538
|
-
};
|
|
539
|
-
Popup.prototype.aq = function () {
|
|
540
|
-
this.k.w();
|
|
541
|
-
};
|
|
542
|
-
Popup.prototype.f = function (a) {
|
|
543
|
-
var b = truncate(this.k.am.height);
|
|
544
|
-
if (b <= 0) {
|
|
545
|
-
b = 500;
|
|
546
|
-
}
|
|
547
|
-
var c = a ? -b : 0;
|
|
548
|
-
var d = a ? 0 : -b;
|
|
549
|
-
if (this.i == 2) {
|
|
550
|
-
c = 0;
|
|
551
|
-
d = 0;
|
|
552
|
-
}
|
|
553
|
-
var e = ((function () {
|
|
554
|
-
var $ret = new Popup_InnerAnimationInfo();
|
|
555
|
-
$ret.a = c;
|
|
556
|
-
$ret.b = d;
|
|
557
|
-
return $ret;
|
|
558
|
-
})());
|
|
559
|
-
return e;
|
|
560
|
-
};
|
|
561
|
-
Popup.prototype.g = function (a) {
|
|
562
|
-
var b = truncate(this.k.am.height);
|
|
563
|
-
if (b <= 0) {
|
|
564
|
-
b = 500;
|
|
565
|
-
}
|
|
566
|
-
var c = a ? 0 : b;
|
|
567
|
-
var d = a ? b : 0;
|
|
568
|
-
var e;
|
|
569
|
-
var f;
|
|
570
|
-
if (this.i == 2) {
|
|
571
|
-
e = a ? this.bc.bottom : this.bc.top;
|
|
572
|
-
f = a ? this.bc.top : this.bc.bottom;
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
e = this.bc.top;
|
|
576
|
-
f = this.bc.top;
|
|
577
|
-
}
|
|
578
|
-
var g = ((function () {
|
|
579
|
-
var $ret = new Popup_OuterAnimationInfo();
|
|
580
|
-
$ret.c = c;
|
|
581
|
-
$ret.d = d;
|
|
582
|
-
$ret.a = e;
|
|
583
|
-
$ret.b = f;
|
|
584
|
-
return $ret;
|
|
585
|
-
})());
|
|
586
|
-
return g;
|
|
587
|
-
};
|
|
588
|
-
Popup.prototype.r = function () {
|
|
589
|
-
if (null == this.o && null == this.n) {
|
|
590
|
-
return false;
|
|
591
|
-
}
|
|
592
|
-
if (null != this.o && this.o.playState == 1) {
|
|
593
|
-
return true;
|
|
594
|
-
}
|
|
595
|
-
if (null != this.n && this.n.playState == 1) {
|
|
596
|
-
return true;
|
|
597
|
-
}
|
|
598
|
-
return false;
|
|
599
|
-
};
|
|
600
|
-
Popup.prototype.ar = function () {
|
|
601
|
-
this.k.z();
|
|
602
|
-
};
|
|
603
|
-
Popup.prototype.av = function (a, b, c) {
|
|
604
|
-
this.k.ad();
|
|
605
|
-
this.bc = this.k.ak(a, b, c);
|
|
606
|
-
this.i = b;
|
|
607
|
-
this.h = c;
|
|
608
|
-
};
|
|
609
|
-
Popup.prototype.ay = function (a, b, c) {
|
|
610
|
-
if (this.s) {
|
|
611
|
-
this.s = false;
|
|
612
|
-
this.au("IsShown", true, this.s);
|
|
613
|
-
}
|
|
614
|
-
this.av(a, b, c);
|
|
615
|
-
this.az(true);
|
|
616
|
-
};
|
|
617
|
-
Popup.prototype.az = function (a) {
|
|
618
|
-
var _this = this;
|
|
619
|
-
this.an();
|
|
620
|
-
var b = this.s;
|
|
621
|
-
this.s = a;
|
|
622
|
-
var c = this.g(a);
|
|
623
|
-
var d = this.f(a);
|
|
624
|
-
if (false == this.q) {
|
|
625
|
-
var e = this.k.t(c, d);
|
|
626
|
-
c = e.p0;
|
|
627
|
-
d = e.p1;
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
this.aq();
|
|
631
|
-
this.n = this.l(this.s);
|
|
632
|
-
this.o = this.m(this.s);
|
|
633
|
-
this.n.play();
|
|
634
|
-
this.o.play();
|
|
635
|
-
this.n.finished.f(function (f) { return _this.n.commitStyles(); });
|
|
636
|
-
this.o.finished.f(function (f) {
|
|
637
|
-
_this.o.commitStyles();
|
|
638
|
-
_this.au("IsShown", b, _this.s);
|
|
639
|
-
if (_this.s) {
|
|
640
|
-
if (_this.onPopup != null) {
|
|
641
|
-
_this.onPopup(_this, new OnPopupEventArgs());
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
else {
|
|
645
|
-
if (_this.onClosed != null) {
|
|
646
|
-
_this.onClosed(_this, new OnClosedEventArgs());
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
var g = _this.k.t(c, d);
|
|
650
|
-
c = g.p0;
|
|
651
|
-
d = g.p1;
|
|
652
|
-
});
|
|
653
|
-
};
|
|
654
|
-
Popup.prototype.appendPopupContent = function (a) {
|
|
655
|
-
this.k.v(a);
|
|
656
|
-
};
|
|
657
|
-
Popup.prototype.ao = function () {
|
|
658
|
-
if (!this.s) {
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
this.az(false);
|
|
662
|
-
};
|
|
663
|
-
Popup.prototype.destroy = function () {
|
|
664
|
-
this.provideRenderer(null);
|
|
665
|
-
};
|
|
666
|
-
Popup.prototype.showRelativeToExclusionRect = function (a, b, c) {
|
|
667
|
-
this.ay(a, b, c);
|
|
668
|
-
};
|
|
669
|
-
Popup.prototype.as = function (a) {
|
|
670
|
-
this.bc = this.k.ak(a, this.i, this.h);
|
|
671
|
-
};
|
|
672
|
-
Popup.prototype.notifySizeChanged = function () {
|
|
673
|
-
};
|
|
674
|
-
Popup.prototype.provideRenderer = function (a) {
|
|
675
|
-
this.k.ac(a);
|
|
676
|
-
};
|
|
677
|
-
Popup.prototype.ab = function () {
|
|
678
|
-
return this.c();
|
|
679
|
-
};
|
|
680
|
-
Popup.prototype.ak = function () {
|
|
681
|
-
var a = this.c();
|
|
682
|
-
return a.f();
|
|
683
|
-
};
|
|
684
|
-
Popup.prototype.c = function () {
|
|
685
|
-
var a = new PopupVisualModelExport();
|
|
686
|
-
a.e = this.w;
|
|
687
|
-
a.d = this.t;
|
|
688
|
-
a.c = AppearanceHelper.a(this.a7);
|
|
689
|
-
a.b = AppearanceHelper.a(this.a6);
|
|
690
|
-
a.a = AppearanceHelper.a(this.a5);
|
|
691
|
-
return a;
|
|
692
|
-
};
|
|
693
|
-
Popup.$t = markType(Popup, 'Popup', Base.$, [INotifyPropertyChanged_$type]);
|
|
694
|
-
Popup.z = 2;
|
|
695
|
-
Popup.bb = BrushUtil.g(66, 0, 0, 0);
|
|
696
|
-
Popup.ba = BrushUtil.g(30, 0, 0, 0);
|
|
697
|
-
Popup.a9 = BrushUtil.g(20, 0, 0, 0);
|
|
698
|
-
return Popup;
|
|
699
|
-
}(Base));
|
|
700
|
-
export { Popup };
|