igniteui-webcomponents-layouts 1.4.2 → 3.2.2

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 (122) hide show
  1. package/bundles/igniteui-webcomponents-layouts.umd.js +4546 -141
  2. package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
  3. package/esm2015/lib/ExpansionPanelView_combined.js +23 -23
  4. package/esm2015/lib/HorizontalPropertyEditorPanelDataSource.js +24 -0
  5. package/esm2015/lib/PropertyEditorDataSource.js +7 -0
  6. package/esm2015/lib/PropertyEditorDescriptionObject.js +7 -0
  7. package/esm2015/lib/PropertyEditorDescriptionObjectCollection.js +7 -0
  8. package/esm2015/lib/PropertyEditorPanel.js +7 -0
  9. package/esm2015/lib/PropertyEditorPanelColumnDefinition.js +55 -0
  10. package/esm2015/lib/PropertyEditorPanelColumnFieldType.js +11 -0
  11. package/esm2015/lib/PropertyEditorPanelColumnType.js +11 -0
  12. package/esm2015/lib/PropertyEditorPanelDataBindingEventArgs.js +22 -0
  13. package/esm2015/lib/PropertyEditorPanelDropDownDataListItem.js +21 -0
  14. package/esm2015/lib/PropertyEditorPanelTemplateCellUpdatingEventArgs.js +22 -0
  15. package/esm2015/lib/PropertyEditorPanelView.js +7 -0
  16. package/esm2015/lib/PropertyEditorPanelView_combined.js +1667 -0
  17. package/esm2015/lib/PropertyEditorPropertyDescription.js +7 -0
  18. package/esm2015/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.js +16 -0
  19. package/esm2015/lib/PropertyEditorPropertyDescriptionChangedEventArgs.js +26 -0
  20. package/esm2015/lib/PropertyEditorPropertyDescriptionCollection.js +7 -0
  21. package/esm2015/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.js +40 -0
  22. package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +522 -0
  23. package/esm2015/lib/PropertyEditorTreeTransformer.js +207 -0
  24. package/esm2015/lib/PropertyEditorValueType.js +36 -0
  25. package/esm2015/lib/{ExpansionPanel.js → XExpansionPanel.js} +1 -1
  26. package/esm2015/lib/igc-horizontal-property-editor-panel-data-source.js +48 -0
  27. package/esm2015/lib/igc-property-editor-data-source.js +39 -0
  28. package/esm2015/lib/igc-property-editor-description-object-collection.js +48 -0
  29. package/esm2015/lib/igc-property-editor-description-object.js +70 -0
  30. package/esm2015/lib/igc-property-editor-panel-component.js +446 -0
  31. package/esm2015/lib/igc-property-editor-panel-module.js +19 -0
  32. package/esm2015/lib/igc-property-editor-property-description-button-click-event-args.js +24 -0
  33. package/esm2015/lib/igc-property-editor-property-description-changed-event-args.js +30 -0
  34. package/esm2015/lib/igc-property-editor-property-description-collection.js +48 -0
  35. package/esm2015/lib/igc-property-editor-property-description-component.js +407 -0
  36. package/esm2015/lib/igc-property-editor-property-description-module.js +16 -0
  37. package/esm2015/lib/igc-property-editor-property-description-target-property-updating-event-args.js +42 -0
  38. package/esm2015/lib/{igc-expansion-panel-component.js → igc-x-expansion-panel-component.js} +16 -16
  39. package/esm2015/lib/{igc-expansion-panel-module.js → igc-x-expansion-panel-module.js} +7 -7
  40. package/esm2015/public_api.js +34 -3
  41. package/esm5/lib/ExpansionPanelView_combined.js +71 -71
  42. package/esm5/lib/HorizontalPropertyEditorPanelDataSource.js +26 -0
  43. package/esm5/lib/PropertyEditorDataSource.js +7 -0
  44. package/esm5/lib/PropertyEditorDescriptionObject.js +7 -0
  45. package/esm5/lib/PropertyEditorDescriptionObjectCollection.js +7 -0
  46. package/esm5/lib/PropertyEditorPanel.js +7 -0
  47. package/esm5/lib/PropertyEditorPanelColumnDefinition.js +57 -0
  48. package/esm5/lib/PropertyEditorPanelColumnFieldType.js +11 -0
  49. package/esm5/lib/PropertyEditorPanelColumnType.js +11 -0
  50. package/esm5/lib/PropertyEditorPanelDataBindingEventArgs.js +24 -0
  51. package/esm5/lib/PropertyEditorPanelDropDownDataListItem.js +23 -0
  52. package/esm5/lib/PropertyEditorPanelTemplateCellUpdatingEventArgs.js +24 -0
  53. package/esm5/lib/PropertyEditorPanelView.js +7 -0
  54. package/esm5/lib/PropertyEditorPanelView_combined.js +1817 -0
  55. package/esm5/lib/PropertyEditorPropertyDescription.js +7 -0
  56. package/esm5/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.js +20 -0
  57. package/esm5/lib/PropertyEditorPropertyDescriptionChangedEventArgs.js +32 -0
  58. package/esm5/lib/PropertyEditorPropertyDescriptionCollection.js +7 -0
  59. package/esm5/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.js +54 -0
  60. package/esm5/lib/PropertyEditorPropertyDescription_combined.js +605 -0
  61. package/esm5/lib/PropertyEditorTreeTransformer.js +209 -0
  62. package/esm5/lib/PropertyEditorValueType.js +36 -0
  63. package/esm5/lib/{ExpansionPanel.js → XExpansionPanel.js} +1 -1
  64. package/esm5/lib/igc-horizontal-property-editor-panel-data-source.js +53 -0
  65. package/esm5/lib/igc-property-editor-data-source.js +53 -0
  66. package/esm5/lib/igc-property-editor-description-object-collection.js +53 -0
  67. package/esm5/lib/igc-property-editor-description-object.js +84 -0
  68. package/esm5/lib/igc-property-editor-panel-component.js +546 -0
  69. package/esm5/lib/igc-property-editor-panel-module.js +23 -0
  70. package/esm5/lib/igc-property-editor-property-description-button-click-event-args.js +30 -0
  71. package/esm5/lib/igc-property-editor-property-description-changed-event-args.js +40 -0
  72. package/esm5/lib/igc-property-editor-property-description-collection.js +53 -0
  73. package/esm5/lib/igc-property-editor-property-description-component.js +500 -0
  74. package/esm5/lib/igc-property-editor-property-description-module.js +20 -0
  75. package/esm5/lib/igc-property-editor-property-description-target-property-updating-event-args.js +60 -0
  76. package/esm5/lib/{igc-expansion-panel-component.js → igc-x-expansion-panel-component.js} +62 -62
  77. package/esm5/lib/igc-x-expansion-panel-module.js +21 -0
  78. package/esm5/public_api.js +34 -3
  79. package/fesm2015/igniteui-webcomponents-layouts.js +3915 -45
  80. package/fesm5/igniteui-webcomponents-layouts.js +4513 -140
  81. package/lib/ExpansionPanelView_combined.d.ts +3 -3
  82. package/lib/HorizontalPropertyEditorPanelDataSource.d.ts +10 -0
  83. package/lib/PropertyEditorDataSource.d.ts +1 -0
  84. package/lib/PropertyEditorDescriptionObject.d.ts +1 -0
  85. package/lib/PropertyEditorDescriptionObjectCollection.d.ts +1 -0
  86. package/lib/PropertyEditorPanel.d.ts +1 -0
  87. package/lib/PropertyEditorPanelColumnDefinition.d.ts +22 -0
  88. package/lib/PropertyEditorPanelColumnFieldType.d.ts +12 -0
  89. package/lib/PropertyEditorPanelColumnType.d.ts +12 -0
  90. package/lib/PropertyEditorPanelDataBindingEventArgs.d.ts +10 -0
  91. package/lib/PropertyEditorPanelDropDownDataListItem.d.ts +9 -0
  92. package/lib/PropertyEditorPanelTemplateCellUpdatingEventArgs.d.ts +11 -0
  93. package/lib/PropertyEditorPanelView.d.ts +1 -0
  94. package/lib/PropertyEditorPanelView_combined.d.ts +211 -0
  95. package/lib/PropertyEditorPropertyDescription.d.ts +1 -0
  96. package/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.d.ts +7 -0
  97. package/lib/PropertyEditorPropertyDescriptionChangedEventArgs.d.ts +9 -0
  98. package/lib/PropertyEditorPropertyDescriptionCollection.d.ts +1 -0
  99. package/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.d.ts +13 -0
  100. package/lib/PropertyEditorPropertyDescription_combined.d.ts +98 -0
  101. package/lib/PropertyEditorTreeTransformer.d.ts +17 -0
  102. package/lib/PropertyEditorValueType.d.ts +29 -0
  103. package/lib/XExpansionPanel.d.ts +1 -0
  104. package/lib/igc-horizontal-property-editor-panel-data-source.d.ts +8 -0
  105. package/lib/igc-property-editor-data-source.d.ts +16 -0
  106. package/lib/igc-property-editor-description-object-collection.d.ts +8 -0
  107. package/lib/igc-property-editor-description-object.d.ts +17 -0
  108. package/lib/igc-property-editor-panel-component.d.ts +101 -0
  109. package/lib/igc-property-editor-panel-module.d.ts +3 -0
  110. package/lib/igc-property-editor-property-description-button-click-event-args.d.ts +12 -0
  111. package/lib/igc-property-editor-property-description-changed-event-args.d.ts +13 -0
  112. package/lib/igc-property-editor-property-description-collection.d.ts +8 -0
  113. package/lib/igc-property-editor-property-description-component.d.ts +70 -0
  114. package/lib/igc-property-editor-property-description-module.d.ts +3 -0
  115. package/lib/igc-property-editor-property-description-target-property-updating-event-args.d.ts +15 -0
  116. package/lib/{igc-expansion-panel-component.d.ts → igc-x-expansion-panel-component.d.ts} +7 -7
  117. package/lib/igc-x-expansion-panel-module.d.ts +3 -0
  118. package/package.json +4 -4
  119. package/public_api.d.ts +34 -3
  120. package/esm5/lib/igc-expansion-panel-module.js +0 -21
  121. package/lib/ExpansionPanel.d.ts +0 -1
  122. package/lib/igc-expansion-panel-module.d.ts +0 -3
