igniteui-webcomponents-inputs 4.2.5 → 4.3.0-beta.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-webcomponents-inputs.umd.js +10205 -7880
- package/bundles/igniteui-webcomponents-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +98 -98
- package/esm2015/lib/ButtonView_combined.js +2206 -1799
- package/esm2015/lib/CalendarView_combined.js +156 -156
- package/esm2015/lib/CheckboxView_combined.js +532 -458
- package/esm2015/lib/DatePickerView_combined.js +398 -364
- package/esm2015/lib/IconView_combined.js +553 -355
- package/esm2015/lib/InputGroupView_combined.js +2432 -2152
- package/esm2015/lib/NativeUIXInputsFactory.js +65 -23
- package/esm2015/lib/RippleView_combined.js +1 -1
- package/esm2015/lib/Theme.js +48 -0
- package/esm2015/lib/ThemeResolver.js +131 -7
- package/esm2015/lib/XButtonBridge.js +218 -22
- package/esm2015/lib/XCheckboxBridge.js +25 -16
- package/esm2015/lib/XComponentBridge.js +20 -6
- package/esm2015/lib/XIconBridge.js +93 -0
- package/esm2015/lib/XIconButtonBridge.js +45 -33
- package/esm2015/lib/XInputBridge.js +91 -38
- package/esm2015/lib/XPopupBridge.js +287 -0
- package/esm2015/lib/igc-date-picker-component.js +60 -58
- package/esm2015/lib/igc-x-button-component.js +694 -546
- package/esm2015/lib/igc-x-button-group-component.js +28 -28
- package/esm2015/lib/igc-x-calendar-component.js +16 -16
- package/esm2015/lib/igc-x-checkbox-component.js +77 -77
- package/esm2015/lib/igc-x-icon-component.js +239 -118
- package/esm2015/lib/igc-x-input-component.js +61 -43
- package/esm2015/lib/igc-x-input-group-component.js +576 -576
- package/esm2015/lib/igc-x-input-group-item-component.js +18 -18
- package/esm2015/lib/igc-x-ripple-component.js +35 -35
- package/esm2015/public_api.js +3 -0
- package/esm5/lib/ButtonClickEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupSelectionChangedEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupView_combined.js +176 -176
- package/esm5/lib/ButtonGroupVisualModelExport.js +2 -2
- package/esm5/lib/ButtonView_combined.js +2259 -1808
- package/esm5/lib/ButtonVisualModelExport.js +2 -2
- package/esm5/lib/CalendarView_combined.js +181 -181
- package/esm5/lib/CalendarVisualModelExport.js +2 -2
- package/esm5/lib/CheckboxChangeEventArgs.js +4 -4
- package/esm5/lib/CheckboxView_combined.js +561 -483
- package/esm5/lib/CheckboxVisualModelExport.js +2 -2
- package/esm5/lib/DatePickerView_combined.js +421 -383
- package/esm5/lib/DatePickerVisualModelExport.js +2 -2
- package/esm5/lib/DateTimeValueFormatter.js +2 -2
- package/esm5/lib/DayInfo.js +2 -2
- package/esm5/lib/ElevationHelper.js +2 -2
- package/esm5/lib/GotFocusEventArgs.js +2 -2
- package/esm5/lib/IconClickedEventArgs.js +2 -2
- package/esm5/lib/IconView_combined.js +600 -362
- package/esm5/lib/IconVisualModelExport.js +3 -3
- package/esm5/lib/InputChangeEventArgs.js +4 -4
- package/esm5/lib/InputGroupView_combined.js +2534 -2246
- package/esm5/lib/InputGroupVisualModelExport.js +2 -2
- package/esm5/lib/InputVisualModelExport.js +2 -2
- package/esm5/lib/LabelVisualModelExport.js +2 -2
- package/esm5/lib/LostFocusEventArgs.js +2 -2
- package/esm5/lib/MaskOptions.js +2 -2
- package/esm5/lib/MaskParsingService.js +5 -5
- package/esm5/lib/NativeUIXInputsFactory.js +69 -27
- package/esm5/lib/PrefixVisualModelExport.js +2 -2
- package/esm5/lib/Replaced.js +2 -2
- package/esm5/lib/RippleView_combined.js +17 -17
- package/esm5/lib/RippleVisualModelExport.js +2 -2
- package/esm5/lib/SelectedValueChangedEventArgs.js +4 -4
- package/esm5/lib/SuffixVisualModelExport.js +2 -2
- package/esm5/lib/TextElementsVisualModelExport.js +2 -2
- package/esm5/lib/Theme.js +58 -0
- package/esm5/lib/ThemeResolver.js +137 -11
- package/esm5/lib/XButtonBridge.js +220 -24
- package/esm5/lib/XButtonGroupButtonCollection.js +2 -2
- package/esm5/lib/XCheckboxBridge.js +27 -18
- package/esm5/lib/XComponentBridge.js +26 -8
- package/esm5/lib/XIconBridge.js +95 -0
- package/esm5/lib/XIconButtonBridge.js +47 -35
- package/esm5/lib/XInputBridge.js +93 -40
- package/esm5/lib/XPopupBridge.js +289 -0
- package/esm5/lib/igc-button-click-event-args.js +1 -1
- package/esm5/lib/igc-button-group-selection-changed-event-args.js +1 -1
- package/esm5/lib/igc-checkbox-change-event-args.js +3 -3
- package/esm5/lib/igc-date-picker-component.js +80 -78
- package/esm5/lib/igc-got-focus-event-args.js +1 -1
- package/esm5/lib/igc-input-change-event-args.js +3 -3
- package/esm5/lib/igc-lost-focus-event-args.js +1 -1
- package/esm5/lib/igc-selected-value-changed-event-args.js +3 -3
- package/esm5/lib/igc-x-button-component.js +908 -710
- package/esm5/lib/igc-x-button-group-button-collection.js +2 -2
- package/esm5/lib/igc-x-button-group-component.js +73 -73
- package/esm5/lib/igc-x-calendar-component.js +30 -30
- package/esm5/lib/igc-x-checkbox-component.js +117 -117
- package/esm5/lib/igc-x-icon-component.js +297 -136
- package/esm5/lib/igc-x-input-component.js +104 -78
- package/esm5/lib/igc-x-input-group-component.js +716 -716
- package/esm5/lib/igc-x-input-group-input-collection.js +2 -2
- package/esm5/lib/igc-x-input-group-item-component.js +6 -6
- package/esm5/lib/igc-x-label-component.js +30 -30
- package/esm5/lib/igc-x-prefix-component.js +9 -9
- package/esm5/lib/igc-x-ripple-component.js +19 -19
- package/esm5/lib/igc-x-suffix-component.js +9 -9
- package/esm5/public_api.js +3 -0
- package/fesm2015/igniteui-webcomponents-inputs.js +9194 -7084
- package/fesm5/igniteui-webcomponents-inputs.js +10090 -7768
- package/lib/ButtonGroupView_combined.d.ts +136 -70
- package/lib/ButtonView_combined.d.ts +609 -583
- package/lib/CalendarView_combined.d.ts +43 -22
- package/lib/CheckboxChangeEventArgs.d.ts +4 -2
- package/lib/CheckboxView_combined.d.ts +150 -117
- package/lib/DatePickerView_combined.d.ts +109 -81
- package/lib/IconView_combined.d.ts +164 -93
- package/lib/IconVisualModelExport.d.ts +2 -1
- package/lib/InputChangeEventArgs.d.ts +4 -2
- package/lib/InputGroupView_combined.d.ts +771 -771
- package/lib/NativeUIXInputsFactory.d.ts +6 -4
- package/lib/RippleView_combined.d.ts +19 -10
- package/lib/SelectedValueChangedEventArgs.d.ts +4 -2
- package/lib/Theme.d.ts +15 -0
- package/lib/ThemeResolver.d.ts +44 -6
- package/lib/XButtonBridge.d.ts +23 -5
- package/lib/XCheckboxBridge.d.ts +3 -3
- package/lib/XComponentBridge.d.ts +2 -1
- package/lib/XIconBridge.d.ts +14 -0
- package/lib/XIconButtonBridge.d.ts +4 -4
- package/lib/XInputBridge.d.ts +11 -7
- package/lib/XPopupBridge.d.ts +52 -0
- package/lib/igc-button-click-event-args.d.ts +1 -1
- package/lib/igc-button-group-selection-changed-event-args.d.ts +1 -1
- package/lib/igc-checkbox-change-event-args.d.ts +5 -3
- package/lib/igc-date-picker-component.d.ts +65 -34
- package/lib/igc-got-focus-event-args.d.ts +1 -1
- package/lib/igc-input-change-event-args.d.ts +5 -3
- package/lib/igc-lost-focus-event-args.d.ts +1 -1
- package/lib/igc-selected-value-changed-event-args.d.ts +5 -3
- package/lib/igc-x-button-component.d.ts +399 -173
- package/lib/igc-x-button-group-component.d.ts +136 -70
- package/lib/igc-x-calendar-component.d.ts +53 -28
- package/lib/igc-x-checkbox-component.d.ts +71 -37
- package/lib/igc-x-icon-component.d.ts +140 -44
- package/lib/igc-x-input-component.d.ts +69 -32
- package/lib/igc-x-input-group-component.d.ts +325 -165
- package/lib/igc-x-input-group-item-component.d.ts +5 -4
- package/lib/igc-x-label-component.d.ts +52 -27
- package/lib/igc-x-prefix-component.d.ts +10 -6
- package/lib/igc-x-ripple-component.d.ts +31 -17
- package/lib/igc-x-suffix-component.d.ts +10 -6
- package/package.json +2 -2
- package/public_api.d.ts +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __extends, __values } from "tslib";
|
|
2
2
|
import { XIcon } from "./XIcon";
|
|
3
|
-
import { ensureEnum, brushToString, stringToBrush, ensureBool, initializePropertiesFromCss, NamePatcher, toSpinal, enumToString, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
|
|
3
|
+
import { ensureEnum, brushToString, stringToBrush, ensureBool, initializePropertiesFromCss, NamePatcher, toSpinal, fromBrushCollection, toBrushCollection, brushCollectionToString, enumToString, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
|
|
4
4
|
import { FontInfo } from "igniteui-webcomponents-core";
|
|
5
5
|
import { WebComponentRenderer, PortalManager } from "igniteui-webcomponents-core";
|
|
6
6
|
import { TypeRegistrar } from "igniteui-webcomponents-core";
|
|
@@ -8,7 +8,7 @@ import { RegisterElementHelper } from "igniteui-webcomponents-core";
|
|
|
8
8
|
import { IgcHTMLElement } from "igniteui-webcomponents-core";
|
|
9
9
|
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
10
10
|
var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
11
|
-
|
|
11
|
+
__extends(IgcXIconComponent, _super);
|
|
12
12
|
function IgcXIconComponent() {
|
|
13
13
|
var _this = _super.call(this) || this;
|
|
14
14
|
_this._disconnected = false;
|
|
@@ -46,7 +46,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
46
46
|
var mut = new MutationObserver(function (list) {
|
|
47
47
|
var e_1, _b;
|
|
48
48
|
try {
|
|
49
|
-
for (var list_1 =
|
|
49
|
+
for (var list_1 = __values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) {
|
|
50
50
|
var mutation = list_1_1.value;
|
|
51
51
|
if (mutation.type == 'childList') {
|
|
52
52
|
_this._onChildrenChanged();
|
|
@@ -135,7 +135,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
135
135
|
} /**
|
|
136
136
|
* @hidden
|
|
137
137
|
*/,
|
|
138
|
-
enumerable:
|
|
138
|
+
enumerable: false,
|
|
139
139
|
configurable: true
|
|
140
140
|
});
|
|
141
141
|
IgcXIconComponent._createFromInternal = function (internal) {
|
|
@@ -191,7 +191,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
191
191
|
}
|
|
192
192
|
return IgcXIconComponent._observedAttributesIgcXIconComponent;
|
|
193
193
|
},
|
|
194
|
-
enumerable:
|
|
194
|
+
enumerable: false,
|
|
195
195
|
configurable: true
|
|
196
196
|
});
|
|
197
197
|
IgcXIconComponent.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
|
|
@@ -214,255 +214,332 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
214
214
|
* Gets or sets the base built in theme to use for the button.
|
|
215
215
|
*/
|
|
216
216
|
get: function () {
|
|
217
|
-
return this.i.
|
|
217
|
+
return this.i.i;
|
|
218
218
|
},
|
|
219
219
|
set: function (v) {
|
|
220
|
-
this.i.
|
|
221
|
-
this._a("baseTheme", enumToString(BaseControlTheme_$type, this.i.
|
|
220
|
+
this.i.i = ensureEnum(BaseControlTheme_$type, v);
|
|
221
|
+
this._a("baseTheme", enumToString(BaseControlTheme_$type, this.i.i));
|
|
222
222
|
},
|
|
223
|
-
enumerable:
|
|
223
|
+
enumerable: false,
|
|
224
224
|
configurable: true
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(IgcXIconComponent.prototype, "actualFill", {
|
|
227
227
|
/**
|
|
228
|
-
* Gets the color
|
|
228
|
+
* Gets the fill color currently used by the icon.
|
|
229
229
|
*/
|
|
230
230
|
get: function () {
|
|
231
|
-
return brushToString(this.i.
|
|
231
|
+
return brushToString(this.i.cp);
|
|
232
232
|
},
|
|
233
233
|
set: function (v) {
|
|
234
|
-
this.i.
|
|
235
|
-
this._a("actualFill", brushToString(this.i.
|
|
234
|
+
this.i.cp = stringToBrush(v);
|
|
235
|
+
this._a("actualFill", brushToString(this.i.cp));
|
|
236
236
|
},
|
|
237
|
-
enumerable:
|
|
237
|
+
enumerable: false,
|
|
238
|
+
configurable: true
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(IgcXIconComponent.prototype, "actualStroke", {
|
|
241
|
+
/**
|
|
242
|
+
* Gets the stroke color currently used by the icon.
|
|
243
|
+
*/
|
|
244
|
+
get: function () {
|
|
245
|
+
return brushToString(this.i.cq);
|
|
246
|
+
},
|
|
247
|
+
set: function (v) {
|
|
248
|
+
this.i.cq = stringToBrush(v);
|
|
249
|
+
this._a("actualStroke", brushToString(this.i.cq));
|
|
250
|
+
},
|
|
251
|
+
enumerable: false,
|
|
238
252
|
configurable: true
|
|
239
253
|
});
|
|
240
254
|
Object.defineProperty(IgcXIconComponent.prototype, "actualTextColor", {
|
|
241
255
|
/**
|
|
242
|
-
* Gets the color
|
|
256
|
+
* Gets the text color currently used by the icon.
|
|
243
257
|
*/
|
|
244
258
|
get: function () {
|
|
245
|
-
return brushToString(this.i.
|
|
259
|
+
return brushToString(this.i.cr);
|
|
246
260
|
},
|
|
247
261
|
set: function (v) {
|
|
248
|
-
this.i.
|
|
249
|
-
this._a("actualTextColor", brushToString(this.i.
|
|
262
|
+
this.i.cr = stringToBrush(v);
|
|
263
|
+
this._a("actualTextColor", brushToString(this.i.cr));
|
|
250
264
|
},
|
|
251
|
-
enumerable:
|
|
265
|
+
enumerable: false,
|
|
252
266
|
configurable: true
|
|
253
267
|
});
|
|
254
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
268
|
+
Object.defineProperty(IgcXIconComponent.prototype, "actualStrokeWidth", {
|
|
255
269
|
/**
|
|
256
|
-
* Gets the
|
|
270
|
+
* Gets the stroke width currently used by the icon.
|
|
257
271
|
*/
|
|
258
272
|
get: function () {
|
|
259
|
-
return
|
|
273
|
+
return this.i.ad;
|
|
260
274
|
},
|
|
261
275
|
set: function (v) {
|
|
262
|
-
this.i.
|
|
263
|
-
this._a("
|
|
276
|
+
this.i.ad = +v;
|
|
277
|
+
this._a("actualStrokeWidth", this.i.ad);
|
|
264
278
|
},
|
|
265
|
-
enumerable:
|
|
279
|
+
enumerable: false,
|
|
266
280
|
configurable: true
|
|
267
281
|
});
|
|
268
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
282
|
+
Object.defineProperty(IgcXIconComponent.prototype, "fill", {
|
|
269
283
|
/**
|
|
270
|
-
* Gets the
|
|
284
|
+
* Gets or sets the fill color to use for the icon.
|
|
271
285
|
*/
|
|
272
286
|
get: function () {
|
|
273
|
-
return brushToString(this.i.
|
|
287
|
+
return brushToString(this.i.fill);
|
|
274
288
|
},
|
|
275
289
|
set: function (v) {
|
|
276
|
-
this.i.
|
|
277
|
-
this._a("
|
|
290
|
+
this.i.fill = stringToBrush(v);
|
|
291
|
+
this._a("fill", brushToString(this.i.fill));
|
|
278
292
|
},
|
|
279
|
-
enumerable:
|
|
293
|
+
enumerable: false,
|
|
280
294
|
configurable: true
|
|
281
295
|
});
|
|
282
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
296
|
+
Object.defineProperty(IgcXIconComponent.prototype, "stroke", {
|
|
283
297
|
/**
|
|
284
|
-
* Gets the stroke to use for the icon.
|
|
298
|
+
* Gets or sets the stroke color to use for the icon.
|
|
285
299
|
*/
|
|
286
300
|
get: function () {
|
|
287
|
-
return brushToString(this.i.
|
|
301
|
+
return brushToString(this.i.c5);
|
|
288
302
|
},
|
|
289
303
|
set: function (v) {
|
|
290
|
-
this.i.
|
|
291
|
-
this._a("
|
|
304
|
+
this.i.c5 = stringToBrush(v);
|
|
305
|
+
this._a("stroke", brushToString(this.i.c5));
|
|
292
306
|
},
|
|
293
|
-
enumerable:
|
|
307
|
+
enumerable: false,
|
|
294
308
|
configurable: true
|
|
295
309
|
});
|
|
296
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
310
|
+
Object.defineProperty(IgcXIconComponent.prototype, "strokeWidth", {
|
|
297
311
|
/**
|
|
298
|
-
* Gets the
|
|
312
|
+
* Gets or sets the stroke thickness to use for the icon.
|
|
299
313
|
*/
|
|
300
314
|
get: function () {
|
|
301
|
-
return this.i.
|
|
315
|
+
return this.i.aj;
|
|
302
316
|
},
|
|
303
317
|
set: function (v) {
|
|
304
|
-
this.i.
|
|
305
|
-
this._a("
|
|
318
|
+
this.i.aj = +v;
|
|
319
|
+
this._a("strokeWidth", this.i.aj);
|
|
306
320
|
},
|
|
307
|
-
enumerable:
|
|
321
|
+
enumerable: false,
|
|
308
322
|
configurable: true
|
|
309
323
|
});
|
|
310
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
324
|
+
Object.defineProperty(IgcXIconComponent.prototype, "textColor", {
|
|
311
325
|
/**
|
|
312
|
-
* Gets the
|
|
326
|
+
* Gets or sets the text color to use for the icon.
|
|
313
327
|
*/
|
|
314
328
|
get: function () {
|
|
315
|
-
return this.i.
|
|
329
|
+
return brushToString(this.i.c6);
|
|
316
330
|
},
|
|
317
331
|
set: function (v) {
|
|
318
|
-
this.i.
|
|
319
|
-
this._a("
|
|
332
|
+
this.i.c6 = stringToBrush(v);
|
|
333
|
+
this._a("textColor", brushToString(this.i.c6));
|
|
320
334
|
},
|
|
321
|
-
enumerable:
|
|
335
|
+
enumerable: false,
|
|
322
336
|
configurable: true
|
|
323
337
|
});
|
|
324
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
338
|
+
Object.defineProperty(IgcXIconComponent.prototype, "hoverFill", {
|
|
325
339
|
/**
|
|
326
|
-
* Gets or sets the color to use
|
|
340
|
+
* Gets or sets the fill color to use when the icon is hovered.
|
|
327
341
|
*/
|
|
328
342
|
get: function () {
|
|
329
|
-
return brushToString(this.i.
|
|
343
|
+
return brushToString(this.i.cy);
|
|
330
344
|
},
|
|
331
345
|
set: function (v) {
|
|
332
|
-
this.i.
|
|
333
|
-
this._a("
|
|
346
|
+
this.i.cy = stringToBrush(v);
|
|
347
|
+
this._a("hoverFill", brushToString(this.i.cy));
|
|
334
348
|
},
|
|
335
|
-
enumerable:
|
|
349
|
+
enumerable: false,
|
|
336
350
|
configurable: true
|
|
337
351
|
});
|
|
338
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
352
|
+
Object.defineProperty(IgcXIconComponent.prototype, "hoverStroke", {
|
|
339
353
|
/**
|
|
340
|
-
* Gets or sets the color to use
|
|
354
|
+
* Gets or sets the stroke color to use when the icon is hovered.
|
|
341
355
|
*/
|
|
342
356
|
get: function () {
|
|
343
|
-
return brushToString(this.i.
|
|
357
|
+
return brushToString(this.i.cz);
|
|
344
358
|
},
|
|
345
359
|
set: function (v) {
|
|
346
|
-
this.i.
|
|
347
|
-
this._a("
|
|
360
|
+
this.i.cz = stringToBrush(v);
|
|
361
|
+
this._a("hoverStroke", brushToString(this.i.cz));
|
|
348
362
|
},
|
|
349
|
-
enumerable:
|
|
363
|
+
enumerable: false,
|
|
350
364
|
configurable: true
|
|
351
365
|
});
|
|
352
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
366
|
+
Object.defineProperty(IgcXIconComponent.prototype, "hoverStrokeThickness", {
|
|
353
367
|
/**
|
|
354
|
-
* Gets or sets the
|
|
368
|
+
* Gets or sets the stroke thickness to use when the icon is hovered.
|
|
355
369
|
*/
|
|
356
370
|
get: function () {
|
|
357
|
-
return this.i.
|
|
371
|
+
return this.i.ah;
|
|
358
372
|
},
|
|
359
373
|
set: function (v) {
|
|
360
|
-
this.i.
|
|
374
|
+
this.i.ah = +v;
|
|
375
|
+
this._a("hoverStrokeThickness", this.i.ah);
|
|
361
376
|
},
|
|
362
|
-
enumerable:
|
|
377
|
+
enumerable: false,
|
|
363
378
|
configurable: true
|
|
364
379
|
});
|
|
365
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
380
|
+
Object.defineProperty(IgcXIconComponent.prototype, "hoverTextColor", {
|
|
366
381
|
/**
|
|
367
|
-
* Gets or sets the color to use
|
|
382
|
+
* Gets or sets the text color to use when the icon is hovered.
|
|
368
383
|
*/
|
|
369
384
|
get: function () {
|
|
370
|
-
return brushToString(this.i.
|
|
385
|
+
return brushToString(this.i.c0);
|
|
371
386
|
},
|
|
372
387
|
set: function (v) {
|
|
373
|
-
this.i.
|
|
374
|
-
this._a("
|
|
388
|
+
this.i.c0 = stringToBrush(v);
|
|
389
|
+
this._a("hoverTextColor", brushToString(this.i.c0));
|
|
375
390
|
},
|
|
376
|
-
enumerable:
|
|
391
|
+
enumerable: false,
|
|
377
392
|
configurable: true
|
|
378
393
|
});
|
|
379
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
394
|
+
Object.defineProperty(IgcXIconComponent.prototype, "fillColors", {
|
|
380
395
|
/**
|
|
381
|
-
* Gets or sets
|
|
396
|
+
* Gets or sets a collection of fill colors to use in the icon.
|
|
397
|
+
* These colors can be used by SVG elements that have been marked with the
|
|
398
|
+
* ig-icon-fill-#
|
|
399
|
+
* class where # is a number from 0 to count - 1.
|
|
382
400
|
*/
|
|
383
401
|
get: function () {
|
|
384
|
-
return
|
|
402
|
+
return fromBrushCollection(this.i.c);
|
|
385
403
|
},
|
|
386
404
|
set: function (v) {
|
|
387
|
-
this.i.
|
|
388
|
-
this._a("
|
|
405
|
+
this.i.c = toBrushCollection(v);
|
|
406
|
+
this._a("fillColors", brushCollectionToString(this.i.c));
|
|
389
407
|
},
|
|
390
|
-
enumerable:
|
|
408
|
+
enumerable: false,
|
|
391
409
|
configurable: true
|
|
392
410
|
});
|
|
393
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
411
|
+
Object.defineProperty(IgcXIconComponent.prototype, "strokeColors", {
|
|
394
412
|
/**
|
|
395
|
-
* Gets or sets
|
|
413
|
+
* Gets or sets a collection of stroke colors to use in the icon.
|
|
414
|
+
* These colors can be used by SVG elements that have been marked with the
|
|
415
|
+
* ig-icon-stroke-#
|
|
416
|
+
* class where # is a number from 0 to count - 1.
|
|
396
417
|
*/
|
|
397
418
|
get: function () {
|
|
398
|
-
return
|
|
419
|
+
return fromBrushCollection(this.i.d);
|
|
399
420
|
},
|
|
400
421
|
set: function (v) {
|
|
401
|
-
this.i.
|
|
402
|
-
this._a("
|
|
422
|
+
this.i.d = toBrushCollection(v);
|
|
423
|
+
this._a("strokeColors", brushCollectionToString(this.i.d));
|
|
403
424
|
},
|
|
404
|
-
enumerable:
|
|
425
|
+
enumerable: false,
|
|
405
426
|
configurable: true
|
|
406
427
|
});
|
|
407
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
428
|
+
Object.defineProperty(IgcXIconComponent.prototype, "primaryFillColor", {
|
|
408
429
|
/**
|
|
409
|
-
* Gets or sets
|
|
430
|
+
* Gets or sets a primary fill color for the icon.
|
|
431
|
+
* This color is used by SVG elements that have been marked
|
|
432
|
+
* with the
|
|
433
|
+
* ig-icon-primary-fill
|
|
434
|
+
* class.
|
|
410
435
|
*/
|
|
411
436
|
get: function () {
|
|
412
|
-
return this.i.
|
|
437
|
+
return brushToString(this.i.c1);
|
|
413
438
|
},
|
|
414
439
|
set: function (v) {
|
|
415
|
-
this.i.
|
|
416
|
-
this._a("
|
|
440
|
+
this.i.c1 = stringToBrush(v);
|
|
441
|
+
this._a("primaryFillColor", brushToString(this.i.c1));
|
|
417
442
|
},
|
|
418
|
-
enumerable:
|
|
443
|
+
enumerable: false,
|
|
419
444
|
configurable: true
|
|
420
445
|
});
|
|
421
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
446
|
+
Object.defineProperty(IgcXIconComponent.prototype, "primaryStrokeColor", {
|
|
422
447
|
/**
|
|
423
|
-
* Gets or sets
|
|
448
|
+
* Gets or sets a primary stroke color for the icon.
|
|
449
|
+
* This color is used by SVG elements that have been marked
|
|
450
|
+
* with the
|
|
451
|
+
* ig-icon-primary-stroke
|
|
452
|
+
* class.
|
|
424
453
|
*/
|
|
425
454
|
get: function () {
|
|
426
|
-
return this.i.
|
|
455
|
+
return brushToString(this.i.c2);
|
|
427
456
|
},
|
|
428
457
|
set: function (v) {
|
|
429
|
-
this.i.
|
|
430
|
-
this._a("
|
|
458
|
+
this.i.c2 = stringToBrush(v);
|
|
459
|
+
this._a("primaryStrokeColor", brushToString(this.i.c2));
|
|
431
460
|
},
|
|
432
|
-
enumerable:
|
|
461
|
+
enumerable: false,
|
|
433
462
|
configurable: true
|
|
434
463
|
});
|
|
435
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
464
|
+
Object.defineProperty(IgcXIconComponent.prototype, "secondaryFillColor", {
|
|
436
465
|
/**
|
|
437
|
-
* Gets or sets
|
|
466
|
+
* Gets or sets a secondary fill color for the icon.
|
|
467
|
+
* This color is used by SVG elements that have been marked
|
|
468
|
+
* with the
|
|
469
|
+
* ig-icon-secondary-fill
|
|
470
|
+
* class.
|
|
438
471
|
*/
|
|
439
472
|
get: function () {
|
|
440
|
-
|
|
441
|
-
return null;
|
|
442
|
-
}
|
|
443
|
-
return this.i.g.fontString;
|
|
473
|
+
return brushToString(this.i.c3);
|
|
444
474
|
},
|
|
445
475
|
set: function (v) {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this.i.g = fi;
|
|
449
|
-
this._a("textStyle", this.i.g != null ? this.i.g.fontString : "");
|
|
476
|
+
this.i.c3 = stringToBrush(v);
|
|
477
|
+
this._a("secondaryFillColor", brushToString(this.i.c3));
|
|
450
478
|
},
|
|
451
|
-
enumerable:
|
|
479
|
+
enumerable: false,
|
|
452
480
|
configurable: true
|
|
453
481
|
});
|
|
454
|
-
Object.defineProperty(IgcXIconComponent.prototype, "
|
|
482
|
+
Object.defineProperty(IgcXIconComponent.prototype, "secondaryStrokeColor", {
|
|
483
|
+
/**
|
|
484
|
+
* Gets or sets a secondary stroke color for the icon.
|
|
485
|
+
* This color is used by SVG elements that have been marked
|
|
486
|
+
* with the
|
|
487
|
+
* ig-icon-secondary-stroke
|
|
488
|
+
* class.
|
|
489
|
+
*/
|
|
490
|
+
get: function () {
|
|
491
|
+
return brushToString(this.i.c4);
|
|
492
|
+
},
|
|
493
|
+
set: function (v) {
|
|
494
|
+
this.i.c4 = stringToBrush(v);
|
|
495
|
+
this._a("secondaryStrokeColor", brushToString(this.i.c4));
|
|
496
|
+
},
|
|
497
|
+
enumerable: false,
|
|
498
|
+
configurable: true
|
|
499
|
+
});
|
|
500
|
+
Object.defineProperty(IgcXIconComponent.prototype, "svgPath", {
|
|
501
|
+
/**
|
|
502
|
+
* Gets or sets path data for the icon to use.
|
|
503
|
+
*/
|
|
504
|
+
get: function () {
|
|
505
|
+
return this.i.svgPath;
|
|
506
|
+
},
|
|
507
|
+
set: function (v) {
|
|
508
|
+
this.i.svgPath = v;
|
|
509
|
+
},
|
|
510
|
+
enumerable: false,
|
|
511
|
+
configurable: true
|
|
512
|
+
});
|
|
513
|
+
Object.defineProperty(IgcXIconComponent.prototype, "svg", {
|
|
514
|
+
/**
|
|
515
|
+
* Gets or sets svg text for the icon to use.
|
|
516
|
+
*/
|
|
517
|
+
get: function () {
|
|
518
|
+
return this.i.svg;
|
|
519
|
+
},
|
|
520
|
+
set: function (v) {
|
|
521
|
+
this.i.svg = v;
|
|
522
|
+
},
|
|
523
|
+
enumerable: false,
|
|
524
|
+
configurable: true
|
|
525
|
+
});
|
|
526
|
+
Object.defineProperty(IgcXIconComponent.prototype, "textStyle", {
|
|
455
527
|
/**
|
|
456
|
-
* Gets or sets the
|
|
528
|
+
* Gets or sets the use for the button.
|
|
457
529
|
*/
|
|
458
530
|
get: function () {
|
|
459
|
-
|
|
531
|
+
if (this.i.k == null) {
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
return this.i.k.fontString;
|
|
460
535
|
},
|
|
461
536
|
set: function (v) {
|
|
462
|
-
|
|
463
|
-
|
|
537
|
+
var fi = new FontInfo();
|
|
538
|
+
fi.fontString = v;
|
|
539
|
+
this.i.k = fi;
|
|
540
|
+
this._a("textStyle", this.i.k != null ? this.i.k.fontString : "");
|
|
464
541
|
},
|
|
465
|
-
enumerable:
|
|
542
|
+
enumerable: false,
|
|
466
543
|
configurable: true
|
|
467
544
|
});
|
|
468
545
|
Object.defineProperty(IgcXIconComponent.prototype, "id", {
|
|
@@ -470,12 +547,12 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
470
547
|
* Gets or sets the id to use for the checkbox.
|
|
471
548
|
*/
|
|
472
549
|
get: function () {
|
|
473
|
-
return this.i.
|
|
550
|
+
return this.i.bc;
|
|
474
551
|
},
|
|
475
552
|
set: function (v) {
|
|
476
|
-
this.i.
|
|
553
|
+
this.i.bc = v;
|
|
477
554
|
},
|
|
478
|
-
enumerable:
|
|
555
|
+
enumerable: false,
|
|
479
556
|
configurable: true
|
|
480
557
|
});
|
|
481
558
|
Object.defineProperty(IgcXIconComponent.prototype, "tabIndex", {
|
|
@@ -483,13 +560,13 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
483
560
|
* Gets or sets TabIndex to use for the checkbox.
|
|
484
561
|
*/
|
|
485
562
|
get: function () {
|
|
486
|
-
return this.i.
|
|
563
|
+
return this.i.aq;
|
|
487
564
|
},
|
|
488
565
|
set: function (v) {
|
|
489
|
-
this.i.
|
|
490
|
-
this._a("tabIndex", this.i.
|
|
566
|
+
this.i.aq = +v;
|
|
567
|
+
this._a("tabIndex", this.i.aq);
|
|
491
568
|
},
|
|
492
|
-
enumerable:
|
|
569
|
+
enumerable: false,
|
|
493
570
|
configurable: true
|
|
494
571
|
});
|
|
495
572
|
Object.defineProperty(IgcXIconComponent.prototype, "ariaLabel", {
|
|
@@ -497,12 +574,12 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
497
574
|
* Gets or sets the value of the aria-label attribute.
|
|
498
575
|
*/
|
|
499
576
|
get: function () {
|
|
500
|
-
return this.i.
|
|
577
|
+
return this.i.a1;
|
|
501
578
|
},
|
|
502
579
|
set: function (v) {
|
|
503
|
-
this.i.
|
|
580
|
+
this.i.a1 = v;
|
|
504
581
|
},
|
|
505
|
-
enumerable:
|
|
582
|
+
enumerable: false,
|
|
506
583
|
configurable: true
|
|
507
584
|
});
|
|
508
585
|
Object.defineProperty(IgcXIconComponent.prototype, "isHover", {
|
|
@@ -510,13 +587,13 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
510
587
|
* Gets or sets whether the icon is hovered.
|
|
511
588
|
*/
|
|
512
589
|
get: function () {
|
|
513
|
-
return this.i.
|
|
590
|
+
return this.i.r;
|
|
514
591
|
},
|
|
515
592
|
set: function (v) {
|
|
516
|
-
this.i.
|
|
517
|
-
this._a("isHover", this.i.
|
|
593
|
+
this.i.r = ensureBool(v);
|
|
594
|
+
this._a("isHover", this.i.r);
|
|
518
595
|
},
|
|
519
|
-
enumerable:
|
|
596
|
+
enumerable: false,
|
|
520
597
|
configurable: true
|
|
521
598
|
});
|
|
522
599
|
Object.defineProperty(IgcXIconComponent.prototype, "disabled", {
|
|
@@ -530,18 +607,102 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
530
607
|
this.i.disabled = ensureBool(v);
|
|
531
608
|
this._a("disabled", this.i.disabled);
|
|
532
609
|
},
|
|
533
|
-
enumerable:
|
|
610
|
+
enumerable: false,
|
|
534
611
|
configurable: true
|
|
535
612
|
});
|
|
536
613
|
Object.defineProperty(IgcXIconComponent.prototype, "opacity", {
|
|
537
614
|
get: function () {
|
|
538
|
-
return this.i.
|
|
615
|
+
return this.i.ai;
|
|
539
616
|
},
|
|
540
617
|
set: function (v) {
|
|
541
|
-
this.i.
|
|
542
|
-
this._a("opacity", this.i.
|
|
618
|
+
this.i.ai = +v;
|
|
619
|
+
this._a("opacity", this.i.ai);
|
|
543
620
|
},
|
|
544
|
-
enumerable:
|
|
621
|
+
enumerable: false,
|
|
622
|
+
configurable: true
|
|
623
|
+
});
|
|
624
|
+
Object.defineProperty(IgcXIconComponent.prototype, "viewBoxLeft", {
|
|
625
|
+
/**
|
|
626
|
+
* Gets or sets the viewbox left for the svg icon.
|
|
627
|
+
*/
|
|
628
|
+
get: function () {
|
|
629
|
+
return this.i.al;
|
|
630
|
+
},
|
|
631
|
+
set: function (v) {
|
|
632
|
+
this.i.al = +v;
|
|
633
|
+
this._a("viewBoxLeft", this.i.al);
|
|
634
|
+
},
|
|
635
|
+
enumerable: false,
|
|
636
|
+
configurable: true
|
|
637
|
+
});
|
|
638
|
+
Object.defineProperty(IgcXIconComponent.prototype, "viewBoxTop", {
|
|
639
|
+
/**
|
|
640
|
+
* Gets or sets the viewbox top for the svg icon.
|
|
641
|
+
*/
|
|
642
|
+
get: function () {
|
|
643
|
+
return this.i.am;
|
|
644
|
+
},
|
|
645
|
+
set: function (v) {
|
|
646
|
+
this.i.am = +v;
|
|
647
|
+
this._a("viewBoxTop", this.i.am);
|
|
648
|
+
},
|
|
649
|
+
enumerable: false,
|
|
650
|
+
configurable: true
|
|
651
|
+
});
|
|
652
|
+
Object.defineProperty(IgcXIconComponent.prototype, "viewBoxWidth", {
|
|
653
|
+
/**
|
|
654
|
+
* Gets or sets the viewbox width for the svg icon.
|
|
655
|
+
*/
|
|
656
|
+
get: function () {
|
|
657
|
+
return this.i.an;
|
|
658
|
+
},
|
|
659
|
+
set: function (v) {
|
|
660
|
+
this.i.an = +v;
|
|
661
|
+
this._a("viewBoxWidth", this.i.an);
|
|
662
|
+
},
|
|
663
|
+
enumerable: false,
|
|
664
|
+
configurable: true
|
|
665
|
+
});
|
|
666
|
+
Object.defineProperty(IgcXIconComponent.prototype, "viewBoxHeight", {
|
|
667
|
+
/**
|
|
668
|
+
* Gets or sets the viewbox height for the svg icon.
|
|
669
|
+
*/
|
|
670
|
+
get: function () {
|
|
671
|
+
return this.i.ak;
|
|
672
|
+
},
|
|
673
|
+
set: function (v) {
|
|
674
|
+
this.i.ak = +v;
|
|
675
|
+
this._a("viewBoxHeight", this.i.ak);
|
|
676
|
+
},
|
|
677
|
+
enumerable: false,
|
|
678
|
+
configurable: true
|
|
679
|
+
});
|
|
680
|
+
Object.defineProperty(IgcXIconComponent.prototype, "width", {
|
|
681
|
+
/**
|
|
682
|
+
* Gets or sets the width of the icon.
|
|
683
|
+
*/
|
|
684
|
+
get: function () {
|
|
685
|
+
return this.i.ao;
|
|
686
|
+
},
|
|
687
|
+
set: function (v) {
|
|
688
|
+
this.i.ao = +v;
|
|
689
|
+
this._a("width", this.i.ao);
|
|
690
|
+
},
|
|
691
|
+
enumerable: false,
|
|
692
|
+
configurable: true
|
|
693
|
+
});
|
|
694
|
+
Object.defineProperty(IgcXIconComponent.prototype, "height", {
|
|
695
|
+
/**
|
|
696
|
+
* Gets or sets the height of the icon.
|
|
697
|
+
*/
|
|
698
|
+
get: function () {
|
|
699
|
+
return this.i.ag;
|
|
700
|
+
},
|
|
701
|
+
set: function (v) {
|
|
702
|
+
this.i.ag = +v;
|
|
703
|
+
this._a("height", this.i.ag);
|
|
704
|
+
},
|
|
705
|
+
enumerable: false,
|
|
545
706
|
configurable: true
|
|
546
707
|
});
|
|
547
708
|
IgcXIconComponent.prototype.findByName = function (name) {
|
|
@@ -556,7 +717,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
556
717
|
get: function () {
|
|
557
718
|
return this._hasUserValues;
|
|
558
719
|
},
|
|
559
|
-
enumerable:
|
|
720
|
+
enumerable: false,
|
|
560
721
|
configurable: true
|
|
561
722
|
});
|
|
562
723
|
IgcXIconComponent.prototype.__m = function (propertyName) {
|
|
@@ -620,7 +781,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
620
781
|
|
|
621
782
|
*/
|
|
622
783
|
IgcXIconComponent.prototype.exportVisualModel = function () {
|
|
623
|
-
var iv = this.i.
|
|
784
|
+
var iv = this.i.as();
|
|
624
785
|
return (iv);
|
|
625
786
|
};
|
|
626
787
|
/**
|
|
@@ -628,7 +789,7 @@ var IgcXIconComponent = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
628
789
|
|
|
629
790
|
*/
|
|
630
791
|
IgcXIconComponent.prototype.exportSerializedVisualModel = function () {
|
|
631
|
-
var iv = this.i.
|
|
792
|
+
var iv = this.i.a4();
|
|
632
793
|
return (iv);
|
|
633
794
|
};
|
|
634
795
|
IgcXIconComponent._observedAttributesIgcXIconComponent = null;
|