igniteui-webcomponents-layouts 3.2.3 → 3.2.4

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 (242) hide show
  1. package/bundles/igniteui-webcomponents-layouts.umd.js +6905 -138
  2. package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
  3. package/esm2015/lib/IExternalListPanel.js +11 -0
  4. package/esm2015/lib/IExternalToolPanel.js +11 -0
  5. package/esm2015/lib/IExternalToolbar.js +11 -0
  6. package/esm2015/lib/IListPanelView.js +11 -0
  7. package/esm2015/lib/IPropertyEditorPanelView.js +11 -0
  8. package/esm2015/lib/IToolPanelView.js +11 -0
  9. package/esm2015/lib/IToolbarView.js +11 -0
  10. package/esm2015/lib/ListPanel.js +7 -0
  11. package/esm2015/lib/ListPanelContentRefreshedEventArgs.js +19 -0
  12. package/esm2015/lib/ListPanelDataBindingEventArgs.js +22 -0
  13. package/esm2015/lib/ListPanelDataSourceNotificationBridge.js +7 -0
  14. package/esm2015/lib/ListPanelItemModel.js +62 -0
  15. package/esm2015/lib/ListPanelItemPresenter.js +20 -0
  16. package/esm2015/lib/ListPanelLayoutPanel.js +7 -0
  17. package/esm2015/lib/ListPanelOrientation.js +16 -0
  18. package/esm2015/lib/ListPanelTemplateHeightRequestedEventArgs.js +22 -0
  19. package/esm2015/lib/ListPanelTemplateItemUpdatingEventArgs.js +22 -0
  20. package/esm2015/lib/ListPanelTemplateWidthRequestedEventArgs.js +22 -0
  21. package/esm2015/lib/ListPanelView.js +7 -0
  22. package/esm2015/lib/ListPanelView_combined.js +972 -0
  23. package/esm2015/lib/PropertyEditorPanelView_combined.js +100 -100
  24. package/esm2015/lib/ToolAction.js +7 -0
  25. package/esm2015/lib/ToolActionCheckbox.js +7 -0
  26. package/esm2015/lib/ToolActionCollection.js +7 -0
  27. package/esm2015/lib/ToolActionEventDetail.js +7 -0
  28. package/esm2015/lib/ToolActionEventDetailCollection.js +7 -0
  29. package/esm2015/lib/ToolActionGroupHeader.js +7 -0
  30. package/esm2015/lib/ToolActionIconButton.js +7 -0
  31. package/esm2015/lib/ToolActionIconMenu.js +7 -0
  32. package/esm2015/lib/ToolActionMeasurementContext.js +31 -0
  33. package/esm2015/lib/ToolActionMenuBase.js +7 -0
  34. package/esm2015/lib/ToolActionNumberInput.js +7 -0
  35. package/esm2015/lib/ToolActionPerformedEventArgs.js +7 -0
  36. package/esm2015/lib/ToolActionSeparator.js +7 -0
  37. package/esm2015/lib/ToolCommandEventArgs.js +20 -0
  38. package/esm2015/lib/ToolPanel.js +7 -0
  39. package/esm2015/lib/ToolPanelContentRefreshedEventArgs.js +19 -0
  40. package/esm2015/lib/ToolPanelOrientation.js +16 -0
  41. package/esm2015/lib/ToolPanelView.js +7 -0
  42. package/esm2015/lib/ToolPanelView_combined.js +1515 -0
  43. package/esm2015/lib/Toolbar.js +7 -0
  44. package/esm2015/lib/ToolbarIconManager.js +40 -0
  45. package/esm2015/lib/ToolbarOrientation.js +16 -0
  46. package/esm2015/lib/ToolbarView.js +7 -0
  47. package/esm2015/lib/ToolbarView_combined.js +387 -0
  48. package/esm2015/lib/igc-list-panel-component.js +457 -0
  49. package/esm2015/lib/igc-list-panel-content-refreshed-event-args.js +24 -0
  50. package/esm2015/lib/igc-list-panel-item-model.js +52 -0
  51. package/esm2015/lib/igc-list-panel-module.js +17 -0
  52. package/esm2015/lib/igc-list-panel-template-height-requested-event-args.js +42 -0
  53. package/esm2015/lib/igc-list-panel-template-item-updating-event-args.js +45 -0
  54. package/esm2015/lib/igc-list-panel-template-width-requested-event-args.js +42 -0
  55. package/esm2015/lib/igc-property-editor-panel-component.js +1 -5
  56. package/esm2015/lib/igc-tool-action-checkbox-component.js +49 -0
  57. package/esm2015/lib/igc-tool-action-checkbox-module.js +16 -0
  58. package/esm2015/lib/igc-tool-action-collection.js +48 -0
  59. package/esm2015/lib/igc-tool-action-component.js +312 -0
  60. package/esm2015/lib/igc-tool-action-event-detail-collection.js +48 -0
  61. package/esm2015/lib/igc-tool-action-event-detail.js +85 -0
  62. package/esm2015/lib/igc-tool-action-group-header-component.js +49 -0
  63. package/esm2015/lib/igc-tool-action-group-header-module.js +16 -0
  64. package/esm2015/lib/igc-tool-action-icon-button-component.js +49 -0
  65. package/esm2015/lib/igc-tool-action-icon-button-module.js +16 -0
  66. package/esm2015/lib/igc-tool-action-icon-menu-component.js +49 -0
  67. package/esm2015/lib/igc-tool-action-icon-menu-module.js +16 -0
  68. package/esm2015/lib/igc-tool-action-menu-base-component.js +89 -0
  69. package/esm2015/lib/igc-tool-action-module.js +16 -0
  70. package/esm2015/lib/igc-tool-action-number-input-component.js +49 -0
  71. package/esm2015/lib/igc-tool-action-number-input-module.js +16 -0
  72. package/esm2015/lib/igc-tool-action-performed-event-args.js +80 -0
  73. package/esm2015/lib/igc-tool-action-separator-component.js +49 -0
  74. package/esm2015/lib/igc-tool-action-separator-module.js +16 -0
  75. package/esm2015/lib/igc-tool-command-event-args.js +30 -0
  76. package/esm2015/lib/igc-tool-panel-component.js +379 -0
  77. package/esm2015/lib/igc-tool-panel-content-refreshed-event-args.js +24 -0
  78. package/esm2015/lib/igc-tool-panel-module.js +29 -0
  79. package/esm2015/lib/igc-toolbar-component.js +412 -0
  80. package/esm2015/lib/igc-toolbar-module.js +19 -0
  81. package/esm2015/public_api.js +73 -0
  82. package/esm5/lib/IExternalListPanel.js +11 -0
  83. package/esm5/lib/IExternalToolPanel.js +11 -0
  84. package/esm5/lib/IExternalToolbar.js +11 -0
  85. package/esm5/lib/IListPanelView.js +11 -0
  86. package/esm5/lib/IPropertyEditorPanelView.js +11 -0
  87. package/esm5/lib/IToolPanelView.js +11 -0
  88. package/esm5/lib/IToolbarView.js +11 -0
  89. package/esm5/lib/ListPanel.js +7 -0
  90. package/esm5/lib/ListPanelContentRefreshedEventArgs.js +20 -0
  91. package/esm5/lib/ListPanelDataBindingEventArgs.js +24 -0
  92. package/esm5/lib/ListPanelDataSourceNotificationBridge.js +7 -0
  93. package/esm5/lib/ListPanelItemModel.js +80 -0
  94. package/esm5/lib/ListPanelItemPresenter.js +22 -0
  95. package/esm5/lib/ListPanelLayoutPanel.js +7 -0
  96. package/esm5/lib/ListPanelOrientation.js +16 -0
  97. package/esm5/lib/ListPanelTemplateHeightRequestedEventArgs.js +24 -0
  98. package/esm5/lib/ListPanelTemplateItemUpdatingEventArgs.js +24 -0
  99. package/esm5/lib/ListPanelTemplateWidthRequestedEventArgs.js +24 -0
  100. package/esm5/lib/ListPanelView.js +7 -0
  101. package/esm5/lib/ListPanelView_combined.js +1045 -0
  102. package/esm5/lib/PropertyEditorPanelView_combined.js +100 -100
  103. package/esm5/lib/ToolAction.js +7 -0
  104. package/esm5/lib/ToolActionCheckbox.js +7 -0
  105. package/esm5/lib/ToolActionCollection.js +7 -0
  106. package/esm5/lib/ToolActionEventDetail.js +7 -0
  107. package/esm5/lib/ToolActionEventDetailCollection.js +7 -0
  108. package/esm5/lib/ToolActionGroupHeader.js +7 -0
  109. package/esm5/lib/ToolActionIconButton.js +7 -0
  110. package/esm5/lib/ToolActionIconMenu.js +7 -0
  111. package/esm5/lib/ToolActionMeasurementContext.js +33 -0
  112. package/esm5/lib/ToolActionMenuBase.js +7 -0
  113. package/esm5/lib/ToolActionNumberInput.js +7 -0
  114. package/esm5/lib/ToolActionPerformedEventArgs.js +7 -0
  115. package/esm5/lib/ToolActionSeparator.js +7 -0
  116. package/esm5/lib/ToolCommandEventArgs.js +22 -0
  117. package/esm5/lib/ToolPanel.js +7 -0
  118. package/esm5/lib/ToolPanelContentRefreshedEventArgs.js +20 -0
  119. package/esm5/lib/ToolPanelOrientation.js +16 -0
  120. package/esm5/lib/ToolPanelView.js +7 -0
  121. package/esm5/lib/ToolPanelView_combined.js +1663 -0
  122. package/esm5/lib/Toolbar.js +7 -0
  123. package/esm5/lib/ToolbarIconManager.js +44 -0
  124. package/esm5/lib/ToolbarOrientation.js +16 -0
  125. package/esm5/lib/ToolbarView.js +7 -0
  126. package/esm5/lib/ToolbarView_combined.js +459 -0
  127. package/esm5/lib/igc-list-panel-component.js +535 -0
  128. package/esm5/lib/igc-list-panel-content-refreshed-event-args.js +30 -0
  129. package/esm5/lib/igc-list-panel-item-model.js +74 -0
  130. package/esm5/lib/igc-list-panel-module.js +21 -0
  131. package/esm5/lib/igc-list-panel-template-height-requested-event-args.js +60 -0
  132. package/esm5/lib/igc-list-panel-template-item-updating-event-args.js +59 -0
  133. package/esm5/lib/igc-list-panel-template-width-requested-event-args.js +60 -0
  134. package/esm5/lib/igc-property-editor-panel-component.js +1 -5
  135. package/esm5/lib/igc-tool-action-checkbox-component.js +58 -0
  136. package/esm5/lib/igc-tool-action-checkbox-module.js +20 -0
  137. package/esm5/lib/igc-tool-action-collection.js +53 -0
  138. package/esm5/lib/igc-tool-action-component.js +388 -0
  139. package/esm5/lib/igc-tool-action-event-detail-collection.js +53 -0
  140. package/esm5/lib/igc-tool-action-event-detail.js +119 -0
  141. package/esm5/lib/igc-tool-action-group-header-component.js +58 -0
  142. package/esm5/lib/igc-tool-action-group-header-module.js +20 -0
  143. package/esm5/lib/igc-tool-action-icon-button-component.js +58 -0
  144. package/esm5/lib/igc-tool-action-icon-button-module.js +20 -0
  145. package/esm5/lib/igc-tool-action-icon-menu-component.js +58 -0
  146. package/esm5/lib/igc-tool-action-icon-menu-module.js +20 -0
  147. package/esm5/lib/igc-tool-action-menu-base-component.js +103 -0
  148. package/esm5/lib/igc-tool-action-module.js +20 -0
  149. package/esm5/lib/igc-tool-action-number-input-component.js +58 -0
  150. package/esm5/lib/igc-tool-action-number-input-module.js +20 -0
  151. package/esm5/lib/igc-tool-action-performed-event-args.js +98 -0
  152. package/esm5/lib/igc-tool-action-separator-component.js +58 -0
  153. package/esm5/lib/igc-tool-action-separator-module.js +20 -0
  154. package/esm5/lib/igc-tool-command-event-args.js +40 -0
  155. package/esm5/lib/igc-tool-panel-component.js +449 -0
  156. package/esm5/lib/igc-tool-panel-content-refreshed-event-args.js +30 -0
  157. package/esm5/lib/igc-tool-panel-module.js +33 -0
  158. package/esm5/lib/igc-toolbar-component.js +484 -0
  159. package/esm5/lib/igc-toolbar-module.js +23 -0
  160. package/esm5/public_api.js +73 -0
  161. package/fesm2015/igniteui-webcomponents-layouts.js +6030 -140
  162. package/fesm5/igniteui-webcomponents-layouts.js +6831 -140
  163. package/lib/IExternalListPanel.d.ts +13 -0
  164. package/lib/IExternalToolPanel.d.ts +13 -0
  165. package/lib/IExternalToolbar.d.ts +13 -0
  166. package/lib/IListPanelView.d.ts +25 -0
  167. package/lib/IPropertyEditorPanelView.d.ts +26 -0
  168. package/lib/IToolPanelView.d.ts +25 -0
  169. package/lib/IToolbarView.d.ts +25 -0
  170. package/lib/ListPanel.d.ts +1 -0
  171. package/lib/ListPanelContentRefreshedEventArgs.d.ts +8 -0
  172. package/lib/ListPanelDataBindingEventArgs.d.ts +10 -0
  173. package/lib/ListPanelDataSourceNotificationBridge.d.ts +1 -0
  174. package/lib/ListPanelItemModel.d.ts +22 -0
  175. package/lib/ListPanelItemPresenter.d.ts +9 -0
  176. package/lib/ListPanelLayoutPanel.d.ts +1 -0
  177. package/lib/ListPanelOrientation.d.ts +9 -0
  178. package/lib/ListPanelTemplateHeightRequestedEventArgs.d.ts +10 -0
  179. package/lib/ListPanelTemplateItemUpdatingEventArgs.d.ts +12 -0
  180. package/lib/ListPanelTemplateWidthRequestedEventArgs.d.ts +10 -0
  181. package/lib/ListPanelView.d.ts +1 -0
  182. package/lib/ListPanelView_combined.d.ts +197 -0
  183. package/lib/PropertyEditorPanelView_combined.d.ts +1 -1
  184. package/lib/ToolAction.d.ts +1 -0
  185. package/lib/ToolActionCheckbox.d.ts +1 -0
  186. package/lib/ToolActionCollection.d.ts +1 -0
  187. package/lib/ToolActionEventDetail.d.ts +1 -0
  188. package/lib/ToolActionEventDetailCollection.d.ts +1 -0
  189. package/lib/ToolActionGroupHeader.d.ts +1 -0
  190. package/lib/ToolActionIconButton.d.ts +1 -0
  191. package/lib/ToolActionIconMenu.d.ts +1 -0
  192. package/lib/ToolActionMeasurementContext.d.ts +16 -0
  193. package/lib/ToolActionMenuBase.d.ts +1 -0
  194. package/lib/ToolActionNumberInput.d.ts +1 -0
  195. package/lib/ToolActionPerformedEventArgs.d.ts +1 -0
  196. package/lib/ToolActionSeparator.d.ts +1 -0
  197. package/lib/ToolCommandEventArgs.d.ts +10 -0
  198. package/lib/ToolPanel.d.ts +1 -0
  199. package/lib/ToolPanelContentRefreshedEventArgs.d.ts +8 -0
  200. package/lib/ToolPanelOrientation.d.ts +9 -0
  201. package/lib/ToolPanelView.d.ts +1 -0
  202. package/lib/ToolPanelView_combined.d.ts +328 -0
  203. package/lib/Toolbar.d.ts +1 -0
  204. package/lib/ToolbarIconManager.d.ts +10 -0
  205. package/lib/ToolbarOrientation.d.ts +9 -0
  206. package/lib/ToolbarView.d.ts +1 -0
  207. package/lib/ToolbarView_combined.d.ts +98 -0
  208. package/lib/igc-list-panel-component.d.ts +122 -0
  209. package/lib/igc-list-panel-content-refreshed-event-args.d.ts +12 -0
  210. package/lib/igc-list-panel-item-model.d.ts +17 -0
  211. package/lib/igc-list-panel-module.d.ts +3 -0
  212. package/lib/igc-list-panel-template-height-requested-event-args.d.ts +15 -0
  213. package/lib/igc-list-panel-template-item-updating-event-args.d.ts +15 -0
  214. package/lib/igc-list-panel-template-width-requested-event-args.d.ts +15 -0
  215. package/lib/igc-property-editor-panel-component.d.ts +0 -2
  216. package/lib/igc-tool-action-checkbox-component.d.ts +16 -0
  217. package/lib/igc-tool-action-checkbox-module.d.ts +3 -0
  218. package/lib/igc-tool-action-collection.d.ts +8 -0
  219. package/lib/igc-tool-action-component.d.ts +64 -0
  220. package/lib/igc-tool-action-event-detail-collection.d.ts +8 -0
  221. package/lib/igc-tool-action-event-detail.d.ts +22 -0
  222. package/lib/igc-tool-action-group-header-component.d.ts +16 -0
  223. package/lib/igc-tool-action-group-header-module.d.ts +3 -0
  224. package/lib/igc-tool-action-icon-button-component.d.ts +16 -0
  225. package/lib/igc-tool-action-icon-button-module.d.ts +3 -0
  226. package/lib/igc-tool-action-icon-menu-component.d.ts +16 -0
  227. package/lib/igc-tool-action-icon-menu-module.d.ts +3 -0
  228. package/lib/igc-tool-action-menu-base-component.d.ts +24 -0
  229. package/lib/igc-tool-action-module.d.ts +3 -0
  230. package/lib/igc-tool-action-number-input-component.d.ts +16 -0
  231. package/lib/igc-tool-action-number-input-module.d.ts +3 -0
  232. package/lib/igc-tool-action-performed-event-args.d.ts +18 -0
  233. package/lib/igc-tool-action-separator-component.d.ts +16 -0
  234. package/lib/igc-tool-action-separator-module.d.ts +3 -0
  235. package/lib/igc-tool-command-event-args.d.ts +14 -0
  236. package/lib/igc-tool-panel-component.d.ts +83 -0
  237. package/lib/igc-tool-panel-content-refreshed-event-args.d.ts +12 -0
  238. package/lib/igc-tool-panel-module.d.ts +3 -0
  239. package/lib/igc-toolbar-component.d.ts +89 -0
  240. package/lib/igc-toolbar-module.d.ts +3 -0
  241. package/package.json +3 -3
  242. package/public_api.d.ts +73 -0