@@ -0,0 +1,446 @@
1
+ import { fromSize, brushToString, stringToBrush, ensureBool, initializePropertiesFromCss, NamePatcher, toSpinal, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
2
+ import { FontInfo } from "igniteui-webcomponents-core";
3
+ import { WebComponentRenderer, PortalManager } from "igniteui-webcomponents-core";
4
+ import { CollectionAdapter } from "igniteui-webcomponents-core";
5
+ import { NotifyCollectionChangedAction } from "igniteui-webcomponents-core";
6
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
7
+ import { PropertyEditorPanel } from "./PropertyEditorPanel";
8
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
9
+ import { IgcPropertyEditorPropertyDescriptionCollection } from './igc-property-editor-property-description-collection';
10
+ import { PropertyEditorPropertyDescriptionCollection as PropertyEditorPropertyDescriptionCollection_internal } from './PropertyEditorPropertyDescriptionCollection';
11
+ import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
12
+ import { PropertyEditorPropertyDescription } from './PropertyEditorPropertyDescription';
13
+ import { IgcPropertyEditorPropertyDescriptionComponent } from './igc-property-editor-property-description-component';
14
+ export let IgcPropertyEditorPanelComponent = /*@__PURE__*/ (() => {
15
+ class IgcPropertyEditorPanelComponent extends IgcHTMLElement {
16
+ constructor() {
17
+ super();
18
+ this._implementation = null;
19
+ this.contentProperties = [];
20
+ /**
21
+ * The properties actually present in the editor. Do not directly modify this array.
22
+ * This array's contents can be modified by using the properties property or providing child content.
23
+ */
24
+ this.actualProperties = [];
25
+ this._properties = null;
26
+ this._propertiesAdapter = null;
27
+ this._disconnected = false;
28
+ this._settingAttributes = false;
29
+ this._attached = false;
30
+ this._queuedSetAttributes = [];
31
+ this._updatingFromAttribute = false;
32
+ this._actualDataSource = null;
33
+ this.__p = null;
34
+ this._hasUserValues = new Set();
35
+ this._stylingContainer = null;
36
+ this._stylingParent = null;
37
+ this._inStyling = false;
38
+ if (this._styling) {
39
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(this));
40
+ }
41
+ this._implementation = this.createImplementation();
42
+ this._implementation.externalObject = this;
43
+ this._portalManager = new PortalManager("propertyEditorContent");
44
+ this._webComponentRenderer = new WebComponentRenderer(this, document, true, {}, this._portalManager);
45
+ this._webComponentWrapper = this._webComponentRenderer.createElement("div");
46
+ this._webComponentRenderer.updateRoot(this._webComponentWrapper);
47
+ this._webComponentWrapper.setStyleProperty("display", "block");
48
+ this._webComponentWrapper.setStyleProperty("width", "100%");
49
+ this._webComponentWrapper.setStyleProperty("height", "100%");
50
+ this._propertiesAdapter = new CollectionAdapter(this.contentProperties, this.i.properties, this.actualProperties, (c) => c.i, (i) => {
51
+ if (this._webComponentRenderer && this._webComponentRenderer.rootWrapper.getNativeElement().parentElement) {
52
+ i._styling(this, this, this);
53
+ }
54
+ }, (i) => { });
55
+ this.i.provideContainer(this._webComponentRenderer);
56
+ this.i.notifySizeChanged();
57
+ let mut = new MutationObserver((list) => {
58
+ for (var mutation of list) {
59
+ if (mutation.type == 'childList') {
60
+ this.updateContentProperties();
61
+ }
62
+ }
63
+ });
64
+ mut.observe(this, {
65
+ childList: true
66
+ });
67
+ this._webComponentRenderer.addSizeWatcher(() => {
68
+ this.i.notifySizeChanged();
69
+ });
70
+ }
71
+ set height(value) {
72
+ this._height = value;
73
+ this.style.height = value;
74
+ this.i.notifySizeChanged();
75
+ }
76
+ get height() {
77
+ return this._height;
78
+ }
79
+ set width(value) {
80
+ this._width = value;
81
+ this.style.width = value;
82
+ this.i.notifySizeChanged();
83
+ }
84
+ get width() {
85
+ return this._width;
86
+ }
87
+ /**
88
+ * A collection of manually added properties for the editor.
89
+ */
90
+ get properties() {
91
+ if (this._properties === null) {
92
+ let coll = new IgcPropertyEditorPropertyDescriptionCollection();
93
+ let inner = coll._innerColl;
94
+ inner.addListener((sender, e) => {
95
+ switch (e.action) {
96
+ case NotifyCollectionChangedAction.Add:
97
+ this._propertiesAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
98
+ break;
99
+ case NotifyCollectionChangedAction.Remove:
100
+ this._propertiesAdapter.removeManualItemAt(e.oldStartingIndex);
101
+ break;
102
+ case NotifyCollectionChangedAction.Replace:
103
+ this._propertiesAdapter.removeManualItemAt(e.oldStartingIndex);
104
+ this._propertiesAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
105
+ break;
106
+ case NotifyCollectionChangedAction.Reset:
107
+ this._propertiesAdapter.clearManualItems();
108
+ break;
109
+ }
110
+ });
111
+ this._properties = coll;
112
+ }
113
+ return this._properties;
114
+ }
115
+ // supports angular themes or custom properties set in CSS
116
+ updateStyle() {
117
+ this._styling(this, this);
118
+ }
119
+ destroy() {
120
+ this._implementation.destroy();
121
+ this._webComponentRenderer.destroy();
122
+ }
123
+ updateContentProperties() {
124
+ this.contentProperties.length = 0;
125
+ for (var i = 0; i < this.children.length; i++) {
126
+ if (this.children[i] instanceof IgcPropertyEditorPropertyDescriptionComponent) {
127
+ this.contentProperties.push(this.children[i]);
128
+ }
129
+ }
130
+ if (this._propertiesAdapter != null) {
131
+ this._propertiesAdapter.notifyContentChanged();
132
+ }
133
+ }
134
+ createImplementation() {
135
+ return new PropertyEditorPanel();
136
+ }
137
+ get i() {
138
+ return this._implementation;
139
+ }
140
+ disconnectedCallback() {
141
+ this._disconnected = true;
142
+ }
143
+ connectedCallback() {
144
+ if (this._disconnected) {
145
+ this._disconnected = false;
146
+ return;
147
+ }
148
+ this.classList.add("ig-property-editor-panel");
149
+ this.classList.add("igc-property-editor-panel");
150
+ var rootWrapper = this._webComponentRenderer.rootWrapper;
151
+ var rootElement = rootWrapper.getNativeElement();
152
+ this.appendChild(rootElement);
153
+ this._attached = true;
154
+ this.style.display = "block";
155
+ this.style.height = this._height;
156
+ this.style.width = this._width;
157
+ this._flushQueuedAttributes();
158
+ // supports themes or custom properties set in CSS
159
+ this._styling(this, this);
160
+ for (let i = 0; i < this.actualProperties.length; i++) {
161
+ let s = this.actualProperties[i];
162
+ s._styling(this, this, this);
163
+ }
164
+ this.updateContentProperties();
165
+ this.afterContentInit();
166
+ }
167
+ afterContentInit() {
168
+ this.i.notifySizeChanged();
169
+ }
170
+ _enqueueSetAttribute(attrName, attrValue) {
171
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
172
+ }
173
+ _flushQueuedAttributes() {
174
+ this._settingAttributes = true;
175
+ for (let i = 0; i < this._queuedSetAttributes.length; i++) {
176
+ this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
177
+ }
178
+ this._settingAttributes = false;
179
+ this._queuedSetAttributes.length = 0;
180
+ }
181
+ _a(attrName, attrValue) {
182
+ if (this._updatingFromAttribute) {
183
+ return;
184
+ }
185
+ if (attrValue) {
186
+ attrValue = attrValue.toString();
187
+ }
188
+ this._settingAttributes = true;
189
+ attrName = toSpinal(attrName);
190
+ if (this._attached) {
191
+ this.setAttribute(attrName, attrValue);
192
+ }
193
+ else {
194
+ this._enqueueSetAttribute(attrName, attrValue);
195
+ }
196
+ this._settingAttributes = false;
197
+ }
198
+ static get observedAttributes() {
199
+ if (IgcPropertyEditorPanelComponent._observedAttributesIgcPropertyEditorPanelComponent == null) {
200
+ let names = getAllPropertyNames(IgcPropertyEditorPanelComponent);
201
+ for (let i = 0; i < names.length; i++) {
202
+ names[i] = toSpinal(names[i]);
203
+ }
204
+ IgcPropertyEditorPanelComponent._observedAttributesIgcPropertyEditorPanelComponent = names;
205
+ }
206
+ return IgcPropertyEditorPanelComponent._observedAttributesIgcPropertyEditorPanelComponent;
207
+ }
208
+ attributeChangedCallback(name, oldValue, newValue) {
209
+ if (this._settingAttributes) {
210
+ return;
211
+ }
212
+ let setName = fromSpinal(name);
213
+ this._updatingFromAttribute = true;
214
+ this[setName] = newValue;
215
+ this._updatingFromAttribute = false;
216
+ }
217
+ static register() {
218
+ if (!IgcPropertyEditorPanelComponent._isElementRegistered) {
219
+ IgcPropertyEditorPanelComponent._isElementRegistered = true;
220
+ RegisterElementHelper.registerElement(IgcPropertyEditorPanelComponent.htmlTagName, IgcPropertyEditorPanelComponent);
221
+ }
222
+ }
223
+ /**
224
+ * Gets the actaul data or data source instance to which to bind the grid.
225
+ */
226
+ get actualDataSource() {
227
+ if (this._actualDataSource === null) {
228
+ let coll = new IgcPropertyEditorPropertyDescriptionCollection();
229
+ let innerColl = this.i.actualProperties;
230
+ if (!innerColl) {
231
+ innerColl = new PropertyEditorPropertyDescriptionCollection_internal();
232
+ }
233
+ this._actualDataSource = coll._fromInner(innerColl);
234
+ this.i.actualProperties = innerColl;
235
+ }
236
+ return this._actualDataSource;
237
+ }
238
+ set actualDataSource(v) {
239
+ if (this._actualDataSource !== null) {
240
+ this._actualDataSource._setSyncTarget(null);
241
+ this._actualDataSource = null;
242
+ }
243
+ let coll = new IgcPropertyEditorPropertyDescriptionCollection();
244
+ this._actualDataSource = coll._fromOuter(v);
245
+ let syncColl = new SyncableObservableCollection$1(PropertyEditorPropertyDescription.$type);
246
+ let innerColl = this.i.actualProperties;
247
+ if (!innerColl) {
248
+ innerColl = new PropertyEditorPropertyDescriptionCollection_internal();
249
+ }
250
+ syncColl._inner = innerColl;
251
+ syncColl.clear();
252
+ this._actualDataSource._setSyncTarget(syncColl);
253
+ this.i.actualProperties = innerColl;
254
+ }
255
+ /**
256
+ * Gets or Sets the property name that contains the values.
257
+ */
258
+ get rowHeight() {
259
+ return this.i.bp;
260
+ }
261
+ set rowHeight(v) {
262
+ this.i.bp = +v;
263
+ this._a("rowHeight", this.i.bp);
264
+ }
265
+ get actualRowHeight() {
266
+ return this.i.ar;
267
+ }
268
+ set actualRowHeight(v) {
269
+ this.i.ar = +v;
270
+ this._a("actualRowHeight", this.i.ar);
271
+ }
272
+ /**
273
+ * Gets or Sets the property name that contains the values.
274
+ */
275
+ get cellTextStyle() {
276
+ if (this.i.t == null) {
277
+ return null;
278
+ }
279
+ return this.i.t.fontString;
280
+ }
281
+ set cellTextStyle(v) {
282
+ let fi = new FontInfo();
283
+ fi.fontString = v;
284
+ this.i.t = fi;
285
+ this._a("cellTextStyle", this.i.t != null ? this.i.t.fontString : "");
286
+ }
287
+ get actualDescriptionContext() {
288
+ return this.i.h;
289
+ }
290
+ set actualDescriptionContext(v) {
291
+ this.i.h = v;
292
+ }
293
+ get descriptionContext() {
294
+ return this.i.i;
295
+ }
296
+ set descriptionContext(v) {
297
+ this.i.i = v;
298
+ }
299
+ get componentRenderer() {
300
+ return this.i.e;
301
+ }
302
+ set componentRenderer(v) {
303
+ this.i.e = v;
304
+ }
305
+ get target() {
306
+ return this.i.bs;
307
+ }
308
+ set target(v) {
309
+ this.i.bs = v;
310
+ }
311
+ get descriptionType() {
312
+ return this.i.b2;
313
+ }
314
+ set descriptionType(v) {
315
+ this.i.b2 = v;
316
+ }
317
+ get isHorizontal() {
318
+ return this.i.ag;
319
+ }
320
+ set isHorizontal(v) {
321
+ this.i.ag = ensureBool(v);
322
+ this._a("isHorizontal", this.i.ag);
323
+ }
324
+ get isWrappingEnabled() {
325
+ return this.i.ai;
326
+ }
327
+ set isWrappingEnabled(v) {
328
+ this.i.ai = ensureBool(v);
329
+ this._a("isWrappingEnabled", this.i.ai);
330
+ }
331
+ get isIndirectModeEnabled() {
332
+ return this.i.ah;
333
+ }
334
+ set isIndirectModeEnabled(v) {
335
+ this.i.ah = ensureBool(v);
336
+ this._a("isIndirectModeEnabled", this.i.ah);
337
+ }
338
+ /**
339
+ * Gets or sets the color to use for the background of the component.
340
+ */
341
+ get backgroundColor() {
342
+ return brushToString(this.i.d6);
343
+ }
344
+ set backgroundColor(v) {
345
+ this.i.d6 = stringToBrush(v);
346
+ this._a("backgroundColor", brushToString(this.i.d6));
347
+ }
348
+ /**
349
+ * Gets or sets the color to use for the text of the component.
350
+ */
351
+ get textColor() {
352
+ return brushToString(this.i.d9);
353
+ }
354
+ set textColor(v) {
355
+ this.i.d9 = stringToBrush(v);
356
+ this._a("textColor", brushToString(this.i.d9));
357
+ }
358
+ findByName(name) {
359
+ if (this.actualDataSource != null && this.actualDataSource.findByName && this.actualDataSource.findByName(name)) {
360
+ return this.actualDataSource.findByName(name);
361
+ }
362
+ if (this.properties != null && this.properties.findByName && this.properties.findByName(name)) {
363
+ return this.properties.findByName(name);
364
+ }
365
+ return null;
366
+ }
367
+ get hasUserValues() {
368
+ return this._hasUserValues;
369
+ }
370
+ __m(propertyName) {
371
+ if (!this._inStyling) {
372
+ this._hasUserValues.add(propertyName);
373
+ }
374
+ }
375
+ _styling(container, component, parent) {
376
+ if (this._inStyling) {
377
+ return;
378
+ }
379
+ this._inStyling = true;
380
+ this._stylingContainer = container;
381
+ this._stylingParent = component;
382
+ let genericPrefix = "";
383
+ let typeName = this.i.$type.name;
384
+ if (typeName.indexOf("Xam") === 0) {
385
+ typeName = typeName.substring(3);
386
+ }
387
+ genericPrefix = toSpinal("PropertyEditorPanelComponent");
388
+ let additionalPrefixes = [];
389
+ let prefix = toSpinal(typeName);
390
+ additionalPrefixes.push(prefix + "-");
391
+ let b = this.i.$type.baseType;
392
+ while (b && b.name != "Object" &&
393
+ b.name != "Base" &&
394
+ b.name != "Control" &&
395
+ b.Name != "DependencyObject" &&
396
+ b.Name != "FrameworkElement") {
397
+ typeName = b.name;
398
+ if (typeName.indexOf("Xam") === 0) {
399
+ typeName = typeName.substring(3);
400
+ }
401
+ let basePrefix = toSpinal(typeName);
402
+ additionalPrefixes.push(basePrefix + "-");
403
+ b = b.baseType;
404
+ }
405
+ if (parent) {
406
+ let parentTypeName = parent.i.$type.name;
407
+ if (parentTypeName.indexOf("Xam") === 0) {
408
+ parentTypeName = parentTypeName.substring(3);
409
+ }
410
+ let parentPrefix = toSpinal(parentTypeName);
411
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
412
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
413
+ }
414
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
415
+ if (this._otherStyling) {
416
+ this._otherStyling(container, component, parent);
417
+ }
418
+ this._inStyling = false;
419
+ }
420
+ getDesiredSize() {
421
+ let iv = this.i.ea();
422
+ return fromSize(iv);
423
+ }
424
+ notifySetItem(index, oldItem, newItem) {
425
+ this.i.dq(index, oldItem, newItem);
426
+ }
427
+ /**
428
+ * Manually notifies the checkboxlist's grid that the data it has bound to has been cleared and needs to be re-examined.
429
+ * This should not be called if the data that the grid is bound to is already observable.
430
+
431
+ */
432
+ notifyClearItems() {
433
+ this.i.dm();
434
+ }
435
+ notifyInsertItem(index, newItem) {
436
+ this.i.dn(index, newItem);
437
+ }
438
+ notifyRemoveItem(index, oldItem) {
439
+ this.i.dp(index, oldItem);
440
+ }
441
+ }
442
+ IgcPropertyEditorPanelComponent._observedAttributesIgcPropertyEditorPanelComponent = null;
443
+ IgcPropertyEditorPanelComponent.htmlTagName = "igc-property-editor-panel";
444
+ IgcPropertyEditorPanelComponent._isElementRegistered = false;
445
+ return IgcPropertyEditorPanelComponent;
446
+ })();
@@ -0,0 +1,19 @@
1
+ /*
2
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
3
+ https://www.infragistics.com/legal/license/igultimate-la
4
+ https://www.infragistics.com/legal/license/igultimate-eula
5
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
6
+ */
7
+ import { IgcPropertyEditorPropertyDescriptionModule } from './igc-property-editor-property-description-module';
8
+ import { IgcPropertyEditorPanelComponent } from './igc-property-editor-panel-component';
9
+ import { PropertyEditorPanel } from './PropertyEditorPanel';
10
+ import { TypeRegistrar } from "igniteui-webcomponents-core";
11
+ export class IgcPropertyEditorPanelModule {
12
+ static register() {
13
+ IgcPropertyEditorPropertyDescriptionModule.register();
14
+ IgcPropertyEditorPanelComponent.register();
15
+ TypeRegistrar.registerCons('IgcPropertyEditorPanelComponent', IgcPropertyEditorPanelComponent);
16
+ TypeRegistrar.registerCons('IgcPropertyEditorPanelComponent', IgcPropertyEditorPanelComponent);
17
+ TypeRegistrar.register('PropertyEditorPanel', PropertyEditorPanel.$type);
18
+ }
19
+ }
@@ -0,0 +1,24 @@
1
+ import { PropertyEditorPropertyDescriptionButtonClickEventArgs as PropertyEditorPropertyDescriptionButtonClickEventArgs_internal } from "./PropertyEditorPropertyDescriptionButtonClickEventArgs";
2
+ export class IgcPropertyEditorPropertyDescriptionButtonClickEventArgs {
3
+ createImplementation() {
4
+ return new PropertyEditorPropertyDescriptionButtonClickEventArgs_internal();
5
+ }
6
+ /**
7
+ * @hidden
8
+ */
9
+ get i() {
10
+ return this._implementation;
11
+ }
12
+ onImplementationCreated() {
13
+ }
14
+ constructor() {
15
+ this._implementation = this.createImplementation();
16
+ this._implementation.externalObject = this;
17
+ this.onImplementationCreated();
18
+ }
19
+ _provideImplementation(i) {
20
+ this._implementation = i;
21
+ this._implementation.externalObject = this;
22
+ this.onImplementationCreated();
23
+ }
24
+ }
@@ -0,0 +1,30 @@
1
+ import { PropertyEditorPropertyDescriptionChangedEventArgs as PropertyEditorPropertyDescriptionChangedEventArgs_internal } from "./PropertyEditorPropertyDescriptionChangedEventArgs";
2
+ export class IgcPropertyEditorPropertyDescriptionChangedEventArgs {
3
+ createImplementation() {
4
+ return new PropertyEditorPropertyDescriptionChangedEventArgs_internal();
5
+ }
6
+ /**
7
+ * @hidden
8
+ */
9
+ get i() {
10
+ return this._implementation;
11
+ }
12
+ onImplementationCreated() {
13
+ }
14
+ constructor() {
15
+ this._implementation = this.createImplementation();
16
+ this._implementation.externalObject = this;
17
+ this.onImplementationCreated();
18
+ }
19
+ _provideImplementation(i) {
20
+ this._implementation = i;
21
+ this._implementation.externalObject = this;
22
+ this.onImplementationCreated();
23
+ }
24
+ get newValue() {
25
+ return this.i.newValue;
26
+ }
27
+ set newValue(v) {
28
+ this.i.newValue = v;
29
+ }
30
+ }
@@ -0,0 +1,48 @@
1
+ import { IgCollection } from "igniteui-webcomponents-core";
2
+ import { markType } from "igniteui-webcomponents-core";
3
+ import { SyncableObservableCollection$2 } from "igniteui-webcomponents-core";
4
+ import { PropertyEditorPropertyDescription as PropertyEditorPropertyDescription_internal } from './PropertyEditorPropertyDescription';
5
+ import { IgcPropertyEditorPropertyDescriptionComponent as IgcPropertyEditorPropertyDescriptionComponent } from './igc-property-editor-property-description-component';
6
+ export class IgcPropertyEditorPropertyDescriptionCollection extends IgCollection {
7
+ constructor(list) {
8
+ super();
9
+ if (!IgcPropertyEditorPropertyDescriptionComponent.$type) {
10
+ IgcPropertyEditorPropertyDescriptionComponent.$type = markType(IgcPropertyEditorPropertyDescriptionComponent, "IgcPropertyEditorPropertyDescriptionComponent");
11
+ }
12
+ if (list) {
13
+ for (let i = 0; i < list.length; i++) {
14
+ this.add(list[i]);
15
+ }
16
+ }
17
+ }
18
+ _createInnerColl() {
19
+ if (!IgcPropertyEditorPropertyDescriptionComponent.$type) {
20
+ IgcPropertyEditorPropertyDescriptionComponent.$type = markType(IgcPropertyEditorPropertyDescriptionComponent, "IgcPropertyEditorPropertyDescriptionComponent");
21
+ }
22
+ let coll = new SyncableObservableCollection$2(IgcPropertyEditorPropertyDescriptionComponent.$type, PropertyEditorPropertyDescription_internal.$type, 0);
23
+ coll.compare = (ext, int) => {
24
+ let comp = ext;
25
+ if (comp._implementation) {
26
+ comp = comp._implementation;
27
+ }
28
+ if (comp.equals) {
29
+ return comp.equals(int);
30
+ }
31
+ return comp === int;
32
+ };
33
+ coll.createTo = (ext) => {
34
+ return ext._implementation;
35
+ };
36
+ coll.createFrom = (int) => {
37
+ let ext = int.externalObject;
38
+ if (!ext) {
39
+ ext = new IgcPropertyEditorPropertyDescriptionComponent();
40
+ if (ext) {
41
+ ext._implementation = int;
42
+ }
43
+ }
44
+ return ext;
45
+ };
46
+ return coll;
47
+ }
48
+ }