igniteui-webcomponents-layouts 3.2.3 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/igniteui-webcomponents-layouts.umd.js +7675 -276
- 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 +106 -106
- package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +84 -58
- package/esm2015/lib/PropertyEditorTreeTransformer.js +1 -0
- package/esm2015/lib/PropertyEditorValueType.js +2 -1
- 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/ToolActionLabel.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/ToolActionRadio.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 +1699 -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 +466 -0
- package/esm2015/lib/igc-list-panel-content-refreshed-event-args.js +24 -0
- package/esm2015/lib/igc-list-panel-item-model.js +57 -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 +51 -0
- package/esm2015/lib/igc-list-panel-template-width-requested-event-args.js +42 -0
- package/esm2015/lib/igc-popup-component.js +7 -0
- package/esm2015/lib/igc-property-editor-data-source.js +7 -2
- package/esm2015/lib/igc-property-editor-description-object.js +5 -0
- package/esm2015/lib/igc-property-editor-panel-component.js +6 -5
- package/esm2015/lib/igc-property-editor-property-description-component.js +33 -5
- package/esm2015/lib/igc-tool-action-checkbox-component.js +63 -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 +333 -0
- package/esm2015/lib/igc-tool-action-event-detail-collection.js +48 -0
- package/esm2015/lib/igc-tool-action-event-detail.js +91 -0
- package/esm2015/lib/igc-tool-action-group-header-component.js +63 -0
- package/esm2015/lib/igc-tool-action-group-header-module.js +16 -0
- package/esm2015/lib/igc-tool-action-icon-button-component.js +63 -0
- package/esm2015/lib/igc-tool-action-icon-button-module.js +16 -0
- package/esm2015/lib/igc-tool-action-icon-menu-component.js +63 -0
- package/esm2015/lib/igc-tool-action-icon-menu-module.js +16 -0
- package/esm2015/lib/igc-tool-action-label-component.js +63 -0
- package/esm2015/lib/igc-tool-action-label-module.js +16 -0
- package/esm2015/lib/igc-tool-action-menu-base-component.js +103 -0
- package/esm2015/lib/igc-tool-action-module.js +16 -0
- package/esm2015/lib/igc-tool-action-number-input-component.js +63 -0
- package/esm2015/lib/igc-tool-action-number-input-module.js +16 -0
- package/esm2015/lib/igc-tool-action-performed-event-args.js +86 -0
- package/esm2015/lib/igc-tool-action-radio-component.js +69 -0
- package/esm2015/lib/igc-tool-action-radio-module.js +16 -0
- package/esm2015/lib/igc-tool-action-separator-component.js +63 -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 +386 -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 +417 -0
- package/esm2015/lib/igc-toolbar-module.js +19 -0
- package/esm2015/lib/igc-x-expansion-panel-component.js +7 -0
- package/esm2015/public_api.js +79 -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 +106 -106
- package/esm5/lib/PropertyEditorPropertyDescription_combined.js +82 -57
- package/esm5/lib/PropertyEditorTreeTransformer.js +1 -0
- package/esm5/lib/PropertyEditorValueType.js +2 -1
- 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/ToolActionLabel.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/ToolActionRadio.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 +1853 -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 +544 -0
- package/esm5/lib/igc-list-panel-content-refreshed-event-args.js +30 -0
- package/esm5/lib/igc-list-panel-item-model.js +79 -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 +65 -0
- package/esm5/lib/igc-list-panel-template-width-requested-event-args.js +60 -0
- package/esm5/lib/igc-popup-component.js +7 -0
- package/esm5/lib/igc-property-editor-data-source.js +7 -2
- package/esm5/lib/igc-property-editor-description-object.js +5 -0
- package/esm5/lib/igc-property-editor-panel-component.js +6 -5
- package/esm5/lib/igc-property-editor-property-description-component.js +33 -5
- package/esm5/lib/igc-tool-action-checkbox-component.js +72 -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 +409 -0
- package/esm5/lib/igc-tool-action-event-detail-collection.js +53 -0
- package/esm5/lib/igc-tool-action-event-detail.js +125 -0
- package/esm5/lib/igc-tool-action-group-header-component.js +72 -0
- package/esm5/lib/igc-tool-action-group-header-module.js +20 -0
- package/esm5/lib/igc-tool-action-icon-button-component.js +72 -0
- package/esm5/lib/igc-tool-action-icon-button-module.js +20 -0
- package/esm5/lib/igc-tool-action-icon-menu-component.js +72 -0
- package/esm5/lib/igc-tool-action-icon-menu-module.js +20 -0
- package/esm5/lib/igc-tool-action-label-component.js +72 -0
- package/esm5/lib/igc-tool-action-label-module.js +20 -0
- package/esm5/lib/igc-tool-action-menu-base-component.js +117 -0
- package/esm5/lib/igc-tool-action-module.js +20 -0
- package/esm5/lib/igc-tool-action-number-input-component.js +72 -0
- package/esm5/lib/igc-tool-action-number-input-module.js +20 -0
- package/esm5/lib/igc-tool-action-performed-event-args.js +104 -0
- package/esm5/lib/igc-tool-action-radio-component.js +82 -0
- package/esm5/lib/igc-tool-action-radio-module.js +20 -0
- package/esm5/lib/igc-tool-action-separator-component.js +72 -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 +456 -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 +489 -0
- package/esm5/lib/igc-toolbar-module.js +23 -0
- package/esm5/lib/igc-x-expansion-panel-component.js +7 -0
- package/esm5/public_api.js +79 -0
- package/fesm2015/igniteui-webcomponents-layouts.js +6751 -262
- package/fesm5/igniteui-webcomponents-layouts.js +7595 -278
- 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/PropertyEditorPropertyDescription_combined.d.ts +13 -10
- package/lib/PropertyEditorValueType.d.ts +2 -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/ToolActionLabel.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/ToolActionRadio.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 +355 -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-property-editor-property-description-component.d.ts +1 -0
- package/lib/igc-tool-action-checkbox-component.d.ts +17 -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 +65 -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 +17 -0
- package/lib/igc-tool-action-group-header-module.d.ts +3 -0
- package/lib/igc-tool-action-icon-button-component.d.ts +17 -0
- package/lib/igc-tool-action-icon-button-module.d.ts +3 -0
- package/lib/igc-tool-action-icon-menu-component.d.ts +17 -0
- package/lib/igc-tool-action-icon-menu-module.d.ts +3 -0
- package/lib/igc-tool-action-label-component.d.ts +17 -0
- package/lib/igc-tool-action-label-module.d.ts +3 -0
- package/lib/igc-tool-action-menu-base-component.d.ts +25 -0
- package/lib/igc-tool-action-module.d.ts +3 -0
- package/lib/igc-tool-action-number-input-component.d.ts +17 -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-radio-component.d.ts +18 -0
- package/lib/igc-tool-action-radio-module.d.ts +3 -0
- package/lib/igc-tool-action-separator-component.d.ts +17 -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 +79 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { IgcToolActionEventDetail } from "./igc-tool-action-event-detail";
|
|
2
|
+
import { IgcToolActionEventDetailCollection } from "./igc-tool-action-event-detail-collection";
|
|
3
|
+
import { ToolActionPerformedEventArgs as ToolActionPerformedEventArgs_internal } from "./ToolActionPerformedEventArgs";
|
|
4
|
+
import { ensureBool } from "igniteui-webcomponents-core";
|
|
5
|
+
import { ToolActionEventDetailCollection as ToolActionEventDetailCollection_internal } from "./ToolActionEventDetailCollection";
|
|
6
|
+
import { ToolActionEventDetail } from "./ToolActionEventDetail";
|
|
7
|
+
import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
|
|
8
|
+
export class IgcToolActionPerformedEventArgs {
|
|
9
|
+
constructor() {
|
|
10
|
+
this._detailCollection = null;
|
|
11
|
+
this._implementation = this.createImplementation();
|
|
12
|
+
this._implementation.externalObject = this;
|
|
13
|
+
this.onImplementationCreated();
|
|
14
|
+
}
|
|
15
|
+
createImplementation() {
|
|
16
|
+
return new ToolActionPerformedEventArgs_internal();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
get i() {
|
|
22
|
+
return this._implementation;
|
|
23
|
+
}
|
|
24
|
+
onImplementationCreated() {
|
|
25
|
+
}
|
|
26
|
+
_provideImplementation(i) {
|
|
27
|
+
this._implementation = i;
|
|
28
|
+
this._implementation.externalObject = this;
|
|
29
|
+
this.onImplementationCreated();
|
|
30
|
+
}
|
|
31
|
+
get isAggregate() {
|
|
32
|
+
return this.i.c;
|
|
33
|
+
}
|
|
34
|
+
set isAggregate(v) {
|
|
35
|
+
this.i.c = ensureBool(v);
|
|
36
|
+
}
|
|
37
|
+
get detail() {
|
|
38
|
+
const r = this.i.a;
|
|
39
|
+
if (r == null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
if (!r.externalObject) {
|
|
43
|
+
let e = new IgcToolActionEventDetail();
|
|
44
|
+
if (e.i.setNativeElement) {
|
|
45
|
+
e.i.setNativeElement(r);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
e._implementation = r;
|
|
49
|
+
}
|
|
50
|
+
r.externalObject = e;
|
|
51
|
+
}
|
|
52
|
+
return r.externalObject;
|
|
53
|
+
}
|
|
54
|
+
set detail(v) {
|
|
55
|
+
v == null ? this.i.a = null : this.i.a = v.i;
|
|
56
|
+
}
|
|
57
|
+
get detailCollection() {
|
|
58
|
+
if (this._detailCollection === null) {
|
|
59
|
+
let coll = new IgcToolActionEventDetailCollection();
|
|
60
|
+
let innerColl = this.i.b;
|
|
61
|
+
if (!innerColl) {
|
|
62
|
+
innerColl = new ToolActionEventDetailCollection_internal();
|
|
63
|
+
}
|
|
64
|
+
this._detailCollection = coll._fromInner(innerColl);
|
|
65
|
+
this.i.b = innerColl;
|
|
66
|
+
}
|
|
67
|
+
return this._detailCollection;
|
|
68
|
+
}
|
|
69
|
+
set detailCollection(v) {
|
|
70
|
+
if (this._detailCollection !== null) {
|
|
71
|
+
this._detailCollection._setSyncTarget(null);
|
|
72
|
+
this._detailCollection = null;
|
|
73
|
+
}
|
|
74
|
+
let coll = new IgcToolActionEventDetailCollection();
|
|
75
|
+
this._detailCollection = coll._fromOuter(v);
|
|
76
|
+
let syncColl = new SyncableObservableCollection$1(ToolActionEventDetail.$type);
|
|
77
|
+
let innerColl = this.i.b;
|
|
78
|
+
if (!innerColl) {
|
|
79
|
+
innerColl = new ToolActionEventDetailCollection_internal();
|
|
80
|
+
}
|
|
81
|
+
syncColl._inner = innerColl;
|
|
82
|
+
syncColl.clear();
|
|
83
|
+
this._detailCollection._setSyncTarget(syncColl);
|
|
84
|
+
this.i.b = innerColl;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IgcToolActionComponent } from "./igc-tool-action-component";
|
|
2
|
+
import { ToolActionRadio } from "./ToolActionRadio";
|
|
3
|
+
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
|
|
4
|
+
import { RegisterElementHelper } from "igniteui-webcomponents-core";
|
|
5
|
+
export let IgcToolActionRadioComponent = /*@__PURE__*/ (() => {
|
|
6
|
+
class IgcToolActionRadioComponent extends IgcToolActionComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
createImplementation() {
|
|
11
|
+
return new ToolActionRadio();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
get i() {
|
|
17
|
+
return this._implementation;
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
if (super["connectedCallback"]) {
|
|
21
|
+
super["connectedCallback"]();
|
|
22
|
+
}
|
|
23
|
+
if (this.i.connectedCallback) {
|
|
24
|
+
this.i.connectedCallback();
|
|
25
|
+
}
|
|
26
|
+
if (!this._attached) {
|
|
27
|
+
this._attached = true;
|
|
28
|
+
this._flushQueuedAttributes();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
if (super["disconnectedCallback"]) {
|
|
33
|
+
super["disconnectedCallback"]();
|
|
34
|
+
}
|
|
35
|
+
if (this.i.disconnectedCallback) {
|
|
36
|
+
this.i.disconnectedCallback();
|
|
37
|
+
}
|
|
38
|
+
if (this._attached) {
|
|
39
|
+
this._attached = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static get observedAttributes() {
|
|
43
|
+
if (IgcToolActionRadioComponent._observedAttributesIgcToolActionRadioComponent == null) {
|
|
44
|
+
let names = getAllPropertyNames(IgcToolActionRadioComponent);
|
|
45
|
+
for (let i = 0; i < names.length; i++) {
|
|
46
|
+
names[i] = toSpinal(names[i]);
|
|
47
|
+
}
|
|
48
|
+
IgcToolActionRadioComponent._observedAttributesIgcToolActionRadioComponent = names;
|
|
49
|
+
}
|
|
50
|
+
return IgcToolActionRadioComponent._observedAttributesIgcToolActionRadioComponent;
|
|
51
|
+
}
|
|
52
|
+
static register() {
|
|
53
|
+
if (!IgcToolActionRadioComponent._isElementRegistered) {
|
|
54
|
+
IgcToolActionRadioComponent._isElementRegistered = true;
|
|
55
|
+
RegisterElementHelper.registerElement(IgcToolActionRadioComponent.htmlTagName, IgcToolActionRadioComponent);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
get radioGroup() {
|
|
59
|
+
return this.i.bf;
|
|
60
|
+
}
|
|
61
|
+
set radioGroup(v) {
|
|
62
|
+
this.i.bf = v;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
IgcToolActionRadioComponent._observedAttributesIgcToolActionRadioComponent = null;
|
|
66
|
+
IgcToolActionRadioComponent.htmlTagName = "igc-tool-action-radio";
|
|
67
|
+
IgcToolActionRadioComponent._isElementRegistered = false;
|
|
68
|
+
return IgcToolActionRadioComponent;
|
|
69
|
+
})();
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { IgcToolActionRadioComponent } from './igc-tool-action-radio-component';
|
|
8
|
+
import { ToolActionRadio } from './ToolActionRadio';
|
|
9
|
+
import { TypeRegistrar } from "igniteui-webcomponents-core";
|
|
10
|
+
export class IgcToolActionRadioModule {
|
|
11
|
+
static register() {
|
|
12
|
+
IgcToolActionRadioComponent.register();
|
|
13
|
+
TypeRegistrar.registerCons("IgcToolActionRadioComponent", IgcToolActionRadioComponent);
|
|
14
|
+
TypeRegistrar.register("ToolActionRadio", ToolActionRadio.$type);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IgcToolActionComponent } from "./igc-tool-action-component";
|
|
2
|
+
import { ToolActionSeparator } from "./ToolActionSeparator";
|
|
3
|
+
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
|
|
4
|
+
import { RegisterElementHelper } from "igniteui-webcomponents-core";
|
|
5
|
+
export let IgcToolActionSeparatorComponent = /*@__PURE__*/ (() => {
|
|
6
|
+
class IgcToolActionSeparatorComponent extends IgcToolActionComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
createImplementation() {
|
|
11
|
+
return new ToolActionSeparator();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
get i() {
|
|
17
|
+
return this._implementation;
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
if (super["connectedCallback"]) {
|
|
21
|
+
super["connectedCallback"]();
|
|
22
|
+
}
|
|
23
|
+
if (this.i.connectedCallback) {
|
|
24
|
+
this.i.connectedCallback();
|
|
25
|
+
}
|
|
26
|
+
if (!this._attached) {
|
|
27
|
+
this._attached = true;
|
|
28
|
+
this._flushQueuedAttributes();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
if (super["disconnectedCallback"]) {
|
|
33
|
+
super["disconnectedCallback"]();
|
|
34
|
+
}
|
|
35
|
+
if (this.i.disconnectedCallback) {
|
|
36
|
+
this.i.disconnectedCallback();
|
|
37
|
+
}
|
|
38
|
+
if (this._attached) {
|
|
39
|
+
this._attached = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static get observedAttributes() {
|
|
43
|
+
if (IgcToolActionSeparatorComponent._observedAttributesIgcToolActionSeparatorComponent == null) {
|
|
44
|
+
let names = getAllPropertyNames(IgcToolActionSeparatorComponent);
|
|
45
|
+
for (let i = 0; i < names.length; i++) {
|
|
46
|
+
names[i] = toSpinal(names[i]);
|
|
47
|
+
}
|
|
48
|
+
IgcToolActionSeparatorComponent._observedAttributesIgcToolActionSeparatorComponent = names;
|
|
49
|
+
}
|
|
50
|
+
return IgcToolActionSeparatorComponent._observedAttributesIgcToolActionSeparatorComponent;
|
|
51
|
+
}
|
|
52
|
+
static register() {
|
|
53
|
+
if (!IgcToolActionSeparatorComponent._isElementRegistered) {
|
|
54
|
+
IgcToolActionSeparatorComponent._isElementRegistered = true;
|
|
55
|
+
RegisterElementHelper.registerElement(IgcToolActionSeparatorComponent.htmlTagName, IgcToolActionSeparatorComponent);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
IgcToolActionSeparatorComponent._observedAttributesIgcToolActionSeparatorComponent = null;
|
|
60
|
+
IgcToolActionSeparatorComponent.htmlTagName = "igc-tool-action-separator";
|
|
61
|
+
IgcToolActionSeparatorComponent._isElementRegistered = false;
|
|
62
|
+
return IgcToolActionSeparatorComponent;
|
|
63
|
+
})();
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { IgcToolActionSeparatorComponent } from './igc-tool-action-separator-component';
|
|
8
|
+
import { ToolActionSeparator } from './ToolActionSeparator';
|
|
9
|
+
import { TypeRegistrar } from "igniteui-webcomponents-core";
|
|
10
|
+
export class IgcToolActionSeparatorModule {
|
|
11
|
+
static register() {
|
|
12
|
+
IgcToolActionSeparatorComponent.register();
|
|
13
|
+
TypeRegistrar.registerCons("IgcToolActionSeparatorComponent", IgcToolActionSeparatorComponent);
|
|
14
|
+
TypeRegistrar.register("ToolActionSeparator", ToolActionSeparator.$type);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ToolCommandEventArgs as ToolCommandEventArgs_internal } from "./ToolCommandEventArgs";
|
|
2
|
+
export class IgcToolCommandEventArgs {
|
|
3
|
+
createImplementation() {
|
|
4
|
+
return new ToolCommandEventArgs_internal();
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
get i() {
|
|
10
|
+
return this._implementation;
|
|
11
|
+
}
|
|
12
|
+
onImplementationCreated() {
|
|
13
|
+
}
|
|
14
|
+
constructor() {
|
|
15
|
+
this._implementation = this.createImplementation();
|
|
16
|
+
this._implementation.externalObject = this;
|
|
17
|
+
this.onImplementationCreated();
|
|
18
|
+
}
|
|
19
|
+
_provideImplementation(i) {
|
|
20
|
+
this._implementation = i;
|
|
21
|
+
this._implementation.externalObject = this;
|
|
22
|
+
this.onImplementationCreated();
|
|
23
|
+
}
|
|
24
|
+
get command() {
|
|
25
|
+
return this.i.a;
|
|
26
|
+
}
|
|
27
|
+
set command(v) {
|
|
28
|
+
this.i.a = v;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { ensureEnum, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher, toSpinal, enumToString, getAllPropertyNames, fromSpinal } from "igniteui-webcomponents-core";
|
|
2
|
+
import { FontInfo } from "igniteui-webcomponents-core";
|
|
3
|
+
import { WebComponentRenderer, PortalManager } from "igniteui-webcomponents-core";
|
|
4
|
+
import { delegateCombine, delegateRemove } 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 { ToolPanel } from "./ToolPanel";
|
|
9
|
+
import { IgcHTMLElement } from "igniteui-webcomponents-core";
|
|
10
|
+
import { ToolPanelOrientation_$type } from './ToolPanelOrientation';
|
|
11
|
+
import { IgcToolActionComponent } from "./igc-tool-action-component";
|
|
12
|
+
import { IgcToolActionCollection } from "./igc-tool-action-collection";
|
|
13
|
+
import { IgcToolPanelContentRefreshedEventArgs } from "./igc-tool-panel-content-refreshed-event-args";
|
|
14
|
+
import { IgcToolCommandEventArgs } from './igc-tool-command-event-args';
|
|
15
|
+
export let IgcToolPanelComponent = /*@__PURE__*/ (() => {
|
|
16
|
+
class IgcToolPanelComponent extends IgcHTMLElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this._implementation = null;
|
|
20
|
+
this.contentActions = [];
|
|
21
|
+
/**
|
|
22
|
+
* The actions actually present in the editor. Do not directly modify this array.
|
|
23
|
+
* This array's contents can be modified by using the actions property or providing child content.
|
|
24
|
+
*/
|
|
25
|
+
this.actualActions = [];
|
|
26
|
+
this._actions = null;
|
|
27
|
+
this._actionsAdapter = null;
|
|
28
|
+
this._disconnected = false;
|
|
29
|
+
this._settingAttributes = false;
|
|
30
|
+
this._attached = false;
|
|
31
|
+
this._queuedSetAttributes = [];
|
|
32
|
+
this._updatingFromAttribute = false;
|
|
33
|
+
this.__p = null;
|
|
34
|
+
this._hasUserValues = new Set();
|
|
35
|
+
this._stylingContainer = null;
|
|
36
|
+
this._stylingParent = null;
|
|
37
|
+
this._inStyling = false;
|
|
38
|
+
this._contentRefreshed = null;
|
|
39
|
+
this._contentRefreshed_wrapped = null;
|
|
40
|
+
this._onCommand = null;
|
|
41
|
+
this._onCommand_wrapped = null;
|
|
42
|
+
if (this._styling) {
|
|
43
|
+
NamePatcher.ensureStylablePatched(Object.getPrototypeOf(this));
|
|
44
|
+
}
|
|
45
|
+
this._implementation = this.createImplementation();
|
|
46
|
+
this._implementation.externalObject = this;
|
|
47
|
+
this._portalManager = new PortalManager("toolPanelContent");
|
|
48
|
+
this._webComponentRenderer = new WebComponentRenderer(this, document, true, {}, this._portalManager);
|
|
49
|
+
this._webComponentWrapper = this._webComponentRenderer.createElement("div");
|
|
50
|
+
this._webComponentRenderer.updateRoot(this._webComponentWrapper);
|
|
51
|
+
this._webComponentWrapper.setStyleProperty("display", "block");
|
|
52
|
+
this._webComponentWrapper.setStyleProperty("width", "100%");
|
|
53
|
+
this._webComponentWrapper.setStyleProperty("height", "100%");
|
|
54
|
+
this._actionsAdapter = new CollectionAdapter(this.contentActions, this.i.actions, this.actualActions, (c) => c.i, (i) => {
|
|
55
|
+
if (this._webComponentRenderer && this._webComponentRenderer.rootWrapper.getNativeElement().parentElement) {
|
|
56
|
+
i._styling(this, this, this);
|
|
57
|
+
}
|
|
58
|
+
}, (i) => { });
|
|
59
|
+
this.i.provideContainer(this._webComponentRenderer);
|
|
60
|
+
this.i.notifySizeChanged();
|
|
61
|
+
let mut = new MutationObserver((list) => {
|
|
62
|
+
for (var mutation of list) {
|
|
63
|
+
if (mutation.type == 'childList') {
|
|
64
|
+
this.updateContentProperties();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
mut.observe(this, {
|
|
69
|
+
childList: true
|
|
70
|
+
});
|
|
71
|
+
this._webComponentRenderer.addSizeWatcher(() => {
|
|
72
|
+
this.i.notifySizeChanged();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
set height(value) {
|
|
76
|
+
this._height = value;
|
|
77
|
+
this.style.height = value;
|
|
78
|
+
this.i.notifySizeChanged();
|
|
79
|
+
}
|
|
80
|
+
get height() {
|
|
81
|
+
return this._height;
|
|
82
|
+
}
|
|
83
|
+
set width(value) {
|
|
84
|
+
this._width = value;
|
|
85
|
+
this.style.width = value;
|
|
86
|
+
this.i.notifySizeChanged();
|
|
87
|
+
}
|
|
88
|
+
get width() {
|
|
89
|
+
return this._width;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A collection of manually added actions for the editor.
|
|
93
|
+
*/
|
|
94
|
+
get actions() {
|
|
95
|
+
if (this._actions === null) {
|
|
96
|
+
let coll = new IgcToolActionCollection();
|
|
97
|
+
let inner = coll._innerColl;
|
|
98
|
+
inner.addListener((sender, e) => {
|
|
99
|
+
switch (e.action) {
|
|
100
|
+
case NotifyCollectionChangedAction.Add:
|
|
101
|
+
this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
|
|
102
|
+
break;
|
|
103
|
+
case NotifyCollectionChangedAction.Remove:
|
|
104
|
+
this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
|
|
105
|
+
break;
|
|
106
|
+
case NotifyCollectionChangedAction.Replace:
|
|
107
|
+
this._actionsAdapter.removeManualItemAt(e.oldStartingIndex);
|
|
108
|
+
this._actionsAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));
|
|
109
|
+
break;
|
|
110
|
+
case NotifyCollectionChangedAction.Reset:
|
|
111
|
+
this._actionsAdapter.clearManualItems();
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
this._actions = coll;
|
|
116
|
+
}
|
|
117
|
+
return this._actions;
|
|
118
|
+
}
|
|
119
|
+
// supports angular themes or custom properties set in CSS
|
|
120
|
+
updateStyle() {
|
|
121
|
+
this._styling(this, this);
|
|
122
|
+
}
|
|
123
|
+
destroy() {
|
|
124
|
+
this._implementation.destroy();
|
|
125
|
+
this._webComponentRenderer.destroy();
|
|
126
|
+
}
|
|
127
|
+
updateContentProperties() {
|
|
128
|
+
this.contentActions.length = 0;
|
|
129
|
+
for (var i = 0; i < this.children.length; i++) {
|
|
130
|
+
if (this.children[i] instanceof IgcToolActionComponent) {
|
|
131
|
+
this.contentActions.push(this.children[i]);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (this._actionsAdapter != null) {
|
|
135
|
+
this._actionsAdapter.notifyContentChanged();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
createImplementation() {
|
|
139
|
+
return new ToolPanel();
|
|
140
|
+
}
|
|
141
|
+
get i() {
|
|
142
|
+
return this._implementation;
|
|
143
|
+
}
|
|
144
|
+
disconnectedCallback() {
|
|
145
|
+
this._disconnected = true;
|
|
146
|
+
}
|
|
147
|
+
connectedCallback() {
|
|
148
|
+
if (this._disconnected) {
|
|
149
|
+
this._disconnected = false;
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this.classList.add("ig-tool-panel");
|
|
153
|
+
this.classList.add("igc-tool-panel");
|
|
154
|
+
var rootWrapper = this._webComponentRenderer.rootWrapper;
|
|
155
|
+
var rootElement = rootWrapper.getNativeElement();
|
|
156
|
+
this.appendChild(rootElement);
|
|
157
|
+
this._attached = true;
|
|
158
|
+
this.style.display = "block";
|
|
159
|
+
this.style.height = this._height;
|
|
160
|
+
this.style.width = this._width;
|
|
161
|
+
this._flushQueuedAttributes();
|
|
162
|
+
// supports themes or custom properties set in CSS
|
|
163
|
+
this._styling(this, this);
|
|
164
|
+
for (let i = 0; i < this.actualActions.length; i++) {
|
|
165
|
+
let s = this.actualActions[i];
|
|
166
|
+
s._styling(this, this, this);
|
|
167
|
+
}
|
|
168
|
+
this.afterContentInit();
|
|
169
|
+
}
|
|
170
|
+
afterContentInit() {
|
|
171
|
+
this.i.notifySizeChanged();
|
|
172
|
+
}
|
|
173
|
+
_enqueueSetAttribute(attrName, attrValue) {
|
|
174
|
+
this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
|
|
175
|
+
}
|
|
176
|
+
_flushQueuedAttributes() {
|
|
177
|
+
this._settingAttributes = true;
|
|
178
|
+
for (let i = 0; i < this._queuedSetAttributes.length; i++) {
|
|
179
|
+
this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
|
|
180
|
+
}
|
|
181
|
+
this._settingAttributes = false;
|
|
182
|
+
this._queuedSetAttributes.length = 0;
|
|
183
|
+
}
|
|
184
|
+
_a(attrName, attrValue) {
|
|
185
|
+
if (this._updatingFromAttribute) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (attrValue) {
|
|
189
|
+
attrValue = attrValue.toString();
|
|
190
|
+
}
|
|
191
|
+
this._settingAttributes = true;
|
|
192
|
+
attrName = toSpinal(attrName);
|
|
193
|
+
if (this._attached) {
|
|
194
|
+
this.setAttribute(attrName, attrValue);
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
this._enqueueSetAttribute(attrName, attrValue);
|
|
198
|
+
}
|
|
199
|
+
this._settingAttributes = false;
|
|
200
|
+
}
|
|
201
|
+
static get observedAttributes() {
|
|
202
|
+
if (IgcToolPanelComponent._observedAttributesIgcToolPanelComponent == null) {
|
|
203
|
+
let names = getAllPropertyNames(IgcToolPanelComponent);
|
|
204
|
+
for (let i = 0; i < names.length; i++) {
|
|
205
|
+
names[i] = toSpinal(names[i]);
|
|
206
|
+
}
|
|
207
|
+
IgcToolPanelComponent._observedAttributesIgcToolPanelComponent = names;
|
|
208
|
+
}
|
|
209
|
+
return IgcToolPanelComponent._observedAttributesIgcToolPanelComponent;
|
|
210
|
+
}
|
|
211
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
212
|
+
if (this._settingAttributes) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
let setName = fromSpinal(name);
|
|
216
|
+
this._updatingFromAttribute = true;
|
|
217
|
+
this[setName] = newValue;
|
|
218
|
+
this._updatingFromAttribute = false;
|
|
219
|
+
}
|
|
220
|
+
static register() {
|
|
221
|
+
if (!IgcToolPanelComponent._isElementRegistered) {
|
|
222
|
+
IgcToolPanelComponent._isElementRegistered = true;
|
|
223
|
+
RegisterElementHelper.registerElement(IgcToolPanelComponent.htmlTagName, IgcToolPanelComponent);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Gets or Sets the property name that contains the values.
|
|
228
|
+
*/
|
|
229
|
+
get cellTextStyle() {
|
|
230
|
+
if (this.i.n == null) {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
return this.i.n.fontString;
|
|
234
|
+
}
|
|
235
|
+
set cellTextStyle(v) {
|
|
236
|
+
let fi = new FontInfo();
|
|
237
|
+
fi.fontString = v;
|
|
238
|
+
this.i.n = fi;
|
|
239
|
+
this._a("cellTextStyle", this.i.n != null ? this.i.n.fontString : "");
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Gets or sets the color to use for the background of the component.
|
|
243
|
+
*/
|
|
244
|
+
get backgroundColor() {
|
|
245
|
+
return brushToString(this.i.a7);
|
|
246
|
+
}
|
|
247
|
+
set backgroundColor(v) {
|
|
248
|
+
this.i.a7 = stringToBrush(v);
|
|
249
|
+
this._a("backgroundColor", brushToString(this.i.a7));
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Gets or sets the color to use for the text of the component.
|
|
253
|
+
*/
|
|
254
|
+
get textColor() {
|
|
255
|
+
return brushToString(this.i.ba);
|
|
256
|
+
}
|
|
257
|
+
set textColor(v) {
|
|
258
|
+
this.i.ba = stringToBrush(v);
|
|
259
|
+
this._a("textColor", brushToString(this.i.ba));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Gets or sets the color to use for the background of the component.
|
|
263
|
+
*/
|
|
264
|
+
get orientation() {
|
|
265
|
+
return this.i.k;
|
|
266
|
+
}
|
|
267
|
+
set orientation(v) {
|
|
268
|
+
this.i.k = ensureEnum(ToolPanelOrientation_$type, v);
|
|
269
|
+
this._a("orientation", enumToString(ToolPanelOrientation_$type, this.i.k));
|
|
270
|
+
}
|
|
271
|
+
findByName(name) {
|
|
272
|
+
if (this.findEphemera) {
|
|
273
|
+
if (name && name.indexOf("@@e:") == 0) {
|
|
274
|
+
return this.findEphemera(name);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (this.actions != null && this.actions.findByName && this.actions.findByName(name)) {
|
|
278
|
+
return this.actions.findByName(name);
|
|
279
|
+
}
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
get hasUserValues() {
|
|
283
|
+
return this._hasUserValues;
|
|
284
|
+
}
|
|
285
|
+
__m(propertyName) {
|
|
286
|
+
if (!this._inStyling) {
|
|
287
|
+
this._hasUserValues.add(propertyName);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
_styling(container, component, parent) {
|
|
291
|
+
if (this._inStyling) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
this._inStyling = true;
|
|
295
|
+
this._stylingContainer = container;
|
|
296
|
+
this._stylingParent = component;
|
|
297
|
+
let genericPrefix = "";
|
|
298
|
+
let typeName = this.i.$type.name;
|
|
299
|
+
if (typeName.indexOf("Xam") === 0) {
|
|
300
|
+
typeName = typeName.substring(3);
|
|
301
|
+
}
|
|
302
|
+
genericPrefix = toSpinal("ToolPanelComponent");
|
|
303
|
+
let additionalPrefixes = [];
|
|
304
|
+
let prefix = toSpinal(typeName);
|
|
305
|
+
additionalPrefixes.push(prefix + "-");
|
|
306
|
+
let b = this.i.$type.baseType;
|
|
307
|
+
while (b && b.name != "Object" &&
|
|
308
|
+
b.name != "Base" &&
|
|
309
|
+
b.name != "Control" &&
|
|
310
|
+
b.Name != "DependencyObject" &&
|
|
311
|
+
b.Name != "FrameworkElement") {
|
|
312
|
+
typeName = b.name;
|
|
313
|
+
if (typeName.indexOf("Xam") === 0) {
|
|
314
|
+
typeName = typeName.substring(3);
|
|
315
|
+
}
|
|
316
|
+
let basePrefix = toSpinal(typeName);
|
|
317
|
+
additionalPrefixes.push(basePrefix + "-");
|
|
318
|
+
b = b.baseType;
|
|
319
|
+
}
|
|
320
|
+
if (parent) {
|
|
321
|
+
let parentTypeName = parent.i.$type.name;
|
|
322
|
+
if (parentTypeName.indexOf("Xam") === 0) {
|
|
323
|
+
parentTypeName = parentTypeName.substring(3);
|
|
324
|
+
}
|
|
325
|
+
let parentPrefix = toSpinal(parentTypeName);
|
|
326
|
+
additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
|
|
327
|
+
additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
|
|
328
|
+
}
|
|
329
|
+
initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
|
|
330
|
+
if (this._otherStyling) {
|
|
331
|
+
this._otherStyling(container, component, parent);
|
|
332
|
+
}
|
|
333
|
+
this._inStyling = false;
|
|
334
|
+
}
|
|
335
|
+
get contentRefreshed() {
|
|
336
|
+
return this._contentRefreshed;
|
|
337
|
+
}
|
|
338
|
+
set contentRefreshed(ev) {
|
|
339
|
+
if (this._contentRefreshed_wrapped !== null) {
|
|
340
|
+
this.i.contentRefreshed = delegateRemove(this.i.contentRefreshed, this._contentRefreshed_wrapped);
|
|
341
|
+
this._contentRefreshed_wrapped = null;
|
|
342
|
+
this._contentRefreshed = null;
|
|
343
|
+
}
|
|
344
|
+
this._contentRefreshed = ev;
|
|
345
|
+
this._contentRefreshed_wrapped = (o, e) => {
|
|
346
|
+
let outerArgs = new IgcToolPanelContentRefreshedEventArgs();
|
|
347
|
+
outerArgs._provideImplementation(e);
|
|
348
|
+
if (this.beforeContentRefreshed) {
|
|
349
|
+
this.beforeContentRefreshed(this, outerArgs);
|
|
350
|
+
}
|
|
351
|
+
if (this._contentRefreshed) {
|
|
352
|
+
this._contentRefreshed(this, outerArgs);
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
this.i.contentRefreshed = delegateCombine(this.i.contentRefreshed, this._contentRefreshed_wrapped);
|
|
356
|
+
;
|
|
357
|
+
}
|
|
358
|
+
get onCommand() {
|
|
359
|
+
return this._onCommand;
|
|
360
|
+
}
|
|
361
|
+
set onCommand(ev) {
|
|
362
|
+
if (this._onCommand_wrapped !== null) {
|
|
363
|
+
this.i.onCommand = delegateRemove(this.i.onCommand, this._onCommand_wrapped);
|
|
364
|
+
this._onCommand_wrapped = null;
|
|
365
|
+
this._onCommand = null;
|
|
366
|
+
}
|
|
367
|
+
this._onCommand = ev;
|
|
368
|
+
this._onCommand_wrapped = (o, e) => {
|
|
369
|
+
let outerArgs = new IgcToolCommandEventArgs();
|
|
370
|
+
outerArgs._provideImplementation(e);
|
|
371
|
+
if (this.beforeOnCommand) {
|
|
372
|
+
this.beforeOnCommand(this, outerArgs);
|
|
373
|
+
}
|
|
374
|
+
if (this._onCommand) {
|
|
375
|
+
this._onCommand(this, outerArgs);
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
this.i.onCommand = delegateCombine(this.i.onCommand, this._onCommand_wrapped);
|
|
379
|
+
;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
IgcToolPanelComponent._observedAttributesIgcToolPanelComponent = null;
|
|
383
|
+
IgcToolPanelComponent.htmlTagName = "igc-tool-panel";
|
|
384
|
+
IgcToolPanelComponent._isElementRegistered = false;
|
|
385
|
+
return IgcToolPanelComponent;
|
|
386
|
+
})();
|