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.
- package/bundles/igniteui-webcomponents-layouts.umd.js +6905 -138
- package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
- package/esm2015/lib/IExternalListPanel.js +11 -0
- package/esm2015/lib/IExternalToolPanel.js +11 -0
- package/esm2015/lib/IExternalToolbar.js +11 -0
- package/esm2015/lib/IListPanelView.js +11 -0
- package/esm2015/lib/IPropertyEditorPanelView.js +11 -0
- package/esm2015/lib/IToolPanelView.js +11 -0
- package/esm2015/lib/IToolbarView.js +11 -0
- package/esm2015/lib/ListPanel.js +7 -0
- package/esm2015/lib/ListPanelContentRefreshedEventArgs.js +19 -0
- package/esm2015/lib/ListPanelDataBindingEventArgs.js +22 -0
- package/esm2015/lib/ListPanelDataSourceNotificationBridge.js +7 -0
- package/esm2015/lib/ListPanelItemModel.js +62 -0
- package/esm2015/lib/ListPanelItemPresenter.js +20 -0
- package/esm2015/lib/ListPanelLayoutPanel.js +7 -0
- package/esm2015/lib/ListPanelOrientation.js +16 -0
- package/esm2015/lib/ListPanelTemplateHeightRequestedEventArgs.js +22 -0
- package/esm2015/lib/ListPanelTemplateItemUpdatingEventArgs.js +22 -0
- package/esm2015/lib/ListPanelTemplateWidthRequestedEventArgs.js +22 -0
- package/esm2015/lib/ListPanelView.js +7 -0
- package/esm2015/lib/ListPanelView_combined.js +972 -0
- package/esm2015/lib/PropertyEditorPanelView_combined.js +100 -100
- package/esm2015/lib/ToolAction.js +7 -0
- package/esm2015/lib/ToolActionCheckbox.js +7 -0
- package/esm2015/lib/ToolActionCollection.js +7 -0
- package/esm2015/lib/ToolActionEventDetail.js +7 -0
- package/esm2015/lib/ToolActionEventDetailCollection.js +7 -0
- package/esm2015/lib/ToolActionGroupHeader.js +7 -0
- package/esm2015/lib/ToolActionIconButton.js +7 -0
- package/esm2015/lib/ToolActionIconMenu.js +7 -0
- package/esm2015/lib/ToolActionMeasurementContext.js +31 -0
- package/esm2015/lib/ToolActionMenuBase.js +7 -0
- package/esm2015/lib/ToolActionNumberInput.js +7 -0
- package/esm2015/lib/ToolActionPerformedEventArgs.js +7 -0
- package/esm2015/lib/ToolActionSeparator.js +7 -0
- package/esm2015/lib/ToolCommandEventArgs.js +20 -0
- package/esm2015/lib/ToolPanel.js +7 -0
- package/esm2015/lib/ToolPanelContentRefreshedEventArgs.js +19 -0
- package/esm2015/lib/ToolPanelOrientation.js +16 -0
- package/esm2015/lib/ToolPanelView.js +7 -0
- package/esm2015/lib/ToolPanelView_combined.js +1515 -0
- package/esm2015/lib/Toolbar.js +7 -0
- package/esm2015/lib/ToolbarIconManager.js +40 -0
- package/esm2015/lib/ToolbarOrientation.js +16 -0
- package/esm2015/lib/ToolbarView.js +7 -0
- package/esm2015/lib/ToolbarView_combined.js +387 -0
- package/esm2015/lib/igc-list-panel-component.js +457 -0
- package/esm2015/lib/igc-list-panel-content-refreshed-event-args.js +24 -0
- package/esm2015/lib/igc-list-panel-item-model.js +52 -0
- package/esm2015/lib/igc-list-panel-module.js +17 -0
- package/esm2015/lib/igc-list-panel-template-height-requested-event-args.js +42 -0
- package/esm2015/lib/igc-list-panel-template-item-updating-event-args.js +45 -0
- package/esm2015/lib/igc-list-panel-template-width-requested-event-args.js +42 -0
- package/esm2015/lib/igc-property-editor-panel-component.js +1 -5
- package/esm2015/lib/igc-tool-action-checkbox-component.js +49 -0
- package/esm2015/lib/igc-tool-action-checkbox-module.js +16 -0
- package/esm2015/lib/igc-tool-action-collection.js +48 -0
- package/esm2015/lib/igc-tool-action-component.js +312 -0
- package/esm2015/lib/igc-tool-action-event-detail-collection.js +48 -0
- package/esm2015/lib/igc-tool-action-event-detail.js +85 -0
- package/esm2015/lib/igc-tool-action-group-header-component.js +49 -0
- package/esm2015/lib/igc-tool-action-group-header-module.js +16 -0
- package/esm2015/lib/igc-tool-action-icon-button-component.js +49 -0
- package/esm2015/lib/igc-tool-action-icon-button-module.js +16 -0
- package/esm2015/lib/igc-tool-action-icon-menu-component.js +49 -0
- package/esm2015/lib/igc-tool-action-icon-menu-module.js +16 -0
- package/esm2015/lib/igc-tool-action-menu-base-component.js +89 -0
- package/esm2015/lib/igc-tool-action-module.js +16 -0
- package/esm2015/lib/igc-tool-action-number-input-component.js +49 -0
- package/esm2015/lib/igc-tool-action-number-input-module.js +16 -0
- package/esm2015/lib/igc-tool-action-performed-event-args.js +80 -0
- package/esm2015/lib/igc-tool-action-separator-component.js +49 -0
- package/esm2015/lib/igc-tool-action-separator-module.js +16 -0
- package/esm2015/lib/igc-tool-command-event-args.js +30 -0
- package/esm2015/lib/igc-tool-panel-component.js +379 -0
- package/esm2015/lib/igc-tool-panel-content-refreshed-event-args.js +24 -0
- package/esm2015/lib/igc-tool-panel-module.js +29 -0
- package/esm2015/lib/igc-toolbar-component.js +412 -0
- package/esm2015/lib/igc-toolbar-module.js +19 -0
- package/esm2015/public_api.js +73 -0
- package/esm5/lib/IExternalListPanel.js +11 -0
- package/esm5/lib/IExternalToolPanel.js +11 -0
- package/esm5/lib/IExternalToolbar.js +11 -0
- package/esm5/lib/IListPanelView.js +11 -0
- package/esm5/lib/IPropertyEditorPanelView.js +11 -0
- package/esm5/lib/IToolPanelView.js +11 -0
- package/esm5/lib/IToolbarView.js +11 -0
- package/esm5/lib/ListPanel.js +7 -0
- package/esm5/lib/ListPanelContentRefreshedEventArgs.js +20 -0
- package/esm5/lib/ListPanelDataBindingEventArgs.js +24 -0
- package/esm5/lib/ListPanelDataSourceNotificationBridge.js +7 -0
- package/esm5/lib/ListPanelItemModel.js +80 -0
- package/esm5/lib/ListPanelItemPresenter.js +22 -0
- package/esm5/lib/ListPanelLayoutPanel.js +7 -0
- package/esm5/lib/ListPanelOrientation.js +16 -0
- package/esm5/lib/ListPanelTemplateHeightRequestedEventArgs.js +24 -0
- package/esm5/lib/ListPanelTemplateItemUpdatingEventArgs.js +24 -0
- package/esm5/lib/ListPanelTemplateWidthRequestedEventArgs.js +24 -0
- package/esm5/lib/ListPanelView.js +7 -0
- package/esm5/lib/ListPanelView_combined.js +1045 -0
- package/esm5/lib/PropertyEditorPanelView_combined.js +100 -100
- package/esm5/lib/ToolAction.js +7 -0
- package/esm5/lib/ToolActionCheckbox.js +7 -0
- package/esm5/lib/ToolActionCollection.js +7 -0
- package/esm5/lib/ToolActionEventDetail.js +7 -0
- package/esm5/lib/ToolActionEventDetailCollection.js +7 -0
- package/esm5/lib/ToolActionGroupHeader.js +7 -0
- package/esm5/lib/ToolActionIconButton.js +7 -0
- package/esm5/lib/ToolActionIconMenu.js +7 -0
- package/esm5/lib/ToolActionMeasurementContext.js +33 -0
- package/esm5/lib/ToolActionMenuBase.js +7 -0
- package/esm5/lib/ToolActionNumberInput.js +7 -0
- package/esm5/lib/ToolActionPerformedEventArgs.js +7 -0
- package/esm5/lib/ToolActionSeparator.js +7 -0
- package/esm5/lib/ToolCommandEventArgs.js +22 -0
- package/esm5/lib/ToolPanel.js +7 -0
- package/esm5/lib/ToolPanelContentRefreshedEventArgs.js +20 -0
- package/esm5/lib/ToolPanelOrientation.js +16 -0
- package/esm5/lib/ToolPanelView.js +7 -0
- package/esm5/lib/ToolPanelView_combined.js +1663 -0
- package/esm5/lib/Toolbar.js +7 -0
- package/esm5/lib/ToolbarIconManager.js +44 -0
- package/esm5/lib/ToolbarOrientation.js +16 -0
- package/esm5/lib/ToolbarView.js +7 -0
- package/esm5/lib/ToolbarView_combined.js +459 -0
- package/esm5/lib/igc-list-panel-component.js +535 -0
- package/esm5/lib/igc-list-panel-content-refreshed-event-args.js +30 -0
- package/esm5/lib/igc-list-panel-item-model.js +74 -0
- package/esm5/lib/igc-list-panel-module.js +21 -0
- package/esm5/lib/igc-list-panel-template-height-requested-event-args.js +60 -0
- package/esm5/lib/igc-list-panel-template-item-updating-event-args.js +59 -0
- package/esm5/lib/igc-list-panel-template-width-requested-event-args.js +60 -0
- package/esm5/lib/igc-property-editor-panel-component.js +1 -5
- package/esm5/lib/igc-tool-action-checkbox-component.js +58 -0
- package/esm5/lib/igc-tool-action-checkbox-module.js +20 -0
- package/esm5/lib/igc-tool-action-collection.js +53 -0
- package/esm5/lib/igc-tool-action-component.js +388 -0
- package/esm5/lib/igc-tool-action-event-detail-collection.js +53 -0
- package/esm5/lib/igc-tool-action-event-detail.js +119 -0
- package/esm5/lib/igc-tool-action-group-header-component.js +58 -0
- package/esm5/lib/igc-tool-action-group-header-module.js +20 -0
- package/esm5/lib/igc-tool-action-icon-button-component.js +58 -0
- package/esm5/lib/igc-tool-action-icon-button-module.js +20 -0
- package/esm5/lib/igc-tool-action-icon-menu-component.js +58 -0
- package/esm5/lib/igc-tool-action-icon-menu-module.js +20 -0
- package/esm5/lib/igc-tool-action-menu-base-component.js +103 -0
- package/esm5/lib/igc-tool-action-module.js +20 -0
- package/esm5/lib/igc-tool-action-number-input-component.js +58 -0
- package/esm5/lib/igc-tool-action-number-input-module.js +20 -0
- package/esm5/lib/igc-tool-action-performed-event-args.js +98 -0
- package/esm5/lib/igc-tool-action-separator-component.js +58 -0
- package/esm5/lib/igc-tool-action-separator-module.js +20 -0
- package/esm5/lib/igc-tool-command-event-args.js +40 -0
- package/esm5/lib/igc-tool-panel-component.js +449 -0
- package/esm5/lib/igc-tool-panel-content-refreshed-event-args.js +30 -0
- package/esm5/lib/igc-tool-panel-module.js +33 -0
- package/esm5/lib/igc-toolbar-component.js +484 -0
- package/esm5/lib/igc-toolbar-module.js +23 -0
- package/esm5/public_api.js +73 -0
- package/fesm2015/igniteui-webcomponents-layouts.js +6030 -140
- package/fesm5/igniteui-webcomponents-layouts.js +6831 -140
- package/lib/IExternalListPanel.d.ts +13 -0
- package/lib/IExternalToolPanel.d.ts +13 -0
- package/lib/IExternalToolbar.d.ts +13 -0
- package/lib/IListPanelView.d.ts +25 -0
- package/lib/IPropertyEditorPanelView.d.ts +26 -0
- package/lib/IToolPanelView.d.ts +25 -0
- package/lib/IToolbarView.d.ts +25 -0
- package/lib/ListPanel.d.ts +1 -0
- package/lib/ListPanelContentRefreshedEventArgs.d.ts +8 -0
- package/lib/ListPanelDataBindingEventArgs.d.ts +10 -0
- package/lib/ListPanelDataSourceNotificationBridge.d.ts +1 -0
- package/lib/ListPanelItemModel.d.ts +22 -0
- package/lib/ListPanelItemPresenter.d.ts +9 -0
- package/lib/ListPanelLayoutPanel.d.ts +1 -0
- package/lib/ListPanelOrientation.d.ts +9 -0
- package/lib/ListPanelTemplateHeightRequestedEventArgs.d.ts +10 -0
- package/lib/ListPanelTemplateItemUpdatingEventArgs.d.ts +12 -0
- package/lib/ListPanelTemplateWidthRequestedEventArgs.d.ts +10 -0
- package/lib/ListPanelView.d.ts +1 -0
- package/lib/ListPanelView_combined.d.ts +197 -0
- package/lib/PropertyEditorPanelView_combined.d.ts +1 -1
- package/lib/ToolAction.d.ts +1 -0
- package/lib/ToolActionCheckbox.d.ts +1 -0
- package/lib/ToolActionCollection.d.ts +1 -0
- package/lib/ToolActionEventDetail.d.ts +1 -0
- package/lib/ToolActionEventDetailCollection.d.ts +1 -0
- package/lib/ToolActionGroupHeader.d.ts +1 -0
- package/lib/ToolActionIconButton.d.ts +1 -0
- package/lib/ToolActionIconMenu.d.ts +1 -0
- package/lib/ToolActionMeasurementContext.d.ts +16 -0
- package/lib/ToolActionMenuBase.d.ts +1 -0
- package/lib/ToolActionNumberInput.d.ts +1 -0
- package/lib/ToolActionPerformedEventArgs.d.ts +1 -0
- package/lib/ToolActionSeparator.d.ts +1 -0
- package/lib/ToolCommandEventArgs.d.ts +10 -0
- package/lib/ToolPanel.d.ts +1 -0
- package/lib/ToolPanelContentRefreshedEventArgs.d.ts +8 -0
- package/lib/ToolPanelOrientation.d.ts +9 -0
- package/lib/ToolPanelView.d.ts +1 -0
- package/lib/ToolPanelView_combined.d.ts +328 -0
- package/lib/Toolbar.d.ts +1 -0
- package/lib/ToolbarIconManager.d.ts +10 -0
- package/lib/ToolbarOrientation.d.ts +9 -0
- package/lib/ToolbarView.d.ts +1 -0
- package/lib/ToolbarView_combined.d.ts +98 -0
- package/lib/igc-list-panel-component.d.ts +122 -0
- package/lib/igc-list-panel-content-refreshed-event-args.d.ts +12 -0
- package/lib/igc-list-panel-item-model.d.ts +17 -0
- package/lib/igc-list-panel-module.d.ts +3 -0
- package/lib/igc-list-panel-template-height-requested-event-args.d.ts +15 -0
- package/lib/igc-list-panel-template-item-updating-event-args.d.ts +15 -0
- package/lib/igc-list-panel-template-width-requested-event-args.d.ts +15 -0
- package/lib/igc-property-editor-panel-component.d.ts +0 -2
- package/lib/igc-tool-action-checkbox-component.d.ts +16 -0
- package/lib/igc-tool-action-checkbox-module.d.ts +3 -0
- package/lib/igc-tool-action-collection.d.ts +8 -0
- package/lib/igc-tool-action-component.d.ts +64 -0
- package/lib/igc-tool-action-event-detail-collection.d.ts +8 -0
- package/lib/igc-tool-action-event-detail.d.ts +22 -0
- package/lib/igc-tool-action-group-header-component.d.ts +16 -0
- package/lib/igc-tool-action-group-header-module.d.ts +3 -0
- package/lib/igc-tool-action-icon-button-component.d.ts +16 -0
- package/lib/igc-tool-action-icon-button-module.d.ts +3 -0
- package/lib/igc-tool-action-icon-menu-component.d.ts +16 -0
- package/lib/igc-tool-action-icon-menu-module.d.ts +3 -0
- package/lib/igc-tool-action-menu-base-component.d.ts +24 -0
- package/lib/igc-tool-action-module.d.ts +3 -0
- package/lib/igc-tool-action-number-input-component.d.ts +16 -0
- package/lib/igc-tool-action-number-input-module.d.ts +3 -0
- package/lib/igc-tool-action-performed-event-args.d.ts +18 -0
- package/lib/igc-tool-action-separator-component.d.ts +16 -0
- package/lib/igc-tool-action-separator-module.d.ts +3 -0
- package/lib/igc-tool-command-event-args.d.ts +14 -0
- package/lib/igc-tool-panel-component.d.ts +83 -0
- package/lib/igc-tool-panel-content-refreshed-event-args.d.ts +12 -0
- package/lib/igc-tool-panel-module.d.ts +3 -0
- package/lib/igc-toolbar-component.d.ts +89 -0
- package/lib/igc-toolbar-module.d.ts +3 -0
- package/package.json +3 -3
- 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 };
|