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,484 @@
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 { CollectionAdapter } from "igniteui-webcomponents-core";
6
+ import { NotifyCollectionChangedAction } from "igniteui-webcomponents-core";
7
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
8
+ import { Toolbar } from "./Toolbar";
9
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
10
+ import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
11
+ import { ToolbarOrientation_$type } from './ToolbarOrientation';
12
+ import { ToolActionCollection as ToolActionCollection_internal } from "./ToolActionCollection";
13
+ import { ToolAction } from "./ToolAction";
14
+ import { IgcToolActionComponent } from "./igc-tool-action-component";
15
+ import { IgcToolActionCollection } from "./igc-tool-action-collection";
16
+ var IgcToolbarComponent = /** @class */ /*@__PURE__*/ (function (_super) {
17
+ tslib_1.__extends(IgcToolbarComponent, _super);
18
+ function IgcToolbarComponent() {
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.combinedActions = [];
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._autoGeneratedActions = null;
35
+ _this._actualActions = null;
36
+ _this.__p = null;
37
+ _this._hasUserValues = new Set();
38
+ _this._stylingContainer = null;
39
+ _this._stylingParent = null;
40
+ _this._inStyling = false;
41
+ if (_this._styling) {
42
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
43
+ }
44
+ _this._implementation = _this.createImplementation();
45
+ _this._implementation.externalObject = _this;
46
+ _this._portalManager = new PortalManager("toolbarContent");
47
+ _this._webComponentRenderer = new WebComponentRenderer(_this, document, true, {}, _this._portalManager);
48
+ _this._webComponentWrapper = _this._webComponentRenderer.createElement("div");
49
+ _this._webComponentRenderer.updateRoot(_this._webComponentWrapper);
50
+ _this._webComponentWrapper.setStyleProperty("display", "block");
51
+ _this._webComponentWrapper.setStyleProperty("width", "100%");
52
+ _this._webComponentWrapper.setStyleProperty("height", "100%");
53
+ _this._actionsAdapter = new CollectionAdapter(_this.contentActions, _this.i.actions, _this.combinedActions, function (c) { return c.i; }, function (i) {
54
+ if (_this._webComponentRenderer && _this._webComponentRenderer.rootWrapper.getNativeElement().parentElement) {
55
+ i._styling(_this, _this, _this);
56
+ }
57
+ }, function (i) { });
58
+ _this.i.provideContainer(_this._webComponentRenderer);
59
+ _this.i.notifySizeChanged();
60
+ var mut = new MutationObserver(function (list) {
61
+ var e_1, _b;
62
+ try {
63
+ for (var list_1 = tslib_1.__values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) {
64
+ var mutation = list_1_1.value;
65
+ if (mutation.type == 'childList') {
66
+ _this.updateContentProperties();
67
+ }
68
+ }
69
+ }
70
+ catch (e_1_1) {
71
+ e_1 = { error: e_1_1 };
72
+ }
73
+ finally {
74
+ try {
75
+ if (list_1_1 && !list_1_1.done && (_b = list_1.return))
76
+ _b.call(list_1);
77
+ }
78
+ finally {
79
+ if (e_1)
80
+ throw e_1.error;
81
+ }
82
+ }
83
+ });
84
+ mut.observe(_this, {
85
+ childList: true
86
+ });
87
+ _this._webComponentRenderer.addSizeWatcher(function () {
88
+ _this.i.notifySizeChanged();
89
+ });
90
+ return _this;
91
+ }
92
+ Object.defineProperty(IgcToolbarComponent.prototype, "height", {
93
+ get: function () {
94
+ return this._height;
95
+ },
96
+ set: function (value) {
97
+ this._height = value;
98
+ this.style.height = value;
99
+ this.i.notifySizeChanged();
100
+ },
101
+ enumerable: true,
102
+ configurable: true
103
+ });
104
+ Object.defineProperty(IgcToolbarComponent.prototype, "width", {
105
+ get: function () {
106
+ return this._width;
107
+ },
108
+ set: function (value) {
109
+ this._width = value;
110
+ this.style.width = value;
111
+ this.i.notifySizeChanged();
112
+ },
113
+ enumerable: true,
114
+ configurable: true
115
+ });
116
+ Object.defineProperty(IgcToolbarComponent.prototype, "actions", {
117
+ /**
118
+ * A collection of manually added actions for the editor.
119
+ */
120
+ get: function () {
121
+ var _this = this;
122
+ if (this._actions === null) {
123
+ var coll = new IgcToolActionCollection();
124
+ var inner = coll._innerColl;
125
+ inner.addListener(function (sender, e) {
126
+ switch (e.action) {
127
+ case NotifyCollectionChangedAction.Add:
128
+ _this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
129
+ break;
130
+ case NotifyCollectionChangedAction.Remove:
131
+ _this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
132
+ break;
133
+ case NotifyCollectionChangedAction.Replace:
134
+ _this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
135
+ _this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
136
+ break;
137
+ case NotifyCollectionChangedAction.Reset:
138
+ _this._actionsAdapter.clearManualItems();
139
+ break;
140
+ }
141
+ });
142
+ this._actions = coll;
143
+ }
144
+ return this._actions;
145
+ },
146
+ enumerable: true,
147
+ configurable: true
148
+ });
149
+ // supports angular themes or custom properties set in CSS
150
+ IgcToolbarComponent.prototype.updateStyle = function () {
151
+ this._styling(this, this);
152
+ };
153
+ IgcToolbarComponent.prototype.destroy = function () {
154
+ this._implementation.destroy();
155
+ this._webComponentRenderer.destroy();
156
+ };
157
+ IgcToolbarComponent.prototype.updateContentProperties = function () {
158
+ this.contentActions.length = 0;
159
+ for (var i = 0; i < this.children.length; i++) {
160
+ if (this.children[i] instanceof IgcToolActionComponent) {
161
+ this.contentActions.push(this.children[i]);
162
+ }
163
+ }
164
+ if (this._actionsAdapter != null) {
165
+ this._actionsAdapter.notifyContentChanged();
166
+ }
167
+ };
168
+ IgcToolbarComponent.prototype.createImplementation = function () {
169
+ return new Toolbar();
170
+ };
171
+ Object.defineProperty(IgcToolbarComponent.prototype, "i", {
172
+ get: function () {
173
+ return this._implementation;
174
+ },
175
+ enumerable: true,
176
+ configurable: true
177
+ });
178
+ IgcToolbarComponent.prototype.disconnectedCallback = function () {
179
+ this._disconnected = true;
180
+ };
181
+ IgcToolbarComponent.prototype.connectedCallback = function () {
182
+ if (this._disconnected) {
183
+ this._disconnected = false;
184
+ return;
185
+ }
186
+ this.classList.add("ig-toolbar");
187
+ this.classList.add("igc-toolbar");
188
+ var rootWrapper = this._webComponentRenderer.rootWrapper;
189
+ var rootElement = rootWrapper.getNativeElement();
190
+ this.appendChild(rootElement);
191
+ this._attached = true;
192
+ this.style.display = "block";
193
+ this.style.height = this._height;
194
+ this.style.width = this._width;
195
+ this._flushQueuedAttributes();
196
+ // supports themes or custom properties set in CSS
197
+ this._styling(this, this);
198
+ for (var i = 0; i < this.combinedActions.length; i++) {
199
+ var s = this.combinedActions[i];
200
+ s._styling(this, this, this);
201
+ }
202
+ this.afterContentInit();
203
+ };
204
+ IgcToolbarComponent.prototype.afterContentInit = function () {
205
+ this.i.notifySizeChanged();
206
+ };
207
+ IgcToolbarComponent.prototype._enqueueSetAttribute = function (attrName, attrValue) {
208
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
209
+ };
210
+ IgcToolbarComponent.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
+ IgcToolbarComponent.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(IgcToolbarComponent, "observedAttributes", {
236
+ get: function () {
237
+ if (IgcToolbarComponent._observedAttributesIgcToolbarComponent == null) {
238
+ var names = getAllPropertyNames(IgcToolbarComponent);
239
+ for (var i = 0; i < names.length; i++) {
240
+ names[i] = toSpinal(names[i]);
241
+ }
242
+ IgcToolbarComponent._observedAttributesIgcToolbarComponent = names;
243
+ }
244
+ return IgcToolbarComponent._observedAttributesIgcToolbarComponent;
245
+ },
246
+ enumerable: true,
247
+ configurable: true
248
+ });
249
+ IgcToolbarComponent.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
+ IgcToolbarComponent.register = function () {
259
+ if (!IgcToolbarComponent._isElementRegistered) {
260
+ IgcToolbarComponent._isElementRegistered = true;
261
+ RegisterElementHelper.registerElement(IgcToolbarComponent.htmlTagName, IgcToolbarComponent);
262
+ }
263
+ };
264
+ Object.defineProperty(IgcToolbarComponent.prototype, "autoGeneratedActions", {
265
+ /**
266
+ * Gets or sets the data or data source instance to which to bind the grid.
267
+ */
268
+ get: function () {
269
+ if (this._autoGeneratedActions === null) {
270
+ var coll = new IgcToolActionCollection();
271
+ var innerColl = this.i.autoGeneratedActions;
272
+ if (!innerColl) {
273
+ innerColl = new ToolActionCollection_internal();
274
+ }
275
+ this._autoGeneratedActions = coll._fromInner(innerColl);
276
+ this.i.autoGeneratedActions = innerColl;
277
+ }
278
+ return this._autoGeneratedActions;
279
+ },
280
+ set: function (v) {
281
+ if (this._autoGeneratedActions !== null) {
282
+ this._autoGeneratedActions._setSyncTarget(null);
283
+ this._autoGeneratedActions = null;
284
+ }
285
+ var coll = new IgcToolActionCollection();
286
+ this._autoGeneratedActions = coll._fromOuter(v);
287
+ var syncColl = new SyncableObservableCollection$1(ToolAction.$type);
288
+ var innerColl = this.i.autoGeneratedActions;
289
+ if (!innerColl) {
290
+ innerColl = new ToolActionCollection_internal();
291
+ }
292
+ syncColl._inner = innerColl;
293
+ syncColl.clear();
294
+ this._autoGeneratedActions._setSyncTarget(syncColl);
295
+ this.i.autoGeneratedActions = innerColl;
296
+ },
297
+ enumerable: true,
298
+ configurable: true
299
+ });
300
+ Object.defineProperty(IgcToolbarComponent.prototype, "actualActions", {
301
+ /**
302
+ * Gets or sets the data or data source instance to which to bind the grid.
303
+ */
304
+ get: function () {
305
+ if (this._actualActions === null) {
306
+ var coll = new IgcToolActionCollection();
307
+ var innerColl = this.i.actualActions;
308
+ if (!innerColl) {
309
+ innerColl = new ToolActionCollection_internal();
310
+ }
311
+ this._actualActions = coll._fromInner(innerColl);
312
+ this.i.actualActions = innerColl;
313
+ }
314
+ return this._actualActions;
315
+ },
316
+ set: function (v) {
317
+ if (this._actualActions !== null) {
318
+ this._actualActions._setSyncTarget(null);
319
+ this._actualActions = null;
320
+ }
321
+ var coll = new IgcToolActionCollection();
322
+ this._actualActions = coll._fromOuter(v);
323
+ var syncColl = new SyncableObservableCollection$1(ToolAction.$type);
324
+ var innerColl = this.i.actualActions;
325
+ if (!innerColl) {
326
+ innerColl = new ToolActionCollection_internal();
327
+ }
328
+ syncColl._inner = innerColl;
329
+ syncColl.clear();
330
+ this._actualActions._setSyncTarget(syncColl);
331
+ this.i.actualActions = innerColl;
332
+ },
333
+ enumerable: true,
334
+ configurable: true
335
+ });
336
+ Object.defineProperty(IgcToolbarComponent.prototype, "orientation", {
337
+ /**
338
+ * Gets or sets the color to use for the background of the component.
339
+ */
340
+ get: function () {
341
+ return this.i.j;
342
+ },
343
+ set: function (v) {
344
+ this.i.j = ensureEnum(ToolbarOrientation_$type, v);
345
+ this._a("orientation", enumToString(ToolbarOrientation_$type, this.i.j));
346
+ },
347
+ enumerable: true,
348
+ configurable: true
349
+ });
350
+ Object.defineProperty(IgcToolbarComponent.prototype, "target", {
351
+ /**
352
+ * Gets or sets the color to use for the background of the component.
353
+ */
354
+ get: function () {
355
+ return this.i.w;
356
+ },
357
+ set: function (v) {
358
+ this.i.w = v;
359
+ },
360
+ enumerable: true,
361
+ configurable: true
362
+ });
363
+ Object.defineProperty(IgcToolbarComponent.prototype, "backgroundColor", {
364
+ /**
365
+ * Gets or sets the color to use for the background of the component.
366
+ */
367
+ get: function () {
368
+ return brushToString(this.i.ay);
369
+ },
370
+ set: function (v) {
371
+ this.i.ay = stringToBrush(v);
372
+ this._a("backgroundColor", brushToString(this.i.ay));
373
+ },
374
+ enumerable: true,
375
+ configurable: true
376
+ });
377
+ Object.defineProperty(IgcToolbarComponent.prototype, "textColor", {
378
+ /**
379
+ * Gets or sets the color to use for the text of the component.
380
+ */
381
+ get: function () {
382
+ return brushToString(this.i.a1);
383
+ },
384
+ set: function (v) {
385
+ this.i.a1 = stringToBrush(v);
386
+ this._a("textColor", brushToString(this.i.a1));
387
+ },
388
+ enumerable: true,
389
+ configurable: true
390
+ });
391
+ Object.defineProperty(IgcToolbarComponent.prototype, "cellTextStyle", {
392
+ /**
393
+ * Gets or Sets the property name that contains the values.
394
+ */
395
+ get: function () {
396
+ if (this.i.o == null) {
397
+ return null;
398
+ }
399
+ return this.i.o.fontString;
400
+ },
401
+ set: function (v) {
402
+ var fi = new FontInfo();
403
+ fi.fontString = v;
404
+ this.i.o = fi;
405
+ this._a("cellTextStyle", this.i.o != null ? this.i.o.fontString : "");
406
+ },
407
+ enumerable: true,
408
+ configurable: true
409
+ });
410
+ IgcToolbarComponent.prototype.findByName = function (name) {
411
+ if (this.autoGeneratedActions != null && this.autoGeneratedActions.findByName && this.autoGeneratedActions.findByName(name)) {
412
+ return this.autoGeneratedActions.findByName(name);
413
+ }
414
+ if (this.actions != null && this.actions.findByName && this.actions.findByName(name)) {
415
+ return this.actions.findByName(name);
416
+ }
417
+ if (this.actualActions != null && this.actualActions.findByName && this.actualActions.findByName(name)) {
418
+ return this.actualActions.findByName(name);
419
+ }
420
+ return null;
421
+ };
422
+ Object.defineProperty(IgcToolbarComponent.prototype, "hasUserValues", {
423
+ get: function () {
424
+ return this._hasUserValues;
425
+ },
426
+ enumerable: true,
427
+ configurable: true
428
+ });
429
+ IgcToolbarComponent.prototype.__m = function (propertyName) {
430
+ if (!this._inStyling) {
431
+ this._hasUserValues.add(propertyName);
432
+ }
433
+ };
434
+ IgcToolbarComponent.prototype._styling = function (container, component, parent) {
435
+ if (this._inStyling) {
436
+ return;
437
+ }
438
+ this._inStyling = true;
439
+ this._stylingContainer = container;
440
+ this._stylingParent = component;
441
+ var genericPrefix = "";
442
+ var typeName = this.i.$type.name;
443
+ if (typeName.indexOf("Xam") === 0) {
444
+ typeName = typeName.substring(3);
445
+ }
446
+ genericPrefix = toSpinal("ToolbarComponent");
447
+ var additionalPrefixes = [];
448
+ var prefix = toSpinal(typeName);
449
+ additionalPrefixes.push(prefix + "-");
450
+ var b = this.i.$type.baseType;
451
+ while (b && b.name != "Object" &&
452
+ b.name != "Base" &&
453
+ b.name != "Control" &&
454
+ b.Name != "DependencyObject" &&
455
+ b.Name != "FrameworkElement") {
456
+ typeName = b.name;
457
+ if (typeName.indexOf("Xam") === 0) {
458
+ typeName = typeName.substring(3);
459
+ }
460
+ var basePrefix = toSpinal(typeName);
461
+ additionalPrefixes.push(basePrefix + "-");
462
+ b = b.baseType;
463
+ }
464
+ if (parent) {
465
+ var parentTypeName = parent.i.$type.name;
466
+ if (parentTypeName.indexOf("Xam") === 0) {
467
+ parentTypeName = parentTypeName.substring(3);
468
+ }
469
+ var parentPrefix = toSpinal(parentTypeName);
470
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
471
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
472
+ }
473
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
474
+ if (this._otherStyling) {
475
+ this._otherStyling(container, component, parent);
476
+ }
477
+ this._inStyling = false;
478
+ };
479
+ IgcToolbarComponent._observedAttributesIgcToolbarComponent = null;
480
+ IgcToolbarComponent.htmlTagName = "igc-toolbar";
481
+ IgcToolbarComponent._isElementRegistered = false;
482
+ return IgcToolbarComponent;
483
+ }(IgcHTMLElement));
484
+ export { IgcToolbarComponent };
@@ -0,0 +1,23 @@
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 { IgcToolPanelModule } from './igc-tool-panel-module';
8
+ import { IgcToolbarComponent } from './igc-toolbar-component';
9
+ import { Toolbar } from './Toolbar';
10
+ import { TypeRegistrar } from "igniteui-webcomponents-core";
11
+ var IgcToolbarModule = /** @class */ /*@__PURE__*/ (function () {
12
+ function IgcToolbarModule() {
13
+ }
14
+ IgcToolbarModule.register = function () {
15
+ IgcToolPanelModule.register();
16
+ IgcToolbarComponent.register();
17
+ TypeRegistrar.registerCons('IgcToolbarComponent', IgcToolbarComponent);
18
+ TypeRegistrar.registerCons('IgcToolbarComponent', IgcToolbarComponent);
19
+ TypeRegistrar.register('Toolbar', Toolbar.$type);
20
+ };
21
+ return IgcToolbarModule;
22
+ }());
23
+ export { IgcToolbarModule };
@@ -4,9 +4,18 @@ export * from './lib/igc-popup-module';
4
4
  export * from './lib/igc-popup-component';
