igniteui-angular-core 17.0.0-beta.0 → 17.1.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/igniteui-angular-core.umd.js +3388 -1605
- package/bundles/igniteui-angular-core.umd.min.js +2 -2
- package/esm2015/lib/CodeGeneratingComponentRendererCodeEmitter_combined.js +16 -5
- package/esm2015/lib/PopupView_combined.js +743 -607
- package/esm2015/lib/WebBaseExporterDescriptionMetadata_combined.js +2 -0
- package/esm2015/lib/WebColumnStateDescription.js +202 -0
- package/esm2015/lib/WebColumnStateDescriptionMetadata.js +67 -0
- package/esm2015/lib/WebGridBaseDirectiveDescription_combined.js +338 -330
- package/esm2015/lib/WebGridDescription.js +44 -44
- package/esm2015/lib/WebGridStateBaseDirectiveDescription.js +50 -0
- package/esm2015/lib/WebGridStateBaseDirectiveDescriptionMetadata.js +7 -0
- package/esm2015/lib/WebGridStateBaseDirectiveDescriptionMetadata_combined.js +124 -0
- package/esm2015/lib/WebGridStateBaseDirectiveDescriptionModule.js +20 -0
- package/esm2015/lib/WebGridStateCollectionDescription.js +50 -0
- package/esm2015/lib/WebGridStateCollectionDescriptionMetadata.js +48 -0
- package/esm2015/lib/WebGridStateComponentEventArgsDescription.js +36 -0
- package/esm2015/lib/WebGridStateComponentEventArgsDescriptionMetadata.js +7 -0
- package/esm2015/lib/WebGridStateDescription.js +23 -0
- package/esm2015/lib/WebGridStateDescriptionMetadata.js +7 -0
- package/esm2015/lib/WebGridStateDescriptionModule.js +22 -0
- package/esm2015/lib/WebGridStateInfoDescription.js +156 -0
- package/esm2015/lib/WebGridStateInfoDescriptionMetadata.js +79 -0
- package/esm2015/lib/WebGridStateOptionsDescription.js +146 -0
- package/esm2015/lib/WebGridStateOptionsDescriptionMetadata.js +58 -0
- package/esm2015/lib/WebGroupingStateDescription.js +50 -0
- package/esm2015/lib/WebGroupingStateDescriptionMetadata.js +50 -0
- package/esm2015/lib/WebPagingStateDescription.js +42 -0
- package/esm2015/lib/WebPagingStateDescriptionMetadata.js +45 -0
- package/esm2015/lib/WebPivotGridDescription.js +35 -35
- package/esm2015/lib/WebTreeGridDescription.js +27 -27
- package/esm2015/lib/igx-popup-component.js +59 -37
- package/esm2015/public_api.js +20 -0
- package/esm5/lib/CodeGeneratingComponentRendererCodeEmitter_combined.js +16 -5
- package/esm5/lib/PopupView_combined.js +738 -590
- package/esm5/lib/WebBaseExporterDescriptionMetadata_combined.js +2 -0
- package/esm5/lib/WebColumnStateDescription.js +296 -0
- package/esm5/lib/WebColumnStateDescriptionMetadata.js +71 -0
- package/esm5/lib/WebGridBaseDirectiveDescription_combined.js +342 -330
- package/esm5/lib/WebGridDescription.js +44 -44
- package/esm5/lib/WebGridStateBaseDirectiveDescription.js +68 -0
- package/esm5/lib/WebGridStateBaseDirectiveDescriptionMetadata.js +7 -0
- package/esm5/lib/WebGridStateBaseDirectiveDescriptionMetadata_combined.js +134 -0
- package/esm5/lib/WebGridStateBaseDirectiveDescriptionModule.js +24 -0
- package/esm5/lib/WebGridStateCollectionDescription.js +68 -0
- package/esm5/lib/WebGridStateCollectionDescriptionMetadata.js +52 -0
- package/esm5/lib/WebGridStateComponentEventArgsDescription.js +46 -0
- package/esm5/lib/WebGridStateComponentEventArgsDescriptionMetadata.js +7 -0
- package/esm5/lib/WebGridStateDescription.js +24 -0
- package/esm5/lib/WebGridStateDescriptionMetadata.js +7 -0
- package/esm5/lib/WebGridStateDescriptionModule.js +26 -0
- package/esm5/lib/WebGridStateInfoDescription.js +226 -0
- package/esm5/lib/WebGridStateInfoDescriptionMetadata.js +83 -0
- package/esm5/lib/WebGridStateOptionsDescription.js +212 -0
- package/esm5/lib/WebGridStateOptionsDescriptionMetadata.js +62 -0
- package/esm5/lib/WebGroupingStateDescription.js +68 -0
- package/esm5/lib/WebGroupingStateDescriptionMetadata.js +54 -0
- package/esm5/lib/WebPagingStateDescription.js +56 -0
- package/esm5/lib/WebPagingStateDescriptionMetadata.js +49 -0
- package/esm5/lib/WebPivotGridDescription.js +35 -35
- package/esm5/lib/WebTreeGridDescription.js +27 -27
- package/esm5/lib/igx-popup-component.js +67 -37
- package/esm5/public_api.js +20 -0
- package/fesm2015/igniteui-angular-core.js +2951 -1525
- package/fesm5/igniteui-angular-core.js +3369 -1606
- package/lib/IDataLegendSeries.d.ts +2 -0
- package/lib/IDataLegendTarget.d.ts +1 -0
- package/lib/PopupView_combined.d.ts +161 -144
- package/lib/WebColumnStateDescription.d.ts +77 -0
- package/lib/WebColumnStateDescriptionMetadata.d.ts +13 -0
- package/lib/WebGridBaseDirectiveDescription_combined.d.ts +119 -115
- package/lib/WebGridDescription.d.ts +16 -16
- package/lib/WebGridStateBaseDirectiveDescription.d.ts +21 -0
- package/lib/WebGridStateBaseDirectiveDescriptionMetadata.d.ts +1 -0
- package/lib/WebGridStateBaseDirectiveDescriptionMetadata_combined.d.ts +33 -0
- package/lib/WebGridStateBaseDirectiveDescriptionModule.d.ts +9 -0
- package/lib/WebGridStateCollectionDescription.d.ts +21 -0
- package/lib/WebGridStateCollectionDescriptionMetadata.d.ts +13 -0
- package/lib/WebGridStateComponentEventArgsDescription.d.ts +17 -0
- package/lib/WebGridStateComponentEventArgsDescriptionMetadata.d.ts +1 -0
- package/lib/WebGridStateDescription.d.ts +10 -0
- package/lib/WebGridStateDescriptionMetadata.d.ts +1 -0
- package/lib/WebGridStateDescriptionModule.d.ts +9 -0
- package/lib/WebGridStateInfoDescription.d.ts +70 -0
- package/lib/WebGridStateInfoDescriptionMetadata.d.ts +13 -0
- package/lib/WebGridStateOptionsDescription.d.ts +56 -0
- package/lib/WebGridStateOptionsDescriptionMetadata.d.ts +13 -0
- package/lib/WebGroupingStateDescription.d.ts +22 -0
- package/lib/WebGroupingStateDescriptionMetadata.d.ts +13 -0
- package/lib/WebPagingStateDescription.d.ts +17 -0
- package/lib/WebPagingStateDescriptionMetadata.d.ts +13 -0
- package/lib/WebPivotGridDescription.d.ts +13 -13
- package/lib/WebTreeGridDescription.d.ts +10 -10
- package/lib/igx-popup-component.d.ts +13 -1
- package/package.json +4 -4
- package/public_api.d.ts +20 -0
|
@@ -23,11 +23,12 @@ import { stringEmpty } from "./string";
|
|
|
23
23
|
import { OnClosedEventArgs } from "./OnClosedEventArgs";
|
|
24
24
|
import { MouseEventArgs } from "./MouseEventArgs";
|
|
25
25
|
import { FocusEventArgs } from "./FocusEventArgs";
|
|
26
|
+
import { PopupAnimation } from "./PopupAnimation";
|
|
26
27
|
import { List$1 } from "./List$1";
|
|
28
|
+
import { IKeyFrameAnimation_$type } from "./IKeyFrameAnimation";
|
|
27
29
|
import { AnimationKeyFrameProperty } from "./AnimationKeyFrameProperty";
|
|
28
30
|
import { TranslateTransform } from "./TranslateTransform";
|
|
29
31
|
import { OnPopupEventArgs } from "./OnPopupEventArgs";
|
|
30
|
-
import { PopupAnimation } from "./PopupAnimation";
|
|
31
32
|
import { DeviceUtils } from "./DeviceUtils";
|
|
32
33
|
import { PopupVisualModelExport } from "./PopupVisualModelExport";
|
|
33
34
|
import { AppearanceHelper } from "./AppearanceHelper";
|
|
@@ -39,265 +40,275 @@ export let PopupView = /*@__PURE__*/ (() => {
|
|
|
39
40
|
class PopupView extends Base {
|
|
40
41
|
constructor() {
|
|
41
42
|
super(...arguments);
|
|
42
|
-
this.
|
|
43
|
+
this.ag = null;
|
|
43
44
|
this.f = null;
|
|
45
|
+
this.ao = null;
|
|
46
|
+
this.an = null;
|
|
47
|
+
this.am = null;
|
|
48
|
+
this.aj = null;
|
|
44
49
|
this.al = null;
|
|
45
50
|
this.ak = null;
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
+
this.aq = null;
|
|
52
|
+
this.v = 0;
|
|
53
|
+
this.w = 0;
|
|
54
|
+
this.u = 0;
|
|
55
|
+
this.m = false;
|
|
56
|
+
this.x = 0;
|
|
51
57
|
this.s = 0;
|
|
52
58
|
this.t = 0;
|
|
53
|
-
this.r = 0;
|
|
54
|
-
this.l = false;
|
|
55
|
-
this.u = 0;
|
|
56
|
-
this.p = 0;
|
|
57
59
|
this.q = 0;
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.bk = new Size(1, 0, 0);
|
|
60
|
+
this.r = 0;
|
|
61
|
+
this.ai = null;
|
|
62
|
+
this.ap = null;
|
|
63
|
+
this.br = new Size(1, 0, 0);
|
|
63
64
|
this.k = true;
|
|
64
|
-
this.
|
|
65
|
-
}
|
|
66
|
-
get ac() {
|
|
67
|
-
return this.g.a1;
|
|
65
|
+
this.p = false;
|
|
68
66
|
}
|
|
69
|
-
get
|
|
70
|
-
return this.
|
|
67
|
+
get af() {
|
|
68
|
+
return this.g.a3;
|
|
71
69
|
}
|
|
72
|
-
get
|
|
73
|
-
return this.
|
|
70
|
+
get ac() {
|
|
71
|
+
return this.af / 2;
|
|
74
72
|
}
|
|
75
|
-
get
|
|
76
|
-
return this.
|
|
73
|
+
get ab() {
|
|
74
|
+
return this.af * 1.414;
|
|
77
75
|
}
|
|
78
76
|
get aa() {
|
|
79
|
-
return
|
|
77
|
+
return this.ab / 2;
|
|
80
78
|
}
|
|
81
|
-
get
|
|
82
|
-
return (this.
|
|
79
|
+
get ad() {
|
|
80
|
+
return (this.bs.width / 2 - this.ac);
|
|
81
|
+
}
|
|
82
|
+
get ae() {
|
|
83
|
+
return (this.bs.height / 2 - this.ac);
|
|
83
84
|
}
|
|
84
85
|
get g() {
|
|
85
86
|
return this.f;
|
|
86
87
|
}
|
|
87
|
-
get
|
|
88
|
-
return this.
|
|
88
|
+
get ah() {
|
|
89
|
+
return this.ag;
|
|
89
90
|
}
|
|
90
|
-
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.ah.setStyleProperty("z-index", "1");
|
|
103
|
-
this.ah.setStyleProperty("clip-path", stringFormat("path(\"M0,0l{0},{0}l0,-{0}l-{0},0Z\")", this.ac));
|
|
104
|
-
this.ai.append(this.ah);
|
|
105
|
-
this.ak = this.ad.createElement("div");
|
|
91
|
+
a6() {
|
|
92
|
+
this.ao.setStyleProperty("height", "0%");
|
|
93
|
+
this.ao.setStyleProperty("width", "0%");
|
|
94
|
+
this.aj = this.ag.createElement("div");
|
|
95
|
+
this.be(this.g.aq);
|
|
96
|
+
this.aj.setStyleProperty("z-index", "10000");
|
|
97
|
+
this.aj.setStyleProperty("inset", "unset");
|
|
98
|
+
this.aj.setStyleProperty("padding", "0px");
|
|
99
|
+
this.aj.setStyleProperty("border-width", "0px");
|
|
100
|
+
this.al = this.ag.createElement("div");
|
|
101
|
+
this.al.setStyleProperty("height", 20 * 1.414 / 2 + "px");
|
|
102
|
+
this.ak = this.ag.createElement("div");
|
|
106
103
|
this.ak.setStyleProperty("position", "relative");
|
|
107
|
-
this.ak.setStyleProperty("
|
|
108
|
-
this.ak.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.ag.
|
|
113
|
-
this.
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
116
|
-
this.
|
|
117
|
-
this.
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
this.ak.setStyleProperty("width", this.af + "px");
|
|
105
|
+
this.ak.setStyleProperty("height", this.af + "px");
|
|
106
|
+
this.ak.setStyleProperty("z-index", "1");
|
|
107
|
+
this.ak.setStyleProperty("clip-path", stringFormat("path(\"M0,0l{0},{0}l0,-{0}l-{0},0Z\")", this.af));
|
|
108
|
+
this.al.append(this.ak);
|
|
109
|
+
this.an = this.ag.createElement("div");
|
|
110
|
+
this.an.setStyleProperty("position", "relative");
|
|
111
|
+
this.an.setStyleProperty("overflow", "hidden");
|
|
112
|
+
this.an.setAttribute("key", "popupContentAreaOuter");
|
|
113
|
+
this.bf(this.g.ar);
|
|
114
|
+
this.aj.listen("mouseenter", runOn(this, this.a7));
|
|
115
|
+
this.aj.listen("mouseleave", runOn(this, this.a8));
|
|
116
|
+
this.aj.listen("focusin", runOn(this, this.a4));
|
|
117
|
+
this.aj.listen("focusout", runOn(this, this.a5));
|
|
118
|
+
this.am = this.ag.createElement("div");
|
|
119
|
+
this.am.setAttribute("key", "popupContentAreaInner");
|
|
120
|
+
this.an.append(this.am);
|
|
121
|
+
this.aj.append(this.an);
|
|
122
|
+
}
|
|
123
|
+
bn() {
|
|
120
124
|
let a = this.g;
|
|
121
|
-
let b = ElevationHelper.e(a.
|
|
122
|
-
this.
|
|
125
|
+
let b = ElevationHelper.e(a.a6, a.cv, a.cu, a.ct);
|
|
126
|
+
if (this.l()) {
|
|
127
|
+
this.aj.setStyleProperty("box-shadow", b);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
this.an.setStyleProperty("box-shadow", b);
|
|
131
|
+
}
|
|
123
132
|
}
|
|
124
|
-
|
|
125
|
-
if (this.g.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
133
|
+
bl() {
|
|
134
|
+
if (this.g.cw != null) {
|
|
135
|
+
this.an.setStyleProperty("background-color", this.g.cw._fill);
|
|
136
|
+
this.ak.setStyleProperty("background-color", this.g.cw._fill);
|
|
128
137
|
}
|
|
129
|
-
if (this.g.
|
|
130
|
-
this.
|
|
138
|
+
if (this.g.c0 != null) {
|
|
139
|
+
this.ak.setStyleProperty("background-color", this.g.c0._fill);
|
|
131
140
|
}
|
|
132
141
|
}
|
|
133
|
-
|
|
134
|
-
if (!isNaN_(this.g.
|
|
135
|
-
NativeUI.o(this.
|
|
142
|
+
bm() {
|
|
143
|
+
if (!isNaN_(this.g.a0)) {
|
|
144
|
+
NativeUI.o(this.an, new CornerRadius(0, this.g.a0));
|
|
136
145
|
}
|
|
137
146
|
}
|
|
138
|
-
|
|
139
|
-
if (null == this.
|
|
147
|
+
bo() {
|
|
148
|
+
if (null == this.ao) {
|
|
140
149
|
return;
|
|
141
150
|
}
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
151
|
+
this.be(this.g.aq);
|
|
152
|
+
this.bn();
|
|
153
|
+
this.bl();
|
|
154
|
+
this.bm();
|
|
155
|
+
}
|
|
156
|
+
a7(a) {
|
|
157
|
+
this.g.cb();
|
|
158
|
+
}
|
|
159
|
+
a8(a) {
|
|
160
|
+
this.g.cc();
|
|
145
161
|
}
|
|
146
162
|
a4(a) {
|
|
147
|
-
this.g.
|
|
163
|
+
this.g.b9();
|
|
148
164
|
}
|
|
149
165
|
a5(a) {
|
|
150
|
-
this.g.
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
this.
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (null != this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
let a = this.
|
|
163
|
-
if (false == this.
|
|
164
|
-
this.
|
|
165
|
-
if (this.g.
|
|
166
|
-
let b = this.g.
|
|
166
|
+
this.g.ca(a.originalEvent.relatedTarget);
|
|
167
|
+
}
|
|
168
|
+
o() {
|
|
169
|
+
return (HTMLElement.prototype.hasOwnProperty("popover"));
|
|
170
|
+
}
|
|
171
|
+
l() {
|
|
172
|
+
return this.o() && this.g.ax;
|
|
173
|
+
}
|
|
174
|
+
at() {
|
|
175
|
+
if (null != this.aj) {
|
|
176
|
+
this.bo();
|
|
177
|
+
this.an.setStyleProperty("height", "0px");
|
|
178
|
+
let a = this.aj.getNativeElement();
|
|
179
|
+
if (false == this.m) {
|
|
180
|
+
this.al.remove();
|
|
181
|
+
if (this.g.at) {
|
|
182
|
+
let b = this.g.t();
|
|
167
183
|
if (b == 1) {
|
|
168
|
-
this.
|
|
169
|
-
let c = this.
|
|
170
|
-
let d = this.
|
|
171
|
-
let e = this.
|
|
184
|
+
this.aj.setStyleProperty("display", "block");
|
|
185
|
+
let c = this.aj.getNativeElement();
|
|
186
|
+
let d = this.al.getNativeElement();
|
|
187
|
+
let e = this.an.getNativeElement();
|
|
172
188
|
c.insertBefore(d, e);
|
|
173
189
|
}
|
|
174
190
|
else if (b == 2) {
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
191
|
+
this.aj.setStyleProperty("display", "block");
|
|
192
|
+
this.aj.append(this.al);
|
|
177
193
|
}
|
|
178
194
|
else if (b == 3) {
|
|
179
|
-
this.
|
|
180
|
-
let f = this.
|
|
181
|
-
let g = this.
|
|
182
|
-
let h = this.
|
|
195
|
+
this.aj.setStyleProperty("display", "flex");
|
|
196
|
+
let f = this.aj.getNativeElement();
|
|
197
|
+
let g = this.al.getNativeElement();
|
|
198
|
+
let h = this.an.getNativeElement();
|
|
183
199
|
f.insertBefore(g, h);
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
200
|
+
this.al.setStyleProperty("height", "unset");
|
|
201
|
+
this.al.setStyleProperty("width", 20 * 1.414 / 2 + "px");
|
|
186
202
|
}
|
|
187
203
|
else if (b == 4) {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
204
|
+
this.aj.setStyleProperty("display", "flex");
|
|
205
|
+
this.aj.append(this.al);
|
|
206
|
+
this.al.setStyleProperty("height", "unset");
|
|
207
|
+
this.al.setStyleProperty("width", 20 * 1.414 / 2 + "px");
|
|
192
208
|
}
|
|
193
209
|
}
|
|
194
|
-
|
|
195
|
-
|
|
210
|
+
if (this.g.bd != null) {
|
|
211
|
+
this.g.bd.appendChild(a);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
document.body.appendChild(a);
|
|
215
|
+
}
|
|
216
|
+
this.m = true;
|
|
196
217
|
if (this.k) {
|
|
197
|
-
this.
|
|
218
|
+
this.a1();
|
|
219
|
+
}
|
|
220
|
+
this.bh(this.g.ax);
|
|
221
|
+
if (this.l()) {
|
|
222
|
+
a.showPopover();
|
|
198
223
|
}
|
|
199
224
|
}
|
|
200
225
|
}
|
|
201
226
|
}
|
|
202
|
-
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
209
|
-
if (this.
|
|
210
|
-
this.
|
|
227
|
+
au(a, b) {
|
|
228
|
+
this.aj.setStyleProperty("top", PopupView.ar(a.f));
|
|
229
|
+
this.an.setStyleProperty("height", PopupView.as(a.h));
|
|
230
|
+
this.am.setStyleProperty("top", PopupView.as(b.b));
|
|
231
|
+
this.am.setStyleProperty("opacity", "1");
|
|
232
|
+
this.am.setStyleProperty("transform", stringEmpty());
|
|
233
|
+
this.x = 0;
|
|
234
|
+
if (this.p) {
|
|
235
|
+
this.bk();
|
|
211
236
|
}
|
|
212
|
-
if (this.g.
|
|
213
|
-
this.
|
|
237
|
+
if (this.g.aw) {
|
|
238
|
+
this.ap.observe(this.ai.getNativeElement());
|
|
214
239
|
}
|
|
215
240
|
else {
|
|
216
|
-
this.
|
|
241
|
+
this.ap.disconnect();
|
|
217
242
|
}
|
|
218
243
|
if (this.g.an) {
|
|
219
|
-
this.
|
|
244
|
+
this.bg(this.g.as);
|
|
220
245
|
}
|
|
221
246
|
return {
|
|
222
247
|
p0: a,
|
|
223
248
|
p1: b
|
|
224
249
|
};
|
|
225
250
|
}
|
|
226
|
-
|
|
227
|
-
this.
|
|
251
|
+
av(a) {
|
|
252
|
+
this.x = a;
|
|
228
253
|
if (this.g.an) {
|
|
229
|
-
this.
|
|
230
|
-
}
|
|
231
|
-
if (this.g.as) {
|
|
232
|
-
let b = 0;
|
|
233
|
-
let c = 0;
|
|
234
|
-
switch (this.g.s()) {
|
|
235
|
-
case 3:
|
|
236
|
-
b = -135;
|
|
237
|
-
c = this.z;
|
|
238
|
-
this.s = c;
|
|
239
|
-
this.t = a / 2 - this.z;
|
|
240
|
-
break;
|
|
241
|
-
case 4:
|
|
242
|
-
b = 45;
|
|
243
|
-
c = -this.z;
|
|
244
|
-
this.s = c;
|
|
245
|
-
this.t = a / 2 - this.z;
|
|
246
|
-
break;
|
|
247
|
-
}
|
|
248
|
-
this.r = b;
|
|
249
|
-
this.ah.setStyleProperty("transform", "translate(" + this.s + "px, " + this.t + "px) rotate(" + this.r + "deg)");
|
|
254
|
+
this.bg(false);
|
|
250
255
|
}
|
|
256
|
+
this.bi(this.bs.width, a);
|
|
251
257
|
}
|
|
252
|
-
|
|
253
|
-
if (null != this.
|
|
254
|
-
let a = this.
|
|
255
|
-
|
|
256
|
-
|
|
258
|
+
bc() {
|
|
259
|
+
if (null != this.aj && this.m) {
|
|
260
|
+
let a = this.aj.getNativeElement();
|
|
261
|
+
if (this.g.bd != null) {
|
|
262
|
+
this.g.bd.removeChild(a);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
document.body.removeChild(a);
|
|
266
|
+
}
|
|
267
|
+
this.m = false;
|
|
257
268
|
}
|
|
258
269
|
}
|
|
259
|
-
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
270
|
+
aw(a) {
|
|
271
|
+
this.ai = a;
|
|
272
|
+
this.am.append(this.ai);
|
|
273
|
+
this.ap = new ResizeObserver(runOn(this, this.a3));
|
|
263
274
|
}
|
|
264
|
-
|
|
265
|
-
if (this.
|
|
266
|
-
if (this.g.ao() && this.g.
|
|
275
|
+
a3(a) {
|
|
276
|
+
if (this.m) {
|
|
277
|
+
if (this.g.ao() && this.g.p == 0) {
|
|
267
278
|
return;
|
|
268
279
|
}
|
|
269
|
-
this.g.
|
|
280
|
+
this.g.b6();
|
|
270
281
|
}
|
|
271
282
|
}
|
|
272
283
|
j(a) {
|
|
273
|
-
let b = this.
|
|
284
|
+
let b = this.aj.getNativeElement();
|
|
274
285
|
return b.contains(a);
|
|
275
286
|
}
|
|
276
|
-
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
287
|
+
bb(a) {
|
|
288
|
+
this.ai = null;
|
|
289
|
+
this.ap.disconnect();
|
|
290
|
+
this.ap = null;
|
|
280
291
|
a.remove();
|
|
281
292
|
}
|
|
282
293
|
d(a) {
|
|
283
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
294
|
+
return new AnimationKeyFrameEffect(0, this.am, 0, null, a);
|
|
284
295
|
}
|
|
285
296
|
e(a) {
|
|
286
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
297
|
+
return new AnimationKeyFrameEffect(0, this.an, 0, null, a);
|
|
287
298
|
}
|
|
288
|
-
|
|
299
|
+
ay() {
|
|
289
300
|
if (KeyFrameAnimationFactory.h == null) {
|
|
290
|
-
KeyFrameAnimationFactory.h = this.
|
|
301
|
+
KeyFrameAnimationFactory.h = this.ah;
|
|
291
302
|
}
|
|
292
303
|
}
|
|
293
304
|
c(a) {
|
|
294
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
305
|
+
return new AnimationKeyFrameEffect(0, this.aj, 0, null, a);
|
|
295
306
|
}
|
|
296
307
|
b(a) {
|
|
297
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
308
|
+
return new AnimationKeyFrameEffect(0, this.an, 0, null, a);
|
|
298
309
|
}
|
|
299
310
|
a(a) {
|
|
300
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
311
|
+
return new AnimationKeyFrameEffect(0, this.aj, 0, null, a);
|
|
301
312
|
}
|
|
302
313
|
i() {
|
|
303
314
|
return 12;
|
|
@@ -305,20 +316,23 @@ export let PopupView = /*@__PURE__*/ (() => {
|
|
|
305
316
|
h() {
|
|
306
317
|
return 11;
|
|
307
318
|
}
|
|
308
|
-
|
|
319
|
+
n() {
|
|
320
|
+
return this.g.bd != null && !this.g.aq && !this.l();
|
|
321
|
+
}
|
|
322
|
+
get bs() {
|
|
309
323
|
if (this.k) {
|
|
310
|
-
this.
|
|
324
|
+
this.a1();
|
|
311
325
|
}
|
|
312
|
-
return this.
|
|
326
|
+
return this.br;
|
|
313
327
|
}
|
|
314
|
-
|
|
328
|
+
y(a, b, c) {
|
|
315
329
|
let d;
|
|
316
330
|
switch (b) {
|
|
317
331
|
case 3:
|
|
318
|
-
d = a.left - (this.
|
|
332
|
+
d = (!this.n() ? a.left : 0) - (this.bs.width + (this.g.at ? this.aa : 0));
|
|
319
333
|
break;
|
|
320
334
|
case 4:
|
|
321
|
-
d = a.right;
|
|
335
|
+
d = !this.n() ? a.right : a.width;
|
|
322
336
|
break;
|
|
323
337
|
case 0:
|
|
324
338
|
case 2:
|
|
@@ -326,78 +340,78 @@ export let PopupView = /*@__PURE__*/ (() => {
|
|
|
326
340
|
default:
|
|
327
341
|
switch (c) {
|
|
328
342
|
case 2:
|
|
329
|
-
d = a.right - this.
|
|
343
|
+
d = (!this.n() ? a.right : a.width) - this.bs.width;
|
|
330
344
|
break;
|
|
331
345
|
case 3:
|
|
332
|
-
d = a.right - (a.width / 2) - (this.
|
|
346
|
+
d = (!this.n() ? a.right : a.width) - (a.width / 2) - (this.bs.width / 2);
|
|
333
347
|
break;
|
|
334
348
|
case 0:
|
|
335
349
|
case 1:
|
|
336
350
|
default:
|
|
337
|
-
d = a.left;
|
|
351
|
+
d = !this.n() ? a.left : 0;
|
|
338
352
|
break;
|
|
339
353
|
}
|
|
340
354
|
break;
|
|
341
355
|
}
|
|
342
356
|
return d;
|
|
343
357
|
}
|
|
344
|
-
|
|
358
|
+
z(a, b, c) {
|
|
345
359
|
let d;
|
|
346
360
|
switch (b) {
|
|
347
361
|
case 3:
|
|
348
362
|
case 4:
|
|
349
363
|
switch (c) {
|
|
350
364
|
case 2:
|
|
351
|
-
d = a.bottom - this.
|
|
365
|
+
d = (!this.n() ? a.bottom : 0) - this.bs.height;
|
|
352
366
|
break;
|
|
353
367
|
case 3:
|
|
354
|
-
d = a.top - (this.
|
|
368
|
+
d = (!this.n() ? a.top : -a.height) - (this.bs.height / 2) + (a.height / 2);
|
|
355
369
|
break;
|
|
356
370
|
case 0:
|
|
357
371
|
case 1:
|
|
358
372
|
default:
|
|
359
|
-
d = a.top;
|
|
373
|
+
d = !this.n() ? a.top : -a.height;
|
|
360
374
|
break;
|
|
361
375
|
}
|
|
362
376
|
break;
|
|
363
377
|
case 2:
|
|
364
|
-
d = a.top - (this.
|
|
378
|
+
d = (!this.n() ? a.top : -a.height) - (this.bs.height + (this.g.at ? this.aa : 0));
|
|
365
379
|
break;
|
|
366
380
|
case 0:
|
|
367
381
|
case 1:
|
|
368
382
|
default:
|
|
369
|
-
d = a.bottom;
|
|
383
|
+
d = !this.n() ? a.bottom : 0;
|
|
370
384
|
break;
|
|
371
385
|
}
|
|
372
386
|
return d;
|
|
373
387
|
}
|
|
374
|
-
static
|
|
388
|
+
static as(a) {
|
|
375
389
|
return stringFormat("{0}px", a);
|
|
376
390
|
}
|
|
377
|
-
static
|
|
391
|
+
static ar(a) {
|
|
378
392
|
return stringFormat("{0}px", a);
|
|
379
393
|
}
|
|
380
|
-
|
|
381
|
-
if (this.g.
|
|
382
|
-
switch (this.g.
|
|
394
|
+
bj() {
|
|
395
|
+
if (this.g.r == 1 || this.g.r == 2) {
|
|
396
|
+
switch (this.g.j) {
|
|
383
397
|
case 3:
|
|
384
|
-
this.
|
|
398
|
+
this.v = this.ad + (this.s - this.q);
|
|
385
399
|
break;
|
|
386
400
|
}
|
|
387
401
|
}
|
|
388
|
-
else if (this.g.
|
|
389
|
-
switch (this.g.
|
|
402
|
+
else if (this.g.r == 3 || this.g.r == 4) {
|
|
403
|
+
switch (this.g.j) {
|
|
390
404
|
case 3:
|
|
391
|
-
this.
|
|
405
|
+
this.w = this.ae + (this.t - this.r);
|
|
392
406
|
break;
|
|
393
407
|
}
|
|
394
408
|
}
|
|
395
|
-
this.
|
|
409
|
+
this.ak.setStyleProperty("transform", "translate(" + this.v + "px, " + this.w + "px) rotate(" + this.u + "deg)");
|
|
396
410
|
}
|
|
397
|
-
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
if (this.g.
|
|
411
|
+
ax(a, b, c, d) {
|
|
412
|
+
this.s = a;
|
|
413
|
+
this.t = b;
|
|
414
|
+
if (this.g.r == 1 || this.g.r == 2) {
|
|
401
415
|
let e = (window.innerWidth);
|
|
402
416
|
let f = a;
|
|
403
417
|
let g = f + c;
|
|
@@ -408,7 +422,7 @@ export let PopupView = /*@__PURE__*/ (() => {
|
|
|
408
422
|
a = f - (g - (e - 5));
|
|
409
423
|
}
|
|
410
424
|
}
|
|
411
|
-
else if (this.g.
|
|
425
|
+
else if (this.g.r == 3 || this.g.r == 4) {
|
|
412
426
|
let h = (window.innerHeight);
|
|
413
427
|
let i = b;
|
|
414
428
|
let j = i + d;
|
|
@@ -424,161 +438,216 @@ export let PopupView = /*@__PURE__*/ (() => {
|
|
|
424
438
|
p1: b
|
|
425
439
|
};
|
|
426
440
|
}
|
|
427
|
-
|
|
428
|
-
let d = this.
|
|
429
|
-
let e = this.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
441
|
+
bq(a, b, c) {
|
|
442
|
+
let d = this.z(a, b, c);
|
|
443
|
+
let e = this.y(a, b, c);
|
|
444
|
+
if (this.g.bd == null) {
|
|
445
|
+
let f = this.ax(e, d, this.bs.width, this.bs.height);
|
|
446
|
+
e = f.p0;
|
|
447
|
+
d = f.p1;
|
|
448
|
+
}
|
|
449
|
+
this.bd(e, d);
|
|
434
450
|
if (b == 2 || c == 2) {
|
|
435
451
|
let g = 10;
|
|
436
452
|
while (g > 0) {
|
|
437
|
-
let h = this.
|
|
438
|
-
let i = this.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
453
|
+
let h = this.z(a, b, c);
|
|
454
|
+
let i = this.y(a, b, c);
|
|
455
|
+
if (this.g.bd == null) {
|
|
456
|
+
let j = this.ax(i, h, this.bs.width, this.bs.height);
|
|
457
|
+
i = j.p0;
|
|
458
|
+
h = j.p1;
|
|
459
|
+
}
|
|
442
460
|
if (h == d && i == e) {
|
|
443
461
|
g = 0;
|
|
444
462
|
break;
|
|
445
463
|
}
|
|
446
464
|
d = h;
|
|
447
465
|
e = i;
|
|
448
|
-
this.
|
|
466
|
+
this.bd(e, d);
|
|
449
467
|
g--;
|
|
450
468
|
}
|
|
451
469
|
}
|
|
452
|
-
this.
|
|
453
|
-
return new Rect(0, e, d, this.
|
|
470
|
+
this.bj();
|
|
471
|
+
return new Rect(0, e, d, this.bs.width, this.bs.height);
|
|
454
472
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
473
|
+
bp(a, b, c) {
|
|
474
|
+
let d = new Rect(4);
|
|
475
|
+
let target_ = a;
|
|
476
|
+
if ((target_.getBoundingClientRect)) {
|
|
477
|
+
let bRect_ = target_.getBoundingClientRect();
|
|
478
|
+
d.left = (bRect_.left);
|
|
479
|
+
d.top = (bRect_.top);
|
|
480
|
+
d.width = (bRect_.width);
|
|
481
|
+
d.height = (bRect_.height);
|
|
482
|
+
}
|
|
483
|
+
let e = this.bq(d, b, c);
|
|
484
|
+
return e;
|
|
485
|
+
}
|
|
486
|
+
a1() {
|
|
487
|
+
if (this.m) {
|
|
488
|
+
this.an.setStyleProperty("width", stringEmpty());
|
|
489
|
+
this.an.setStyleProperty("height", stringEmpty());
|
|
490
|
+
this.aj.setStyleProperty("width", stringEmpty());
|
|
491
|
+
this.aj.setStyleProperty("height", stringEmpty());
|
|
492
|
+
this.aj.setStyleProperty("position", "absolute");
|
|
493
|
+
this.br = new Size(1, this.am.outerWidth(), this.am.outerHeight());
|
|
462
494
|
this.k = false;
|
|
463
|
-
this.
|
|
495
|
+
this.bk();
|
|
464
496
|
}
|
|
465
497
|
else {
|
|
466
498
|
this.k = true;
|
|
467
499
|
}
|
|
468
500
|
}
|
|
469
|
-
|
|
501
|
+
bd(a, b) {
|
|
470
502
|
let c = stringFormat("{0}px", a);
|
|
471
503
|
let d = stringFormat("{0}px", b);
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
504
|
+
this.aj.setStyleProperty("left", c);
|
|
505
|
+
this.aj.setStyleProperty("top", d);
|
|
506
|
+
this.q = a;
|
|
507
|
+
this.r = b;
|
|
476
508
|
}
|
|
477
|
-
|
|
509
|
+
a9(a) {
|
|
478
510
|
if (a == null) {
|
|
479
|
-
this.
|
|
480
|
-
if (this.
|
|
481
|
-
this.
|
|
511
|
+
this.ag = null;
|
|
512
|
+
if (this.aj != null) {
|
|
513
|
+
this.aj.unlistenAll();
|
|
482
514
|
}
|
|
483
515
|
return;
|
|
484
516
|
}
|
|
485
|
-
this.
|
|
517
|
+
this.ag = a;
|
|
486
518
|
let b = a.rootWrapper;
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
519
|
+
this.az(b);
|
|
520
|
+
this.ag.getPortal(this.am, "ChildContent", (c) => {
|
|
489
521
|
let comp_ = c.componentRef;
|
|
490
|
-
this.
|
|
522
|
+
this.aq = comp_;
|
|
491
523
|
}, true);
|
|
492
524
|
}
|
|
493
|
-
|
|
494
|
-
let a = new Size(1, this.
|
|
495
|
-
if (!this.
|
|
525
|
+
bk() {
|
|
526
|
+
let a = new Size(1, this.bs.width, this.bs.height);
|
|
527
|
+
if (!this.m || !this.g.aw) {
|
|
496
528
|
a.height = 0;
|
|
497
529
|
}
|
|
498
530
|
let b = a.width;
|
|
499
531
|
let c = a.height;
|
|
500
532
|
let d = stringFormat("{0}px", b);
|
|
501
533
|
let e = stringFormat("{0}px", c);
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
switch (this.g.s()) {
|
|
534
|
+
this.bi(b, c);
|
|
535
|
+
if (this.g.at) {
|
|
536
|
+
switch (this.g.t()) {
|
|
506
537
|
case 2:
|
|
507
|
-
f = 135;
|
|
508
|
-
g = -this.z;
|
|
509
|
-
this.s = b / 2 - this.z;
|
|
510
|
-
this.t = g;
|
|
511
538
|
d = stringFormat("{0}px", b);
|
|
512
|
-
e = stringFormat("{0}px", this.
|
|
539
|
+
e = stringFormat("{0}px", this.aa + c);
|
|
513
540
|
break;
|
|
514
541
|
case 1:
|
|
515
|
-
f = -45;
|
|
516
|
-
g = this.x - this.z;
|
|
517
|
-
this.s = b / 2 - this.z;
|
|
518
|
-
this.t = g;
|
|
519
542
|
d = stringFormat("{0}px", b);
|
|
520
|
-
e = stringFormat("{0}px", this.
|
|
543
|
+
e = stringFormat("{0}px", this.aa + c);
|
|
521
544
|
break;
|
|
522
545
|
case 3:
|
|
523
|
-
|
|
524
|
-
g = this.x - this.z;
|
|
525
|
-
this.s = g;
|
|
526
|
-
this.t = c / 2 - this.z;
|
|
527
|
-
d = stringFormat("{0}px", this.x + b);
|
|
546
|
+
d = stringFormat("{0}px", this.aa + b);
|
|
528
547
|
e = stringFormat("{0}px", c);
|
|
529
548
|
break;
|
|
530
549
|
case 4:
|
|
531
|
-
|
|
532
|
-
g = -this.z;
|
|
533
|
-
this.s = g;
|
|
534
|
-
this.t = c / 2 - this.z;
|
|
535
|
-
d = stringFormat("{0}px", this.x + b);
|
|
550
|
+
d = stringFormat("{0}px", this.aa + b);
|
|
536
551
|
e = stringFormat("{0}px", c);
|
|
537
552
|
break;
|
|
538
553
|
}
|
|
539
|
-
this.r = f;
|
|
540
|
-
this.ah.setStyleProperty("transform", "translate(" + this.s + "px, " + this.t + "px) rotate(" + this.r + "deg)");
|
|
541
554
|
}
|
|
542
555
|
if (this.f.ao()) {
|
|
543
|
-
if (this.
|
|
556
|
+
if (this.x == c) {
|
|
544
557
|
return;
|
|
545
558
|
}
|
|
546
|
-
this.f.
|
|
547
|
-
this.
|
|
559
|
+
this.f.b2();
|
|
560
|
+
this.p = true;
|
|
548
561
|
return;
|
|
549
562
|
}
|
|
550
|
-
this.
|
|
551
|
-
let
|
|
552
|
-
let
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
|
|
563
|
+
this.p = false;
|
|
564
|
+
let f = stringFormat("{0}px", b);
|
|
565
|
+
let g = stringFormat("{0}px", c);
|
|
566
|
+
this.an.setStyleProperty("width", f);
|
|
567
|
+
this.an.setStyleProperty("height", g);
|
|
568
|
+
if (!this.l()) {
|
|
569
|
+
if (this.g.bd != null) {
|
|
570
|
+
e = "0px";
|
|
571
|
+
}
|
|
572
|
+
this.aj.setStyleProperty("width", d);
|
|
573
|
+
this.aj.setStyleProperty("height", e);
|
|
574
|
+
}
|
|
575
|
+
this.be(this.g.aq);
|
|
557
576
|
}
|
|
558
|
-
|
|
559
|
-
this.
|
|
560
|
-
|
|
577
|
+
bi(a, b) {
|
|
578
|
+
if (this.g.at) {
|
|
579
|
+
let c = 0;
|
|
580
|
+
let d = 0;
|
|
581
|
+
switch (this.g.t()) {
|
|
582
|
+
case 2:
|
|
583
|
+
c = 135;
|
|
584
|
+
d = -this.ac;
|
|
585
|
+
this.v = a / 2 - this.ac;
|
|
586
|
+
this.w = d;
|
|
587
|
+
break;
|
|
588
|
+
case 1:
|
|
589
|
+
c = -45;
|
|
590
|
+
d = this.aa - this.ac;
|
|
591
|
+
this.v = a / 2 - this.ac;
|
|
592
|
+
this.w = d;
|
|
593
|
+
break;
|
|
594
|
+
case 3:
|
|
595
|
+
c = -135;
|
|
596
|
+
d = this.aa - this.ac;
|
|
597
|
+
this.v = d;
|
|
598
|
+
this.w = b / 2 - this.ac;
|
|
599
|
+
break;
|
|
600
|
+
case 4:
|
|
601
|
+
c = 45;
|
|
602
|
+
d = -this.ac;
|
|
603
|
+
this.v = d;
|
|
604
|
+
this.w = b / 2 - this.ac;
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
this.u = c;
|
|
608
|
+
this.ak.setStyleProperty("transform", "translate(" + this.v + "px, " + this.w + "px) rotate(" + this.u + "deg)");
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
az(a) {
|
|
612
|
+
this.ao = a;
|
|
613
|
+
this.a6();
|
|
561
614
|
}
|
|
562
|
-
|
|
615
|
+
a0(a) {
|
|
563
616
|
this.f = a;
|
|
564
617
|
}
|
|
565
|
-
|
|
618
|
+
a2() {
|
|
566
619
|
}
|
|
567
|
-
|
|
568
|
-
this.
|
|
569
|
-
if (this.g.
|
|
620
|
+
ba() {
|
|
621
|
+
this.at();
|
|
622
|
+
if (this.g.aw) {
|
|
570
623
|
return;
|
|
571
624
|
}
|
|
572
|
-
this.
|
|
625
|
+
this.bk();
|
|
573
626
|
}
|
|
574
|
-
|
|
575
|
-
if (this.
|
|
576
|
-
this.
|
|
627
|
+
bg(a) {
|
|
628
|
+
if (this.aj != null) {
|
|
629
|
+
this.aj.setStyleProperty("pointer-events", a ? "auto" : "none");
|
|
577
630
|
}
|
|
578
631
|
}
|
|
579
|
-
|
|
580
|
-
if (this.
|
|
581
|
-
this.
|
|
632
|
+
bf(a) {
|
|
633
|
+
if (this.aj != null) {
|
|
634
|
+
this.aj.setAttribute("tabindex", a ? "-1" : "");
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
be(a) {
|
|
638
|
+
if (this.aj != null) {
|
|
639
|
+
this.aj.setStyleProperty("position", a ? "fixed" : this.g.bd != null ? "relative" : "absolute");
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
bh(a) {
|
|
643
|
+
if (this.aj != null && this.o()) {
|
|
644
|
+
let b = this.aj.getNativeElement();
|
|
645
|
+
if (a) {
|
|
646
|
+
b.popover = "manual";
|
|
647
|
+
}
|
|
648
|
+
else {
|
|
649
|
+
b.popover = undefined;
|
|
650
|
+
}
|
|
582
651
|
}
|
|
583
652
|
}
|
|
584
653
|
}
|
|
@@ -592,13 +661,12 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
592
661
|
class Popup extends Base {
|
|
593
662
|
constructor() {
|
|
594
663
|
super();
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.ab = null;
|
|
664
|
+
this.q = 0;
|
|
665
|
+
this.i = 0;
|
|
666
|
+
this.a1 = 0;
|
|
667
|
+
this.c3 = null;
|
|
668
|
+
this.c1 = null;
|
|
669
|
+
this.bb = null;
|
|
602
670
|
this.onClosed = null;
|
|
603
671
|
this.onPopup = null;
|
|
604
672
|
this.propertyChanged = null;
|
|
@@ -606,69 +674,77 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
606
674
|
this.popupMouseLeave = null;
|
|
607
675
|
this.popupGotFocus = null;
|
|
608
676
|
this.popupLostFocus = null;
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
677
|
+
this.w = null;
|
|
678
|
+
this.af = false;
|
|
679
|
+
this.a7 = 50;
|
|
612
680
|
this.ak = true;
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
681
|
+
this.o = 0;
|
|
682
|
+
this.a5 = -1;
|
|
683
|
+
this.a4 = Popup.a9;
|
|
684
|
+
this.av = false;
|
|
685
|
+
this.cq = Popup.cz;
|
|
686
|
+
this.cp = Popup.cy;
|
|
687
|
+
this.co = Popup.cx;
|
|
688
|
+
this.cr = null;
|
|
689
|
+
this.ay = 0;
|
|
690
|
+
this.ag = true;
|
|
691
|
+
this.ac = false;
|
|
692
|
+
this.ah = false;
|
|
693
|
+
this.s = 0;
|
|
694
|
+
this.cs = null;
|
|
695
|
+
this.az = 20;
|
|
624
696
|
this.ai = false;
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.ax = 20;
|
|
697
|
+
this.ad = false;
|
|
698
|
+
this.ae = false;
|
|
628
699
|
this.aj = false;
|
|
629
|
-
this.
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
this
|
|
633
|
-
a.ax(this);
|
|
700
|
+
this.k = null;
|
|
701
|
+
let a = this.v();
|
|
702
|
+
this.w = a;
|
|
703
|
+
a.a0(this);
|
|
634
704
|
}
|
|
635
|
-
get
|
|
636
|
-
return this.
|
|
705
|
+
get c4() {
|
|
706
|
+
return this.c3;
|
|
637
707
|
}
|
|
638
|
-
get
|
|
639
|
-
return this.
|
|
708
|
+
get c2() {
|
|
709
|
+
return this.c1;
|
|
640
710
|
}
|
|
641
|
-
get
|
|
642
|
-
return this.
|
|
711
|
+
get r() {
|
|
712
|
+
return this.q;
|
|
643
713
|
}
|
|
644
|
-
|
|
645
|
-
|
|
714
|
+
set r(a) {
|
|
715
|
+
this.q = a;
|
|
646
716
|
}
|
|
647
|
-
get
|
|
648
|
-
return this.
|
|
717
|
+
get j() {
|
|
718
|
+
return this.i;
|
|
719
|
+
}
|
|
720
|
+
get a2() {
|
|
721
|
+
return this.a1;
|
|
649
722
|
}
|
|
650
|
-
|
|
723
|
+
get bd() {
|
|
724
|
+
return this.bb;
|
|
725
|
+
}
|
|
726
|
+
cd(a, b, c) {
|
|
651
727
|
if (this.propertyChanged != null) {
|
|
652
728
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
653
729
|
}
|
|
654
|
-
this.
|
|
730
|
+
this.cg(a, b, c);
|
|
655
731
|
}
|
|
656
|
-
|
|
732
|
+
cb() {
|
|
657
733
|
if (this.popupMouseEnter != null) {
|
|
658
734
|
this.popupMouseEnter(this, new MouseEventArgs());
|
|
659
735
|
}
|
|
660
736
|
}
|
|
661
|
-
|
|
737
|
+
cc() {
|
|
662
738
|
if (this.popupMouseLeave != null) {
|
|
663
739
|
this.popupMouseLeave(this, new MouseEventArgs());
|
|
664
740
|
}
|
|
665
741
|
}
|
|
666
|
-
|
|
742
|
+
b9() {
|
|
667
743
|
if (this.popupGotFocus != null) {
|
|
668
744
|
this.popupGotFocus(this, new FocusEventArgs());
|
|
669
745
|
}
|
|
670
746
|
}
|
|
671
|
-
|
|
747
|
+
ca(a) {
|
|
672
748
|
if (this.popupLostFocus != null) {
|
|
673
749
|
this.popupLostFocus(this, ((() => {
|
|
674
750
|
let $ret = new FocusEventArgs();
|
|
@@ -677,24 +753,24 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
677
753
|
})()));
|
|
678
754
|
}
|
|
679
755
|
}
|
|
680
|
-
get
|
|
681
|
-
return this.
|
|
756
|
+
get ar() {
|
|
757
|
+
return this.af;
|
|
682
758
|
}
|
|
683
|
-
set
|
|
684
|
-
let b = this.
|
|
685
|
-
this.
|
|
686
|
-
if (b != this.
|
|
687
|
-
this.
|
|
759
|
+
set ar(a) {
|
|
760
|
+
let b = this.af;
|
|
761
|
+
this.af = a;
|
|
762
|
+
if (b != this.af) {
|
|
763
|
+
this.cd("IsFocusable", b, this.af);
|
|
688
764
|
}
|
|
689
765
|
}
|
|
690
|
-
get
|
|
691
|
-
return this.
|
|
766
|
+
get a8() {
|
|
767
|
+
return this.a7;
|
|
692
768
|
}
|
|
693
|
-
set
|
|
694
|
-
let b = this.
|
|
695
|
-
this.
|
|
696
|
-
if (b != this.
|
|
697
|
-
this.
|
|
769
|
+
set a8(a) {
|
|
770
|
+
let b = this.a7;
|
|
771
|
+
this.a7 = a;
|
|
772
|
+
if (b != this.a7) {
|
|
773
|
+
this.cd("AnimationDuration", b, a);
|
|
698
774
|
}
|
|
699
775
|
}
|
|
700
776
|
get al() {
|
|
@@ -704,176 +780,197 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
704
780
|
let b = this.ak;
|
|
705
781
|
this.ak = a;
|
|
706
782
|
if (b != this.ak) {
|
|
707
|
-
this.
|
|
783
|
+
this.cd("AnimationEnabled", b, a);
|
|
708
784
|
}
|
|
709
785
|
}
|
|
710
|
-
get
|
|
711
|
-
return this.
|
|
786
|
+
get p() {
|
|
787
|
+
return this.o;
|
|
712
788
|
}
|
|
713
|
-
set
|
|
714
|
-
let b = this.
|
|
715
|
-
this.
|
|
716
|
-
if (b != this.
|
|
717
|
-
this.
|
|
789
|
+
set p(a) {
|
|
790
|
+
let b = this.o;
|
|
791
|
+
this.o = a;
|
|
792
|
+
if (b != this.o) {
|
|
793
|
+
this.cd("AnimationType", enumGetBox(PopupAnimationType_$type, b), enumGetBox(PopupAnimationType_$type, this.o));
|
|
718
794
|
}
|
|
719
795
|
}
|
|
720
|
-
get
|
|
721
|
-
return this.
|
|
796
|
+
get ba() {
|
|
797
|
+
return this.a5;
|
|
722
798
|
}
|
|
723
|
-
set
|
|
724
|
-
let b = this.
|
|
725
|
-
this.
|
|
726
|
-
if (b != this.
|
|
727
|
-
this.
|
|
799
|
+
set ba(a) {
|
|
800
|
+
let b = this.a5;
|
|
801
|
+
this.a5 = a;
|
|
802
|
+
if (b != this.a5) {
|
|
803
|
+
this.cd("Elevation", b, a);
|
|
728
804
|
}
|
|
729
805
|
}
|
|
730
|
-
get
|
|
731
|
-
return this.
|
|
806
|
+
get a6() {
|
|
807
|
+
return this.a4;
|
|
732
808
|
}
|
|
733
|
-
set
|
|
734
|
-
let b = this.
|
|
735
|
-
this.
|
|
736
|
-
if (b != this.
|
|
737
|
-
this.
|
|
809
|
+
set a6(a) {
|
|
810
|
+
let b = this.a4;
|
|
811
|
+
this.a4 = a;
|
|
812
|
+
if (b != this.a4) {
|
|
813
|
+
this.cd("ActualElevation", b, a);
|
|
738
814
|
}
|
|
739
815
|
}
|
|
740
|
-
get
|
|
741
|
-
return this.
|
|
816
|
+
get aw() {
|
|
817
|
+
return this.av;
|
|
742
818
|
}
|
|
743
|
-
get
|
|
744
|
-
return this.
|
|
819
|
+
get cv() {
|
|
820
|
+
return this.cq;
|
|
745
821
|
}
|
|
746
|
-
set
|
|
747
|
-
let b = this.
|
|
748
|
-
this.
|
|
749
|
-
if (b != this.
|
|
750
|
-
this.
|
|
822
|
+
set cv(a) {
|
|
823
|
+
let b = this.cq;
|
|
824
|
+
this.cq = a;
|
|
825
|
+
if (b != this.cq) {
|
|
826
|
+
this.cd("ActualUmbraShadowColor", b, a);
|
|
751
827
|
}
|
|
752
828
|
}
|
|
753
|
-
get
|
|
754
|
-
return this.
|
|
829
|
+
get cu() {
|
|
830
|
+
return this.cp;
|
|
755
831
|
}
|
|
756
|
-
set
|
|
757
|
-
let b = this.
|
|
758
|
-
this.
|
|
759
|
-
if (b != this.
|
|
760
|
-
this.
|
|
832
|
+
set cu(a) {
|
|
833
|
+
let b = this.cp;
|
|
834
|
+
this.cp = a;
|
|
835
|
+
if (b != this.cp) {
|
|
836
|
+
this.cd("ActualPenumbraShadowColor", b, a);
|
|
761
837
|
}
|
|
762
838
|
}
|
|
763
|
-
get
|
|
764
|
-
return this.
|
|
839
|
+
get ct() {
|
|
840
|
+
return this.co;
|
|
765
841
|
}
|
|
766
|
-
set
|
|
767
|
-
let b = this.
|
|
768
|
-
this.
|
|
769
|
-
if (b != this.
|
|
770
|
-
this.
|
|
842
|
+
set ct(a) {
|
|
843
|
+
let b = this.co;
|
|
844
|
+
this.co = a;
|
|
845
|
+
if (b != this.co) {
|
|
846
|
+
this.cd("ActualAmbientShadowColor", b, a);
|
|
771
847
|
}
|
|
772
848
|
}
|
|
773
|
-
get
|
|
774
|
-
return this.
|
|
849
|
+
get cw() {
|
|
850
|
+
return this.cr;
|
|
775
851
|
}
|
|
776
|
-
set
|
|
777
|
-
let b = this.
|
|
778
|
-
this.
|
|
779
|
-
if (b != this.
|
|
780
|
-
this.
|
|
852
|
+
set cw(a) {
|
|
853
|
+
let b = this.cr;
|
|
854
|
+
this.cr = a;
|
|
855
|
+
if (b != this.cr) {
|
|
856
|
+
this.cd("Background", b, this.cr);
|
|
781
857
|
}
|
|
782
858
|
}
|
|
783
|
-
get
|
|
784
|
-
return this.
|
|
859
|
+
get a0() {
|
|
860
|
+
return this.ay;
|
|
785
861
|
}
|
|
786
|
-
set
|
|
787
|
-
let b = this.
|
|
788
|
-
this.
|
|
789
|
-
if (b != this.
|
|
790
|
-
this.
|
|
862
|
+
set a0(a) {
|
|
863
|
+
let b = this.ay;
|
|
864
|
+
this.ay = a;
|
|
865
|
+
if (b != this.ay) {
|
|
866
|
+
this.cd("CornerRadius", b, this.ay);
|
|
791
867
|
}
|
|
792
868
|
}
|
|
793
|
-
get
|
|
794
|
-
return this.
|
|
869
|
+
get as() {
|
|
870
|
+
return this.ag;
|
|
795
871
|
}
|
|
796
|
-
set
|
|
797
|
-
let b = this.
|
|
798
|
-
this.
|
|
799
|
-
if (b != this.
|
|
800
|
-
this.
|
|
872
|
+
set as(a) {
|
|
873
|
+
let b = this.ag;
|
|
874
|
+
this.ag = a;
|
|
875
|
+
if (b != this.ag) {
|
|
876
|
+
this.cd("IsHitTestVisible", b, this.ag);
|
|
801
877
|
}
|
|
802
878
|
}
|
|
803
879
|
get an() {
|
|
804
|
-
return this.
|
|
880
|
+
return this.ac;
|
|
805
881
|
}
|
|
806
882
|
set an(a) {
|
|
807
|
-
let b = this.
|
|
808
|
-
this.
|
|
809
|
-
if (b != this.
|
|
810
|
-
this.
|
|
883
|
+
let b = this.ac;
|
|
884
|
+
this.ac = a;
|
|
885
|
+
if (b != this.ac) {
|
|
886
|
+
this.cd("DisableHitTestDuringAnimation", b, this.ac);
|
|
811
887
|
}
|
|
812
888
|
}
|
|
813
|
-
get
|
|
814
|
-
return this.
|
|
889
|
+
get at() {
|
|
890
|
+
return this.ah;
|
|
815
891
|
}
|
|
816
|
-
set
|
|
817
|
-
let b = this.
|
|
818
|
-
this.
|
|
819
|
-
if (b != this.
|
|
820
|
-
this.
|
|
892
|
+
set at(a) {
|
|
893
|
+
let b = this.ah;
|
|
894
|
+
this.ah = a;
|
|
895
|
+
if (b != this.ah) {
|
|
896
|
+
this.cd("IsPointerEnabled", b, this.ah);
|
|
821
897
|
}
|
|
822
898
|
}
|
|
823
|
-
get
|
|
824
|
-
return this.
|
|
899
|
+
get u() {
|
|
900
|
+
return this.s;
|
|
825
901
|
}
|
|
826
|
-
set
|
|
827
|
-
let b = this.
|
|
828
|
-
this.
|
|
829
|
-
if (b != this.
|
|
830
|
-
this.
|
|
902
|
+
set u(a) {
|
|
903
|
+
let b = this.s;
|
|
904
|
+
this.s = a;
|
|
905
|
+
if (b != this.s) {
|
|
906
|
+
this.cd("PointerPosition", enumGetBox(PopupPointerPosition_$type, b), enumGetBox(PopupPointerPosition_$type, this.s));
|
|
831
907
|
}
|
|
832
908
|
}
|
|
833
|
-
get
|
|
834
|
-
return this.
|
|
909
|
+
get c0() {
|
|
910
|
+
return this.cs;
|
|
835
911
|
}
|
|
836
|
-
set
|
|
837
|
-
let b = this.
|
|
838
|
-
this.
|
|
839
|
-
if (b != this.
|
|
840
|
-
this.
|
|
912
|
+
set c0(a) {
|
|
913
|
+
let b = this.cs;
|
|
914
|
+
this.cs = a;
|
|
915
|
+
if (b != this.cs) {
|
|
916
|
+
this.cd("PointerBackground", b, this.cs);
|
|
841
917
|
}
|
|
842
918
|
}
|
|
843
|
-
get
|
|
844
|
-
return this.
|
|
919
|
+
get a3() {
|
|
920
|
+
return this.az;
|
|
845
921
|
}
|
|
846
|
-
set
|
|
847
|
-
let b = this.
|
|
848
|
-
this.
|
|
849
|
-
if (b != this.
|
|
850
|
-
this.
|
|
922
|
+
set a3(a) {
|
|
923
|
+
let b = this.az;
|
|
924
|
+
this.az = a;
|
|
925
|
+
if (b != this.az) {
|
|
926
|
+
this.cd("PointerSize", b, this.az);
|
|
851
927
|
}
|
|
852
928
|
}
|
|
853
|
-
get
|
|
854
|
-
return this.
|
|
929
|
+
get au() {
|
|
930
|
+
return this.ai;
|
|
855
931
|
}
|
|
856
|
-
set
|
|
857
|
-
this.
|
|
932
|
+
set au(a) {
|
|
933
|
+
this.ai = a;
|
|
858
934
|
}
|
|
859
935
|
get ap() {
|
|
860
|
-
return this.
|
|
936
|
+
return this.ad;
|
|
861
937
|
}
|
|
862
938
|
set ap(a) {
|
|
863
|
-
this.
|
|
939
|
+
this.ad = a;
|
|
940
|
+
}
|
|
941
|
+
get aq() {
|
|
942
|
+
return this.ae;
|
|
943
|
+
}
|
|
944
|
+
set aq(a) {
|
|
945
|
+
let b = this.ae;
|
|
946
|
+
this.ae = a;
|
|
947
|
+
if (b != this.ae) {
|
|
948
|
+
this.cd("IsFixed", b, this.ae);
|
|
949
|
+
}
|
|
864
950
|
}
|
|
865
|
-
|
|
951
|
+
get ax() {
|
|
952
|
+
return this.aj;
|
|
953
|
+
}
|
|
954
|
+
set ax(a) {
|
|
955
|
+
let b = this.aj;
|
|
956
|
+
this.aj = a;
|
|
957
|
+
if (b != this.aj) {
|
|
958
|
+
this.cd("UseTopLayer", b, this.aj);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
v() {
|
|
866
962
|
return new PopupView();
|
|
867
963
|
}
|
|
868
|
-
|
|
964
|
+
cg(a, b, c) {
|
|
869
965
|
switch (a) {
|
|
870
966
|
case "IsShown":
|
|
871
|
-
if (false == this.
|
|
872
|
-
this.
|
|
967
|
+
if (false == this.aw) {
|
|
968
|
+
this.w.bc();
|
|
969
|
+
this.bb = null;
|
|
873
970
|
}
|
|
874
971
|
break;
|
|
875
972
|
case "Elevation":
|
|
876
|
-
this.
|
|
973
|
+
this.a6 = this.ba == -1 ? Popup.a9 : this.ba;
|
|
877
974
|
break;
|
|
878
975
|
case "ActualElevation":
|
|
879
976
|
case "ActualUmbraShadowColor":
|
|
@@ -881,35 +978,40 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
881
978
|
case "ActualAmbientShadowColor":
|
|
882
979
|
case "Background":
|
|
883
980
|
case "CornerRadius":
|
|
884
|
-
this.
|
|
981
|
+
this.w.bo();
|
|
885
982
|
break;
|
|
886
983
|
case "AnimationEnabled":
|
|
887
984
|
if (false == this.al) {
|
|
888
|
-
this.
|
|
985
|
+
this.b2();
|
|
889
986
|
}
|
|
890
987
|
break;
|
|
891
988
|
case "IsHitTestVisible":
|
|
892
|
-
this.
|
|
989
|
+
this.w.bg(this.as);
|
|
893
990
|
break;
|
|
894
991
|
case "IsFocusable":
|
|
895
|
-
this.
|
|
992
|
+
this.w.bf(this.ar);
|
|
993
|
+
break;
|
|
994
|
+
case "IsFixed":
|
|
995
|
+
this.w.be(this.aq);
|
|
996
|
+
break;
|
|
997
|
+
case "UseTopLayer":
|
|
998
|
+
this.w.bh(this.ax);
|
|
896
999
|
break;
|
|
897
1000
|
}
|
|
898
1001
|
}
|
|
899
|
-
|
|
1002
|
+
b2() {
|
|
900
1003
|
if (this.ao()) {
|
|
901
|
-
|
|
902
|
-
this.
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
this.aa.cancel();
|
|
1004
|
+
for (let a = 0; a < this.k.a.count; a++) {
|
|
1005
|
+
if (this.k.a._inner[a].playState == 1) {
|
|
1006
|
+
this.k.a._inner[a].cancel();
|
|
1007
|
+
}
|
|
906
1008
|
}
|
|
907
1009
|
}
|
|
908
1010
|
}
|
|
909
|
-
|
|
910
|
-
let b = this.
|
|
911
|
-
let c = a ? this.
|
|
912
|
-
let d = this.
|
|
1011
|
+
z(a) {
|
|
1012
|
+
let b = this.g(a);
|
|
1013
|
+
let c = a ? this.c() : this.b();
|
|
1014
|
+
let d = this.w.d(c);
|
|
913
1015
|
let e = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
914
1016
|
let f = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
915
1017
|
let g = new TranslateTransform();
|
|
@@ -924,52 +1026,60 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
924
1026
|
d.m(...f.toArray());
|
|
925
1027
|
return KeyFrameAnimationFactory.f.c(d);
|
|
926
1028
|
}
|
|
927
|
-
|
|
928
|
-
let b =
|
|
929
|
-
this.
|
|
930
|
-
|
|
931
|
-
let d = this.
|
|
932
|
-
let e =
|
|
1029
|
+
a(a) {
|
|
1030
|
+
let b = new List$1(IKeyFrameAnimation_$type, 0);
|
|
1031
|
+
let c = this.h(a);
|
|
1032
|
+
this.w.av(c.h);
|
|
1033
|
+
let d = a ? this.c() : this.b();
|
|
1034
|
+
let e = this.w.e(d);
|
|
933
1035
|
let f = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
934
|
-
let g = new AnimationKeyFrameProperty
|
|
935
|
-
let h = new AnimationKeyFrameProperty(10,
|
|
936
|
-
|
|
1036
|
+
let g = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
1037
|
+
let h = new AnimationKeyFrameProperty(10, c.g);
|
|
1038
|
+
let i = new AnimationKeyFrameProperty(10, c.h);
|
|
937
1039
|
f.add(h);
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
f
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1040
|
+
g.add(i);
|
|
1041
|
+
e.m(...f.toArray());
|
|
1042
|
+
e.m(...g.toArray());
|
|
1043
|
+
b.add(KeyFrameAnimationFactory.f.c(e));
|
|
1044
|
+
if (this.q == 2) {
|
|
1045
|
+
let j = c.c;
|
|
1046
|
+
let k = c.f;
|
|
1047
|
+
let l = this.w.c(d);
|
|
1048
|
+
let m = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
1049
|
+
let n = new List$1(AnimationKeyFrameProperty.$, 0);
|
|
1050
|
+
let o = new AnimationKeyFrameProperty(12, j);
|
|
1051
|
+
let p = new AnimationKeyFrameProperty(12, k);
|
|
1052
|
+
m.add(o);
|
|
1053
|
+
n.add(p);
|
|
1054
|
+
l.m(...m.toArray());
|
|
1055
|
+
l.m(...n.toArray());
|
|
1056
|
+
b.add(KeyFrameAnimationFactory.f.c(l));
|
|
1057
|
+
}
|
|
1058
|
+
return b.toArray();
|
|
949
1059
|
}
|
|
950
|
-
|
|
1060
|
+
b() {
|
|
951
1061
|
let a = new AnimationKeyFrameEffectTiming();
|
|
952
|
-
a.g = this.
|
|
1062
|
+
a.g = this.a8;
|
|
953
1063
|
a.b = 3;
|
|
954
1064
|
return a;
|
|
955
1065
|
}
|
|
956
|
-
|
|
1066
|
+
c() {
|
|
957
1067
|
let a = new AnimationKeyFrameEffectTiming();
|
|
958
|
-
a.g = this.
|
|
1068
|
+
a.g = this.a8;
|
|
959
1069
|
a.b = 3;
|
|
960
1070
|
return a;
|
|
961
1071
|
}
|
|
962
|
-
|
|
963
|
-
this.
|
|
1072
|
+
b5() {
|
|
1073
|
+
this.w.ay();
|
|
964
1074
|
}
|
|
965
|
-
|
|
966
|
-
let b = truncate(this.
|
|
1075
|
+
g(a) {
|
|
1076
|
+
let b = truncate(this.w.bs.height);
|
|
967
1077
|
if (b <= 0) {
|
|
968
1078
|
b = 500;
|
|
969
1079
|
}
|
|
970
1080
|
let c = a ? -b : 0;
|
|
971
1081
|
let d = a ? 0 : -b;
|
|
972
|
-
if (this.
|
|
1082
|
+
if (this.q == 2) {
|
|
973
1083
|
c = 0;
|
|
974
1084
|
d = 0;
|
|
975
1085
|
}
|
|
@@ -981,35 +1091,35 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
981
1091
|
})());
|
|
982
1092
|
return e;
|
|
983
1093
|
}
|
|
984
|
-
|
|
985
|
-
let b = truncate(this.
|
|
1094
|
+
h(a) {
|
|
1095
|
+
let b = truncate(this.w.bs.height);
|
|
986
1096
|
if (b <= 0) {
|
|
987
1097
|
b = 500;
|
|
988
1098
|
}
|
|
989
1099
|
let c = a ? 0 : b;
|
|
990
1100
|
let d = a ? b : 0;
|
|
991
|
-
let e = this.
|
|
992
|
-
let f = this.
|
|
993
|
-
let g = this.
|
|
1101
|
+
let e = this.c3.top;
|
|
1102
|
+
let f = this.c3.top;
|
|
1103
|
+
let g = this.c3.left;
|
|
994
1104
|
let h = g;
|
|
995
|
-
switch (this.
|
|
1105
|
+
switch (this.q) {
|
|
996
1106
|
case 2:
|
|
997
|
-
e = a ? this.
|
|
998
|
-
f = a ? this.
|
|
999
|
-
g = this.
|
|
1107
|
+
e = a ? this.c3.bottom : this.c3.top;
|
|
1108
|
+
f = a ? this.c3.top : this.c3.bottom;
|
|
1109
|
+
g = this.c3.left;
|
|
1000
1110
|
h = g;
|
|
1001
1111
|
break;
|
|
1002
1112
|
case 1:
|
|
1003
|
-
e = this.
|
|
1004
|
-
f = this.
|
|
1005
|
-
g = this.
|
|
1113
|
+
e = this.c3.top;
|
|
1114
|
+
f = this.c3.top;
|
|
1115
|
+
g = this.c3.left;
|
|
1006
1116
|
h = g;
|
|
1007
1117
|
break;
|
|
1008
1118
|
case 3:
|
|
1009
1119
|
case 4:
|
|
1010
|
-
e = this.
|
|
1120
|
+
e = this.c3.top;
|
|
1011
1121
|
f = e;
|
|
1012
|
-
g = this.
|
|
1122
|
+
g = this.c3.left;
|
|
1013
1123
|
h = g;
|
|
1014
1124
|
break;
|
|
1015
1125
|
}
|
|
@@ -1026,59 +1136,79 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
1026
1136
|
return i;
|
|
1027
1137
|
}
|
|
1028
1138
|
ao() {
|
|
1029
|
-
if (
|
|
1139
|
+
if (this.k == null) {
|
|
1030
1140
|
return false;
|
|
1031
1141
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
return true;
|
|
1142
|
+
for (let a = 0; a < this.k.a.count; a++) {
|
|
1143
|
+
if (this.k.a._inner[a].playState == 1) {
|
|
1144
|
+
return true;
|
|
1145
|
+
}
|
|
1037
1146
|
}
|
|
1038
1147
|
return false;
|
|
1039
1148
|
}
|
|
1040
|
-
|
|
1041
|
-
this.
|
|
1149
|
+
b6() {
|
|
1150
|
+
this.w.a1();
|
|
1151
|
+
if (this.aw) {
|
|
1152
|
+
if (this.bd != null) {
|
|
1153
|
+
this.c3 = this.w.bp(this.bd, this.q, this.i);
|
|
1154
|
+
}
|
|
1155
|
+
else {
|
|
1156
|
+
this.c3 = this.w.bq(this.c1, this.q, this.i);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
cf(a, b, c) {
|
|
1161
|
+
this.c1 = a;
|
|
1162
|
+
this.q = b;
|
|
1163
|
+
this.i = c;
|
|
1164
|
+
this.a1 = 0;
|
|
1165
|
+
this.w.ba();
|
|
1166
|
+
this.c3 = this.w.bq(a, b, c);
|
|
1167
|
+
}
|
|
1168
|
+
ce(a, b, c) {
|
|
1169
|
+
this.bb = a;
|
|
1170
|
+
this.q = b;
|
|
1171
|
+
this.i = c;
|
|
1172
|
+
this.a1 = 0;
|
|
1173
|
+
this.w.ba();
|
|
1174
|
+
this.c3 = this.w.bp(a, b, c);
|
|
1175
|
+
}
|
|
1176
|
+
ck(a, b, c) {
|
|
1042
1177
|
if (this.av) {
|
|
1043
|
-
this.
|
|
1178
|
+
this.av = false;
|
|
1179
|
+
this.cd("IsShown", true, this.av);
|
|
1044
1180
|
}
|
|
1181
|
+
this.cf(a, b, c);
|
|
1182
|
+
this.cl(true);
|
|
1045
1183
|
}
|
|
1046
|
-
|
|
1047
|
-
this.
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
this.az = 0;
|
|
1051
|
-
this.v.a7();
|
|
1052
|
-
this.cu = this.v.bj(a, b, c);
|
|
1053
|
-
}
|
|
1054
|
-
cc(a, b, c) {
|
|
1055
|
-
if (this.au) {
|
|
1056
|
-
this.au = false;
|
|
1057
|
-
this.b7("IsShown", true, this.au);
|
|
1184
|
+
cj(a, b, c) {
|
|
1185
|
+
if (this.av) {
|
|
1186
|
+
this.av = false;
|
|
1187
|
+
this.cd("IsShown", true, this.av);
|
|
1058
1188
|
}
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1189
|
+
this.ce(a, b, c);
|
|
1190
|
+
this.cl(true);
|
|
1061
1191
|
}
|
|
1062
|
-
|
|
1063
|
-
this.
|
|
1064
|
-
let b = this.
|
|
1192
|
+
cl(a) {
|
|
1193
|
+
this.b2();
|
|
1194
|
+
let b = this.av;
|
|
1195
|
+
this.av = a;
|
|
1065
1196
|
this.au = a;
|
|
1066
|
-
this.at = a;
|
|
1067
1197
|
this.ap = !a;
|
|
1068
|
-
let c = this.
|
|
1069
|
-
let d = this.
|
|
1198
|
+
let c = this.h(a);
|
|
1199
|
+
let d = this.g(a);
|
|
1070
1200
|
if (false == this.al) {
|
|
1071
|
-
let e = this.
|
|
1201
|
+
let e = this.w.au(c, d);
|
|
1072
1202
|
c = e.p0;
|
|
1073
1203
|
d = e.p1;
|
|
1074
1204
|
return;
|
|
1075
1205
|
}
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
if (this.
|
|
1206
|
+
this.b5();
|
|
1207
|
+
this.k = this.l(this.p, this.av);
|
|
1208
|
+
this.k.d(() => {
|
|
1209
|
+
this.k.c();
|
|
1210
|
+
this.cd("IsShown", b, this.av);
|
|
1211
|
+
if (this.av) {
|
|
1082
1212
|
if (this.onPopup != null) {
|
|
1083
1213
|
this.onPopup(this, new OnPopupEventArgs());
|
|
1084
1214
|
}
|
|
@@ -1088,65 +1218,68 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
1088
1218
|
this.onClosed(this, new OnClosedEventArgs());
|
|
1089
1219
|
}
|
|
1090
1220
|
}
|
|
1091
|
-
this.
|
|
1221
|
+
this.au = false;
|
|
1092
1222
|
this.ap = false;
|
|
1093
|
-
let f = this.
|
|
1223
|
+
let f = this.w.au(c, d);
|
|
1094
1224
|
c = f.p0;
|
|
1095
1225
|
d = f.p1;
|
|
1096
1226
|
});
|
|
1097
1227
|
}
|
|
1098
|
-
|
|
1228
|
+
l(a, b) {
|
|
1099
1229
|
switch (a) {
|
|
1100
|
-
case 0: return this.
|
|
1101
|
-
case 1: return this.
|
|
1102
|
-
default: return this.
|
|
1230
|
+
case 0: return this.n(b);
|
|
1231
|
+
case 1: return this.m(b);
|
|
1232
|
+
default: return this.n(b);
|
|
1103
1233
|
}
|
|
1104
1234
|
}
|
|
1105
|
-
|
|
1106
|
-
let b = this.
|
|
1107
|
-
let c = this.
|
|
1235
|
+
n(a) {
|
|
1236
|
+
let b = this.z(a);
|
|
1237
|
+
let c = this.a(a);
|
|
1108
1238
|
let d = new PopupAnimation();
|
|
1109
1239
|
d.a.add(b);
|
|
1110
|
-
|
|
1240
|
+
for (let f = 0; f < c.length; f++) {
|
|
1241
|
+
let e = c[f];
|
|
1242
|
+
d.a.add(e);
|
|
1243
|
+
}
|
|
1111
1244
|
return d;
|
|
1112
1245
|
}
|
|
1113
|
-
|
|
1114
|
-
let b = this.
|
|
1115
|
-
this.
|
|
1116
|
-
let c = this.
|
|
1117
|
-
let d = this.
|
|
1246
|
+
m(a) {
|
|
1247
|
+
let b = this.h(a);
|
|
1248
|
+
this.w.av(a ? b.h : b.g);
|
|
1249
|
+
let c = this.c();
|
|
1250
|
+
let d = this.w.c(c);
|
|
1118
1251
|
let e = DeviceUtils.g(30);
|
|
1119
|
-
let f = this.
|
|
1252
|
+
let f = this.w.i();
|
|
1120
1253
|
let g = b.f - e;
|
|
1121
1254
|
let h = b.f;
|
|
1122
|
-
switch (this.
|
|
1255
|
+
switch (this.q) {
|
|
1123
1256
|
case 2:
|
|
1124
1257
|
g = a ? b.f + e : b.c + e;
|
|
1125
1258
|
h = a ? b.f : b.c;
|
|
1126
|
-
f = this.
|
|
1259
|
+
f = this.w.i();
|
|
1127
1260
|
break;
|
|
1128
1261
|
case 1:
|
|
1129
1262
|
g = b.f - e;
|
|
1130
1263
|
h = b.f;
|
|
1131
|
-
f = this.
|
|
1264
|
+
f = this.w.i();
|
|
1132
1265
|
break;
|
|
1133
1266
|
case 3:
|
|
1134
1267
|
g = b.d + e;
|
|
1135
1268
|
h = b.d;
|
|
1136
|
-
f = this.
|
|
1269
|
+
f = this.w.h();
|
|
1137
1270
|
break;
|
|
1138
1271
|
case 4:
|
|
1139
1272
|
g = b.d - e;
|
|
1140
1273
|
h = b.d;
|
|
1141
|
-
f = this.
|
|
1274
|
+
f = this.w.h();
|
|
1142
1275
|
break;
|
|
1143
1276
|
}
|
|
1144
1277
|
d.m(new AnimationKeyFrameProperty(f, a ? g : h));
|
|
1145
1278
|
d.m(new AnimationKeyFrameProperty(f, a ? h : g));
|
|
1146
|
-
let i = this.
|
|
1279
|
+
let i = this.w.a(c);
|
|
1147
1280
|
i.m(new AnimationKeyFrameProperty(1, a ? 0 : 1));
|
|
1148
1281
|
i.m(new AnimationKeyFrameProperty(1, a ? 1 : 0));
|
|
1149
|
-
let j = this.
|
|
1282
|
+
let j = this.w.b(c);
|
|
1150
1283
|
j.m(new AnimationKeyFrameProperty(10, (a ? b.h : b.g)));
|
|
1151
1284
|
j.m(new AnimationKeyFrameProperty(10, (a ? b.h : b.g)));
|
|
1152
1285
|
let k = new PopupAnimation();
|
|
@@ -1156,55 +1289,58 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
1156
1289
|
return k;
|
|
1157
1290
|
}
|
|
1158
1291
|
contains(a) {
|
|
1159
|
-
return this.
|
|
1292
|
+
return this.w.j(a);
|
|
1160
1293
|
}
|
|
1161
1294
|
appendPopupContent(a) {
|
|
1162
|
-
this.
|
|
1295
|
+
this.w.aw(a);
|
|
1163
1296
|
}
|
|
1164
1297
|
removePopupContent(a) {
|
|
1165
|
-
this.
|
|
1298
|
+
this.w.bb(a);
|
|
1166
1299
|
}
|
|
1167
|
-
|
|
1168
|
-
if (!this.
|
|
1300
|
+
b3() {
|
|
1301
|
+
if (!this.av) {
|
|
1169
1302
|
return;
|
|
1170
1303
|
}
|
|
1171
|
-
this.
|
|
1304
|
+
this.cl(false);
|
|
1172
1305
|
}
|
|
1173
1306
|
destroy() {
|
|
1174
1307
|
this.provideRenderer(null);
|
|
1175
1308
|
}
|
|
1176
1309
|
showRelativeToExclusionRect(a, b, c) {
|
|
1177
|
-
this.
|
|
1310
|
+
this.ck(a, b, c);
|
|
1178
1311
|
}
|
|
1179
|
-
|
|
1180
|
-
this.
|
|
1181
|
-
|
|
1312
|
+
cn(a, b, c) {
|
|
1313
|
+
this.cj(a, b, c);
|
|
1314
|
+
}
|
|
1315
|
+
b7(a) {
|
|
1316
|
+
this.c1 = a;
|
|
1317
|
+
this.c3 = this.w.bq(a, this.q, this.i);
|
|
1182
1318
|
}
|
|
1183
1319
|
notifySizeChanged() {
|
|
1184
1320
|
}
|
|
1185
1321
|
provideRenderer(a) {
|
|
1186
|
-
this.
|
|
1322
|
+
this.w.a9(a);
|
|
1187
1323
|
}
|
|
1188
|
-
|
|
1189
|
-
return this.
|
|
1324
|
+
bc() {
|
|
1325
|
+
return this.d();
|
|
1190
1326
|
}
|
|
1191
|
-
|
|
1192
|
-
let a = this.
|
|
1327
|
+
bp() {
|
|
1328
|
+
let a = this.d();
|
|
1193
1329
|
return a.f();
|
|
1194
1330
|
}
|
|
1195
|
-
|
|
1331
|
+
d() {
|
|
1196
1332
|
let a = new PopupVisualModelExport();
|
|
1197
|
-
a.e = this.
|
|
1198
|
-
a.d = this.
|
|
1199
|
-
a.c = AppearanceHelper.a(this.
|
|
1200
|
-
a.b = AppearanceHelper.a(this.
|
|
1201
|
-
a.a = AppearanceHelper.a(this.
|
|
1333
|
+
a.e = this.a6;
|
|
1334
|
+
a.d = this.aw;
|
|
1335
|
+
a.c = AppearanceHelper.a(this.cv);
|
|
1336
|
+
a.b = AppearanceHelper.a(this.cu);
|
|
1337
|
+
a.a = AppearanceHelper.a(this.ct);
|
|
1202
1338
|
return a;
|
|
1203
1339
|
}
|
|
1204
|
-
|
|
1205
|
-
let a = this.
|
|
1340
|
+
t() {
|
|
1341
|
+
let a = this.u;
|
|
1206
1342
|
if (a == 0) {
|
|
1207
|
-
switch (this.
|
|
1343
|
+
switch (this.r) {
|
|
1208
1344
|
case 4:
|
|
1209
1345
|
a = 3;
|
|
1210
1346
|
break;
|
|
@@ -1223,9 +1359,9 @@ export let Popup = /*@__PURE__*/ (() => {
|
|
|
1223
1359
|
}
|
|
1224
1360
|
}
|
|
1225
1361
|
Popup.$t = markType(Popup, 'Popup', Base.$, [INotifyPropertyChanged_$type]);
|
|
1226
|
-
Popup.
|
|
1227
|
-
Popup.
|
|
1228
|
-
Popup.
|
|
1229
|
-
Popup.
|
|
1362
|
+
Popup.a9 = 2;
|
|
1363
|
+
Popup.cz = BrushUtil.g(66, 0, 0, 0);
|
|
1364
|
+
Popup.cy = BrushUtil.g(30, 0, 0, 0);
|
|
1365
|
+
Popup.cx = BrushUtil.g(20, 0, 0, 0);
|
|
1230
1366
|
return Popup;
|
|
1231
1367
|
})();
|