igniteui-webcomponents-dashboards 5.1.1-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.
Files changed (169) hide show
  1. package/License +27 -0
  2. package/README.md +19 -0
  3. package/bundles/igniteui-webcomponents-dashboards.umd.js +9396 -0
  4. package/bundles/igniteui-webcomponents-dashboards.umd.min.js +7 -0
  5. package/esm2015/igniteui-webcomponents-dashboards.js +1 -0
  6. package/esm2015/lib/DashboardTile.js +7 -0
  7. package/esm2015/lib/DashboardTileChangingContentEventArgs.js +26 -0
  8. package/esm2015/lib/DashboardTileCommonFeature.js +39 -0
  9. package/esm2015/lib/DashboardTileCustomization.js +7 -0
  10. package/esm2015/lib/DashboardTileCustomizationCollection.js +7 -0
  11. package/esm2015/lib/DashboardTileFilterStringErrorsParsingEventArgs.js +33 -0
  12. package/esm2015/lib/DashboardTileGalleryIconInfo.js +22 -0
  13. package/esm2015/lib/DashboardTileGroupDescription.js +52 -0
  14. package/esm2015/lib/DashboardTileGroupDescriptionCollection.js +84 -0
  15. package/esm2015/lib/DashboardTilePrimitiveValueWrapper.js +20 -0
  16. package/esm2015/lib/DashboardTileSortDescription.js +61 -0
  17. package/esm2015/lib/DashboardTileSortDescriptionCollection.js +96 -0
  18. package/esm2015/lib/DashboardTileSummaryDescription.js +123 -0
  19. package/esm2015/lib/DashboardTileSummaryDescriptionCollection.js +102 -0
  20. package/esm2015/lib/DashboardTileToolbarProvider.js +7 -0
  21. package/esm2015/lib/DashboardTileView.js +7 -0
  22. package/esm2015/lib/DashboardTileView_combined.js +3151 -0
  23. package/esm2015/lib/DashboardTileVisualizationType.js +50 -0
  24. package/esm2015/lib/DataChartDashboardTileFeature.js +76 -0
  25. package/esm2015/lib/DataSeriesToDescriptionAdapter.js +1556 -0
  26. package/esm2015/lib/DataSeriesToDescriptionAdapterControlType.js +11 -0
  27. package/esm2015/lib/DataSeriesToDescriptionAdapterResult.js +146 -0
  28. package/esm2015/lib/DataSeriesToDescriptionAdapterSettings.js +85 -0
  29. package/esm2015/lib/DataSeriesToDescriptionCustomizations.js +176 -0
  30. package/esm2015/lib/DescriptionValueLookupHelper.js +38 -0
  31. package/esm2015/lib/GeographicMapDashboardTileFeature.js +26 -0
  32. package/esm2015/lib/IDashboardTileView.js +11 -0
  33. package/esm2015/lib/IExternalDashboardTile.js +11 -0
  34. package/esm2015/lib/LinearGaugeDashboardTileFeature.js +26 -0
  35. package/esm2015/lib/PieChartDashboardTileFeature.js +28 -0
  36. package/esm2015/lib/RadialGaugeDashboardTileFeature.js +26 -0
  37. package/esm2015/lib/igc-dashboard-tile-changing-content-event-args.js +36 -0
  38. package/esm2015/lib/igc-dashboard-tile-component.js +1147 -0
  39. package/esm2015/lib/igc-dashboard-tile-customization-collection.js +53 -0
  40. package/esm2015/lib/igc-dashboard-tile-customization-component.js +265 -0
  41. package/esm2015/lib/igc-dashboard-tile-customization-module.js +16 -0
  42. package/esm2015/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.js +48 -0
  43. package/esm2015/lib/igc-dashboard-tile-group-description-collection.js +76 -0
  44. package/esm2015/lib/igc-dashboard-tile-group-description-module.js +15 -0
  45. package/esm2015/lib/igc-dashboard-tile-group-description.js +19 -0
  46. package/esm2015/lib/igc-dashboard-tile-module.js +33 -0
  47. package/esm2015/lib/igc-dashboard-tile-sort-description-collection.js +86 -0
  48. package/esm2015/lib/igc-dashboard-tile-sort-description-module.js +15 -0
  49. package/esm2015/lib/igc-dashboard-tile-sort-description.js +70 -0
  50. package/esm2015/lib/igc-dashboard-tile-summary-description-collection.js +83 -0
  51. package/esm2015/lib/igc-dashboard-tile-summary-description-module.js +15 -0
  52. package/esm2015/lib/igc-dashboard-tile-summary-description.js +107 -0
  53. package/esm2015/lib/igc-data-chart-dashboard-tile-module.js +36 -0
  54. package/esm2015/lib/igc-geographic-map-dashboard-tile-module.js +18 -0
  55. package/esm2015/lib/igc-linear-gauge-dashboard-tile-module.js +18 -0
  56. package/esm2015/lib/igc-pie-chart-dashboard-tile-module.js +18 -0
  57. package/esm2015/lib/igc-radial-gauge-dashboard-tile-module.js +18 -0
  58. package/esm2015/public_api.js +51 -0
  59. package/esm5/igniteui-webcomponents-dashboards.js +1 -0
  60. package/esm5/lib/DashboardTile.js +7 -0
  61. package/esm5/lib/DashboardTileChangingContentEventArgs.js +32 -0
  62. package/esm5/lib/DashboardTileCommonFeature.js +43 -0
  63. package/esm5/lib/DashboardTileCustomization.js +7 -0
  64. package/esm5/lib/DashboardTileCustomizationCollection.js +7 -0
  65. package/esm5/lib/DashboardTileFilterStringErrorsParsingEventArgs.js +43 -0
  66. package/esm5/lib/DashboardTileGalleryIconInfo.js +24 -0
  67. package/esm5/lib/DashboardTileGroupDescription.js +59 -0
  68. package/esm5/lib/DashboardTileGroupDescriptionCollection.js +94 -0
  69. package/esm5/lib/DashboardTilePrimitiveValueWrapper.js +22 -0
  70. package/esm5/lib/DashboardTileSortDescription.js +75 -0
  71. package/esm5/lib/DashboardTileSortDescriptionCollection.js +110 -0
  72. package/esm5/lib/DashboardTileSummaryDescription.js +149 -0
  73. package/esm5/lib/DashboardTileSummaryDescriptionCollection.js +116 -0
  74. package/esm5/lib/DashboardTileToolbarProvider.js +7 -0
  75. package/esm5/lib/DashboardTileView.js +7 -0
  76. package/esm5/lib/DashboardTileView_combined.js +3814 -0
  77. package/esm5/lib/DashboardTileVisualizationType.js +50 -0
  78. package/esm5/lib/DataChartDashboardTileFeature.js +80 -0
  79. package/esm5/lib/DataSeriesToDescriptionAdapter.js +1581 -0
  80. package/esm5/lib/DataSeriesToDescriptionAdapterControlType.js +11 -0
  81. package/esm5/lib/DataSeriesToDescriptionAdapterResult.js +168 -0
  82. package/esm5/lib/DataSeriesToDescriptionAdapterSettings.js +111 -0
  83. package/esm5/lib/DataSeriesToDescriptionCustomizations.js +277 -0
  84. package/esm5/lib/DescriptionValueLookupHelper.js +46 -0
  85. package/esm5/lib/GeographicMapDashboardTileFeature.js +30 -0
  86. package/esm5/lib/IDashboardTileView.js +11 -0
  87. package/esm5/lib/IExternalDashboardTile.js +11 -0
  88. package/esm5/lib/LinearGaugeDashboardTileFeature.js +30 -0
  89. package/esm5/lib/PieChartDashboardTileFeature.js +32 -0
  90. package/esm5/lib/RadialGaugeDashboardTileFeature.js +30 -0
  91. package/esm5/lib/igc-dashboard-tile-changing-content-event-args.js +46 -0
  92. package/esm5/lib/igc-dashboard-tile-component.js +1401 -0
  93. package/esm5/lib/igc-dashboard-tile-customization-collection.js +58 -0
  94. package/esm5/lib/igc-dashboard-tile-customization-component.js +319 -0
  95. package/esm5/lib/igc-dashboard-tile-customization-module.js +20 -0
  96. package/esm5/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.js +62 -0
  97. package/esm5/lib/igc-dashboard-tile-group-description-collection.js +82 -0
  98. package/esm5/lib/igc-dashboard-tile-group-description-module.js +19 -0
  99. package/esm5/lib/igc-dashboard-tile-group-description.js +27 -0
  100. package/esm5/lib/igc-dashboard-tile-module.js +37 -0
  101. package/esm5/lib/igc-dashboard-tile-sort-description-collection.js +96 -0
  102. package/esm5/lib/igc-dashboard-tile-sort-description-module.js +19 -0
  103. package/esm5/lib/igc-dashboard-tile-sort-description.js +84 -0
  104. package/esm5/lib/igc-dashboard-tile-summary-description-collection.js +93 -0
  105. package/esm5/lib/igc-dashboard-tile-summary-description-module.js +19 -0
  106. package/esm5/lib/igc-dashboard-tile-summary-description.js +134 -0
  107. package/esm5/lib/igc-data-chart-dashboard-tile-module.js +40 -0
  108. package/esm5/lib/igc-geographic-map-dashboard-tile-module.js +22 -0
  109. package/esm5/lib/igc-linear-gauge-dashboard-tile-module.js +22 -0
  110. package/esm5/lib/igc-pie-chart-dashboard-tile-module.js +22 -0
  111. package/esm5/lib/igc-radial-gauge-dashboard-tile-module.js +22 -0
  112. package/esm5/public_api.js +51 -0
  113. package/fesm2015/igniteui-webcomponents-dashboards.js +7990 -0
  114. package/fesm5/igniteui-webcomponents-dashboards.js +9344 -0
  115. package/igniteui-webcomponents-dashboards.d.ts +1 -0
  116. package/lib/DashboardTile.d.ts +1 -0
  117. package/lib/DashboardTileChangingContentEventArgs.d.ts +11 -0
  118. package/lib/DashboardTileCommonFeature.d.ts +9 -0
  119. package/lib/DashboardTileCustomization.d.ts +1 -0
  120. package/lib/DashboardTileCustomizationCollection.d.ts +1 -0
  121. package/lib/DashboardTileFilterStringErrorsParsingEventArgs.d.ts +14 -0
  122. package/lib/DashboardTileGalleryIconInfo.d.ts +11 -0
  123. package/lib/DashboardTileGroupDescription.d.ts +16 -0
  124. package/lib/DashboardTileGroupDescriptionCollection.d.ts +27 -0
  125. package/lib/DashboardTilePrimitiveValueWrapper.d.ts +8 -0
  126. package/lib/DashboardTileSortDescription.d.ts +20 -0
  127. package/lib/DashboardTileSortDescriptionCollection.d.ts +31 -0
  128. package/lib/DashboardTileSummaryDescription.d.ts +38 -0
  129. package/lib/DashboardTileSummaryDescriptionCollection.d.ts +31 -0
  130. package/lib/DashboardTileToolbarProvider.d.ts +1 -0
  131. package/lib/DashboardTileView.d.ts +1 -0
  132. package/lib/DashboardTileView_combined.d.ts +525 -0
  133. package/lib/DashboardTileVisualizationType.d.ts +43 -0
  134. package/lib/DataChartDashboardTileFeature.d.ts +10 -0
  135. package/lib/DataSeriesToDescriptionAdapter.d.ts +62 -0
  136. package/lib/DataSeriesToDescriptionAdapterControlType.d.ts +15 -0
  137. package/lib/DataSeriesToDescriptionAdapterResult.d.ts +36 -0
  138. package/lib/DataSeriesToDescriptionAdapterSettings.d.ts +36 -0
  139. package/lib/DataSeriesToDescriptionCustomizations.d.ts +21 -0
  140. package/lib/DescriptionValueLookupHelper.d.ts +12 -0
  141. package/lib/GeographicMapDashboardTileFeature.d.ts +10 -0
  142. package/lib/IDashboardTileView.d.ts +20 -0
  143. package/lib/IExternalDashboardTile.d.ts +13 -0
  144. package/lib/LinearGaugeDashboardTileFeature.d.ts +10 -0
  145. package/lib/PieChartDashboardTileFeature.d.ts +10 -0
  146. package/lib/RadialGaugeDashboardTileFeature.d.ts +10 -0
  147. package/lib/igc-dashboard-tile-changing-content-event-args.d.ts +14 -0
  148. package/lib/igc-dashboard-tile-component.d.ts +348 -0
  149. package/lib/igc-dashboard-tile-customization-collection.d.ts +8 -0
  150. package/lib/igc-dashboard-tile-customization-component.d.ts +59 -0
  151. package/lib/igc-dashboard-tile-customization-module.d.ts +3 -0
  152. package/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.d.ts +22 -0
  153. package/lib/igc-dashboard-tile-group-description-collection.d.ts +23 -0
  154. package/lib/igc-dashboard-tile-group-description-module.d.ts +3 -0
  155. package/lib/igc-dashboard-tile-group-description.d.ts +13 -0
  156. package/lib/igc-dashboard-tile-module.d.ts +3 -0
  157. package/lib/igc-dashboard-tile-sort-description-collection.d.ts +28 -0
  158. package/lib/igc-dashboard-tile-sort-description-module.d.ts +3 -0
  159. package/lib/igc-dashboard-tile-sort-description.d.ts +33 -0
  160. package/lib/igc-dashboard-tile-summary-description-collection.d.ts +25 -0
  161. package/lib/igc-dashboard-tile-summary-description-module.d.ts +3 -0
  162. package/lib/igc-dashboard-tile-summary-description.d.ts +40 -0
  163. package/lib/igc-data-chart-dashboard-tile-module.d.ts +3 -0
  164. package/lib/igc-geographic-map-dashboard-tile-module.d.ts +3 -0
  165. package/lib/igc-linear-gauge-dashboard-tile-module.d.ts +3 -0
  166. package/lib/igc-pie-chart-dashboard-tile-module.d.ts +3 -0
  167. package/lib/igc-radial-gauge-dashboard-tile-module.d.ts +3 -0
  168. package/package.json +42 -0
  169. package/public_api.d.ts +51 -0