5
5
  export * from './lib/igc-property-editor-panel-module';
6
6
  export * from './lib/igc-property-editor-panel-component';
7
+ export * from './lib/igc-list-panel-component';
8
+ export * from './lib/igc-list-panel-module';
9
+ export * from './lib/igc-tool-panel-component';
10
+ export * from './lib/igc-toolbar-component';
11
+ export * from './lib/igc-tool-panel-module';
12
+ export * from './lib/igc-toolbar-module';
13
+ export * from './lib/ToolbarView';
14
+ export * from './lib/ToolPanelView';
7
15
  export * from './lib/PopupView';
8
16
  export * from './lib/ExpansionPanelView';
9
17
  export * from './lib/ExpansionPanelUtilities';
18
+ export * from './lib/ListPanelView';
10
19
  export * from './lib/PropertyEditorPanelView';
11
20
  export * from './lib/PopupAlignment';
12
21
  export * from './lib/PopupDirection';
@@ -18,10 +27,74 @@ export * from './lib/OnPopupEventArgs';
18
27
  export * from './lib/igc-on-popup-event-args';
19
28
  export * from './lib/OnClosedEventArgs';
20
29
  export * from './lib/igc-on-closed-event-args';
30
+ export * from './lib/ToolActionSeparator';
31
+ export * from './lib/igc-tool-action-separator-component';
32
+ export * from './lib/igc-tool-action-separator-module';
33
+ export * from './lib/ToolActionIconButton';
34
+ export * from './lib/igc-tool-action-icon-button-component';
35
+ export * from './lib/igc-tool-action-icon-button-module';
36
+ export * from './lib/ToolActionGroupHeader';
37
+ export * from './lib/igc-tool-action-group-header-component';
38
+ export * from './lib/igc-tool-action-group-header-module';
39
+ export * from './lib/ToolActionIconMenu';
40
+ export * from './lib/igc-tool-action-icon-menu-component';
41
+ export * from './lib/igc-tool-action-icon-menu-module';
42
+ export * from './lib/ToolActionCheckbox';
43
+ export * from './lib/igc-tool-action-checkbox-component';
44
+ export * from './lib/igc-tool-action-checkbox-module';
45
+ export * from './lib/ToolActionNumberInput';
46
+ export * from './lib/igc-tool-action-number-input-component';
47
+ export * from './lib/igc-tool-action-number-input-module';
48
+ export * from './lib/ToolAction';
49
+ export * from './lib/igc-tool-action-component';
50
+ export * from './lib/igc-tool-action-module';
51
+ export * from './lib/igc-tool-action-collection';
52
+ export * from './lib/ToolActionCollection';
53
+ export * from './lib/ToolActionMenuBase';
54
+ export * from './lib/igc-tool-action-menu-base-component';
55
+ export * from './lib/IExternalToolbar';
56
+ export * from './lib/IToolbarView';
57
+ export * from './lib/Toolbar';
58
+ export * from './lib/ToolbarOrientation';
59
+ export * from './lib/ToolPanelOrientation';
60
+ export * from './lib/ToolCommandEventArgs';
61
+ export * from './lib/igc-tool-command-event-args';
62
+ export * from './lib/ToolPanelContentRefreshedEventArgs';
63
+ export * from './lib/igc-tool-panel-content-refreshed-event-args';
64
+ export * from './lib/ToolActionPerformedEventArgs';
65
+ export * from './lib/igc-tool-action-performed-event-args';
66
+ export * from './lib/ToolActionEventDetail';
67
+ export * from './lib/igc-tool-action-event-detail';
68
+ export * from './lib/igc-tool-action-event-detail-collection';
69
+ export * from './lib/ToolActionEventDetailCollection';
70
+ export * from './lib/ToolbarIconManager';
71
+ export * from './lib/IExternalToolPanel';
72
+ export * from './lib/IToolPanelView';
73
+ export * from './lib/ToolPanel';
74
+ export * from './lib/ToolActionMeasurementContext';
21
75
  export * from './lib/Popup';