@@ -0,0 +1,449 @@
1
+ import * as tslib_1 from "tslib";
2
+ import { ensureEnum, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher, toSpinal, enumToString, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
3
+ import { FontInfo } from "igniteui-webcomponents-core";
4
+ import { WebComponentRenderer, PortalManager } from "igniteui-webcomponents-core";
5
+ import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core";
6
+ import { CollectionAdapter } from "igniteui-webcomponents-core";
7
+ import { NotifyCollectionChangedAction } from "igniteui-webcomponents-core";
8
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
9
+ import { ToolPanel } from "./ToolPanel";
10
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
11
+ import { ToolPanelOrientation_$type } from './ToolPanelOrientation';
12
+ import { IgcToolActionComponent } from "./igc-tool-action-component";
13
+ import { IgcToolActionCollection } from "./igc-tool-action-collection";
14
+ import { IgcToolPanelContentRefreshedEventArgs } from "./igc-tool-panel-content-refreshed-event-args";
15
+ import { IgcToolCommandEventArgs } from './igc-tool-command-event-args';
16
+ var IgcToolPanelComponent = /** @class */ /*@__PURE__*/ (function (_super) {
17
+ tslib_1.__extends(IgcToolPanelComponent, _super);
18
+ function IgcToolPanelComponent() {
19
+ var _this = _super.call(this) || this;
20
+ _this._implementation = null;
21
+ _this.contentActions = [];
22
+ /**
23
+ * The actions actually present in the editor. Do not directly modify this array.
24
+ * This array's contents can be modified by using the actions property or providing child content.
25
+ */
26
+ _this.actualActions = [];
27
+ _this._actions = null;
28
+ _this._actionsAdapter = null;
29
+ _this._disconnected = false;
30
+ _this._settingAttributes = false;
31
+ _this._attached = false;
32
+ _this._queuedSetAttributes = [];
33
+ _this._updatingFromAttribute = false;
34
+ _this.__p = null;
35
+ _this._hasUserValues = new Set();
36
+ _this._stylingContainer = null;
37
+ _this._stylingParent = null;
38
+ _this._inStyling = false;
39
+ _this._contentRefreshed = null;
40
+ _this._contentRefreshed_wrapped = null;
41
+ _this._onCommand = null;
42
+ _this._onCommand_wrapped = null;
43
+ if (_this._styling) {
44
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
45
+ }
46
+ _this._implementation = _this.createImplementation();
47
+ _this._implementation.externalObject = _this;
48
+ _this._portalManager = new PortalManager("toolPanelContent");
49
+ _this._webComponentRenderer = new WebComponentRenderer(_this, document, true, {}, _this._portalManager);
50
+ _this._webComponentWrapper = _this._webComponentRenderer.createElement("div");
51
+ _this._webComponentRenderer.updateRoot(_this._webComponentWrapper);
52
+ _this._webComponentWrapper.setStyleProperty("display", "block");
53
+ _this._webComponentWrapper.setStyleProperty("width", "100%");
54
+ _this._webComponentWrapper.setStyleProperty("height", "100%");
55
+ _this._actionsAdapter = new CollectionAdapter(_this.contentActions, _this.i.actions, _this.actualActions, function (c) { return c.i; }, function (i) {
56
+ if (_this._webComponentRenderer && _this._webComponentRenderer.rootWrapper.getNativeElement().parentElement) {
57
+ i._styling(_this, _this, _this);
58
+ }
59
+ }, function (i) { });
60
+ _this.i.provideContainer(_this._webComponentRenderer);
61
+ _this.i.notifySizeChanged();
62
+ var mut = new MutationObserver(function (list) {
63
+ var e_1, _b;
64
+ try {
65
+ for (var list_1 = tslib_1.__values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) {
66
+ var mutation = list_1_1.value;
67
+ if (mutation.type == 'childList') {
68
+ _this.updateContentProperties();
69
+ }
70
+ }
71
+ }
72
+ catch (e_1_1) {
73
+ e_1 = { error: e_1_1 };
74
+ }
75
+ finally {
76
+ try {
77
+ if (list_1_1 && !list_1_1.done && (_b = list_1.return))
78
+ _b.call(list_1);
79
+ }
80
+ finally {
81
+ if (e_1)
82
+ throw e_1.error;
83
+ }
84
+ }
85
+ });
86
+ mut.observe(_this, {
87
+ childList: true
88
+ });
89
+ _this._webComponentRenderer.addSizeWatcher(function () {
90
+ _this.i.notifySizeChanged();
91
+ });
92
+ return _this;
93
+ }
94
+ Object.defineProperty(IgcToolPanelComponent.prototype, "height", {
95
+ get: function () {
96
+ return this._height;
97
+ },
98
+ set: function (value) {
99
+ this._height = value;
100
+ this.style.height = value;
101
+ this.i.notifySizeChanged();
102
+ },
103
+ enumerable: true,
104
+ configurable: true
105
+ });
106
+ Object.defineProperty(IgcToolPanelComponent.prototype, "width", {
107
+ get: function () {
108
+ return this._width;
109
+ },
110
+ set: function (value) {
111
+ this._width = value;
112
+ this.style.width = value;
113
+ this.i.notifySizeChanged();
114
+ },
115
+ enumerable: true,
116
+ configurable: true
117
+ });
118
+ Object.defineProperty(IgcToolPanelComponent.prototype, "actions", {
119
+ /**
120
+ * A collection of manually added actions for the editor.
121
+ */
122
+ get: function () {
123
+ var _this = this;
124
+ if (this._actions === null) {
125
+ var coll = new IgcToolActionCollection();
126
+ var inner = coll._innerColl;
127
+ inner.addListener(function (sender, e) {
128
+ switch (e.action) {
129
+ case NotifyCollectionChangedAction.Add:
130
+ _this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
131
+ break;
132
+ case NotifyCollectionChangedAction.Remove:
133
+ _this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
134
+ break;
135
+ case NotifyCollectionChangedAction.Replace:
136
+ _this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
137
+ _this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
138
+ break;
139
+ case NotifyCollectionChangedAction.Reset:
140
+ _this._actionsAdapter.clearManualItems();
141
+ break;
142
+ }
143
+ });
144
+ this._actions = coll;
145
+ }
146
+ return this._actions;
147
+ },
148
+ enumerable: true,
149
+ configurable: true
150
+ });
151
+ // supports angular themes or custom properties set in CSS
152
+ IgcToolPanelComponent.prototype.updateStyle = function () {
153
+ this._styling(this, this);
154
+ };
155
+ IgcToolPanelComponent.prototype.destroy = function () {
156
+ this._implementation.destroy();
157
+ this._webComponentRenderer.destroy();
158
+ };
159
+ IgcToolPanelComponent.prototype.updateContentProperties = function () {
160
+ this.contentActions.length = 0;
161
+ for (var i = 0; i < this.children.length; i++) {
162
+ if (this.children[i] instanceof IgcToolActionComponent) {
163
+ this.contentActions.push(this.children[i]);
164
+ }
165
+ }
166
+ if (this._actionsAdapter != null) {
167
+ this._actionsAdapter.notifyContentChanged();
168
+ }
169
+ };
170
+ IgcToolPanelComponent.prototype.createImplementation = function () {
171
+ return new ToolPanel();
172
+ };
173
+ Object.defineProperty(IgcToolPanelComponent.prototype, "i", {
174
+ get: function () {
175
+ return this._implementation;
176
+ },
177
+ enumerable: true,
178
+ configurable: true
179
+ });
180
+ IgcToolPanelComponent.prototype.disconnectedCallback = function () {
181
+ this._disconnected = true;
182
+ };
183
+ IgcToolPanelComponent.prototype.connectedCallback = function () {
184
+ if (this._disconnected) {
185
+ this._disconnected = false;
186
+ return;
187
+ }
188
+ this.classList.add("ig-tool-panel");
189
+ this.classList.add("igc-tool-panel");
190
+ var rootWrapper = this._webComponentRenderer.rootWrapper;
191
+ var rootElement = rootWrapper.getNativeElement();
192
+ this.appendChild(rootElement);
193
+ this._attached = true;
194
+ this.style.display = "block";
195
+ this.style.height = this._height;
196
+ this.style.width = this._width;
197
+ this._flushQueuedAttributes();
198
+ // supports themes or custom properties set in CSS
199
+ this._styling(this, this);
200
+ for (var i = 0; i < this.actualActions.length; i++) {
201
+ var s = this.actualActions[i];
202
+ s._styling(this, this, this);
203
+ }
204
+ this.afterContentInit();
205
+ };
206
+ IgcToolPanelComponent.prototype.afterContentInit = function () {
207
+ this.i.notifySizeChanged();
208
+ };
209
+ IgcToolPanelComponent.prototype._enqueueSetAttribute = function (attrName, attrValue) {
210
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
211
+ };
212
+ IgcToolPanelComponent.prototype._flushQueuedAttributes = function () {
213
+ this._settingAttributes = true;
214
+ for (var i = 0; i < this._queuedSetAttributes.length; i++) {
215
+ this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
216
+ }
217
+ this._settingAttributes = false;
218
+ this._queuedSetAttributes.length = 0;
219
+ };
220
+ IgcToolPanelComponent.prototype._a = function (attrName, attrValue) {
221
+ if (this._updatingFromAttribute) {
222
+ return;
223
+ }
224
+ if (attrValue) {
225
+ attrValue = attrValue.toString();
226
+ }
227
+ this._settingAttributes = true;
228
+ attrName = toSpinal(attrName);
229
+ if (this._attached) {
230
+ this.setAttribute(attrName, attrValue);
231
+ }
232
+ else {
233
+ this._enqueueSetAttribute(attrName, attrValue);
234
+ }
235
+ this._settingAttributes = false;
236
+ };
237
+ Object.defineProperty(IgcToolPanelComponent, "observedAttributes", {
238
+ get: function () {
239
+ if (IgcToolPanelComponent._observedAttributesIgcToolPanelComponent == null) {
240
+ var names = getAllPropertyNames(IgcToolPanelComponent);
241
+ for (var i = 0; i < names.length; i++) {
242
+ names[i] = toSpinal(names[i]);
243
+ }
244
+ IgcToolPanelComponent._observedAttributesIgcToolPanelComponent = names;
245
+ }
246
+ return IgcToolPanelComponent._observedAttributesIgcToolPanelComponent;
247
+ },
248
+ enumerable: true,
249
+ configurable: true
250
+ });
251
+ IgcToolPanelComponent.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
252
+ if (this._settingAttributes) {
253
+ return;
254
+ }
255
+ var setName = fromSpinal(name);
256
+ this._updatingFromAttribute = true;
257
+ this[setName] = newValue;
258
+ this._updatingFromAttribute = false;
259
+ };
260
+ IgcToolPanelComponent.register = function () {
261
+ if (!IgcToolPanelComponent._isElementRegistered) {
262
+ IgcToolPanelComponent._isElementRegistered = true;
263
+ RegisterElementHelper.registerElement(IgcToolPanelComponent.htmlTagName, IgcToolPanelComponent);
264
+ }
265
+ };
266
+ Object.defineProperty(IgcToolPanelComponent.prototype, "cellTextStyle", {
267
+ /**
268
+ * Gets or Sets the property name that contains the values.
269
+ */
270
+ get: function () {
271
+ if (this.i.n == null) {
272
+ return null;
273
+ }
274
+ return this.i.n.fontString;
275
+ },
276
+ set: function (v) {
277
+ var fi = new FontInfo();
278
+ fi.fontString = v;
279
+ this.i.n = fi;
280
+ this._a("cellTextStyle", this.i.n != null ? this.i.n.fontString : "");
281
+ },
282
+ enumerable: true,
283
+ configurable: true
284
+ });
285
+ Object.defineProperty(IgcToolPanelComponent.prototype, "backgroundColor", {
286
+ /**
287
+ * Gets or sets the color to use for the background of the component.
288
+ */
289
+ get: function () {
290
+ return brushToString(this.i.a6);
291
+ },
292
+ set: function (v) {
293
+ this.i.a6 = stringToBrush(v);
294
+ this._a("backgroundColor", brushToString(this.i.a6));
295
+ },
296
+ enumerable: true,
297
+ configurable: true
298
+ });
299
+ Object.defineProperty(IgcToolPanelComponent.prototype, "textColor", {
300
+ /**
301
+ * Gets or sets the color to use for the text of the component.
302
+ */
303
+ get: function () {
304
+ return brushToString(this.i.a9);
305
+ },
306
+ set: function (v) {
307
+ this.i.a9 = stringToBrush(v);
308
+ this._a("textColor", brushToString(this.i.a9));
309
+ },
310
+ enumerable: true,
311
+ configurable: true
312
+ });
313
+ Object.defineProperty(IgcToolPanelComponent.prototype, "orientation", {
314
+ /**
315
+ * Gets or sets the color to use for the background of the component.
316
+ */
317
+ get: function () {
318
+ return this.i.k;
319
+ },
320
+ set: function (v) {
321
+ this.i.k = ensureEnum(ToolPanelOrientation_$type, v);
322
+ this._a("orientation", enumToString(ToolPanelOrientation_$type, this.i.k));
323
+ },
324
+ enumerable: true,
325
+ configurable: true
326
+ });
327
+ IgcToolPanelComponent.prototype.findByName = function (name) {
328
+ if (this.actions != null && this.actions.findByName && this.actions.findByName(name)) {
329
+ return this.actions.findByName(name);
330
+ }
331
+ return null;
332
+ };
333
+ Object.defineProperty(IgcToolPanelComponent.prototype, "hasUserValues", {
334
+ get: function () {
335
+ return this._hasUserValues;
336
+ },
337
+ enumerable: true,
338
+ configurable: true
339
+ });
340
+ IgcToolPanelComponent.prototype.__m = function (propertyName) {
341
+ if (!this._inStyling) {
342
+ this._hasUserValues.add(propertyName);
343
+ }
344
+ };
345
+ IgcToolPanelComponent.prototype._styling = function (container, component, parent) {
346
+ if (this._inStyling) {
347
+ return;
348
+ }
349
+ this._inStyling = true;
350
+ this._stylingContainer = container;
351
+ this._stylingParent = component;
352
+ var genericPrefix = "";
353
+ var typeName = this.i.$type.name;
354
+ if (typeName.indexOf("Xam") === 0) {
355
+ typeName = typeName.substring(3);
356
+ }
357
+ genericPrefix = toSpinal("ToolPanelComponent");
358
+ var additionalPrefixes = [];
359
+ var prefix = toSpinal(typeName);
360
+ additionalPrefixes.push(prefix + "-");
361
+ var b = this.i.$type.baseType;
362
+ while (b && b.name != "Object" &&
363
+ b.name != "Base" &&
364
+ b.name != "Control" &&
365
+ b.Name != "DependencyObject" &&
366
+ b.Name != "FrameworkElement") {
367
+ typeName = b.name;
368
+ if (typeName.indexOf("Xam") === 0) {
369
+ typeName = typeName.substring(3);
370
+ }
371
+ var basePrefix = toSpinal(typeName);
372
+ additionalPrefixes.push(basePrefix + "-");
373
+ b = b.baseType;
374
+ }
375
+ if (parent) {
376
+ var parentTypeName = parent.i.$type.name;
377
+ if (parentTypeName.indexOf("Xam") === 0) {
378
+ parentTypeName = parentTypeName.substring(3);
379
+ }
380
+ var parentPrefix = toSpinal(parentTypeName);
381
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
382
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
383
+ }
384
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
385
+ if (this._otherStyling) {
386
+ this._otherStyling(container, component, parent);
387
+ }
388
+ this._inStyling = false;
389
+ };
390
+ Object.defineProperty(IgcToolPanelComponent.prototype, "contentRefreshed", {
391
+ get: function () {
392
+ return this._contentRefreshed;
393
+ },
394
+ set: function (ev) {
395
+ var _this = this;
396
+ if (this._contentRefreshed_wrapped !== null) {
397
+ this.i.contentRefreshed = delegateRemove(this.i.contentRefreshed, this._contentRefreshed_wrapped);
398
+ this._contentRefreshed_wrapped = null;
399
+ this._contentRefreshed = null;
400
+ }
401
+ this._contentRefreshed = ev;
402
+ this._contentRefreshed_wrapped = function (o, e) {
403
+ var outerArgs = new IgcToolPanelContentRefreshedEventArgs();
404
+ outerArgs._provideImplementation(e);
405
+ if (_this.beforeContentRefreshed) {
406
+ _this.beforeContentRefreshed(_this, outerArgs);
407
+ }
408
+ if (_this._contentRefreshed) {
409
+ _this._contentRefreshed(_this, outerArgs);
410
+ }
411
+ };
412
+ this.i.contentRefreshed = delegateCombine(this.i.contentRefreshed, this._contentRefreshed_wrapped);
413
+ },
414
+ enumerable: true,
415
+ configurable: true
416
+ });
417
+ Object.defineProperty(IgcToolPanelComponent.prototype, "onCommand", {
418
+ get: function () {
419
+ return this._onCommand;
420
+ },
421
+ set: function (ev) {
422
+ var _this = this;
423
+ if (this._onCommand_wrapped !== null) {
424
+ this.i.onCommand = delegateRemove(this.i.onCommand, this._onCommand_wrapped);
425
+ this._onCommand_wrapped = null;
426
+ this._onCommand = null;
427
+ }
428
+ this._onCommand = ev;
429
+ this._onCommand_wrapped = function (o, e) {
430
+ var outerArgs = new IgcToolCommandEventArgs();
431
+ outerArgs._provideImplementation(e);
432
+ if (_this.beforeOnCommand) {
433
+ _this.beforeOnCommand(_this, outerArgs);
434
+ }
435
+ if (_this._onCommand) {
436
+ _this._onCommand(_this, outerArgs);
437
+ }
438
+ };
439
+ this.i.onCommand = delegateCombine(this.i.onCommand, this._onCommand_wrapped);
440
+ },
441
+ enumerable: true,
442
+ configurable: true
443
+ });
444
+ IgcToolPanelComponent._observedAttributesIgcToolPanelComponent = null;
445
+ IgcToolPanelComponent.htmlTagName = "igc-tool-panel";
446
+ IgcToolPanelComponent._isElementRegistered = false;
447
+ return IgcToolPanelComponent;
448
+ }(IgcHTMLElement));
449
+ export { IgcToolPanelComponent };
@@ -0,0 +1,30 @@
1
+ import { ToolPanelContentRefreshedEventArgs as ToolPanelContentRefreshedEventArgs_internal } from "./ToolPanelContentRefreshedEventArgs";
2
+ var IgcToolPanelContentRefreshedEventArgs = /** @class */ /*@__PURE__*/ (function () {
3
+ function IgcToolPanelContentRefreshedEventArgs() {
4
+ this._implementation = this.createImplementation();
5
+ this._implementation.externalObject = this;
6
+ this.onImplementationCreated();
7
+ }
8
+ IgcToolPanelContentRefreshedEventArgs.prototype.createImplementation = function () {
9
+ return new ToolPanelContentRefreshedEventArgs_internal();
10
+ };
11
+ Object.defineProperty(IgcToolPanelContentRefreshedEventArgs.prototype, "i", {
12
+ /**
13
+ * @hidden
14
+ */
15
+ get: function () {
16
+ return this._implementation;
17
+ },
18
+ enumerable: true,
19
+ configurable: true
20
+ });
21
+ IgcToolPanelContentRefreshedEventArgs.prototype.onImplementationCreated = function () {
22
+ };
23
+ IgcToolPanelContentRefreshedEventArgs.prototype._provideImplementation = function (i) {
24
+ this._implementation = i;
25
+ this._implementation.externalObject = this;
26
+ this.onImplementationCreated();
27
+ };
28
+ return IgcToolPanelContentRefreshedEventArgs;
29
+ }());
30
+ export { IgcToolPanelContentRefreshedEventArgs };
@@ -0,0 +1,33 @@
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 { IgcListPanelModule } from './igc-list-panel-module';
8
+ import { IgcToolActionCheckboxModule } from './igc-tool-action-checkbox-module';
9
+ import { IgcToolActionGroupHeaderModule } from './igc-tool-action-group-header-module';
10
+ import { IgcToolActionNumberInputModule } from './igc-tool-action-number-input-module';
11
+ import { IgcToolActionIconButtonModule } from './igc-tool-action-icon-button-module';
12
+ import { IgcToolActionIconMenuModule } from './igc-tool-action-icon-menu-module';
13
+ import { IgcToolPanelComponent } from './igc-tool-panel-component';
14
+ import { ToolPanel } from './ToolPanel';
15
+ import { TypeRegistrar } from "igniteui-webcomponents-core";
16
+ var IgcToolPanelModule = /** @class */ /*@__PURE__*/ (function () {
17
+ function IgcToolPanelModule() {
18
+ }
19
+ IgcToolPanelModule.register = function () {
20
+ IgcListPanelModule.register();
21
+ IgcToolActionCheckboxModule.register();
22
+ IgcToolActionGroupHeaderModule.register();
23
+ IgcToolActionNumberInputModule.register();
24
+ IgcToolActionIconButtonModule.register();
25
+ IgcToolActionIconMenuModule.register();
26
+ IgcToolPanelComponent.register();
27
+ TypeRegistrar.registerCons('IgcToolPanelComponent', IgcToolPanelComponent);
28
+ TypeRegistrar.registerCons('IgcToolPanelComponent', IgcToolPanelComponent);
29
+ TypeRegistrar.register('ToolPanel', ToolPanel.$type);
30
+ };
31
+ return IgcToolPanelModule;
32
+ }());
33
+ export { IgcToolPanelModule };