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,1045 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
8
|
+
import { Base, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, runOn, Number_$type, delegateRemove, typeCast, delegateCombine, enumGetBox } from "igniteui-webcomponents-core";
|
|
9
|
+
import { RenderingContext } from "igniteui-webcomponents-core";
|
|
10
|
+
import { FontInfo } from "igniteui-webcomponents-core";
|
|
11
|
+
import { DOMExecutionContext } from "igniteui-webcomponents-core";
|
|
12
|
+
import { CanvasViewRenderer } from "igniteui-webcomponents-core";
|
|
13
|
+
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
14
|
+
import { Size } from "igniteui-webcomponents-core";
|
|
15
|
+
import { NativeUI } from "igniteui-webcomponents-core";
|
|
16
|
+
import { FontUtil } from "igniteui-webcomponents-core";
|
|
17
|
+
import { SRProvider } from "igniteui-webcomponents-core";
|
|
18
|
+
import { IDataSource_$type } from "igniteui-webcomponents-core";
|
|
19
|
+
import { ListPanelOrientation_$type } from "./ListPanelOrientation";
|
|
20
|
+
import { DeviceUtils } from "igniteui-webcomponents-core";
|
|
21
|
+
import { FastIterationDictionary$2 } from "igniteui-webcomponents-core";
|
|
22
|
+
import { ListPanelItemModel } from "./ListPanelItemModel";
|
|
23
|
+
import { Stack$1 } from "igniteui-webcomponents-core";
|
|
24
|
+
import { List$1 } from "igniteui-webcomponents-core";
|
|
25
|
+
import { NativeUIInputsFactory } from "igniteui-webcomponents-core";
|
|
26
|
+
import { ListPanelContentRefreshedEventArgs } from "./ListPanelContentRefreshedEventArgs";
|
|
27
|
+
import { ListPanelItemPresenter } from "./ListPanelItemPresenter";
|
|
28
|
+
import { ListPanelTemplateItemUpdatingEventArgs } from "./ListPanelTemplateItemUpdatingEventArgs";
|
|
29
|
+
import { ListPanelTemplateWidthRequestedEventArgs } from "./ListPanelTemplateWidthRequestedEventArgs";
|
|
30
|
+
import { ListPanelTemplateHeightRequestedEventArgs } from "./ListPanelTemplateHeightRequestedEventArgs";
|
|
31
|
+
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
32
|
+
import { isNaN_ } from "igniteui-webcomponents-core";
|
|
33
|
+
import { IDataSourceUpdateNotifier_$type } from "igniteui-webcomponents-core";
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
var ListPanelView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
38
|
+
tslib_1.__extends(ListPanelView, _super);
|
|
39
|
+
function ListPanelView() {
|
|
40
|
+
var _this = _super.call(this) || this;
|
|
41
|
+
_this.n = null;
|
|
42
|
+
_this.m = null;
|
|
43
|
+
_this.a = null;
|
|
44
|
+
_this.i = null;
|
|
45
|
+
_this.l = null;
|
|
46
|
+
_this.e = null;
|
|
47
|
+
_this.k = null;
|
|
48
|
+
_this.b = ((function () {
|
|
49
|
+
var $ret = new FontInfo();
|
|
50
|
+
$ret.n = "Verdana";
|
|
51
|
+
$ret.d = 13;
|
|
52
|
+
$ret.q = "Normal";
|
|
53
|
+
$ret.s = "Normal";
|
|
54
|
+
$ret.o = "Normal";
|
|
55
|
+
return $ret;
|
|
56
|
+
})());
|
|
57
|
+
_this.aa = new Size();
|
|
58
|
+
_this.c = null;
|
|
59
|
+
_this._gridExternal = null;
|
|
60
|
+
_this.f = false;
|
|
61
|
+
_this.j = null;
|
|
62
|
+
return _this;
|
|
63
|
+
}
|
|
64
|
+
ListPanelView.prototype.p = function () {
|
|
65
|
+
return this.i;
|
|
66
|
+
};
|
|
67
|
+
ListPanelView.prototype.v = function () {
|
|
68
|
+
};
|
|
69
|
+
ListPanelView.prototype.t = function (a) {
|
|
70
|
+
var _this = this;
|
|
71
|
+
if (a == null) {
|
|
72
|
+
this.i = null;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.a.c = new DOMExecutionContext(a);
|
|
76
|
+
this.i = a;
|
|
77
|
+
this.l = this.i.createElement("canvas");
|
|
78
|
+
this.e = new RenderingContext(new CanvasViewRenderer(), this.i.get2DCanvasContext(this.l));
|
|
79
|
+
this.k = this.i.createElement("div");
|
|
80
|
+
this.y();
|
|
81
|
+
NativeUIComponent.aa(this.p(), 9, function (b) {
|
|
82
|
+
var c = b;
|
|
83
|
+
_this.a.bv(c);
|
|
84
|
+
_this.i.append(c.v);
|
|
85
|
+
});
|
|
86
|
+
var b = Math.round(a.rootWrapper.width());
|
|
87
|
+
var c = Math.round(a.rootWrapper.height());
|
|
88
|
+
this.i.rootWrapper.setStyleProperty("position", "relative");
|
|
89
|
+
};
|
|
90
|
+
ListPanelView.prototype.y = function () {
|
|
91
|
+
};
|
|
92
|
+
ListPanelView.prototype.x = function () {
|
|
93
|
+
if (this.i != null) {
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
ListPanelView.prototype.s = function () {
|
|
97
|
+
if (this.i == null) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
var a = this.i.rootWrapper.width();
|
|
101
|
+
var b = this.i.rootWrapper.height();
|
|
102
|
+
this.aa = new Size(1, a, b);
|
|
103
|
+
if (this.a.u != null) {
|
|
104
|
+
this.a.cp();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
ListPanelView.prototype.z = function () {
|
|
108
|
+
var a = this.i;
|
|
109
|
+
if (null == a) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
var b = a.rootWrapper;
|
|
113
|
+
if (null != b) {
|
|
114
|
+
NativeUI.o(b, this.a.cv);
|
|
115
|
+
NativeUI.k(b, this.a.cs);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
ListPanelView.prototype.d = function () {
|
|
119
|
+
return this.b;
|
|
120
|
+
};
|
|
121
|
+
ListPanelView.prototype.u = function () {
|
|
122
|
+
};
|
|
123
|
+
ListPanelView.prototype.w = function () {
|
|
124
|
+
};
|
|
125
|
+
ListPanelView.prototype.r = function () {
|
|
126
|
+
};
|
|
127
|
+
ListPanelView.prototype.g = function () {
|
|
128
|
+
return this.aa.width;
|
|
129
|
+
};
|
|
130
|
+
ListPanelView.prototype.h = function (a) {
|
|
131
|
+
this.c = this.a.t();
|
|
132
|
+
return FontUtil.measureStringWidth(a, this.c, this.e);
|
|
133
|
+
};
|
|
134
|
+
ListPanelView.prototype.q = function (a, b) {
|
|
135
|
+
if (this.j == null) {
|
|
136
|
+
this.j = this.i.createElement("div");
|
|
137
|
+
}
|
|
138
|
+
b(this.j.getNativeElement());
|
|
139
|
+
};
|
|
140
|
+
ListPanelView.$t = markType(ListPanelView, 'ListPanelView');
|
|
141
|
+
return ListPanelView;
|
|
142
|
+
}(Base));
|
|
143
|
+
export { ListPanelView };
|
|
144
|
+
/**
|
|
145
|
+
* @hidden
|
|
146
|
+
*/
|
|
147
|
+
var ListPanel = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
148
|
+
tslib_1.__extends(ListPanel, _super);
|
|
149
|
+
function ListPanel() {
|
|
150
|
+
var _this = _super.call(this) || this;
|
|
151
|
+
_this.o = null;
|
|
152
|
+
_this.u = null;
|
|
153
|
+
_this.y = false;
|
|
154
|
+
_this.v = null;
|
|
155
|
+
_this.h = null;
|
|
156
|
+
_this.propertyChanged = null;
|
|
157
|
+
_this.a8 = null;
|
|
158
|
+
_this.a = null;
|
|
159
|
+
_this.ag = false;
|
|
160
|
+
_this.a0 = -1;
|
|
161
|
+
_this.ar = DeviceUtils.g(38);
|
|
162
|
+
_this.r = null;
|
|
163
|
+
_this.x = true;
|
|
164
|
+
_this.a9 = null;
|
|
165
|
+
_this.as = 0;
|
|
166
|
+
_this.aq = NaN;
|
|
167
|
+
_this.ap = 0;
|
|
168
|
+
_this.ad = false;
|
|
169
|
+
_this.z = false;
|
|
170
|
+
_this.ac = false;
|
|
171
|
+
_this.contentRefreshed = null;
|
|
172
|
+
_this.rowUpdating = null;
|
|
173
|
+
_this.q = new FastIterationDictionary$2(Number_$type, ListPanelItemModel.$, 0);
|
|
174
|
+
_this.itemWidthRequested = null;
|
|
175
|
+
_this.itemHeightRequested = null;
|
|
176
|
+
_this.p = new FastIterationDictionary$2(ListPanelItemModel.$, ListPanelItemModel.$, 0);
|
|
177
|
+
_this.ao = new Stack$1(ListPanelItemModel.$);
|
|
178
|
+
_this.al = new List$1(Number_$type, 0);
|
|
179
|
+
_this.ak = new List$1(Number_$type, 0);
|
|
180
|
+
_this.an = new List$1(Number_$type, 0);
|
|
181
|
+
_this.am = new List$1(Number_$type, 0);
|
|
182
|
+
_this.ae = true;
|
|
183
|
+
_this.ab = true;
|
|
184
|
+
_this.ay = -1;
|
|
185
|
+
_this.az = -1;
|
|
186
|
+
_this.d = null;
|
|
187
|
+
_this.c = null;
|
|
188
|
+
_this.cq = ListPanel.ct;
|
|
189
|
+
_this.i = ListPanel.j;
|
|
190
|
+
_this.aa = ListPanel.af;
|
|
191
|
+
_this.cr = ListPanel.cu;
|
|
192
|
+
NativeUIInputsFactory.m();
|
|
193
|
+
var a = new ListPanelView();
|
|
194
|
+
a.a = _this;
|
|
195
|
+
_this.o = a;
|
|
196
|
+
_this.o.v();
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
Object.defineProperty(ListPanel.prototype, "w", {
|
|
200
|
+
get: function () {
|
|
201
|
+
if (this.v == null) {
|
|
202
|
+
this.v = new SRProvider(this.o.i);
|
|
203
|
+
this.v.cb("Layouts");
|
|
204
|
+
}
|
|
205
|
+
return this.v;
|
|
206
|
+
},
|
|
207
|
+
enumerable: true,
|
|
208
|
+
configurable: true
|
|
209
|
+
});
|
|
210
|
+
ListPanel.prototype.bv = function (a) {
|
|
211
|
+
this.h = new ListPanelLayoutPanel(a);
|
|
212
|
+
};
|
|
213
|
+
ListPanel.prototype.cd = function (a) {
|
|
214
|
+
this.aq = a.width;
|
|
215
|
+
this.ch();
|
|
216
|
+
};
|
|
217
|
+
Object.defineProperty(ListPanel.prototype, "itemsSource", {
|
|
218
|
+
get: function () {
|
|
219
|
+
return this.a8;
|
|
220
|
+
},
|
|
221
|
+
set: function (a) {
|
|
222
|
+
var b = this.a8;
|
|
223
|
+
this.a8 = a;
|
|
224
|
+
if (b != this.a8) {
|
|
225
|
+
this.ca("ItemsSource", b, this.a8);
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
enumerable: true,
|
|
229
|
+
configurable: true
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(ListPanel.prototype, "actualDataSource", {
|
|
232
|
+
get: function () {
|
|
233
|
+
return this.a;
|
|
234
|
+
},
|
|
235
|
+
set: function (a) {
|
|
236
|
+
var b = this.a;
|
|
237
|
+
this.a = a;
|
|
238
|
+
if (this.a != b) {
|
|
239
|
+
this.ca("ActualDataSource", b, this.a);
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
enumerable: true,
|
|
243
|
+
configurable: true
|
|
244
|
+
});
|
|
245
|
+
ListPanel.prototype.notifySizeChanged = function () {
|
|
246
|
+
this.o.s();
|
|
247
|
+
};
|
|
248
|
+
ListPanel.prototype.destroy = function () {
|
|
249
|
+
this.provideContainer(null);
|
|
250
|
+
};
|
|
251
|
+
ListPanel.prototype.provideContainer = function (a) {
|
|
252
|
+
this.o.t(a);
|
|
253
|
+
};
|
|
254
|
+
Object.defineProperty(ListPanel.prototype, "a7", {
|
|
255
|
+
get: function () {
|
|
256
|
+
return this.a0;
|
|
257
|
+
},
|
|
258
|
+
set: function (a) {
|
|
259
|
+
var b = this.a0;
|
|
260
|
+
this.a0 = a;
|
|
261
|
+
if (b != this.a0) {
|
|
262
|
+
this.ca("RowHeight", b, this.a0);
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
enumerable: true,
|
|
266
|
+
configurable: true
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(ListPanel.prototype, "av", {
|
|
269
|
+
get: function () {
|
|
270
|
+
return this.ar;
|
|
271
|
+
},
|
|
272
|
+
set: function (a) {
|
|
273
|
+
this.ar = a;
|
|
274
|
+
},
|
|
275
|
+
enumerable: true,
|
|
276
|
+
configurable: true
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(ListPanel.prototype, "s", {
|
|
279
|
+
get: function () {
|
|
280
|
+
return this.r;
|
|
281
|
+
},
|
|
282
|
+
set: function (a) {
|
|
283
|
+
var b = this.r;
|
|
284
|
+
this.r = a;
|
|
285
|
+
if (b != this.r) {
|
|
286
|
+
this.ca("CellTextStyle", b, this.r);
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
enumerable: true,
|
|
290
|
+
configurable: true
|
|
291
|
+
});
|
|
292
|
+
ListPanel.prototype.t = function () {
|
|
293
|
+
if (this.s == null) {
|
|
294
|
+
return this.o.d();
|
|
295
|
+
}
|
|
296
|
+
return this.s;
|
|
297
|
+
};
|
|
298
|
+
Object.defineProperty(ListPanel.prototype, "ah", {
|
|
299
|
+
get: function () {
|
|
300
|
+
return this.k == 1;
|
|
301
|
+
},
|
|
302
|
+
enumerable: true,
|
|
303
|
+
configurable: true
|
|
304
|
+
});
|
|
305
|
+
ListPanel.prototype.ca = function (a, b, c) {
|
|
306
|
+
if (this.propertyChanged != null) {
|
|
307
|
+
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
308
|
+
}
|
|
309
|
+
this.ce(a, b, c);
|
|
310
|
+
};
|
|
311
|
+
ListPanel.prototype.bm = function (a, b) {
|
|
312
|
+
this.b8();
|
|
313
|
+
};
|
|
314
|
+
ListPanel.prototype.ch = function () {
|
|
315
|
+
if (this.ac) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
this.ac = true;
|
|
319
|
+
this.c.enqueueAction(runOn(this, this.bo));
|
|
320
|
+
};
|
|
321
|
+
ListPanel.prototype.bo = function () {
|
|
322
|
+
if (!this.ac) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
this.ac = false;
|
|
326
|
+
if (this.ab) {
|
|
327
|
+
this.bk();
|
|
328
|
+
}
|
|
329
|
+
if (this.ae) {
|
|
330
|
+
this.bl();
|
|
331
|
+
}
|
|
332
|
+
this.ci();
|
|
333
|
+
this.cl();
|
|
334
|
+
if (this.contentRefreshed != null) {
|
|
335
|
+
this.contentRefreshed(this, new ListPanelContentRefreshedEventArgs());
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
ListPanel.prototype.cl = function () {
|
|
339
|
+
for (var a = 0; a < this.p.o.count; a++) {
|
|
340
|
+
if (this.p.p._inner[a]) {
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
var b = this.p.o._inner[a];
|
|
344
|
+
var c = this.p.q._inner[a];
|
|
345
|
+
if (c.a != null) {
|
|
346
|
+
this.h.c(c.a.a);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
var d = 0;
|
|
350
|
+
for (var e = 0; e < this.q.o.count; e++) {
|
|
351
|
+
if (this.q.p._inner[e]) {
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
var f = this.q.o._inner[e];
|
|
355
|
+
var g = this.q.q._inner[e];
|
|
356
|
+
this.br(g);
|
|
357
|
+
this.bp(g);
|
|
358
|
+
this.h.b(this, g);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
ListPanel.prototype.bp = function (a) {
|
|
362
|
+
if (a.e) {
|
|
363
|
+
a.e = false;
|
|
364
|
+
this.bs(a);
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
ListPanel.prototype.bs = function (a) {
|
|
368
|
+
if (this.rowUpdating != null) {
|
|
369
|
+
this.rowUpdating(this, ((function () {
|
|
370
|
+
var $ret = new ListPanelTemplateItemUpdatingEventArgs();
|
|
371
|
+
$ret.a = a;
|
|
372
|
+
$ret.b = a.a.a;
|
|
373
|
+
$ret.c = a.a.a.v;
|
|
374
|
+
return $ret;
|
|
375
|
+
})()));
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
ListPanel.prototype.br = function (a) {
|
|
379
|
+
var _this = this;
|
|
380
|
+
if (a.a != null) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
a.a = new ListPanelItemPresenter();
|
|
384
|
+
NativeUIComponent.ac(this.o.p(), 0, function (b) {
|
|
385
|
+
var c = b;
|
|
386
|
+
if (_this.k == 0) {
|
|
387
|
+
c.d = 3;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
c.d = 0;
|
|
391
|
+
}
|
|
392
|
+
a.a.a = c;
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
ListPanel.prototype.bl = function () {
|
|
396
|
+
if (!this.ae) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
this.ae = false;
|
|
400
|
+
this.bu();
|
|
401
|
+
this.ay = this.a5();
|
|
402
|
+
this.az = this.a6();
|
|
403
|
+
var a = new List$1(Number_$type, 0);
|
|
404
|
+
for (var b = 0; b < this.q.o.count; b++) {
|
|
405
|
+
if (this.q.p._inner[b]) {
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
var c = this.q.o._inner[b];
|
|
409
|
+
var d = this.q.q._inner[b];
|
|
410
|
+
if (c < this.ay || c > this.az) {
|
|
411
|
+
a.add(c);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
for (var e = 0; e < a.count; e++) {
|
|
415
|
+
this.co(a._inner[e]);
|
|
416
|
+
}
|
|
417
|
+
for (var f = this.ay; f <= this.az; f++) {
|
|
418
|
+
this.bq(f);
|
|
419
|
+
var g = this.q.item(f);
|
|
420
|
+
g.k = this.ax(f);
|
|
421
|
+
g.i = this.aw(f);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
ListPanel.prototype.aw = function (a) {
|
|
425
|
+
if (this.k == 0) {
|
|
426
|
+
return 0;
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
return this.an._inner[a];
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
ListPanel.prototype.ax = function (a) {
|
|
433
|
+
if (this.k == 1) {
|
|
434
|
+
return 0;
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
if (this.ai) {
|
|
438
|
+
return this.al._inner[a];
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
return a * this.av;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
ListPanel.prototype.bq = function (a) {
|
|
446
|
+
if (this.q.d(a)) {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
var b = this.g(a);
|
|
450
|
+
if (b.c) {
|
|
451
|
+
this.p.f(b);
|
|
452
|
+
b.c = false;
|
|
453
|
+
}
|
|
454
|
+
this.q.s(a, b);
|
|
455
|
+
};
|
|
456
|
+
ListPanel.prototype.g = function (a) {
|
|
457
|
+
if (this.ao.f > 0) {
|
|
458
|
+
return this.ao.e();
|
|
459
|
+
}
|
|
460
|
+
var b = new ListPanelItemModel();
|
|
461
|
+
b.l = a;
|
|
462
|
+
b.j = this.av;
|
|
463
|
+
return b;
|
|
464
|
+
};
|
|
465
|
+
ListPanel.prototype.co = function (a) {
|
|
466
|
+
var b = this.q.item(a);
|
|
467
|
+
this.ck(b);
|
|
468
|
+
this.q.f(a);
|
|
469
|
+
b.c = true;
|
|
470
|
+
this.p.s(b, b);
|
|
471
|
+
};
|
|
472
|
+
ListPanel.prototype.ck = function (a) {
|
|
473
|
+
this.ao.h(a);
|
|
474
|
+
};
|
|
475
|
+
ListPanel.prototype.a6 = function () {
|
|
476
|
+
if (this.actualDataSource == null || this.actualDataSource.actualSchema == null) {
|
|
477
|
+
return -1;
|
|
478
|
+
}
|
|
479
|
+
return this.actualDataSource.actualCount - 1;
|
|
480
|
+
};
|
|
481
|
+
ListPanel.prototype.a5 = function () {
|
|
482
|
+
if (this.actualDataSource == null || this.actualDataSource.actualSchema == null) {
|
|
483
|
+
return -1;
|
|
484
|
+
}
|
|
485
|
+
return 0;
|
|
486
|
+
};
|
|
487
|
+
ListPanel.prototype.bk = function () {
|
|
488
|
+
var _this = this;
|
|
489
|
+
this.ak.clear();
|
|
490
|
+
this.al.clear();
|
|
491
|
+
this.am.clear();
|
|
492
|
+
this.an.clear();
|
|
493
|
+
if (this.actualDataSource != null || this.actualDataSource.actualSchema != null) {
|
|
494
|
+
var a = this.ap;
|
|
495
|
+
var b = isNaN_(this.aq) ? 0 : this.aq;
|
|
496
|
+
if (this.k == 0) {
|
|
497
|
+
if (this.ai) {
|
|
498
|
+
var c = 0;
|
|
499
|
+
var _loop_1 = function (d) {
|
|
500
|
+
this_1.al.add(c);
|
|
501
|
+
var e = this_1.av;
|
|
502
|
+
if (this_1.itemHeightRequested != null) {
|
|
503
|
+
var f = ((function () {
|
|
504
|
+
var $ret = new ListPanelTemplateHeightRequestedEventArgs();
|
|
505
|
+
$ret.b = d;
|
|
506
|
+
$ret.c = _this.actualDataSource.getItemAtIndex(d);
|
|
507
|
+
$ret.a = e;
|
|
508
|
+
return $ret;
|
|
509
|
+
})());
|
|
510
|
+
this_1.itemHeightRequested(this_1, f);
|
|
511
|
+
e = f.a;
|
|
512
|
+
c += e;
|
|
513
|
+
}
|
|
514
|
+
this_1.ak.add(e);
|
|
515
|
+
};
|
|
516
|
+
var this_1 = this;
|
|
517
|
+
for (var d = 0; d < this.actualDataSource.actualCount; d++) {
|
|
518
|
+
_loop_1(d);
|
|
519
|
+
}
|
|
520
|
+
this.ap = c;
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
this.ap = this.av * this.actualDataSource.actualCount;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
else {
|
|
527
|
+
this.ap = this.av;
|
|
528
|
+
{
|
|
529
|
+
var g = 0;
|
|
530
|
+
var _loop_2 = function (h) {
|
|
531
|
+
this_2.an.add(g);
|
|
532
|
+
var i = 0;
|
|
533
|
+
if (this_2.itemWidthRequested != null) {
|
|
534
|
+
var j = ((function () {
|
|
535
|
+
var $ret = new ListPanelTemplateWidthRequestedEventArgs();
|
|
536
|
+
$ret.b = h;
|
|
537
|
+
$ret.c = _this.actualDataSource.getItemAtIndex(h);
|
|
538
|
+
$ret.a = i;
|
|
539
|
+
return $ret;
|
|
540
|
+
})());
|
|
541
|
+
this_2.itemWidthRequested(this_2, j);
|
|
542
|
+
i = j.a;
|
|
543
|
+
g += i;
|
|
544
|
+
}
|
|
545
|
+
this_2.am.add(i);
|
|
546
|
+
};
|
|
547
|
+
var this_2 = this;
|
|
548
|
+
for (var h = 0; h < this.actualDataSource.actualCount; h++) {
|
|
549
|
+
_loop_2(h);
|
|
550
|
+
}
|
|
551
|
+
this.aq = g;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (a != this.ap || b != (isNaN_(this.aq) ? 0 : this.aq)) {
|
|
555
|
+
this.o.r();
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
ListPanel.prototype.bt = function () {
|
|
560
|
+
if (this.ac) {
|
|
561
|
+
this.bo();
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
ListPanel.prototype.cm = function () {
|
|
565
|
+
if (this.as == 0) {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
var a = isNaN_(this.aq) ? 0 : this.aq;
|
|
569
|
+
var b = this.ap;
|
|
570
|
+
this.ad = true;
|
|
571
|
+
this.bz(this.as);
|
|
572
|
+
if (a != (isNaN_(this.aq) ? 0 : this.aq) || b != this.ap) {
|
|
573
|
+
this.externalListPanel.onContentSizeChanged();
|
|
574
|
+
}
|
|
575
|
+
this.ad = false;
|
|
576
|
+
this.b0();
|
|
577
|
+
this.ch();
|
|
578
|
+
};
|
|
579
|
+
ListPanel.prototype.b0 = function () {
|
|
580
|
+
this.ae = true;
|
|
581
|
+
};
|
|
582
|
+
ListPanel.prototype.bz = function (a) {
|
|
583
|
+
this.ab = true;
|
|
584
|
+
this.as = a;
|
|
585
|
+
};
|
|
586
|
+
ListPanel.prototype.bu = function () {
|
|
587
|
+
if (this.z) {
|
|
588
|
+
this.z = false;
|
|
589
|
+
this.cm();
|
|
590
|
+
this.by();
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
ListPanel.prototype.cn = function () {
|
|
594
|
+
if (this.z) {
|
|
595
|
+
this.bu();
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
this.ch();
|
|
599
|
+
this.bt();
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
ListPanel.prototype.a4 = function () {
|
|
603
|
+
return this.az;
|
|
604
|
+
};
|
|
605
|
+
ListPanel.prototype.a3 = function () {
|
|
606
|
+
return this.ay;
|
|
607
|
+
};
|
|
608
|
+
ListPanel.prototype.aj = function () {
|
|
609
|
+
return this.ay >= 0 && this.az >= 0;
|
|
610
|
+
};
|
|
611
|
+
ListPanel.prototype.by = function () {
|
|
612
|
+
if (!this.aj()) {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
var a = this.a3();
|
|
616
|
+
var b = this.a4();
|
|
617
|
+
this.bx(a, b);
|
|
618
|
+
};
|
|
619
|
+
ListPanel.prototype.bx = function (a, b) {
|
|
620
|
+
var c = this.a3();
|
|
621
|
+
var d = this.a4();
|
|
622
|
+
if (b < c || a > d) {
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
if (a < c) {
|
|
626
|
+
a = c;
|
|
627
|
+
}
|
|
628
|
+
if (b > d) {
|
|
629
|
+
b = d;
|
|
630
|
+
}
|
|
631
|
+
this.ci();
|
|
632
|
+
this.cn();
|
|
633
|
+
};
|
|
634
|
+
ListPanel.prototype.ci = function () {
|
|
635
|
+
for (var a = 0; a < this.q.q.count; a++) {
|
|
636
|
+
if (this.q.p._inner[a]) {
|
|
637
|
+
continue;
|
|
638
|
+
}
|
|
639
|
+
var b = this.q.q._inner[a];
|
|
640
|
+
b.n = this.actualDataSource.getItemAtIndex(b.l);
|
|
641
|
+
b.j = this.av;
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
ListPanel.prototype.cj = function (a) {
|
|
645
|
+
if (this.q.d(a)) {
|
|
646
|
+
var b = this.q.item(a);
|
|
647
|
+
b.n = this.actualDataSource.getItemAtIndex(b.l);
|
|
648
|
+
b.j = this.av;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
ListPanel.prototype.cg = function () {
|
|
652
|
+
if (!this.z) {
|
|
653
|
+
this.z = true;
|
|
654
|
+
this.b0();
|
|
655
|
+
this.ch();
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
ListPanel.prototype.bw = function (a) {
|
|
659
|
+
this.cj(a);
|
|
660
|
+
};
|
|
661
|
+
ListPanel.prototype.b8 = function () {
|
|
662
|
+
if (this.z) {
|
|
663
|
+
this.bu();
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
this.cm();
|
|
667
|
+
this.by();
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
Object.defineProperty(ListPanel.prototype, "externalListPanel", {
|
|
671
|
+
get: function () {
|
|
672
|
+
return this.d;
|
|
673
|
+
},
|
|
674
|
+
set: function (a) {
|
|
675
|
+
this.d = a;
|
|
676
|
+
},
|
|
677
|
+
enumerable: true,
|
|
678
|
+
configurable: true
|
|
679
|
+
});
|
|
680
|
+
ListPanel.prototype.ce = function (a, b, c) {
|
|
681
|
+
var _this = this;
|
|
682
|
+
switch (a) {
|
|
683
|
+
case "ItemsSource":
|
|
684
|
+
if (this.a != null) {
|
|
685
|
+
var d = this.a;
|
|
686
|
+
d.schemaChanged = delegateRemove(d.schemaChanged, runOn(this, this.bm));
|
|
687
|
+
this.a.updateNotifier = null;
|
|
688
|
+
}
|
|
689
|
+
if (typeCast(IDataSource_$type, this.itemsSource) !== null) {
|
|
690
|
+
this.actualDataSource = this.itemsSource;
|
|
691
|
+
}
|
|
692
|
+
else {
|
|
693
|
+
var e = this.externalListPanel.createLocalDataSource(this.itemsSource);
|
|
694
|
+
this.actualDataSource = e;
|
|
695
|
+
}
|
|
696
|
+
if (this.a != null) {
|
|
697
|
+
var f = this.a;
|
|
698
|
+
f.schemaChanged = delegateCombine(f.schemaChanged, runOn(this, this.bm));
|
|
699
|
+
this.a.updateNotifier = new ListPanelDataSourceNotificationBridge(this);
|
|
700
|
+
if (this.a.actualSchema != null) {
|
|
701
|
+
this.cg();
|
|
702
|
+
this.c.enqueueAction(function () { return _this.b8(); });
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
break;
|
|
706
|
+
case "RowHeight":
|
|
707
|
+
if (this.u != null) {
|
|
708
|
+
this.av = this.a7;
|
|
709
|
+
}
|
|
710
|
+
break;
|
|
711
|
+
case "CellTextStyle":
|
|
712
|
+
this.by();
|
|
713
|
+
break;
|
|
714
|
+
case "BackgroundColor":
|
|
715
|
+
case "TextColor":
|
|
716
|
+
this.by();
|
|
717
|
+
break;
|
|
718
|
+
case "Orientation":
|
|
719
|
+
this.cm();
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
ListPanel.prototype.cp = function () {
|
|
724
|
+
if (this.u == null) {
|
|
725
|
+
return;
|
|
726
|
+
}
|
|
727
|
+
var a = this.a7 == -1 ? 38 : this.a7;
|
|
728
|
+
var b = this.cs;
|
|
729
|
+
var c = this.t();
|
|
730
|
+
};
|
|
731
|
+
ListPanel.prototype.cw = function () {
|
|
732
|
+
var a = this.ap;
|
|
733
|
+
var b = 0;
|
|
734
|
+
if (!isNaN_(a) && a >= 0) {
|
|
735
|
+
b = a;
|
|
736
|
+
}
|
|
737
|
+
var c = new Size(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY);
|
|
738
|
+
var d = 0;
|
|
739
|
+
if (this.k == 0) {
|
|
740
|
+
for (var e = 0; e < this.q.o.count; e++) {
|
|
741
|
+
if (this.q.p._inner[e]) {
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
var f = this.q.o._inner[e];
|
|
745
|
+
var g = this.q.q._inner[e];
|
|
746
|
+
var h = g.a.a.ap(c);
|
|
747
|
+
d = Math.max(d, h.width);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return new Size(1, d, b);
|
|
751
|
+
};
|
|
752
|
+
ListPanel.prototype.b7 = function (a, b) {
|
|
753
|
+
};
|
|
754
|
+
ListPanel.prototype.cc = function (a, b, c) {
|
|
755
|
+
if (this.k == 0) {
|
|
756
|
+
if (this.ai) {
|
|
757
|
+
var d = this.av;
|
|
758
|
+
if (this.itemHeightRequested != null) {
|
|
759
|
+
var e = new ListPanelTemplateHeightRequestedEventArgs();
|
|
760
|
+
e.c = c;
|
|
761
|
+
e.b = a;
|
|
762
|
+
e.a = d;
|
|
763
|
+
this.itemHeightRequested(this, e);
|
|
764
|
+
d = e.a;
|
|
765
|
+
}
|
|
766
|
+
var f = this.ak._inner[a];
|
|
767
|
+
this.ak._inner[a] = d;
|
|
768
|
+
var g = d - f;
|
|
769
|
+
for (var h = a; h < this.actualDataSource.actualCount; h++) {
|
|
770
|
+
this.al._inner[h] += g;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
var i = 0;
|
|
776
|
+
if (this.itemWidthRequested != null) {
|
|
777
|
+
var j = new ListPanelTemplateWidthRequestedEventArgs();
|
|
778
|
+
j.c = c;
|
|
779
|
+
j.b = a;
|
|
780
|
+
j.a = i;
|
|
781
|
+
this.itemWidthRequested(this, j);
|
|
782
|
+
i = j.a;
|
|
783
|
+
}
|
|
784
|
+
var k = this.am._inner[a];
|
|
785
|
+
this.am._inner[a] = i;
|
|
786
|
+
var l = i - k;
|
|
787
|
+
for (var m = a; m < this.actualDataSource.actualCount; m++) {
|
|
788
|
+
this.an._inner[m] += l;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
this.bw(a);
|
|
792
|
+
};
|
|
793
|
+
ListPanel.prototype.b6 = function () {
|
|
794
|
+
this.cm();
|
|
795
|
+
};
|
|
796
|
+
ListPanel.prototype.b9 = function (a, b) {
|
|
797
|
+
if (this.k == 0) {
|
|
798
|
+
if (this.ai) {
|
|
799
|
+
var c = this.av;
|
|
800
|
+
if (this.itemHeightRequested != null) {
|
|
801
|
+
var d = new ListPanelTemplateHeightRequestedEventArgs();
|
|
802
|
+
d.c = b;
|
|
803
|
+
d.b = a;
|
|
804
|
+
d.a = c;
|
|
805
|
+
this.itemHeightRequested(this, d);
|
|
806
|
+
c = d.a;
|
|
807
|
+
}
|
|
808
|
+
this.ak.insert(a, c);
|
|
809
|
+
var e = 0;
|
|
810
|
+
if (a > 0) {
|
|
811
|
+
var f = this.al._inner[a - 1];
|
|
812
|
+
e = f + this.ak._inner[a - 1];
|
|
813
|
+
}
|
|
814
|
+
this.al.insert(a, e);
|
|
815
|
+
for (var g = a; g < this.actualDataSource.actualCount; g++) {
|
|
816
|
+
this.al._inner[g] += c;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
var h = 0;
|
|
822
|
+
if (this.itemWidthRequested != null) {
|
|
823
|
+
var i = new ListPanelTemplateWidthRequestedEventArgs();
|
|
824
|
+
i.c = b;
|
|
825
|
+
i.b = a;
|
|
826
|
+
i.a = h;
|
|
827
|
+
this.itemWidthRequested(this, i);
|
|
828
|
+
h = i.a;
|
|
829
|
+
}
|
|
830
|
+
this.am.insert(a, h);
|
|
831
|
+
var j = 0;
|
|
832
|
+
if (a > 0) {
|
|
833
|
+
var k = this.an._inner[a - 1];
|
|
834
|
+
j = k + this.am._inner[a - 1];
|
|
835
|
+
}
|
|
836
|
+
this.an.insert(a, j);
|
|
837
|
+
for (var l = a; l < this.actualDataSource.actualCount; l++) {
|
|
838
|
+
this.an._inner[l] += h;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
this.cg();
|
|
842
|
+
};
|
|
843
|
+
ListPanel.prototype.cb = function (a, b) {
|
|
844
|
+
if (this.k == 0) {
|
|
845
|
+
var c = this.ak._inner[a];
|
|
846
|
+
for (var d = a + 1; d < this.actualDataSource.actualCount; d++) {
|
|
847
|
+
this.al._inner[d] -= c;
|
|
848
|
+
}
|
|
849
|
+
this.ak.removeAt(a);
|
|
850
|
+
this.al.removeAt(a);
|
|
851
|
+
}
|
|
852
|
+
else {
|
|
853
|
+
var e = this.am._inner[a];
|
|
854
|
+
for (var f = a + 1; f < this.actualDataSource.actualCount; f++) {
|
|
855
|
+
this.an._inner[f] -= e;
|
|
856
|
+
}
|
|
857
|
+
this.am.removeAt(a);
|
|
858
|
+
this.an.removeAt(a);
|
|
859
|
+
}
|
|
860
|
+
this.cg();
|
|
861
|
+
};
|
|
862
|
+
ListPanel.prototype.b4 = function (a, b, c) {
|
|
863
|
+
if (this.a != null) {
|
|
864
|
+
this.a.notifySetItem(a, b, c);
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
ListPanel.prototype.b1 = function () {
|
|
868
|
+
if (this.a != null) {
|
|
869
|
+
this.a.notifyClearItems();
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
ListPanel.prototype.b2 = function (a, b) {
|
|
873
|
+
if (this.a != null) {
|
|
874
|
+
this.a.notifyInsertItem(a, b);
|
|
875
|
+
}
|
|
876
|
+
;
|
|
877
|
+
};
|
|
878
|
+
ListPanel.prototype.b3 = function (a, b) {
|
|
879
|
+
if (this.a != null) {
|
|
880
|
+
this.a.notifyRemoveItem(a, b);
|
|
881
|
+
}
|
|
882
|
+
;
|
|
883
|
+
};
|
|
884
|
+
ListPanel.prototype.a1 = function (a) {
|
|
885
|
+
if (this.a == null) {
|
|
886
|
+
return -1;
|
|
887
|
+
}
|
|
888
|
+
return this.a.indexOfItem(a);
|
|
889
|
+
};
|
|
890
|
+
ListPanel.prototype.a2 = function (a) {
|
|
891
|
+
if (this.a == null) {
|
|
892
|
+
return -1;
|
|
893
|
+
}
|
|
894
|
+
return this.a.indexOfKey(a);
|
|
895
|
+
};
|
|
896
|
+
Object.defineProperty(ListPanel.prototype, "cs", {
|
|
897
|
+
get: function () {
|
|
898
|
+
return this.cq;
|
|
899
|
+
},
|
|
900
|
+
set: function (a) {
|
|
901
|
+
var b = this.cq;
|
|
902
|
+
this.cq = a;
|
|
903
|
+
if (b != this.cq) {
|
|
904
|
+
this.ca("BackgroundColor", b, a);
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
enumerable: true,
|
|
908
|
+
configurable: true
|
|
909
|
+
});
|
|
910
|
+
Object.defineProperty(ListPanel.prototype, "k", {
|
|
911
|
+
get: function () {
|
|
912
|
+
return this.i;
|
|
913
|
+
},
|
|
914
|
+
set: function (a) {
|
|
915
|
+
var b = this.i;
|
|
916
|
+
this.i = a;
|
|
917
|
+
if (b != this.i) {
|
|
918
|
+
this.ca("Orientation", enumGetBox(ListPanelOrientation_$type, b), enumGetBox(ListPanelOrientation_$type, a));
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
enumerable: true,
|
|
922
|
+
configurable: true
|
|
923
|
+
});
|
|
924
|
+
Object.defineProperty(ListPanel.prototype, "ai", {
|
|
925
|
+
get: function () {
|
|
926
|
+
return this.aa;
|
|
927
|
+
},
|
|
928
|
+
set: function (a) {
|
|
929
|
+
var b = this.aa;
|
|
930
|
+
this.aa = a;
|
|
931
|
+
if (b != this.aa) {
|
|
932
|
+
this.ca("IsCustomRowHeightEnabled", b, a);
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
enumerable: true,
|
|
936
|
+
configurable: true
|
|
937
|
+
});
|
|
938
|
+
Object.defineProperty(ListPanel.prototype, "cv", {
|
|
939
|
+
get: function () {
|
|
940
|
+
return this.cr;
|
|
941
|
+
},
|
|
942
|
+
set: function (a) {
|
|
943
|
+
var b = this.cr;
|
|
944
|
+
this.cr = a;
|
|
945
|
+
if (b != this.cr) {
|
|
946
|
+
this.ca("TextColor", b, a);
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
enumerable: true,
|
|
950
|
+
configurable: true
|
|
951
|
+
});
|
|
952
|
+
Object.defineProperty(ListPanel.prototype, "au", {
|
|
953
|
+
get: function () {
|
|
954
|
+
return this.aq;
|
|
955
|
+
},
|
|
956
|
+
enumerable: true,
|
|
957
|
+
configurable: true
|
|
958
|
+
});
|
|
959
|
+
Object.defineProperty(ListPanel.prototype, "at", {
|
|
960
|
+
get: function () {
|
|
961
|
+
return this.ap;
|
|
962
|
+
},
|
|
963
|
+
enumerable: true,
|
|
964
|
+
configurable: true
|
|
965
|
+
});
|
|
966
|
+
ListPanel.$t = markType(ListPanel, 'ListPanel', Base.$, [INotifyPropertyChanged_$type]);
|
|
967
|
+
ListPanel.ct = BrushUtil.g(255, 248, 248, 248);
|
|
968
|
+
ListPanel.j = 0;
|
|
969
|
+
ListPanel.af = false;
|
|
970
|
+
ListPanel.cu = BrushUtil.g(255, 24, 29, 31);
|
|
971
|
+
return ListPanel;
|
|
972
|
+
}(Base));
|
|
973
|
+
export { ListPanel };
|
|
974
|
+
/**
|
|
975
|
+
* @hidden
|
|
976
|
+
*/
|
|
977
|
+
var ListPanelDataSourceNotificationBridge = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
978
|
+
tslib_1.__extends(ListPanelDataSourceNotificationBridge, _super);
|
|
979
|
+
function ListPanelDataSourceNotificationBridge(a) {
|
|
980
|
+
var _this = _super.call(this) || this;
|
|
981
|
+
_this.a = null;
|
|
982
|
+
_this.a = a;
|
|
983
|
+
return _this;
|
|
984
|
+
}
|
|
985
|
+
ListPanelDataSourceNotificationBridge.prototype.rangeActualized = function (a, b) {
|
|
986
|
+
this.a.b7(a, b);
|
|
987
|
+
};
|
|
988
|
+
ListPanelDataSourceNotificationBridge.prototype.notifySetItem = function (a, b, c) {
|
|
989
|
+
this.a.cc(a, b, c);
|
|
990
|
+
};
|
|
991
|
+
ListPanelDataSourceNotificationBridge.prototype.notifyClearItems = function () {
|
|
992
|
+
this.a.b6();
|
|
993
|
+
};
|
|
994
|
+
ListPanelDataSourceNotificationBridge.prototype.notifyInsertItem = function (a, b) {
|
|
995
|
+
this.a.b9(a, b);
|
|
996
|
+
};
|
|
997
|
+
ListPanelDataSourceNotificationBridge.prototype.notifyRemoveItem = function (a, b) {
|
|
998
|
+
this.a.cb(a, b);
|
|
999
|
+
};
|
|
1000
|
+
ListPanelDataSourceNotificationBridge.$t = markType(ListPanelDataSourceNotificationBridge, 'ListPanelDataSourceNotificationBridge', Base.$, [IDataSourceUpdateNotifier_$type]);
|
|
1001
|
+
return ListPanelDataSourceNotificationBridge;
|
|
1002
|
+
}(Base));
|
|
1003
|
+
export { ListPanelDataSourceNotificationBridge };
|
|
1004
|
+
/**
|
|
1005
|
+
* @hidden
|
|
1006
|
+
*/
|
|
1007
|
+
var ListPanelLayoutPanel = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1008
|
+
tslib_1.__extends(ListPanelLayoutPanel, _super);
|
|
1009
|
+
function ListPanelLayoutPanel(a) {
|
|
1010
|
+
var _this = _super.call(this) || this;
|
|
1011
|
+
_this.a = null;
|
|
1012
|
+
_this.a = a;
|
|
1013
|
+
return _this;
|
|
1014
|
+
}
|
|
1015
|
+
ListPanelLayoutPanel.prototype.d = function (a) {
|
|
1016
|
+
this.a.n = a.width;
|
|
1017
|
+
this.a.h = a.height;
|
|
1018
|
+
};
|
|
1019
|
+
ListPanelLayoutPanel.prototype.b = function (a, b) {
|
|
1020
|
+
if (!b.d) {
|
|
1021
|
+
b.d = true;
|
|
1022
|
+
this.a.aw(b.a.a);
|
|
1023
|
+
}
|
|
1024
|
+
if (a.k == 0) {
|
|
1025
|
+
if (!isNaN_(a.au)) {
|
|
1026
|
+
b.a.a.n = a.au;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
else {
|
|
1030
|
+
b.a.a.h = a.at;
|
|
1031
|
+
}
|
|
1032
|
+
if (b.f) {
|
|
1033
|
+
b.f = false;
|
|
1034
|
+
this.a.a2(b.a.a, b.i);
|
|
1035
|
+
this.a.a3(b.a.a, b.k);
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
ListPanelLayoutPanel.prototype.c = function (a) {
|
|
1039
|
+
this.a.a3(a, -1000);
|
|
1040
|
+
this.a.a2(a, -1000);
|
|
1041
|
+
};
|
|
1042
|
+
ListPanelLayoutPanel.$t = markType(ListPanelLayoutPanel, 'ListPanelLayoutPanel');
|
|
1043
|
+
return ListPanelLayoutPanel;
|
|
1044
|
+
}(Base));
|
|
1045
|
+
export { ListPanelLayoutPanel };
|