22
76
  export * from './lib/Popup_OuterAnimationInfo';
23
77
  export * from './lib/Popup_InnerAnimationInfo';
24
78
  export * from './lib/XExpansionPanel';
79
+ export * from './lib/IExternalListPanel';
80
+ export * from './lib/IListPanelView';
81
+ export * from './lib/ListPanel';
82
+ export * from './lib/ListPanelContentRefreshedEventArgs';
83
+ export * from './lib/igc-list-panel-content-refreshed-event-args';
84
+ export * from './lib/ListPanelOrientation';
85
+ export * from './lib/ListPanelTemplateHeightRequestedEventArgs';
86
+ export * from './lib/igc-list-panel-template-height-requested-event-args';
87
+ export * from './lib/ListPanelTemplateWidthRequestedEventArgs';
88
+ export * from './lib/igc-list-panel-template-width-requested-event-args';
89
+ export * from './lib/ListPanelTemplateItemUpdatingEventArgs';
90
+ export * from './lib/igc-list-panel-template-item-updating-event-args';
91
+ export * from './lib/ListPanelDataBindingEventArgs';
92
+ export * from './lib/ListPanelDataSourceNotificationBridge';
93
+ export * from './lib/ListPanelLayoutPanel';
94
+ export * from './lib/ListPanelItemModel';
95
+ export * from './lib/igc-list-panel-item-model';
96
+ export * from './lib/ListPanelItemPresenter';
97
+ export * from './lib/IPropertyEditorPanelView';
25
98
  export * from './lib/PropertyEditorPanel';
26
99
  export * from './lib/PropertyEditorPanelColumnType';
27
100
  export * from './lib/PropertyEditorPanelColumnFieldType';