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
|
@@ -15,11 +15,13 @@ import { Size } from "igniteui-webcomponents-core";
|
|
|
15
15
|
import { NativeUI } from "igniteui-webcomponents-core";
|
|
16
16
|
import { FontUtil } from "igniteui-webcomponents-core";
|
|
17
17
|
import { SRProvider } from "igniteui-webcomponents-core";
|
|
18
|
+
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
18
19
|
import { ToolActionCollection } from "./ToolActionCollection";
|
|
19
20
|
import { ToolbarOrientation_$type } from "./ToolbarOrientation";
|
|
20
21
|
import { ToolbarIconManager } from "./ToolbarIconManager";
|
|
21
22
|
import { ToolAction } from "./ToolAction";
|
|
22
23
|
import { NativeUIInputsFactory } from "igniteui-webcomponents-core";
|
|
24
|
+
import { NativeUIXInputsFactory } from "igniteui-webcomponents-inputs";
|
|
23
25
|
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
24
26
|
/**
|
|
25
27
|
* @hidden
|
|
@@ -75,7 +77,7 @@ var ToolbarView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
75
77
|
var d = this.i.getSubRenderer(c);
|
|
76
78
|
b.provideContainer(d);
|
|
77
79
|
var e = this.i.getExternal(b, this.i.rootWrapper, this.i.getExternal(this.a, null, null));
|
|
78
|
-
this.a.
|
|
80
|
+
this.a.aq(b);
|
|
79
81
|
var f = Math.round(a.rootWrapper.width());
|
|
80
82
|
var g = Math.round(a.rootWrapper.height());
|
|
81
83
|
this.i.rootWrapper.setStyleProperty("position", "relative");
|
|
@@ -93,6 +95,7 @@ var ToolbarView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
93
95
|
var a = this.i.rootWrapper.width();
|
|
94
96
|
var b = this.i.rootWrapper.height();
|
|
95
97
|
this.aa = new Size(1, a, b);
|
|
98
|
+
this.a.at(this.aa);
|
|
96
99
|
};
|
|
97
100
|
ToolbarView.prototype.z = function () {
|
|
98
101
|
var a = this.i;
|
|
@@ -101,8 +104,8 @@ var ToolbarView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
101
104
|
}
|
|
102
105
|
var b = a.rootWrapper;
|
|
103
106
|
if (null != b) {
|
|
104
|
-
NativeUI.o(b, this.a.
|
|
105
|
-
NativeUI.k(b, this.a.
|
|
107
|
+
NativeUI.o(b, this.a.a6);
|
|
108
|
+
NativeUI.k(b, this.a.a3);
|
|
106
109
|
}
|
|
107
110
|
};
|
|
108
111
|
ToolbarView.prototype.d = function () {
|
|
@@ -118,7 +121,7 @@ var ToolbarView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
118
121
|
return this.aa.width;
|
|
119
122
|
};
|
|
120
123
|
ToolbarView.prototype.h = function (a) {
|
|
121
|
-
this.c = this.a.
|
|
124
|
+
this.c = this.a.r();
|
|
122
125
|
return FontUtil.measureStringWidth(a, this.c, this.e);
|
|
123
126
|
};
|
|
124
127
|
ToolbarView.prototype.q = function (a, b) {
|
|
@@ -139,55 +142,75 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
139
142
|
function Toolbar() {
|
|
140
143
|
var _this = _super.call(this) || this;
|
|
141
144
|
_this.k = null;
|
|
142
|
-
_this.
|
|
143
|
-
_this.
|
|
145
|
+
_this.u = false;
|
|
146
|
+
_this.s = null;
|
|
144
147
|
_this.l = null;
|
|
148
|
+
_this.m = 0;
|
|
145
149
|
_this.d = new ToolActionCollection();
|
|
146
150
|
_this.b = new ToolActionCollection();
|
|
147
151
|
_this.c = new ToolActionCollection();
|
|
148
152
|
_this.h = Toolbar.i;
|
|
149
|
-
_this.
|
|
150
|
-
_this.
|
|
151
|
-
_this.
|
|
152
|
-
_this.
|
|
153
|
-
_this.
|
|
154
|
-
_this.
|
|
153
|
+
_this.o = null;
|
|
154
|
+
_this.w = Toolbar.x;
|
|
155
|
+
_this.a1 = Toolbar.a4;
|
|
156
|
+
_this.a2 = Toolbar.a5;
|
|
157
|
+
_this.p = null;
|
|
158
|
+
_this.v = false;
|
|
155
159
|
_this.propertyChanged = null;
|
|
156
160
|
_this.a = null;
|
|
157
161
|
ToolbarIconManager.c();
|
|
158
162
|
var a = _this.actions;
|
|
159
|
-
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.ak));
|
|
164
|
+
var b = _this.actualActions;
|
|
165
|
+
b.collectionChanged = delegateCombine(b.collectionChanged, runOn(_this, _this.am));
|
|
166
|
+
NativeUIInputsFactory.n();
|
|
167
|
+
NativeUIXInputsFactory.h();
|
|
168
|
+
var c = new ToolbarView();
|
|
169
|
+
c.a = _this;
|
|
170
|
+
_this.k = c;
|
|
164
171
|
_this.k.v();
|
|
165
172
|
return _this;
|
|
166
173
|
}
|
|
167
|
-
Object.defineProperty(Toolbar.prototype, "
|
|
174
|
+
Object.defineProperty(Toolbar.prototype, "t", {
|
|
168
175
|
get: function () {
|
|
169
|
-
if (this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
176
|
+
if (this.s == null) {
|
|
177
|
+
this.s = new SRProvider(this.k.i);
|
|
178
|
+
this.s.cb("Layouts");
|
|
172
179
|
}
|
|
173
|
-
return this.
|
|
180
|
+
return this.s;
|
|
174
181
|
},
|
|
175
182
|
enumerable: true,
|
|
176
183
|
configurable: true
|
|
177
184
|
});
|
|
178
|
-
Toolbar.prototype.
|
|
185
|
+
Toolbar.prototype.aq = function (a) {
|
|
179
186
|
this.l = a;
|
|
187
|
+
this.l.n = this.m;
|
|
180
188
|
var b = this.l;
|
|
181
|
-
b.onCommand = delegateCombine(b.onCommand, runOn(this, this.
|
|
189
|
+
b.onCommand = delegateCombine(b.onCommand, runOn(this, this.aj));
|
|
182
190
|
this.l.k = this.j;
|
|
183
191
|
};
|
|
184
|
-
Toolbar.prototype.
|
|
185
|
-
if (this.
|
|
186
|
-
this.
|
|
192
|
+
Toolbar.prototype.aj = function (a, b) {
|
|
193
|
+
if (this.o != null) {
|
|
194
|
+
this.o.onToolCommandExecuting(b.a);
|
|
187
195
|
}
|
|
188
196
|
};
|
|
189
|
-
Toolbar.prototype.
|
|
197
|
+
Toolbar.prototype.at = function (a) {
|
|
198
|
+
this.l.notifySizeChanged();
|
|
190
199
|
};
|
|
200
|
+
Object.defineProperty(Toolbar.prototype, "n", {
|
|
201
|
+
get: function () {
|
|
202
|
+
return this.m;
|
|
203
|
+
},
|
|
204
|
+
set: function (a) {
|
|
205
|
+
var b = this.m;
|
|
206
|
+
this.m = a;
|
|
207
|
+
if (b != this.m) {
|
|
208
|
+
this.au("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, a));
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
enumerable: true,
|
|
212
|
+
configurable: true
|
|
213
|
+
});
|
|
191
214
|
Object.defineProperty(Toolbar.prototype, "autoGeneratedActions", {
|
|
192
215
|
get: function () {
|
|
193
216
|
return this.d;
|
|
@@ -196,7 +219,7 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
196
219
|
var b = this.d;
|
|
197
220
|
this.d = a;
|
|
198
221
|
if (b != this.d) {
|
|
199
|
-
this.
|
|
222
|
+
this.au("AutoGeneratedActions", b, this.d);
|
|
200
223
|
}
|
|
201
224
|
},
|
|
202
225
|
enumerable: true,
|
|
@@ -210,7 +233,7 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
210
233
|
var b = this.b;
|
|
211
234
|
this.b = a;
|
|
212
235
|
if (b != this.b) {
|
|
213
|
-
this.
|
|
236
|
+
this.au("Actions", b, this.b);
|
|
214
237
|
}
|
|
215
238
|
},
|
|
216
239
|
enumerable: true,
|
|
@@ -224,7 +247,7 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
224
247
|
var b = this.c;
|
|
225
248
|
this.c = a;
|
|
226
249
|
if (b != this.c) {
|
|
227
|
-
this.
|
|
250
|
+
this.au("ActualActions", b, this.c);
|
|
228
251
|
}
|
|
229
252
|
},
|
|
230
253
|
enumerable: true,
|
|
@@ -238,75 +261,75 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
238
261
|
var b = this.h;
|
|
239
262
|
this.h = a;
|
|
240
263
|
if (b != this.h) {
|
|
241
|
-
this.
|
|
264
|
+
this.au("Orientation", enumGetBox(ToolbarOrientation_$type, b), enumGetBox(ToolbarOrientation_$type, a));
|
|
242
265
|
}
|
|
243
266
|
},
|
|
244
267
|
enumerable: true,
|
|
245
268
|
configurable: true
|
|
246
269
|
});
|
|
247
|
-
Object.defineProperty(Toolbar.prototype, "
|
|
270
|
+
Object.defineProperty(Toolbar.prototype, "y", {
|
|
248
271
|
get: function () {
|
|
249
|
-
return this.
|
|
272
|
+
return this.w;
|
|
250
273
|
},
|
|
251
274
|
set: function (a) {
|
|
252
|
-
var b = this.
|
|
253
|
-
this.
|
|
254
|
-
if (b != this.
|
|
255
|
-
this.
|
|
275
|
+
var b = this.w;
|
|
276
|
+
this.w = a;
|
|
277
|
+
if (b != this.w) {
|
|
278
|
+
this.au("Target", b, a);
|
|
256
279
|
}
|
|
257
280
|
},
|
|
258
281
|
enumerable: true,
|
|
259
282
|
configurable: true
|
|
260
283
|
});
|
|
261
|
-
Object.defineProperty(Toolbar.prototype, "
|
|
284
|
+
Object.defineProperty(Toolbar.prototype, "a3", {
|
|
262
285
|
get: function () {
|
|
263
|
-
return this.
|
|
286
|
+
return this.a1;
|
|
264
287
|
},
|
|
265
288
|
set: function (a) {
|
|
266
|
-
var b = this.
|
|
267
|
-
this.
|
|
268
|
-
if (b != this.
|
|
269
|
-
this.
|
|
289
|
+
var b = this.a1;
|
|
290
|
+
this.a1 = a;
|
|
291
|
+
if (b != this.a1) {
|
|
292
|
+
this.au("BackgroundColor", b, a);
|
|
270
293
|
}
|
|
271
294
|
},
|
|
272
295
|
enumerable: true,
|
|
273
296
|
configurable: true
|
|
274
297
|
});
|
|
275
|
-
Object.defineProperty(Toolbar.prototype, "
|
|
298
|
+
Object.defineProperty(Toolbar.prototype, "a6", {
|
|
276
299
|
get: function () {
|
|
277
|
-
return this.
|
|
300
|
+
return this.a2;
|
|
278
301
|
},
|
|
279
302
|
set: function (a) {
|
|
280
|
-
var b = this.
|
|
281
|
-
this.
|
|
282
|
-
if (b != this.
|
|
283
|
-
this.
|
|
303
|
+
var b = this.a2;
|
|
304
|
+
this.a2 = a;
|
|
305
|
+
if (b != this.a2) {
|
|
306
|
+
this.au("TextColor", b, a);
|
|
284
307
|
}
|
|
285
308
|
},
|
|
286
309
|
enumerable: true,
|
|
287
310
|
configurable: true
|
|
288
311
|
});
|
|
289
|
-
Object.defineProperty(Toolbar.prototype, "
|
|
312
|
+
Object.defineProperty(Toolbar.prototype, "q", {
|
|
290
313
|
get: function () {
|
|
291
|
-
return this.
|
|
314
|
+
return this.p;
|
|
292
315
|
},
|
|
293
316
|
set: function (a) {
|
|
294
|
-
var b = this.
|
|
295
|
-
this.
|
|
296
|
-
if (b != this.
|
|
297
|
-
this.
|
|
317
|
+
var b = this.p;
|
|
318
|
+
this.p = a;
|
|
319
|
+
if (b != this.p) {
|
|
320
|
+
this.au("CellTextStyle", b, this.p);
|
|
298
321
|
}
|
|
299
322
|
},
|
|
300
323
|
enumerable: true,
|
|
301
324
|
configurable: true
|
|
302
325
|
});
|
|
303
|
-
Toolbar.prototype.
|
|
304
|
-
if (this.
|
|
326
|
+
Toolbar.prototype.r = function () {
|
|
327
|
+
if (this.q == null) {
|
|
305
328
|
return this.k.d();
|
|
306
329
|
}
|
|
307
|
-
return this.
|
|
330
|
+
return this.q;
|
|
308
331
|
};
|
|
309
|
-
Toolbar.prototype.
|
|
332
|
+
Toolbar.prototype.ak = function (a, b) {
|
|
310
333
|
var e_1, _a, e_2, _b;
|
|
311
334
|
if (b.oldItems != null) {
|
|
312
335
|
try {
|
|
@@ -314,7 +337,7 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
314
337
|
var c = _d.value;
|
|
315
338
|
if (typeCast(INotifyPropertyChanged_$type, c) !== null) {
|
|
316
339
|
var d = c;
|
|
317
|
-
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.
|
|
340
|
+
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.al));
|
|
318
341
|
}
|
|
319
342
|
}
|
|
320
343
|
}
|
|
@@ -338,7 +361,7 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
338
361
|
var e = _f.value;
|
|
339
362
|
if (typeCast(INotifyPropertyChanged_$type, e) !== null) {
|
|
340
363
|
var f = e;
|
|
341
|
-
f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.
|
|
364
|
+
f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.al));
|
|
342
365
|
}
|
|
343
366
|
}
|
|
344
367
|
}
|
|
@@ -356,32 +379,40 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
356
379
|
}
|
|
357
380
|
}
|
|
358
381
|
}
|
|
359
|
-
this.
|
|
382
|
+
this.as();
|
|
360
383
|
};
|
|
361
|
-
Toolbar.prototype.
|
|
362
|
-
this.
|
|
384
|
+
Toolbar.prototype.am = function (a, b) {
|
|
385
|
+
this.a0();
|
|
363
386
|
};
|
|
364
|
-
Toolbar.prototype.
|
|
365
|
-
this.
|
|
387
|
+
Toolbar.prototype.a0 = function () {
|
|
388
|
+
for (var a = 0; a < this.actualActions.count; a++) {
|
|
389
|
+
this.actualActions._inner[a].g = this.n;
|
|
390
|
+
}
|
|
366
391
|
};
|
|
367
|
-
Toolbar.prototype.
|
|
368
|
-
|
|
392
|
+
Toolbar.prototype.al = function (a, b) {
|
|
393
|
+
this.as();
|
|
394
|
+
};
|
|
395
|
+
Toolbar.prototype.as = function () {
|
|
396
|
+
this.ay();
|
|
397
|
+
};
|
|
398
|
+
Toolbar.prototype.ay = function () {
|
|
399
|
+
if (this.v) {
|
|
369
400
|
return;
|
|
370
401
|
}
|
|
371
|
-
this.
|
|
372
|
-
this.a.enqueueAction(runOn(this, this.
|
|
402
|
+
this.v = true;
|
|
403
|
+
this.a.enqueueAction(runOn(this, this.ao));
|
|
373
404
|
};
|
|
374
|
-
Toolbar.prototype.
|
|
375
|
-
if (!this.
|
|
405
|
+
Toolbar.prototype.ao = function () {
|
|
406
|
+
if (!this.v) {
|
|
376
407
|
return;
|
|
377
408
|
}
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
409
|
+
this.v = false;
|
|
410
|
+
this.az();
|
|
380
411
|
if (this.l.actions != this.actualActions) {
|
|
381
412
|
this.l.actions = this.actualActions;
|
|
382
413
|
}
|
|
383
414
|
};
|
|
384
|
-
Toolbar.prototype.
|
|
415
|
+
Toolbar.prototype.az = function () {
|
|
385
416
|
this.actualActions.clear();
|
|
386
417
|
for (var a = 0; a < this.actions.count; a++) {
|
|
387
418
|
this.actualActions.add(this.actions._inner[a]);
|
|
@@ -390,9 +421,9 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
390
421
|
this.actualActions.add(this.autoGeneratedActions._inner[b]);
|
|
391
422
|
}
|
|
392
423
|
};
|
|
393
|
-
Toolbar.prototype.
|
|
394
|
-
if (this.
|
|
395
|
-
this.
|
|
424
|
+
Toolbar.prototype.ap = function () {
|
|
425
|
+
if (this.v) {
|
|
426
|
+
this.ao();
|
|
396
427
|
}
|
|
397
428
|
};
|
|
398
429
|
Toolbar.prototype.notifySizeChanged = function () {
|
|
@@ -404,20 +435,20 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
404
435
|
Toolbar.prototype.provideContainer = function (a) {
|
|
405
436
|
this.k.t(a);
|
|
406
437
|
};
|
|
407
|
-
Toolbar.prototype.
|
|
438
|
+
Toolbar.prototype.au = function (a, b, c) {
|
|
408
439
|
if (this.propertyChanged != null) {
|
|
409
440
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
410
441
|
}
|
|
411
|
-
this.
|
|
442
|
+
this.aw(a, b, c);
|
|
412
443
|
};
|
|
413
|
-
Toolbar.prototype.
|
|
444
|
+
Toolbar.prototype.aw = function (a, b, c) {
|
|
414
445
|
switch (a) {
|
|
415
446
|
case "CellTextStyle":
|
|
416
|
-
this.
|
|
447
|
+
this.ay();
|
|
417
448
|
break;
|
|
418
449
|
case "BackgroundColor":
|
|
419
450
|
case "TextColor":
|
|
420
|
-
this.
|
|
451
|
+
this.ay();
|
|
421
452
|
break;
|
|
422
453
|
case "Orientation":
|
|
423
454
|
if (this.l != null) {
|
|
@@ -427,15 +458,15 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
427
458
|
case "Target":
|
|
428
459
|
var d = c;
|
|
429
460
|
var e = b;
|
|
430
|
-
this.
|
|
461
|
+
this.av(e, d);
|
|
431
462
|
break;
|
|
432
463
|
}
|
|
433
464
|
};
|
|
434
|
-
Toolbar.prototype.
|
|
435
|
-
this.
|
|
465
|
+
Toolbar.prototype.av = function (a, b) {
|
|
466
|
+
this.o = b;
|
|
436
467
|
if (a != null) {
|
|
437
468
|
this.autoGeneratedActions.clear();
|
|
438
|
-
this.
|
|
469
|
+
this.ay();
|
|
439
470
|
}
|
|
440
471
|
if (b != null) {
|
|
441
472
|
this.autoGeneratedActions.clear();
|
|
@@ -446,14 +477,14 @@ var Toolbar = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
446
477
|
this.autoGeneratedActions.add(e);
|
|
447
478
|
}
|
|
448
479
|
}
|
|
449
|
-
this.
|
|
480
|
+
this.ay();
|
|
450
481
|
}
|
|
451
482
|
};
|
|
452
483
|
Toolbar.$t = markType(Toolbar, 'Toolbar', Base.$, [INotifyPropertyChanged_$type]);
|
|
453
484
|
Toolbar.i = 1;
|
|
454
|
-
Toolbar.
|
|
455
|
-
Toolbar.
|
|
456
|
-
Toolbar.
|
|
485
|
+
Toolbar.x = null;
|
|
486
|
+
Toolbar.a4 = BrushUtil.g(255, 248, 248, 248);
|
|
487
|
+
Toolbar.a5 = BrushUtil.g(255, 24, 29, 31);
|
|
457
488
|
return Toolbar;
|
|
458
489
|
}(Base));
|
|
459
490
|
export { Toolbar };
|
|
@@ -4,6 +4,7 @@ import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core";
|
|
|
4
4
|
import { PropertyEditorValueType_$type } from "./PropertyEditorValueType";
|
|
5
5
|
import { IgcPropertyEditorDescriptionObject } from "./igc-property-editor-description-object";
|
|
6
6
|
import { IgcPropertyEditorDescriptionObjectCollection } from "./igc-property-editor-description-object-collection";
|
|
7
|
+
import { IgcPropertyEditorPropertyDescriptionCollection } from "./igc-property-editor-property-description-collection";
|
|
7
8
|
import { IgcPropertyEditorPropertyDescriptionButtonClickEventArgs } from "./igc-property-editor-property-description-button-click-event-args";
|
|
8
9
|
import { IgcPropertyEditorPropertyDescriptionChangedEventArgs } from "./igc-property-editor-property-description-changed-event-args";
|
|
9
10
|
import { IgcPropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs } from "./igc-property-editor-property-description-target-property-updating-event-args";
|
|
@@ -14,6 +15,7 @@ import { RegisterElementHelper } from "igniteui-webcomponents-core";
|
|
|
14
15
|
import { PropertyEditorDescriptionObjectCollection as PropertyEditorDescriptionObjectCollection_internal } from "./PropertyEditorDescriptionObjectCollection";
|
|
15
16
|
import { PropertyEditorDescriptionObject } from "./PropertyEditorDescriptionObject";
|
|
16
17
|
import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
|
|
18
|
+
import { PropertyEditorPropertyDescriptionCollection as PropertyEditorPropertyDescriptionCollection_internal } from "./PropertyEditorPropertyDescriptionCollection";
|
|
17
19
|
var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
18
20
|
tslib_1.__extends(IgcPropertyEditorPropertyDescriptionComponent, _super);
|
|
19
21
|
function IgcPropertyEditorPropertyDescriptionComponent() {
|
|
@@ -23,6 +25,7 @@ var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/
|
|
|
23
25
|
_this._queuedSetAttributes = [];
|
|
24
26
|
_this._updatingFromAttribute = false;
|
|
25
27
|
_this._complexValues = null;
|
|
28
|
+
_this._properties = null;
|
|
26
29
|
_this.__p = null;
|
|
27
30
|
_this._hasUserValues = new Set();
|
|
28
31
|
_this._stylingContainer = null;
|
|
@@ -155,62 +158,62 @@ var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/
|
|
|
155
158
|
};
|
|
156
159
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "propertyPath", {
|
|
157
160
|
get: function () {
|
|
158
|
-
return this.i.
|
|
161
|
+
return this.i.an;
|
|
159
162
|
},
|
|
160
163
|
set: function (v) {
|
|
161
|
-
this.i.
|
|
164
|
+
this.i.an = v;
|
|
162
165
|
},
|
|
163
166
|
enumerable: true,
|
|
164
167
|
configurable: true
|
|
165
168
|
});
|
|
166
169
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "label", {
|
|
167
170
|
get: function () {
|
|
168
|
-
return this.i.
|
|
171
|
+
return this.i.al;
|
|
169
172
|
},
|
|
170
173
|
set: function (v) {
|
|
171
|
-
this.i.
|
|
174
|
+
this.i.al = v;
|
|
172
175
|
},
|
|
173
176
|
enumerable: true,
|
|
174
177
|
configurable: true
|
|
175
178
|
});
|
|
176
179
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "valueType", {
|
|
177
180
|
get: function () {
|
|
178
|
-
return this.i.
|
|
181
|
+
return this.i.p;
|
|
179
182
|
},
|
|
180
183
|
set: function (v) {
|
|
181
|
-
this.i.
|
|
182
|
-
this._a("valueType", enumToString(PropertyEditorValueType_$type, this.i.
|
|
184
|
+
this.i.p = ensureEnum(PropertyEditorValueType_$type, v);
|
|
185
|
+
this._a("valueType", enumToString(PropertyEditorValueType_$type, this.i.p));
|
|
183
186
|
},
|
|
184
187
|
enumerable: true,
|
|
185
188
|
configurable: true
|
|
186
189
|
});
|
|
187
190
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "propertyDescriptionType", {
|
|
188
191
|
get: function () {
|
|
189
|
-
return this.i.
|
|
192
|
+
return this.i.am;
|
|
190
193
|
},
|
|
191
194
|
set: function (v) {
|
|
192
|
-
this.i.
|
|
195
|
+
this.i.am = v;
|
|
193
196
|
},
|
|
194
197
|
enumerable: true,
|
|
195
198
|
configurable: true
|
|
196
199
|
});
|
|
197
200
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "shouldOverrideDefaultEditor", {
|
|
198
201
|
get: function () {
|
|
199
|
-
return this.i.
|
|
202
|
+
return this.i.s;
|
|
200
203
|
},
|
|
201
204
|
set: function (v) {
|
|
202
|
-
this.i.
|
|
203
|
-
this._a("shouldOverrideDefaultEditor", this.i.
|
|
205
|
+
this.i.s = ensureBool(v);
|
|
206
|
+
this._a("shouldOverrideDefaultEditor", this.i.s);
|
|
204
207
|
},
|
|
205
208
|
enumerable: true,
|
|
206
209
|
configurable: true
|
|
207
210
|
});
|
|
208
211
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "elementDescriptionType", {
|
|
209
212
|
get: function () {
|
|
210
|
-
return this.i.
|
|
213
|
+
return this.i.ak;
|
|
211
214
|
},
|
|
212
215
|
set: function (v) {
|
|
213
|
-
this.i.
|
|
216
|
+
this.i.ak = v;
|
|
214
217
|
},
|
|
215
218
|
enumerable: true,
|
|
216
219
|
configurable: true
|
|
@@ -245,65 +248,65 @@ var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/
|
|
|
245
248
|
});
|
|
246
249
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "primitiveValue", {
|
|
247
250
|
get: function () {
|
|
248
|
-
return this.i.
|
|
251
|
+
return this.i.af;
|
|
249
252
|
},
|
|
250
253
|
set: function (v) {
|
|
251
|
-
this.i.
|
|
254
|
+
this.i.af = v;
|
|
252
255
|
},
|
|
253
256
|
enumerable: true,
|
|
254
257
|
configurable: true
|
|
255
258
|
});
|
|
256
259
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "min", {
|
|
257
260
|
get: function () {
|
|
258
|
-
return this.i.
|
|
261
|
+
return this.i.ab;
|
|
259
262
|
},
|
|
260
263
|
set: function (v) {
|
|
261
|
-
this.i.
|
|
262
|
-
this._a("min", this.i.
|
|
264
|
+
this.i.ab = +v;
|
|
265
|
+
this._a("min", this.i.ab);
|
|
263
266
|
},
|
|
264
267
|
enumerable: true,
|
|
265
268
|
configurable: true
|
|
266
269
|
});
|
|
267
270
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "editorWidth", {
|
|
268
271
|
get: function () {
|
|
269
|
-
return this.i.
|
|
272
|
+
return this.i.y;
|
|
270
273
|
},
|
|
271
274
|
set: function (v) {
|
|
272
|
-
this.i.
|
|
273
|
-
this._a("editorWidth", this.i.
|
|
275
|
+
this.i.y = +v;
|
|
276
|
+
this._a("editorWidth", this.i.y);
|
|
274
277
|
},
|
|
275
278
|
enumerable: true,
|
|
276
279
|
configurable: true
|
|
277
280
|
});
|
|
278
281
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "labelWidth", {
|
|
279
282
|
get: function () {
|
|
280
|
-
return this.i.
|
|
283
|
+
return this.i.z;
|
|
281
284
|
},
|
|
282
285
|
set: function (v) {
|
|
283
|
-
this.i.
|
|
284
|
-
this._a("labelWidth", this.i.
|
|
286
|
+
this.i.z = +v;
|
|
287
|
+
this._a("labelWidth", this.i.z);
|
|
285
288
|
},
|
|
286
289
|
enumerable: true,
|
|
287
290
|
configurable: true
|
|
288
291
|
});
|
|
289
292
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "max", {
|
|
290
293
|
get: function () {
|
|
291
|
-
return this.i.
|
|
294
|
+
return this.i.aa;
|
|
292
295
|
},
|
|
293
296
|
set: function (v) {
|
|
294
|
-
this.i.
|
|
295
|
-
this._a("max", this.i.
|
|
297
|
+
this.i.aa = +v;
|
|
298
|
+
this._a("max", this.i.aa);
|
|
296
299
|
},
|
|
297
300
|
enumerable: true,
|
|
298
301
|
configurable: true
|
|
299
302
|
});
|
|
300
303
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "step", {
|
|
301
304
|
get: function () {
|
|
302
|
-
return this.i.
|
|
305
|
+
return this.i.ac;
|
|
303
306
|
},
|
|
304
307
|
set: function (v) {
|
|
305
|
-
this.i.
|
|
306
|
-
this._a("step", this.i.
|
|
308
|
+
this.i.ac = +v;
|
|
309
|
+
this._a("step", this.i.ac);
|
|
307
310
|
},
|
|
308
311
|
enumerable: true,
|
|
309
312
|
configurable: true
|
|
@@ -367,6 +370,39 @@ var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/
|
|
|
367
370
|
enumerable: true,
|
|
368
371
|
configurable: true
|
|
369
372
|
});
|
|
373
|
+
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "properties", {
|
|
374
|
+
get: function () {
|
|
375
|
+
if (this._properties === null) {
|
|
376
|
+
var coll = new IgcPropertyEditorPropertyDescriptionCollection();
|
|
377
|
+
var innerColl = this.i.m;
|
|
378
|
+
if (!innerColl) {
|
|
379
|
+
innerColl = new PropertyEditorPropertyDescriptionCollection_internal();
|
|
380
|
+
}
|
|
381
|
+
this._properties = coll._fromInner(innerColl);
|
|
382
|
+
this.i.m = innerColl;
|
|
383
|
+
}
|
|
384
|
+
return this._properties;
|
|
385
|
+
},
|
|
386
|
+
set: function (v) {
|
|
387
|
+
if (this._properties !== null) {
|
|
388
|
+
this._properties._setSyncTarget(null);
|
|
389
|
+
this._properties = null;
|
|
390
|
+
}
|
|
391
|
+
var coll = new IgcPropertyEditorPropertyDescriptionCollection();
|
|
392
|
+
this._properties = coll._fromOuter(v);
|
|
393
|
+
var syncColl = new SyncableObservableCollection$1(PropertyEditorPropertyDescription.$type);
|
|
394
|
+
var innerColl = this.i.m;
|
|
395
|
+
if (!innerColl) {
|
|
396
|
+
innerColl = new PropertyEditorPropertyDescriptionCollection_internal();
|
|
397
|
+
}
|
|
398
|
+
syncColl._inner = innerColl;
|
|
399
|
+
syncColl.clear();
|
|
400
|
+
this._properties._setSyncTarget(syncColl);
|
|
401
|
+
this.i.m = innerColl;
|
|
402
|
+
},
|
|
403
|
+
enumerable: true,
|
|
404
|
+
configurable: true
|
|
405
|
+
});
|
|
370
406
|
IgcPropertyEditorPropertyDescriptionComponent.prototype.findByName = function (name) {
|
|
371
407
|
if (this.findEphemera) {
|
|
372
408
|
if (name && name.indexOf("@@e:") == 0) {
|
|
@@ -379,6 +415,9 @@ var IgcPropertyEditorPropertyDescriptionComponent = /** @class */ /*@__PURE__*/
|
|
|
379
415
|
if (this.complexValues != null && this.complexValues.findByName && this.complexValues.findByName(name)) {
|
|
380
416
|
return this.complexValues.findByName(name);
|
|
381
417
|
}
|
|
418
|
+
if (this.properties != null && this.properties.findByName && this.properties.findByName(name)) {
|
|
419
|
+
return this.properties.findByName(name);
|
|
420
|
+
}
|
|
382
421
|
return null;
|
|
383
422
|
};
|
|
384
423
|
Object.defineProperty(IgcPropertyEditorPropertyDescriptionComponent.prototype, "hasUserValues", {
|