@@ -0,0 +1,1401 @@
1
+ import { __extends, __values } from "tslib";
2
+ import { DashboardTile } from "./DashboardTile";
3
+ import { ensureEnum, brushToString, stringToBrush, ensureBool, initializePropertiesFromCss, NamePatcher, toSpinal, fromBrushCollection, toBrushCollection, brushCollectionToString, enumToString, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
4
+ import { WebComponentRenderer, PortalManager } from "igniteui-webcomponents-core";
5
+ import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core";
6
+ import { TypeRegistrar } from "igniteui-webcomponents-core";
7
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
8
+ import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
9
+ import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
10
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
11
+ import { IgcDashboardTileFilterStringErrorsParsingEventArgs } from "./igc-dashboard-tile-filter-string-errors-parsing-event-args";
12
+ import { DashboardTileVisualizationType_$type } from "./DashboardTileVisualizationType";
13
+ import { CrosshairsDisplayMode_$type } from "igniteui-webcomponents-charts";
14
+ import { IgcValueModeCollection } from "igniteui-webcomponents-charts";
15
+ import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
16
+ import { ValueLayerValueMode_$type } from "igniteui-webcomponents-charts";
17
+ import { ValueModeCollection as ValueModeCollection_internal } from "igniteui-webcomponents-charts";
18
+ import { IgcChartSelectedItemCollection } from "igniteui-webcomponents-charts";
19
+ import { ChartSelectedItemCollection as ChartSelectedItemCollection_internal } from "igniteui-webcomponents-charts";
20
+ import { ChartSelection } from "igniteui-webcomponents-charts";
21
+ import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-webcomponents-core";
22
+ import { TrendLineType_$type } from "igniteui-webcomponents-core";
23
+ import { IgcDashboardTileSummaryDescriptionCollection } from "./igc-dashboard-tile-summary-description-collection";
24
+ import { IgcFilterExpressionCollection } from "igniteui-webcomponents-core";
25
+ import { IgcDashboardTileSortDescriptionCollection } from "./igc-dashboard-tile-sort-description-collection";
26
+ import { NotifyCollectionChangedAction } from "igniteui-webcomponents-core";
27
+ import { IgcDashboardTileCustomizationCollection } from "./igc-dashboard-tile-customization-collection";
28
+ import { IgcDashboardTileChangingContentEventArgs } from "./igc-dashboard-tile-changing-content-event-args";
29
+ var IgcDashboardTileComponent = /** @class */ /*@__PURE__*/ (function (_super) {
30
+ __extends(IgcDashboardTileComponent, _super);
31
+ function IgcDashboardTileComponent() {
32
+ var _this = _super.call(this) || this;
33
+ _this._disconnected = false;
34
+ _this._settingAttributes = false;
35
+ _this._attached = false;
36
+ _this._queuedSetAttributes = [];
37
+ _this._updatingFromAttribute = false;
38
+ _this._customizations = null;
39
+ _this._selectedSeriesItems = null;
40
+ _this._valueLines = null;
41
+ _this.__p = null;
42
+ _this._hasUserValues = new Set();
43
+ _this._stylingContainer = null;
44
+ _this._stylingParent = null;
45
+ _this._inStyling = false;
46
+ _this._changingContent = null;
47
+ _this._changingContent_wrapped = null;
48
+ _this._filterStringErrorsParsing = null;
49
+ _this._filterStringErrorsParsing_wrapped = null;
50
+ if (_this._styling) {
51
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
52
+ }
53
+ _this._portalManager = new PortalManager("DashboardTileContent");
54
+ _this._renderer = new WebComponentRenderer(_this, document, true, {}, _this._portalManager);
55
+ _this._container = _this._renderer.createElement("div");
56
+ _this._renderer.updateRoot(_this._container);
57
+ _this._implementation = _this.createImplementation();
58
+ _this._implementation.externalObject = _this;
59
+ _this._container.setStyleProperty("width", "100%");
60
+ _this._container.setStyleProperty("height", "100%");
61
+ var root;
62
+ root = _this._container;
63
+ if (_this._container.getNativeElement() != null) {
64
+ root = _this._container.getNativeElement();
65
+ }
66
+ _this._wrapper = _this._renderer;
67
+ var DashboardTile = _this.i;
68
+ _this._DashboardTile = DashboardTile;
69
+ DashboardTile.provideContainer(_this._renderer);
70
+ _this._onChildrenChanged();
71
+ //Checkbox.notifySizeChanged();
72
+ var mut = new MutationObserver(function (list) {
73
+ var e_1, _b;
74
+ try {
75
+ for (var list_1 = __values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) {
76
+ var mutation = list_1_1.value;
77
+ if (mutation.type == 'childList') {
78
+ _this._onChildrenChanged();
79
+ }
80
+ }
81
+ }
82
+ catch (e_1_1) {
83
+ e_1 = { error: e_1_1 };
84
+ }
85
+ finally {
86
+ try {
87
+ if (list_1_1 && !list_1_1.done && (_b = list_1.return))
88
+ _b.call(list_1);
89
+ }
90
+ finally {
91
+ if (e_1)
92
+ throw e_1.error;
93
+ }
94
+ }
95
+ });
96
+ mut.observe(_this, {
97
+ childList: true
98
+ });
99
+ return _this;
100
+ //this._renderer.addSizeWatcher(() => {
101
+ // this._checkbox.notifySizeChanged();
102
+ //});
103
+ }
104
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "height", {
105
+ get: function () {
106
+ return this._height;
107
+ },
108
+ set: function (value) {
109
+ this._height = value;
110
+ this.style.height = value;
111
+ this.notifyContainerResized();
112
+ },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "width", {
117
+ get: function () {
118
+ return this._width;
119
+ },
120
+ set: function (value) {
121
+ this._width = value;
122
+ this.style.width = value;
123
+ this.notifyContainerResized();
124
+ },
125
+ enumerable: false,
126
+ configurable: true
127
+ });
128
+ IgcDashboardTileComponent.prototype.notifyContainerResized = function () {
129
+ this.i.notifyContainerResized();
130
+ };
131
+ IgcDashboardTileComponent.prototype._onChildrenChanged = function () {
132
+ var children = [];
133
+ for (var i = 0; i < this.childNodes.length; i++) {
134
+ var child = this.childNodes[i];
135
+ if (child !== this._container.getNativeElement()) {
136
+ children.push(child);
137
+ }
138
+ }
139
+ this._portalManager.onChildrenChanged(children);
140
+ };
141
+ // supports angular themes or custom properties set in CSS
142
+ IgcDashboardTileComponent.prototype.updateStyle = function () {
143
+ this._styling(this, this);
144
+ };
145
+ IgcDashboardTileComponent.prototype.destroy = function () {
146
+ this._DashboardTile.destroy();
147
+ this._wrapper.destroy();
148
+ };
149
+ IgcDashboardTileComponent.prototype.createImplementation = function () {
150
+ return new DashboardTile();
151
+ };
152
+ IgcDashboardTileComponent.prototype.disconnectedCallback = function () {
153
+ this._disconnected = true;
154
+ if (this.i) {
155
+ this.i.onDetachedFromUI();
156
+ }
157
+ };
158
+ IgcDashboardTileComponent.prototype.connectedCallback = function () {
159
+ if (this._disconnected) {
160
+ this._disconnected = false;
161
+ if (this.i) {
162
+ this.i.onAttachedToUI();
163
+ }
164
+ return;
165
+ }
166
+ this.classList.add("ig-dashboard-tile");
167
+ this.classList.add("igc-dashboard-tile");
168
+ this.appendChild(this._container.getNativeElement());
169
+ this._attached = true;
170
+ this.style.display = "block";
171
+ //this.style.height = this._height;
172
+ //this.style.width = this._width;
173
+ this._flushQueuedAttributes();
174
+ // supports themes or custom properties set in CSS
175
+ this._styling(this, this);
176
+ this.afterContentInit();
177
+ };
178
+ IgcDashboardTileComponent.prototype.afterContentInit = function () {
179
+ //this.i.notifySizeChanged();
180
+ };
181
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "i", {
182
+ /**
183
+ * @hidden
184
+ */
185
+ get: function () {
186
+ return this._implementation;
187
+ } /**
188
+ * @hidden
189
+ */,
190
+ enumerable: false,
191
+ configurable: true
192
+ });
193
+ IgcDashboardTileComponent._createFromInternal = function (internal) {
194
+ if (!internal) {
195
+ return null;
196
+ }
197
+ if (!internal.$type) {
198
+ return null;
199
+ }
200
+ var name = internal.$type.name;
201
+ var externalName = "Igc" + name + "Component";
202
+ if (!TypeRegistrar.isRegistered(externalName)) {
203
+ return null;
204
+ }
205
+ return TypeRegistrar.create(externalName);
206
+ };
207
+ IgcDashboardTileComponent.prototype._enqueueSetAttribute = function (attrName, attrValue) {
208
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
209
+ };
210
+ IgcDashboardTileComponent.prototype._flushQueuedAttributes = function () {
211
+ this._settingAttributes = true;
212
+ for (var i = 0; i < this._queuedSetAttributes.length; i++) {
213
+ this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
214
+ }
215
+ this._settingAttributes = false;
216
+ this._queuedSetAttributes.length = 0;
217
+ };
218
+ IgcDashboardTileComponent.prototype._a = function (attrName, attrValue) {
219
+ if (this._updatingFromAttribute) {
220
+ return;
221
+ }
222
+ if (attrValue) {
223
+ attrValue = attrValue.toString();
224
+ }
225
+ this._settingAttributes = true;
226
+ attrName = toSpinal(attrName);
227
+ if (this._attached) {
228
+ this.setAttribute(attrName, attrValue);
229
+ }
230
+ else {
231
+ this._enqueueSetAttribute(attrName, attrValue);
232
+ }
233
+ this._settingAttributes = false;
234
+ };
235
+ Object.defineProperty(IgcDashboardTileComponent, "observedAttributes", {
236
+ get: function () {
237
+ if (IgcDashboardTileComponent._observedAttributesIgcDashboardTileComponent == null) {
238
+ var names = getAllPropertyNames(IgcDashboardTileComponent);
239
+ for (var i = 0; i < names.length; i++) {
240
+ names[i] = toSpinal(names[i]);
241
+ }
242
+ IgcDashboardTileComponent._observedAttributesIgcDashboardTileComponent = names;
243
+ }
244
+ return IgcDashboardTileComponent._observedAttributesIgcDashboardTileComponent;
245
+ },
246
+ enumerable: false,
247
+ configurable: true
248
+ });
249
+ IgcDashboardTileComponent.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
250
+ if (this._settingAttributes) {
251
+ return;
252
+ }
253
+ var setName = fromSpinal(name);
254
+ this._updatingFromAttribute = true;
255
+ this[setName] = newValue;
256
+ this._updatingFromAttribute = false;
257
+ };
258
+ IgcDashboardTileComponent.register = function () {
259
+ if (!IgcDashboardTileComponent._isElementRegistered) {
260
+ IgcDashboardTileComponent._isElementRegistered = true;
261
+ RegisterElementHelper.registerElement(IgcDashboardTileComponent.htmlTagName, IgcDashboardTileComponent);
262
+ }
263
+ };
264
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "actualCustomizations", {
265
+ get: function () {
266
+ if (!this._actualCustomizations) {
267
+ this._actualCustomizations = [];
268
+ }
269
+ return this._actualCustomizations;
270
+ },
271
+ enumerable: false,
272
+ configurable: true
273
+ });
274
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "contentCustomizations", {
275
+ get: function () {
276
+ if (!this._contentCustomizations) {
277
+ this._contentCustomizations = [];
278
+ }
279
+ return this._contentCustomizations;
280
+ },
281
+ enumerable: false,
282
+ configurable: true
283
+ });
284
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "customizations", {
285
+ /**
286
+ * Gets a collection where you can add customization that will be applied to the generated visualizations.
287
+ */
288
+ get: function () {
289
+ var _this = this;
290
+ if (this._customizations === null) {
291
+ var coll = new IgcDashboardTileCustomizationCollection();
292
+ var inner = coll._innerColl;
293
+ this._customizations = coll;
294
+ inner.addListener(function (sender, e) {
295
+ switch (e.action) {
296
+ case NotifyCollectionChangedAction.Add:
297
+ _this._customizationsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
298
+ break;
299
+ case NotifyCollectionChangedAction.Remove:
300
+ _this._customizationsAdapter.removeManualItemAt(e.oldStartingIndex);
301
+ break;
302
+ case NotifyCollectionChangedAction.Replace:
303
+ _this._customizationsAdapter.removeManualItemAt(e.oldStartingIndex);
304
+ _this._customizationsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
305
+ break;
306
+ case NotifyCollectionChangedAction.Reset:
307
+ _this._customizationsAdapter.clearManualItems();
308
+ break;
309
+ }
310
+ });
311
+ ;
312
+ }
313
+ return this._customizations;
314
+ },
315
+ enumerable: false,
316
+ configurable: true
317
+ });
318
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "tileTitle", {
319
+ /**
320
+ * Gets or sets text to display above the plot area.
321
+ */
322
+ get: function () {
323
+ return this.i.ge;
324
+ },
325
+ set: function (v) {
326
+ this.i.ge = v;
327
+ },
328
+ enumerable: false,
329
+ configurable: true
330
+ });
331
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialSortDescriptions", {
332
+ /**
333
+ * Gets the initial sorts that are applied to the chart.
334
+ */
335
+ get: function () {
336
+ var r = this.i.aw;
337
+ if (r == null) {
338
+ return null;
339
+ }
340
+ if (!r.externalObject) {
341
+ var e = new IgcDashboardTileSortDescriptionCollection();
342
+ if (r.$type) {
343
+ e._implementation = r;
344
+ }
345
+ else {
346
+ if (e.i.setNativeElement) {
347
+ e.i.setNativeElement(r);
348
+ }
349
+ }
350
+ r.externalObject = e;
351
+ }
352
+ return r.externalObject;
353
+ },
354
+ enumerable: false,
355
+ configurable: true
356
+ });
357
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialGroupSortDescriptions", {
358
+ /**
359
+ * Gets the initial sorts that are applied to the chart after groupings and summaries are applied.
360
+ */
361
+ get: function () {
362
+ var r = this.i.av;
363
+ if (r == null) {
364
+ return null;
365
+ }
366
+ if (!r.externalObject) {
367
+ var e = new IgcDashboardTileSortDescriptionCollection();
368
+ if (r.$type) {
369
+ e._implementation = r;
370
+ }
371
+ else {
372
+ if (e.i.setNativeElement) {
373
+ e.i.setNativeElement(r);
374
+ }
375
+ }
376
+ r.externalObject = e;
377
+ }
378
+ return r.externalObject;
379
+ },
380
+ enumerable: false,
381
+ configurable: true
382
+ });
383
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialGroupDescriptions", {
384
+ /**
385
+ * Gets the initial groupings that are applied to the chart.
386
+ */
387
+ get: function () {
388
+ var r = this.i.au;
389
+ if (r == null) {
390
+ return null;
391
+ }
392
+ if (!r.externalObject) {
393
+ var e = new IgcDashboardTileSortDescriptionCollection();
394
+ if (r.$type) {
395
+ e._implementation = r;
396
+ }
397
+ else {
398
+ if (e.i.setNativeElement) {
399
+ e.i.setNativeElement(r);
400
+ }
401
+ }
402
+ r.externalObject = e;
403
+ }
404
+ return r.externalObject;
405
+ },
406
+ enumerable: false,
407
+ configurable: true
408
+ });
409
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialFilterExpressions", {
410
+ /**
411
+ * Gets the initial filters that are applied to the chart.
412
+ */
413
+ get: function () {
414
+ var r = this.i.bj;
415
+ if (r == null) {
416
+ return null;
417
+ }
418
+ if (!r.externalObject) {
419
+ var e = new IgcFilterExpressionCollection();
420
+ if (r.$type) {
421
+ e._implementation = r;
422
+ }
423
+ else {
424
+ if (e.i.setNativeElement) {
425
+ e.i.setNativeElement(r);
426
+ }
427
+ }
428
+ r.externalObject = e;
429
+ }
430
+ return r.externalObject;
431
+ },
432
+ enumerable: false,
433
+ configurable: true
434
+ });
435
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialHighlightFilterExpressions", {
436
+ /**
437
+ * Gets the initial highlight filters that are applied to the chart.
438
+ */
439
+ get: function () {
440
+ var r = this.i.bk;
441
+ if (r == null) {
442
+ return null;
443
+ }
444
+ if (!r.externalObject) {
445
+ var e = new IgcFilterExpressionCollection();
446
+ if (r.$type) {
447
+ e._implementation = r;
448
+ }
449
+ else {
450
+ if (e.i.setNativeElement) {
451
+ e.i.setNativeElement(r);
452
+ }
453
+ }
454
+ r.externalObject = e;
455
+ }
456
+ return r.externalObject;
457
+ },
458
+ enumerable: false,
459
+ configurable: true
460
+ });
461
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialSummaryDescriptions", {
462
+ /**
463
+ * Gets the initial summaries that are applied to the chart.
464
+ */
465
+ get: function () {
466
+ var r = this.i.a0;
467
+ if (r == null) {
468
+ return null;
469
+ }
470
+ if (!r.externalObject) {
471
+ var e = new IgcDashboardTileSummaryDescriptionCollection();
472
+ if (r.$type) {
473
+ e._implementation = r;
474
+ }
475
+ else {
476
+ if (e.i.setNativeElement) {
477
+ e.i.setNativeElement(r);
478
+ }
479
+ }
480
+ r.externalObject = e;
481
+ }
482
+ return r.externalObject;
483
+ },
484
+ enumerable: false,
485
+ configurable: true
486
+ });
487
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialSorts", {
488
+ /**
489
+ * Gets or sets the sorts to apply to the chart. This property will become ignored if sorts are changed outside of this property.
490
+ */
491
+ get: function () {
492
+ return this.i.f2;
493
+ },
494
+ set: function (v) {
495
+ this.i.f2 = v;
496
+ },
497
+ enumerable: false,
498
+ configurable: true
499
+ });
500
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "groupSorts", {
501
+ /**
502
+ * Gets or sets the sorts to apply after grouping has been applied.
503
+ */
504
+ get: function () {
505
+ return this.i.fr;
506
+ },
507
+ set: function (v) {
508
+ this.i.fr = v;
509
+ },
510
+ enumerable: false,
511
+ configurable: true
512
+ });
513
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialGroups", {
514
+ /**
515
+ * Gets or sets the groupings to apply to the chart. This property will become ignored if sorts are changed outside of this property.
516
+ */
517
+ get: function () {
518
+ return this.i.fy;
519
+ },
520
+ set: function (v) {
521
+ this.i.fy = v;
522
+ },
523
+ enumerable: false,
524
+ configurable: true
525
+ });
526
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialFilter", {
527
+ /**
528
+ * Gets or sets the filter to apply to the chart. This property will become ignored if the filter is changed outside of this property.
529
+ */
530
+ get: function () {
531
+ return this.i.fw;
532
+ },
533
+ set: function (v) {
534
+ this.i.fw = v;
535
+ },
536
+ enumerable: false,
537
+ configurable: true
538
+ });
539
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialHighlightFilter", {
540
+ /**
541
+ * Gets or sets the filter to apply to the chart. This property will become ignored if the filter is changed outside of this property.
542
+ */
543
+ get: function () {
544
+ return this.i.f0;
545
+ },
546
+ set: function (v) {
547
+ this.i.f0 = v;
548
+ },
549
+ enumerable: false,
550
+ configurable: true
551
+ });
552
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "initialSummaries", {
553
+ /**
554
+ * Gets or sets the summaries to apply to the chart. This property will become ignored if sorts are changed outside of this property.
555
+ */
556
+ get: function () {
557
+ return this.i.f4;
558
+ },
559
+ set: function (v) {
560
+ this.i.f4 = v;
561
+ },
562
+ enumerable: false,
563
+ configurable: true
564
+ });
565
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "sortDescriptions", {
566
+ /**
567
+ * Gets the current sort that is applied to the grid. Collection can be updated to modify the sort for the grid. Once sort descriptions are in this collection, the grid will no longer listen for changes on their properties.
568
+ */
569
+ get: function () {
570
+ var r = this.i.ax;
571
+ if (r == null) {
572
+ return null;
573
+ }
574
+ if (!r.externalObject) {
575
+ var e = new IgcDashboardTileSortDescriptionCollection();
576
+ if (r.$type) {
577
+ e._implementation = r;
578
+ }
579
+ else {
580
+ if (e.i.setNativeElement) {
581
+ e.i.setNativeElement(r);
582
+ }
583
+ }
584
+ r.externalObject = e;
585
+ }
586
+ return r.externalObject;
587
+ },
588
+ enumerable: false,
589
+ configurable: true
590
+ });
591
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "groupSortDescriptions", {
592
+ get: function () {
593
+ var r = this.i.at;
594
+ if (r == null) {
595
+ return null;
596
+ }
597
+ if (!r.externalObject) {
598
+ var e = new IgcDashboardTileSortDescriptionCollection();
599
+ if (r.$type) {
600
+ e._implementation = r;
601
+ }
602
+ else {
603
+ if (e.i.setNativeElement) {
604
+ e.i.setNativeElement(r);
605
+ }
606
+ }
607
+ r.externalObject = e;
608
+ }
609
+ return r.externalObject;
610
+ },
611
+ enumerable: false,
612
+ configurable: true
613
+ });
614
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "groupDescriptions", {
615
+ /**
616
+ * Gets the current grouping that is applied to the grid. Collection can be updated to modify the grouping for the grid. Once grouping descriptions are in this collection, the grid will no longer listen for changes on their properties.
617
+ */
618
+ get: function () {
619
+ var r = this.i.as;
620
+ if (r == null) {
621
+ return null;
622
+ }
623
+ if (!r.externalObject) {
624
+ var e = new IgcDashboardTileSortDescriptionCollection();
625
+ if (r.$type) {
626
+ e._implementation = r;
627
+ }
628
+ else {
629
+ if (e.i.setNativeElement) {
630
+ e.i.setNativeElement(r);
631
+ }
632
+ }
633
+ r.externalObject = e;
634
+ }
635
+ return r.externalObject;
636
+ },
637
+ enumerable: false,
638
+ configurable: true
639
+ });
640
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "filterExpressions", {
641
+ /**
642
+ * Gets the current filter that is applied to the chart. Collection can be updated to modify the filter for the chart. Once filter expressions are in this collection, the chart will no longer listen for changes on their properties.
643
+ */
644
+ get: function () {
645
+ var r = this.i.bh;
646
+ if (r == null) {
647
+ return null;
648
+ }
649
+ if (!r.externalObject) {
650
+ var e = new IgcFilterExpressionCollection();
651
+ if (r.$type) {
652
+ e._implementation = r;
653
+ }
654
+ else {
655
+ if (e.i.setNativeElement) {
656
+ e.i.setNativeElement(r);
657
+ }
658
+ }
659
+ r.externalObject = e;
660
+ }
661
+ return r.externalObject;
662
+ },
663
+ enumerable: false,
664
+ configurable: true
665
+ });
666
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "highlightFilterExpressions", {
667
+ /**
668
+ * Gets the current highlight filter that is applied to the chart. Collection can be updated to modify the highlight filter for the chart. Once filter expressions are in this collection, the chart will no longer listen for changes on their properties.
669
+ */
670
+ get: function () {
671
+ var r = this.i.bi;
672
+ if (r == null) {
673
+ return null;
674
+ }
675
+ if (!r.externalObject) {
676
+ var e = new IgcFilterExpressionCollection();
677
+ if (r.$type) {
678
+ e._implementation = r;
679
+ }
680
+ else {
681
+ if (e.i.setNativeElement) {
682
+ e.i.setNativeElement(r);
683
+ }
684
+ }
685
+ r.externalObject = e;
686
+ }
687
+ return r.externalObject;
688
+ },
689
+ enumerable: false,
690
+ configurable: true
691
+ });
692
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "summaryDescriptions", {
693
+ /**
694
+ * Gets the current summaries that are applied to the grid.
695
+ */
696
+ get: function () {
697
+ var r = this.i.a1;
698
+ if (r == null) {
699
+ return null;
700
+ }
701
+ if (!r.externalObject) {
702
+ var e = new IgcDashboardTileSummaryDescriptionCollection();
703
+ if (r.$type) {
704
+ e._implementation = r;
705
+ }
706
+ else {
707
+ if (e.i.setNativeElement) {
708
+ e.i.setNativeElement(r);
709
+ }
710
+ }
711
+ r.externalObject = e;
712
+ }
713
+ return r.externalObject;
714
+ },
715
+ enumerable: false,
716
+ configurable: true
717
+ });
718
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "dataSource", {
719
+ /**
720
+ * Gets or sets a collection of data items used to generate the dashboard tile.
721
+ * The ItemsSource of this dashboard tile can be a list of objects containing one or more numeric properties.
722
+ * Additionally, if the objects in the list implement an enumerable interface,
723
+ * the dashboard tile will attempt to delve into the sub-collections when reading through the data source.
724
+ * Data binding can be further configured by attributing the data item classes
725
+ * with the data intent feature.
726
+ */
727
+ get: function () {
728
+ return this.i.itemsSource;
729
+ },
730
+ set: function (v) {
731
+ this.i.itemsSource = v;
732
+ },
733
+ enumerable: false,
734
+ configurable: true
735
+ });
736
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "highlightedDataSource", {
737
+ /**
738
+ * Gets or sets a collection of data items used to generate the dashboard tile.
739
+ * The HighlightedItemsSource of this dashboard tile can be a list of objects containing one or more numeric properties.
740
+ * Additionally, if the objects in the list implement an enumerable interface,
741
+ * the dashboard tile will attempt to delve into the sub-collections when reading through the data source.
742
+ * Data binding can be further configured by attributing the data item classes
743
+ * with the data intent feature.
744
+ */
745
+ get: function () {
746
+ return this.i.highlightedItemsSource;
747
+ },
748
+ set: function (v) {
749
+ this.i.highlightedItemsSource = v;
750
+ },
751
+ enumerable: false,
752
+ configurable: true
753
+ });
754
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "shouldDisplayMockData", {
755
+ /**
756
+ * Gets or sets whether the dashboard tile should display mock data when the data source has not been provided, if supported for this type of chart.
757
+ */
758
+ get: function () {
759
+ return this.i.de;
760
+ },
761
+ set: function (v) {
762
+ this.i.de = ensureBool(v);
763
+ this._a("shouldDisplayMockData", this.i.de);
764
+ },
765
+ enumerable: false,
766
+ configurable: true
767
+ });
768
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "shouldAvoidAxisAnnotationCollisions", {
769
+ /**
770
+ * Gets or sets whether annotations for the final value of each series is displayed on the axis.
771
+ */
772
+ get: function () {
773
+ return this.i.shouldAvoidAxisAnnotationCollisions;
774
+ },
775
+ set: function (v) {
776
+ this.i.shouldAvoidAxisAnnotationCollisions = ensureBool(v);
777
+ this._a("shouldAvoidAxisAnnotationCollisions", this.i.shouldAvoidAxisAnnotationCollisions);
778
+ },
779
+ enumerable: false,
780
+ configurable: true
781
+ });
782
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "trendLineType", {
783
+ /**
784
+ * Gets or sets the formula used for calculating trend lines in this chart.
785
+ * This property applies only to these chart types: point, line, spline, and bubble
786
+ */
787
+ get: function () {
788
+ return this.i.trendLineType;
789
+ },
790
+ set: function (v) {
791
+ this.i.trendLineType = ensureEnum(TrendLineType_$type, v);
792
+ this._a("trendLineType", enumToString(TrendLineType_$type, this.i.trendLineType));
793
+ },
794
+ enumerable: false,
795
+ configurable: true
796
+ });
797
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "shouldUseSkeletonStyleForMockData", {
798
+ /**
799
+ * Gets or sets whether the dashboard tile should use a faded skeleton style for mock data.
800
+ */
801
+ get: function () {
802
+ return this.i.df;
803
+ },
804
+ set: function (v) {
805
+ this.i.df = ensureBool(v);
806
+ this._a("shouldUseSkeletonStyleForMockData", this.i.df);
807
+ },
808
+ enumerable: false,
809
+ configurable: true
810
+ });
811
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "highlightedValuesDisplayMode", {
812
+ /**
813
+ * Gets or sets whether and how to display highlighted values for the series. Note, this is distinct from the highlighting feature that indicates what is closest or under the mouse.
814
+ * This property applies to Category Chart and Financial Chart controls.
815
+ */
816
+ get: function () {
817
+ return this.i.af;
818
+ },
819
+ set: function (v) {
820
+ this.i.af = ensureEnum(SeriesHighlightedValuesDisplayMode_$type, v);
821
+ this._a("highlightedValuesDisplayMode", enumToString(SeriesHighlightedValuesDisplayMode_$type, this.i.af));
822
+ },
823
+ enumerable: false,
824
+ configurable: true
825
+ });
826
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "includedProperties", {
827
+ /**
828
+ * Gets or sets a set of property paths that should be included for consideration by the category chart, leaving the remainder excluded. If null, all properties will be considered.
829
+ */
830
+ get: function () {
831
+ return this.i.includedProperties;
832
+ },
833
+ set: function (v) {
834
+ if (v && !Array.isArray(v) && typeof (v) == "string") {
835
+ var re = /\s*(?:,|\s|$)\s*/gm;
836
+ v = v.split(re);
837
+ }
838
+ this.i.includedProperties = v;
839
+ },
840
+ enumerable: false,
841
+ configurable: true
842
+ });
843
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "validVisualizationTypes", {
844
+ /**
845
+ * Gets the current set of valid visualization types for the data.
846
+ */
847
+ get: function () {
848
+ return this.i.m;
849
+ },
850
+ set: function (v) {
851
+ if (v && !Array.isArray(v) && typeof (v) == "string") {
852
+ var re = /\s*(?:,|\s|$)\s*/gm;
853
+ v = v.split(re);
854
+ }
855
+ this.i.m = v;
856
+ },
857
+ enumerable: false,
858
+ configurable: true
859
+ });
860
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "excludedProperties", {
861
+ /**
862
+ * Gets or sets a set of property paths that should be excluded from consideration by the category chart.
863
+ */
864
+ get: function () {
865
+ return this.i.excludedProperties;
866
+ },
867
+ set: function (v) {
868
+ if (v && !Array.isArray(v) && typeof (v) == "string") {
869
+ var re = /\s*(?:,|\s|$)\s*/gm;
870
+ v = v.split(re);
871
+ }
872
+ this.i.excludedProperties = v;
873
+ },
874
+ enumerable: false,
875
+ configurable: true
876
+ });
877
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "brushes", {
878
+ /**
879
+ * Gets or sets the palette of brushes to use for coloring the dashboard tile.
880
+ * The value provided should be an array of CSS color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection
881
+ */
882
+ get: function () {
883
+ return fromBrushCollection(this.i.v);
884
+ },
885
+ set: function (v) {
886
+ this.i.v = toBrushCollection(v);
887
+ this._a("brushes", brushCollectionToString(this.i.v));
888
+ },
889
+ enumerable: false,
890
+ configurable: true
891
+ });
892
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "outlines", {
893
+ /**
894
+ * Gets or sets the palette of brushes to use for outlines on the dashboard tile.
895
+ * The value provided should be an array of CSS color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection
896
+ */
897
+ get: function () {
898
+ return fromBrushCollection(this.i.w);
899
+ },
900
+ set: function (v) {
901
+ this.i.w = toBrushCollection(v);
902
+ this._a("outlines", brushCollectionToString(this.i.w));
903
+ },
904
+ enumerable: false,
905
+ configurable: true
906
+ });
907
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "selectedSeriesItems", {
908
+ /**
909
+ * Gets the currently selected data items. Adding or removing data items from this collection will
910
+ * select or deselect the visuals associated with those items.
911
+ */
912
+ get: function () {
913
+ if (this._selectedSeriesItems === null) {
914
+ var coll = new IgcChartSelectedItemCollection();
915
+ var innerColl = this.i.selectedSeriesItems;
916
+ if (!innerColl) {
917
+ innerColl = new ChartSelectedItemCollection_internal();
918
+ }
919
+ this._selectedSeriesItems = coll._fromInner(innerColl);
920
+ this.i.selectedSeriesItems = innerColl;
921
+ }
922
+ return this._selectedSeriesItems;
923
+ },
924
+ set: function (v) {
925
+ if (this._selectedSeriesItems !== null) {
926
+ this._selectedSeriesItems._setSyncTarget(null);
927
+ this._selectedSeriesItems = null;
928
+ }
929
+ var coll = new IgcChartSelectedItemCollection();
930
+ this._selectedSeriesItems = coll._fromOuter(v);
931
+ var syncColl = new SyncableObservableCollection$1(ChartSelection.$type);
932
+ var innerColl = this.i.selectedSeriesItems;
933
+ if (!innerColl) {
934
+ innerColl = new ChartSelectedItemCollection_internal();
935
+ }
936
+ syncColl._inner = innerColl;
937
+ syncColl.clear();
938
+ this._selectedSeriesItems._setSyncTarget(syncColl);
939
+ this.i.selectedSeriesItems = innerColl;
940
+ },
941
+ enumerable: false,
942
+ configurable: true
943
+ });
944
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "actualBrushes", {
945
+ /**
946
+ * Gets the actual palette of brushes to use for coloring the chart series.
947
+ */
948
+ get: function () {
949
+ return fromBrushCollection(this.i.t);
950
+ },
951
+ set: function (v) {
952
+ this.i.t = toBrushCollection(v);
953
+ this._a("actualBrushes", brushCollectionToString(this.i.t));
954
+ },
955
+ enumerable: false,
956
+ configurable: true
957
+ });
958
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "actualOutlines", {
959
+ /**
960
+ * Gets the actual palette of brushes to use for outlines on the chart series.
961
+ */
962
+ get: function () {
963
+ return fromBrushCollection(this.i.u);
964
+ },
965
+ set: function (v) {
966
+ this.i.u = toBrushCollection(v);
967
+ this._a("actualOutlines", brushCollectionToString(this.i.u));
968
+ },
969
+ enumerable: false,
970
+ configurable: true
971
+ });
972
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "categoryAxisMajorStroke", {
973
+ /**
974
+ * Gets the brush to use for the Category axis major strokes, if applicable.
975
+ */
976
+ get: function () {
977
+ return brushToString(this.i.h9);
978
+ },
979
+ set: function (v) {
980
+ this.i.h9 = stringToBrush(v);
981
+ this._a("categoryAxisMajorStroke", brushToString(this.i.h9));
982
+ },
983
+ enumerable: false,
984
+ configurable: true
985
+ });
986
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "valueLines", {
987
+ /**
988
+ * Gets or sets what value lines to use in the chart.
989
+ */
990
+ get: function () {
991
+ if (this._valueLines === null) {
992
+ var coll = new IgcValueModeCollection();
993
+ var innerColl = this.i.valueLines;
994
+ if (!innerColl) {
995
+ innerColl = new ValueModeCollection_internal();
996
+ }
997
+ this._valueLines = coll._fromInner(innerColl);
998
+ this.i.valueLines = innerColl;
999
+ }
1000
+ return this._valueLines;
1001
+ },
1002
+ set: function (v) {
1003
+ if (this._valueLines !== null) {
1004
+ this._valueLines._setSyncTarget(null);
1005
+ this._valueLines = null;
1006
+ }
1007
+ var coll = new IgcValueModeCollection();
1008
+ this._valueLines = coll._fromOuter(v);
1009
+ var syncColl = new SyncableObservableCollection$1(ValueLayerValueMode_$type);
1010
+ var innerColl = this.i.valueLines;
1011
+ if (!innerColl) {
1012
+ innerColl = new ValueModeCollection_internal();
1013
+ }
1014
+ syncColl._inner = innerColl;
1015
+ syncColl.clear();
1016
+ this._valueLines._setSyncTarget(syncColl);
1017
+ this.i.valueLines = innerColl;
1018
+ },
1019
+ enumerable: false,
1020
+ configurable: true
1021
+ });
1022
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "valueLinesBrushes", {
1023
+ /**
1024
+ * Gets or sets the palette of brushes to use for coloring the value lines present in the ValueLines property.
1025
+ * The value provided should be an array of CSS color strings or JavaScript objects defining gradients. Optionally the first element can be a string reading "RGB" or "HSV" to specify the interpolation mode of the collection
1026
+ */
1027
+ get: function () {
1028
+ return fromBrushCollection(this.i.valueLinesBrushes);
1029
+ },
1030
+ set: function (v) {
1031
+ this.i.valueLinesBrushes = toBrushCollection(v);
1032
+ this._a("valueLinesBrushes", brushCollectionToString(this.i.valueLinesBrushes));
1033
+ },
1034
+ enumerable: false,
1035
+ configurable: true
1036
+ });
1037
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "autoCalloutsVisible", {
1038
+ /**
1039
+ * Gets or sets if the auto value callouts should be displayed.
1040
+ */
1041
+ get: function () {
1042
+ return this.i.autoCalloutsVisible;
1043
+ },
1044
+ set: function (v) {
1045
+ this.i.autoCalloutsVisible = ensureBool(v);
1046
+ this._a("autoCalloutsVisible", this.i.autoCalloutsVisible);
1047
+ },
1048
+ enumerable: false,
1049
+ configurable: true
1050
+ });
1051
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "crosshairsAnnotationEnabled", {
1052
+ /**
1053
+ * Gets or sets whether annotations are shown along the axis for crosshair values
1054
+ */
1055
+ get: function () {
1056
+ return this.i.crosshairsAnnotationEnabled;
1057
+ },
1058
+ set: function (v) {
1059
+ this.i.crosshairsAnnotationEnabled = ensureBool(v);
1060
+ this._a("crosshairsAnnotationEnabled", this.i.crosshairsAnnotationEnabled);
1061
+ },
1062
+ enumerable: false,
1063
+ configurable: true
1064
+ });
1065
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "finalValueAnnotationsVisible", {
1066
+ /**
1067
+ * Gets or sets whether annotations for the final value of each series is displayed on the axis.
1068
+ */
1069
+ get: function () {
1070
+ return this.i.finalValueAnnotationsVisible;
1071
+ },
1072
+ set: function (v) {
1073
+ this.i.finalValueAnnotationsVisible = ensureBool(v);
1074
+ this._a("finalValueAnnotationsVisible", this.i.finalValueAnnotationsVisible);
1075
+ },
1076
+ enumerable: false,
1077
+ configurable: true
1078
+ });
1079
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "crosshairsDisplayMode", {
1080
+ /**
1081
+ * Gets or sets the crosshairs to be displayed.
1082
+ */
1083
+ get: function () {
1084
+ return this.i.crosshairsDisplayMode;
1085
+ },
1086
+ set: function (v) {
1087
+ this.i.crosshairsDisplayMode = ensureEnum(CrosshairsDisplayMode_$type, v);
1088
+ this._a("crosshairsDisplayMode", enumToString(CrosshairsDisplayMode_$type, this.i.crosshairsDisplayMode));
1089
+ },
1090
+ enumerable: false,
1091
+ configurable: true
1092
+ });
1093
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "visualizationType", {
1094
+ /**
1095
+ * Gets or sets the crosshairs to be displayed.
1096
+ */
1097
+ get: function () {
1098
+ return this.i.a6;
1099
+ },
1100
+ set: function (v) {
1101
+ this.i.a6 = ensureEnum(DashboardTileVisualizationType_$type, v);
1102
+ this._a("visualizationType", enumToString(DashboardTileVisualizationType_$type, this.i.a6));
1103
+ },
1104
+ enumerable: false,
1105
+ configurable: true
1106
+ });
1107
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "validVisualizationTypePriorityThreshold", {
1108
+ /**
1109
+ * Gets or sets the crosshairs to be displayed.
1110
+ */
1111
+ get: function () {
1112
+ return this.i.d7;
1113
+ },
1114
+ set: function (v) {
1115
+ this.i.d7 = +v;
1116
+ this._a("validVisualizationTypePriorityThreshold", this.i.d7);
1117
+ },
1118
+ enumerable: false,
1119
+ configurable: true
1120
+ });
1121
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "baseTheme", {
1122
+ /**
1123
+ * Gets or sets the base built in theme to use for the checkbox.
1124
+ */
1125
+ get: function () {
1126
+ return this.i.bt;
1127
+ },
1128
+ set: function (v) {
1129
+ this.i.bt = ensureEnum(BaseControlTheme_$type, v);
1130
+ this._a("baseTheme", enumToString(BaseControlTheme_$type, this.i.bt));
1131
+ },
1132
+ enumerable: false,
1133
+ configurable: true
1134
+ });
1135
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "density", {
1136
+ /**
1137
+ * Gets or sets the display density to use for the toolbar.
1138
+ */
1139
+ get: function () {
1140
+ return this.i.bv;
1141
+ },
1142
+ set: function (v) {
1143
+ this.i.bv = ensureEnum(ControlDisplayDensity_$type, v);
1144
+ this._a("density", enumToString(ControlDisplayDensity_$type, this.i.bv));
1145
+ },
1146
+ enumerable: false,
1147
+ configurable: true
1148
+ });
1149
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "backgroundColor", {
1150
+ /**
1151
+ * Gets or sets the color to use for the background of the component.
1152
+ */
1153
+ get: function () {
1154
+ return brushToString(this.i.h8);
1155
+ },
1156
+ set: function (v) {
1157
+ this.i.h8 = stringToBrush(v);
1158
+ this._a("backgroundColor", brushToString(this.i.h8));
1159
+ },
1160
+ enumerable: false,
1161
+ configurable: true
1162
+ });
1163
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "isVisTypeStacked", {
1164
+ get: function () {
1165
+ return this.i.c9;
1166
+ },
1167
+ enumerable: false,
1168
+ configurable: true
1169
+ });
1170
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "isVisTypeRadial", {
1171
+ get: function () {
1172
+ return this.i.c8;
1173
+ },
1174
+ enumerable: false,
1175
+ configurable: true
1176
+ });
1177
+ IgcDashboardTileComponent.prototype.findByName = function (name) {
1178
+ if (this.findEphemera) {
1179
+ if (name && name.indexOf("@@e:") == 0) {
1180
+ return this.findEphemera(name);
1181
+ }
1182
+ }
1183
+ if (this.customizations != null && this.customizations.findByName && this.customizations.findByName(name)) {
1184
+ return this.customizations.findByName(name);
1185
+ }
1186
+ if (this.initialSortDescriptions != null && this.initialSortDescriptions.findByName && this.initialSortDescriptions.findByName(name)) {
1187
+ return this.initialSortDescriptions.findByName(name);
1188
+ }
1189
+ if (this.initialGroupSortDescriptions != null && this.initialGroupSortDescriptions.findByName && this.initialGroupSortDescriptions.findByName(name)) {
1190
+ return this.initialGroupSortDescriptions.findByName(name);
1191
+ }
1192
+ if (this.initialGroupDescriptions != null && this.initialGroupDescriptions.findByName && this.initialGroupDescriptions.findByName(name)) {
1193
+ return this.initialGroupDescriptions.findByName(name);
1194
+ }
1195
+ if (this.initialFilterExpressions != null && this.initialFilterExpressions.findByName && this.initialFilterExpressions.findByName(name)) {
1196
+ return this.initialFilterExpressions.findByName(name);
1197
+ }
1198
+ if (this.initialHighlightFilterExpressions != null && this.initialHighlightFilterExpressions.findByName && this.initialHighlightFilterExpressions.findByName(name)) {
1199
+ return this.initialHighlightFilterExpressions.findByName(name);
1200
+ }
1201
+ if (this.initialSummaryDescriptions != null && this.initialSummaryDescriptions.findByName && this.initialSummaryDescriptions.findByName(name)) {
1202
+ return this.initialSummaryDescriptions.findByName(name);
1203
+ }
1204
+ if (this.sortDescriptions != null && this.sortDescriptions.findByName && this.sortDescriptions.findByName(name)) {
1205
+ return this.sortDescriptions.findByName(name);
1206
+ }
1207
+ if (this.groupSortDescriptions != null && this.groupSortDescriptions.findByName && this.groupSortDescriptions.findByName(name)) {
1208
+ return this.groupSortDescriptions.findByName(name);
1209
+ }
1210
+ if (this.groupDescriptions != null && this.groupDescriptions.findByName && this.groupDescriptions.findByName(name)) {
1211
+ return this.groupDescriptions.findByName(name);
1212
+ }
1213
+ if (this.filterExpressions != null && this.filterExpressions.findByName && this.filterExpressions.findByName(name)) {
1214
+ return this.filterExpressions.findByName(name);
1215
+ }
1216
+ if (this.highlightFilterExpressions != null && this.highlightFilterExpressions.findByName && this.highlightFilterExpressions.findByName(name)) {
1217
+ return this.highlightFilterExpressions.findByName(name);
1218
+ }
1219
+ if (this.summaryDescriptions != null && this.summaryDescriptions.findByName && this.summaryDescriptions.findByName(name)) {
1220
+ return this.summaryDescriptions.findByName(name);
1221
+ }
1222
+ if (this.selectedSeriesItems != null && this.selectedSeriesItems.findByName && this.selectedSeriesItems.findByName(name)) {
1223
+ return this.selectedSeriesItems.findByName(name);
1224
+ }
1225
+ if (this.valueLines != null && this.valueLines.findByName && this.valueLines.findByName(name)) {
1226
+ return this.valueLines.findByName(name);
1227
+ }
1228
+ return null;
1229
+ };
1230
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "hasUserValues", {
1231
+ get: function () {
1232
+ return this._hasUserValues;
1233
+ },
1234
+ enumerable: false,
1235
+ configurable: true
1236
+ });
1237
+ IgcDashboardTileComponent.prototype.__m = function (propertyName) {
1238
+ if (!this._inStyling) {
1239
+ this._hasUserValues.add(propertyName);
1240
+ }
1241
+ };
1242
+ IgcDashboardTileComponent.prototype._styling = function (container, component, parent) {
1243
+ if (this._inStyling) {
1244
+ return;
1245
+ }
1246
+ this._inStyling = true;
1247
+ this._stylingContainer = container;
1248
+ this._stylingParent = component;
1249
+ var genericPrefix = "";
1250
+ var typeName = this.i.$type.name;
1251
+ if (typeName.indexOf("Xam") === 0) {
1252
+ typeName = typeName.substring(3);
1253
+ }
1254
+ genericPrefix = toSpinal("DashboardTileComponent");
1255
+ var additionalPrefixes = [];
1256
+ var prefix = toSpinal(typeName);
1257
+ additionalPrefixes.push(prefix + "-");
1258
+ var b = this.i.$type.baseType;
1259
+ while (b && b.name != "Object" &&
1260
+ b.name != "Base" &&
1261
+ b.name != "Control" &&
1262
+ b.Name != "DependencyObject" &&
1263
+ b.Name != "FrameworkElement") {
1264
+ typeName = b.name;
1265
+ if (typeName.indexOf("Xam") === 0) {
1266
+ typeName = typeName.substring(3);
1267
+ }
1268
+ var basePrefix = toSpinal(typeName);
1269
+ additionalPrefixes.push(basePrefix + "-");
1270
+ b = b.baseType;
1271
+ }
1272
+ if (parent) {
1273
+ var parentTypeName = parent.i.$type.name;
1274
+ if (parentTypeName.indexOf("Xam") === 0) {
1275
+ parentTypeName = parentTypeName.substring(3);
1276
+ }
1277
+ var parentPrefix = toSpinal(parentTypeName);
1278
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
1279
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
1280
+ }
1281
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
1282
+ if (this._otherStyling) {
1283
+ this._otherStyling(container, component, parent);
1284
+ }
1285
+ this._inStyling = false;
1286
+ };
1287
+ IgcDashboardTileComponent.prototype.updateSettingsValue = function (key, value) {
1288
+ this.i.h2(key, value);
1289
+ };
1290
+ IgcDashboardTileComponent.prototype.getSettingsValue = function (key) {
1291
+ var iv = this.i.er(key);
1292
+ return (iv);
1293
+ };
1294
+ IgcDashboardTileComponent.prototype.hasModifiedSettings = function () {
1295
+ var iv = this.i.ct();
1296
+ return (iv);
1297
+ };
1298
+ IgcDashboardTileComponent.prototype.clearSettings = function () {
1299
+ this.i.gr();
1300
+ };
1301
+ IgcDashboardTileComponent.prototype.removeSettingsValue = function (key) {
1302
+ this.i.hr(key);
1303
+ };
1304
+ IgcDashboardTileComponent.prototype.zoomIn = function (percentage) {
1305
+ this.i.zoomIn(percentage);
1306
+ };
1307
+ /**
1308
+ * Performs zoom out action on the chart by specified percentage of current window rect
1309
+
1310
+ */
1311
+ IgcDashboardTileComponent.prototype.zoomOut = function (percentage) {
1312
+ this.i.zoomOut(percentage);
1313
+ };
1314
+ /**
1315
+ * Resets the zoom level to default.
1316
+
1317
+ */
1318
+ IgcDashboardTileComponent.prototype.resetZoom = function () {
1319
+ this.i.resetZoom();
1320
+ };
1321
+ IgcDashboardTileComponent.prototype.onUIReady = function () {
1322
+ this.i.hk();
1323
+ };
1324
+ IgcDashboardTileComponent.prototype.getDesiredToolbarActions = function () {
1325
+ var iv = this.i.getDesiredToolbarActions();
1326
+ return (iv);
1327
+ };
1328
+ IgcDashboardTileComponent.prototype.addCommandAvailabilityListener = function (listener) {
1329
+ this.i.addCommandAvailabilityListener(listener);
1330
+ };
1331
+ IgcDashboardTileComponent.prototype.removeCommandAvailabilityListener = function (listener) {
1332
+ this.i.removeCommandAvailabilityListener(listener);
1333
+ };
1334
+ IgcDashboardTileComponent.prototype.addCommandStateChangedListener = function (listener) {
1335
+ this.i.addCommandStateChangedListener(listener);
1336
+ };
1337
+ IgcDashboardTileComponent.prototype.removeCommandStateChangedListener = function (listener) {
1338
+ this.i.removeCommandStateChangedListener(listener);
1339
+ };
1340
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "changingContent", {
1341
+ get: function () {
1342
+ return this._changingContent;
1343
+ },
1344
+ set: function (ev) {
1345
+ var _this = this;
1346
+ if (this._changingContent_wrapped !== null) {
1347
+ this.i.changingContent = delegateRemove(this.i.changingContent, this._changingContent_wrapped);
1348
+ this._changingContent_wrapped = null;
1349
+ this._changingContent = null;
1350
+ }
1351
+ this._changingContent = ev;
1352
+ this._changingContent_wrapped = function (o, e) {
1353
+ var outerArgs = new IgcDashboardTileChangingContentEventArgs();
1354
+ outerArgs._provideImplementation(e);
1355
+ if (_this.beforeChangingContent) {
1356
+ _this.beforeChangingContent(_this, outerArgs);
1357
+ }
1358
+ if (_this._changingContent) {
1359
+ _this._changingContent(_this, outerArgs);
1360
+ }
1361
+ };
1362
+ this.i.changingContent = delegateCombine(this.i.changingContent, this._changingContent_wrapped);
1363
+ ;
1364
+ },
1365
+ enumerable: false,
1366
+ configurable: true
1367
+ });
1368
+ Object.defineProperty(IgcDashboardTileComponent.prototype, "filterStringErrorsParsing", {
1369
+ get: function () {
1370
+ return this._filterStringErrorsParsing;
1371
+ },
1372
+ set: function (ev) {
1373
+ var _this = this;
1374
+ if (this._filterStringErrorsParsing_wrapped !== null) {
1375
+ this.i.filterStringErrorsParsing = delegateRemove(this.i.filterStringErrorsParsing, this._filterStringErrorsParsing_wrapped);
1376
+ this._filterStringErrorsParsing_wrapped = null;
1377
+ this._filterStringErrorsParsing = null;
1378
+ }
1379
+ this._filterStringErrorsParsing = ev;
1380
+ this._filterStringErrorsParsing_wrapped = function (o, e) {
1381
+ var outerArgs = new IgcDashboardTileFilterStringErrorsParsingEventArgs();
1382
+ outerArgs._provideImplementation(e);
1383
+ if (_this.beforeFilterStringErrorsParsing) {
1384
+ _this.beforeFilterStringErrorsParsing(_this, outerArgs);
1385
+ }
1386
+ if (_this._filterStringErrorsParsing) {
1387
+ _this._filterStringErrorsParsing(_this, outerArgs);
1388
+ }
1389
+ };
1390
+ this.i.filterStringErrorsParsing = delegateCombine(this.i.filterStringErrorsParsing, this._filterStringErrorsParsing_wrapped);
1391
+ ;
1392
+ },
1393
+ enumerable: false,
1394
+ configurable: true
1395
+ });
1396
+ IgcDashboardTileComponent._observedAttributesIgcDashboardTileComponent = null;
1397
+ IgcDashboardTileComponent.htmlTagName = "igc-dashboard-tile";
1398
+ IgcDashboardTileComponent._isElementRegistered = false;
1399
+ return IgcDashboardTileComponent;
1400
+ }(IgcHTMLElement));
1401
+ export { IgcDashboardTileComponent };